blob: c579b7e276be81547d4176c48509657f812a9712 [file] [log] [blame]
Emeric Vigier2f625822012-08-06 11:09:52 -04001@%:@! /bin/sh
2@%:@ Guess values for system-dependent variables and create Makefiles.
3@%:@ Generated by GNU Autoconf 2.68.
4@%:@
5@%:@
6@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7@%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8@%:@ Foundation, Inc.
9@%:@
10@%:@
11@%:@ This configure script is free software; the Free Software Foundation
12@%:@ gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in @%:@(
28 *posix*) :
29 set -o posix ;; @%:@(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in @%:@(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in @%:@((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145else
146 case \`(set -o) 2>/dev/null\` in @%:@(
147 *posix*) :
148 set -o posix ;; @%:@(
149 *) :
150 ;;
151esac
152fi
153"
154 as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168 exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175test \$(( 1 + 1 )) = 2 || exit 1
176
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
185 as_have_required=yes
186else
187 as_have_required=no
188fi
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191else
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193as_found=false
194for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195do
196 IFS=$as_save_IFS
197 test -z "$as_dir" && as_dir=.
198 as_found=:
199 case $as_dir in @%:@(
200 /*)
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 break 2
209fi
210fi
211 done;;
212 esac
213 as_found=false
214done
215$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
218fi; }
219IFS=$as_save_IFS
220
221
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 case $- in @%:@ ((((
232 *v*x* | *x*v* ) as_opts=-vx ;;
233 *v* ) as_opts=-v ;;
234 *x* ) as_opts=-x ;;
235 * ) as_opts= ;;
236 esac
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238fi
239
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246 else
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248$0: including any error possibly output before this
249$0: message. Then install a modern shell, or manually run
250$0: the script under such a shell if you do have one."
251 fi
252 exit 1
253fi
254fi
255fi
256SHELL=${CONFIG_SHELL-/bin/sh}
257export SHELL
258# Unset more variables known to interfere with behavior of common tools.
259CLICOLOR_FORCE= GREP_OPTIONS=
260unset CLICOLOR_FORCE GREP_OPTIONS
261
262## --------------------- ##
263## M4sh Shell Functions. ##
264## --------------------- ##
265@%:@ as_fn_unset VAR
266@%:@ ---------------
267@%:@ Portably unset VAR.
268as_fn_unset ()
269{
270 { eval $1=; unset $1;}
271}
272as_unset=as_fn_unset
273
274@%:@ as_fn_set_status STATUS
275@%:@ -----------------------
276@%:@ Set @S|@? to STATUS, without forking.
277as_fn_set_status ()
278{
279 return $1
280} @%:@ as_fn_set_status
281
282@%:@ as_fn_exit STATUS
283@%:@ -----------------
284@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285as_fn_exit ()
286{
287 set +e
288 as_fn_set_status $1
289 exit $1
290} @%:@ as_fn_exit
291
292@%:@ as_fn_mkdir_p
293@%:@ -------------
294@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
295as_fn_mkdir_p ()
296{
297
298 case $as_dir in #(
299 -*) as_dir=./$as_dir;;
300 esac
301 test -d "$as_dir" || eval $as_mkdir_p || {
302 as_dirs=
303 while :; do
304 case $as_dir in #(
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306 *) as_qdir=$as_dir;;
307 esac
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314$as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)[^/].*/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)$/{
324 s//\1/
325 q
326 }
327 /^X\(\/\).*/{
328 s//\1/
329 q
330 }
331 s/.*/./; q'`
332 test -d "$as_dir" && break
333 done
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338} @%:@ as_fn_mkdir_p
339@%:@ as_fn_append VAR VALUE
340@%:@ ----------------------
341@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
342@%:@ advantage of any shell optimizations that allow amortized linear growth over
343@%:@ repeated appends, instead of the typical quadratic growth present in naive
344@%:@ implementations.
345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
347 {
348 eval $1+=\$2
349 }'
350else
351 as_fn_append ()
352 {
353 eval $1=\$$1\$2
354 }
355fi # as_fn_append
356
357@%:@ as_fn_arith ARG...
358@%:@ ------------------
359@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
360@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
361@%:@ must be portable across @S|@(()) and expr.
362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363 eval 'as_fn_arith ()
364 {
365 as_val=$(( $* ))
366 }'
367else
368 as_fn_arith ()
369 {
370 as_val=`expr "$@" || test $? -eq 1`
371 }
372fi # as_fn_arith
373
374
375@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
376@%:@ ----------------------------------------
377@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379@%:@ script with STATUS, using 1 if that was 0.
380as_fn_error ()
381{
382 as_status=$1; test $as_status -eq 0 && as_status=1
383 if test "$4"; then
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386 fi
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
389} @%:@ as_fn_error
390
391if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 as_expr=expr
394else
395 as_expr=false
396fi
397
398if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 as_basename=basename
400else
401 as_basename=false
402fi
403
404if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_dirname=dirname
406else
407 as_dirname=false
408fi
409
410as_me=`$as_basename -- "$0" ||
411$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414$as_echo X/"$0" |
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\/\)$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\).*/{
424 s//\1/
425 q
426 }
427 s/.*/./; q'`
428
429# Avoid depending upon Character Ranges.
430as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433as_cr_digits='0123456789'
434as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
443 p
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
449 b
450 :lineno
451 N
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
466}
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in @%:@(((((
470-n*)
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 xy) ECHO_C='\c';;
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475 ECHO_T=' ';;
476 esac;;
477*)
478 ECHO_N='-n';;
479esac
480
481rm -f conf$$ conf$$.exe conf$$.file
482if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
484else
485 rm -f conf$$.dir
486 mkdir conf$$.dir 2>/dev/null
487fi
488if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s='ln -s'
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496 as_ln_s='cp -p'
497 elif ln conf$$.file conf$$ 2>/dev/null; then
498 as_ln_s=ln
499 else
500 as_ln_s='cp -p'
501 fi
502else
503 as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
510else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513fi
514
515if test -x / >/dev/null 2>&1; then
516 as_test_x='test -x'
517else
518 if ls -dL / >/dev/null 2>&1; then
519 as_ls_L_option=L
520 else
521 as_ls_L_option=
522 fi
523 as_test_x='
524 eval sh -c '\''
525 if test -d "$1"; then
526 test -d "$1/.";
527 else
528 case $1 in @%:@(
529 -*)set "./$1";;
530 esac;
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
532 ???[sx]*):;;*)false;;esac;fi
533 '\'' sh
534 '
535fi
536as_executable_p=$as_test_x
537
538# Sed expression to map a string onto a valid CPP name.
539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541# Sed expression to map a string onto a valid variable name.
542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547test -n "$DJDIR" || exec 7<&0 </dev/null
548exec 6>&1
549
550# Name of the host.
551# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552# so uname gets run too.
553ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555#
556# Initializations.
557#
558ac_default_prefix=/usr/local
559ac_clean_files=
560ac_config_libobj_dir=.
561LIB@&t@OBJS=
562cross_compiling=no
563subdirs=
564MFLAGS=
565MAKEFLAGS=
566
567# Identity of this package.
568PACKAGE_NAME=
569PACKAGE_TARNAME=
570PACKAGE_VERSION=
571PACKAGE_STRING=
572PACKAGE_BUGREPORT=
573PACKAGE_URL=
574
575ac_unique_file="src/thread.cpp"
576# Factoring default headers for most tests.
577ac_includes_default="\
578#include <stdio.h>
579#ifdef HAVE_SYS_TYPES_H
580# include <sys/types.h>
581#endif
582#ifdef HAVE_SYS_STAT_H
583# include <sys/stat.h>
584#endif
585#ifdef STDC_HEADERS
586# include <stdlib.h>
587# include <stddef.h>
588#else
589# ifdef HAVE_STDLIB_H
590# include <stdlib.h>
591# endif
592#endif
593#ifdef HAVE_STRING_H
594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595# include <memory.h>
596# endif
597# include <string.h>
598#endif
599#ifdef HAVE_STRINGS_H
600# include <strings.h>
601#endif
602#ifdef HAVE_INTTYPES_H
603# include <inttypes.h>
604#endif
605#ifdef HAVE_STDINT_H
606# include <stdint.h>
607#endif
608#ifdef HAVE_UNISTD_H
609# include <unistd.h>
610#endif"
611
612ac_subst_vars='am__EXEEXT_FALSE
613am__EXEEXT_TRUE
614LTLIBOBJS
615LIB@&t@OBJS
616LIB_MAJOR
617LIB_VERSION
618GETOPT_LONG_FALSE
619GETOPT_LONG_TRUE
620DOXY_FALSE
621DOXY_TRUE
622DOXYGEN
623etc_confdir
624STAGE2
625BASE_LIB
626MODULE_FLAGS
627SHARED_FLAGS
628COMMON_FLAGS
629ost_cv_dynloader
630EXTRAS_FALSE
631EXTRAS_TRUE
632WIN32_FALSE
633WIN32_TRUE
634incprefix
635CCXX_DIR
636KDOC_DIR
637WARN_FLAGS
638WITH_CPPUNIT_TESTS_FALSE
639WITH_CPPUNIT_TESTS_TRUE
640CPPUNIT_LIBS
641SSL_LIBS
642ZSTREAM_LIBS
643SOCKET_LIBS
644PTHREAD_CC
645THREAD_LIBS
646THREAD_FLAGS
647thrprefix
648DYN_LOADER
649LIBGETOPTOBJS
650GETOPT_LIBS
651WINVERSION
652FTPDIR
653MAINT
654MAINTAINER_MODE_FALSE
655MAINTAINER_MODE_TRUE
656LT_CCXX_VERSION
657LT_MINOR
658LT_MAJOR
659LT_SUBVER
660LT_RELEASE
661am__fastdepCXX_FALSE
662am__fastdepCXX_TRUE
663CXXDEPMODE
664am__fastdepCC_FALSE
665am__fastdepCC_TRUE
666CCDEPMODE
667AMDEPBACKSLASH
668AMDEP_FALSE
669AMDEP_TRUE
670am__quote
671am__include
672DEPDIR
673am__untar
674am__tar
675AMTAR
676am__leading_dot
677SET_MAKE
678mkdir_p
679MKDIR_P
680INSTALL_STRIP_PROGRAM
681install_sh
682MAKEINFO
683AUTOHEADER
684AUTOMAKE
685AUTOCONF
686ACLOCAL
687VERSION
688PACKAGE
689CYGPATH_W
690am__isrc
691INSTALL_DATA
692INSTALL_SCRIPT
693INSTALL_PROGRAM
694OTOOL64
695OTOOL
696LIPO
697NMEDIT
698DSYMUTIL
699MANIFEST_TOOL
700AWK
701RANLIB
702STRIP
703ac_ct_AR
704AR
705LN_S
706NM
707ac_ct_DUMPBIN
708DUMPBIN
709LD
710FGREP
711SED
712LIBTOOL
713OBJDUMP
714DLLTOOL
715AS
716MSWIN32_FALSE
717MSWIN32_TRUE
718EGREP
719GREP
720CXXCPP
721ac_ct_CXX
722CXXFLAGS
723CPP
724OBJEXT
725EXEEXT
726ac_ct_CC
727CPPFLAGS
728LDFLAGS
729CFLAGS
730target_os
731target_vendor
732target_cpu
733target
734host_os
735host_vendor
736host_cpu
737host
738build_os
739build_vendor
740build_cpu
741build
742ccincludedir
743CXX
744CC
745target_alias
746host_alias
747build_alias
748LIBS
749ECHO_T
750ECHO_N
751ECHO_C
752DEFS
753mandir
754localedir
755libdir
756psdir
757pdfdir
758dvidir
759htmldir
760infodir
761docdir
762oldincludedir
763includedir
764localstatedir
765sharedstatedir
766sysconfdir
767datadir
768datarootdir
769libexecdir
770sbindir
771bindir
772program_transform_name
773prefix
774exec_prefix
775PACKAGE_URL
776PACKAGE_BUGREPORT
777PACKAGE_STRING
778PACKAGE_VERSION
779PACKAGE_TARNAME
780PACKAGE_NAME
781PATH_SEPARATOR
782SHELL'
783ac_subst_files=''
784ac_user_opts='
785enable_option_checking
786with_lsb
787with_wininc
788with_winlib
789enable_shared
790enable_static
791with_pic
792enable_fast_install
793with_gnu_ld
794with_sysroot
795enable_libtool_lock
796enable_dependency_tracking
797enable_maintainer_mode
798with_pthread
799with_linuxthreads
800with_ipv6
801with_nat
802with_monotonic
803with_extras
804with_gnutls
805with_openssl
806with_compression
807with_memaudit
808with_cppunit
809with_exceptions
810with_stlport
811enable_debug
812enable_profiling
813'
814 ac_precious_vars='build_alias
815host_alias
816target_alias
817CC
818CFLAGS
819LDFLAGS
820LIBS
821CPPFLAGS
822CPP
823CXX
824CXXFLAGS
825CCC
826CXXCPP'
827
828
829# Initialize some variables set by options.
830ac_init_help=
831ac_init_version=false
832ac_unrecognized_opts=
833ac_unrecognized_sep=
834# The variables have the same names as the options, with
835# dashes changed to underlines.
836cache_file=/dev/null
837exec_prefix=NONE
838no_create=
839no_recursion=
840prefix=NONE
841program_prefix=NONE
842program_suffix=NONE
843program_transform_name=s,x,x,
844silent=
845site=
846srcdir=
847verbose=
848x_includes=NONE
849x_libraries=NONE
850
851# Installation directory options.
852# These are left unexpanded so users can "make install exec_prefix=/foo"
853# and all the variables that are supposed to be based on exec_prefix
854# by default will actually change.
855# Use braces instead of parens because sh, perl, etc. also accept them.
856# (The list follows the same order as the GNU Coding Standards.)
857bindir='${exec_prefix}/bin'
858sbindir='${exec_prefix}/sbin'
859libexecdir='${exec_prefix}/libexec'
860datarootdir='${prefix}/share'
861datadir='${datarootdir}'
862sysconfdir='${prefix}/etc'
863sharedstatedir='${prefix}/com'
864localstatedir='${prefix}/var'
865includedir='${prefix}/include'
866oldincludedir='/usr/include'
867docdir='${datarootdir}/doc/${PACKAGE}'
868infodir='${datarootdir}/info'
869htmldir='${docdir}'
870dvidir='${docdir}'
871pdfdir='${docdir}'
872psdir='${docdir}'
873libdir='${exec_prefix}/lib'
874localedir='${datarootdir}/locale'
875mandir='${datarootdir}/man'
876
877ac_prev=
878ac_dashdash=
879for ac_option
880do
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
883 eval $ac_prev=\$ac_option
884 ac_prev=
885 continue
886 fi
887
888 case $ac_option in
889 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890 *=) ac_optarg= ;;
891 *) ac_optarg=yes ;;
892 esac
893
894 # Accept the important Cygnus configure options, so we can diagnose typos.
895
896 case $ac_dashdash$ac_option in
897 --)
898 ac_dashdash=yes ;;
899
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 bindir=$ac_optarg ;;
904
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
909
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
916
917 --config-cache | -C)
918 cache_file=config.cache ;;
919
920 -datadir | --datadir | --datadi | --datad)
921 ac_prev=datadir ;;
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
924
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
931
932 -disable-* | --disable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
940 *"
941"enable_$ac_useropt"
942"*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=no ;;
947
948 -docdir | --docdir | --docdi | --doc | --do)
949 ac_prev=docdir ;;
950 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951 docdir=$ac_optarg ;;
952
953 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954 ac_prev=dvidir ;;
955 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956 dvidir=$ac_optarg ;;
957
958 -enable-* | --enable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error $? "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
966 *"
967"enable_$ac_useropt"
968"*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=\$ac_optarg ;;
973
974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976 | --exec | --exe | --ex)
977 ac_prev=exec_prefix ;;
978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980 | --exec=* | --exe=* | --ex=*)
981 exec_prefix=$ac_optarg ;;
982
983 -gas | --gas | --ga | --g)
984 # Obsolete; use --with-gas.
985 with_gas=yes ;;
986
987 -help | --help | --hel | --he | -h)
988 ac_init_help=long ;;
989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990 ac_init_help=recursive ;;
991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992 ac_init_help=short ;;
993
994 -host | --host | --hos | --ho)
995 ac_prev=host_alias ;;
996 -host=* | --host=* | --hos=* | --ho=*)
997 host_alias=$ac_optarg ;;
998
999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000 ac_prev=htmldir ;;
1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002 | --ht=*)
1003 htmldir=$ac_optarg ;;
1004
1005 -includedir | --includedir | --includedi | --included | --include \
1006 | --includ | --inclu | --incl | --inc)
1007 ac_prev=includedir ;;
1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009 | --includ=* | --inclu=* | --incl=* | --inc=*)
1010 includedir=$ac_optarg ;;
1011
1012 -infodir | --infodir | --infodi | --infod | --info | --inf)
1013 ac_prev=infodir ;;
1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015 infodir=$ac_optarg ;;
1016
1017 -libdir | --libdir | --libdi | --libd)
1018 ac_prev=libdir ;;
1019 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020 libdir=$ac_optarg ;;
1021
1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023 | --libexe | --libex | --libe)
1024 ac_prev=libexecdir ;;
1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026 | --libexe=* | --libex=* | --libe=*)
1027 libexecdir=$ac_optarg ;;
1028
1029 -localedir | --localedir | --localedi | --localed | --locale)
1030 ac_prev=localedir ;;
1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032 localedir=$ac_optarg ;;
1033
1034 -localstatedir | --localstatedir | --localstatedi | --localstated \
1035 | --localstate | --localstat | --localsta | --localst | --locals)
1036 ac_prev=localstatedir ;;
1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039 localstatedir=$ac_optarg ;;
1040
1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042 ac_prev=mandir ;;
1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044 mandir=$ac_optarg ;;
1045
1046 -nfp | --nfp | --nf)
1047 # Obsolete; use --without-fp.
1048 with_fp=no ;;
1049
1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051 | --no-cr | --no-c | -n)
1052 no_create=yes ;;
1053
1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056 no_recursion=yes ;;
1057
1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060 | --oldin | --oldi | --old | --ol | --o)
1061 ac_prev=oldincludedir ;;
1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065 oldincludedir=$ac_optarg ;;
1066
1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068 ac_prev=prefix ;;
1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070 prefix=$ac_optarg ;;
1071
1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073 | --program-pre | --program-pr | --program-p)
1074 ac_prev=program_prefix ;;
1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077 program_prefix=$ac_optarg ;;
1078
1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080 | --program-suf | --program-su | --program-s)
1081 ac_prev=program_suffix ;;
1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084 program_suffix=$ac_optarg ;;
1085
1086 -program-transform-name | --program-transform-name \
1087 | --program-transform-nam | --program-transform-na \
1088 | --program-transform-n | --program-transform- \
1089 | --program-transform | --program-transfor \
1090 | --program-transfo | --program-transf \
1091 | --program-trans | --program-tran \
1092 | --progr-tra | --program-tr | --program-t)
1093 ac_prev=program_transform_name ;;
1094 -program-transform-name=* | --program-transform-name=* \
1095 | --program-transform-nam=* | --program-transform-na=* \
1096 | --program-transform-n=* | --program-transform-=* \
1097 | --program-transform=* | --program-transfor=* \
1098 | --program-transfo=* | --program-transf=* \
1099 | --program-trans=* | --program-tran=* \
1100 | --progr-tra=* | --program-tr=* | --program-t=*)
1101 program_transform_name=$ac_optarg ;;
1102
1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104 ac_prev=pdfdir ;;
1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106 pdfdir=$ac_optarg ;;
1107
1108 -psdir | --psdir | --psdi | --psd | --ps)
1109 ac_prev=psdir ;;
1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111 psdir=$ac_optarg ;;
1112
1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114 | -silent | --silent | --silen | --sile | --sil)
1115 silent=yes ;;
1116
1117 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118 ac_prev=sbindir ;;
1119 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120 | --sbi=* | --sb=*)
1121 sbindir=$ac_optarg ;;
1122
1123 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125 | --sharedst | --shareds | --shared | --share | --shar \
1126 | --sha | --sh)
1127 ac_prev=sharedstatedir ;;
1128 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131 | --sha=* | --sh=*)
1132 sharedstatedir=$ac_optarg ;;
1133
1134 -site | --site | --sit)
1135 ac_prev=site ;;
1136 -site=* | --site=* | --sit=*)
1137 site=$ac_optarg ;;
1138
1139 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140 ac_prev=srcdir ;;
1141 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142 srcdir=$ac_optarg ;;
1143
1144 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145 | --syscon | --sysco | --sysc | --sys | --sy)
1146 ac_prev=sysconfdir ;;
1147 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149 sysconfdir=$ac_optarg ;;
1150
1151 -target | --target | --targe | --targ | --tar | --ta | --t)
1152 ac_prev=target_alias ;;
1153 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154 target_alias=$ac_optarg ;;
1155
1156 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157 verbose=yes ;;
1158
1159 -version | --version | --versio | --versi | --vers | -V)
1160 ac_init_version=: ;;
1161
1162 -with-* | --with-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error $? "invalid package name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1170 *"
1171"with_$ac_useropt"
1172"*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval with_$ac_useropt=\$ac_optarg ;;
1177
1178 -without-* | --without-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error $? "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187"with_$ac_useropt"
1188"*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=no ;;
1193
1194 --x)
1195 # Obsolete; use --with-x.
1196 with_x=yes ;;
1197
1198 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199 | --x-incl | --x-inc | --x-in | --x-i)
1200 ac_prev=x_includes ;;
1201 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1203 x_includes=$ac_optarg ;;
1204
1205 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207 ac_prev=x_libraries ;;
1208 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1210 x_libraries=$ac_optarg ;;
1211
1212 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1213Try \`$0 --help' for more information"
1214 ;;
1215
1216 *=*)
1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218 # Reject names that are not valid shell variable names.
1219 case $ac_envvar in #(
1220 '' | [0-9]* | *[!_$as_cr_alnum]* )
1221 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1222 esac
1223 eval $ac_envvar=\$ac_optarg
1224 export $ac_envvar ;;
1225
1226 *)
1227 # FIXME: should be removed in autoconf 3.0.
1228 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1229 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1231 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1232 ;;
1233
1234 esac
1235done
1236
1237if test -n "$ac_prev"; then
1238 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1239 as_fn_error $? "missing argument to $ac_option"
1240fi
1241
1242if test -n "$ac_unrecognized_opts"; then
1243 case $enable_option_checking in
1244 no) ;;
1245 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1246 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247 esac
1248fi
1249
1250# Check all directory arguments for consistency.
1251for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252 datadir sysconfdir sharedstatedir localstatedir includedir \
1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254 libdir localedir mandir
1255do
1256 eval ac_val=\$$ac_var
1257 # Remove trailing slashes.
1258 case $ac_val in
1259 */ )
1260 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261 eval $ac_var=\$ac_val;;
1262 esac
1263 # Be sure to have absolute directory names.
1264 case $ac_val in
1265 [\\/$]* | ?:[\\/]* ) continue;;
1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267 esac
1268 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1269done
1270
1271# There might be people who depend on the old broken behavior: `$host'
1272# used to hold the argument of --host etc.
1273# FIXME: To remove some day.
1274build=$build_alias
1275host=$host_alias
1276target=$target_alias
1277
1278# FIXME: To remove some day.
1279if test "x$host_alias" != x; then
1280 if test "x$build_alias" = x; then
1281 cross_compiling=maybe
1282 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1283 If a cross compiler is detected then cross compile mode will be used" >&2
1284 elif test "x$build_alias" != "x$host_alias"; then
1285 cross_compiling=yes
1286 fi
1287fi
1288
1289ac_tool_prefix=
1290test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291
1292test "$silent" = yes && exec 6>/dev/null
1293
1294
1295ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296ac_ls_di=`ls -di .` &&
1297ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 as_fn_error $? "working directory cannot be determined"
1299test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 as_fn_error $? "pwd does not report name of working directory"
1301
1302
1303# Find the source files, if location was not specified.
1304if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312$as_echo X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\/\)[^/].*/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\/\)$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\).*/{
1326 s//\1/
1327 q
1328 }
1329 s/.*/./; q'`
1330 srcdir=$ac_confdir
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 srcdir=..
1333 fi
1334else
1335 ac_srcdir_defaulted=no
1336fi
1337if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1340fi
1341ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342ac_abs_confdir=`(
1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1344 pwd)`
1345# When building in place, set srcdir=.
1346if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 srcdir=.
1348fi
1349# Remove unnecessary trailing slashes from srcdir.
1350# Double slashes in file names in object file debugging info
1351# mess up M-x gdb in Emacs.
1352case $srcdir in
1353*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354esac
1355for ac_var in $ac_precious_vars; do
1356 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_env_${ac_var}_value=\$${ac_var}
1358 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360done
1361
1362#
1363# Report the --help message.
1364#
1365if test "$ac_init_help" = "long"; then
1366 # Omit some internal or obsolete options to make the list less imposing.
1367 # This message is too long to be a string in the A/UX 3.1 sh.
1368 cat <<_ACEOF
1369\`configure' configures this package to adapt to many kinds of systems.
1370
1371Usage: $0 [OPTION]... [VAR=VALUE]...
1372
1373To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374VAR=VALUE. See below for descriptions of some of the useful variables.
1375
1376Defaults for the options are specified in brackets.
1377
1378Configuration:
1379 -h, --help display this help and exit
1380 --help=short display options specific to this package
1381 --help=recursive display the short help of all the included packages
1382 -V, --version display version information and exit
1383 -q, --quiet, --silent do not print \`checking ...' messages
1384 --cache-file=FILE cache test results in FILE [disabled]
1385 -C, --config-cache alias for \`--cache-file=config.cache'
1386 -n, --no-create do not create output files
1387 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1388
1389Installation directories:
1390 --prefix=PREFIX install architecture-independent files in PREFIX
1391 @<:@@S|@ac_default_prefix@:>@
1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1393 @<:@PREFIX@:>@
1394
1395By default, \`make install' will install all the files in
1396\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1397an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398for instance \`--prefix=\$HOME'.
1399
1400For better control, use the options below.
1401
1402Fine tuning of the installation directories:
1403 --bindir=DIR user executables [EPREFIX/bin]
1404 --sbindir=DIR system admin executables [EPREFIX/sbin]
1405 --libexecdir=DIR program executables [EPREFIX/libexec]
1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1409 --libdir=DIR object code libraries [EPREFIX/lib]
1410 --includedir=DIR C header files [PREFIX/include]
1411 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1414 --infodir=DIR info documentation [DATAROOTDIR/info]
1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1416 --mandir=DIR man documentation [DATAROOTDIR/man]
1417 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1418 --htmldir=DIR html documentation [DOCDIR]
1419 --dvidir=DIR dvi documentation [DOCDIR]
1420 --pdfdir=DIR pdf documentation [DOCDIR]
1421 --psdir=DIR ps documentation [DOCDIR]
1422_ACEOF
1423
1424 cat <<\_ACEOF
1425
1426Program names:
1427 --program-prefix=PREFIX prepend PREFIX to installed program names
1428 --program-suffix=SUFFIX append SUFFIX to installed program names
1429 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1430
1431System types:
1432 --build=BUILD configure for building on BUILD [guessed]
1433 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1434 --target=TARGET configure for building compilers for TARGET [HOST]
1435_ACEOF
1436fi
1437
1438if test -n "$ac_init_help"; then
1439
1440 cat <<\_ACEOF
1441
1442Optional Features:
1443 --disable-option-checking ignore unrecognized --enable/--with options
1444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1446 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1447 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1448 --enable-fast-install@<:@=PKGS@:>@
1449 optimize for fast installation @<:@default=yes@:>@
1450 --disable-libtool-lock avoid locking (might break parallel builds)
1451 --disable-dependency-tracking speeds up one-time build
1452 --enable-dependency-tracking do not reject slow dependency extractors
1453 --enable-maintainer-mode enable make rules and dependencies not useful
1454 (and sometimes confusing) to the casual installer
1455 --enable-debug compile for debugging
1456 --enable-profiling compile for profiling
1457
1458Optional Packages:
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --with-lsb=name Build lsb compliant package
1462 --with-wininc=DIR define windows include directory
1463 --with-winlib=DIR define windows lib directory
1464 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1465 both@:>@
1466 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1467 --with-sysroot=DIR Search for dependent libraries within DIR
1468 (or the compiler's sysroot if not specified).
1469 --with-pthread=lib using specified pthread library
1470 --with-linuxthreads use linux kernel mode library
1471
1472 --without-ipv6 Disable ipv6
1473 --without-nat Disable NAT class interface (pf, ipf or netfilter),
1474 default is enabled.
1475 --without-monotonic Disable monotonic clock
1476 --without-extras Disables extras lib
1477 --with-gnutls Enable gnutls support
1478 --with-openssl Enable openssl support
1479 --without-compression Disable libz compression
1480 --with-memaudit Enable memory auditing
1481 --with-cppunit Build cppunit based test suite
1482 --without-exceptions Disable exception handling
1483 --with-stlport=dir using SGI portable C++ stream library
1484 ie: /usr/local, not all include directory
1485
1486Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1494 CPP C preprocessor
1495 CXX C++ compiler command
1496 CXXFLAGS C++ compiler flags
1497 CXXCPP C++ preprocessor
1498
1499Use these variables to override the choices made by `configure' or to help
1500it to find libraries and programs with nonstandard names/locations.
1501
1502Report bugs to the package provider.
1503_ACEOF
1504ac_status=$?
1505fi
1506
1507if test "$ac_init_help" = "recursive"; then
1508 # If there are subdirs, report their specific --help.
1509 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1510 test -d "$ac_dir" ||
1511 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1512 continue
1513 ac_builddir=.
1514
1515case "$ac_dir" in
1516.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517*)
1518 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1519 # A ".." for each directory in $ac_dir_suffix.
1520 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1521 case $ac_top_builddir_sub in
1522 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1524 esac ;;
1525esac
1526ac_abs_top_builddir=$ac_pwd
1527ac_abs_builddir=$ac_pwd$ac_dir_suffix
1528# for backward compatibility:
1529ac_top_builddir=$ac_top_build_prefix
1530
1531case $srcdir in
1532 .) # We are building in place.
1533 ac_srcdir=.
1534 ac_top_srcdir=$ac_top_builddir_sub
1535 ac_abs_top_srcdir=$ac_pwd ;;
1536 [\\/]* | ?:[\\/]* ) # Absolute name.
1537 ac_srcdir=$srcdir$ac_dir_suffix;
1538 ac_top_srcdir=$srcdir
1539 ac_abs_top_srcdir=$srcdir ;;
1540 *) # Relative name.
1541 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1542 ac_top_srcdir=$ac_top_build_prefix$srcdir
1543 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544esac
1545ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546
1547 cd "$ac_dir" || { ac_status=$?; continue; }
1548 # Check for guested configure.
1549 if test -f "$ac_srcdir/configure.gnu"; then
1550 echo &&
1551 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1552 elif test -f "$ac_srcdir/configure"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure" --help=recursive
1555 else
1556 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557 fi || ac_status=$?
1558 cd "$ac_pwd" || { ac_status=$?; break; }
1559 done
1560fi
1561
1562test -n "$ac_init_help" && exit $ac_status
1563if $ac_init_version; then
1564 cat <<\_ACEOF
1565configure
1566generated by GNU Autoconf 2.68
1567
1568Copyright (C) 2010 Free Software Foundation, Inc.
1569This configure script is free software; the Free Software Foundation
1570gives unlimited permission to copy, distribute and modify it.
1571_ACEOF
1572 exit
1573fi
1574
1575## ------------------------ ##
1576## Autoconf initialization. ##
1577## ------------------------ ##
1578
1579@%:@ ac_fn_c_try_compile LINENO
1580@%:@ --------------------------
1581@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1582ac_fn_c_try_compile ()
1583{
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 rm -f conftest.$ac_objext
1586 if { { ac_try="$ac_compile"
1587case "(($ac_try" in
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1590esac
1591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592$as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_compile") 2>conftest.err
1594 ac_status=$?
1595 if test -s conftest.err; then
1596 grep -v '^ *+' conftest.err >conftest.er1
1597 cat conftest.er1 >&5
1598 mv -f conftest.er1 conftest.err
1599 fi
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } && {
1602 test -z "$ac_c_werror_flag" ||
1603 test ! -s conftest.err
1604 } && test -s conftest.$ac_objext; then :
1605 ac_retval=0
1606else
1607 $as_echo "$as_me: failed program was:" >&5
1608sed 's/^/| /' conftest.$ac_ext >&5
1609
1610 ac_retval=1
1611fi
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1614
1615} @%:@ ac_fn_c_try_compile
1616
1617@%:@ ac_fn_c_try_cpp LINENO
1618@%:@ ----------------------
1619@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1620ac_fn_c_try_cpp ()
1621{
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 if { { ac_try="$ac_cpp conftest.$ac_ext"
1624case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627esac
1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629$as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1631 ac_status=$?
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1636 fi
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } > conftest.i && {
1639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 }; then :
1642 ac_retval=0
1643else
1644 $as_echo "$as_me: failed program was:" >&5
1645sed 's/^/| /' conftest.$ac_ext >&5
1646
1647 ac_retval=1
1648fi
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1651
1652} @%:@ ac_fn_c_try_cpp
1653
1654@%:@ ac_fn_cxx_try_compile LINENO
1655@%:@ ----------------------------
1656@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1657ac_fn_cxx_try_compile ()
1658{
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 rm -f conftest.$ac_objext
1661 if { { ac_try="$ac_compile"
1662case "(($ac_try" in
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1665esac
1666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667$as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_compile") 2>conftest.err
1669 ac_status=$?
1670 if test -s conftest.err; then
1671 grep -v '^ *+' conftest.err >conftest.er1
1672 cat conftest.er1 >&5
1673 mv -f conftest.er1 conftest.err
1674 fi
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && {
1677 test -z "$ac_cxx_werror_flag" ||
1678 test ! -s conftest.err
1679 } && test -s conftest.$ac_objext; then :
1680 ac_retval=0
1681else
1682 $as_echo "$as_me: failed program was:" >&5
1683sed 's/^/| /' conftest.$ac_ext >&5
1684
1685 ac_retval=1
1686fi
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 as_fn_set_status $ac_retval
1689
1690} @%:@ ac_fn_cxx_try_compile
1691
1692@%:@ ac_fn_cxx_try_cpp LINENO
1693@%:@ ------------------------
1694@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1695ac_fn_cxx_try_cpp ()
1696{
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_cpp conftest.$ac_ext"
1699case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1711 fi
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } > conftest.i && {
1714 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1715 test ! -s conftest.err
1716 }; then :
1717 ac_retval=0
1718else
1719 $as_echo "$as_me: failed program was:" >&5
1720sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=1
1723fi
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1726
1727} @%:@ ac_fn_cxx_try_cpp
1728
1729@%:@ ac_fn_cxx_try_link LINENO
1730@%:@ -------------------------
1731@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1732ac_fn_cxx_try_link ()
1733{
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 rm -f conftest.$ac_objext conftest$ac_exeext
1736 if { { ac_try="$ac_link"
1737case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>conftest.err
1744 ac_status=$?
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1749 fi
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_cxx_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest$ac_exeext && {
1755 test "$cross_compiling" = yes ||
1756 $as_test_x conftest$ac_exeext
1757 }; then :
1758 ac_retval=0
1759else
1760 $as_echo "$as_me: failed program was:" >&5
1761sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=1
1764fi
1765 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1766 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1767 # interfere with the next link command; also delete a directory that is
1768 # left behind by Apple's compiler. We do this before executing the actions.
1769 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771 as_fn_set_status $ac_retval
1772
1773} @%:@ ac_fn_cxx_try_link
1774
1775@%:@ ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1776@%:@ ---------------------------------------------------------
1777@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1778@%:@ the include files in INCLUDES and setting the cache variable VAR
1779@%:@ accordingly.
1780ac_fn_cxx_check_header_mongrel ()
1781{
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 if eval \${$3+:} false; then :
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785$as_echo_n "checking for $2... " >&6; }
1786if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1788fi
1789eval ac_res=\$$3
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791$as_echo "$ac_res" >&6; }
1792else
1793 # Is the header compilable?
1794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1795$as_echo_n "checking $2 usability... " >&6; }
1796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797/* end confdefs.h. */
1798$4
1799@%:@include <$2>
1800_ACEOF
1801if ac_fn_cxx_try_compile "$LINENO"; then :
1802 ac_header_compiler=yes
1803else
1804 ac_header_compiler=no
1805fi
1806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1808$as_echo "$ac_header_compiler" >&6; }
1809
1810# Is the header present?
1811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1812$as_echo_n "checking $2 presence... " >&6; }
1813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814/* end confdefs.h. */
1815@%:@include <$2>
1816_ACEOF
1817if ac_fn_cxx_try_cpp "$LINENO"; then :
1818 ac_header_preproc=yes
1819else
1820 ac_header_preproc=no
1821fi
1822rm -f conftest.err conftest.i conftest.$ac_ext
1823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1824$as_echo "$ac_header_preproc" >&6; }
1825
1826# So? What about this header?
1827case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1828 yes:no: )
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1830$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1832$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833 ;;
1834 no:yes:* )
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1836$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1838$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1840$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1842$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1844$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1845 ;;
1846esac
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848$as_echo_n "checking for $2... " >&6; }
1849if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1851else
1852 eval "$3=\$ac_header_compiler"
1853fi
1854eval ac_res=\$$3
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856$as_echo "$ac_res" >&6; }
1857fi
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859
1860} @%:@ ac_fn_cxx_check_header_mongrel
1861
1862@%:@ ac_fn_cxx_try_run LINENO
1863@%:@ ------------------------
1864@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1865@%:@ that executables *can* be run.
1866ac_fn_cxx_try_run ()
1867{
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 if { { ac_try="$ac_link"
1870case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873esac
1874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875$as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_link") 2>&5
1877 ac_status=$?
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1880 { { case "(($ac_try" in
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1883esac
1884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885$as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_try") 2>&5
1887 ac_status=$?
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; }; }; then :
1890 ac_retval=0
1891else
1892 $as_echo "$as_me: program exited with status $ac_status" >&5
1893 $as_echo "$as_me: failed program was:" >&5
1894sed 's/^/| /' conftest.$ac_ext >&5
1895
1896 ac_retval=$ac_status
1897fi
1898 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900 as_fn_set_status $ac_retval
1901
1902} @%:@ ac_fn_cxx_try_run
1903
1904@%:@ ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1905@%:@ ---------------------------------------------------------
1906@%:@ Tests whether HEADER exists and can be compiled using the include files in
1907@%:@ INCLUDES, setting the cache variable VAR accordingly.
1908ac_fn_cxx_check_header_compile ()
1909{
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912$as_echo_n "checking for $2... " >&6; }
1913if eval \${$3+:} false; then :
1914 $as_echo_n "(cached) " >&6
1915else
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917/* end confdefs.h. */
1918$4
1919@%:@include <$2>
1920_ACEOF
1921if ac_fn_cxx_try_compile "$LINENO"; then :
1922 eval "$3=yes"
1923else
1924 eval "$3=no"
1925fi
1926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927fi
1928eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930$as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932
1933} @%:@ ac_fn_cxx_check_header_compile
1934
1935@%:@ ac_fn_c_try_link LINENO
1936@%:@ -----------------------
1937@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1938ac_fn_c_try_link ()
1939{
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 rm -f conftest.$ac_objext conftest$ac_exeext
1942 if { { ac_try="$ac_link"
1943case "(($ac_try" in
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1946esac
1947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948$as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_link") 2>conftest.err
1950 ac_status=$?
1951 if test -s conftest.err; then
1952 grep -v '^ *+' conftest.err >conftest.er1
1953 cat conftest.er1 >&5
1954 mv -f conftest.er1 conftest.err
1955 fi
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; } && {
1958 test -z "$ac_c_werror_flag" ||
1959 test ! -s conftest.err
1960 } && test -s conftest$ac_exeext && {
1961 test "$cross_compiling" = yes ||
1962 $as_test_x conftest$ac_exeext
1963 }; then :
1964 ac_retval=0
1965else
1966 $as_echo "$as_me: failed program was:" >&5
1967sed 's/^/| /' conftest.$ac_ext >&5
1968
1969 ac_retval=1
1970fi
1971 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1972 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1973 # interfere with the next link command; also delete a directory that is
1974 # left behind by Apple's compiler. We do this before executing the actions.
1975 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 as_fn_set_status $ac_retval
1978
1979} @%:@ ac_fn_c_try_link
1980
1981@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1982@%:@ -------------------------------------------------------
1983@%:@ Tests whether HEADER exists and can be compiled using the include files in
1984@%:@ INCLUDES, setting the cache variable VAR accordingly.
1985ac_fn_c_check_header_compile ()
1986{
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989$as_echo_n "checking for $2... " >&6; }
1990if eval \${$3+:} false; then :
1991 $as_echo_n "(cached) " >&6
1992else
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994/* end confdefs.h. */
1995$4
1996@%:@include <$2>
1997_ACEOF
1998if ac_fn_c_try_compile "$LINENO"; then :
1999 eval "$3=yes"
2000else
2001 eval "$3=no"
2002fi
2003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004fi
2005eval ac_res=\$$3
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007$as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009
2010} @%:@ ac_fn_c_check_header_compile
2011
2012@%:@ ac_fn_c_check_func LINENO FUNC VAR
2013@%:@ ----------------------------------
2014@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
2015ac_fn_c_check_func ()
2016{
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2019$as_echo_n "checking for $2... " >&6; }
2020if eval \${$3+:} false; then :
2021 $as_echo_n "(cached) " >&6
2022else
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024/* end confdefs.h. */
2025/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2027#define $2 innocuous_$2
2028
2029/* System header to define __stub macros and hopefully few prototypes,
2030 which can conflict with char $2 (); below.
2031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2032 <limits.h> exists even on freestanding compilers. */
2033
2034#ifdef __STDC__
2035# include <limits.h>
2036#else
2037# include <assert.h>
2038#endif
2039
2040#undef $2
2041
2042/* Override any GCC internal prototype to avoid an error.
2043 Use char because int might match the return type of a GCC
2044 builtin and then its argument prototype would still apply. */
2045#ifdef __cplusplus
2046extern "C"
2047#endif
2048char $2 ();
2049/* The GNU C library defines this for functions which it implements
2050 to always fail with ENOSYS. Some functions are actually named
2051 something starting with __ and the normal name is an alias. */
2052#if defined __stub_$2 || defined __stub___$2
2053choke me
2054#endif
2055
2056int
2057main ()
2058{
2059return $2 ();
2060 ;
2061 return 0;
2062}
2063_ACEOF
2064if ac_fn_c_try_link "$LINENO"; then :
2065 eval "$3=yes"
2066else
2067 eval "$3=no"
2068fi
2069rm -f core conftest.err conftest.$ac_objext \
2070 conftest$ac_exeext conftest.$ac_ext
2071fi
2072eval ac_res=\$$3
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074$as_echo "$ac_res" >&6; }
2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076
2077} @%:@ ac_fn_c_check_func
2078
2079@%:@ ac_fn_cxx_check_func LINENO FUNC VAR
2080@%:@ ------------------------------------
2081@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
2082ac_fn_cxx_check_func ()
2083{
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086$as_echo_n "checking for $2... " >&6; }
2087if eval \${$3+:} false; then :
2088 $as_echo_n "(cached) " >&6
2089else
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091/* end confdefs.h. */
2092/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2094#define $2 innocuous_$2
2095
2096/* System header to define __stub macros and hopefully few prototypes,
2097 which can conflict with char $2 (); below.
2098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2099 <limits.h> exists even on freestanding compilers. */
2100
2101#ifdef __STDC__
2102# include <limits.h>
2103#else
2104# include <assert.h>
2105#endif
2106
2107#undef $2
2108
2109/* Override any GCC internal prototype to avoid an error.
2110 Use char because int might match the return type of a GCC
2111 builtin and then its argument prototype would still apply. */
2112#ifdef __cplusplus
2113extern "C"
2114#endif
2115char $2 ();
2116/* The GNU C library defines this for functions which it implements
2117 to always fail with ENOSYS. Some functions are actually named
2118 something starting with __ and the normal name is an alias. */
2119#if defined __stub_$2 || defined __stub___$2
2120choke me
2121#endif
2122
2123int
2124main ()
2125{
2126return $2 ();
2127 ;
2128 return 0;
2129}
2130_ACEOF
2131if ac_fn_cxx_try_link "$LINENO"; then :
2132 eval "$3=yes"
2133else
2134 eval "$3=no"
2135fi
2136rm -f core conftest.err conftest.$ac_objext \
2137 conftest$ac_exeext conftest.$ac_ext
2138fi
2139eval ac_res=\$$3
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2141$as_echo "$ac_res" >&6; }
2142 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2143
2144} @%:@ ac_fn_cxx_check_func
2145cat >config.log <<_ACEOF
2146This file contains any messages produced by compilers while
2147running configure, to aid debugging if configure makes a mistake.
2148
2149It was created by $as_me, which was
2150generated by GNU Autoconf 2.68. Invocation command line was
2151
2152 $ $0 $@
2153
2154_ACEOF
2155exec 5>>config.log
2156{
2157cat <<_ASUNAME
2158## --------- ##
2159## Platform. ##
2160## --------- ##
2161
2162hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2163uname -m = `(uname -m) 2>/dev/null || echo unknown`
2164uname -r = `(uname -r) 2>/dev/null || echo unknown`
2165uname -s = `(uname -s) 2>/dev/null || echo unknown`
2166uname -v = `(uname -v) 2>/dev/null || echo unknown`
2167
2168/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2169/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2170
2171/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2172/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2173/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2174/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2175/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2176/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2177/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2178
2179_ASUNAME
2180
2181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182for as_dir in $PATH
2183do
2184 IFS=$as_save_IFS
2185 test -z "$as_dir" && as_dir=.
2186 $as_echo "PATH: $as_dir"
2187 done
2188IFS=$as_save_IFS
2189
2190} >&5
2191
2192cat >&5 <<_ACEOF
2193
2194
2195## ----------- ##
2196## Core tests. ##
2197## ----------- ##
2198
2199_ACEOF
2200
2201
2202# Keep a trace of the command line.
2203# Strip out --no-create and --no-recursion so they do not pile up.
2204# Strip out --silent because we don't want to record it for future runs.
2205# Also quote any args containing shell meta-characters.
2206# Make two passes to allow for proper duplicate-argument suppression.
2207ac_configure_args=
2208ac_configure_args0=
2209ac_configure_args1=
2210ac_must_keep_next=false
2211for ac_pass in 1 2
2212do
2213 for ac_arg
2214 do
2215 case $ac_arg in
2216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2218 | -silent | --silent | --silen | --sile | --sil)
2219 continue ;;
2220 *\'*)
2221 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2222 esac
2223 case $ac_pass in
2224 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2225 2)
2226 as_fn_append ac_configure_args1 " '$ac_arg'"
2227 if test $ac_must_keep_next = true; then
2228 ac_must_keep_next=false # Got value, back to normal.
2229 else
2230 case $ac_arg in
2231 *=* | --config-cache | -C | -disable-* | --disable-* \
2232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2234 | -with-* | --with-* | -without-* | --without-* | --x)
2235 case "$ac_configure_args0 " in
2236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2237 esac
2238 ;;
2239 -* ) ac_must_keep_next=true ;;
2240 esac
2241 fi
2242 as_fn_append ac_configure_args " '$ac_arg'"
2243 ;;
2244 esac
2245 done
2246done
2247{ ac_configure_args0=; unset ac_configure_args0;}
2248{ ac_configure_args1=; unset ac_configure_args1;}
2249
2250# When interrupted or exit'd, cleanup temporary files, and complete
2251# config.log. We remove comments because anyway the quotes in there
2252# would cause problems or look ugly.
2253# WARNING: Use '\'' to represent an apostrophe within the trap.
2254# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2255trap 'exit_status=$?
2256 # Save into config.log some information that might help in debugging.
2257 {
2258 echo
2259
2260 $as_echo "## ---------------- ##
2261## Cache variables. ##
2262## ---------------- ##"
2263 echo
2264 # The following way of writing the cache mishandles newlines in values,
2265(
2266 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2267 eval ac_val=\$$ac_var
2268 case $ac_val in #(
2269 *${as_nl}*)
2270 case $ac_var in #(
2271 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2272$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2273 esac
2274 case $ac_var in #(
2275 _ | IFS | as_nl) ;; #(
2276 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2277 *) { eval $ac_var=; unset $ac_var;} ;;
2278 esac ;;
2279 esac
2280 done
2281 (set) 2>&1 |
2282 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2283 *${as_nl}ac_space=\ *)
2284 sed -n \
2285 "s/'\''/'\''\\\\'\'''\''/g;
2286 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2287 ;; #(
2288 *)
2289 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2290 ;;
2291 esac |
2292 sort
2293)
2294 echo
2295
2296 $as_echo "## ----------------- ##
2297## Output variables. ##
2298## ----------------- ##"
2299 echo
2300 for ac_var in $ac_subst_vars
2301 do
2302 eval ac_val=\$$ac_var
2303 case $ac_val in
2304 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2305 esac
2306 $as_echo "$ac_var='\''$ac_val'\''"
2307 done | sort
2308 echo
2309
2310 if test -n "$ac_subst_files"; then
2311 $as_echo "## ------------------- ##
2312## File substitutions. ##
2313## ------------------- ##"
2314 echo
2315 for ac_var in $ac_subst_files
2316 do
2317 eval ac_val=\$$ac_var
2318 case $ac_val in
2319 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2320 esac
2321 $as_echo "$ac_var='\''$ac_val'\''"
2322 done | sort
2323 echo
2324 fi
2325
2326 if test -s confdefs.h; then
2327 $as_echo "## ----------- ##
2328## confdefs.h. ##
2329## ----------- ##"
2330 echo
2331 cat confdefs.h
2332 echo
2333 fi
2334 test "$ac_signal" != 0 &&
2335 $as_echo "$as_me: caught signal $ac_signal"
2336 $as_echo "$as_me: exit $exit_status"
2337 } >&5
2338 rm -f core *.core core.conftest.* &&
2339 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2340 exit $exit_status
2341' 0
2342for ac_signal in 1 2 13 15; do
2343 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2344done
2345ac_signal=0
2346
2347# confdefs.h avoids OS command line length limits that DEFS can exceed.
2348rm -f -r conftest* confdefs.h
2349
2350$as_echo "/* confdefs.h */" > confdefs.h
2351
2352# Predefined preprocessor variables.
2353
2354cat >>confdefs.h <<_ACEOF
2355@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2356_ACEOF
2357
2358cat >>confdefs.h <<_ACEOF
2359@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2360_ACEOF
2361
2362cat >>confdefs.h <<_ACEOF
2363@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2364_ACEOF
2365
2366cat >>confdefs.h <<_ACEOF
2367@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2368_ACEOF
2369
2370cat >>confdefs.h <<_ACEOF
2371@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2372_ACEOF
2373
2374cat >>confdefs.h <<_ACEOF
2375@%:@define PACKAGE_URL "$PACKAGE_URL"
2376_ACEOF
2377
2378
2379# Let the site file select an alternate cache file if it wants to.
2380# Prefer an explicitly selected file to automatically selected ones.
2381ac_site_file1=NONE
2382ac_site_file2=NONE
2383if test -n "$CONFIG_SITE"; then
2384 # We do not want a PATH search for config.site.
2385 case $CONFIG_SITE in @%:@((
2386 -*) ac_site_file1=./$CONFIG_SITE;;
2387 */*) ac_site_file1=$CONFIG_SITE;;
2388 *) ac_site_file1=./$CONFIG_SITE;;
2389 esac
2390elif test "x$prefix" != xNONE; then
2391 ac_site_file1=$prefix/share/config.site
2392 ac_site_file2=$prefix/etc/config.site
2393else
2394 ac_site_file1=$ac_default_prefix/share/config.site
2395 ac_site_file2=$ac_default_prefix/etc/config.site
2396fi
2397for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2398do
2399 test "x$ac_site_file" = xNONE && continue
2400 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2402$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2403 sed 's/^/| /' "$ac_site_file" >&5
2404 . "$ac_site_file" \
2405 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2407as_fn_error $? "failed to load site script $ac_site_file
2408See \`config.log' for more details" "$LINENO" 5; }
2409 fi
2410done
2411
2412if test -r "$cache_file"; then
2413 # Some versions of bash will fail to source /dev/null (special files
2414 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2415 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2417$as_echo "$as_me: loading cache $cache_file" >&6;}
2418 case $cache_file in
2419 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2420 *) . "./$cache_file";;
2421 esac
2422 fi
2423else
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2425$as_echo "$as_me: creating cache $cache_file" >&6;}
2426 >$cache_file
2427fi
2428
2429# Check that the precious variables saved in the cache have kept the same
2430# value.
2431ac_cache_corrupted=false
2432for ac_var in $ac_precious_vars; do
2433 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2434 eval ac_new_set=\$ac_env_${ac_var}_set
2435 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2436 eval ac_new_val=\$ac_env_${ac_var}_value
2437 case $ac_old_set,$ac_new_set in
2438 set,)
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2440$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2441 ac_cache_corrupted=: ;;
2442 ,set)
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2444$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2445 ac_cache_corrupted=: ;;
2446 ,);;
2447 *)
2448 if test "x$ac_old_val" != "x$ac_new_val"; then
2449 # differences in whitespace do not lead to failure.
2450 ac_old_val_w=`echo x $ac_old_val`
2451 ac_new_val_w=`echo x $ac_new_val`
2452 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2454$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2455 ac_cache_corrupted=:
2456 else
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2458$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2459 eval $ac_var=\$ac_old_val
2460 fi
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2462$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2464$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2465 fi;;
2466 esac
2467 # Pass precious variables to config.status.
2468 if test "$ac_new_set" = set; then
2469 case $ac_new_val in
2470 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2471 *) ac_arg=$ac_var=$ac_new_val ;;
2472 esac
2473 case " $ac_configure_args " in
2474 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2475 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2476 esac
2477 fi
2478done
2479if $ac_cache_corrupted; then
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2483$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2484 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2485fi
2486## -------------------- ##
2487## Main body of script. ##
2488## -------------------- ##
2489
2490ac_ext=c
2491ac_cpp='$CPP $CPPFLAGS'
2492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2494ac_compiler_gnu=$ac_cv_c_compiler_gnu
2495
2496
2497
2498
2499
2500VERSION="1.8.1"
2501LT_RELEASE="1.8"
2502LT_VERSION="0:1"
2503
2504ac_ext=cpp
2505ac_cpp='$CXXCPP $CPPFLAGS'
2506ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2509
2510
2511# lsb build option
2512
2513ccincludedir=""
2514ost_cv_thread_library="none"
2515
2516COMMON_FLAGS="-D_GNU_SOURCE"
2517
2518
2519@%:@ Check whether --with-lsb was given.
2520if test "${with_lsb+set}" = set; then :
2521 withval=$with_lsb;
2522 if test ! -d "$prefix" ; then
2523 prefix="/opt/$withval" ; fi
2524 if test ! -d "$sysconfdir" ; then
2525 sysconfdir="/etc$prefix" ; fi
2526 if test ! -d "$localstatedir" ; then
2527 localstatedir="/var$prefix" ; fi
2528
2529 CC=/opt/lsbdev-cc/bin/lsbcc
2530
2531 CXX=/opt/lsbdev-cc/bin/lsbc++
2532
2533
2534
2535
2536fi
2537
2538
2539case "$prefix" in
2540/opt/*)
2541 if test "$datadir" == '${prefix}/share' ; then
2542 if test "$mandir" == '${datadir}/man' ; then
2543 mandir='${prefix}/man' ; fi
2544 if test "$infodir" == '${datadir}/info' ; then
2545 infodir='${prefix}/info' ; fi
2546 datadir='${prefix}'
2547 fi
2548 if test "$sysconfdir" == '${prefix}/etc' ; then
2549 sysconfdir=/etc${prefix} ; fi
2550 if test "$localstatedir" == '${prefix}/var' ; then
2551 localstatedir=/var${prefix} ; fi
2552 if test "$includedir" == '${prefix}/include' ; then
2553 ccincludedir="$includedir" ; fi
2554
2555
2556
2557
2558
2559
2560 ;;
2561esac
2562
2563if test -z "$ccincludedir" ; then
2564 case "$includedir" in
2565 */lib/*)
2566 ccincludedir='${includedir}'
2567 ;;
2568 *)
2569 ccincludedir='${includedir}/cc++2'
2570 ;;
2571 esac
2572fi
2573
2574
2575
2576ac_aux_dir=
2577for ac_dir in autoconf "$srcdir"/autoconf; do
2578 if test -f "$ac_dir/install-sh"; then
2579 ac_aux_dir=$ac_dir
2580 ac_install_sh="$ac_aux_dir/install-sh -c"
2581 break
2582 elif test -f "$ac_dir/install.sh"; then
2583 ac_aux_dir=$ac_dir
2584 ac_install_sh="$ac_aux_dir/install.sh -c"
2585 break
2586 elif test -f "$ac_dir/shtool"; then
2587 ac_aux_dir=$ac_dir
2588 ac_install_sh="$ac_aux_dir/shtool install -c"
2589 break
2590 fi
2591done
2592if test -z "$ac_aux_dir"; then
2593 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2594fi
2595
2596# These three variables are undocumented and unsupported,
2597# and are intended to be withdrawn in a future Autoconf release.
2598# They can cause serious problems if a builder's source tree is in a directory
2599# whose full name contains unusual characters.
2600ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2601ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2602ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2603
2604
2605# Make sure we can run config.sub.
2606$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2607 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2608
2609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2610$as_echo_n "checking build system type... " >&6; }
2611if ${ac_cv_build+:} false; then :
2612 $as_echo_n "(cached) " >&6
2613else
2614 ac_build_alias=$build_alias
2615test "x$ac_build_alias" = x &&
2616 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2617test "x$ac_build_alias" = x &&
2618 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2619ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2620 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2621
2622fi
2623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2624$as_echo "$ac_cv_build" >&6; }
2625case $ac_cv_build in
2626*-*-*) ;;
2627*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2628esac
2629build=$ac_cv_build
2630ac_save_IFS=$IFS; IFS='-'
2631set x $ac_cv_build
2632shift
2633build_cpu=$1
2634build_vendor=$2
2635shift; shift
2636# Remember, the first character of IFS is used to create $*,
2637# except with old shells:
2638build_os=$*
2639IFS=$ac_save_IFS
2640case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2641
2642
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2644$as_echo_n "checking host system type... " >&6; }
2645if ${ac_cv_host+:} false; then :
2646 $as_echo_n "(cached) " >&6
2647else
2648 if test "x$host_alias" = x; then
2649 ac_cv_host=$ac_cv_build
2650else
2651 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2652 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2653fi
2654
2655fi
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2657$as_echo "$ac_cv_host" >&6; }
2658case $ac_cv_host in
2659*-*-*) ;;
2660*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2661esac
2662host=$ac_cv_host
2663ac_save_IFS=$IFS; IFS='-'
2664set x $ac_cv_host
2665shift
2666host_cpu=$1
2667host_vendor=$2
2668shift; shift
2669# Remember, the first character of IFS is used to create $*,
2670# except with old shells:
2671host_os=$*
2672IFS=$ac_save_IFS
2673case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2674
2675
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2677$as_echo_n "checking target system type... " >&6; }
2678if ${ac_cv_target+:} false; then :
2679 $as_echo_n "(cached) " >&6
2680else
2681 if test "x$target_alias" = x; then
2682 ac_cv_target=$ac_cv_host
2683else
2684 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2685 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2686fi
2687
2688fi
2689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2690$as_echo "$ac_cv_target" >&6; }
2691case $ac_cv_target in
2692*-*-*) ;;
2693*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2694esac
2695target=$ac_cv_target
2696ac_save_IFS=$IFS; IFS='-'
2697set x $ac_cv_target
2698shift
2699target_cpu=$1
2700target_vendor=$2
2701shift; shift
2702# Remember, the first character of IFS is used to create $*,
2703# except with old shells:
2704target_os=$*
2705IFS=$ac_save_IFS
2706case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2707
2708
2709# The aliases save the names the user supplied, while $host etc.
2710# will get canonicalized.
2711test -n "$target_alias" &&
2712 test "$program_prefix$program_suffix$program_transform_name" = \
2713 NONENONEs,x,x, &&
2714 program_prefix=${target_alias}-
2715
2716ac_ext=c
2717ac_cpp='$CPP $CPPFLAGS'
2718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2720ac_compiler_gnu=$ac_cv_c_compiler_gnu
2721if test -n "$ac_tool_prefix"; then
2722 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2723set dummy ${ac_tool_prefix}gcc; ac_word=$2
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725$as_echo_n "checking for $ac_word... " >&6; }
2726if ${ac_cv_prog_CC+:} false; then :
2727 $as_echo_n "(cached) " >&6
2728else
2729 if test -n "$CC"; then
2730 ac_cv_prog_CC="$CC" # Let the user override the test.
2731else
2732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733for as_dir in $PATH
2734do
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 break 2
2742 fi
2743done
2744 done
2745IFS=$as_save_IFS
2746
2747fi
2748fi
2749CC=$ac_cv_prog_CC
2750if test -n "$CC"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2752$as_echo "$CC" >&6; }
2753else
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755$as_echo "no" >&6; }
2756fi
2757
2758
2759fi
2760if test -z "$ac_cv_prog_CC"; then
2761 ac_ct_CC=$CC
2762 # Extract the first word of "gcc", so it can be a program name with args.
2763set dummy gcc; ac_word=$2
2764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765$as_echo_n "checking for $ac_word... " >&6; }
2766if ${ac_cv_prog_ac_ct_CC+:} false; then :
2767 $as_echo_n "(cached) " >&6
2768else
2769 if test -n "$ac_ct_CC"; then
2770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2771else
2772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773for as_dir in $PATH
2774do
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779 ac_cv_prog_ac_ct_CC="gcc"
2780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 break 2
2782 fi
2783done
2784 done
2785IFS=$as_save_IFS
2786
2787fi
2788fi
2789ac_ct_CC=$ac_cv_prog_ac_ct_CC
2790if test -n "$ac_ct_CC"; then
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2792$as_echo "$ac_ct_CC" >&6; }
2793else
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795$as_echo "no" >&6; }
2796fi
2797
2798 if test "x$ac_ct_CC" = x; then
2799 CC=""
2800 else
2801 case $cross_compiling:$ac_tool_warned in
2802yes:)
2803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2805ac_tool_warned=yes ;;
2806esac
2807 CC=$ac_ct_CC
2808 fi
2809else
2810 CC="$ac_cv_prog_CC"
2811fi
2812
2813if test -z "$CC"; then
2814 if test -n "$ac_tool_prefix"; then
2815 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2816set dummy ${ac_tool_prefix}cc; ac_word=$2
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818$as_echo_n "checking for $ac_word... " >&6; }
2819if ${ac_cv_prog_CC+:} false; then :
2820 $as_echo_n "(cached) " >&6
2821else
2822 if test -n "$CC"; then
2823 ac_cv_prog_CC="$CC" # Let the user override the test.
2824else
2825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826for as_dir in $PATH
2827do
2828 IFS=$as_save_IFS
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832 ac_cv_prog_CC="${ac_tool_prefix}cc"
2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 break 2
2835 fi
2836done
2837 done
2838IFS=$as_save_IFS
2839
2840fi
2841fi
2842CC=$ac_cv_prog_CC
2843if test -n "$CC"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2845$as_echo "$CC" >&6; }
2846else
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848$as_echo "no" >&6; }
2849fi
2850
2851
2852 fi
2853fi
2854if test -z "$CC"; then
2855 # Extract the first word of "cc", so it can be a program name with args.
2856set dummy cc; ac_word=$2
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858$as_echo_n "checking for $ac_word... " >&6; }
2859if ${ac_cv_prog_CC+:} false; then :
2860 $as_echo_n "(cached) " >&6
2861else
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2864else
2865 ac_prog_rejected=no
2866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867for as_dir in $PATH
2868do
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2873 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2874 ac_prog_rejected=yes
2875 continue
2876 fi
2877 ac_cv_prog_CC="cc"
2878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 break 2
2880 fi
2881done
2882 done
2883IFS=$as_save_IFS
2884
2885if test $ac_prog_rejected = yes; then
2886 # We found a bogon in the path, so make sure we never use it.
2887 set dummy $ac_cv_prog_CC
2888 shift
2889 if test $@%:@ != 0; then
2890 # We chose a different compiler from the bogus one.
2891 # However, it has the same basename, so the bogon will be chosen
2892 # first if we set CC to just the basename; use the full file name.
2893 shift
2894 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2895 fi
2896fi
2897fi
2898fi
2899CC=$ac_cv_prog_CC
2900if test -n "$CC"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2902$as_echo "$CC" >&6; }
2903else
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905$as_echo "no" >&6; }
2906fi
2907
2908
2909fi
2910if test -z "$CC"; then
2911 if test -n "$ac_tool_prefix"; then
2912 for ac_prog in cl.exe
2913 do
2914 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2915set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917$as_echo_n "checking for $ac_word... " >&6; }
2918if ${ac_cv_prog_CC+:} false; then :
2919 $as_echo_n "(cached) " >&6
2920else
2921 if test -n "$CC"; then
2922 ac_cv_prog_CC="$CC" # Let the user override the test.
2923else
2924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925for as_dir in $PATH
2926do
2927 IFS=$as_save_IFS
2928 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 break 2
2934 fi
2935done
2936 done
2937IFS=$as_save_IFS
2938
2939fi
2940fi
2941CC=$ac_cv_prog_CC
2942if test -n "$CC"; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2944$as_echo "$CC" >&6; }
2945else
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947$as_echo "no" >&6; }
2948fi
2949
2950
2951 test -n "$CC" && break
2952 done
2953fi
2954if test -z "$CC"; then
2955 ac_ct_CC=$CC
2956 for ac_prog in cl.exe
2957do
2958 # Extract the first word of "$ac_prog", so it can be a program name with args.
2959set dummy $ac_prog; ac_word=$2
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961$as_echo_n "checking for $ac_word... " >&6; }
2962if ${ac_cv_prog_ac_ct_CC+:} false; then :
2963 $as_echo_n "(cached) " >&6
2964else
2965 if test -n "$ac_ct_CC"; then
2966 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2967else
2968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969for as_dir in $PATH
2970do
2971 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975 ac_cv_prog_ac_ct_CC="$ac_prog"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 break 2
2978 fi
2979done
2980 done
2981IFS=$as_save_IFS
2982
2983fi
2984fi
2985ac_ct_CC=$ac_cv_prog_ac_ct_CC
2986if test -n "$ac_ct_CC"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2988$as_echo "$ac_ct_CC" >&6; }
2989else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991$as_echo "no" >&6; }
2992fi
2993
2994
2995 test -n "$ac_ct_CC" && break
2996done
2997
2998 if test "x$ac_ct_CC" = x; then
2999 CC=""
3000 else
3001 case $cross_compiling:$ac_tool_warned in
3002yes:)
3003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3005ac_tool_warned=yes ;;
3006esac
3007 CC=$ac_ct_CC
3008 fi
3009fi
3010
3011fi
3012
3013
3014test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3015$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3016as_fn_error $? "no acceptable C compiler found in \$PATH
3017See \`config.log' for more details" "$LINENO" 5; }
3018
3019# Provide some information about the compiler.
3020$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3021set X $ac_compile
3022ac_compiler=$2
3023for ac_option in --version -v -V -qversion; do
3024 { { ac_try="$ac_compiler $ac_option >&5"
3025case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028esac
3029eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3030$as_echo "$ac_try_echo"; } >&5
3031 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3032 ac_status=$?
3033 if test -s conftest.err; then
3034 sed '10a\
3035... rest of stderr output deleted ...
3036 10q' conftest.err >conftest.er1
3037 cat conftest.er1 >&5
3038 fi
3039 rm -f conftest.er1 conftest.err
3040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3041 test $ac_status = 0; }
3042done
3043
3044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3045/* end confdefs.h. */
3046
3047int
3048main ()
3049{
3050
3051 ;
3052 return 0;
3053}
3054_ACEOF
3055ac_clean_files_save=$ac_clean_files
3056ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3057# Try to create an executable without -o first, disregard a.out.
3058# It will help us diagnose broken compilers, and finding out an intuition
3059# of exeext.
3060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3061$as_echo_n "checking whether the C compiler works... " >&6; }
3062ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3063
3064# The possible output files:
3065ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3066
3067ac_rmfiles=
3068for ac_file in $ac_files
3069do
3070 case $ac_file in
3071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3072 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3073 esac
3074done
3075rm -f $ac_rmfiles
3076
3077if { { ac_try="$ac_link_default"
3078case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081esac
3082eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3083$as_echo "$ac_try_echo"; } >&5
3084 (eval "$ac_link_default") 2>&5
3085 ac_status=$?
3086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3087 test $ac_status = 0; }; then :
3088 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3089# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3090# in a Makefile. We should not override ac_cv_exeext if it was cached,
3091# so that the user can short-circuit this test for compilers unknown to
3092# Autoconf.
3093for ac_file in $ac_files ''
3094do
3095 test -f "$ac_file" || continue
3096 case $ac_file in
3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3098 ;;
3099 [ab].out )
3100 # We found the default executable, but exeext='' is most
3101 # certainly right.
3102 break;;
3103 *.* )
3104 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3105 then :; else
3106 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3107 fi
3108 # We set ac_cv_exeext here because the later test for it is not
3109 # safe: cross compilers may not add the suffix if given an `-o'
3110 # argument, so we may need to know it at that point already.
3111 # Even if this section looks crufty: it has the advantage of
3112 # actually working.
3113 break;;
3114 * )
3115 break;;
3116 esac
3117done
3118test "$ac_cv_exeext" = no && ac_cv_exeext=
3119
3120else
3121 ac_file=''
3122fi
3123if test -z "$ac_file"; then :
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125$as_echo "no" >&6; }
3126$as_echo "$as_me: failed program was:" >&5
3127sed 's/^/| /' conftest.$ac_ext >&5
3128
3129{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3131as_fn_error 77 "C compiler cannot create executables
3132See \`config.log' for more details" "$LINENO" 5; }
3133else
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3135$as_echo "yes" >&6; }
3136fi
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3138$as_echo_n "checking for C compiler default output file name... " >&6; }
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3140$as_echo "$ac_file" >&6; }
3141ac_exeext=$ac_cv_exeext
3142
3143rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3144ac_clean_files=$ac_clean_files_save
3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3146$as_echo_n "checking for suffix of executables... " >&6; }
3147if { { ac_try="$ac_link"
3148case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151esac
3152eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3153$as_echo "$ac_try_echo"; } >&5
3154 (eval "$ac_link") 2>&5
3155 ac_status=$?
3156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3157 test $ac_status = 0; }; then :
3158 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3159# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3160# work properly (i.e., refer to `conftest.exe'), while it won't with
3161# `rm'.
3162for ac_file in conftest.exe conftest conftest.*; do
3163 test -f "$ac_file" || continue
3164 case $ac_file in
3165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3166 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3167 break;;
3168 * ) break;;
3169 esac
3170done
3171else
3172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3175See \`config.log' for more details" "$LINENO" 5; }
3176fi
3177rm -f conftest conftest$ac_cv_exeext
3178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3179$as_echo "$ac_cv_exeext" >&6; }
3180
3181rm -f conftest.$ac_ext
3182EXEEXT=$ac_cv_exeext
3183ac_exeext=$EXEEXT
3184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3185/* end confdefs.h. */
3186@%:@include <stdio.h>
3187int
3188main ()
3189{
3190FILE *f = fopen ("conftest.out", "w");
3191 return ferror (f) || fclose (f) != 0;
3192
3193 ;
3194 return 0;
3195}
3196_ACEOF
3197ac_clean_files="$ac_clean_files conftest.out"
3198# Check that the compiler produces executables we can run. If not, either
3199# the compiler is broken, or we cross compile.
3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3201$as_echo_n "checking whether we are cross compiling... " >&6; }
3202if test "$cross_compiling" != yes; then
3203 { { ac_try="$ac_link"
3204case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207esac
3208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209$as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_link") 2>&5
3211 ac_status=$?
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }
3214 if { ac_try='./conftest$ac_cv_exeext'
3215 { { case "(($ac_try" in
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3218esac
3219eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220$as_echo "$ac_try_echo"; } >&5
3221 (eval "$ac_try") 2>&5
3222 ac_status=$?
3223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3224 test $ac_status = 0; }; }; then
3225 cross_compiling=no
3226 else
3227 if test "$cross_compiling" = maybe; then
3228 cross_compiling=yes
3229 else
3230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3232as_fn_error $? "cannot run C compiled programs.
3233If you meant to cross compile, use \`--host'.
3234See \`config.log' for more details" "$LINENO" 5; }
3235 fi
3236 fi
3237fi
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3239$as_echo "$cross_compiling" >&6; }
3240
3241rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3242ac_clean_files=$ac_clean_files_save
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3244$as_echo_n "checking for suffix of object files... " >&6; }
3245if ${ac_cv_objext+:} false; then :
3246 $as_echo_n "(cached) " >&6
3247else
3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249/* end confdefs.h. */
3250
3251int
3252main ()
3253{
3254
3255 ;
3256 return 0;
3257}
3258_ACEOF
3259rm -f conftest.o conftest.obj
3260if { { ac_try="$ac_compile"
3261case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264esac
3265eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3266$as_echo "$ac_try_echo"; } >&5
3267 (eval "$ac_compile") 2>&5
3268 ac_status=$?
3269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270 test $ac_status = 0; }; then :
3271 for ac_file in conftest.o conftest.obj conftest.*; do
3272 test -f "$ac_file" || continue;
3273 case $ac_file in
3274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3275 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3276 break;;
3277 esac
3278done
3279else
3280 $as_echo "$as_me: failed program was:" >&5
3281sed 's/^/| /' conftest.$ac_ext >&5
3282
3283{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3285as_fn_error $? "cannot compute suffix of object files: cannot compile
3286See \`config.log' for more details" "$LINENO" 5; }
3287fi
3288rm -f conftest.$ac_cv_objext conftest.$ac_ext
3289fi
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3291$as_echo "$ac_cv_objext" >&6; }
3292OBJEXT=$ac_cv_objext
3293ac_objext=$OBJEXT
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3295$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3296if ${ac_cv_c_compiler_gnu+:} false; then :
3297 $as_echo_n "(cached) " >&6
3298else
3299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300/* end confdefs.h. */
3301
3302int
3303main ()
3304{
3305#ifndef __GNUC__
3306 choke me
3307#endif
3308
3309 ;
3310 return 0;
3311}
3312_ACEOF
3313if ac_fn_c_try_compile "$LINENO"; then :
3314 ac_compiler_gnu=yes
3315else
3316 ac_compiler_gnu=no
3317fi
3318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3319ac_cv_c_compiler_gnu=$ac_compiler_gnu
3320
3321fi
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3323$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3324if test $ac_compiler_gnu = yes; then
3325 GCC=yes
3326else
3327 GCC=
3328fi
3329ac_test_CFLAGS=${CFLAGS+set}
3330ac_save_CFLAGS=$CFLAGS
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3332$as_echo_n "checking whether $CC accepts -g... " >&6; }
3333if ${ac_cv_prog_cc_g+:} false; then :
3334 $as_echo_n "(cached) " >&6
3335else
3336 ac_save_c_werror_flag=$ac_c_werror_flag
3337 ac_c_werror_flag=yes
3338 ac_cv_prog_cc_g=no
3339 CFLAGS="-g"
3340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341/* end confdefs.h. */
3342
3343int
3344main ()
3345{
3346
3347 ;
3348 return 0;
3349}
3350_ACEOF
3351if ac_fn_c_try_compile "$LINENO"; then :
3352 ac_cv_prog_cc_g=yes
3353else
3354 CFLAGS=""
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356/* end confdefs.h. */
3357
3358int
3359main ()
3360{
3361
3362 ;
3363 return 0;
3364}
3365_ACEOF
3366if ac_fn_c_try_compile "$LINENO"; then :
3367
3368else
3369 ac_c_werror_flag=$ac_save_c_werror_flag
3370 CFLAGS="-g"
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372/* end confdefs.h. */
3373
3374int
3375main ()
3376{
3377
3378 ;
3379 return 0;
3380}
3381_ACEOF
3382if ac_fn_c_try_compile "$LINENO"; then :
3383 ac_cv_prog_cc_g=yes
3384fi
3385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386fi
3387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388fi
3389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3390 ac_c_werror_flag=$ac_save_c_werror_flag
3391fi
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3393$as_echo "$ac_cv_prog_cc_g" >&6; }
3394if test "$ac_test_CFLAGS" = set; then
3395 CFLAGS=$ac_save_CFLAGS
3396elif test $ac_cv_prog_cc_g = yes; then
3397 if test "$GCC" = yes; then
3398 CFLAGS="-g -O2"
3399 else
3400 CFLAGS="-g"
3401 fi
3402else
3403 if test "$GCC" = yes; then
3404 CFLAGS="-O2"
3405 else
3406 CFLAGS=
3407 fi
3408fi
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3410$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3411if ${ac_cv_prog_cc_c89+:} false; then :
3412 $as_echo_n "(cached) " >&6
3413else
3414 ac_cv_prog_cc_c89=no
3415ac_save_CC=$CC
3416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417/* end confdefs.h. */
3418#include <stdarg.h>
3419#include <stdio.h>
3420#include <sys/types.h>
3421#include <sys/stat.h>
3422/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3423struct buf { int x; };
3424FILE * (*rcsopen) (struct buf *, struct stat *, int);
3425static char *e (p, i)
3426 char **p;
3427 int i;
3428{
3429 return p[i];
3430}
3431static char *f (char * (*g) (char **, int), char **p, ...)
3432{
3433 char *s;
3434 va_list v;
3435 va_start (v,p);
3436 s = g (p, va_arg (v,int));
3437 va_end (v);
3438 return s;
3439}
3440
3441/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3442 function prototypes and stuff, but not '\xHH' hex character constants.
3443 These don't provoke an error unfortunately, instead are silently treated
3444 as 'x'. The following induces an error, until -std is added to get
3445 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3446 array size at least. It's necessary to write '\x00'==0 to get something
3447 that's true only with -std. */
3448int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3449
3450/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3451 inside strings and character constants. */
3452#define FOO(x) 'x'
3453int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3454
3455int test (int i, double x);
3456struct s1 {int (*f) (int a);};
3457struct s2 {int (*f) (double a);};
3458int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3459int argc;
3460char **argv;
3461int
3462main ()
3463{
3464return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3465 ;
3466 return 0;
3467}
3468_ACEOF
3469for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3470 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3471do
3472 CC="$ac_save_CC $ac_arg"
3473 if ac_fn_c_try_compile "$LINENO"; then :
3474 ac_cv_prog_cc_c89=$ac_arg
3475fi
3476rm -f core conftest.err conftest.$ac_objext
3477 test "x$ac_cv_prog_cc_c89" != "xno" && break
3478done
3479rm -f conftest.$ac_ext
3480CC=$ac_save_CC
3481
3482fi
3483# AC_CACHE_VAL
3484case "x$ac_cv_prog_cc_c89" in
3485 x)
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3487$as_echo "none needed" >&6; } ;;
3488 xno)
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3490$as_echo "unsupported" >&6; } ;;
3491 *)
3492 CC="$CC $ac_cv_prog_cc_c89"
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3494$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3495esac
3496if test "x$ac_cv_prog_cc_c89" != xno; then :
3497
3498fi
3499
3500ac_ext=cpp
3501ac_cpp='$CXXCPP $CPPFLAGS'
3502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3505
3506ac_ext=c
3507ac_cpp='$CPP $CPPFLAGS'
3508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3510ac_compiler_gnu=$ac_cv_c_compiler_gnu
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3512$as_echo_n "checking how to run the C preprocessor... " >&6; }
3513# On Suns, sometimes $CPP names a directory.
3514if test -n "$CPP" && test -d "$CPP"; then
3515 CPP=
3516fi
3517if test -z "$CPP"; then
3518 if ${ac_cv_prog_CPP+:} false; then :
3519 $as_echo_n "(cached) " >&6
3520else
3521 # Double quotes because CPP needs to be expanded
3522 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3523 do
3524 ac_preproc_ok=false
3525for ac_c_preproc_warn_flag in '' yes
3526do
3527 # Use a header file that comes with gcc, so configuring glibc
3528 # with a fresh cross-compiler works.
3529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3530 # <limits.h> exists even on freestanding compilers.
3531 # On the NeXT, cc -E runs the code through the compiler's parser,
3532 # not just through cpp. "Syntax error" is here to catch this case.
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534/* end confdefs.h. */
3535@%:@ifdef __STDC__
3536@%:@ include <limits.h>
3537@%:@else
3538@%:@ include <assert.h>
3539@%:@endif
3540 Syntax error
3541_ACEOF
3542if ac_fn_c_try_cpp "$LINENO"; then :
3543
3544else
3545 # Broken: fails on valid input.
3546continue
3547fi
3548rm -f conftest.err conftest.i conftest.$ac_ext
3549
3550 # OK, works on sane cases. Now check whether nonexistent headers
3551 # can be detected and how.
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553/* end confdefs.h. */
3554@%:@include <ac_nonexistent.h>
3555_ACEOF
3556if ac_fn_c_try_cpp "$LINENO"; then :
3557 # Broken: success on invalid input.
3558continue
3559else
3560 # Passes both tests.
3561ac_preproc_ok=:
3562break
3563fi
3564rm -f conftest.err conftest.i conftest.$ac_ext
3565
3566done
3567# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3568rm -f conftest.i conftest.err conftest.$ac_ext
3569if $ac_preproc_ok; then :
3570 break
3571fi
3572
3573 done
3574 ac_cv_prog_CPP=$CPP
3575
3576fi
3577 CPP=$ac_cv_prog_CPP
3578else
3579 ac_cv_prog_CPP=$CPP
3580fi
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3582$as_echo "$CPP" >&6; }
3583ac_preproc_ok=false
3584for ac_c_preproc_warn_flag in '' yes
3585do
3586 # Use a header file that comes with gcc, so configuring glibc
3587 # with a fresh cross-compiler works.
3588 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3589 # <limits.h> exists even on freestanding compilers.
3590 # On the NeXT, cc -E runs the code through the compiler's parser,
3591 # not just through cpp. "Syntax error" is here to catch this case.
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593/* end confdefs.h. */
3594@%:@ifdef __STDC__
3595@%:@ include <limits.h>
3596@%:@else
3597@%:@ include <assert.h>
3598@%:@endif
3599 Syntax error
3600_ACEOF
3601if ac_fn_c_try_cpp "$LINENO"; then :
3602
3603else
3604 # Broken: fails on valid input.
3605continue
3606fi
3607rm -f conftest.err conftest.i conftest.$ac_ext
3608
3609 # OK, works on sane cases. Now check whether nonexistent headers
3610 # can be detected and how.
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612/* end confdefs.h. */
3613@%:@include <ac_nonexistent.h>
3614_ACEOF
3615if ac_fn_c_try_cpp "$LINENO"; then :
3616 # Broken: success on invalid input.
3617continue
3618else
3619 # Passes both tests.
3620ac_preproc_ok=:
3621break
3622fi
3623rm -f conftest.err conftest.i conftest.$ac_ext
3624
3625done
3626# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3627rm -f conftest.i conftest.err conftest.$ac_ext
3628if $ac_preproc_ok; then :
3629
3630else
3631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3633as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3634See \`config.log' for more details" "$LINENO" 5; }
3635fi
3636
3637ac_ext=cpp
3638ac_cpp='$CXXCPP $CPPFLAGS'
3639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3642
3643ac_ext=c
3644ac_cpp='$CPP $CPPFLAGS'
3645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647ac_compiler_gnu=$ac_cv_c_compiler_gnu
3648if test -n "$ac_tool_prefix"; then
3649 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3650set dummy ${ac_tool_prefix}gcc; ac_word=$2
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3652$as_echo_n "checking for $ac_word... " >&6; }
3653if ${ac_cv_prog_CC+:} false; then :
3654 $as_echo_n "(cached) " >&6
3655else
3656 if test -n "$CC"; then
3657 ac_cv_prog_CC="$CC" # Let the user override the test.
3658else
3659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660for as_dir in $PATH
3661do
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3666 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 break 2
3669 fi
3670done
3671 done
3672IFS=$as_save_IFS
3673
3674fi
3675fi
3676CC=$ac_cv_prog_CC
3677if test -n "$CC"; then
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3679$as_echo "$CC" >&6; }
3680else
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682$as_echo "no" >&6; }
3683fi
3684
3685
3686fi
3687if test -z "$ac_cv_prog_CC"; then
3688 ac_ct_CC=$CC
3689 # Extract the first word of "gcc", so it can be a program name with args.
3690set dummy gcc; ac_word=$2
3691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692$as_echo_n "checking for $ac_word... " >&6; }
3693if ${ac_cv_prog_ac_ct_CC+:} false; then :
3694 $as_echo_n "(cached) " >&6
3695else
3696 if test -n "$ac_ct_CC"; then
3697 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3698else
3699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700for as_dir in $PATH
3701do
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3706 ac_cv_prog_ac_ct_CC="gcc"
3707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3709 fi
3710done
3711 done
3712IFS=$as_save_IFS
3713
3714fi
3715fi
3716ac_ct_CC=$ac_cv_prog_ac_ct_CC
3717if test -n "$ac_ct_CC"; then
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3719$as_echo "$ac_ct_CC" >&6; }
3720else
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722$as_echo "no" >&6; }
3723fi
3724
3725 if test "x$ac_ct_CC" = x; then
3726 CC=""
3727 else
3728 case $cross_compiling:$ac_tool_warned in
3729yes:)
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3732ac_tool_warned=yes ;;
3733esac
3734 CC=$ac_ct_CC
3735 fi
3736else
3737 CC="$ac_cv_prog_CC"
3738fi
3739
3740if test -z "$CC"; then
3741 if test -n "$ac_tool_prefix"; then
3742 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3743set dummy ${ac_tool_prefix}cc; ac_word=$2
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745$as_echo_n "checking for $ac_word... " >&6; }
3746if ${ac_cv_prog_CC+:} false; then :
3747 $as_echo_n "(cached) " >&6
3748else
3749 if test -n "$CC"; then
3750 ac_cv_prog_CC="$CC" # Let the user override the test.
3751else
3752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753for as_dir in $PATH
3754do
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3759 ac_cv_prog_CC="${ac_tool_prefix}cc"
3760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 break 2
3762 fi
3763done
3764 done
3765IFS=$as_save_IFS
3766
3767fi
3768fi
3769CC=$ac_cv_prog_CC
3770if test -n "$CC"; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3772$as_echo "$CC" >&6; }
3773else
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775$as_echo "no" >&6; }
3776fi
3777
3778
3779 fi
3780fi
3781if test -z "$CC"; then
3782 # Extract the first word of "cc", so it can be a program name with args.
3783set dummy cc; ac_word=$2
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785$as_echo_n "checking for $ac_word... " >&6; }
3786if ${ac_cv_prog_CC+:} false; then :
3787 $as_echo_n "(cached) " >&6
3788else
3789 if test -n "$CC"; then
3790 ac_cv_prog_CC="$CC" # Let the user override the test.
3791else
3792 ac_prog_rejected=no
3793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794for as_dir in $PATH
3795do
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3800 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3801 ac_prog_rejected=yes
3802 continue
3803 fi
3804 ac_cv_prog_CC="cc"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3807 fi
3808done
3809 done
3810IFS=$as_save_IFS
3811
3812if test $ac_prog_rejected = yes; then
3813 # We found a bogon in the path, so make sure we never use it.
3814 set dummy $ac_cv_prog_CC
3815 shift
3816 if test $@%:@ != 0; then
3817 # We chose a different compiler from the bogus one.
3818 # However, it has the same basename, so the bogon will be chosen
3819 # first if we set CC to just the basename; use the full file name.
3820 shift
3821 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3822 fi
3823fi
3824fi
3825fi
3826CC=$ac_cv_prog_CC
3827if test -n "$CC"; then
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3829$as_echo "$CC" >&6; }
3830else
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832$as_echo "no" >&6; }
3833fi
3834
3835
3836fi
3837if test -z "$CC"; then
3838 if test -n "$ac_tool_prefix"; then
3839 for ac_prog in cl.exe
3840 do
3841 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3842set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3844$as_echo_n "checking for $ac_word... " >&6; }
3845if ${ac_cv_prog_CC+:} false; then :
3846 $as_echo_n "(cached) " >&6
3847else
3848 if test -n "$CC"; then
3849 ac_cv_prog_CC="$CC" # Let the user override the test.
3850else
3851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852for as_dir in $PATH
3853do
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3858 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 break 2
3861 fi
3862done
3863 done
3864IFS=$as_save_IFS
3865
3866fi
3867fi
3868CC=$ac_cv_prog_CC
3869if test -n "$CC"; then
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3871$as_echo "$CC" >&6; }
3872else
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874$as_echo "no" >&6; }
3875fi
3876
3877
3878 test -n "$CC" && break
3879 done
3880fi
3881if test -z "$CC"; then
3882 ac_ct_CC=$CC
3883 for ac_prog in cl.exe
3884do
3885 # Extract the first word of "$ac_prog", so it can be a program name with args.
3886set dummy $ac_prog; ac_word=$2
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3888$as_echo_n "checking for $ac_word... " >&6; }
3889if ${ac_cv_prog_ac_ct_CC+:} false; then :
3890 $as_echo_n "(cached) " >&6
3891else
3892 if test -n "$ac_ct_CC"; then
3893 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3894else
3895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896for as_dir in $PATH
3897do
3898 IFS=$as_save_IFS
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3902 ac_cv_prog_ac_ct_CC="$ac_prog"
3903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3905 fi
3906done
3907 done
3908IFS=$as_save_IFS
3909
3910fi
3911fi
3912ac_ct_CC=$ac_cv_prog_ac_ct_CC
3913if test -n "$ac_ct_CC"; then
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3915$as_echo "$ac_ct_CC" >&6; }
3916else
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918$as_echo "no" >&6; }
3919fi
3920
3921
3922 test -n "$ac_ct_CC" && break
3923done
3924
3925 if test "x$ac_ct_CC" = x; then
3926 CC=""
3927 else
3928 case $cross_compiling:$ac_tool_warned in
3929yes:)
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3932ac_tool_warned=yes ;;
3933esac
3934 CC=$ac_ct_CC
3935 fi
3936fi
3937
3938fi
3939
3940
3941test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3943as_fn_error $? "no acceptable C compiler found in \$PATH
3944See \`config.log' for more details" "$LINENO" 5; }
3945
3946# Provide some information about the compiler.
3947$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3948set X $ac_compile
3949ac_compiler=$2
3950for ac_option in --version -v -V -qversion; do
3951 { { ac_try="$ac_compiler $ac_option >&5"
3952case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955esac
3956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957$as_echo "$ac_try_echo"; } >&5
3958 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3959 ac_status=$?
3960 if test -s conftest.err; then
3961 sed '10a\
3962... rest of stderr output deleted ...
3963 10q' conftest.err >conftest.er1
3964 cat conftest.er1 >&5
3965 fi
3966 rm -f conftest.er1 conftest.err
3967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968 test $ac_status = 0; }
3969done
3970
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3972$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3973if ${ac_cv_c_compiler_gnu+:} false; then :
3974 $as_echo_n "(cached) " >&6
3975else
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977/* end confdefs.h. */
3978
3979int
3980main ()
3981{
3982#ifndef __GNUC__
3983 choke me
3984#endif
3985
3986 ;
3987 return 0;
3988}
3989_ACEOF
3990if ac_fn_c_try_compile "$LINENO"; then :
3991 ac_compiler_gnu=yes
3992else
3993 ac_compiler_gnu=no
3994fi
3995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996ac_cv_c_compiler_gnu=$ac_compiler_gnu
3997
3998fi
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4000$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4001if test $ac_compiler_gnu = yes; then
4002 GCC=yes
4003else
4004 GCC=
4005fi
4006ac_test_CFLAGS=${CFLAGS+set}
4007ac_save_CFLAGS=$CFLAGS
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4009$as_echo_n "checking whether $CC accepts -g... " >&6; }
4010if ${ac_cv_prog_cc_g+:} false; then :
4011 $as_echo_n "(cached) " >&6
4012else
4013 ac_save_c_werror_flag=$ac_c_werror_flag
4014 ac_c_werror_flag=yes
4015 ac_cv_prog_cc_g=no
4016 CFLAGS="-g"
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018/* end confdefs.h. */
4019
4020int
4021main ()
4022{
4023
4024 ;
4025 return 0;
4026}
4027_ACEOF
4028if ac_fn_c_try_compile "$LINENO"; then :
4029 ac_cv_prog_cc_g=yes
4030else
4031 CFLAGS=""
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033/* end confdefs.h. */
4034
4035int
4036main ()
4037{
4038
4039 ;
4040 return 0;
4041}
4042_ACEOF
4043if ac_fn_c_try_compile "$LINENO"; then :
4044
4045else
4046 ac_c_werror_flag=$ac_save_c_werror_flag
4047 CFLAGS="-g"
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049/* end confdefs.h. */
4050
4051int
4052main ()
4053{
4054
4055 ;
4056 return 0;
4057}
4058_ACEOF
4059if ac_fn_c_try_compile "$LINENO"; then :
4060 ac_cv_prog_cc_g=yes
4061fi
4062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063fi
4064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065fi
4066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 ac_c_werror_flag=$ac_save_c_werror_flag
4068fi
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4070$as_echo "$ac_cv_prog_cc_g" >&6; }
4071if test "$ac_test_CFLAGS" = set; then
4072 CFLAGS=$ac_save_CFLAGS
4073elif test $ac_cv_prog_cc_g = yes; then
4074 if test "$GCC" = yes; then
4075 CFLAGS="-g -O2"
4076 else
4077 CFLAGS="-g"
4078 fi
4079else
4080 if test "$GCC" = yes; then
4081 CFLAGS="-O2"
4082 else
4083 CFLAGS=
4084 fi
4085fi
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4087$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4088if ${ac_cv_prog_cc_c89+:} false; then :
4089 $as_echo_n "(cached) " >&6
4090else
4091 ac_cv_prog_cc_c89=no
4092ac_save_CC=$CC
4093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094/* end confdefs.h. */
4095#include <stdarg.h>
4096#include <stdio.h>
4097#include <sys/types.h>
4098#include <sys/stat.h>
4099/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4100struct buf { int x; };
4101FILE * (*rcsopen) (struct buf *, struct stat *, int);
4102static char *e (p, i)
4103 char **p;
4104 int i;
4105{
4106 return p[i];
4107}
4108static char *f (char * (*g) (char **, int), char **p, ...)
4109{
4110 char *s;
4111 va_list v;
4112 va_start (v,p);
4113 s = g (p, va_arg (v,int));
4114 va_end (v);
4115 return s;
4116}
4117
4118/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4119 function prototypes and stuff, but not '\xHH' hex character constants.
4120 These don't provoke an error unfortunately, instead are silently treated
4121 as 'x'. The following induces an error, until -std is added to get
4122 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4123 array size at least. It's necessary to write '\x00'==0 to get something
4124 that's true only with -std. */
4125int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4126
4127/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4128 inside strings and character constants. */
4129#define FOO(x) 'x'
4130int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4131
4132int test (int i, double x);
4133struct s1 {int (*f) (int a);};
4134struct s2 {int (*f) (double a);};
4135int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4136int argc;
4137char **argv;
4138int
4139main ()
4140{
4141return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4142 ;
4143 return 0;
4144}
4145_ACEOF
4146for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4147 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4148do
4149 CC="$ac_save_CC $ac_arg"
4150 if ac_fn_c_try_compile "$LINENO"; then :
4151 ac_cv_prog_cc_c89=$ac_arg
4152fi
4153rm -f core conftest.err conftest.$ac_objext
4154 test "x$ac_cv_prog_cc_c89" != "xno" && break
4155done
4156rm -f conftest.$ac_ext
4157CC=$ac_save_CC
4158
4159fi
4160# AC_CACHE_VAL
4161case "x$ac_cv_prog_cc_c89" in
4162 x)
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4164$as_echo "none needed" >&6; } ;;
4165 xno)
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4167$as_echo "unsupported" >&6; } ;;
4168 *)
4169 CC="$CC $ac_cv_prog_cc_c89"
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4171$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4172esac
4173if test "x$ac_cv_prog_cc_c89" != xno; then :
4174
4175fi
4176
4177ac_ext=cpp
4178ac_cpp='$CXXCPP $CPPFLAGS'
4179ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4182
4183ac_ext=cpp
4184ac_cpp='$CXXCPP $CPPFLAGS'
4185ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4188if test -z "$CXX"; then
4189 if test -n "$CCC"; then
4190 CXX=$CCC
4191 else
4192 if test -n "$ac_tool_prefix"; then
4193 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4194 do
4195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4196set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4198$as_echo_n "checking for $ac_word... " >&6; }
4199if ${ac_cv_prog_CXX+:} false; then :
4200 $as_echo_n "(cached) " >&6
4201else
4202 if test -n "$CXX"; then
4203 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4204else
4205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206for as_dir in $PATH
4207do
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4212 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 break 2
4215 fi
4216done
4217 done
4218IFS=$as_save_IFS
4219
4220fi
4221fi
4222CXX=$ac_cv_prog_CXX
4223if test -n "$CXX"; then
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4225$as_echo "$CXX" >&6; }
4226else
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4228$as_echo "no" >&6; }
4229fi
4230
4231
4232 test -n "$CXX" && break
4233 done
4234fi
4235if test -z "$CXX"; then
4236 ac_ct_CXX=$CXX
4237 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4238do
4239 # Extract the first word of "$ac_prog", so it can be a program name with args.
4240set dummy $ac_prog; ac_word=$2
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4242$as_echo_n "checking for $ac_word... " >&6; }
4243if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4244 $as_echo_n "(cached) " >&6
4245else
4246 if test -n "$ac_ct_CXX"; then
4247 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4248else
4249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250for as_dir in $PATH
4251do
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4256 ac_cv_prog_ac_ct_CXX="$ac_prog"
4257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 break 2
4259 fi
4260done
4261 done
4262IFS=$as_save_IFS
4263
4264fi
4265fi
4266ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4267if test -n "$ac_ct_CXX"; then
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4269$as_echo "$ac_ct_CXX" >&6; }
4270else
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4272$as_echo "no" >&6; }
4273fi
4274
4275
4276 test -n "$ac_ct_CXX" && break
4277done
4278
4279 if test "x$ac_ct_CXX" = x; then
4280 CXX="g++"
4281 else
4282 case $cross_compiling:$ac_tool_warned in
4283yes:)
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4286ac_tool_warned=yes ;;
4287esac
4288 CXX=$ac_ct_CXX
4289 fi
4290fi
4291
4292 fi
4293fi
4294# Provide some information about the compiler.
4295$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4296set X $ac_compile
4297ac_compiler=$2
4298for ac_option in --version -v -V -qversion; do
4299 { { ac_try="$ac_compiler $ac_option >&5"
4300case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303esac
4304eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4305$as_echo "$ac_try_echo"; } >&5
4306 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4307 ac_status=$?
4308 if test -s conftest.err; then
4309 sed '10a\
4310... rest of stderr output deleted ...
4311 10q' conftest.err >conftest.er1
4312 cat conftest.er1 >&5
4313 fi
4314 rm -f conftest.er1 conftest.err
4315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316 test $ac_status = 0; }
4317done
4318
4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4320$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4321if ${ac_cv_cxx_compiler_gnu+:} false; then :
4322 $as_echo_n "(cached) " >&6
4323else
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325/* end confdefs.h. */
4326
4327int
4328main ()
4329{
4330#ifndef __GNUC__
4331 choke me
4332#endif
4333
4334 ;
4335 return 0;
4336}
4337_ACEOF
4338if ac_fn_cxx_try_compile "$LINENO"; then :
4339 ac_compiler_gnu=yes
4340else
4341 ac_compiler_gnu=no
4342fi
4343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4345
4346fi
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4348$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4349if test $ac_compiler_gnu = yes; then
4350 GXX=yes
4351else
4352 GXX=
4353fi
4354ac_test_CXXFLAGS=${CXXFLAGS+set}
4355ac_save_CXXFLAGS=$CXXFLAGS
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4357$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4358if ${ac_cv_prog_cxx_g+:} false; then :
4359 $as_echo_n "(cached) " >&6
4360else
4361 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4362 ac_cxx_werror_flag=yes
4363 ac_cv_prog_cxx_g=no
4364 CXXFLAGS="-g"
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366/* end confdefs.h. */
4367
4368int
4369main ()
4370{
4371
4372 ;
4373 return 0;
4374}
4375_ACEOF
4376if ac_fn_cxx_try_compile "$LINENO"; then :
4377 ac_cv_prog_cxx_g=yes
4378else
4379 CXXFLAGS=""
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381/* end confdefs.h. */
4382
4383int
4384main ()
4385{
4386
4387 ;
4388 return 0;
4389}
4390_ACEOF
4391if ac_fn_cxx_try_compile "$LINENO"; then :
4392
4393else
4394 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4395 CXXFLAGS="-g"
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397/* end confdefs.h. */
4398
4399int
4400main ()
4401{
4402
4403 ;
4404 return 0;
4405}
4406_ACEOF
4407if ac_fn_cxx_try_compile "$LINENO"; then :
4408 ac_cv_prog_cxx_g=yes
4409fi
4410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4411fi
4412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413fi
4414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4416fi
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4418$as_echo "$ac_cv_prog_cxx_g" >&6; }
4419if test "$ac_test_CXXFLAGS" = set; then
4420 CXXFLAGS=$ac_save_CXXFLAGS
4421elif test $ac_cv_prog_cxx_g = yes; then
4422 if test "$GXX" = yes; then
4423 CXXFLAGS="-g -O2"
4424 else
4425 CXXFLAGS="-g"
4426 fi
4427else
4428 if test "$GXX" = yes; then
4429 CXXFLAGS="-O2"
4430 else
4431 CXXFLAGS=
4432 fi
4433fi
4434ac_ext=cpp
4435ac_cpp='$CXXCPP $CPPFLAGS'
4436ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4437ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4438ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4439
4440ac_ext=cpp
4441ac_cpp='$CXXCPP $CPPFLAGS'
4442ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4443ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4444ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4446$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4447if test -z "$CXXCPP"; then
4448 if ${ac_cv_prog_CXXCPP+:} false; then :
4449 $as_echo_n "(cached) " >&6
4450else
4451 # Double quotes because CXXCPP needs to be expanded
4452 for CXXCPP in "$CXX -E" "/lib/cpp"
4453 do
4454 ac_preproc_ok=false
4455for ac_cxx_preproc_warn_flag in '' yes
4456do
4457 # Use a header file that comes with gcc, so configuring glibc
4458 # with a fresh cross-compiler works.
4459 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4460 # <limits.h> exists even on freestanding compilers.
4461 # On the NeXT, cc -E runs the code through the compiler's parser,
4462 # not just through cpp. "Syntax error" is here to catch this case.
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464/* end confdefs.h. */
4465@%:@ifdef __STDC__
4466@%:@ include <limits.h>
4467@%:@else
4468@%:@ include <assert.h>
4469@%:@endif
4470 Syntax error
4471_ACEOF
4472if ac_fn_cxx_try_cpp "$LINENO"; then :
4473
4474else
4475 # Broken: fails on valid input.
4476continue
4477fi
4478rm -f conftest.err conftest.i conftest.$ac_ext
4479
4480 # OK, works on sane cases. Now check whether nonexistent headers
4481 # can be detected and how.
4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483/* end confdefs.h. */
4484@%:@include <ac_nonexistent.h>
4485_ACEOF
4486if ac_fn_cxx_try_cpp "$LINENO"; then :
4487 # Broken: success on invalid input.
4488continue
4489else
4490 # Passes both tests.
4491ac_preproc_ok=:
4492break
4493fi
4494rm -f conftest.err conftest.i conftest.$ac_ext
4495
4496done
4497# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4498rm -f conftest.i conftest.err conftest.$ac_ext
4499if $ac_preproc_ok; then :
4500 break
4501fi
4502
4503 done
4504 ac_cv_prog_CXXCPP=$CXXCPP
4505
4506fi
4507 CXXCPP=$ac_cv_prog_CXXCPP
4508else
4509 ac_cv_prog_CXXCPP=$CXXCPP
4510fi
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4512$as_echo "$CXXCPP" >&6; }
4513ac_preproc_ok=false
4514for ac_cxx_preproc_warn_flag in '' yes
4515do
4516 # Use a header file that comes with gcc, so configuring glibc
4517 # with a fresh cross-compiler works.
4518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4519 # <limits.h> exists even on freestanding compilers.
4520 # On the NeXT, cc -E runs the code through the compiler's parser,
4521 # not just through cpp. "Syntax error" is here to catch this case.
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523/* end confdefs.h. */
4524@%:@ifdef __STDC__
4525@%:@ include <limits.h>
4526@%:@else
4527@%:@ include <assert.h>
4528@%:@endif
4529 Syntax error
4530_ACEOF
4531if ac_fn_cxx_try_cpp "$LINENO"; then :
4532
4533else
4534 # Broken: fails on valid input.
4535continue
4536fi
4537rm -f conftest.err conftest.i conftest.$ac_ext
4538
4539 # OK, works on sane cases. Now check whether nonexistent headers
4540 # can be detected and how.
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542/* end confdefs.h. */
4543@%:@include <ac_nonexistent.h>
4544_ACEOF
4545if ac_fn_cxx_try_cpp "$LINENO"; then :
4546 # Broken: success on invalid input.
4547continue
4548else
4549 # Passes both tests.
4550ac_preproc_ok=:
4551break
4552fi
4553rm -f conftest.err conftest.i conftest.$ac_ext
4554
4555done
4556# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4557rm -f conftest.i conftest.err conftest.$ac_ext
4558if $ac_preproc_ok; then :
4559
4560else
4561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4562$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4563as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4564See \`config.log' for more details" "$LINENO" 5; }
4565fi
4566
4567ac_ext=cpp
4568ac_cpp='$CXXCPP $CPPFLAGS'
4569ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4570ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4571ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4572
4573ac_ext=cpp
4574ac_cpp='$CXXCPP $CPPFLAGS'
4575ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4576ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4577ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4578if test -z "$CXX"; then
4579 if test -n "$CCC"; then
4580 CXX=$CCC
4581 else
4582 if test -n "$ac_tool_prefix"; then
4583 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4584 do
4585 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4586set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588$as_echo_n "checking for $ac_word... " >&6; }
4589if ${ac_cv_prog_CXX+:} false; then :
4590 $as_echo_n "(cached) " >&6
4591else
4592 if test -n "$CXX"; then
4593 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4594else
4595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596for as_dir in $PATH
4597do
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 break 2
4605 fi
4606done
4607 done
4608IFS=$as_save_IFS
4609
4610fi
4611fi
4612CXX=$ac_cv_prog_CXX
4613if test -n "$CXX"; then
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4615$as_echo "$CXX" >&6; }
4616else
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4618$as_echo "no" >&6; }
4619fi
4620
4621
4622 test -n "$CXX" && break
4623 done
4624fi
4625if test -z "$CXX"; then
4626 ac_ct_CXX=$CXX
4627 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4628do
4629 # Extract the first word of "$ac_prog", so it can be a program name with args.
4630set dummy $ac_prog; ac_word=$2
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632$as_echo_n "checking for $ac_word... " >&6; }
4633if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4634 $as_echo_n "(cached) " >&6
4635else
4636 if test -n "$ac_ct_CXX"; then
4637 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4638else
4639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640for as_dir in $PATH
4641do
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4646 ac_cv_prog_ac_ct_CXX="$ac_prog"
4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 break 2
4649 fi
4650done
4651 done
4652IFS=$as_save_IFS
4653
4654fi
4655fi
4656ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4657if test -n "$ac_ct_CXX"; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4659$as_echo "$ac_ct_CXX" >&6; }
4660else
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662$as_echo "no" >&6; }
4663fi
4664
4665
4666 test -n "$ac_ct_CXX" && break
4667done
4668
4669 if test "x$ac_ct_CXX" = x; then
4670 CXX="g++"
4671 else
4672 case $cross_compiling:$ac_tool_warned in
4673yes:)
4674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4676ac_tool_warned=yes ;;
4677esac
4678 CXX=$ac_ct_CXX
4679 fi
4680fi
4681
4682 fi
4683fi
4684# Provide some information about the compiler.
4685$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4686set X $ac_compile
4687ac_compiler=$2
4688for ac_option in --version -v -V -qversion; do
4689 { { ac_try="$ac_compiler $ac_option >&5"
4690case "(($ac_try" in
4691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692 *) ac_try_echo=$ac_try;;
4693esac
4694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4695$as_echo "$ac_try_echo"; } >&5
4696 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4697 ac_status=$?
4698 if test -s conftest.err; then
4699 sed '10a\
4700... rest of stderr output deleted ...
4701 10q' conftest.err >conftest.er1
4702 cat conftest.er1 >&5
4703 fi
4704 rm -f conftest.er1 conftest.err
4705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4706 test $ac_status = 0; }
4707done
4708
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4710$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4711if ${ac_cv_cxx_compiler_gnu+:} false; then :
4712 $as_echo_n "(cached) " >&6
4713else
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715/* end confdefs.h. */
4716
4717int
4718main ()
4719{
4720#ifndef __GNUC__
4721 choke me
4722#endif
4723
4724 ;
4725 return 0;
4726}
4727_ACEOF
4728if ac_fn_cxx_try_compile "$LINENO"; then :
4729 ac_compiler_gnu=yes
4730else
4731 ac_compiler_gnu=no
4732fi
4733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4735
4736fi
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4738$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4739if test $ac_compiler_gnu = yes; then
4740 GXX=yes
4741else
4742 GXX=
4743fi
4744ac_test_CXXFLAGS=${CXXFLAGS+set}
4745ac_save_CXXFLAGS=$CXXFLAGS
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4747$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4748if ${ac_cv_prog_cxx_g+:} false; then :
4749 $as_echo_n "(cached) " >&6
4750else
4751 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4752 ac_cxx_werror_flag=yes
4753 ac_cv_prog_cxx_g=no
4754 CXXFLAGS="-g"
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756/* end confdefs.h. */
4757
4758int
4759main ()
4760{
4761
4762 ;
4763 return 0;
4764}
4765_ACEOF
4766if ac_fn_cxx_try_compile "$LINENO"; then :
4767 ac_cv_prog_cxx_g=yes
4768else
4769 CXXFLAGS=""
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771/* end confdefs.h. */
4772
4773int
4774main ()
4775{
4776
4777 ;
4778 return 0;
4779}
4780_ACEOF
4781if ac_fn_cxx_try_compile "$LINENO"; then :
4782
4783else
4784 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4785 CXXFLAGS="-g"
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787/* end confdefs.h. */
4788
4789int
4790main ()
4791{
4792
4793 ;
4794 return 0;
4795}
4796_ACEOF
4797if ac_fn_cxx_try_compile "$LINENO"; then :
4798 ac_cv_prog_cxx_g=yes
4799fi
4800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801fi
4802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803fi
4804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4806fi
4807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4808$as_echo "$ac_cv_prog_cxx_g" >&6; }
4809if test "$ac_test_CXXFLAGS" = set; then
4810 CXXFLAGS=$ac_save_CXXFLAGS
4811elif test $ac_cv_prog_cxx_g = yes; then
4812 if test "$GXX" = yes; then
4813 CXXFLAGS="-g -O2"
4814 else
4815 CXXFLAGS="-g"
4816 fi
4817else
4818 if test "$GXX" = yes; then
4819 CXXFLAGS="-O2"
4820 else
4821 CXXFLAGS=
4822 fi
4823fi
4824ac_ext=cpp
4825ac_cpp='$CXXCPP $CPPFLAGS'
4826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4829
4830
4831
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4833$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4834if ${ac_cv_path_GREP+:} false; then :
4835 $as_echo_n "(cached) " >&6
4836else
4837 if test -z "$GREP"; then
4838 ac_path_GREP_found=false
4839 # Loop through the user's path and test for each of PROGNAME-LIST
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4842do
4843 IFS=$as_save_IFS
4844 test -z "$as_dir" && as_dir=.
4845 for ac_prog in grep ggrep; do
4846 for ac_exec_ext in '' $ac_executable_extensions; do
4847 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4848 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4849# Check for GNU ac_path_GREP and select it if it is found.
4850 # Check for GNU $ac_path_GREP
4851case `"$ac_path_GREP" --version 2>&1` in
4852*GNU*)
4853 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4854*)
4855 ac_count=0
4856 $as_echo_n 0123456789 >"conftest.in"
4857 while :
4858 do
4859 cat "conftest.in" "conftest.in" >"conftest.tmp"
4860 mv "conftest.tmp" "conftest.in"
4861 cp "conftest.in" "conftest.nl"
4862 $as_echo 'GREP' >> "conftest.nl"
4863 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4864 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4865 as_fn_arith $ac_count + 1 && ac_count=$as_val
4866 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4867 # Best one so far, save it but keep looking for a better one
4868 ac_cv_path_GREP="$ac_path_GREP"
4869 ac_path_GREP_max=$ac_count
4870 fi
4871 # 10*(2^10) chars as input seems more than enough
4872 test $ac_count -gt 10 && break
4873 done
4874 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4875esac
4876
4877 $ac_path_GREP_found && break 3
4878 done
4879 done
4880 done
4881IFS=$as_save_IFS
4882 if test -z "$ac_cv_path_GREP"; then
4883 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4884 fi
4885else
4886 ac_cv_path_GREP=$GREP
4887fi
4888
4889fi
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4891$as_echo "$ac_cv_path_GREP" >&6; }
4892 GREP="$ac_cv_path_GREP"
4893
4894
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4896$as_echo_n "checking for egrep... " >&6; }
4897if ${ac_cv_path_EGREP+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899else
4900 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4901 then ac_cv_path_EGREP="$GREP -E"
4902 else
4903 if test -z "$EGREP"; then
4904 ac_path_EGREP_found=false
4905 # Loop through the user's path and test for each of PROGNAME-LIST
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4908do
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_prog in egrep; do
4912 for ac_exec_ext in '' $ac_executable_extensions; do
4913 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4914 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4915# Check for GNU ac_path_EGREP and select it if it is found.
4916 # Check for GNU $ac_path_EGREP
4917case `"$ac_path_EGREP" --version 2>&1` in
4918*GNU*)
4919 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4920*)
4921 ac_count=0
4922 $as_echo_n 0123456789 >"conftest.in"
4923 while :
4924 do
4925 cat "conftest.in" "conftest.in" >"conftest.tmp"
4926 mv "conftest.tmp" "conftest.in"
4927 cp "conftest.in" "conftest.nl"
4928 $as_echo 'EGREP' >> "conftest.nl"
4929 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4930 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4931 as_fn_arith $ac_count + 1 && ac_count=$as_val
4932 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4933 # Best one so far, save it but keep looking for a better one
4934 ac_cv_path_EGREP="$ac_path_EGREP"
4935 ac_path_EGREP_max=$ac_count
4936 fi
4937 # 10*(2^10) chars as input seems more than enough
4938 test $ac_count -gt 10 && break
4939 done
4940 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4941esac
4942
4943 $ac_path_EGREP_found && break 3
4944 done
4945 done
4946 done
4947IFS=$as_save_IFS
4948 if test -z "$ac_cv_path_EGREP"; then
4949 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4950 fi
4951else
4952 ac_cv_path_EGREP=$EGREP
4953fi
4954
4955 fi
4956fi
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4958$as_echo "$ac_cv_path_EGREP" >&6; }
4959 EGREP="$ac_cv_path_EGREP"
4960
4961
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4963$as_echo_n "checking for ANSI C header files... " >&6; }
4964if ${ac_cv_header_stdc+:} false; then :
4965 $as_echo_n "(cached) " >&6
4966else
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968/* end confdefs.h. */
4969#include <stdlib.h>
4970#include <stdarg.h>
4971#include <string.h>
4972#include <float.h>
4973
4974int
4975main ()
4976{
4977
4978 ;
4979 return 0;
4980}
4981_ACEOF
4982if ac_fn_cxx_try_compile "$LINENO"; then :
4983 ac_cv_header_stdc=yes
4984else
4985 ac_cv_header_stdc=no
4986fi
4987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988
4989if test $ac_cv_header_stdc = yes; then
4990 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992/* end confdefs.h. */
4993#include <string.h>
4994
4995_ACEOF
4996if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4997 $EGREP "memchr" >/dev/null 2>&1; then :
4998
4999else
5000 ac_cv_header_stdc=no
5001fi
5002rm -f conftest*
5003
5004fi
5005
5006if test $ac_cv_header_stdc = yes; then
5007 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009/* end confdefs.h. */
5010#include <stdlib.h>
5011
5012_ACEOF
5013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5014 $EGREP "free" >/dev/null 2>&1; then :
5015
5016else
5017 ac_cv_header_stdc=no
5018fi
5019rm -f conftest*
5020
5021fi
5022
5023if test $ac_cv_header_stdc = yes; then
5024 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5025 if test "$cross_compiling" = yes; then :
5026 :
5027else
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029/* end confdefs.h. */
5030#include <ctype.h>
5031#include <stdlib.h>
5032#if ((' ' & 0x0FF) == 0x020)
5033# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5034# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5035#else
5036# define ISLOWER(c) \
5037 (('a' <= (c) && (c) <= 'i') \
5038 || ('j' <= (c) && (c) <= 'r') \
5039 || ('s' <= (c) && (c) <= 'z'))
5040# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5041#endif
5042
5043#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5044int
5045main ()
5046{
5047 int i;
5048 for (i = 0; i < 256; i++)
5049 if (XOR (islower (i), ISLOWER (i))
5050 || toupper (i) != TOUPPER (i))
5051 return 2;
5052 return 0;
5053}
5054_ACEOF
5055if ac_fn_cxx_try_run "$LINENO"; then :
5056
5057else
5058 ac_cv_header_stdc=no
5059fi
5060rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5061 conftest.$ac_objext conftest.beam conftest.$ac_ext
5062fi
5063
5064fi
5065fi
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5067$as_echo "$ac_cv_header_stdc" >&6; }
5068if test $ac_cv_header_stdc = yes; then
5069
5070$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
5071
5072fi
5073
5074# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5075for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5076 inttypes.h stdint.h unistd.h
5077do :
5078 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5079ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5080"
5081if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5082 cat >>confdefs.h <<_ACEOF
5083@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5084_ACEOF
5085
5086fi
5087
5088done
5089
5090
5091
5092 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5093if test "x$ac_cv_header_minix_config_h" = xyes; then :
5094 MINIX=yes
5095else
5096 MINIX=
5097fi
5098
5099
5100 if test "$MINIX" = yes; then
5101
5102$as_echo "@%:@define _POSIX_SOURCE 1" >>confdefs.h
5103
5104
5105$as_echo "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h
5106
5107
5108$as_echo "@%:@define _MINIX 1" >>confdefs.h
5109
5110 fi
5111
5112
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5114$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5115if ${ac_cv_safe_to_define___extensions__+:} false; then :
5116 $as_echo_n "(cached) " >&6
5117else
5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119/* end confdefs.h. */
5120
5121# define __EXTENSIONS__ 1
5122 $ac_includes_default
5123int
5124main ()
5125{
5126
5127 ;
5128 return 0;
5129}
5130_ACEOF
5131if ac_fn_cxx_try_compile "$LINENO"; then :
5132 ac_cv_safe_to_define___extensions__=yes
5133else
5134 ac_cv_safe_to_define___extensions__=no
5135fi
5136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5137fi
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5139$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5140 test $ac_cv_safe_to_define___extensions__ = yes &&
5141 $as_echo "@%:@define __EXTENSIONS__ 1" >>confdefs.h
5142
5143 $as_echo "@%:@define _ALL_SOURCE 1" >>confdefs.h
5144
5145 $as_echo "@%:@define _GNU_SOURCE 1" >>confdefs.h
5146
5147 $as_echo "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5148
5149 $as_echo "@%:@define _TANDEM_SOURCE 1" >>confdefs.h
5150
5151
5152
5153 ac_ext=c
5154ac_cpp='$CPP $CPPFLAGS'
5155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5157ac_compiler_gnu=$ac_cv_c_compiler_gnu
5158if test -n "$ac_tool_prefix"; then
5159 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5160set dummy ${ac_tool_prefix}gcc; ac_word=$2
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162$as_echo_n "checking for $ac_word... " >&6; }
5163if ${ac_cv_prog_CC+:} false; then :
5164 $as_echo_n "(cached) " >&6
5165else
5166 if test -n "$CC"; then
5167 ac_cv_prog_CC="$CC" # Let the user override the test.
5168else
5169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170for as_dir in $PATH
5171do
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5176 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 break 2
5179 fi
5180done
5181 done
5182IFS=$as_save_IFS
5183
5184fi
5185fi
5186CC=$ac_cv_prog_CC
5187if test -n "$CC"; then
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5189$as_echo "$CC" >&6; }
5190else
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192$as_echo "no" >&6; }
5193fi
5194
5195
5196fi
5197if test -z "$ac_cv_prog_CC"; then
5198 ac_ct_CC=$CC
5199 # Extract the first word of "gcc", so it can be a program name with args.
5200set dummy gcc; ac_word=$2
5201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5202$as_echo_n "checking for $ac_word... " >&6; }
5203if ${ac_cv_prog_ac_ct_CC+:} false; then :
5204 $as_echo_n "(cached) " >&6
5205else
5206 if test -n "$ac_ct_CC"; then
5207 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5208else
5209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210for as_dir in $PATH
5211do
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5216 ac_cv_prog_ac_ct_CC="gcc"
5217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 break 2
5219 fi
5220done
5221 done
5222IFS=$as_save_IFS
5223
5224fi
5225fi
5226ac_ct_CC=$ac_cv_prog_ac_ct_CC
5227if test -n "$ac_ct_CC"; then
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5229$as_echo "$ac_ct_CC" >&6; }
5230else
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232$as_echo "no" >&6; }
5233fi
5234
5235 if test "x$ac_ct_CC" = x; then
5236 CC=""
5237 else
5238 case $cross_compiling:$ac_tool_warned in
5239yes:)
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5242ac_tool_warned=yes ;;
5243esac
5244 CC=$ac_ct_CC
5245 fi
5246else
5247 CC="$ac_cv_prog_CC"
5248fi
5249
5250if test -z "$CC"; then
5251 if test -n "$ac_tool_prefix"; then
5252 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5253set dummy ${ac_tool_prefix}cc; ac_word=$2
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255$as_echo_n "checking for $ac_word... " >&6; }
5256if ${ac_cv_prog_CC+:} false; then :
5257 $as_echo_n "(cached) " >&6
5258else
5259 if test -n "$CC"; then
5260 ac_cv_prog_CC="$CC" # Let the user override the test.
5261else
5262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263for as_dir in $PATH
5264do
5265 IFS=$as_save_IFS
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5269 ac_cv_prog_CC="${ac_tool_prefix}cc"
5270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 break 2
5272 fi
5273done
5274 done
5275IFS=$as_save_IFS
5276
5277fi
5278fi
5279CC=$ac_cv_prog_CC
5280if test -n "$CC"; then
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5282$as_echo "$CC" >&6; }
5283else
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285$as_echo "no" >&6; }
5286fi
5287
5288
5289 fi
5290fi
5291if test -z "$CC"; then
5292 # Extract the first word of "cc", so it can be a program name with args.
5293set dummy cc; ac_word=$2
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295$as_echo_n "checking for $ac_word... " >&6; }
5296if ${ac_cv_prog_CC+:} false; then :
5297 $as_echo_n "(cached) " >&6
5298else
5299 if test -n "$CC"; then
5300 ac_cv_prog_CC="$CC" # Let the user override the test.
5301else
5302 ac_prog_rejected=no
5303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304for as_dir in $PATH
5305do
5306 IFS=$as_save_IFS
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5310 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5311 ac_prog_rejected=yes
5312 continue
5313 fi
5314 ac_cv_prog_CC="cc"
5315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 break 2
5317 fi
5318done
5319 done
5320IFS=$as_save_IFS
5321
5322if test $ac_prog_rejected = yes; then
5323 # We found a bogon in the path, so make sure we never use it.
5324 set dummy $ac_cv_prog_CC
5325 shift
5326 if test $@%:@ != 0; then
5327 # We chose a different compiler from the bogus one.
5328 # However, it has the same basename, so the bogon will be chosen
5329 # first if we set CC to just the basename; use the full file name.
5330 shift
5331 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5332 fi
5333fi
5334fi
5335fi
5336CC=$ac_cv_prog_CC
5337if test -n "$CC"; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5339$as_echo "$CC" >&6; }
5340else
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342$as_echo "no" >&6; }
5343fi
5344
5345
5346fi
5347if test -z "$CC"; then
5348 if test -n "$ac_tool_prefix"; then
5349 for ac_prog in cl.exe
5350 do
5351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5352set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354$as_echo_n "checking for $ac_word... " >&6; }
5355if ${ac_cv_prog_CC+:} false; then :
5356 $as_echo_n "(cached) " >&6
5357else
5358 if test -n "$CC"; then
5359 ac_cv_prog_CC="$CC" # Let the user override the test.
5360else
5361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362for as_dir in $PATH
5363do
5364 IFS=$as_save_IFS
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 break 2
5371 fi
5372done
5373 done
5374IFS=$as_save_IFS
5375
5376fi
5377fi
5378CC=$ac_cv_prog_CC
5379if test -n "$CC"; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5381$as_echo "$CC" >&6; }
5382else
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384$as_echo "no" >&6; }
5385fi
5386
5387
5388 test -n "$CC" && break
5389 done
5390fi
5391if test -z "$CC"; then
5392 ac_ct_CC=$CC
5393 for ac_prog in cl.exe
5394do
5395 # Extract the first word of "$ac_prog", so it can be a program name with args.
5396set dummy $ac_prog; ac_word=$2
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398$as_echo_n "checking for $ac_word... " >&6; }
5399if ${ac_cv_prog_ac_ct_CC+:} false; then :
5400 $as_echo_n "(cached) " >&6
5401else
5402 if test -n "$ac_ct_CC"; then
5403 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5404else
5405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406for as_dir in $PATH
5407do
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412 ac_cv_prog_ac_ct_CC="$ac_prog"
5413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 break 2
5415 fi
5416done
5417 done
5418IFS=$as_save_IFS
5419
5420fi
5421fi
5422ac_ct_CC=$ac_cv_prog_ac_ct_CC
5423if test -n "$ac_ct_CC"; then
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5425$as_echo "$ac_ct_CC" >&6; }
5426else
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428$as_echo "no" >&6; }
5429fi
5430
5431
5432 test -n "$ac_ct_CC" && break
5433done
5434
5435 if test "x$ac_ct_CC" = x; then
5436 CC=""
5437 else
5438 case $cross_compiling:$ac_tool_warned in
5439yes:)
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5442ac_tool_warned=yes ;;
5443esac
5444 CC=$ac_ct_CC
5445 fi
5446fi
5447
5448fi
5449
5450
5451test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5453as_fn_error $? "no acceptable C compiler found in \$PATH
5454See \`config.log' for more details" "$LINENO" 5; }
5455
5456# Provide some information about the compiler.
5457$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5458set X $ac_compile
5459ac_compiler=$2
5460for ac_option in --version -v -V -qversion; do
5461 { { ac_try="$ac_compiler $ac_option >&5"
5462case "(($ac_try" in
5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464 *) ac_try_echo=$ac_try;;
5465esac
5466eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5467$as_echo "$ac_try_echo"; } >&5
5468 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5469 ac_status=$?
5470 if test -s conftest.err; then
5471 sed '10a\
5472... rest of stderr output deleted ...
5473 10q' conftest.err >conftest.er1
5474 cat conftest.er1 >&5
5475 fi
5476 rm -f conftest.er1 conftest.err
5477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5478 test $ac_status = 0; }
5479done
5480
5481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5482$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5483if ${ac_cv_c_compiler_gnu+:} false; then :
5484 $as_echo_n "(cached) " >&6
5485else
5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487/* end confdefs.h. */
5488
5489int
5490main ()
5491{
5492#ifndef __GNUC__
5493 choke me
5494#endif
5495
5496 ;
5497 return 0;
5498}
5499_ACEOF
5500if ac_fn_c_try_compile "$LINENO"; then :
5501 ac_compiler_gnu=yes
5502else
5503 ac_compiler_gnu=no
5504fi
5505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506ac_cv_c_compiler_gnu=$ac_compiler_gnu
5507
5508fi
5509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5510$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5511if test $ac_compiler_gnu = yes; then
5512 GCC=yes
5513else
5514 GCC=
5515fi
5516ac_test_CFLAGS=${CFLAGS+set}
5517ac_save_CFLAGS=$CFLAGS
5518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5519$as_echo_n "checking whether $CC accepts -g... " >&6; }
5520if ${ac_cv_prog_cc_g+:} false; then :
5521 $as_echo_n "(cached) " >&6
5522else
5523 ac_save_c_werror_flag=$ac_c_werror_flag
5524 ac_c_werror_flag=yes
5525 ac_cv_prog_cc_g=no
5526 CFLAGS="-g"
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528/* end confdefs.h. */
5529
5530int
5531main ()
5532{
5533
5534 ;
5535 return 0;
5536}
5537_ACEOF
5538if ac_fn_c_try_compile "$LINENO"; then :
5539 ac_cv_prog_cc_g=yes
5540else
5541 CFLAGS=""
5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543/* end confdefs.h. */
5544
5545int
5546main ()
5547{
5548
5549 ;
5550 return 0;
5551}
5552_ACEOF
5553if ac_fn_c_try_compile "$LINENO"; then :
5554
5555else
5556 ac_c_werror_flag=$ac_save_c_werror_flag
5557 CFLAGS="-g"
5558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559/* end confdefs.h. */
5560
5561int
5562main ()
5563{
5564
5565 ;
5566 return 0;
5567}
5568_ACEOF
5569if ac_fn_c_try_compile "$LINENO"; then :
5570 ac_cv_prog_cc_g=yes
5571fi
5572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573fi
5574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5575fi
5576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577 ac_c_werror_flag=$ac_save_c_werror_flag
5578fi
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5580$as_echo "$ac_cv_prog_cc_g" >&6; }
5581if test "$ac_test_CFLAGS" = set; then
5582 CFLAGS=$ac_save_CFLAGS
5583elif test $ac_cv_prog_cc_g = yes; then
5584 if test "$GCC" = yes; then
5585 CFLAGS="-g -O2"
5586 else
5587 CFLAGS="-g"
5588 fi
5589else
5590 if test "$GCC" = yes; then
5591 CFLAGS="-O2"
5592 else
5593 CFLAGS=
5594 fi
5595fi
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5597$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5598if ${ac_cv_prog_cc_c89+:} false; then :
5599 $as_echo_n "(cached) " >&6
5600else
5601 ac_cv_prog_cc_c89=no
5602ac_save_CC=$CC
5603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604/* end confdefs.h. */
5605#include <stdarg.h>
5606#include <stdio.h>
5607#include <sys/types.h>
5608#include <sys/stat.h>
5609/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5610struct buf { int x; };
5611FILE * (*rcsopen) (struct buf *, struct stat *, int);
5612static char *e (p, i)
5613 char **p;
5614 int i;
5615{
5616 return p[i];
5617}
5618static char *f (char * (*g) (char **, int), char **p, ...)
5619{
5620 char *s;
5621 va_list v;
5622 va_start (v,p);
5623 s = g (p, va_arg (v,int));
5624 va_end (v);
5625 return s;
5626}
5627
5628/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5629 function prototypes and stuff, but not '\xHH' hex character constants.
5630 These don't provoke an error unfortunately, instead are silently treated
5631 as 'x'. The following induces an error, until -std is added to get
5632 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5633 array size at least. It's necessary to write '\x00'==0 to get something
5634 that's true only with -std. */
5635int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5636
5637/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5638 inside strings and character constants. */
5639#define FOO(x) 'x'
5640int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5641
5642int test (int i, double x);
5643struct s1 {int (*f) (int a);};
5644struct s2 {int (*f) (double a);};
5645int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5646int argc;
5647char **argv;
5648int
5649main ()
5650{
5651return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5652 ;
5653 return 0;
5654}
5655_ACEOF
5656for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5657 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5658do
5659 CC="$ac_save_CC $ac_arg"
5660 if ac_fn_c_try_compile "$LINENO"; then :
5661 ac_cv_prog_cc_c89=$ac_arg
5662fi
5663rm -f core conftest.err conftest.$ac_objext
5664 test "x$ac_cv_prog_cc_c89" != "xno" && break
5665done
5666rm -f conftest.$ac_ext
5667CC=$ac_save_CC
5668
5669fi
5670# AC_CACHE_VAL
5671case "x$ac_cv_prog_cc_c89" in
5672 x)
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5674$as_echo "none needed" >&6; } ;;
5675 xno)
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5677$as_echo "unsupported" >&6; } ;;
5678 *)
5679 CC="$CC $ac_cv_prog_cc_c89"
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5681$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5682esac
5683if test "x$ac_cv_prog_cc_c89" != xno; then :
5684
5685fi
5686
5687ac_ext=cpp
5688ac_cpp='$CXXCPP $CPPFLAGS'
5689ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5690ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5691ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5692
5693 ac_ext=c
5694ac_cpp='$CPP $CPPFLAGS'
5695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5697ac_compiler_gnu=$ac_cv_c_compiler_gnu
5698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5699$as_echo_n "checking how to run the C preprocessor... " >&6; }
5700# On Suns, sometimes $CPP names a directory.
5701if test -n "$CPP" && test -d "$CPP"; then
5702 CPP=
5703fi
5704if test -z "$CPP"; then
5705 if ${ac_cv_prog_CPP+:} false; then :
5706 $as_echo_n "(cached) " >&6
5707else
5708 # Double quotes because CPP needs to be expanded
5709 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5710 do
5711 ac_preproc_ok=false
5712for ac_c_preproc_warn_flag in '' yes
5713do
5714 # Use a header file that comes with gcc, so configuring glibc
5715 # with a fresh cross-compiler works.
5716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5717 # <limits.h> exists even on freestanding compilers.
5718 # On the NeXT, cc -E runs the code through the compiler's parser,
5719 # not just through cpp. "Syntax error" is here to catch this case.
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721/* end confdefs.h. */
5722@%:@ifdef __STDC__
5723@%:@ include <limits.h>
5724@%:@else
5725@%:@ include <assert.h>
5726@%:@endif
5727 Syntax error
5728_ACEOF
5729if ac_fn_c_try_cpp "$LINENO"; then :
5730
5731else
5732 # Broken: fails on valid input.
5733continue
5734fi
5735rm -f conftest.err conftest.i conftest.$ac_ext
5736
5737 # OK, works on sane cases. Now check whether nonexistent headers
5738 # can be detected and how.
5739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740/* end confdefs.h. */
5741@%:@include <ac_nonexistent.h>
5742_ACEOF
5743if ac_fn_c_try_cpp "$LINENO"; then :
5744 # Broken: success on invalid input.
5745continue
5746else
5747 # Passes both tests.
5748ac_preproc_ok=:
5749break
5750fi
5751rm -f conftest.err conftest.i conftest.$ac_ext
5752
5753done
5754# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5755rm -f conftest.i conftest.err conftest.$ac_ext
5756if $ac_preproc_ok; then :
5757 break
5758fi
5759
5760 done
5761 ac_cv_prog_CPP=$CPP
5762
5763fi
5764 CPP=$ac_cv_prog_CPP
5765else
5766 ac_cv_prog_CPP=$CPP
5767fi
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5769$as_echo "$CPP" >&6; }
5770ac_preproc_ok=false
5771for ac_c_preproc_warn_flag in '' yes
5772do
5773 # Use a header file that comes with gcc, so configuring glibc
5774 # with a fresh cross-compiler works.
5775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5776 # <limits.h> exists even on freestanding compilers.
5777 # On the NeXT, cc -E runs the code through the compiler's parser,
5778 # not just through cpp. "Syntax error" is here to catch this case.
5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780/* end confdefs.h. */
5781@%:@ifdef __STDC__
5782@%:@ include <limits.h>
5783@%:@else
5784@%:@ include <assert.h>
5785@%:@endif
5786 Syntax error
5787_ACEOF
5788if ac_fn_c_try_cpp "$LINENO"; then :
5789
5790else
5791 # Broken: fails on valid input.
5792continue
5793fi
5794rm -f conftest.err conftest.i conftest.$ac_ext
5795
5796 # OK, works on sane cases. Now check whether nonexistent headers
5797 # can be detected and how.
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799/* end confdefs.h. */
5800@%:@include <ac_nonexistent.h>
5801_ACEOF
5802if ac_fn_c_try_cpp "$LINENO"; then :
5803 # Broken: success on invalid input.
5804continue
5805else
5806 # Passes both tests.
5807ac_preproc_ok=:
5808break
5809fi
5810rm -f conftest.err conftest.i conftest.$ac_ext
5811
5812done
5813# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5814rm -f conftest.i conftest.err conftest.$ac_ext
5815if $ac_preproc_ok; then :
5816
5817else
5818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5819$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5820as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5821See \`config.log' for more details" "$LINENO" 5; }
5822fi
5823
5824ac_ext=cpp
5825ac_cpp='$CXXCPP $CPPFLAGS'
5826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5829
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5831$as_echo_n "checking for library containing strerror... " >&6; }
5832if ${ac_cv_search_strerror+:} false; then :
5833 $as_echo_n "(cached) " >&6
5834else
5835 ac_func_search_save_LIBS=$LIBS
5836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837/* end confdefs.h. */
5838
5839/* Override any GCC internal prototype to avoid an error.
5840 Use char because int might match the return type of a GCC
5841 builtin and then its argument prototype would still apply. */
5842#ifdef __cplusplus
5843extern "C"
5844#endif
5845char strerror ();
5846int
5847main ()
5848{
5849return strerror ();
5850 ;
5851 return 0;
5852}
5853_ACEOF
5854for ac_lib in '' cposix; do
5855 if test -z "$ac_lib"; then
5856 ac_res="none required"
5857 else
5858 ac_res=-l$ac_lib
5859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5860 fi
5861 if ac_fn_cxx_try_link "$LINENO"; then :
5862 ac_cv_search_strerror=$ac_res
5863fi
5864rm -f core conftest.err conftest.$ac_objext \
5865 conftest$ac_exeext
5866 if ${ac_cv_search_strerror+:} false; then :
5867 break
5868fi
5869done
5870if ${ac_cv_search_strerror+:} false; then :
5871
5872else
5873 ac_cv_search_strerror=no
5874fi
5875rm conftest.$ac_ext
5876LIBS=$ac_func_search_save_LIBS
5877fi
5878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5879$as_echo "$ac_cv_search_strerror" >&6; }
5880ac_res=$ac_cv_search_strerror
5881if test "$ac_res" != no; then :
5882 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5883
5884fi
5885
5886
5887
5888
5889
5890@%:@ Check whether --with-wininc was given.
5891if test "${with_wininc+set}" = set; then :
5892 withval=$with_wininc; win32inc="$withval"
5893else
5894 win32inc=no
5895
5896fi
5897
5898
5899@%:@ Check whether --with-winlib was given.
5900if test "${with_winlib+set}" = set; then :
5901 withval=$with_winlib; win32lib="$withval"
5902else
5903 win32lib=no
5904
5905fi
5906
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSC environment" >&5
5908$as_echo_n "checking for MSC environment... " >&6; }
5909if ${np_cv_prog_msc+:} false; then :
5910 $as_echo_n "(cached) " >&6
5911else
5912
5913 np_cv_prog_msc=no
5914 cat > conftest.c <<EOF
5915#ifndef _MSC_VER
5916#error NOMSC
5917#endif
5918int main() {}
5919EOF
5920 RET=`cl -nologo -c conftest.c 2>&1`
5921 case "$RET" in
5922 conftest.c?)
5923 np_cv_prog_msc=yes
5924 ;;
5925 *)
5926 ;;
5927 esac
5928
5929fi
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $np_cv_prog_msc" >&5
5931$as_echo "$np_cv_prog_msc" >&6; }
5932 if test "x$np_cv_prog_msc" = "xyes" ; then
5933 if test "$win32inc" = "no" ; then
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32 include dir" >&5
5935$as_echo_n "checking for Win32 include dir... " >&6; }
5936
5937 save_IFS="$IFS"
5938 win32inc=no
5939 IFS=","
5940 ENVVAR=`echo $INCLUDE | tr ';' ','`
5941 for i in $ENVVAR ; do
5942 f=`cygpath -u "$i"`
5943 if test -r "$f/ras.h" ; then
5944 win32inc="$f"
5945 break
5946 fi
5947 done
5948 IFS="$save_IFS"
5949
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$win32inc\"" >&5
5951$as_echo "\"$win32inc\"" >&6; }
5952 fi
5953 if test "$win32inc" = "no" ; then
5954 as_fn_error $? "Unable to get Win32 include dir from environment." "$LINENO" 5
5955 as_fn_error $? "use --with-wininc=DIR to set it manually" "$LINENO" 5
5956 fi
5957 if test "$win32lib" = "no" ; then
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32 lib dir" >&5
5959$as_echo_n "checking for Win32 lib dir... " >&6; }
5960
5961 save_IFS="$IFS"
5962 win32lib=no
5963 IFS=","
5964 ENVVAR=`echo $LIB | tr ';' ','`
5965 for i in $ENVVAR ; do
5966 f=`cygpath -u "$i"`
5967 if test -r "$f/wsock32.lib" ; then
5968 win32lib="$f"
5969 break
5970 fi
5971 done
5972 IFS="$save_IFS"
5973
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$win32lib\"" >&5
5975$as_echo "\"$win32lib\"" >&6; }
5976 fi
5977 if test "$win32lib" = "no" ; then
5978 as_fn_error $? "Unable to get Win32 lib dir from environment." "$LINENO" 5
5979 as_fn_error $? "use --with-winlib=DIR to set it manually" "$LINENO" 5
5980 fi
5981 CC="cl -nologo -GX -D__WIN32__ -D_MT -D_WIN32_WINNT=0x0400 -I$win32inc"
5982 CXX="cl -nologo -GX -D__WIN32__ -D_MT -D_WIN32_WINNT=0x0400 -I$win32inc"
5983 LD="link /libpath:$win32lib"
5984 AS=masm
5985 fi
5986 if test $np_cv_prog_msc = yes; then
5987 MSWIN32_TRUE=
5988 MSWIN32_FALSE='#'
5989else
5990 MSWIN32_TRUE='#'
5991 MSWIN32_FALSE=
5992fi
5993
5994
5995enable_win32_dll=yes
5996
5997case $host in
5998*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
5999 if test -n "$ac_tool_prefix"; then
6000 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6001set dummy ${ac_tool_prefix}as; ac_word=$2
6002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003$as_echo_n "checking for $ac_word... " >&6; }
6004if ${ac_cv_prog_AS+:} false; then :
6005 $as_echo_n "(cached) " >&6
6006else
6007 if test -n "$AS"; then
6008 ac_cv_prog_AS="$AS" # Let the user override the test.
6009else
6010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011for as_dir in $PATH
6012do
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6017 ac_cv_prog_AS="${ac_tool_prefix}as"
6018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 break 2
6020 fi
6021done
6022 done
6023IFS=$as_save_IFS
6024
6025fi
6026fi
6027AS=$ac_cv_prog_AS
6028if test -n "$AS"; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6030$as_echo "$AS" >&6; }
6031else
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033$as_echo "no" >&6; }
6034fi
6035
6036
6037fi
6038if test -z "$ac_cv_prog_AS"; then
6039 ac_ct_AS=$AS
6040 # Extract the first word of "as", so it can be a program name with args.
6041set dummy as; ac_word=$2
6042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6043$as_echo_n "checking for $ac_word... " >&6; }
6044if ${ac_cv_prog_ac_ct_AS+:} false; then :
6045 $as_echo_n "(cached) " >&6
6046else
6047 if test -n "$ac_ct_AS"; then
6048 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6049else
6050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051for as_dir in $PATH
6052do
6053 IFS=$as_save_IFS
6054 test -z "$as_dir" && as_dir=.
6055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6057 ac_cv_prog_ac_ct_AS="as"
6058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6059 break 2
6060 fi
6061done
6062 done
6063IFS=$as_save_IFS
6064
6065fi
6066fi
6067ac_ct_AS=$ac_cv_prog_ac_ct_AS
6068if test -n "$ac_ct_AS"; then
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6070$as_echo "$ac_ct_AS" >&6; }
6071else
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6073$as_echo "no" >&6; }
6074fi
6075
6076 if test "x$ac_ct_AS" = x; then
6077 AS="false"
6078 else
6079 case $cross_compiling:$ac_tool_warned in
6080yes:)
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6083ac_tool_warned=yes ;;
6084esac
6085 AS=$ac_ct_AS
6086 fi
6087else
6088 AS="$ac_cv_prog_AS"
6089fi
6090
6091 if test -n "$ac_tool_prefix"; then
6092 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6093set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6095$as_echo_n "checking for $ac_word... " >&6; }
6096if ${ac_cv_prog_DLLTOOL+:} false; then :
6097 $as_echo_n "(cached) " >&6
6098else
6099 if test -n "$DLLTOOL"; then
6100 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6101else
6102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103for as_dir in $PATH
6104do
6105 IFS=$as_save_IFS
6106 test -z "$as_dir" && as_dir=.
6107 for ac_exec_ext in '' $ac_executable_extensions; do
6108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6109 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6111 break 2
6112 fi
6113done
6114 done
6115IFS=$as_save_IFS
6116
6117fi
6118fi
6119DLLTOOL=$ac_cv_prog_DLLTOOL
6120if test -n "$DLLTOOL"; then
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6122$as_echo "$DLLTOOL" >&6; }
6123else
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125$as_echo "no" >&6; }
6126fi
6127
6128
6129fi
6130if test -z "$ac_cv_prog_DLLTOOL"; then
6131 ac_ct_DLLTOOL=$DLLTOOL
6132 # Extract the first word of "dlltool", so it can be a program name with args.
6133set dummy dlltool; ac_word=$2
6134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6135$as_echo_n "checking for $ac_word... " >&6; }
6136if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6137 $as_echo_n "(cached) " >&6
6138else
6139 if test -n "$ac_ct_DLLTOOL"; then
6140 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6141else
6142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143for as_dir in $PATH
6144do
6145 IFS=$as_save_IFS
6146 test -z "$as_dir" && as_dir=.
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6149 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 break 2
6152 fi
6153done
6154 done
6155IFS=$as_save_IFS
6156
6157fi
6158fi
6159ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6160if test -n "$ac_ct_DLLTOOL"; then
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6162$as_echo "$ac_ct_DLLTOOL" >&6; }
6163else
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165$as_echo "no" >&6; }
6166fi
6167
6168 if test "x$ac_ct_DLLTOOL" = x; then
6169 DLLTOOL="false"
6170 else
6171 case $cross_compiling:$ac_tool_warned in
6172yes:)
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6175ac_tool_warned=yes ;;
6176esac
6177 DLLTOOL=$ac_ct_DLLTOOL
6178 fi
6179else
6180 DLLTOOL="$ac_cv_prog_DLLTOOL"
6181fi
6182
6183 if test -n "$ac_tool_prefix"; then
6184 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6185set dummy ${ac_tool_prefix}objdump; ac_word=$2
6186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187$as_echo_n "checking for $ac_word... " >&6; }
6188if ${ac_cv_prog_OBJDUMP+:} false; then :
6189 $as_echo_n "(cached) " >&6
6190else
6191 if test -n "$OBJDUMP"; then
6192 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6193else
6194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195for as_dir in $PATH
6196do
6197 IFS=$as_save_IFS
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6201 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 break 2
6204 fi
6205done
6206 done
6207IFS=$as_save_IFS
6208
6209fi
6210fi
6211OBJDUMP=$ac_cv_prog_OBJDUMP
6212if test -n "$OBJDUMP"; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6214$as_echo "$OBJDUMP" >&6; }
6215else
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217$as_echo "no" >&6; }
6218fi
6219
6220
6221fi
6222if test -z "$ac_cv_prog_OBJDUMP"; then
6223 ac_ct_OBJDUMP=$OBJDUMP
6224 # Extract the first word of "objdump", so it can be a program name with args.
6225set dummy objdump; ac_word=$2
6226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227$as_echo_n "checking for $ac_word... " >&6; }
6228if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6229 $as_echo_n "(cached) " >&6
6230else
6231 if test -n "$ac_ct_OBJDUMP"; then
6232 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6233else
6234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235for as_dir in $PATH
6236do
6237 IFS=$as_save_IFS
6238 test -z "$as_dir" && as_dir=.
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6241 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 break 2
6244 fi
6245done
6246 done
6247IFS=$as_save_IFS
6248
6249fi
6250fi
6251ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6252if test -n "$ac_ct_OBJDUMP"; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6254$as_echo "$ac_ct_OBJDUMP" >&6; }
6255else
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257$as_echo "no" >&6; }
6258fi
6259
6260 if test "x$ac_ct_OBJDUMP" = x; then
6261 OBJDUMP="false"
6262 else
6263 case $cross_compiling:$ac_tool_warned in
6264yes:)
6265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6267ac_tool_warned=yes ;;
6268esac
6269 OBJDUMP=$ac_ct_OBJDUMP
6270 fi
6271else
6272 OBJDUMP="$ac_cv_prog_OBJDUMP"
6273fi
6274
6275 ;;
6276esac
6277
6278test -z "$AS" && AS=as
6279
6280
6281
6282
6283
6284test -z "$DLLTOOL" && DLLTOOL=dlltool
6285
6286
6287
6288
6289
6290test -z "$OBJDUMP" && OBJDUMP=objdump
6291
6292
6293
6294
6295
6296
6297
6298case `pwd` in
6299 *\ * | *\ *)
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6301$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6302esac
6303
6304
6305
6306macro_version='2.4'
6307macro_revision='1.3293'
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321ltmain="$ac_aux_dir/ltmain.sh"
6322
6323# Backslashify metacharacters that are still active within
6324# double-quoted strings.
6325sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6326
6327# Same as above, but do not quote variable references.
6328double_quote_subst='s/\(["`\\]\)/\\\1/g'
6329
6330# Sed substitution to delay expansion of an escaped shell variable in a
6331# double_quote_subst'ed string.
6332delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6333
6334# Sed substitution to delay expansion of an escaped single quote.
6335delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6336
6337# Sed substitution to avoid accidental globbing in evaled expressions
6338no_glob_subst='s/\*/\\\*/g'
6339
6340ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6341ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6342ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6343
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6345$as_echo_n "checking how to print strings... " >&6; }
6346# Test print first, because it will be a builtin if present.
6347if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6348 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6349 ECHO='print -r --'
6350elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6351 ECHO='printf %s\n'
6352else
6353 # Use this function as a fallback that always works.
6354 func_fallback_echo ()
6355 {
6356 eval 'cat <<_LTECHO_EOF
6357$1
6358_LTECHO_EOF'
6359 }
6360 ECHO='func_fallback_echo'
6361fi
6362
6363# func_echo_all arg...
6364# Invoke $ECHO with all args, space-separated.
6365func_echo_all ()
6366{
6367 $ECHO ""
6368}
6369
6370case "$ECHO" in
6371 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6372$as_echo "printf" >&6; } ;;
6373 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6374$as_echo "print -r" >&6; } ;;
6375 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6376$as_echo "cat" >&6; } ;;
6377esac
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6393$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6394if ${ac_cv_path_SED+:} false; then :
6395 $as_echo_n "(cached) " >&6
6396else
6397 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6398 for ac_i in 1 2 3 4 5 6 7; do
6399 ac_script="$ac_script$as_nl$ac_script"
6400 done
6401 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6402 { ac_script=; unset ac_script;}
6403 if test -z "$SED"; then
6404 ac_path_SED_found=false
6405 # Loop through the user's path and test for each of PROGNAME-LIST
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407for as_dir in $PATH
6408do
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
6411 for ac_prog in sed gsed; do
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6414 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6415# Check for GNU ac_path_SED and select it if it is found.
6416 # Check for GNU $ac_path_SED
6417case `"$ac_path_SED" --version 2>&1` in
6418*GNU*)
6419 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6420*)
6421 ac_count=0
6422 $as_echo_n 0123456789 >"conftest.in"
6423 while :
6424 do
6425 cat "conftest.in" "conftest.in" >"conftest.tmp"
6426 mv "conftest.tmp" "conftest.in"
6427 cp "conftest.in" "conftest.nl"
6428 $as_echo '' >> "conftest.nl"
6429 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6430 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6431 as_fn_arith $ac_count + 1 && ac_count=$as_val
6432 if test $ac_count -gt ${ac_path_SED_max-0}; then
6433 # Best one so far, save it but keep looking for a better one
6434 ac_cv_path_SED="$ac_path_SED"
6435 ac_path_SED_max=$ac_count
6436 fi
6437 # 10*(2^10) chars as input seems more than enough
6438 test $ac_count -gt 10 && break
6439 done
6440 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6441esac
6442
6443 $ac_path_SED_found && break 3
6444 done
6445 done
6446 done
6447IFS=$as_save_IFS
6448 if test -z "$ac_cv_path_SED"; then
6449 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6450 fi
6451else
6452 ac_cv_path_SED=$SED
6453fi
6454
6455fi
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6457$as_echo "$ac_cv_path_SED" >&6; }
6458 SED="$ac_cv_path_SED"
6459 rm -f conftest.sed
6460
6461test -z "$SED" && SED=sed
6462Xsed="$SED -e 1s/^X//"
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6475$as_echo_n "checking for fgrep... " >&6; }
6476if ${ac_cv_path_FGREP+:} false; then :
6477 $as_echo_n "(cached) " >&6
6478else
6479 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6480 then ac_cv_path_FGREP="$GREP -F"
6481 else
6482 if test -z "$FGREP"; then
6483 ac_path_FGREP_found=false
6484 # Loop through the user's path and test for each of PROGNAME-LIST
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6487do
6488 IFS=$as_save_IFS
6489 test -z "$as_dir" && as_dir=.
6490 for ac_prog in fgrep; do
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6493 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6494# Check for GNU ac_path_FGREP and select it if it is found.
6495 # Check for GNU $ac_path_FGREP
6496case `"$ac_path_FGREP" --version 2>&1` in
6497*GNU*)
6498 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6499*)
6500 ac_count=0
6501 $as_echo_n 0123456789 >"conftest.in"
6502 while :
6503 do
6504 cat "conftest.in" "conftest.in" >"conftest.tmp"
6505 mv "conftest.tmp" "conftest.in"
6506 cp "conftest.in" "conftest.nl"
6507 $as_echo 'FGREP' >> "conftest.nl"
6508 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6509 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6510 as_fn_arith $ac_count + 1 && ac_count=$as_val
6511 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6512 # Best one so far, save it but keep looking for a better one
6513 ac_cv_path_FGREP="$ac_path_FGREP"
6514 ac_path_FGREP_max=$ac_count
6515 fi
6516 # 10*(2^10) chars as input seems more than enough
6517 test $ac_count -gt 10 && break
6518 done
6519 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6520esac
6521
6522 $ac_path_FGREP_found && break 3
6523 done
6524 done
6525 done
6526IFS=$as_save_IFS
6527 if test -z "$ac_cv_path_FGREP"; then
6528 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6529 fi
6530else
6531 ac_cv_path_FGREP=$FGREP
6532fi
6533
6534 fi
6535fi
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6537$as_echo "$ac_cv_path_FGREP" >&6; }
6538 FGREP="$ac_cv_path_FGREP"
6539
6540
6541test -z "$GREP" && GREP=grep
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561@%:@ Check whether --with-gnu-ld was given.
6562if test "${with_gnu_ld+set}" = set; then :
6563 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6564else
6565 with_gnu_ld=no
6566fi
6567
6568ac_prog=ld
6569if test "$GCC" = yes; then
6570 # Check if gcc -print-prog-name=ld gives a path.
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6572$as_echo_n "checking for ld used by $CC... " >&6; }
6573 case $host in
6574 *-*-mingw*)
6575 # gcc leaves a trailing carriage return which upsets mingw
6576 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6577 *)
6578 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6579 esac
6580 case $ac_prog in
6581 # Accept absolute paths.
6582 [\\/]* | ?:[\\/]*)
6583 re_direlt='/[^/][^/]*/\.\./'
6584 # Canonicalize the pathname of ld
6585 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6586 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6587 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6588 done
6589 test -z "$LD" && LD="$ac_prog"
6590 ;;
6591 "")
6592 # If it fails, then pretend we aren't using GCC.
6593 ac_prog=ld
6594 ;;
6595 *)
6596 # If it is relative, then search for the first ld in PATH.
6597 with_gnu_ld=unknown
6598 ;;
6599 esac
6600elif test "$with_gnu_ld" = yes; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6602$as_echo_n "checking for GNU ld... " >&6; }
6603else
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6605$as_echo_n "checking for non-GNU ld... " >&6; }
6606fi
6607if ${lt_cv_path_LD+:} false; then :
6608 $as_echo_n "(cached) " >&6
6609else
6610 if test -z "$LD"; then
6611 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6612 for ac_dir in $PATH; do
6613 IFS="$lt_save_ifs"
6614 test -z "$ac_dir" && ac_dir=.
6615 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6616 lt_cv_path_LD="$ac_dir/$ac_prog"
6617 # Check to see if the program is GNU ld. I'd rather use --version,
6618 # but apparently some variants of GNU ld only accept -v.
6619 # Break only if it was the GNU/non-GNU ld that we prefer.
6620 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6621 *GNU* | *'with BFD'*)
6622 test "$with_gnu_ld" != no && break
6623 ;;
6624 *)
6625 test "$with_gnu_ld" != yes && break
6626 ;;
6627 esac
6628 fi
6629 done
6630 IFS="$lt_save_ifs"
6631else
6632 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6633fi
6634fi
6635
6636LD="$lt_cv_path_LD"
6637if test -n "$LD"; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6639$as_echo "$LD" >&6; }
6640else
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642$as_echo "no" >&6; }
6643fi
6644test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6646$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6647if ${lt_cv_prog_gnu_ld+:} false; then :
6648 $as_echo_n "(cached) " >&6
6649else
6650 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6651case `$LD -v 2>&1 </dev/null` in
6652*GNU* | *'with BFD'*)
6653 lt_cv_prog_gnu_ld=yes
6654 ;;
6655*)
6656 lt_cv_prog_gnu_ld=no
6657 ;;
6658esac
6659fi
6660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6661$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6662with_gnu_ld=$lt_cv_prog_gnu_ld
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6673$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6674if ${lt_cv_path_NM+:} false; then :
6675 $as_echo_n "(cached) " >&6
6676else
6677 if test -n "$NM"; then
6678 # Let the user override the test.
6679 lt_cv_path_NM="$NM"
6680else
6681 lt_nm_to_check="${ac_tool_prefix}nm"
6682 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6683 lt_nm_to_check="$lt_nm_to_check nm"
6684 fi
6685 for lt_tmp_nm in $lt_nm_to_check; do
6686 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6687 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6688 IFS="$lt_save_ifs"
6689 test -z "$ac_dir" && ac_dir=.
6690 tmp_nm="$ac_dir/$lt_tmp_nm"
6691 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6692 # Check to see if the nm accepts a BSD-compat flag.
6693 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6694 # nm: unknown option "B" ignored
6695 # Tru64's nm complains that /dev/null is an invalid object file
6696 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6697 */dev/null* | *'Invalid file or object type'*)
6698 lt_cv_path_NM="$tmp_nm -B"
6699 break
6700 ;;
6701 *)
6702 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6703 */dev/null*)
6704 lt_cv_path_NM="$tmp_nm -p"
6705 break
6706 ;;
6707 *)
6708 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6709 continue # so that we can try to find one that supports BSD flags
6710 ;;
6711 esac
6712 ;;
6713 esac
6714 fi
6715 done
6716 IFS="$lt_save_ifs"
6717 done
6718 : ${lt_cv_path_NM=no}
6719fi
6720fi
6721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6722$as_echo "$lt_cv_path_NM" >&6; }
6723if test "$lt_cv_path_NM" != "no"; then
6724 NM="$lt_cv_path_NM"
6725else
6726 # Didn't find any BSD compatible name lister, look for dumpbin.
6727 if test -n "$DUMPBIN"; then :
6728 # Let the user override the test.
6729 else
6730 if test -n "$ac_tool_prefix"; then
6731 for ac_prog in dumpbin "link -dump"
6732 do
6733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6734set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736$as_echo_n "checking for $ac_word... " >&6; }
6737if ${ac_cv_prog_DUMPBIN+:} false; then :
6738 $as_echo_n "(cached) " >&6
6739else
6740 if test -n "$DUMPBIN"; then
6741 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6742else
6743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744for as_dir in $PATH
6745do
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6753 fi
6754done
6755 done
6756IFS=$as_save_IFS
6757
6758fi
6759fi
6760DUMPBIN=$ac_cv_prog_DUMPBIN
6761if test -n "$DUMPBIN"; then
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6763$as_echo "$DUMPBIN" >&6; }
6764else
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766$as_echo "no" >&6; }
6767fi
6768
6769
6770 test -n "$DUMPBIN" && break
6771 done
6772fi
6773if test -z "$DUMPBIN"; then
6774 ac_ct_DUMPBIN=$DUMPBIN
6775 for ac_prog in dumpbin "link -dump"
6776do
6777 # Extract the first word of "$ac_prog", so it can be a program name with args.
6778set dummy $ac_prog; ac_word=$2
6779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780$as_echo_n "checking for $ac_word... " >&6; }
6781if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6782 $as_echo_n "(cached) " >&6
6783else
6784 if test -n "$ac_ct_DUMPBIN"; then
6785 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6786else
6787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788for as_dir in $PATH
6789do
6790 IFS=$as_save_IFS
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 break 2
6797 fi
6798done
6799 done
6800IFS=$as_save_IFS
6801
6802fi
6803fi
6804ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6805if test -n "$ac_ct_DUMPBIN"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6807$as_echo "$ac_ct_DUMPBIN" >&6; }
6808else
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810$as_echo "no" >&6; }
6811fi
6812
6813
6814 test -n "$ac_ct_DUMPBIN" && break
6815done
6816
6817 if test "x$ac_ct_DUMPBIN" = x; then
6818 DUMPBIN=":"
6819 else
6820 case $cross_compiling:$ac_tool_warned in
6821yes:)
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6824ac_tool_warned=yes ;;
6825esac
6826 DUMPBIN=$ac_ct_DUMPBIN
6827 fi
6828fi
6829
6830 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6831 *COFF*)
6832 DUMPBIN="$DUMPBIN -symbols"
6833 ;;
6834 *)
6835 DUMPBIN=:
6836 ;;
6837 esac
6838 fi
6839
6840 if test "$DUMPBIN" != ":"; then
6841 NM="$DUMPBIN"
6842 fi
6843fi
6844test -z "$NM" && NM=nm
6845
6846
6847
6848
6849
6850
6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6852$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6853if ${lt_cv_nm_interface+:} false; then :
6854 $as_echo_n "(cached) " >&6
6855else
6856 lt_cv_nm_interface="BSD nm"
6857 echo "int some_variable = 0;" > conftest.$ac_ext
6858 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6859 (eval "$ac_compile" 2>conftest.err)
6860 cat conftest.err >&5
6861 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6862 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6863 cat conftest.err >&5
6864 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6865 cat conftest.out >&5
6866 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6867 lt_cv_nm_interface="MS dumpbin"
6868 fi
6869 rm -f conftest*
6870fi
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6872$as_echo "$lt_cv_nm_interface" >&6; }
6873
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6875$as_echo_n "checking whether ln -s works... " >&6; }
6876LN_S=$as_ln_s
6877if test "$LN_S" = "ln -s"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6879$as_echo "yes" >&6; }
6880else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6882$as_echo "no, using $LN_S" >&6; }
6883fi
6884
6885# find the maximum length of command line arguments
6886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6887$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6888if ${lt_cv_sys_max_cmd_len+:} false; then :
6889 $as_echo_n "(cached) " >&6
6890else
6891 i=0
6892 teststring="ABCD"
6893
6894 case $build_os in
6895 msdosdjgpp*)
6896 # On DJGPP, this test can blow up pretty badly due to problems in libc
6897 # (any single argument exceeding 2000 bytes causes a buffer overrun
6898 # during glob expansion). Even if it were fixed, the result of this
6899 # check would be larger than it should be.
6900 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6901 ;;
6902
6903 gnu*)
6904 # Under GNU Hurd, this test is not required because there is
6905 # no limit to the length of command line arguments.
6906 # Libtool will interpret -1 as no limit whatsoever
6907 lt_cv_sys_max_cmd_len=-1;
6908 ;;
6909
6910 cygwin* | mingw* | cegcc*)
6911 # On Win9x/ME, this test blows up -- it succeeds, but takes
6912 # about 5 minutes as the teststring grows exponentially.
6913 # Worse, since 9x/ME are not pre-emptively multitasking,
6914 # you end up with a "frozen" computer, even though with patience
6915 # the test eventually succeeds (with a max line length of 256k).
6916 # Instead, let's just punt: use the minimum linelength reported by
6917 # all of the supported platforms: 8192 (on NT/2K/XP).
6918 lt_cv_sys_max_cmd_len=8192;
6919 ;;
6920
6921 mint*)
6922 # On MiNT this can take a long time and run out of memory.
6923 lt_cv_sys_max_cmd_len=8192;
6924 ;;
6925
6926 amigaos*)
6927 # On AmigaOS with pdksh, this test takes hours, literally.
6928 # So we just punt and use a minimum line length of 8192.
6929 lt_cv_sys_max_cmd_len=8192;
6930 ;;
6931
6932 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6933 # This has been around since 386BSD, at least. Likely further.
6934 if test -x /sbin/sysctl; then
6935 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6936 elif test -x /usr/sbin/sysctl; then
6937 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6938 else
6939 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6940 fi
6941 # And add a safety zone
6942 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6944 ;;
6945
6946 interix*)
6947 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6948 lt_cv_sys_max_cmd_len=196608
6949 ;;
6950
6951 osf*)
6952 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6953 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6954 # nice to cause kernel panics so lets avoid the loop below.
6955 # First set a reasonable default.
6956 lt_cv_sys_max_cmd_len=16384
6957 #
6958 if test -x /sbin/sysconfig; then
6959 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6960 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6961 esac
6962 fi
6963 ;;
6964 sco3.2v5*)
6965 lt_cv_sys_max_cmd_len=102400
6966 ;;
6967 sysv5* | sco5v6* | sysv4.2uw2*)
6968 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6969 if test -n "$kargmax"; then
6970 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6971 else
6972 lt_cv_sys_max_cmd_len=32768
6973 fi
6974 ;;
6975 *)
6976 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6977 if test -n "$lt_cv_sys_max_cmd_len"; then
6978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6979 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6980 else
6981 # Make teststring a little bigger before we do anything with it.
6982 # a 1K string should be a reasonable start.
6983 for i in 1 2 3 4 5 6 7 8 ; do
6984 teststring=$teststring$teststring
6985 done
6986 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6987 # If test is not a shell built-in, we'll probably end up computing a
6988 # maximum length that is only half of the actual maximum length, but
6989 # we can't tell.
6990 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6991 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6992 test $i != 17 # 1/2 MB should be enough
6993 do
6994 i=`expr $i + 1`
6995 teststring=$teststring$teststring
6996 done
6997 # Only check the string length outside the loop.
6998 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6999 teststring=
7000 # Add a significant safety factor because C++ compilers can tack on
7001 # massive amounts of additional arguments before passing them to the
7002 # linker. It appears as though 1/2 is a usable value.
7003 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7004 fi
7005 ;;
7006 esac
7007
7008fi
7009
7010if test -n $lt_cv_sys_max_cmd_len ; then
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7012$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7013else
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7015$as_echo "none" >&6; }
7016fi
7017max_cmd_len=$lt_cv_sys_max_cmd_len
7018
7019
7020
7021
7022
7023
7024: ${CP="cp -f"}
7025: ${MV="mv -f"}
7026: ${RM="rm -f"}
7027
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7029$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7030# Try some XSI features
7031xsi_shell=no
7032( _lt_dummy="a/b/c"
7033 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7034 = c,a/b,b/c, \
7035 && eval 'test $(( 1 + 1 )) -eq 2 \
7036 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7037 && xsi_shell=yes
7038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7039$as_echo "$xsi_shell" >&6; }
7040
7041
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7043$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7044lt_shell_append=no
7045( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7046 >/dev/null 2>&1 \
7047 && lt_shell_append=yes
7048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7049$as_echo "$lt_shell_append" >&6; }
7050
7051
7052if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7053 lt_unset=unset
7054else
7055 lt_unset=false
7056fi
7057
7058
7059
7060
7061
7062# test EBCDIC or ASCII
7063case `echo X|tr X '\101'` in
7064 A) # ASCII based system
7065 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7066 lt_SP2NL='tr \040 \012'
7067 lt_NL2SP='tr \015\012 \040\040'
7068 ;;
7069 *) # EBCDIC based system
7070 lt_SP2NL='tr \100 \n'
7071 lt_NL2SP='tr \r\n \100\100'
7072 ;;
7073esac
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7084$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7085if ${lt_cv_to_host_file_cmd+:} false; then :
7086 $as_echo_n "(cached) " >&6
7087else
7088 case $host in
7089 *-*-mingw* )
7090 case $build in
7091 *-*-mingw* ) # actually msys
7092 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7093 ;;
7094 *-*-cygwin* )
7095 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7096 ;;
7097 * ) # otherwise, assume *nix
7098 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7099 ;;
7100 esac
7101 ;;
7102 *-*-cygwin* )
7103 case $build in
7104 *-*-mingw* ) # actually msys
7105 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7106 ;;
7107 *-*-cygwin* )
7108 lt_cv_to_host_file_cmd=func_convert_file_noop
7109 ;;
7110 * ) # otherwise, assume *nix
7111 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7112 ;;
7113 esac
7114 ;;
7115 * ) # unhandled hosts (and "normal" native builds)
7116 lt_cv_to_host_file_cmd=func_convert_file_noop
7117 ;;
7118esac
7119
7120fi
7121
7122to_host_file_cmd=$lt_cv_to_host_file_cmd
7123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7124$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7125
7126
7127
7128
7129
7130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7131$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7132if ${lt_cv_to_tool_file_cmd+:} false; then :
7133 $as_echo_n "(cached) " >&6
7134else
7135 #assume ordinary cross tools, or native build.
7136lt_cv_to_tool_file_cmd=func_convert_file_noop
7137case $host in
7138 *-*-mingw* )
7139 case $build in
7140 *-*-mingw* ) # actually msys
7141 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7142 ;;
7143 esac
7144 ;;
7145esac
7146
7147fi
7148
7149to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7151$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7152
7153
7154
7155
7156
7157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7158$as_echo_n "checking for $LD option to reload object files... " >&6; }
7159if ${lt_cv_ld_reload_flag+:} false; then :
7160 $as_echo_n "(cached) " >&6
7161else
7162 lt_cv_ld_reload_flag='-r'
7163fi
7164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7165$as_echo "$lt_cv_ld_reload_flag" >&6; }
7166reload_flag=$lt_cv_ld_reload_flag
7167case $reload_flag in
7168"" | " "*) ;;
7169*) reload_flag=" $reload_flag" ;;
7170esac
7171reload_cmds='$LD$reload_flag -o $output$reload_objs'
7172case $host_os in
7173 cygwin* | mingw* | pw32* | cegcc*)
7174 if test "$GCC" != yes; then
7175 reload_cmds=false
7176 fi
7177 ;;
7178 darwin*)
7179 if test "$GCC" = yes; then
7180 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7181 else
7182 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7183 fi
7184 ;;
7185esac
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195if test -n "$ac_tool_prefix"; then
7196 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7197set dummy ${ac_tool_prefix}objdump; ac_word=$2
7198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7199$as_echo_n "checking for $ac_word... " >&6; }
7200if ${ac_cv_prog_OBJDUMP+:} false; then :
7201 $as_echo_n "(cached) " >&6
7202else
7203 if test -n "$OBJDUMP"; then
7204 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7205else
7206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207for as_dir in $PATH
7208do
7209 IFS=$as_save_IFS
7210 test -z "$as_dir" && as_dir=.
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7213 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7215 break 2
7216 fi
7217done
7218 done
7219IFS=$as_save_IFS
7220
7221fi
7222fi
7223OBJDUMP=$ac_cv_prog_OBJDUMP
7224if test -n "$OBJDUMP"; then
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7226$as_echo "$OBJDUMP" >&6; }
7227else
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229$as_echo "no" >&6; }
7230fi
7231
7232
7233fi
7234if test -z "$ac_cv_prog_OBJDUMP"; then
7235 ac_ct_OBJDUMP=$OBJDUMP
7236 # Extract the first word of "objdump", so it can be a program name with args.
7237set dummy objdump; ac_word=$2
7238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239$as_echo_n "checking for $ac_word... " >&6; }
7240if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7241 $as_echo_n "(cached) " >&6
7242else
7243 if test -n "$ac_ct_OBJDUMP"; then
7244 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7245else
7246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247for as_dir in $PATH
7248do
7249 IFS=$as_save_IFS
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7253 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 break 2
7256 fi
7257done
7258 done
7259IFS=$as_save_IFS
7260
7261fi
7262fi
7263ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7264if test -n "$ac_ct_OBJDUMP"; then
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7266$as_echo "$ac_ct_OBJDUMP" >&6; }
7267else
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269$as_echo "no" >&6; }
7270fi
7271
7272 if test "x$ac_ct_OBJDUMP" = x; then
7273 OBJDUMP="false"
7274 else
7275 case $cross_compiling:$ac_tool_warned in
7276yes:)
7277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7279ac_tool_warned=yes ;;
7280esac
7281 OBJDUMP=$ac_ct_OBJDUMP
7282 fi
7283else
7284 OBJDUMP="$ac_cv_prog_OBJDUMP"
7285fi
7286
7287test -z "$OBJDUMP" && OBJDUMP=objdump
7288
7289
7290
7291
7292
7293
7294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7295$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7296if ${lt_cv_deplibs_check_method+:} false; then :
7297 $as_echo_n "(cached) " >&6
7298else
7299 lt_cv_file_magic_cmd='$MAGIC_CMD'
7300lt_cv_file_magic_test_file=
7301lt_cv_deplibs_check_method='unknown'
7302# Need to set the preceding variable on all platforms that support
7303# interlibrary dependencies.
7304# 'none' -- dependencies not supported.
7305# `unknown' -- same as none, but documents that we really don't know.
7306# 'pass_all' -- all dependencies passed with no checks.
7307# 'test_compile' -- check by making test program.
7308# 'file_magic [[regex]]' -- check by looking for files in library path
7309# which responds to the $file_magic_cmd with a given extended regex.
7310# If you have `file' or equivalent on your system and you're not sure
7311# whether `pass_all' will *always* work, you probably want this one.
7312
7313case $host_os in
7314aix[4-9]*)
7315 lt_cv_deplibs_check_method=pass_all
7316 ;;
7317
7318beos*)
7319 lt_cv_deplibs_check_method=pass_all
7320 ;;
7321
7322bsdi[45]*)
7323 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7324 lt_cv_file_magic_cmd='/usr/bin/file -L'
7325 lt_cv_file_magic_test_file=/shlib/libc.so
7326 ;;
7327
7328cygwin*)
7329 # func_win32_libid is a shell function defined in ltmain.sh
7330 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7331 lt_cv_file_magic_cmd='func_win32_libid'
7332 ;;
7333
7334mingw* | pw32*)
7335 # Base MSYS/MinGW do not provide the 'file' command needed by
7336 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7337 # unless we find 'file', for example because we are cross-compiling.
7338 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7339 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7340 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7341 lt_cv_file_magic_cmd='func_win32_libid'
7342 else
7343 # Keep this pattern in sync with the one in func_win32_libid.
7344 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7345 lt_cv_file_magic_cmd='$OBJDUMP -f'
7346 fi
7347 ;;
7348
7349cegcc*)
7350 # use the weaker test based on 'objdump'. See mingw*.
7351 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7352 lt_cv_file_magic_cmd='$OBJDUMP -f'
7353 ;;
7354
7355darwin* | rhapsody*)
7356 lt_cv_deplibs_check_method=pass_all
7357 ;;
7358
7359freebsd* | dragonfly*)
7360 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7361 case $host_cpu in
7362 i*86 )
7363 # Not sure whether the presence of OpenBSD here was a mistake.
7364 # Let's accept both of them until this is cleared up.
7365 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7366 lt_cv_file_magic_cmd=/usr/bin/file
7367 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7368 ;;
7369 esac
7370 else
7371 lt_cv_deplibs_check_method=pass_all
7372 fi
7373 ;;
7374
7375gnu*)
7376 lt_cv_deplibs_check_method=pass_all
7377 ;;
7378
7379haiku*)
7380 lt_cv_deplibs_check_method=pass_all
7381 ;;
7382
7383hpux10.20* | hpux11*)
7384 lt_cv_file_magic_cmd=/usr/bin/file
7385 case $host_cpu in
7386 ia64*)
7387 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7388 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7389 ;;
7390 hppa*64*)
7391 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7392 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7393 ;;
7394 *)
7395 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7396 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7397 ;;
7398 esac
7399 ;;
7400
7401interix[3-9]*)
7402 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7404 ;;
7405
7406irix5* | irix6* | nonstopux*)
7407 case $LD in
7408 *-32|*"-32 ") libmagic=32-bit;;
7409 *-n32|*"-n32 ") libmagic=N32;;
7410 *-64|*"-64 ") libmagic=64-bit;;
7411 *) libmagic=never-match;;
7412 esac
7413 lt_cv_deplibs_check_method=pass_all
7414 ;;
7415
7416# This must be Linux ELF.
7417linux* | k*bsd*-gnu | kopensolaris*-gnu)
7418 lt_cv_deplibs_check_method=pass_all
7419 ;;
7420
7421netbsd* | netbsdelf*-gnu)
7422 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7423 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7424 else
7425 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7426 fi
7427 ;;
7428
7429newos6*)
7430 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7431 lt_cv_file_magic_cmd=/usr/bin/file
7432 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7433 ;;
7434
7435*nto* | *qnx*)
7436 lt_cv_deplibs_check_method=pass_all
7437 ;;
7438
7439openbsd*)
7440 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7441 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7442 else
7443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7444 fi
7445 ;;
7446
7447osf3* | osf4* | osf5*)
7448 lt_cv_deplibs_check_method=pass_all
7449 ;;
7450
7451rdos*)
7452 lt_cv_deplibs_check_method=pass_all
7453 ;;
7454
7455solaris*)
7456 lt_cv_deplibs_check_method=pass_all
7457 ;;
7458
7459sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7460 lt_cv_deplibs_check_method=pass_all
7461 ;;
7462
7463sysv4 | sysv4.3*)
7464 case $host_vendor in
7465 motorola)
7466 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]'
7467 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7468 ;;
7469 ncr)
7470 lt_cv_deplibs_check_method=pass_all
7471 ;;
7472 sequent)
7473 lt_cv_file_magic_cmd='/bin/file'
7474 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7475 ;;
7476 sni)
7477 lt_cv_file_magic_cmd='/bin/file'
7478 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7479 lt_cv_file_magic_test_file=/lib/libc.so
7480 ;;
7481 siemens)
7482 lt_cv_deplibs_check_method=pass_all
7483 ;;
7484 pc)
7485 lt_cv_deplibs_check_method=pass_all
7486 ;;
7487 esac
7488 ;;
7489
7490tpf*)
7491 lt_cv_deplibs_check_method=pass_all
7492 ;;
7493esac
7494
7495fi
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7497$as_echo "$lt_cv_deplibs_check_method" >&6; }
7498
7499file_magic_glob=
7500want_nocaseglob=no
7501if test "$build" = "$host"; then
7502 case $host_os in
7503 mingw* | pw32*)
7504 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7505 want_nocaseglob=yes
7506 else
7507 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7508 fi
7509 ;;
7510 esac
7511fi
7512
7513file_magic_cmd=$lt_cv_file_magic_cmd
7514deplibs_check_method=$lt_cv_deplibs_check_method
7515test -z "$deplibs_check_method" && deplibs_check_method=unknown
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538if test -n "$ac_tool_prefix"; then
7539 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7540set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542$as_echo_n "checking for $ac_word... " >&6; }
7543if ${ac_cv_prog_DLLTOOL+:} false; then :
7544 $as_echo_n "(cached) " >&6
7545else
7546 if test -n "$DLLTOOL"; then
7547 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7548else
7549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550for as_dir in $PATH
7551do
7552 IFS=$as_save_IFS
7553 test -z "$as_dir" && as_dir=.
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7556 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 break 2
7559 fi
7560done
7561 done
7562IFS=$as_save_IFS
7563
7564fi
7565fi
7566DLLTOOL=$ac_cv_prog_DLLTOOL
7567if test -n "$DLLTOOL"; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7569$as_echo "$DLLTOOL" >&6; }
7570else
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572$as_echo "no" >&6; }
7573fi
7574
7575
7576fi
7577if test -z "$ac_cv_prog_DLLTOOL"; then
7578 ac_ct_DLLTOOL=$DLLTOOL
7579 # Extract the first word of "dlltool", so it can be a program name with args.
7580set dummy dlltool; ac_word=$2
7581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582$as_echo_n "checking for $ac_word... " >&6; }
7583if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7584 $as_echo_n "(cached) " >&6
7585else
7586 if test -n "$ac_ct_DLLTOOL"; then
7587 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7588else
7589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590for as_dir in $PATH
7591do
7592 IFS=$as_save_IFS
7593 test -z "$as_dir" && as_dir=.
7594 for ac_exec_ext in '' $ac_executable_extensions; do
7595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7596 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7598 break 2
7599 fi
7600done
7601 done
7602IFS=$as_save_IFS
7603
7604fi
7605fi
7606ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7607if test -n "$ac_ct_DLLTOOL"; then
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7609$as_echo "$ac_ct_DLLTOOL" >&6; }
7610else
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612$as_echo "no" >&6; }
7613fi
7614
7615 if test "x$ac_ct_DLLTOOL" = x; then
7616 DLLTOOL="false"
7617 else
7618 case $cross_compiling:$ac_tool_warned in
7619yes:)
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7622ac_tool_warned=yes ;;
7623esac
7624 DLLTOOL=$ac_ct_DLLTOOL
7625 fi
7626else
7627 DLLTOOL="$ac_cv_prog_DLLTOOL"
7628fi
7629
7630test -z "$DLLTOOL" && DLLTOOL=dlltool
7631
7632
7633
7634
7635
7636
7637
7638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7639$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7640if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7641 $as_echo_n "(cached) " >&6
7642else
7643 lt_cv_sharedlib_from_linklib_cmd='unknown'
7644
7645case $host_os in
7646cygwin* | mingw* | pw32* | cegcc*)
7647 # two different shell functions defined in ltmain.sh
7648 # decide which to use based on capabilities of $DLLTOOL
7649 case `$DLLTOOL --help 2>&1` in
7650 *--identify-strict*)
7651 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7652 ;;
7653 *)
7654 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7655 ;;
7656 esac
7657 ;;
7658*)
7659 # fallback: assume linklib IS sharedlib
7660 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7661 ;;
7662esac
7663
7664fi
7665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7666$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7667sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7668test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7669
7670
7671
7672
7673
7674
7675
7676if test -n "$ac_tool_prefix"; then
7677 for ac_prog in ar
7678 do
7679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7680set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682$as_echo_n "checking for $ac_word... " >&6; }
7683if ${ac_cv_prog_AR+:} false; then :
7684 $as_echo_n "(cached) " >&6
7685else
7686 if test -n "$AR"; then
7687 ac_cv_prog_AR="$AR" # Let the user override the test.
7688else
7689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690for as_dir in $PATH
7691do
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7696 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 break 2
7699 fi
7700done
7701 done
7702IFS=$as_save_IFS
7703
7704fi
7705fi
7706AR=$ac_cv_prog_AR
7707if test -n "$AR"; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7709$as_echo "$AR" >&6; }
7710else
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712$as_echo "no" >&6; }
7713fi
7714
7715
7716 test -n "$AR" && break
7717 done
7718fi
7719if test -z "$AR"; then
7720 ac_ct_AR=$AR
7721 for ac_prog in ar
7722do
7723 # Extract the first word of "$ac_prog", so it can be a program name with args.
7724set dummy $ac_prog; ac_word=$2
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7726$as_echo_n "checking for $ac_word... " >&6; }
7727if ${ac_cv_prog_ac_ct_AR+:} false; then :
7728 $as_echo_n "(cached) " >&6
7729else
7730 if test -n "$ac_ct_AR"; then
7731 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7732else
7733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734for as_dir in $PATH
7735do
7736 IFS=$as_save_IFS
7737 test -z "$as_dir" && as_dir=.
7738 for ac_exec_ext in '' $ac_executable_extensions; do
7739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7740 ac_cv_prog_ac_ct_AR="$ac_prog"
7741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 break 2
7743 fi
7744done
7745 done
7746IFS=$as_save_IFS
7747
7748fi
7749fi
7750ac_ct_AR=$ac_cv_prog_ac_ct_AR
7751if test -n "$ac_ct_AR"; then
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7753$as_echo "$ac_ct_AR" >&6; }
7754else
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756$as_echo "no" >&6; }
7757fi
7758
7759
7760 test -n "$ac_ct_AR" && break
7761done
7762
7763 if test "x$ac_ct_AR" = x; then
7764 AR="false"
7765 else
7766 case $cross_compiling:$ac_tool_warned in
7767yes:)
7768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7770ac_tool_warned=yes ;;
7771esac
7772 AR=$ac_ct_AR
7773 fi
7774fi
7775
7776: ${AR=ar}
7777: ${AR_FLAGS=cru}
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7790$as_echo_n "checking for archiver @FILE support... " >&6; }
7791if ${lt_cv_ar_at_file+:} false; then :
7792 $as_echo_n "(cached) " >&6
7793else
7794 lt_cv_ar_at_file=no
7795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796/* end confdefs.h. */
7797
7798int
7799main ()
7800{
7801
7802 ;
7803 return 0;
7804}
7805_ACEOF
7806if ac_fn_cxx_try_compile "$LINENO"; then :
7807 echo conftest.$ac_objext > conftest.lst
7808 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7810 (eval $lt_ar_try) 2>&5
7811 ac_status=$?
7812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7813 test $ac_status = 0; }
7814 if test "$ac_status" -eq 0; then
7815 # Ensure the archiver fails upon bogus file names.
7816 rm -f conftest.$ac_objext libconftest.a
7817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7818 (eval $lt_ar_try) 2>&5
7819 ac_status=$?
7820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7821 test $ac_status = 0; }
7822 if test "$ac_status" -ne 0; then
7823 lt_cv_ar_at_file=@
7824 fi
7825 fi
7826 rm -f conftest.* libconftest.a
7827
7828fi
7829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7830
7831fi
7832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7833$as_echo "$lt_cv_ar_at_file" >&6; }
7834
7835if test "x$lt_cv_ar_at_file" = xno; then
7836 archiver_list_spec=
7837else
7838 archiver_list_spec=$lt_cv_ar_at_file
7839fi
7840
7841
7842
7843
7844
7845
7846
7847if test -n "$ac_tool_prefix"; then
7848 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7849set dummy ${ac_tool_prefix}strip; ac_word=$2
7850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7851$as_echo_n "checking for $ac_word... " >&6; }
7852if ${ac_cv_prog_STRIP+:} false; then :
7853 $as_echo_n "(cached) " >&6
7854else
7855 if test -n "$STRIP"; then
7856 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7857else
7858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859for as_dir in $PATH
7860do
7861 IFS=$as_save_IFS
7862 test -z "$as_dir" && as_dir=.
7863 for ac_exec_ext in '' $ac_executable_extensions; do
7864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7865 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7867 break 2
7868 fi
7869done
7870 done
7871IFS=$as_save_IFS
7872
7873fi
7874fi
7875STRIP=$ac_cv_prog_STRIP
7876if test -n "$STRIP"; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7878$as_echo "$STRIP" >&6; }
7879else
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7881$as_echo "no" >&6; }
7882fi
7883
7884
7885fi
7886if test -z "$ac_cv_prog_STRIP"; then
7887 ac_ct_STRIP=$STRIP
7888 # Extract the first word of "strip", so it can be a program name with args.
7889set dummy strip; ac_word=$2
7890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891$as_echo_n "checking for $ac_word... " >&6; }
7892if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7893 $as_echo_n "(cached) " >&6
7894else
7895 if test -n "$ac_ct_STRIP"; then
7896 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7897else
7898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899for as_dir in $PATH
7900do
7901 IFS=$as_save_IFS
7902 test -z "$as_dir" && as_dir=.
7903 for ac_exec_ext in '' $ac_executable_extensions; do
7904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7905 ac_cv_prog_ac_ct_STRIP="strip"
7906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7907 break 2
7908 fi
7909done
7910 done
7911IFS=$as_save_IFS
7912
7913fi
7914fi
7915ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7916if test -n "$ac_ct_STRIP"; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7918$as_echo "$ac_ct_STRIP" >&6; }
7919else
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921$as_echo "no" >&6; }
7922fi
7923
7924 if test "x$ac_ct_STRIP" = x; then
7925 STRIP=":"
7926 else
7927 case $cross_compiling:$ac_tool_warned in
7928yes:)
7929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7931ac_tool_warned=yes ;;
7932esac
7933 STRIP=$ac_ct_STRIP
7934 fi
7935else
7936 STRIP="$ac_cv_prog_STRIP"
7937fi
7938
7939test -z "$STRIP" && STRIP=:
7940
7941
7942
7943
7944
7945
7946if test -n "$ac_tool_prefix"; then
7947 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7948set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7950$as_echo_n "checking for $ac_word... " >&6; }
7951if ${ac_cv_prog_RANLIB+:} false; then :
7952 $as_echo_n "(cached) " >&6
7953else
7954 if test -n "$RANLIB"; then
7955 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7956else
7957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958for as_dir in $PATH
7959do
7960 IFS=$as_save_IFS
7961 test -z "$as_dir" && as_dir=.
7962 for ac_exec_ext in '' $ac_executable_extensions; do
7963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7964 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7966 break 2
7967 fi
7968done
7969 done
7970IFS=$as_save_IFS
7971
7972fi
7973fi
7974RANLIB=$ac_cv_prog_RANLIB
7975if test -n "$RANLIB"; then
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7977$as_echo "$RANLIB" >&6; }
7978else
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7980$as_echo "no" >&6; }
7981fi
7982
7983
7984fi
7985if test -z "$ac_cv_prog_RANLIB"; then
7986 ac_ct_RANLIB=$RANLIB
7987 # Extract the first word of "ranlib", so it can be a program name with args.
7988set dummy ranlib; ac_word=$2
7989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990$as_echo_n "checking for $ac_word... " >&6; }
7991if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7992 $as_echo_n "(cached) " >&6
7993else
7994 if test -n "$ac_ct_RANLIB"; then
7995 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7996else
7997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998for as_dir in $PATH
7999do
8000 IFS=$as_save_IFS
8001 test -z "$as_dir" && as_dir=.
8002 for ac_exec_ext in '' $ac_executable_extensions; do
8003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8004 ac_cv_prog_ac_ct_RANLIB="ranlib"
8005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8006 break 2
8007 fi
8008done
8009 done
8010IFS=$as_save_IFS
8011
8012fi
8013fi
8014ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8015if test -n "$ac_ct_RANLIB"; then
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8017$as_echo "$ac_ct_RANLIB" >&6; }
8018else
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020$as_echo "no" >&6; }
8021fi
8022
8023 if test "x$ac_ct_RANLIB" = x; then
8024 RANLIB=":"
8025 else
8026 case $cross_compiling:$ac_tool_warned in
8027yes:)
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8030ac_tool_warned=yes ;;
8031esac
8032 RANLIB=$ac_ct_RANLIB
8033 fi
8034else
8035 RANLIB="$ac_cv_prog_RANLIB"
8036fi
8037
8038test -z "$RANLIB" && RANLIB=:
8039
8040
8041
8042
8043
8044
8045# Determine commands to create old-style static archives.
8046old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8047old_postinstall_cmds='chmod 644 $oldlib'
8048old_postuninstall_cmds=
8049
8050if test -n "$RANLIB"; then
8051 case $host_os in
8052 openbsd*)
8053 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8054 ;;
8055 *)
8056 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8057 ;;
8058 esac
8059 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8060fi
8061
8062case $host_os in
8063 darwin*)
8064 lock_old_archive_extraction=yes ;;
8065 *)
8066 lock_old_archive_extraction=no ;;
8067esac
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089for ac_prog in gawk mawk nawk awk
8090do
8091 # Extract the first word of "$ac_prog", so it can be a program name with args.
8092set dummy $ac_prog; ac_word=$2
8093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8094$as_echo_n "checking for $ac_word... " >&6; }
8095if ${ac_cv_prog_AWK+:} false; then :
8096 $as_echo_n "(cached) " >&6
8097else
8098 if test -n "$AWK"; then
8099 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8100else
8101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102for as_dir in $PATH
8103do
8104 IFS=$as_save_IFS
8105 test -z "$as_dir" && as_dir=.
8106 for ac_exec_ext in '' $ac_executable_extensions; do
8107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8108 ac_cv_prog_AWK="$ac_prog"
8109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8110 break 2
8111 fi
8112done
8113 done
8114IFS=$as_save_IFS
8115
8116fi
8117fi
8118AWK=$ac_cv_prog_AWK
8119if test -n "$AWK"; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8121$as_echo "$AWK" >&6; }
8122else
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124$as_echo "no" >&6; }
8125fi
8126
8127
8128 test -n "$AWK" && break
8129done
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149# If no C compiler was specified, use CC.
8150LTCC=${LTCC-"$CC"}
8151
8152# If no C compiler flags were specified, use CFLAGS.
8153LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8154
8155# Allow CC to be a program name with arguments.
8156compiler=$CC
8157
8158
8159# Check for command to grab the raw symbol name followed by C symbol from nm.
8160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8161$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8162if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8163 $as_echo_n "(cached) " >&6
8164else
8165
8166# These are sane defaults that work on at least a few old systems.
8167# [They come from Ultrix. What could be older than Ultrix?!! ;)]
8168
8169# Character class describing NM global symbol codes.
8170symcode='[BCDEGRST]'
8171
8172# Regexp to match symbols that can be accessed directly from C.
8173sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8174
8175# Define system-specific variables.
8176case $host_os in
8177aix*)
8178 symcode='[BCDT]'
8179 ;;
8180cygwin* | mingw* | pw32* | cegcc*)
8181 symcode='[ABCDGISTW]'
8182 ;;
8183hpux*)
8184 if test "$host_cpu" = ia64; then
8185 symcode='[ABCDEGRST]'
8186 fi
8187 ;;
8188irix* | nonstopux*)
8189 symcode='[BCDEGRST]'
8190 ;;
8191osf*)
8192 symcode='[BCDEGQRST]'
8193 ;;
8194solaris*)
8195 symcode='[BDRT]'
8196 ;;
8197sco3.2v5*)
8198 symcode='[DT]'
8199 ;;
8200sysv4.2uw2*)
8201 symcode='[DT]'
8202 ;;
8203sysv5* | sco5v6* | unixware* | OpenUNIX*)
8204 symcode='[ABDT]'
8205 ;;
8206sysv4)
8207 symcode='[DFNSTU]'
8208 ;;
8209esac
8210
8211# If we're using GNU nm, then use its standard symbol codes.
8212case `$NM -V 2>&1` in
8213*GNU* | *'with BFD'*)
8214 symcode='[ABCDGIRSTW]' ;;
8215esac
8216
8217# Transform an extracted symbol line into a proper C declaration.
8218# Some systems (esp. on ia64) link data and code symbols differently,
8219# so use this general approach.
8220lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8221
8222# Transform an extracted symbol line into symbol name and symbol address
8223lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8224lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8225
8226# Handle CRLF in mingw tool chain
8227opt_cr=
8228case $build_os in
8229mingw*)
8230 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8231 ;;
8232esac
8233
8234# Try without a prefix underscore, then with it.
8235for ac_symprfx in "" "_"; do
8236
8237 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8238 symxfrm="\\1 $ac_symprfx\\2 \\2"
8239
8240 # Write the raw and C identifiers.
8241 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8242 # Fake it for dumpbin and say T for any non-static function
8243 # and D for any global variable.
8244 # Also find C++ and __fastcall symbols from MSVC++,
8245 # which start with @ or ?.
8246 lt_cv_sys_global_symbol_pipe="$AWK '"\
8247" {last_section=section; section=\$ 3};"\
8248" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8249" \$ 0!~/External *\|/{next};"\
8250" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8251" {if(hide[section]) next};"\
8252" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8253" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8254" s[1]~/^[@?]/{print s[1], s[1]; next};"\
8255" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8256" ' prfx=^$ac_symprfx"
8257 else
8258 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8259 fi
8260 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8261
8262 # Check to see that the pipe works correctly.
8263 pipe_works=no
8264
8265 rm -f conftest*
8266 cat > conftest.$ac_ext <<_LT_EOF
8267#ifdef __cplusplus
8268extern "C" {
8269#endif
8270char nm_test_var;
8271void nm_test_func(void);
8272void nm_test_func(void){}
8273#ifdef __cplusplus
8274}
8275#endif
8276int main(){nm_test_var='a';nm_test_func();return(0);}
8277_LT_EOF
8278
8279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8280 (eval $ac_compile) 2>&5
8281 ac_status=$?
8282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8283 test $ac_status = 0; }; then
8284 # Now try to grab the symbols.
8285 nlist=conftest.nm
8286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8287 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8288 ac_status=$?
8289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8290 test $ac_status = 0; } && test -s "$nlist"; then
8291 # Try sorting and uniquifying the output.
8292 if sort "$nlist" | uniq > "$nlist"T; then
8293 mv -f "$nlist"T "$nlist"
8294 else
8295 rm -f "$nlist"T
8296 fi
8297
8298 # Make sure that we snagged all the symbols we need.
8299 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8300 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8301 cat <<_LT_EOF > conftest.$ac_ext
8302/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8303#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8304/* DATA imports from DLLs on WIN32 con't be const, because runtime
8305 relocations are performed -- see ld's documentation on pseudo-relocs. */
8306# define LT@&t@_DLSYM_CONST
8307#elif defined(__osf__)
8308/* This system does not cope well with relocations in const data. */
8309# define LT@&t@_DLSYM_CONST
8310#else
8311# define LT@&t@_DLSYM_CONST const
8312#endif
8313
8314#ifdef __cplusplus
8315extern "C" {
8316#endif
8317
8318_LT_EOF
8319 # Now generate the symbol file.
8320 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8321
8322 cat <<_LT_EOF >> conftest.$ac_ext
8323
8324/* The mapping between symbol names and symbols. */
8325LT@&t@_DLSYM_CONST struct {
8326 const char *name;
8327 void *address;
8328}
8329lt__PROGRAM__LTX_preloaded_symbols[] =
8330{
8331 { "@PROGRAM@", (void *) 0 },
8332_LT_EOF
8333 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8334 cat <<\_LT_EOF >> conftest.$ac_ext
8335 {0, (void *) 0}
8336};
8337
8338/* This works around a problem in FreeBSD linker */
8339#ifdef FREEBSD_WORKAROUND
8340static const void *lt_preloaded_setup() {
8341 return lt__PROGRAM__LTX_preloaded_symbols;
8342}
8343#endif
8344
8345#ifdef __cplusplus
8346}
8347#endif
8348_LT_EOF
8349 # Now try linking the two files.
8350 mv conftest.$ac_objext conftstm.$ac_objext
8351 lt_globsym_save_LIBS=$LIBS
8352 lt_globsym_save_CFLAGS=$CFLAGS
8353 LIBS="conftstm.$ac_objext"
8354 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8356 (eval $ac_link) 2>&5
8357 ac_status=$?
8358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8359 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8360 pipe_works=yes
8361 fi
8362 LIBS=$lt_globsym_save_LIBS
8363 CFLAGS=$lt_globsym_save_CFLAGS
8364 else
8365 echo "cannot find nm_test_func in $nlist" >&5
8366 fi
8367 else
8368 echo "cannot find nm_test_var in $nlist" >&5
8369 fi
8370 else
8371 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8372 fi
8373 else
8374 echo "$progname: failed program was:" >&5
8375 cat conftest.$ac_ext >&5
8376 fi
8377 rm -rf conftest* conftst*
8378
8379 # Do not use the global_symbol_pipe unless it works.
8380 if test "$pipe_works" = yes; then
8381 break
8382 else
8383 lt_cv_sys_global_symbol_pipe=
8384 fi
8385done
8386
8387fi
8388
8389if test -z "$lt_cv_sys_global_symbol_pipe"; then
8390 lt_cv_sys_global_symbol_to_cdecl=
8391fi
8392if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8394$as_echo "failed" >&6; }
8395else
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8397$as_echo "ok" >&6; }
8398fi
8399
8400# Response file support.
8401if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8402 nm_file_list_spec='@'
8403elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8404 nm_file_list_spec='@'
8405fi
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8434$as_echo_n "checking for sysroot... " >&6; }
8435
8436@%:@ Check whether --with-sysroot was given.
8437if test "${with_sysroot+set}" = set; then :
8438 withval=$with_sysroot;
8439else
8440 with_sysroot=no
8441fi
8442
8443
8444lt_sysroot=
8445case ${with_sysroot} in #(
8446 yes)
8447 if test "$GCC" = yes; then
8448 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8449 fi
8450 ;; #(
8451 /*)
8452 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8453 ;; #(
8454 no|'')
8455 ;; #(
8456 *)
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8458$as_echo "${with_sysroot}" >&6; }
8459 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8460 ;;
8461esac
8462
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8464$as_echo "${lt_sysroot:-no}" >&6; }
8465
8466
8467
8468
8469
8470
8471@%:@ Check whether --enable-libtool-lock was given.
8472if test "${enable_libtool_lock+set}" = set; then :
8473 enableval=$enable_libtool_lock;
8474fi
8475
8476test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8477
8478# Some flags need to be propagated to the compiler or linker for good
8479# libtool support.
8480case $host in
8481ia64-*-hpux*)
8482 # Find out which ABI we are using.
8483 echo 'int i;' > conftest.$ac_ext
8484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8485 (eval $ac_compile) 2>&5
8486 ac_status=$?
8487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8488 test $ac_status = 0; }; then
8489 case `/usr/bin/file conftest.$ac_objext` in
8490 *ELF-32*)
8491 HPUX_IA64_MODE="32"
8492 ;;
8493 *ELF-64*)
8494 HPUX_IA64_MODE="64"
8495 ;;
8496 esac
8497 fi
8498 rm -rf conftest*
8499 ;;
8500*-*-irix6*)
8501 # Find out which ABI we are using.
8502 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8504 (eval $ac_compile) 2>&5
8505 ac_status=$?
8506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8507 test $ac_status = 0; }; then
8508 if test "$lt_cv_prog_gnu_ld" = yes; then
8509 case `/usr/bin/file conftest.$ac_objext` in
8510 *32-bit*)
8511 LD="${LD-ld} -melf32bsmip"
8512 ;;
8513 *N32*)
8514 LD="${LD-ld} -melf32bmipn32"
8515 ;;
8516 *64-bit*)
8517 LD="${LD-ld} -melf64bmip"
8518 ;;
8519 esac
8520 else
8521 case `/usr/bin/file conftest.$ac_objext` in
8522 *32-bit*)
8523 LD="${LD-ld} -32"
8524 ;;
8525 *N32*)
8526 LD="${LD-ld} -n32"
8527 ;;
8528 *64-bit*)
8529 LD="${LD-ld} -64"
8530 ;;
8531 esac
8532 fi
8533 fi
8534 rm -rf conftest*
8535 ;;
8536
8537x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8538s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8539 # Find out which ABI we are using.
8540 echo 'int i;' > conftest.$ac_ext
8541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8542 (eval $ac_compile) 2>&5
8543 ac_status=$?
8544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8545 test $ac_status = 0; }; then
8546 case `/usr/bin/file conftest.o` in
8547 *32-bit*)
8548 case $host in
8549 x86_64-*kfreebsd*-gnu)
8550 LD="${LD-ld} -m elf_i386_fbsd"
8551 ;;
8552 x86_64-*linux*)
8553 LD="${LD-ld} -m elf_i386"
8554 ;;
8555 ppc64-*linux*|powerpc64-*linux*)
8556 LD="${LD-ld} -m elf32ppclinux"
8557 ;;
8558 s390x-*linux*)
8559 LD="${LD-ld} -m elf_s390"
8560 ;;
8561 sparc64-*linux*)
8562 LD="${LD-ld} -m elf32_sparc"
8563 ;;
8564 esac
8565 ;;
8566 *64-bit*)
8567 case $host in
8568 x86_64-*kfreebsd*-gnu)
8569 LD="${LD-ld} -m elf_x86_64_fbsd"
8570 ;;
8571 x86_64-*linux*)
8572 LD="${LD-ld} -m elf_x86_64"
8573 ;;
8574 ppc*-*linux*|powerpc*-*linux*)
8575 LD="${LD-ld} -m elf64ppc"
8576 ;;
8577 s390*-*linux*|s390*-*tpf*)
8578 LD="${LD-ld} -m elf64_s390"
8579 ;;
8580 sparc*-*linux*)
8581 LD="${LD-ld} -m elf64_sparc"
8582 ;;
8583 esac
8584 ;;
8585 esac
8586 fi
8587 rm -rf conftest*
8588 ;;
8589
8590*-*-sco3.2v5*)
8591 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8592 SAVE_CFLAGS="$CFLAGS"
8593 CFLAGS="$CFLAGS -belf"
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8595$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8596if ${lt_cv_cc_needs_belf+:} false; then :
8597 $as_echo_n "(cached) " >&6
8598else
8599 ac_ext=c
8600ac_cpp='$CPP $CPPFLAGS'
8601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8603ac_compiler_gnu=$ac_cv_c_compiler_gnu
8604
8605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8606/* end confdefs.h. */
8607
8608int
8609main ()
8610{
8611
8612 ;
8613 return 0;
8614}
8615_ACEOF
8616if ac_fn_c_try_link "$LINENO"; then :
8617 lt_cv_cc_needs_belf=yes
8618else
8619 lt_cv_cc_needs_belf=no
8620fi
8621rm -f core conftest.err conftest.$ac_objext \
8622 conftest$ac_exeext conftest.$ac_ext
8623 ac_ext=c
8624ac_cpp='$CPP $CPPFLAGS'
8625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8627ac_compiler_gnu=$ac_cv_c_compiler_gnu
8628
8629fi
8630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8631$as_echo "$lt_cv_cc_needs_belf" >&6; }
8632 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8633 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8634 CFLAGS="$SAVE_CFLAGS"
8635 fi
8636 ;;
8637sparc*-*solaris*)
8638 # Find out which ABI we are using.
8639 echo 'int i;' > conftest.$ac_ext
8640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8641 (eval $ac_compile) 2>&5
8642 ac_status=$?
8643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8644 test $ac_status = 0; }; then
8645 case `/usr/bin/file conftest.o` in
8646 *64-bit*)
8647 case $lt_cv_prog_gnu_ld in
8648 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8649 *)
8650 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8651 LD="${LD-ld} -64"
8652 fi
8653 ;;
8654 esac
8655 ;;
8656 esac
8657 fi
8658 rm -rf conftest*
8659 ;;
8660esac
8661
8662need_locks="$enable_libtool_lock"
8663
8664if test -n "$ac_tool_prefix"; then
8665 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8666set dummy ${ac_tool_prefix}mt; ac_word=$2
8667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8668$as_echo_n "checking for $ac_word... " >&6; }
8669if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8670 $as_echo_n "(cached) " >&6
8671else
8672 if test -n "$MANIFEST_TOOL"; then
8673 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8674else
8675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8676for as_dir in $PATH
8677do
8678 IFS=$as_save_IFS
8679 test -z "$as_dir" && as_dir=.
8680 for ac_exec_ext in '' $ac_executable_extensions; do
8681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8682 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8684 break 2
8685 fi
8686done
8687 done
8688IFS=$as_save_IFS
8689
8690fi
8691fi
8692MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8693if test -n "$MANIFEST_TOOL"; then
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8695$as_echo "$MANIFEST_TOOL" >&6; }
8696else
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8698$as_echo "no" >&6; }
8699fi
8700
8701
8702fi
8703if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8704 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8705 # Extract the first word of "mt", so it can be a program name with args.
8706set dummy mt; ac_word=$2
8707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8708$as_echo_n "checking for $ac_word... " >&6; }
8709if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8710 $as_echo_n "(cached) " >&6
8711else
8712 if test -n "$ac_ct_MANIFEST_TOOL"; then
8713 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8714else
8715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8716for as_dir in $PATH
8717do
8718 IFS=$as_save_IFS
8719 test -z "$as_dir" && as_dir=.
8720 for ac_exec_ext in '' $ac_executable_extensions; do
8721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8722 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8724 break 2
8725 fi
8726done
8727 done
8728IFS=$as_save_IFS
8729
8730fi
8731fi
8732ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8733if test -n "$ac_ct_MANIFEST_TOOL"; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8735$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8736else
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738$as_echo "no" >&6; }
8739fi
8740
8741 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8742 MANIFEST_TOOL=":"
8743 else
8744 case $cross_compiling:$ac_tool_warned in
8745yes:)
8746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8748ac_tool_warned=yes ;;
8749esac
8750 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8751 fi
8752else
8753 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8754fi
8755
8756test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8758$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8759if ${lt_cv_path_mainfest_tool+:} false; then :
8760 $as_echo_n "(cached) " >&6
8761else
8762 lt_cv_path_mainfest_tool=no
8763 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8764 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8765 cat conftest.err >&5
8766 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8767 lt_cv_path_mainfest_tool=yes
8768 fi
8769 rm -f conftest*
8770fi
8771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8772$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8773if test "x$lt_cv_path_mainfest_tool" != xyes; then
8774 MANIFEST_TOOL=:
8775fi
8776
8777
8778
8779
8780
8781
8782 case $host_os in
8783 rhapsody* | darwin*)
8784 if test -n "$ac_tool_prefix"; then
8785 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8786set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8788$as_echo_n "checking for $ac_word... " >&6; }
8789if ${ac_cv_prog_DSYMUTIL+:} false; then :
8790 $as_echo_n "(cached) " >&6
8791else
8792 if test -n "$DSYMUTIL"; then
8793 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8794else
8795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8796for as_dir in $PATH
8797do
8798 IFS=$as_save_IFS
8799 test -z "$as_dir" && as_dir=.
8800 for ac_exec_ext in '' $ac_executable_extensions; do
8801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8802 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8804 break 2
8805 fi
8806done
8807 done
8808IFS=$as_save_IFS
8809
8810fi
8811fi
8812DSYMUTIL=$ac_cv_prog_DSYMUTIL
8813if test -n "$DSYMUTIL"; then
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8815$as_echo "$DSYMUTIL" >&6; }
8816else
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8818$as_echo "no" >&6; }
8819fi
8820
8821
8822fi
8823if test -z "$ac_cv_prog_DSYMUTIL"; then
8824 ac_ct_DSYMUTIL=$DSYMUTIL
8825 # Extract the first word of "dsymutil", so it can be a program name with args.
8826set dummy dsymutil; ac_word=$2
8827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8828$as_echo_n "checking for $ac_word... " >&6; }
8829if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8830 $as_echo_n "(cached) " >&6
8831else
8832 if test -n "$ac_ct_DSYMUTIL"; then
8833 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8834else
8835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8836for as_dir in $PATH
8837do
8838 IFS=$as_save_IFS
8839 test -z "$as_dir" && as_dir=.
8840 for ac_exec_ext in '' $ac_executable_extensions; do
8841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8842 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8844 break 2
8845 fi
8846done
8847 done
8848IFS=$as_save_IFS
8849
8850fi
8851fi
8852ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8853if test -n "$ac_ct_DSYMUTIL"; then
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8855$as_echo "$ac_ct_DSYMUTIL" >&6; }
8856else
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8858$as_echo "no" >&6; }
8859fi
8860
8861 if test "x$ac_ct_DSYMUTIL" = x; then
8862 DSYMUTIL=":"
8863 else
8864 case $cross_compiling:$ac_tool_warned in
8865yes:)
8866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8868ac_tool_warned=yes ;;
8869esac
8870 DSYMUTIL=$ac_ct_DSYMUTIL
8871 fi
8872else
8873 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8874fi
8875
8876 if test -n "$ac_tool_prefix"; then
8877 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8878set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880$as_echo_n "checking for $ac_word... " >&6; }
8881if ${ac_cv_prog_NMEDIT+:} false; then :
8882 $as_echo_n "(cached) " >&6
8883else
8884 if test -n "$NMEDIT"; then
8885 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8886else
8887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888for as_dir in $PATH
8889do
8890 IFS=$as_save_IFS
8891 test -z "$as_dir" && as_dir=.
8892 for ac_exec_ext in '' $ac_executable_extensions; do
8893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8894 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8896 break 2
8897 fi
8898done
8899 done
8900IFS=$as_save_IFS
8901
8902fi
8903fi
8904NMEDIT=$ac_cv_prog_NMEDIT
8905if test -n "$NMEDIT"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8907$as_echo "$NMEDIT" >&6; }
8908else
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910$as_echo "no" >&6; }
8911fi
8912
8913
8914fi
8915if test -z "$ac_cv_prog_NMEDIT"; then
8916 ac_ct_NMEDIT=$NMEDIT
8917 # Extract the first word of "nmedit", so it can be a program name with args.
8918set dummy nmedit; ac_word=$2
8919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8920$as_echo_n "checking for $ac_word... " >&6; }
8921if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8922 $as_echo_n "(cached) " >&6
8923else
8924 if test -n "$ac_ct_NMEDIT"; then
8925 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8926else
8927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928for as_dir in $PATH
8929do
8930 IFS=$as_save_IFS
8931 test -z "$as_dir" && as_dir=.
8932 for ac_exec_ext in '' $ac_executable_extensions; do
8933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8934 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8936 break 2
8937 fi
8938done
8939 done
8940IFS=$as_save_IFS
8941
8942fi
8943fi
8944ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8945if test -n "$ac_ct_NMEDIT"; then
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8947$as_echo "$ac_ct_NMEDIT" >&6; }
8948else
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8950$as_echo "no" >&6; }
8951fi
8952
8953 if test "x$ac_ct_NMEDIT" = x; then
8954 NMEDIT=":"
8955 else
8956 case $cross_compiling:$ac_tool_warned in
8957yes:)
8958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8960ac_tool_warned=yes ;;
8961esac
8962 NMEDIT=$ac_ct_NMEDIT
8963 fi
8964else
8965 NMEDIT="$ac_cv_prog_NMEDIT"
8966fi
8967
8968 if test -n "$ac_tool_prefix"; then
8969 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8970set dummy ${ac_tool_prefix}lipo; ac_word=$2
8971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8972$as_echo_n "checking for $ac_word... " >&6; }
8973if ${ac_cv_prog_LIPO+:} false; then :
8974 $as_echo_n "(cached) " >&6
8975else
8976 if test -n "$LIPO"; then
8977 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8978else
8979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8980for as_dir in $PATH
8981do
8982 IFS=$as_save_IFS
8983 test -z "$as_dir" && as_dir=.
8984 for ac_exec_ext in '' $ac_executable_extensions; do
8985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8986 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8988 break 2
8989 fi
8990done
8991 done
8992IFS=$as_save_IFS
8993
8994fi
8995fi
8996LIPO=$ac_cv_prog_LIPO
8997if test -n "$LIPO"; then
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8999$as_echo "$LIPO" >&6; }
9000else
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9002$as_echo "no" >&6; }
9003fi
9004
9005
9006fi
9007if test -z "$ac_cv_prog_LIPO"; then
9008 ac_ct_LIPO=$LIPO
9009 # Extract the first word of "lipo", so it can be a program name with args.
9010set dummy lipo; ac_word=$2
9011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9012$as_echo_n "checking for $ac_word... " >&6; }
9013if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9014 $as_echo_n "(cached) " >&6
9015else
9016 if test -n "$ac_ct_LIPO"; then
9017 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9018else
9019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020for as_dir in $PATH
9021do
9022 IFS=$as_save_IFS
9023 test -z "$as_dir" && as_dir=.
9024 for ac_exec_ext in '' $ac_executable_extensions; do
9025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9026 ac_cv_prog_ac_ct_LIPO="lipo"
9027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9028 break 2
9029 fi
9030done
9031 done
9032IFS=$as_save_IFS
9033
9034fi
9035fi
9036ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9037if test -n "$ac_ct_LIPO"; then
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9039$as_echo "$ac_ct_LIPO" >&6; }
9040else
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042$as_echo "no" >&6; }
9043fi
9044
9045 if test "x$ac_ct_LIPO" = x; then
9046 LIPO=":"
9047 else
9048 case $cross_compiling:$ac_tool_warned in
9049yes:)
9050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9052ac_tool_warned=yes ;;
9053esac
9054 LIPO=$ac_ct_LIPO
9055 fi
9056else
9057 LIPO="$ac_cv_prog_LIPO"
9058fi
9059
9060 if test -n "$ac_tool_prefix"; then
9061 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9062set dummy ${ac_tool_prefix}otool; ac_word=$2
9063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9064$as_echo_n "checking for $ac_word... " >&6; }
9065if ${ac_cv_prog_OTOOL+:} false; then :
9066 $as_echo_n "(cached) " >&6
9067else
9068 if test -n "$OTOOL"; then
9069 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9070else
9071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9072for as_dir in $PATH
9073do
9074 IFS=$as_save_IFS
9075 test -z "$as_dir" && as_dir=.
9076 for ac_exec_ext in '' $ac_executable_extensions; do
9077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9078 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9080 break 2
9081 fi
9082done
9083 done
9084IFS=$as_save_IFS
9085
9086fi
9087fi
9088OTOOL=$ac_cv_prog_OTOOL
9089if test -n "$OTOOL"; then
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9091$as_echo "$OTOOL" >&6; }
9092else
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094$as_echo "no" >&6; }
9095fi
9096
9097
9098fi
9099if test -z "$ac_cv_prog_OTOOL"; then
9100 ac_ct_OTOOL=$OTOOL
9101 # Extract the first word of "otool", so it can be a program name with args.
9102set dummy otool; ac_word=$2
9103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9104$as_echo_n "checking for $ac_word... " >&6; }
9105if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9106 $as_echo_n "(cached) " >&6
9107else
9108 if test -n "$ac_ct_OTOOL"; then
9109 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9110else
9111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9112for as_dir in $PATH
9113do
9114 IFS=$as_save_IFS
9115 test -z "$as_dir" && as_dir=.
9116 for ac_exec_ext in '' $ac_executable_extensions; do
9117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9118 ac_cv_prog_ac_ct_OTOOL="otool"
9119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9120 break 2
9121 fi
9122done
9123 done
9124IFS=$as_save_IFS
9125
9126fi
9127fi
9128ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9129if test -n "$ac_ct_OTOOL"; then
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9131$as_echo "$ac_ct_OTOOL" >&6; }
9132else
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9134$as_echo "no" >&6; }
9135fi
9136
9137 if test "x$ac_ct_OTOOL" = x; then
9138 OTOOL=":"
9139 else
9140 case $cross_compiling:$ac_tool_warned in
9141yes:)
9142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9144ac_tool_warned=yes ;;
9145esac
9146 OTOOL=$ac_ct_OTOOL
9147 fi
9148else
9149 OTOOL="$ac_cv_prog_OTOOL"
9150fi
9151
9152 if test -n "$ac_tool_prefix"; then
9153 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9154set dummy ${ac_tool_prefix}otool64; ac_word=$2
9155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9156$as_echo_n "checking for $ac_word... " >&6; }
9157if ${ac_cv_prog_OTOOL64+:} false; then :
9158 $as_echo_n "(cached) " >&6
9159else
9160 if test -n "$OTOOL64"; then
9161 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9162else
9163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9164for as_dir in $PATH
9165do
9166 IFS=$as_save_IFS
9167 test -z "$as_dir" && as_dir=.
9168 for ac_exec_ext in '' $ac_executable_extensions; do
9169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9170 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9172 break 2
9173 fi
9174done
9175 done
9176IFS=$as_save_IFS
9177
9178fi
9179fi
9180OTOOL64=$ac_cv_prog_OTOOL64
9181if test -n "$OTOOL64"; then
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9183$as_echo "$OTOOL64" >&6; }
9184else
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9186$as_echo "no" >&6; }
9187fi
9188
9189
9190fi
9191if test -z "$ac_cv_prog_OTOOL64"; then
9192 ac_ct_OTOOL64=$OTOOL64
9193 # Extract the first word of "otool64", so it can be a program name with args.
9194set dummy otool64; ac_word=$2
9195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9196$as_echo_n "checking for $ac_word... " >&6; }
9197if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9198 $as_echo_n "(cached) " >&6
9199else
9200 if test -n "$ac_ct_OTOOL64"; then
9201 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9202else
9203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9204for as_dir in $PATH
9205do
9206 IFS=$as_save_IFS
9207 test -z "$as_dir" && as_dir=.
9208 for ac_exec_ext in '' $ac_executable_extensions; do
9209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9210 ac_cv_prog_ac_ct_OTOOL64="otool64"
9211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9212 break 2
9213 fi
9214done
9215 done
9216IFS=$as_save_IFS
9217
9218fi
9219fi
9220ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9221if test -n "$ac_ct_OTOOL64"; then
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9223$as_echo "$ac_ct_OTOOL64" >&6; }
9224else
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9226$as_echo "no" >&6; }
9227fi
9228
9229 if test "x$ac_ct_OTOOL64" = x; then
9230 OTOOL64=":"
9231 else
9232 case $cross_compiling:$ac_tool_warned in
9233yes:)
9234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9236ac_tool_warned=yes ;;
9237esac
9238 OTOOL64=$ac_ct_OTOOL64
9239 fi
9240else
9241 OTOOL64="$ac_cv_prog_OTOOL64"
9242fi
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9271$as_echo_n "checking for -single_module linker flag... " >&6; }
9272if ${lt_cv_apple_cc_single_mod+:} false; then :
9273 $as_echo_n "(cached) " >&6
9274else
9275 lt_cv_apple_cc_single_mod=no
9276 if test -z "${LT_MULTI_MODULE}"; then
9277 # By default we will add the -single_module flag. You can override
9278 # by either setting the environment variable LT_MULTI_MODULE
9279 # non-empty at configure time, or by adding -multi_module to the
9280 # link flags.
9281 rm -rf libconftest.dylib*
9282 echo "int foo(void){return 1;}" > conftest.c
9283 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9284-dynamiclib -Wl,-single_module conftest.c" >&5
9285 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9286 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9287 _lt_result=$?
9288 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9289 lt_cv_apple_cc_single_mod=yes
9290 else
9291 cat conftest.err >&5
9292 fi
9293 rm -rf libconftest.dylib*
9294 rm -f conftest.*
9295 fi
9296fi
9297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9298$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9300$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9301if ${lt_cv_ld_exported_symbols_list+:} false; then :
9302 $as_echo_n "(cached) " >&6
9303else
9304 lt_cv_ld_exported_symbols_list=no
9305 save_LDFLAGS=$LDFLAGS
9306 echo "_main" > conftest.sym
9307 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9309/* end confdefs.h. */
9310
9311int
9312main ()
9313{
9314
9315 ;
9316 return 0;
9317}
9318_ACEOF
9319if ac_fn_c_try_link "$LINENO"; then :
9320 lt_cv_ld_exported_symbols_list=yes
9321else
9322 lt_cv_ld_exported_symbols_list=no
9323fi
9324rm -f core conftest.err conftest.$ac_objext \
9325 conftest$ac_exeext conftest.$ac_ext
9326 LDFLAGS="$save_LDFLAGS"
9327
9328fi
9329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9330$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9332$as_echo_n "checking for -force_load linker flag... " >&6; }
9333if ${lt_cv_ld_force_load+:} false; then :
9334 $as_echo_n "(cached) " >&6
9335else
9336 lt_cv_ld_force_load=no
9337 cat > conftest.c << _LT_EOF
9338int forced_loaded() { return 2;}
9339_LT_EOF
9340 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9341 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9342 echo "$AR cru libconftest.a conftest.o" >&5
9343 $AR cru libconftest.a conftest.o 2>&5
9344 echo "$RANLIB libconftest.a" >&5
9345 $RANLIB libconftest.a 2>&5
9346 cat > conftest.c << _LT_EOF
9347int main() { return 0;}
9348_LT_EOF
9349 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9350 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9351 _lt_result=$?
9352 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9353 lt_cv_ld_force_load=yes
9354 else
9355 cat conftest.err >&5
9356 fi
9357 rm -f conftest.err libconftest.a conftest conftest.c
9358 rm -rf conftest.dSYM
9359
9360fi
9361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9362$as_echo "$lt_cv_ld_force_load" >&6; }
9363 case $host_os in
9364 rhapsody* | darwin1.[012])
9365 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9366 darwin1.*)
9367 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9368 darwin*) # darwin 5.x on
9369 # if running on 10.5 or later, the deployment target defaults
9370 # to the OS version, if on x86, and 10.4, the deployment
9371 # target defaults to 10.4. Don't you love it?
9372 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9373 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9374 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9375 10.[012]*)
9376 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9377 10.*)
9378 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9379 esac
9380 ;;
9381 esac
9382 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9383 _lt_dar_single_mod='$single_module'
9384 fi
9385 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9386 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9387 else
9388 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9389 fi
9390 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9391 _lt_dsymutil='~$DSYMUTIL $lib || :'
9392 else
9393 _lt_dsymutil=
9394 fi
9395 ;;
9396 esac
9397
9398for ac_header in dlfcn.h
9399do :
9400 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9401"
9402if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9403 cat >>confdefs.h <<_ACEOF
9404@%:@define HAVE_DLFCN_H 1
9405_ACEOF
9406
9407fi
9408
9409done
9410
9411
9412
9413func_stripname_cnf ()
9414{
9415 case ${2} in
9416 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9417 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9418 esac
9419} # func_stripname_cnf
9420
9421
9422
9423
9424
9425# Set options
9426
9427
9428
9429 enable_dlopen=no
9430
9431
9432
9433 @%:@ Check whether --enable-shared was given.
9434if test "${enable_shared+set}" = set; then :
9435 enableval=$enable_shared; p=${PACKAGE-default}
9436 case $enableval in
9437 yes) enable_shared=yes ;;
9438 no) enable_shared=no ;;
9439 *)
9440 enable_shared=no
9441 # Look at the argument we got. We use all the common list separators.
9442 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9443 for pkg in $enableval; do
9444 IFS="$lt_save_ifs"
9445 if test "X$pkg" = "X$p"; then
9446 enable_shared=yes
9447 fi
9448 done
9449 IFS="$lt_save_ifs"
9450 ;;
9451 esac
9452else
9453 enable_shared=yes
9454fi
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464 @%:@ Check whether --enable-static was given.
9465if test "${enable_static+set}" = set; then :
9466 enableval=$enable_static; p=${PACKAGE-default}
9467 case $enableval in
9468 yes) enable_static=yes ;;
9469 no) enable_static=no ;;
9470 *)
9471 enable_static=no
9472 # Look at the argument we got. We use all the common list separators.
9473 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9474 for pkg in $enableval; do
9475 IFS="$lt_save_ifs"
9476 if test "X$pkg" = "X$p"; then
9477 enable_static=yes
9478 fi
9479 done
9480 IFS="$lt_save_ifs"
9481 ;;
9482 esac
9483else
9484 enable_static=yes
9485fi
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496@%:@ Check whether --with-pic was given.
9497if test "${with_pic+set}" = set; then :
9498 withval=$with_pic; pic_mode="$withval"
9499else
9500 pic_mode=default
9501fi
9502
9503
9504test -z "$pic_mode" && pic_mode=default
9505
9506
9507
9508
9509
9510
9511
9512 @%:@ Check whether --enable-fast-install was given.
9513if test "${enable_fast_install+set}" = set; then :
9514 enableval=$enable_fast_install; p=${PACKAGE-default}
9515 case $enableval in
9516 yes) enable_fast_install=yes ;;
9517 no) enable_fast_install=no ;;
9518 *)
9519 enable_fast_install=no
9520 # Look at the argument we got. We use all the common list separators.
9521 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9522 for pkg in $enableval; do
9523 IFS="$lt_save_ifs"
9524 if test "X$pkg" = "X$p"; then
9525 enable_fast_install=yes
9526 fi
9527 done
9528 IFS="$lt_save_ifs"
9529 ;;
9530 esac
9531else
9532 enable_fast_install=yes
9533fi
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545# This can be used to rebuild libtool when needed
9546LIBTOOL_DEPS="$ltmain"
9547
9548# Always use our own libtool.
9549LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576test -z "$LN_S" && LN_S="ln -s"
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591if test -n "${ZSH_VERSION+set}" ; then
9592 setopt NO_GLOB_SUBST
9593fi
9594
9595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9596$as_echo_n "checking for objdir... " >&6; }
9597if ${lt_cv_objdir+:} false; then :
9598 $as_echo_n "(cached) " >&6
9599else
9600 rm -f .libs 2>/dev/null
9601mkdir .libs 2>/dev/null
9602if test -d .libs; then
9603 lt_cv_objdir=.libs
9604else
9605 # MS-DOS does not allow filenames that begin with a dot.
9606 lt_cv_objdir=_libs
9607fi
9608rmdir .libs 2>/dev/null
9609fi
9610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9611$as_echo "$lt_cv_objdir" >&6; }
9612objdir=$lt_cv_objdir
9613
9614
9615
9616
9617
9618cat >>confdefs.h <<_ACEOF
9619@%:@define LT_OBJDIR "$lt_cv_objdir/"
9620_ACEOF
9621
9622
9623
9624
9625case $host_os in
9626aix3*)
9627 # AIX sometimes has problems with the GCC collect2 program. For some
9628 # reason, if we set the COLLECT_NAMES environment variable, the problems
9629 # vanish in a puff of smoke.
9630 if test "X${COLLECT_NAMES+set}" != Xset; then
9631 COLLECT_NAMES=
9632 export COLLECT_NAMES
9633 fi
9634 ;;
9635esac
9636
9637# Global variables:
9638ofile=libtool
9639can_build_shared=yes
9640
9641# All known linkers require a `.a' archive for static linking (except MSVC,
9642# which needs '.lib').
9643libext=a
9644
9645with_gnu_ld="$lt_cv_prog_gnu_ld"
9646
9647old_CC="$CC"
9648old_CFLAGS="$CFLAGS"
9649
9650# Set sane defaults for various variables
9651test -z "$CC" && CC=cc
9652test -z "$LTCC" && LTCC=$CC
9653test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9654test -z "$LD" && LD=ld
9655test -z "$ac_objext" && ac_objext=o
9656
9657for cc_temp in $compiler""; do
9658 case $cc_temp in
9659 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9660 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9661 \-*) ;;
9662 *) break;;
9663 esac
9664done
9665cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9666
9667
9668# Only perform the check for file, if the check method requires it
9669test -z "$MAGIC_CMD" && MAGIC_CMD=file
9670case $deplibs_check_method in
9671file_magic*)
9672 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9674$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9675if ${lt_cv_path_MAGIC_CMD+:} false; then :
9676 $as_echo_n "(cached) " >&6
9677else
9678 case $MAGIC_CMD in
9679[\\/*] | ?:[\\/]*)
9680 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9681 ;;
9682*)
9683 lt_save_MAGIC_CMD="$MAGIC_CMD"
9684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9685 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9686 for ac_dir in $ac_dummy; do
9687 IFS="$lt_save_ifs"
9688 test -z "$ac_dir" && ac_dir=.
9689 if test -f $ac_dir/${ac_tool_prefix}file; then
9690 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9691 if test -n "$file_magic_test_file"; then
9692 case $deplibs_check_method in
9693 "file_magic "*)
9694 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9695 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9696 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9697 $EGREP "$file_magic_regex" > /dev/null; then
9698 :
9699 else
9700 cat <<_LT_EOF 1>&2
9701
9702*** Warning: the command libtool uses to detect shared libraries,
9703*** $file_magic_cmd, produces output that libtool cannot recognize.
9704*** The result is that libtool may fail to recognize shared libraries
9705*** as such. This will affect the creation of libtool libraries that
9706*** depend on shared libraries, but programs linked with such libtool
9707*** libraries will work regardless of this problem. Nevertheless, you
9708*** may want to report the problem to your system manager and/or to
9709*** bug-libtool@gnu.org
9710
9711_LT_EOF
9712 fi ;;
9713 esac
9714 fi
9715 break
9716 fi
9717 done
9718 IFS="$lt_save_ifs"
9719 MAGIC_CMD="$lt_save_MAGIC_CMD"
9720 ;;
9721esac
9722fi
9723
9724MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9725if test -n "$MAGIC_CMD"; then
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9727$as_echo "$MAGIC_CMD" >&6; }
9728else
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9730$as_echo "no" >&6; }
9731fi
9732
9733
9734
9735
9736
9737if test -z "$lt_cv_path_MAGIC_CMD"; then
9738 if test -n "$ac_tool_prefix"; then
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9740$as_echo_n "checking for file... " >&6; }
9741if ${lt_cv_path_MAGIC_CMD+:} false; then :
9742 $as_echo_n "(cached) " >&6
9743else
9744 case $MAGIC_CMD in
9745[\\/*] | ?:[\\/]*)
9746 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9747 ;;
9748*)
9749 lt_save_MAGIC_CMD="$MAGIC_CMD"
9750 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9751 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9752 for ac_dir in $ac_dummy; do
9753 IFS="$lt_save_ifs"
9754 test -z "$ac_dir" && ac_dir=.
9755 if test -f $ac_dir/file; then
9756 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9757 if test -n "$file_magic_test_file"; then
9758 case $deplibs_check_method in
9759 "file_magic "*)
9760 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9761 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9762 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9763 $EGREP "$file_magic_regex" > /dev/null; then
9764 :
9765 else
9766 cat <<_LT_EOF 1>&2
9767
9768*** Warning: the command libtool uses to detect shared libraries,
9769*** $file_magic_cmd, produces output that libtool cannot recognize.
9770*** The result is that libtool may fail to recognize shared libraries
9771*** as such. This will affect the creation of libtool libraries that
9772*** depend on shared libraries, but programs linked with such libtool
9773*** libraries will work regardless of this problem. Nevertheless, you
9774*** may want to report the problem to your system manager and/or to
9775*** bug-libtool@gnu.org
9776
9777_LT_EOF
9778 fi ;;
9779 esac
9780 fi
9781 break
9782 fi
9783 done
9784 IFS="$lt_save_ifs"
9785 MAGIC_CMD="$lt_save_MAGIC_CMD"
9786 ;;
9787esac
9788fi
9789
9790MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9791if test -n "$MAGIC_CMD"; then
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9793$as_echo "$MAGIC_CMD" >&6; }
9794else
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796$as_echo "no" >&6; }
9797fi
9798
9799
9800 else
9801 MAGIC_CMD=:
9802 fi
9803fi
9804
9805 fi
9806 ;;
9807esac
9808
9809# Use C for the default configuration in the libtool script
9810
9811lt_save_CC="$CC"
9812ac_ext=c
9813ac_cpp='$CPP $CPPFLAGS'
9814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9816ac_compiler_gnu=$ac_cv_c_compiler_gnu
9817
9818
9819# Source file extension for C test sources.
9820ac_ext=c
9821
9822# Object file extension for compiled C test sources.
9823objext=o
9824objext=$objext
9825
9826# Code to be used in simple compile tests
9827lt_simple_compile_test_code="int some_variable = 0;"
9828
9829# Code to be used in simple link tests
9830lt_simple_link_test_code='int main(){return(0);}'
9831
9832
9833
9834
9835
9836
9837
9838# If no C compiler was specified, use CC.
9839LTCC=${LTCC-"$CC"}
9840
9841# If no C compiler flags were specified, use CFLAGS.
9842LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9843
9844# Allow CC to be a program name with arguments.
9845compiler=$CC
9846
9847# Save the default compiler, since it gets overwritten when the other
9848# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9849compiler_DEFAULT=$CC
9850
9851# save warnings/boilerplate of simple test code
9852ac_outfile=conftest.$ac_objext
9853echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9854eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9855_lt_compiler_boilerplate=`cat conftest.err`
9856$RM conftest*
9857
9858ac_outfile=conftest.$ac_objext
9859echo "$lt_simple_link_test_code" >conftest.$ac_ext
9860eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9861_lt_linker_boilerplate=`cat conftest.err`
9862$RM -r conftest*
9863
9864
9865## CAVEAT EMPTOR:
9866## There is no encapsulation within the following macros, do not change
9867## the running order or otherwise move them around unless you know exactly
9868## what you are doing...
9869if test -n "$compiler"; then
9870
9871lt_prog_compiler_no_builtin_flag=
9872
9873if test "$GCC" = yes; then
9874 case $cc_basename in
9875 nvcc*)
9876 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9877 *)
9878 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9879 esac
9880
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9882$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9883if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9884 $as_echo_n "(cached) " >&6
9885else
9886 lt_cv_prog_compiler_rtti_exceptions=no
9887 ac_outfile=conftest.$ac_objext
9888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9889 lt_compiler_flag="-fno-rtti -fno-exceptions"
9890 # Insert the option either (1) after the last *FLAGS variable, or
9891 # (2) before a word containing "conftest.", or (3) at the end.
9892 # Note that $ac_compile itself does not contain backslashes and begins
9893 # with a dollar sign (not a hyphen), so the echo should work correctly.
9894 # The option is referenced via a variable to avoid confusing sed.
9895 lt_compile=`echo "$ac_compile" | $SED \
9896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9898 -e 's:$: $lt_compiler_flag:'`
9899 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9900 (eval "$lt_compile" 2>conftest.err)
9901 ac_status=$?
9902 cat conftest.err >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 if (exit $ac_status) && test -s "$ac_outfile"; then
9905 # The compiler can only warn and ignore the option if not recognized
9906 # So say no if there are warnings other than the usual output.
9907 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9909 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9910 lt_cv_prog_compiler_rtti_exceptions=yes
9911 fi
9912 fi
9913 $RM conftest*
9914
9915fi
9916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9917$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9918
9919if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9920 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9921else
9922 :
9923fi
9924
9925fi
9926
9927
9928
9929
9930
9931
9932 lt_prog_compiler_wl=
9933lt_prog_compiler_pic=
9934lt_prog_compiler_static=
9935
9936
9937 if test "$GCC" = yes; then
9938 lt_prog_compiler_wl='-Wl,'
9939 lt_prog_compiler_static='-static'
9940
9941 case $host_os in
9942 aix*)
9943 # All AIX code is PIC.
9944 if test "$host_cpu" = ia64; then
9945 # AIX 5 now supports IA64 processor
9946 lt_prog_compiler_static='-Bstatic'
9947 fi
9948 ;;
9949
9950 amigaos*)
9951 case $host_cpu in
9952 powerpc)
9953 # see comment about AmigaOS4 .so support
9954 lt_prog_compiler_pic='-fPIC'
9955 ;;
9956 m68k)
9957 # FIXME: we need at least 68020 code to build shared libraries, but
9958 # adding the `-m68020' flag to GCC prevents building anything better,
9959 # like `-m68040'.
9960 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9961 ;;
9962 esac
9963 ;;
9964
9965 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9966 # PIC is the default for these OSes.
9967 ;;
9968
9969 mingw* | cygwin* | pw32* | os2* | cegcc*)
9970 # This hack is so that the source file can tell whether it is being
9971 # built for inclusion in a dll (and should export symbols for example).
9972 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9973 # (--disable-auto-import) libraries
9974 lt_prog_compiler_pic='-DDLL_EXPORT'
9975 ;;
9976
9977 darwin* | rhapsody*)
9978 # PIC is the default on this platform
9979 # Common symbols not allowed in MH_DYLIB files
9980 lt_prog_compiler_pic='-fno-common'
9981 ;;
9982
9983 haiku*)
9984 # PIC is the default for Haiku.
9985 # The "-static" flag exists, but is broken.
9986 lt_prog_compiler_static=
9987 ;;
9988
9989 hpux*)
9990 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9991 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9992 # sets the default TLS model and affects inlining.
9993 case $host_cpu in
9994 hppa*64*)
9995 # +Z the default
9996 ;;
9997 *)
9998 lt_prog_compiler_pic='-fPIC'
9999 ;;
10000 esac
10001 ;;
10002
10003 interix[3-9]*)
10004 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10005 # Instead, we relocate shared libraries at runtime.
10006 ;;
10007
10008 msdosdjgpp*)
10009 # Just because we use GCC doesn't mean we suddenly get shared libraries
10010 # on systems that don't support them.
10011 lt_prog_compiler_can_build_shared=no
10012 enable_shared=no
10013 ;;
10014
10015 *nto* | *qnx*)
10016 # QNX uses GNU C++, but need to define -shared option too, otherwise
10017 # it will coredump.
10018 lt_prog_compiler_pic='-fPIC -shared'
10019 ;;
10020
10021 sysv4*MP*)
10022 if test -d /usr/nec; then
10023 lt_prog_compiler_pic=-Kconform_pic
10024 fi
10025 ;;
10026
10027 *)
10028 lt_prog_compiler_pic='-fPIC'
10029 ;;
10030 esac
10031
10032 case $cc_basename in
10033 nvcc*) # Cuda Compiler Driver 2.2
10034 lt_prog_compiler_wl='-Xlinker '
10035 lt_prog_compiler_pic='-Xcompiler -fPIC'
10036 ;;
10037 esac
10038 else
10039 # PORTME Check for flag to pass linker flags through the system compiler.
10040 case $host_os in
10041 aix*)
10042 lt_prog_compiler_wl='-Wl,'
10043 if test "$host_cpu" = ia64; then
10044 # AIX 5 now supports IA64 processor
10045 lt_prog_compiler_static='-Bstatic'
10046 else
10047 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10048 fi
10049 ;;
10050
10051 mingw* | cygwin* | pw32* | os2* | cegcc*)
10052 # This hack is so that the source file can tell whether it is being
10053 # built for inclusion in a dll (and should export symbols for example).
10054 lt_prog_compiler_pic='-DDLL_EXPORT'
10055 ;;
10056
10057 hpux9* | hpux10* | hpux11*)
10058 lt_prog_compiler_wl='-Wl,'
10059 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10060 # not for PA HP-UX.
10061 case $host_cpu in
10062 hppa*64*|ia64*)
10063 # +Z the default
10064 ;;
10065 *)
10066 lt_prog_compiler_pic='+Z'
10067 ;;
10068 esac
10069 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10070 lt_prog_compiler_static='${wl}-a ${wl}archive'
10071 ;;
10072
10073 irix5* | irix6* | nonstopux*)
10074 lt_prog_compiler_wl='-Wl,'
10075 # PIC (with -KPIC) is the default.
10076 lt_prog_compiler_static='-non_shared'
10077 ;;
10078
10079 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10080 case $cc_basename in
10081 # old Intel for x86_64 which still supported -KPIC.
10082 ecc*)
10083 lt_prog_compiler_wl='-Wl,'
10084 lt_prog_compiler_pic='-KPIC'
10085 lt_prog_compiler_static='-static'
10086 ;;
10087 # icc used to be incompatible with GCC.
10088 # ICC 10 doesn't accept -KPIC any more.
10089 icc* | ifort*)
10090 lt_prog_compiler_wl='-Wl,'
10091 lt_prog_compiler_pic='-fPIC'
10092 lt_prog_compiler_static='-static'
10093 ;;
10094 # Lahey Fortran 8.1.
10095 lf95*)
10096 lt_prog_compiler_wl='-Wl,'
10097 lt_prog_compiler_pic='--shared'
10098 lt_prog_compiler_static='--static'
10099 ;;
10100 nagfor*)
10101 # NAG Fortran compiler
10102 lt_prog_compiler_wl='-Wl,-Wl,,'
10103 lt_prog_compiler_pic='-PIC'
10104 lt_prog_compiler_static='-Bstatic'
10105 ;;
10106 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10107 # Portland Group compilers (*not* the Pentium gcc compiler,
10108 # which looks to be a dead project)
10109 lt_prog_compiler_wl='-Wl,'
10110 lt_prog_compiler_pic='-fpic'
10111 lt_prog_compiler_static='-Bstatic'
10112 ;;
10113 ccc*)
10114 lt_prog_compiler_wl='-Wl,'
10115 # All Alpha code is PIC.
10116 lt_prog_compiler_static='-non_shared'
10117 ;;
10118 xl* | bgxl* | bgf* | mpixl*)
10119 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10120 lt_prog_compiler_wl='-Wl,'
10121 lt_prog_compiler_pic='-qpic'
10122 lt_prog_compiler_static='-qstaticlink'
10123 ;;
10124 *)
10125 case `$CC -V 2>&1 | sed 5q` in
10126 *Sun\ F* | *Sun*Fortran*)
10127 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10128 lt_prog_compiler_pic='-KPIC'
10129 lt_prog_compiler_static='-Bstatic'
10130 lt_prog_compiler_wl=''
10131 ;;
10132 *Sun\ C*)
10133 # Sun C 5.9
10134 lt_prog_compiler_pic='-KPIC'
10135 lt_prog_compiler_static='-Bstatic'
10136 lt_prog_compiler_wl='-Wl,'
10137 ;;
10138 esac
10139 ;;
10140 esac
10141 ;;
10142
10143 newsos6)
10144 lt_prog_compiler_pic='-KPIC'
10145 lt_prog_compiler_static='-Bstatic'
10146 ;;
10147
10148 *nto* | *qnx*)
10149 # QNX uses GNU C++, but need to define -shared option too, otherwise
10150 # it will coredump.
10151 lt_prog_compiler_pic='-fPIC -shared'
10152 ;;
10153
10154 osf3* | osf4* | osf5*)
10155 lt_prog_compiler_wl='-Wl,'
10156 # All OSF/1 code is PIC.
10157 lt_prog_compiler_static='-non_shared'
10158 ;;
10159
10160 rdos*)
10161 lt_prog_compiler_static='-non_shared'
10162 ;;
10163
10164 solaris*)
10165 lt_prog_compiler_pic='-KPIC'
10166 lt_prog_compiler_static='-Bstatic'
10167 case $cc_basename in
10168 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10169 lt_prog_compiler_wl='-Qoption ld ';;
10170 *)
10171 lt_prog_compiler_wl='-Wl,';;
10172 esac
10173 ;;
10174
10175 sunos4*)
10176 lt_prog_compiler_wl='-Qoption ld '
10177 lt_prog_compiler_pic='-PIC'
10178 lt_prog_compiler_static='-Bstatic'
10179 ;;
10180
10181 sysv4 | sysv4.2uw2* | sysv4.3*)
10182 lt_prog_compiler_wl='-Wl,'
10183 lt_prog_compiler_pic='-KPIC'
10184 lt_prog_compiler_static='-Bstatic'
10185 ;;
10186
10187 sysv4*MP*)
10188 if test -d /usr/nec ;then
10189 lt_prog_compiler_pic='-Kconform_pic'
10190 lt_prog_compiler_static='-Bstatic'
10191 fi
10192 ;;
10193
10194 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10195 lt_prog_compiler_wl='-Wl,'
10196 lt_prog_compiler_pic='-KPIC'
10197 lt_prog_compiler_static='-Bstatic'
10198 ;;
10199
10200 unicos*)
10201 lt_prog_compiler_wl='-Wl,'
10202 lt_prog_compiler_can_build_shared=no
10203 ;;
10204
10205 uts4*)
10206 lt_prog_compiler_pic='-pic'
10207 lt_prog_compiler_static='-Bstatic'
10208 ;;
10209
10210 *)
10211 lt_prog_compiler_can_build_shared=no
10212 ;;
10213 esac
10214 fi
10215
10216case $host_os in
10217 # For platforms which do not support PIC, -DPIC is meaningless:
10218 *djgpp*)
10219 lt_prog_compiler_pic=
10220 ;;
10221 *)
10222 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
10223 ;;
10224esac
10225
10226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10227$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10228if ${lt_cv_prog_compiler_pic+:} false; then :
10229 $as_echo_n "(cached) " >&6
10230else
10231 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10232fi
10233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10234$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10235lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10236
10237#
10238# Check to make sure the PIC flag actually works.
10239#
10240if test -n "$lt_prog_compiler_pic"; then
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10242$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10243if ${lt_cv_prog_compiler_pic_works+:} false; then :
10244 $as_echo_n "(cached) " >&6
10245else
10246 lt_cv_prog_compiler_pic_works=no
10247 ac_outfile=conftest.$ac_objext
10248 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10249 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
10250 # Insert the option either (1) after the last *FLAGS variable, or
10251 # (2) before a word containing "conftest.", or (3) at the end.
10252 # Note that $ac_compile itself does not contain backslashes and begins
10253 # with a dollar sign (not a hyphen), so the echo should work correctly.
10254 # The option is referenced via a variable to avoid confusing sed.
10255 lt_compile=`echo "$ac_compile" | $SED \
10256 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10258 -e 's:$: $lt_compiler_flag:'`
10259 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10260 (eval "$lt_compile" 2>conftest.err)
10261 ac_status=$?
10262 cat conftest.err >&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 if (exit $ac_status) && test -s "$ac_outfile"; then
10265 # The compiler can only warn and ignore the option if not recognized
10266 # So say no if there are warnings other than the usual output.
10267 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10268 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10269 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10270 lt_cv_prog_compiler_pic_works=yes
10271 fi
10272 fi
10273 $RM conftest*
10274
10275fi
10276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10277$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10278
10279if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10280 case $lt_prog_compiler_pic in
10281 "" | " "*) ;;
10282 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10283 esac
10284else
10285 lt_prog_compiler_pic=
10286 lt_prog_compiler_can_build_shared=no
10287fi
10288
10289fi
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301#
10302# Check to make sure the static flag actually works.
10303#
10304wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10306$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10307if ${lt_cv_prog_compiler_static_works+:} false; then :
10308 $as_echo_n "(cached) " >&6
10309else
10310 lt_cv_prog_compiler_static_works=no
10311 save_LDFLAGS="$LDFLAGS"
10312 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10313 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10314 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10315 # The linker can only warn and ignore the option if not recognized
10316 # So say no if there are warnings
10317 if test -s conftest.err; then
10318 # Append any errors to the config.log.
10319 cat conftest.err 1>&5
10320 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10321 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10322 if diff conftest.exp conftest.er2 >/dev/null; then
10323 lt_cv_prog_compiler_static_works=yes
10324 fi
10325 else
10326 lt_cv_prog_compiler_static_works=yes
10327 fi
10328 fi
10329 $RM -r conftest*
10330 LDFLAGS="$save_LDFLAGS"
10331
10332fi
10333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10334$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10335
10336if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10337 :
10338else
10339 lt_prog_compiler_static=
10340fi
10341
10342
10343
10344
10345
10346
10347
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10349$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10350if ${lt_cv_prog_compiler_c_o+:} false; then :
10351 $as_echo_n "(cached) " >&6
10352else
10353 lt_cv_prog_compiler_c_o=no
10354 $RM -r conftest 2>/dev/null
10355 mkdir conftest
10356 cd conftest
10357 mkdir out
10358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10359
10360 lt_compiler_flag="-o out/conftest2.$ac_objext"
10361 # Insert the option either (1) after the last *FLAGS variable, or
10362 # (2) before a word containing "conftest.", or (3) at the end.
10363 # Note that $ac_compile itself does not contain backslashes and begins
10364 # with a dollar sign (not a hyphen), so the echo should work correctly.
10365 lt_compile=`echo "$ac_compile" | $SED \
10366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10368 -e 's:$: $lt_compiler_flag:'`
10369 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10370 (eval "$lt_compile" 2>out/conftest.err)
10371 ac_status=$?
10372 cat out/conftest.err >&5
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10375 then
10376 # The compiler can only warn and ignore the option if not recognized
10377 # So say no if there are warnings
10378 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10379 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10380 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10381 lt_cv_prog_compiler_c_o=yes
10382 fi
10383 fi
10384 chmod u+w . 2>&5
10385 $RM conftest*
10386 # SGI C++ compiler will create directory out/ii_files/ for
10387 # template instantiation
10388 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10389 $RM out/* && rmdir out
10390 cd ..
10391 $RM -r conftest
10392 $RM conftest*
10393
10394fi
10395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10396$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10397
10398
10399
10400
10401
10402
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10404$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10405if ${lt_cv_prog_compiler_c_o+:} false; then :
10406 $as_echo_n "(cached) " >&6
10407else
10408 lt_cv_prog_compiler_c_o=no
10409 $RM -r conftest 2>/dev/null
10410 mkdir conftest
10411 cd conftest
10412 mkdir out
10413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10414
10415 lt_compiler_flag="-o out/conftest2.$ac_objext"
10416 # Insert the option either (1) after the last *FLAGS variable, or
10417 # (2) before a word containing "conftest.", or (3) at the end.
10418 # Note that $ac_compile itself does not contain backslashes and begins
10419 # with a dollar sign (not a hyphen), so the echo should work correctly.
10420 lt_compile=`echo "$ac_compile" | $SED \
10421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10423 -e 's:$: $lt_compiler_flag:'`
10424 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10425 (eval "$lt_compile" 2>out/conftest.err)
10426 ac_status=$?
10427 cat out/conftest.err >&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10430 then
10431 # The compiler can only warn and ignore the option if not recognized
10432 # So say no if there are warnings
10433 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10434 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10435 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10436 lt_cv_prog_compiler_c_o=yes
10437 fi
10438 fi
10439 chmod u+w . 2>&5
10440 $RM conftest*
10441 # SGI C++ compiler will create directory out/ii_files/ for
10442 # template instantiation
10443 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10444 $RM out/* && rmdir out
10445 cd ..
10446 $RM -r conftest
10447 $RM conftest*
10448
10449fi
10450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10451$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10452
10453
10454
10455
10456hard_links="nottested"
10457if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10458 # do not overwrite the value of need_locks provided by the user
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10460$as_echo_n "checking if we can lock with hard links... " >&6; }
10461 hard_links=yes
10462 $RM conftest*
10463 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10464 touch conftest.a
10465 ln conftest.a conftest.b 2>&5 || hard_links=no
10466 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10468$as_echo "$hard_links" >&6; }
10469 if test "$hard_links" = no; then
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10471$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10472 need_locks=warn
10473 fi
10474else
10475 need_locks=no
10476fi
10477
10478
10479
10480
10481
10482
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10484$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10485
10486 runpath_var=
10487 allow_undefined_flag=
10488 always_export_symbols=no
10489 archive_cmds=
10490 archive_expsym_cmds=
10491 compiler_needs_object=no
10492 enable_shared_with_static_runtimes=no
10493 export_dynamic_flag_spec=
10494 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10495 hardcode_automatic=no
10496 hardcode_direct=no
10497 hardcode_direct_absolute=no
10498 hardcode_libdir_flag_spec=
10499 hardcode_libdir_flag_spec_ld=
10500 hardcode_libdir_separator=
10501 hardcode_minus_L=no
10502 hardcode_shlibpath_var=unsupported
10503 inherit_rpath=no
10504 link_all_deplibs=unknown
10505 module_cmds=
10506 module_expsym_cmds=
10507 old_archive_from_new_cmds=
10508 old_archive_from_expsyms_cmds=
10509 thread_safe_flag_spec=
10510 whole_archive_flag_spec=
10511 # include_expsyms should be a list of space-separated symbols to be *always*
10512 # included in the symbol list
10513 include_expsyms=
10514 # exclude_expsyms can be an extended regexp of symbols to exclude
10515 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10516 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10517 # as well as any symbol that contains `d'.
10518 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10519 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10520 # platforms (ab)use it in PIC code, but their linkers get confused if
10521 # the symbol is explicitly referenced. Since portable code cannot
10522 # rely on this symbol name, it's probably fine to never include it in
10523 # preloaded symbol tables.
10524 # Exclude shared library initialization/finalization symbols.
10525 extract_expsyms_cmds=
10526
10527 case $host_os in
10528 cygwin* | mingw* | pw32* | cegcc*)
10529 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10530 # When not using gcc, we currently assume that we are using
10531 # Microsoft Visual C++.
10532 if test "$GCC" != yes; then
10533 with_gnu_ld=no
10534 fi
10535 ;;
10536 interix*)
10537 # we just hope/assume this is gcc and not c89 (= MSVC++)
10538 with_gnu_ld=yes
10539 ;;
10540 openbsd*)
10541 with_gnu_ld=no
10542 ;;
10543 linux* | k*bsd*-gnu | gnu*)
10544 link_all_deplibs=no
10545 ;;
10546 esac
10547
10548 ld_shlibs=yes
10549
10550 # On some targets, GNU ld is compatible enough with the native linker
10551 # that we're better off using the native interface for both.
10552 lt_use_gnu_ld_interface=no
10553 if test "$with_gnu_ld" = yes; then
10554 case $host_os in
10555 aix*)
10556 # The AIX port of GNU ld has always aspired to compatibility
10557 # with the native linker. However, as the warning in the GNU ld
10558 # block says, versions before 2.19.5* couldn't really create working
10559 # shared libraries, regardless of the interface used.
10560 case `$LD -v 2>&1` in
10561 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10562 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10563 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10564 *)
10565 lt_use_gnu_ld_interface=yes
10566 ;;
10567 esac
10568 ;;
10569 *)
10570 lt_use_gnu_ld_interface=yes
10571 ;;
10572 esac
10573 fi
10574
10575 if test "$lt_use_gnu_ld_interface" = yes; then
10576 # If archive_cmds runs LD, not CC, wlarc should be empty
10577 wlarc='${wl}'
10578
10579 # Set some defaults for GNU ld with shared library support. These
10580 # are reset later if shared libraries are not supported. Putting them
10581 # here allows them to be overridden if necessary.
10582 runpath_var=LD_RUN_PATH
10583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10584 export_dynamic_flag_spec='${wl}--export-dynamic'
10585 # ancient GNU ld didn't support --whole-archive et. al.
10586 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10587 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10588 else
10589 whole_archive_flag_spec=
10590 fi
10591 supports_anon_versioning=no
10592 case `$LD -v 2>&1` in
10593 *GNU\ gold*) supports_anon_versioning=yes ;;
10594 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10595 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10596 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10597 *\ 2.11.*) ;; # other 2.11 versions
10598 *) supports_anon_versioning=yes ;;
10599 esac
10600
10601 # See if GNU ld supports shared libraries.
10602 case $host_os in
10603 aix[3-9]*)
10604 # On AIX/PPC, the GNU linker is very broken
10605 if test "$host_cpu" != ia64; then
10606 ld_shlibs=no
10607 cat <<_LT_EOF 1>&2
10608
10609*** Warning: the GNU linker, at least up to release 2.19, is reported
10610*** to be unable to reliably create shared libraries on AIX.
10611*** Therefore, libtool is disabling shared libraries support. If you
10612*** really care for shared libraries, you may want to install binutils
10613*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10614*** You will then need to restart the configuration process.
10615
10616_LT_EOF
10617 fi
10618 ;;
10619
10620 amigaos*)
10621 case $host_cpu in
10622 powerpc)
10623 # see comment about AmigaOS4 .so support
10624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10625 archive_expsym_cmds=''
10626 ;;
10627 m68k)
10628 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)'
10629 hardcode_libdir_flag_spec='-L$libdir'
10630 hardcode_minus_L=yes
10631 ;;
10632 esac
10633 ;;
10634
10635 beos*)
10636 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10637 allow_undefined_flag=unsupported
10638 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10639 # support --undefined. This deserves some investigation. FIXME
10640 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10641 else
10642 ld_shlibs=no
10643 fi
10644 ;;
10645
10646 cygwin* | mingw* | pw32* | cegcc*)
10647 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10648 # as there is no search path for DLLs.
10649 hardcode_libdir_flag_spec='-L$libdir'
10650 export_dynamic_flag_spec='${wl}--export-all-symbols'
10651 allow_undefined_flag=unsupported
10652 always_export_symbols=no
10653 enable_shared_with_static_runtimes=yes
10654 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10655 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10656
10657 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10659 # If the export-symbols file already is a .def file (1st line
10660 # is EXPORTS), use it as is; otherwise, prepend...
10661 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10662 cp $export_symbols $output_objdir/$soname.def;
10663 else
10664 echo EXPORTS > $output_objdir/$soname.def;
10665 cat $export_symbols >> $output_objdir/$soname.def;
10666 fi~
10667 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10668 else
10669 ld_shlibs=no
10670 fi
10671 ;;
10672
10673 haiku*)
10674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10675 link_all_deplibs=yes
10676 ;;
10677
10678 interix[3-9]*)
10679 hardcode_direct=no
10680 hardcode_shlibpath_var=no
10681 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10682 export_dynamic_flag_spec='${wl}-E'
10683 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10684 # Instead, shared libraries are loaded at an image base (0x10000000 by
10685 # default) and relocated if they conflict, which is a slow very memory
10686 # consuming and fragmenting process. To avoid this, we pick a random,
10687 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10688 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10689 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10690 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10691 ;;
10692
10693 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10694 tmp_diet=no
10695 if test "$host_os" = linux-dietlibc; then
10696 case $cc_basename in
10697 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10698 esac
10699 fi
10700 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10701 && test "$tmp_diet" = no
10702 then
10703 tmp_addflag=' $pic_flag'
10704 tmp_sharedflag='-shared'
10705 case $cc_basename,$host_cpu in
10706 pgcc*) # Portland Group C compiler
10707 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10708 tmp_addflag=' $pic_flag'
10709 ;;
10710 pgf77* | pgf90* | pgf95* | pgfortran*)
10711 # Portland Group f77 and f90 compilers
10712 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10713 tmp_addflag=' $pic_flag -Mnomain' ;;
10714 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10715 tmp_addflag=' -i_dynamic' ;;
10716 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10717 tmp_addflag=' -i_dynamic -nofor_main' ;;
10718 ifc* | ifort*) # Intel Fortran compiler
10719 tmp_addflag=' -nofor_main' ;;
10720 lf95*) # Lahey Fortran 8.1
10721 whole_archive_flag_spec=
10722 tmp_sharedflag='--shared' ;;
10723 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10724 tmp_sharedflag='-qmkshrobj'
10725 tmp_addflag= ;;
10726 nvcc*) # Cuda Compiler Driver 2.2
10727 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10728 compiler_needs_object=yes
10729 ;;
10730 esac
10731 case `$CC -V 2>&1 | sed 5q` in
10732 *Sun\ C*) # Sun C 5.9
10733 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10734 compiler_needs_object=yes
10735 tmp_sharedflag='-G' ;;
10736 *Sun\ F*) # Sun Fortran 8.3
10737 tmp_sharedflag='-G' ;;
10738 esac
10739 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10740
10741 if test "x$supports_anon_versioning" = xyes; then
10742 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10743 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10744 echo "local: *; };" >> $output_objdir/$libname.ver~
10745 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10746 fi
10747
10748 case $cc_basename in
10749 xlf* | bgf* | bgxlf* | mpixlf*)
10750 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10751 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10752 hardcode_libdir_flag_spec=
10753 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10754 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10755 if test "x$supports_anon_versioning" = xyes; then
10756 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10757 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10758 echo "local: *; };" >> $output_objdir/$libname.ver~
10759 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10760 fi
10761 ;;
10762 esac
10763 else
10764 ld_shlibs=no
10765 fi
10766 ;;
10767
10768 netbsd* | netbsdelf*-gnu)
10769 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10770 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10771 wlarc=
10772 else
10773 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10774 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10775 fi
10776 ;;
10777
10778 solaris*)
10779 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10780 ld_shlibs=no
10781 cat <<_LT_EOF 1>&2
10782
10783*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10784*** create shared libraries on Solaris systems. Therefore, libtool
10785*** is disabling shared libraries support. We urge you to upgrade GNU
10786*** binutils to release 2.9.1 or newer. Another option is to modify
10787*** your PATH or compiler configuration so that the native linker is
10788*** used, and then restart.
10789
10790_LT_EOF
10791 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10792 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10793 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10794 else
10795 ld_shlibs=no
10796 fi
10797 ;;
10798
10799 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10800 case `$LD -v 2>&1` in
10801 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10802 ld_shlibs=no
10803 cat <<_LT_EOF 1>&2
10804
10805*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10806*** reliably create shared libraries on SCO systems. Therefore, libtool
10807*** is disabling shared libraries support. We urge you to upgrade GNU
10808*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10809*** your PATH or compiler configuration so that the native linker is
10810*** used, and then restart.
10811
10812_LT_EOF
10813 ;;
10814 *)
10815 # For security reasons, it is highly recommended that you always
10816 # use absolute paths for naming shared libraries, and exclude the
10817 # DT_RUNPATH tag from executables and libraries. But doing so
10818 # requires that you compile everything twice, which is a pain.
10819 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10820 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10822 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10823 else
10824 ld_shlibs=no
10825 fi
10826 ;;
10827 esac
10828 ;;
10829
10830 sunos4*)
10831 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10832 wlarc=
10833 hardcode_direct=yes
10834 hardcode_shlibpath_var=no
10835 ;;
10836
10837 *)
10838 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10839 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10840 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10841 else
10842 ld_shlibs=no
10843 fi
10844 ;;
10845 esac
10846
10847 if test "$ld_shlibs" = no; then
10848 runpath_var=
10849 hardcode_libdir_flag_spec=
10850 export_dynamic_flag_spec=
10851 whole_archive_flag_spec=
10852 fi
10853 else
10854 # PORTME fill in a description of your system's linker (not GNU ld)
10855 case $host_os in
10856 aix3*)
10857 allow_undefined_flag=unsupported
10858 always_export_symbols=yes
10859 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'
10860 # Note: this linker hardcodes the directories in LIBPATH if there
10861 # are no directories specified by -L.
10862 hardcode_minus_L=yes
10863 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10864 # Neither direct hardcoding nor static linking is supported with a
10865 # broken collect2.
10866 hardcode_direct=unsupported
10867 fi
10868 ;;
10869
10870 aix[4-9]*)
10871 if test "$host_cpu" = ia64; then
10872 # On IA64, the linker does run time linking by default, so we don't
10873 # have to do anything special.
10874 aix_use_runtimelinking=no
10875 exp_sym_flag='-Bexport'
10876 no_entry_flag=""
10877 else
10878 # If we're using GNU nm, then we don't want the "-C" option.
10879 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10880 # Also, AIX nm treats weak defined symbols like other global
10881 # defined symbols, whereas GNU nm marks them as "W".
10882 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10883 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10884 else
10885 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'
10886 fi
10887 aix_use_runtimelinking=no
10888
10889 # Test if we are trying to use run time linking or normal
10890 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10891 # need to do runtime linking.
10892 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10893 for ld_flag in $LDFLAGS; do
10894 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10895 aix_use_runtimelinking=yes
10896 break
10897 fi
10898 done
10899 ;;
10900 esac
10901
10902 exp_sym_flag='-bexport'
10903 no_entry_flag='-bnoentry'
10904 fi
10905
10906 # When large executables or shared objects are built, AIX ld can
10907 # have problems creating the table of contents. If linking a library
10908 # or program results in "error TOC overflow" add -mminimal-toc to
10909 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10910 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10911
10912 archive_cmds=''
10913 hardcode_direct=yes
10914 hardcode_direct_absolute=yes
10915 hardcode_libdir_separator=':'
10916 link_all_deplibs=yes
10917 file_list_spec='${wl}-f,'
10918
10919 if test "$GCC" = yes; then
10920 case $host_os in aix4.[012]|aix4.[012].*)
10921 # We only want to do this on AIX 4.2 and lower, the check
10922 # below for broken collect2 doesn't work under 4.3+
10923 collect2name=`${CC} -print-prog-name=collect2`
10924 if test -f "$collect2name" &&
10925 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10926 then
10927 # We have reworked collect2
10928 :
10929 else
10930 # We have old collect2
10931 hardcode_direct=unsupported
10932 # It fails to find uninstalled libraries when the uninstalled
10933 # path is not listed in the libpath. Setting hardcode_minus_L
10934 # to unsupported forces relinking
10935 hardcode_minus_L=yes
10936 hardcode_libdir_flag_spec='-L$libdir'
10937 hardcode_libdir_separator=
10938 fi
10939 ;;
10940 esac
10941 shared_flag='-shared'
10942 if test "$aix_use_runtimelinking" = yes; then
10943 shared_flag="$shared_flag "'${wl}-G'
10944 fi
10945 link_all_deplibs=no
10946 else
10947 # not using gcc
10948 if test "$host_cpu" = ia64; then
10949 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10950 # chokes on -Wl,-G. The following line is correct:
10951 shared_flag='-G'
10952 else
10953 if test "$aix_use_runtimelinking" = yes; then
10954 shared_flag='${wl}-G'
10955 else
10956 shared_flag='${wl}-bM:SRE'
10957 fi
10958 fi
10959 fi
10960
10961 export_dynamic_flag_spec='${wl}-bexpall'
10962 # It seems that -bexpall does not export symbols beginning with
10963 # underscore (_), so it is better to generate a list of symbols to export.
10964 always_export_symbols=yes
10965 if test "$aix_use_runtimelinking" = yes; then
10966 # Warning - without using the other runtime loading flags (-brtl),
10967 # -berok will link without error, but may produce a broken library.
10968 allow_undefined_flag='-berok'
10969 # Determine the default libpath from the value encoded in an
10970 # empty executable.
10971 if test "${lt_cv_aix_libpath+set}" = set; then
10972 aix_libpath=$lt_cv_aix_libpath
10973else
10974 if ${lt_cv_aix_libpath_+:} false; then :
10975 $as_echo_n "(cached) " >&6
10976else
10977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978/* end confdefs.h. */
10979
10980int
10981main ()
10982{
10983
10984 ;
10985 return 0;
10986}
10987_ACEOF
10988if ac_fn_c_try_link "$LINENO"; then :
10989
10990 lt_aix_libpath_sed='
10991 /Import File Strings/,/^$/ {
10992 /^0/ {
10993 s/^0 *\([^ ]*\) *$/\1/
10994 p
10995 }
10996 }'
10997 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10998 # Check for a 64-bit object if we didn't find anything.
10999 if test -z "$lt_cv_aix_libpath_"; then
11000 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11001 fi
11002fi
11003rm -f core conftest.err conftest.$ac_objext \
11004 conftest$ac_exeext conftest.$ac_ext
11005 if test -z "$lt_cv_aix_libpath_"; then
11006 lt_cv_aix_libpath_="/usr/lib:/lib"
11007 fi
11008
11009fi
11010
11011 aix_libpath=$lt_cv_aix_libpath_
11012fi
11013
11014 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11015 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11016 else
11017 if test "$host_cpu" = ia64; then
11018 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11019 allow_undefined_flag="-z nodefs"
11020 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11021 else
11022 # Determine the default libpath from the value encoded in an
11023 # empty executable.
11024 if test "${lt_cv_aix_libpath+set}" = set; then
11025 aix_libpath=$lt_cv_aix_libpath
11026else
11027 if ${lt_cv_aix_libpath_+:} false; then :
11028 $as_echo_n "(cached) " >&6
11029else
11030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031/* end confdefs.h. */
11032
11033int
11034main ()
11035{
11036
11037 ;
11038 return 0;
11039}
11040_ACEOF
11041if ac_fn_c_try_link "$LINENO"; then :
11042
11043 lt_aix_libpath_sed='
11044 /Import File Strings/,/^$/ {
11045 /^0/ {
11046 s/^0 *\([^ ]*\) *$/\1/
11047 p
11048 }
11049 }'
11050 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11051 # Check for a 64-bit object if we didn't find anything.
11052 if test -z "$lt_cv_aix_libpath_"; then
11053 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11054 fi
11055fi
11056rm -f core conftest.err conftest.$ac_objext \
11057 conftest$ac_exeext conftest.$ac_ext
11058 if test -z "$lt_cv_aix_libpath_"; then
11059 lt_cv_aix_libpath_="/usr/lib:/lib"
11060 fi
11061
11062fi
11063
11064 aix_libpath=$lt_cv_aix_libpath_
11065fi
11066
11067 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11068 # Warning - without using the other run time loading flags,
11069 # -berok will link without error, but may produce a broken library.
11070 no_undefined_flag=' ${wl}-bernotok'
11071 allow_undefined_flag=' ${wl}-berok'
11072 if test "$with_gnu_ld" = yes; then
11073 # We only use this code for GNU lds that support --whole-archive.
11074 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11075 else
11076 # Exported symbols can be pulled into shared objects from archives
11077 whole_archive_flag_spec='$convenience'
11078 fi
11079 archive_cmds_need_lc=yes
11080 # This is similar to how AIX traditionally builds its shared libraries.
11081 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11082 fi
11083 fi
11084 ;;
11085
11086 amigaos*)
11087 case $host_cpu in
11088 powerpc)
11089 # see comment about AmigaOS4 .so support
11090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11091 archive_expsym_cmds=''
11092 ;;
11093 m68k)
11094 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)'
11095 hardcode_libdir_flag_spec='-L$libdir'
11096 hardcode_minus_L=yes
11097 ;;
11098 esac
11099 ;;
11100
11101 bsdi[45]*)
11102 export_dynamic_flag_spec=-rdynamic
11103 ;;
11104
11105 cygwin* | mingw* | pw32* | cegcc*)
11106 # When not using gcc, we currently assume that we are using
11107 # Microsoft Visual C++.
11108 # hardcode_libdir_flag_spec is actually meaningless, as there is
11109 # no search path for DLLs.
11110 case $cc_basename in
11111 cl*)
11112 # Native MSVC
11113 hardcode_libdir_flag_spec=' '
11114 allow_undefined_flag=unsupported
11115 always_export_symbols=yes
11116 file_list_spec='@'
11117 # Tell ltmain to make .lib files, not .a files.
11118 libext=lib
11119 # Tell ltmain to make .dll files, not .so files.
11120 shrext_cmds=".dll"
11121 # FIXME: Setting linknames here is a bad hack.
11122 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11123 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11124 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11125 else
11126 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11127 fi~
11128 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11129 linknames='
11130 # The linker will not automatically build a static lib if we build a DLL.
11131 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11132 enable_shared_with_static_runtimes=yes
11133 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11134 # Don't use ranlib
11135 old_postinstall_cmds='chmod 644 $oldlib'
11136 postlink_cmds='lt_outputfile="@OUTPUT@"~
11137 lt_tool_outputfile="@TOOL_OUTPUT@"~
11138 case $lt_outputfile in
11139 *.exe|*.EXE) ;;
11140 *)
11141 lt_outputfile="$lt_outputfile.exe"
11142 lt_tool_outputfile="$lt_tool_outputfile.exe"
11143 ;;
11144 esac~
11145 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11146 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11147 $RM "$lt_outputfile.manifest";
11148 fi'
11149 ;;
11150 *)
11151 # Assume MSVC wrapper
11152 hardcode_libdir_flag_spec=' '
11153 allow_undefined_flag=unsupported
11154 # Tell ltmain to make .lib files, not .a files.
11155 libext=lib
11156 # Tell ltmain to make .dll files, not .so files.
11157 shrext_cmds=".dll"
11158 # FIXME: Setting linknames here is a bad hack.
11159 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11160 # The linker will automatically build a .lib file if we build a DLL.
11161 old_archive_from_new_cmds='true'
11162 # FIXME: Should let the user specify the lib program.
11163 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11164 enable_shared_with_static_runtimes=yes
11165 ;;
11166 esac
11167 ;;
11168
11169 darwin* | rhapsody*)
11170
11171
11172 archive_cmds_need_lc=no
11173 hardcode_direct=no
11174 hardcode_automatic=yes
11175 hardcode_shlibpath_var=unsupported
11176 if test "$lt_cv_ld_force_load" = "yes"; then
11177 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11178 else
11179 whole_archive_flag_spec=''
11180 fi
11181 link_all_deplibs=yes
11182 allow_undefined_flag="$_lt_dar_allow_undefined"
11183 case $cc_basename in
11184 ifort*) _lt_dar_can_shared=yes ;;
11185 *) _lt_dar_can_shared=$GCC ;;
11186 esac
11187 if test "$_lt_dar_can_shared" = "yes"; then
11188 output_verbose_link_cmd=func_echo_all
11189 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11190 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11191 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11192 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11193
11194 else
11195 ld_shlibs=no
11196 fi
11197
11198 ;;
11199
11200 dgux*)
11201 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11202 hardcode_libdir_flag_spec='-L$libdir'
11203 hardcode_shlibpath_var=no
11204 ;;
11205
11206 freebsd1*)
11207 ld_shlibs=no
11208 ;;
11209
11210 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11211 # support. Future versions do this automatically, but an explicit c++rt0.o
11212 # does not break anything, and helps significantly (at the cost of a little
11213 # extra space).
11214 freebsd2.2*)
11215 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11216 hardcode_libdir_flag_spec='-R$libdir'
11217 hardcode_direct=yes
11218 hardcode_shlibpath_var=no
11219 ;;
11220
11221 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11222 freebsd2*)
11223 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11224 hardcode_direct=yes
11225 hardcode_minus_L=yes
11226 hardcode_shlibpath_var=no
11227 ;;
11228
11229 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11230 freebsd* | dragonfly*)
11231 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11232 hardcode_libdir_flag_spec='-R$libdir'
11233 hardcode_direct=yes
11234 hardcode_shlibpath_var=no
11235 ;;
11236
11237 hpux9*)
11238 if test "$GCC" = yes; then
11239 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11240 else
11241 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'
11242 fi
11243 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11244 hardcode_libdir_separator=:
11245 hardcode_direct=yes
11246
11247 # hardcode_minus_L: Not really in the search PATH,
11248 # but as the default location of the library.
11249 hardcode_minus_L=yes
11250 export_dynamic_flag_spec='${wl}-E'
11251 ;;
11252
11253 hpux10*)
11254 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11255 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11256 else
11257 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11258 fi
11259 if test "$with_gnu_ld" = no; then
11260 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11261 hardcode_libdir_flag_spec_ld='+b $libdir'
11262 hardcode_libdir_separator=:
11263 hardcode_direct=yes
11264 hardcode_direct_absolute=yes
11265 export_dynamic_flag_spec='${wl}-E'
11266 # hardcode_minus_L: Not really in the search PATH,
11267 # but as the default location of the library.
11268 hardcode_minus_L=yes
11269 fi
11270 ;;
11271
11272 hpux11*)
11273 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11274 case $host_cpu in
11275 hppa*64*)
11276 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11277 ;;
11278 ia64*)
11279 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11280 ;;
11281 *)
11282 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11283 ;;
11284 esac
11285 else
11286 case $host_cpu in
11287 hppa*64*)
11288 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11289 ;;
11290 ia64*)
11291 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11292 ;;
11293 *)
11294
11295 # Older versions of the 11.00 compiler do not understand -b yet
11296 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11298$as_echo_n "checking if $CC understands -b... " >&6; }
11299if ${lt_cv_prog_compiler__b+:} false; then :
11300 $as_echo_n "(cached) " >&6
11301else
11302 lt_cv_prog_compiler__b=no
11303 save_LDFLAGS="$LDFLAGS"
11304 LDFLAGS="$LDFLAGS -b"
11305 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11306 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11307 # The linker can only warn and ignore the option if not recognized
11308 # So say no if there are warnings
11309 if test -s conftest.err; then
11310 # Append any errors to the config.log.
11311 cat conftest.err 1>&5
11312 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11314 if diff conftest.exp conftest.er2 >/dev/null; then
11315 lt_cv_prog_compiler__b=yes
11316 fi
11317 else
11318 lt_cv_prog_compiler__b=yes
11319 fi
11320 fi
11321 $RM -r conftest*
11322 LDFLAGS="$save_LDFLAGS"
11323
11324fi
11325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11326$as_echo "$lt_cv_prog_compiler__b" >&6; }
11327
11328if test x"$lt_cv_prog_compiler__b" = xyes; then
11329 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11330else
11331 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11332fi
11333
11334 ;;
11335 esac
11336 fi
11337 if test "$with_gnu_ld" = no; then
11338 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11339 hardcode_libdir_separator=:
11340
11341 case $host_cpu in
11342 hppa*64*|ia64*)
11343 hardcode_direct=no
11344 hardcode_shlibpath_var=no
11345 ;;
11346 *)
11347 hardcode_direct=yes
11348 hardcode_direct_absolute=yes
11349 export_dynamic_flag_spec='${wl}-E'
11350
11351 # hardcode_minus_L: Not really in the search PATH,
11352 # but as the default location of the library.
11353 hardcode_minus_L=yes
11354 ;;
11355 esac
11356 fi
11357 ;;
11358
11359 irix5* | irix6* | nonstopux*)
11360 if test "$GCC" = yes; then
11361 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11362 # Try to use the -exported_symbol ld option, if it does not
11363 # work, assume that -exports_file does not work either and
11364 # implicitly export all symbols.
11365 # This should be the same for all languages, so no per-tag cache variable.
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11367$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11368if ${lt_cv_irix_exported_symbol+:} false; then :
11369 $as_echo_n "(cached) " >&6
11370else
11371 save_LDFLAGS="$LDFLAGS"
11372 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11374/* end confdefs.h. */
11375int foo (void) { return 0; }
11376_ACEOF
11377if ac_fn_c_try_link "$LINENO"; then :
11378 lt_cv_irix_exported_symbol=yes
11379else
11380 lt_cv_irix_exported_symbol=no
11381fi
11382rm -f core conftest.err conftest.$ac_objext \
11383 conftest$ac_exeext conftest.$ac_ext
11384 LDFLAGS="$save_LDFLAGS"
11385fi
11386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11387$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11388 if test "$lt_cv_irix_exported_symbol" = yes; then
11389 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11390 fi
11391 else
11392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11393 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11394 fi
11395 archive_cmds_need_lc='no'
11396 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11397 hardcode_libdir_separator=:
11398 inherit_rpath=yes
11399 link_all_deplibs=yes
11400 ;;
11401
11402 netbsd* | netbsdelf*-gnu)
11403 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11404 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11405 else
11406 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11407 fi
11408 hardcode_libdir_flag_spec='-R$libdir'
11409 hardcode_direct=yes
11410 hardcode_shlibpath_var=no
11411 ;;
11412
11413 newsos6)
11414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11415 hardcode_direct=yes
11416 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11417 hardcode_libdir_separator=:
11418 hardcode_shlibpath_var=no
11419 ;;
11420
11421 *nto* | *qnx*)
11422 ;;
11423
11424 openbsd*)
11425 if test -f /usr/libexec/ld.so; then
11426 hardcode_direct=yes
11427 hardcode_shlibpath_var=no
11428 hardcode_direct_absolute=yes
11429 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11430 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11431 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11432 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11433 export_dynamic_flag_spec='${wl}-E'
11434 else
11435 case $host_os in
11436 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11437 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11438 hardcode_libdir_flag_spec='-R$libdir'
11439 ;;
11440 *)
11441 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11442 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11443 ;;
11444 esac
11445 fi
11446 else
11447 ld_shlibs=no
11448 fi
11449 ;;
11450
11451 os2*)
11452 hardcode_libdir_flag_spec='-L$libdir'
11453 hardcode_minus_L=yes
11454 allow_undefined_flag=unsupported
11455 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'
11456 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11457 ;;
11458
11459 osf3*)
11460 if test "$GCC" = yes; then
11461 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11462 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11463 else
11464 allow_undefined_flag=' -expect_unresolved \*'
11465 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11466 fi
11467 archive_cmds_need_lc='no'
11468 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11469 hardcode_libdir_separator=:
11470 ;;
11471
11472 osf4* | osf5*) # as osf3* with the addition of -msym flag
11473 if test "$GCC" = yes; then
11474 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11475 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11476 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11477 else
11478 allow_undefined_flag=' -expect_unresolved \*'
11479 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11480 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11481 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11482
11483 # Both c and cxx compiler support -rpath directly
11484 hardcode_libdir_flag_spec='-rpath $libdir'
11485 fi
11486 archive_cmds_need_lc='no'
11487 hardcode_libdir_separator=:
11488 ;;
11489
11490 solaris*)
11491 no_undefined_flag=' -z defs'
11492 if test "$GCC" = yes; then
11493 wlarc='${wl}'
11494 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11495 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11496 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11497 else
11498 case `$CC -V 2>&1` in
11499 *"Compilers 5.0"*)
11500 wlarc=''
11501 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11502 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11503 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11504 ;;
11505 *)
11506 wlarc='${wl}'
11507 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11508 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11509 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11510 ;;
11511 esac
11512 fi
11513 hardcode_libdir_flag_spec='-R$libdir'
11514 hardcode_shlibpath_var=no
11515 case $host_os in
11516 solaris2.[0-5] | solaris2.[0-5].*) ;;
11517 *)
11518 # The compiler driver will combine and reorder linker options,
11519 # but understands `-z linker_flag'. GCC discards it without `$wl',
11520 # but is careful enough not to reorder.
11521 # Supported since Solaris 2.6 (maybe 2.5.1?)
11522 if test "$GCC" = yes; then
11523 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11524 else
11525 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11526 fi
11527 ;;
11528 esac
11529 link_all_deplibs=yes
11530 ;;
11531
11532 sunos4*)
11533 if test "x$host_vendor" = xsequent; then
11534 # Use $CC to link under sequent, because it throws in some extra .o
11535 # files that make .init and .fini sections work.
11536 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11537 else
11538 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11539 fi
11540 hardcode_libdir_flag_spec='-L$libdir'
11541 hardcode_direct=yes
11542 hardcode_minus_L=yes
11543 hardcode_shlibpath_var=no
11544 ;;
11545
11546 sysv4)
11547 case $host_vendor in
11548 sni)
11549 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11550 hardcode_direct=yes # is this really true???
11551 ;;
11552 siemens)
11553 ## LD is ld it makes a PLAMLIB
11554 ## CC just makes a GrossModule.
11555 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11556 reload_cmds='$CC -r -o $output$reload_objs'
11557 hardcode_direct=no
11558 ;;
11559 motorola)
11560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11561 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11562 ;;
11563 esac
11564 runpath_var='LD_RUN_PATH'
11565 hardcode_shlibpath_var=no
11566 ;;
11567
11568 sysv4.3*)
11569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11570 hardcode_shlibpath_var=no
11571 export_dynamic_flag_spec='-Bexport'
11572 ;;
11573
11574 sysv4*MP*)
11575 if test -d /usr/nec; then
11576 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11577 hardcode_shlibpath_var=no
11578 runpath_var=LD_RUN_PATH
11579 hardcode_runpath_var=yes
11580 ld_shlibs=yes
11581 fi
11582 ;;
11583
11584 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11585 no_undefined_flag='${wl}-z,text'
11586 archive_cmds_need_lc=no
11587 hardcode_shlibpath_var=no
11588 runpath_var='LD_RUN_PATH'
11589
11590 if test "$GCC" = yes; then
11591 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11592 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11593 else
11594 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11595 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11596 fi
11597 ;;
11598
11599 sysv5* | sco3.2v5* | sco5v6*)
11600 # Note: We can NOT use -z defs as we might desire, because we do not
11601 # link with -lc, and that would cause any symbols used from libc to
11602 # always be unresolved, which means just about no library would
11603 # ever link correctly. If we're not using GNU ld we use -z text
11604 # though, which does catch some bad symbols but isn't as heavy-handed
11605 # as -z defs.
11606 no_undefined_flag='${wl}-z,text'
11607 allow_undefined_flag='${wl}-z,nodefs'
11608 archive_cmds_need_lc=no
11609 hardcode_shlibpath_var=no
11610 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11611 hardcode_libdir_separator=':'
11612 link_all_deplibs=yes
11613 export_dynamic_flag_spec='${wl}-Bexport'
11614 runpath_var='LD_RUN_PATH'
11615
11616 if test "$GCC" = yes; then
11617 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11618 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11619 else
11620 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11621 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11622 fi
11623 ;;
11624
11625 uts4*)
11626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11627 hardcode_libdir_flag_spec='-L$libdir'
11628 hardcode_shlibpath_var=no
11629 ;;
11630
11631 *)
11632 ld_shlibs=no
11633 ;;
11634 esac
11635
11636 if test x$host_vendor = xsni; then
11637 case $host in
11638 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11639 export_dynamic_flag_spec='${wl}-Blargedynsym'
11640 ;;
11641 esac
11642 fi
11643 fi
11644
11645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11646$as_echo "$ld_shlibs" >&6; }
11647test "$ld_shlibs" = no && can_build_shared=no
11648
11649with_gnu_ld=$with_gnu_ld
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665#
11666# Do we need to explicitly link libc?
11667#
11668case "x$archive_cmds_need_lc" in
11669x|xyes)
11670 # Assume -lc should be added
11671 archive_cmds_need_lc=yes
11672
11673 if test "$enable_shared" = yes && test "$GCC" = yes; then
11674 case $archive_cmds in
11675 *'~'*)
11676 # FIXME: we may have to deal with multi-command sequences.
11677 ;;
11678 '$CC '*)
11679 # Test whether the compiler implicitly links with -lc since on some
11680 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11681 # to ld, don't add -lc before -lgcc.
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11683$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11684if ${lt_cv_archive_cmds_need_lc+:} false; then :
11685 $as_echo_n "(cached) " >&6
11686else
11687 $RM conftest*
11688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11689
11690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11691 (eval $ac_compile) 2>&5
11692 ac_status=$?
11693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11694 test $ac_status = 0; } 2>conftest.err; then
11695 soname=conftest
11696 lib=conftest
11697 libobjs=conftest.$ac_objext
11698 deplibs=
11699 wl=$lt_prog_compiler_wl
11700 pic_flag=$lt_prog_compiler_pic
11701 compiler_flags=-v
11702 linker_flags=-v
11703 verstring=
11704 output_objdir=.
11705 libname=conftest
11706 lt_save_allow_undefined_flag=$allow_undefined_flag
11707 allow_undefined_flag=
11708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11709 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11710 ac_status=$?
11711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11712 test $ac_status = 0; }
11713 then
11714 lt_cv_archive_cmds_need_lc=no
11715 else
11716 lt_cv_archive_cmds_need_lc=yes
11717 fi
11718 allow_undefined_flag=$lt_save_allow_undefined_flag
11719 else
11720 cat conftest.err 1>&5
11721 fi
11722 $RM conftest*
11723
11724fi
11725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11726$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11727 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11728 ;;
11729 esac
11730 fi
11731 ;;
11732esac
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11891$as_echo_n "checking dynamic linker characteristics... " >&6; }
11892
11893if test "$GCC" = yes; then
11894 case $host_os in
11895 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11896 *) lt_awk_arg="/^libraries:/" ;;
11897 esac
11898 case $host_os in
11899 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11900 *) lt_sed_strip_eq="s,=/,/,g" ;;
11901 esac
11902 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11903 case $lt_search_path_spec in
11904 *\;*)
11905 # if the path contains ";" then we assume it to be the separator
11906 # otherwise default to the standard path separator (i.e. ":") - it is
11907 # assumed that no part of a normal pathname contains ";" but that should
11908 # okay in the real world where ";" in dirpaths is itself problematic.
11909 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11910 ;;
11911 *)
11912 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11913 ;;
11914 esac
11915 # Ok, now we have the path, separated by spaces, we can step through it
11916 # and add multilib dir if necessary.
11917 lt_tmp_lt_search_path_spec=
11918 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11919 for lt_sys_path in $lt_search_path_spec; do
11920 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11921 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11922 else
11923 test -d "$lt_sys_path" && \
11924 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11925 fi
11926 done
11927 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11928BEGIN {RS=" "; FS="/|\n";} {
11929 lt_foo="";
11930 lt_count=0;
11931 for (lt_i = NF; lt_i > 0; lt_i--) {
11932 if ($lt_i != "" && $lt_i != ".") {
11933 if ($lt_i == "..") {
11934 lt_count++;
11935 } else {
11936 if (lt_count == 0) {
11937 lt_foo="/" $lt_i lt_foo;
11938 } else {
11939 lt_count--;
11940 }
11941 }
11942 }
11943 }
11944 if (lt_foo != "") { lt_freq[lt_foo]++; }
11945 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11946}'`
11947 # AWK program above erroneously prepends '/' to C:/dos/paths
11948 # for these hosts.
11949 case $host_os in
11950 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11951 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11952 esac
11953 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11954else
11955 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11956fi
11957library_names_spec=
11958libname_spec='lib$name'
11959soname_spec=
11960shrext_cmds=".so"
11961postinstall_cmds=
11962postuninstall_cmds=
11963finish_cmds=
11964finish_eval=
11965shlibpath_var=
11966shlibpath_overrides_runpath=unknown
11967version_type=none
11968dynamic_linker="$host_os ld.so"
11969sys_lib_dlsearch_path_spec="/lib /usr/lib"
11970need_lib_prefix=unknown
11971hardcode_into_libs=no
11972
11973# when you set need_version to no, make sure it does not cause -set_version
11974# flags to be left without arguments
11975need_version=unknown
11976
11977case $host_os in
11978aix3*)
11979 version_type=linux
11980 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11981 shlibpath_var=LIBPATH
11982
11983 # AIX 3 has no versioning support, so we append a major version to the name.
11984 soname_spec='${libname}${release}${shared_ext}$major'
11985 ;;
11986
11987aix[4-9]*)
11988 version_type=linux
11989 need_lib_prefix=no
11990 need_version=no
11991 hardcode_into_libs=yes
11992 if test "$host_cpu" = ia64; then
11993 # AIX 5 supports IA64
11994 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11995 shlibpath_var=LD_LIBRARY_PATH
11996 else
11997 # With GCC up to 2.95.x, collect2 would create an import file
11998 # for dependence libraries. The import file would start with
11999 # the line `#! .'. This would cause the generated library to
12000 # depend on `.', always an invalid library. This was fixed in
12001 # development snapshots of GCC prior to 3.0.
12002 case $host_os in
12003 aix4 | aix4.[01] | aix4.[01].*)
12004 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12005 echo ' yes '
12006 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12007 :
12008 else
12009 can_build_shared=no
12010 fi
12011 ;;
12012 esac
12013 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12014 # soname into executable. Probably we can add versioning support to
12015 # collect2, so additional links can be useful in future.
12016 if test "$aix_use_runtimelinking" = yes; then
12017 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12018 # instead of lib<name>.a to let people know that these are not
12019 # typical AIX shared libraries.
12020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12021 else
12022 # We preserve .a as extension for shared libraries through AIX4.2
12023 # and later when we are not doing run time linking.
12024 library_names_spec='${libname}${release}.a $libname.a'
12025 soname_spec='${libname}${release}${shared_ext}$major'
12026 fi
12027 shlibpath_var=LIBPATH
12028 fi
12029 ;;
12030
12031amigaos*)
12032 case $host_cpu in
12033 powerpc)
12034 # Since July 2007 AmigaOS4 officially supports .so libraries.
12035 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12037 ;;
12038 m68k)
12039 library_names_spec='$libname.ixlibrary $libname.a'
12040 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12041 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
12042 ;;
12043 esac
12044 ;;
12045
12046beos*)
12047 library_names_spec='${libname}${shared_ext}'
12048 dynamic_linker="$host_os ld.so"
12049 shlibpath_var=LIBRARY_PATH
12050 ;;
12051
12052bsdi[45]*)
12053 version_type=linux
12054 need_version=no
12055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12056 soname_spec='${libname}${release}${shared_ext}$major'
12057 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12058 shlibpath_var=LD_LIBRARY_PATH
12059 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12060 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12061 # the default ld.so.conf also contains /usr/contrib/lib and
12062 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12063 # libtool to hard-code these into programs
12064 ;;
12065
12066cygwin* | mingw* | pw32* | cegcc*)
12067 version_type=windows
12068 shrext_cmds=".dll"
12069 need_version=no
12070 need_lib_prefix=no
12071
12072 case $GCC,$cc_basename in
12073 yes,*)
12074 # gcc
12075 library_names_spec='$libname.dll.a'
12076 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12077 postinstall_cmds='base_file=`basename \${file}`~
12078 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12079 dldir=$destdir/`dirname \$dlpath`~
12080 test -d \$dldir || mkdir -p \$dldir~
12081 $install_prog $dir/$dlname \$dldir/$dlname~
12082 chmod a+x \$dldir/$dlname~
12083 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12084 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12085 fi'
12086 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12087 dlpath=$dir/\$dldll~
12088 $RM \$dlpath'
12089 shlibpath_overrides_runpath=yes
12090
12091 case $host_os in
12092 cygwin*)
12093 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12094 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12095
12096 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12097 ;;
12098 mingw* | cegcc*)
12099 # MinGW DLLs use traditional 'lib' prefix
12100 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12101 ;;
12102 pw32*)
12103 # pw32 DLLs use 'pw' prefix rather than 'lib'
12104 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12105 ;;
12106 esac
12107 dynamic_linker='Win32 ld.exe'
12108 ;;
12109
12110 *,cl*)
12111 # Native MSVC
12112 libname_spec='$name'
12113 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12114 library_names_spec='${libname}.dll.lib'
12115
12116 case $build_os in
12117 mingw*)
12118 sys_lib_search_path_spec=
12119 lt_save_ifs=$IFS
12120 IFS=';'
12121 for lt_path in $LIB
12122 do
12123 IFS=$lt_save_ifs
12124 # Let DOS variable expansion print the short 8.3 style file name.
12125 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12126 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12127 done
12128 IFS=$lt_save_ifs
12129 # Convert to MSYS style.
12130 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12131 ;;
12132 cygwin*)
12133 # Convert to unix form, then to dos form, then back to unix form
12134 # but this time dos style (no spaces!) so that the unix form looks
12135 # like /cygdrive/c/PROGRA~1:/cygdr...
12136 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12137 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12138 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12139 ;;
12140 *)
12141 sys_lib_search_path_spec="$LIB"
12142 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12143 # It is most probably a Windows format PATH.
12144 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12145 else
12146 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12147 fi
12148 # FIXME: find the short name or the path components, as spaces are
12149 # common. (e.g. "Program Files" -> "PROGRA~1")
12150 ;;
12151 esac
12152
12153 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12154 postinstall_cmds='base_file=`basename \${file}`~
12155 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12156 dldir=$destdir/`dirname \$dlpath`~
12157 test -d \$dldir || mkdir -p \$dldir~
12158 $install_prog $dir/$dlname \$dldir/$dlname'
12159 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12160 dlpath=$dir/\$dldll~
12161 $RM \$dlpath'
12162 shlibpath_overrides_runpath=yes
12163 dynamic_linker='Win32 link.exe'
12164 ;;
12165
12166 *)
12167 # Assume MSVC wrapper
12168 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12169 dynamic_linker='Win32 ld.exe'
12170 ;;
12171 esac
12172 # FIXME: first we should search . and the directory the executable is in
12173 shlibpath_var=PATH
12174 ;;
12175
12176darwin* | rhapsody*)
12177 dynamic_linker="$host_os dyld"
12178 version_type=darwin
12179 need_lib_prefix=no
12180 need_version=no
12181 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12182 soname_spec='${libname}${release}${major}$shared_ext'
12183 shlibpath_overrides_runpath=yes
12184 shlibpath_var=DYLD_LIBRARY_PATH
12185 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12186
12187 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12188 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12189 ;;
12190
12191dgux*)
12192 version_type=linux
12193 need_lib_prefix=no
12194 need_version=no
12195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12196 soname_spec='${libname}${release}${shared_ext}$major'
12197 shlibpath_var=LD_LIBRARY_PATH
12198 ;;
12199
12200freebsd1*)
12201 dynamic_linker=no
12202 ;;
12203
12204freebsd* | dragonfly*)
12205 # DragonFly does not have aout. When/if they implement a new
12206 # versioning mechanism, adjust this.
12207 if test -x /usr/bin/objformat; then
12208 objformat=`/usr/bin/objformat`
12209 else
12210 case $host_os in
12211 freebsd[123]*) objformat=aout ;;
12212 *) objformat=elf ;;
12213 esac
12214 fi
12215 version_type=freebsd-$objformat
12216 case $version_type in
12217 freebsd-elf*)
12218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12219 need_version=no
12220 need_lib_prefix=no
12221 ;;
12222 freebsd-*)
12223 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12224 need_version=yes
12225 ;;
12226 esac
12227 shlibpath_var=LD_LIBRARY_PATH
12228 case $host_os in
12229 freebsd2*)
12230 shlibpath_overrides_runpath=yes
12231 ;;
12232 freebsd3.[01]* | freebsdelf3.[01]*)
12233 shlibpath_overrides_runpath=yes
12234 hardcode_into_libs=yes
12235 ;;
12236 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12237 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12238 shlibpath_overrides_runpath=no
12239 hardcode_into_libs=yes
12240 ;;
12241 *) # from 4.6 on, and DragonFly
12242 shlibpath_overrides_runpath=yes
12243 hardcode_into_libs=yes
12244 ;;
12245 esac
12246 ;;
12247
12248gnu*)
12249 version_type=linux
12250 need_lib_prefix=no
12251 need_version=no
12252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12253 soname_spec='${libname}${release}${shared_ext}$major'
12254 shlibpath_var=LD_LIBRARY_PATH
12255 shlibpath_overrides_runpath=no
12256 hardcode_into_libs=yes
12257 ;;
12258
12259haiku*)
12260 version_type=linux
12261 need_lib_prefix=no
12262 need_version=no
12263 dynamic_linker="$host_os runtime_loader"
12264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12265 soname_spec='${libname}${release}${shared_ext}$major'
12266 shlibpath_var=LIBRARY_PATH
12267 shlibpath_overrides_runpath=yes
12268 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12269 hardcode_into_libs=yes
12270 ;;
12271
12272hpux9* | hpux10* | hpux11*)
12273 # Give a soname corresponding to the major version so that dld.sl refuses to
12274 # link against other versions.
12275 version_type=sunos
12276 need_lib_prefix=no
12277 need_version=no
12278 case $host_cpu in
12279 ia64*)
12280 shrext_cmds='.so'
12281 hardcode_into_libs=yes
12282 dynamic_linker="$host_os dld.so"
12283 shlibpath_var=LD_LIBRARY_PATH
12284 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12286 soname_spec='${libname}${release}${shared_ext}$major'
12287 if test "X$HPUX_IA64_MODE" = X32; then
12288 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12289 else
12290 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12291 fi
12292 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12293 ;;
12294 hppa*64*)
12295 shrext_cmds='.sl'
12296 hardcode_into_libs=yes
12297 dynamic_linker="$host_os dld.sl"
12298 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12299 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12301 soname_spec='${libname}${release}${shared_ext}$major'
12302 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12303 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12304 ;;
12305 *)
12306 shrext_cmds='.sl'
12307 dynamic_linker="$host_os dld.sl"
12308 shlibpath_var=SHLIB_PATH
12309 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12311 soname_spec='${libname}${release}${shared_ext}$major'
12312 ;;
12313 esac
12314 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12315 postinstall_cmds='chmod 555 $lib'
12316 # or fails outright, so override atomically:
12317 install_override_mode=555
12318 ;;
12319
12320interix[3-9]*)
12321 version_type=linux
12322 need_lib_prefix=no
12323 need_version=no
12324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12325 soname_spec='${libname}${release}${shared_ext}$major'
12326 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12327 shlibpath_var=LD_LIBRARY_PATH
12328 shlibpath_overrides_runpath=no
12329 hardcode_into_libs=yes
12330 ;;
12331
12332irix5* | irix6* | nonstopux*)
12333 case $host_os in
12334 nonstopux*) version_type=nonstopux ;;
12335 *)
12336 if test "$lt_cv_prog_gnu_ld" = yes; then
12337 version_type=linux
12338 else
12339 version_type=irix
12340 fi ;;
12341 esac
12342 need_lib_prefix=no
12343 need_version=no
12344 soname_spec='${libname}${release}${shared_ext}$major'
12345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12346 case $host_os in
12347 irix5* | nonstopux*)
12348 libsuff= shlibsuff=
12349 ;;
12350 *)
12351 case $LD in # libtool.m4 will add one of these switches to LD
12352 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12353 libsuff= shlibsuff= libmagic=32-bit;;
12354 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12355 libsuff=32 shlibsuff=N32 libmagic=N32;;
12356 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12357 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12358 *) libsuff= shlibsuff= libmagic=never-match;;
12359 esac
12360 ;;
12361 esac
12362 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12363 shlibpath_overrides_runpath=no
12364 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12365 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12366 hardcode_into_libs=yes
12367 ;;
12368
12369# No shared lib support for Linux oldld, aout, or coff.
12370linux*oldld* | linux*aout* | linux*coff*)
12371 dynamic_linker=no
12372 ;;
12373
12374# This must be Linux ELF.
12375linux* | k*bsd*-gnu | kopensolaris*-gnu)
12376 version_type=linux
12377 need_lib_prefix=no
12378 need_version=no
12379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12380 soname_spec='${libname}${release}${shared_ext}$major'
12381 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12382 shlibpath_var=LD_LIBRARY_PATH
12383 shlibpath_overrides_runpath=no
12384
12385 # Some binutils ld are patched to set DT_RUNPATH
12386 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12387 $as_echo_n "(cached) " >&6
12388else
12389 lt_cv_shlibpath_overrides_runpath=no
12390 save_LDFLAGS=$LDFLAGS
12391 save_libdir=$libdir
12392 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12393 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12395/* end confdefs.h. */
12396
12397int
12398main ()
12399{
12400
12401 ;
12402 return 0;
12403}
12404_ACEOF
12405if ac_fn_c_try_link "$LINENO"; then :
12406 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12407 lt_cv_shlibpath_overrides_runpath=yes
12408fi
12409fi
12410rm -f core conftest.err conftest.$ac_objext \
12411 conftest$ac_exeext conftest.$ac_ext
12412 LDFLAGS=$save_LDFLAGS
12413 libdir=$save_libdir
12414
12415fi
12416
12417 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12418
12419 # This implies no fast_install, which is unacceptable.
12420 # Some rework will be needed to allow for fast_install
12421 # before this can be enabled.
12422 hardcode_into_libs=yes
12423
12424 # Append ld.so.conf contents to the search path
12425 if test -f /etc/ld.so.conf; then
12426 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12427 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12428 fi
12429
12430 # We used to test for /lib/ld.so.1 and disable shared libraries on
12431 # powerpc, because MkLinux only supported shared libraries with the
12432 # GNU dynamic linker. Since this was broken with cross compilers,
12433 # most powerpc-linux boxes support dynamic linking these days and
12434 # people can always --disable-shared, the test was removed, and we
12435 # assume the GNU/Linux dynamic linker is in use.
12436 dynamic_linker='GNU/Linux ld.so'
12437 ;;
12438
12439netbsdelf*-gnu)
12440 version_type=linux
12441 need_lib_prefix=no
12442 need_version=no
12443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12444 soname_spec='${libname}${release}${shared_ext}$major'
12445 shlibpath_var=LD_LIBRARY_PATH
12446 shlibpath_overrides_runpath=no
12447 hardcode_into_libs=yes
12448 dynamic_linker='NetBSD ld.elf_so'
12449 ;;
12450
12451netbsd*)
12452 version_type=sunos
12453 need_lib_prefix=no
12454 need_version=no
12455 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12458 dynamic_linker='NetBSD (a.out) ld.so'
12459 else
12460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12461 soname_spec='${libname}${release}${shared_ext}$major'
12462 dynamic_linker='NetBSD ld.elf_so'
12463 fi
12464 shlibpath_var=LD_LIBRARY_PATH
12465 shlibpath_overrides_runpath=yes
12466 hardcode_into_libs=yes
12467 ;;
12468
12469newsos6)
12470 version_type=linux
12471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12472 shlibpath_var=LD_LIBRARY_PATH
12473 shlibpath_overrides_runpath=yes
12474 ;;
12475
12476*nto* | *qnx*)
12477 version_type=qnx
12478 need_lib_prefix=no
12479 need_version=no
12480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12481 soname_spec='${libname}${release}${shared_ext}$major'
12482 shlibpath_var=LD_LIBRARY_PATH
12483 shlibpath_overrides_runpath=no
12484 hardcode_into_libs=yes
12485 dynamic_linker='ldqnx.so'
12486 ;;
12487
12488openbsd*)
12489 version_type=sunos
12490 sys_lib_dlsearch_path_spec="/usr/lib"
12491 need_lib_prefix=no
12492 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12493 case $host_os in
12494 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12495 *) need_version=no ;;
12496 esac
12497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12499 shlibpath_var=LD_LIBRARY_PATH
12500 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12501 case $host_os in
12502 openbsd2.[89] | openbsd2.[89].*)
12503 shlibpath_overrides_runpath=no
12504 ;;
12505 *)
12506 shlibpath_overrides_runpath=yes
12507 ;;
12508 esac
12509 else
12510 shlibpath_overrides_runpath=yes
12511 fi
12512 ;;
12513
12514os2*)
12515 libname_spec='$name'
12516 shrext_cmds=".dll"
12517 need_lib_prefix=no
12518 library_names_spec='$libname${shared_ext} $libname.a'
12519 dynamic_linker='OS/2 ld.exe'
12520 shlibpath_var=LIBPATH
12521 ;;
12522
12523osf3* | osf4* | osf5*)
12524 version_type=osf
12525 need_lib_prefix=no
12526 need_version=no
12527 soname_spec='${libname}${release}${shared_ext}$major'
12528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12529 shlibpath_var=LD_LIBRARY_PATH
12530 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12531 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12532 ;;
12533
12534rdos*)
12535 dynamic_linker=no
12536 ;;
12537
12538solaris*)
12539 version_type=linux
12540 need_lib_prefix=no
12541 need_version=no
12542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12543 soname_spec='${libname}${release}${shared_ext}$major'
12544 shlibpath_var=LD_LIBRARY_PATH
12545 shlibpath_overrides_runpath=yes
12546 hardcode_into_libs=yes
12547 # ldd complains unless libraries are executable
12548 postinstall_cmds='chmod +x $lib'
12549 ;;
12550
12551sunos4*)
12552 version_type=sunos
12553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12554 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12555 shlibpath_var=LD_LIBRARY_PATH
12556 shlibpath_overrides_runpath=yes
12557 if test "$with_gnu_ld" = yes; then
12558 need_lib_prefix=no
12559 fi
12560 need_version=yes
12561 ;;
12562
12563sysv4 | sysv4.3*)
12564 version_type=linux
12565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12566 soname_spec='${libname}${release}${shared_ext}$major'
12567 shlibpath_var=LD_LIBRARY_PATH
12568 case $host_vendor in
12569 sni)
12570 shlibpath_overrides_runpath=no
12571 need_lib_prefix=no
12572 runpath_var=LD_RUN_PATH
12573 ;;
12574 siemens)
12575 need_lib_prefix=no
12576 ;;
12577 motorola)
12578 need_lib_prefix=no
12579 need_version=no
12580 shlibpath_overrides_runpath=no
12581 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12582 ;;
12583 esac
12584 ;;
12585
12586sysv4*MP*)
12587 if test -d /usr/nec ;then
12588 version_type=linux
12589 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12590 soname_spec='$libname${shared_ext}.$major'
12591 shlibpath_var=LD_LIBRARY_PATH
12592 fi
12593 ;;
12594
12595sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12596 version_type=freebsd-elf
12597 need_lib_prefix=no
12598 need_version=no
12599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12600 soname_spec='${libname}${release}${shared_ext}$major'
12601 shlibpath_var=LD_LIBRARY_PATH
12602 shlibpath_overrides_runpath=yes
12603 hardcode_into_libs=yes
12604 if test "$with_gnu_ld" = yes; then
12605 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12606 else
12607 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12608 case $host_os in
12609 sco3.2v5*)
12610 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12611 ;;
12612 esac
12613 fi
12614 sys_lib_dlsearch_path_spec='/usr/lib'
12615 ;;
12616
12617tpf*)
12618 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12619 version_type=linux
12620 need_lib_prefix=no
12621 need_version=no
12622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12623 shlibpath_var=LD_LIBRARY_PATH
12624 shlibpath_overrides_runpath=no
12625 hardcode_into_libs=yes
12626 ;;
12627
12628uts4*)
12629 version_type=linux
12630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12631 soname_spec='${libname}${release}${shared_ext}$major'
12632 shlibpath_var=LD_LIBRARY_PATH
12633 ;;
12634
12635*)
12636 dynamic_linker=no
12637 ;;
12638esac
12639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12640$as_echo "$dynamic_linker" >&6; }
12641test "$dynamic_linker" = no && can_build_shared=no
12642
12643variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12644if test "$GCC" = yes; then
12645 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12646fi
12647
12648if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12649 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12650fi
12651if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12652 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12653fi
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12747$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12748hardcode_action=
12749if test -n "$hardcode_libdir_flag_spec" ||
12750 test -n "$runpath_var" ||
12751 test "X$hardcode_automatic" = "Xyes" ; then
12752
12753 # We can hardcode non-existent directories.
12754 if test "$hardcode_direct" != no &&
12755 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12756 # have to relink, otherwise we might link with an installed library
12757 # when we should be linking with a yet-to-be-installed one
12758 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12759 test "$hardcode_minus_L" != no; then
12760 # Linking always hardcodes the temporary library directory.
12761 hardcode_action=relink
12762 else
12763 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12764 hardcode_action=immediate
12765 fi
12766else
12767 # We cannot hardcode anything, or else we can only hardcode existing
12768 # directories.
12769 hardcode_action=unsupported
12770fi
12771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12772$as_echo "$hardcode_action" >&6; }
12773
12774if test "$hardcode_action" = relink ||
12775 test "$inherit_rpath" = yes; then
12776 # Fast installation is not supported
12777 enable_fast_install=no
12778elif test "$shlibpath_overrides_runpath" = yes ||
12779 test "$enable_shared" = no; then
12780 # Fast installation is not necessary
12781 enable_fast_install=needless
12782fi
12783
12784
12785
12786
12787
12788
12789 if test "x$enable_dlopen" != xyes; then
12790 enable_dlopen=unknown
12791 enable_dlopen_self=unknown
12792 enable_dlopen_self_static=unknown
12793else
12794 lt_cv_dlopen=no
12795 lt_cv_dlopen_libs=
12796
12797 case $host_os in
12798 beos*)
12799 lt_cv_dlopen="load_add_on"
12800 lt_cv_dlopen_libs=
12801 lt_cv_dlopen_self=yes
12802 ;;
12803
12804 mingw* | pw32* | cegcc*)
12805 lt_cv_dlopen="LoadLibrary"
12806 lt_cv_dlopen_libs=
12807 ;;
12808
12809 cygwin*)
12810 lt_cv_dlopen="dlopen"
12811 lt_cv_dlopen_libs=
12812 ;;
12813
12814 darwin*)
12815 # if libdl is installed we need to link against it
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12817$as_echo_n "checking for dlopen in -ldl... " >&6; }
12818if ${ac_cv_lib_dl_dlopen+:} false; then :
12819 $as_echo_n "(cached) " >&6
12820else
12821 ac_check_lib_save_LIBS=$LIBS
12822LIBS="-ldl $LIBS"
12823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12824/* end confdefs.h. */
12825
12826/* Override any GCC internal prototype to avoid an error.
12827 Use char because int might match the return type of a GCC
12828 builtin and then its argument prototype would still apply. */
12829#ifdef __cplusplus
12830extern "C"
12831#endif
12832char dlopen ();
12833int
12834main ()
12835{
12836return dlopen ();
12837 ;
12838 return 0;
12839}
12840_ACEOF
12841if ac_fn_c_try_link "$LINENO"; then :
12842 ac_cv_lib_dl_dlopen=yes
12843else
12844 ac_cv_lib_dl_dlopen=no
12845fi
12846rm -f core conftest.err conftest.$ac_objext \
12847 conftest$ac_exeext conftest.$ac_ext
12848LIBS=$ac_check_lib_save_LIBS
12849fi
12850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12851$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12852if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12853 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12854else
12855
12856 lt_cv_dlopen="dyld"
12857 lt_cv_dlopen_libs=
12858 lt_cv_dlopen_self=yes
12859
12860fi
12861
12862 ;;
12863
12864 *)
12865 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12866if test "x$ac_cv_func_shl_load" = xyes; then :
12867 lt_cv_dlopen="shl_load"
12868else
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12870$as_echo_n "checking for shl_load in -ldld... " >&6; }
12871if ${ac_cv_lib_dld_shl_load+:} false; then :
12872 $as_echo_n "(cached) " >&6
12873else
12874 ac_check_lib_save_LIBS=$LIBS
12875LIBS="-ldld $LIBS"
12876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877/* end confdefs.h. */
12878
12879/* Override any GCC internal prototype to avoid an error.
12880 Use char because int might match the return type of a GCC
12881 builtin and then its argument prototype would still apply. */
12882#ifdef __cplusplus
12883extern "C"
12884#endif
12885char shl_load ();
12886int
12887main ()
12888{
12889return shl_load ();
12890 ;
12891 return 0;
12892}
12893_ACEOF
12894if ac_fn_c_try_link "$LINENO"; then :
12895 ac_cv_lib_dld_shl_load=yes
12896else
12897 ac_cv_lib_dld_shl_load=no
12898fi
12899rm -f core conftest.err conftest.$ac_objext \
12900 conftest$ac_exeext conftest.$ac_ext
12901LIBS=$ac_check_lib_save_LIBS
12902fi
12903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12904$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12905if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12906 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12907else
12908 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12909if test "x$ac_cv_func_dlopen" = xyes; then :
12910 lt_cv_dlopen="dlopen"
12911else
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12913$as_echo_n "checking for dlopen in -ldl... " >&6; }
12914if ${ac_cv_lib_dl_dlopen+:} false; then :
12915 $as_echo_n "(cached) " >&6
12916else
12917 ac_check_lib_save_LIBS=$LIBS
12918LIBS="-ldl $LIBS"
12919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920/* end confdefs.h. */
12921
12922/* Override any GCC internal prototype to avoid an error.
12923 Use char because int might match the return type of a GCC
12924 builtin and then its argument prototype would still apply. */
12925#ifdef __cplusplus
12926extern "C"
12927#endif
12928char dlopen ();
12929int
12930main ()
12931{
12932return dlopen ();
12933 ;
12934 return 0;
12935}
12936_ACEOF
12937if ac_fn_c_try_link "$LINENO"; then :
12938 ac_cv_lib_dl_dlopen=yes
12939else
12940 ac_cv_lib_dl_dlopen=no
12941fi
12942rm -f core conftest.err conftest.$ac_objext \
12943 conftest$ac_exeext conftest.$ac_ext
12944LIBS=$ac_check_lib_save_LIBS
12945fi
12946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12947$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12948if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12949 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12950else
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12952$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12953if ${ac_cv_lib_svld_dlopen+:} false; then :
12954 $as_echo_n "(cached) " >&6
12955else
12956 ac_check_lib_save_LIBS=$LIBS
12957LIBS="-lsvld $LIBS"
12958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12959/* end confdefs.h. */
12960
12961/* Override any GCC internal prototype to avoid an error.
12962 Use char because int might match the return type of a GCC
12963 builtin and then its argument prototype would still apply. */
12964#ifdef __cplusplus
12965extern "C"
12966#endif
12967char dlopen ();
12968int
12969main ()
12970{
12971return dlopen ();
12972 ;
12973 return 0;
12974}
12975_ACEOF
12976if ac_fn_c_try_link "$LINENO"; then :
12977 ac_cv_lib_svld_dlopen=yes
12978else
12979 ac_cv_lib_svld_dlopen=no
12980fi
12981rm -f core conftest.err conftest.$ac_objext \
12982 conftest$ac_exeext conftest.$ac_ext
12983LIBS=$ac_check_lib_save_LIBS
12984fi
12985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12986$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12987if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12988 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12989else
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12991$as_echo_n "checking for dld_link in -ldld... " >&6; }
12992if ${ac_cv_lib_dld_dld_link+:} false; then :
12993 $as_echo_n "(cached) " >&6
12994else
12995 ac_check_lib_save_LIBS=$LIBS
12996LIBS="-ldld $LIBS"
12997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12998/* end confdefs.h. */
12999
13000/* Override any GCC internal prototype to avoid an error.
13001 Use char because int might match the return type of a GCC
13002 builtin and then its argument prototype would still apply. */
13003#ifdef __cplusplus
13004extern "C"
13005#endif
13006char dld_link ();
13007int
13008main ()
13009{
13010return dld_link ();
13011 ;
13012 return 0;
13013}
13014_ACEOF
13015if ac_fn_c_try_link "$LINENO"; then :
13016 ac_cv_lib_dld_dld_link=yes
13017else
13018 ac_cv_lib_dld_dld_link=no
13019fi
13020rm -f core conftest.err conftest.$ac_objext \
13021 conftest$ac_exeext conftest.$ac_ext
13022LIBS=$ac_check_lib_save_LIBS
13023fi
13024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13025$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13026if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13027 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13028fi
13029
13030
13031fi
13032
13033
13034fi
13035
13036
13037fi
13038
13039
13040fi
13041
13042
13043fi
13044
13045 ;;
13046 esac
13047
13048 if test "x$lt_cv_dlopen" != xno; then
13049 enable_dlopen=yes
13050 else
13051 enable_dlopen=no
13052 fi
13053
13054 case $lt_cv_dlopen in
13055 dlopen)
13056 save_CPPFLAGS="$CPPFLAGS"
13057 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13058
13059 save_LDFLAGS="$LDFLAGS"
13060 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13061
13062 save_LIBS="$LIBS"
13063 LIBS="$lt_cv_dlopen_libs $LIBS"
13064
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13066$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13067if ${lt_cv_dlopen_self+:} false; then :
13068 $as_echo_n "(cached) " >&6
13069else
13070 if test "$cross_compiling" = yes; then :
13071 lt_cv_dlopen_self=cross
13072else
13073 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13074 lt_status=$lt_dlunknown
13075 cat > conftest.$ac_ext <<_LT_EOF
13076#line $LINENO "configure"
13077#include "confdefs.h"
13078
13079#if HAVE_DLFCN_H
13080#include <dlfcn.h>
13081#endif
13082
13083#include <stdio.h>
13084
13085#ifdef RTLD_GLOBAL
13086# define LT_DLGLOBAL RTLD_GLOBAL
13087#else
13088# ifdef DL_GLOBAL
13089# define LT_DLGLOBAL DL_GLOBAL
13090# else
13091# define LT_DLGLOBAL 0
13092# endif
13093#endif
13094
13095/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13096 find out it does not work in some platform. */
13097#ifndef LT_DLLAZY_OR_NOW
13098# ifdef RTLD_LAZY
13099# define LT_DLLAZY_OR_NOW RTLD_LAZY
13100# else
13101# ifdef DL_LAZY
13102# define LT_DLLAZY_OR_NOW DL_LAZY
13103# else
13104# ifdef RTLD_NOW
13105# define LT_DLLAZY_OR_NOW RTLD_NOW
13106# else
13107# ifdef DL_NOW
13108# define LT_DLLAZY_OR_NOW DL_NOW
13109# else
13110# define LT_DLLAZY_OR_NOW 0
13111# endif
13112# endif
13113# endif
13114# endif
13115#endif
13116
13117/* When -fvisbility=hidden is used, assume the code has been annotated
13118 correspondingly for the symbols needed. */
13119#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13120int fnord () __attribute__((visibility("default")));
13121#endif
13122
13123int fnord () { return 42; }
13124int main ()
13125{
13126 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13127 int status = $lt_dlunknown;
13128
13129 if (self)
13130 {
13131 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13132 else
13133 {
13134 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13135 else puts (dlerror ());
13136 }
13137 /* dlclose (self); */
13138 }
13139 else
13140 puts (dlerror ());
13141
13142 return status;
13143}
13144_LT_EOF
13145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13146 (eval $ac_link) 2>&5
13147 ac_status=$?
13148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13149 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13150 (./conftest; exit; ) >&5 2>/dev/null
13151 lt_status=$?
13152 case x$lt_status in
13153 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13154 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13155 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13156 esac
13157 else :
13158 # compilation failed
13159 lt_cv_dlopen_self=no
13160 fi
13161fi
13162rm -fr conftest*
13163
13164
13165fi
13166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13167$as_echo "$lt_cv_dlopen_self" >&6; }
13168
13169 if test "x$lt_cv_dlopen_self" = xyes; then
13170 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13172$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13173if ${lt_cv_dlopen_self_static+:} false; then :
13174 $as_echo_n "(cached) " >&6
13175else
13176 if test "$cross_compiling" = yes; then :
13177 lt_cv_dlopen_self_static=cross
13178else
13179 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13180 lt_status=$lt_dlunknown
13181 cat > conftest.$ac_ext <<_LT_EOF
13182#line $LINENO "configure"
13183#include "confdefs.h"
13184
13185#if HAVE_DLFCN_H
13186#include <dlfcn.h>
13187#endif
13188
13189#include <stdio.h>
13190
13191#ifdef RTLD_GLOBAL
13192# define LT_DLGLOBAL RTLD_GLOBAL
13193#else
13194# ifdef DL_GLOBAL
13195# define LT_DLGLOBAL DL_GLOBAL
13196# else
13197# define LT_DLGLOBAL 0
13198# endif
13199#endif
13200
13201/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13202 find out it does not work in some platform. */
13203#ifndef LT_DLLAZY_OR_NOW
13204# ifdef RTLD_LAZY
13205# define LT_DLLAZY_OR_NOW RTLD_LAZY
13206# else
13207# ifdef DL_LAZY
13208# define LT_DLLAZY_OR_NOW DL_LAZY
13209# else
13210# ifdef RTLD_NOW
13211# define LT_DLLAZY_OR_NOW RTLD_NOW
13212# else
13213# ifdef DL_NOW
13214# define LT_DLLAZY_OR_NOW DL_NOW
13215# else
13216# define LT_DLLAZY_OR_NOW 0
13217# endif
13218# endif
13219# endif
13220# endif
13221#endif
13222
13223/* When -fvisbility=hidden is used, assume the code has been annotated
13224 correspondingly for the symbols needed. */
13225#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13226int fnord () __attribute__((visibility("default")));
13227#endif
13228
13229int fnord () { return 42; }
13230int main ()
13231{
13232 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13233 int status = $lt_dlunknown;
13234
13235 if (self)
13236 {
13237 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13238 else
13239 {
13240 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13241 else puts (dlerror ());
13242 }
13243 /* dlclose (self); */
13244 }
13245 else
13246 puts (dlerror ());
13247
13248 return status;
13249}
13250_LT_EOF
13251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13252 (eval $ac_link) 2>&5
13253 ac_status=$?
13254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13255 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13256 (./conftest; exit; ) >&5 2>/dev/null
13257 lt_status=$?
13258 case x$lt_status in
13259 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13260 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13261 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13262 esac
13263 else :
13264 # compilation failed
13265 lt_cv_dlopen_self_static=no
13266 fi
13267fi
13268rm -fr conftest*
13269
13270
13271fi
13272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13273$as_echo "$lt_cv_dlopen_self_static" >&6; }
13274 fi
13275
13276 CPPFLAGS="$save_CPPFLAGS"
13277 LDFLAGS="$save_LDFLAGS"
13278 LIBS="$save_LIBS"
13279 ;;
13280 esac
13281
13282 case $lt_cv_dlopen_self in
13283 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13284 *) enable_dlopen_self=unknown ;;
13285 esac
13286
13287 case $lt_cv_dlopen_self_static in
13288 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13289 *) enable_dlopen_self_static=unknown ;;
13290 esac
13291fi
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309striplib=
13310old_striplib=
13311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13312$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13313if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13314 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13315 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13317$as_echo "yes" >&6; }
13318else
13319# FIXME - insert some real tests, host_os isn't really good enough
13320 case $host_os in
13321 darwin*)
13322 if test -n "$STRIP" ; then
13323 striplib="$STRIP -x"
13324 old_striplib="$STRIP -S"
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13326$as_echo "yes" >&6; }
13327 else
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13329$as_echo "no" >&6; }
13330 fi
13331 ;;
13332 *)
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334$as_echo "no" >&6; }
13335 ;;
13336 esac
13337fi
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350 # Report which library types will actually be built
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13352$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13354$as_echo "$can_build_shared" >&6; }
13355
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13357$as_echo_n "checking whether to build shared libraries... " >&6; }
13358 test "$can_build_shared" = "no" && enable_shared=no
13359
13360 # On AIX, shared libraries and static libraries use the same namespace, and
13361 # are all built from PIC.
13362 case $host_os in
13363 aix3*)
13364 test "$enable_shared" = yes && enable_static=no
13365 if test -n "$RANLIB"; then
13366 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13367 postinstall_cmds='$RANLIB $lib'
13368 fi
13369 ;;
13370
13371 aix[4-9]*)
13372 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13373 test "$enable_shared" = yes && enable_static=no
13374 fi
13375 ;;
13376 esac
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13378$as_echo "$enable_shared" >&6; }
13379
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13381$as_echo_n "checking whether to build static libraries... " >&6; }
13382 # Make sure either enable_shared or enable_static is yes.
13383 test "$enable_shared" = yes || enable_static=yes
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13385$as_echo "$enable_static" >&6; }
13386
13387
13388
13389
13390fi
13391ac_ext=cpp
13392ac_cpp='$CXXCPP $CPPFLAGS'
13393ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13394ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13395ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13396
13397CC="$lt_save_CC"
13398
13399 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13400 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13401 (test "X$CXX" != "Xg++"))) ; then
13402 ac_ext=cpp
13403ac_cpp='$CXXCPP $CPPFLAGS'
13404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13408$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13409if test -z "$CXXCPP"; then
13410 if ${ac_cv_prog_CXXCPP+:} false; then :
13411 $as_echo_n "(cached) " >&6
13412else
13413 # Double quotes because CXXCPP needs to be expanded
13414 for CXXCPP in "$CXX -E" "/lib/cpp"
13415 do
13416 ac_preproc_ok=false
13417for ac_cxx_preproc_warn_flag in '' yes
13418do
13419 # Use a header file that comes with gcc, so configuring glibc
13420 # with a fresh cross-compiler works.
13421 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13422 # <limits.h> exists even on freestanding compilers.
13423 # On the NeXT, cc -E runs the code through the compiler's parser,
13424 # not just through cpp. "Syntax error" is here to catch this case.
13425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426/* end confdefs.h. */
13427@%:@ifdef __STDC__
13428@%:@ include <limits.h>
13429@%:@else
13430@%:@ include <assert.h>
13431@%:@endif
13432 Syntax error
13433_ACEOF
13434if ac_fn_cxx_try_cpp "$LINENO"; then :
13435
13436else
13437 # Broken: fails on valid input.
13438continue
13439fi
13440rm -f conftest.err conftest.i conftest.$ac_ext
13441
13442 # OK, works on sane cases. Now check whether nonexistent headers
13443 # can be detected and how.
13444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13445/* end confdefs.h. */
13446@%:@include <ac_nonexistent.h>
13447_ACEOF
13448if ac_fn_cxx_try_cpp "$LINENO"; then :
13449 # Broken: success on invalid input.
13450continue
13451else
13452 # Passes both tests.
13453ac_preproc_ok=:
13454break
13455fi
13456rm -f conftest.err conftest.i conftest.$ac_ext
13457
13458done
13459# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13460rm -f conftest.i conftest.err conftest.$ac_ext
13461if $ac_preproc_ok; then :
13462 break
13463fi
13464
13465 done
13466 ac_cv_prog_CXXCPP=$CXXCPP
13467
13468fi
13469 CXXCPP=$ac_cv_prog_CXXCPP
13470else
13471 ac_cv_prog_CXXCPP=$CXXCPP
13472fi
13473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13474$as_echo "$CXXCPP" >&6; }
13475ac_preproc_ok=false
13476for ac_cxx_preproc_warn_flag in '' yes
13477do
13478 # Use a header file that comes with gcc, so configuring glibc
13479 # with a fresh cross-compiler works.
13480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13481 # <limits.h> exists even on freestanding compilers.
13482 # On the NeXT, cc -E runs the code through the compiler's parser,
13483 # not just through cpp. "Syntax error" is here to catch this case.
13484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13485/* end confdefs.h. */
13486@%:@ifdef __STDC__
13487@%:@ include <limits.h>
13488@%:@else
13489@%:@ include <assert.h>
13490@%:@endif
13491 Syntax error
13492_ACEOF
13493if ac_fn_cxx_try_cpp "$LINENO"; then :
13494
13495else
13496 # Broken: fails on valid input.
13497continue
13498fi
13499rm -f conftest.err conftest.i conftest.$ac_ext
13500
13501 # OK, works on sane cases. Now check whether nonexistent headers
13502 # can be detected and how.
13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504/* end confdefs.h. */
13505@%:@include <ac_nonexistent.h>
13506_ACEOF
13507if ac_fn_cxx_try_cpp "$LINENO"; then :
13508 # Broken: success on invalid input.
13509continue
13510else
13511 # Passes both tests.
13512ac_preproc_ok=:
13513break
13514fi
13515rm -f conftest.err conftest.i conftest.$ac_ext
13516
13517done
13518# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13519rm -f conftest.i conftest.err conftest.$ac_ext
13520if $ac_preproc_ok; then :
13521
13522else
13523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13525as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13526See \`config.log' for more details" "$LINENO" 5; }
13527fi
13528
13529ac_ext=cpp
13530ac_cpp='$CXXCPP $CPPFLAGS'
13531ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13532ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13533ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13534
13535else
13536 _lt_caught_CXX_error=yes
13537fi
13538
13539ac_ext=cpp
13540ac_cpp='$CXXCPP $CPPFLAGS'
13541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13544
13545archive_cmds_need_lc_CXX=no
13546allow_undefined_flag_CXX=
13547always_export_symbols_CXX=no
13548archive_expsym_cmds_CXX=
13549compiler_needs_object_CXX=no
13550export_dynamic_flag_spec_CXX=
13551hardcode_direct_CXX=no
13552hardcode_direct_absolute_CXX=no
13553hardcode_libdir_flag_spec_CXX=
13554hardcode_libdir_flag_spec_ld_CXX=
13555hardcode_libdir_separator_CXX=
13556hardcode_minus_L_CXX=no
13557hardcode_shlibpath_var_CXX=unsupported
13558hardcode_automatic_CXX=no
13559inherit_rpath_CXX=no
13560module_cmds_CXX=
13561module_expsym_cmds_CXX=
13562link_all_deplibs_CXX=unknown
13563old_archive_cmds_CXX=$old_archive_cmds
13564reload_flag_CXX=$reload_flag
13565reload_cmds_CXX=$reload_cmds
13566no_undefined_flag_CXX=
13567whole_archive_flag_spec_CXX=
13568enable_shared_with_static_runtimes_CXX=no
13569
13570# Source file extension for C++ test sources.
13571ac_ext=cpp
13572
13573# Object file extension for compiled C++ test sources.
13574objext=o
13575objext_CXX=$objext
13576
13577# No sense in running all these tests if we already determined that
13578# the CXX compiler isn't working. Some variables (like enable_shared)
13579# are currently assumed to apply to all compilers on this platform,
13580# and will be corrupted by setting them based on a non-working compiler.
13581if test "$_lt_caught_CXX_error" != yes; then
13582 # Code to be used in simple compile tests
13583 lt_simple_compile_test_code="int some_variable = 0;"
13584
13585 # Code to be used in simple link tests
13586 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13587
13588 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13589
13590
13591
13592
13593
13594
13595# If no C compiler was specified, use CC.
13596LTCC=${LTCC-"$CC"}
13597
13598# If no C compiler flags were specified, use CFLAGS.
13599LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13600
13601# Allow CC to be a program name with arguments.
13602compiler=$CC
13603
13604
13605 # save warnings/boilerplate of simple test code
13606 ac_outfile=conftest.$ac_objext
13607echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13608eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13609_lt_compiler_boilerplate=`cat conftest.err`
13610$RM conftest*
13611
13612 ac_outfile=conftest.$ac_objext
13613echo "$lt_simple_link_test_code" >conftest.$ac_ext
13614eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13615_lt_linker_boilerplate=`cat conftest.err`
13616$RM -r conftest*
13617
13618
13619 # Allow CC to be a program name with arguments.
13620 lt_save_CC=$CC
13621 lt_save_CFLAGS=$CFLAGS
13622 lt_save_LD=$LD
13623 lt_save_GCC=$GCC
13624 GCC=$GXX
13625 lt_save_with_gnu_ld=$with_gnu_ld
13626 lt_save_path_LD=$lt_cv_path_LD
13627 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13628 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13629 else
13630 $as_unset lt_cv_prog_gnu_ld
13631 fi
13632 if test -n "${lt_cv_path_LDCXX+set}"; then
13633 lt_cv_path_LD=$lt_cv_path_LDCXX
13634 else
13635 $as_unset lt_cv_path_LD
13636 fi
13637 test -z "${LDCXX+set}" || LD=$LDCXX
13638 CC=${CXX-"c++"}
13639 CFLAGS=$CXXFLAGS
13640 compiler=$CC
13641 compiler_CXX=$CC
13642 for cc_temp in $compiler""; do
13643 case $cc_temp in
13644 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13645 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13646 \-*) ;;
13647 *) break;;
13648 esac
13649done
13650cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13651
13652
13653 if test -n "$compiler"; then
13654 # We don't want -fno-exception when compiling C++ code, so set the
13655 # no_builtin_flag separately
13656 if test "$GXX" = yes; then
13657 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13658 else
13659 lt_prog_compiler_no_builtin_flag_CXX=
13660 fi
13661
13662 if test "$GXX" = yes; then
13663 # Set up default GNU C++ configuration
13664
13665
13666
13667@%:@ Check whether --with-gnu-ld was given.
13668if test "${with_gnu_ld+set}" = set; then :
13669 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13670else
13671 with_gnu_ld=no
13672fi
13673
13674ac_prog=ld
13675if test "$GCC" = yes; then
13676 # Check if gcc -print-prog-name=ld gives a path.
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13678$as_echo_n "checking for ld used by $CC... " >&6; }
13679 case $host in
13680 *-*-mingw*)
13681 # gcc leaves a trailing carriage return which upsets mingw
13682 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13683 *)
13684 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13685 esac
13686 case $ac_prog in
13687 # Accept absolute paths.
13688 [\\/]* | ?:[\\/]*)
13689 re_direlt='/[^/][^/]*/\.\./'
13690 # Canonicalize the pathname of ld
13691 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13692 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13693 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13694 done
13695 test -z "$LD" && LD="$ac_prog"
13696 ;;
13697 "")
13698 # If it fails, then pretend we aren't using GCC.
13699 ac_prog=ld
13700 ;;
13701 *)
13702 # If it is relative, then search for the first ld in PATH.
13703 with_gnu_ld=unknown
13704 ;;
13705 esac
13706elif test "$with_gnu_ld" = yes; then
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13708$as_echo_n "checking for GNU ld... " >&6; }
13709else
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13711$as_echo_n "checking for non-GNU ld... " >&6; }
13712fi
13713if ${lt_cv_path_LD+:} false; then :
13714 $as_echo_n "(cached) " >&6
13715else
13716 if test -z "$LD"; then
13717 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13718 for ac_dir in $PATH; do
13719 IFS="$lt_save_ifs"
13720 test -z "$ac_dir" && ac_dir=.
13721 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13722 lt_cv_path_LD="$ac_dir/$ac_prog"
13723 # Check to see if the program is GNU ld. I'd rather use --version,
13724 # but apparently some variants of GNU ld only accept -v.
13725 # Break only if it was the GNU/non-GNU ld that we prefer.
13726 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13727 *GNU* | *'with BFD'*)
13728 test "$with_gnu_ld" != no && break
13729 ;;
13730 *)
13731 test "$with_gnu_ld" != yes && break
13732 ;;
13733 esac
13734 fi
13735 done
13736 IFS="$lt_save_ifs"
13737else
13738 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13739fi
13740fi
13741
13742LD="$lt_cv_path_LD"
13743if test -n "$LD"; then
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13745$as_echo "$LD" >&6; }
13746else
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13748$as_echo "no" >&6; }
13749fi
13750test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13752$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13753if ${lt_cv_prog_gnu_ld+:} false; then :
13754 $as_echo_n "(cached) " >&6
13755else
13756 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13757case `$LD -v 2>&1 </dev/null` in
13758*GNU* | *'with BFD'*)
13759 lt_cv_prog_gnu_ld=yes
13760 ;;
13761*)
13762 lt_cv_prog_gnu_ld=no
13763 ;;
13764esac
13765fi
13766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13767$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13768with_gnu_ld=$lt_cv_prog_gnu_ld
13769
13770
13771
13772
13773
13774
13775
13776 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13777 # archiving commands below assume that GNU ld is being used.
13778 if test "$with_gnu_ld" = yes; then
13779 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13780 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13781
13782 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13783 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13784
13785 # If archive_cmds runs LD, not CC, wlarc should be empty
13786 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13787 # investigate it a little bit more. (MM)
13788 wlarc='${wl}'
13789
13790 # ancient GNU ld didn't support --whole-archive et. al.
13791 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13792 $GREP 'no-whole-archive' > /dev/null; then
13793 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13794 else
13795 whole_archive_flag_spec_CXX=
13796 fi
13797 else
13798 with_gnu_ld=no
13799 wlarc=
13800
13801 # A generic and very simple default shared library creation
13802 # command for GNU C++ for the case where it uses the native
13803 # linker, instead of GNU ld. If possible, this setting should
13804 # overridden to take advantage of the native linker features on
13805 # the platform it is being used on.
13806 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13807 fi
13808
13809 # Commands to make compiler produce verbose output that lists
13810 # what "hidden" libraries, object files and flags are used when
13811 # linking a shared library.
13812 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13813
13814 else
13815 GXX=no
13816 with_gnu_ld=no
13817 wlarc=
13818 fi
13819
13820 # PORTME: fill in a description of your system's C++ link characteristics
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13822$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13823 ld_shlibs_CXX=yes
13824 case $host_os in
13825 aix3*)
13826 # FIXME: insert proper C++ library support
13827 ld_shlibs_CXX=no
13828 ;;
13829 aix[4-9]*)
13830 if test "$host_cpu" = ia64; then
13831 # On IA64, the linker does run time linking by default, so we don't
13832 # have to do anything special.
13833 aix_use_runtimelinking=no
13834 exp_sym_flag='-Bexport'
13835 no_entry_flag=""
13836 else
13837 aix_use_runtimelinking=no
13838
13839 # Test if we are trying to use run time linking or normal
13840 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13841 # need to do runtime linking.
13842 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13843 for ld_flag in $LDFLAGS; do
13844 case $ld_flag in
13845 *-brtl*)
13846 aix_use_runtimelinking=yes
13847 break
13848 ;;
13849 esac
13850 done
13851 ;;
13852 esac
13853
13854 exp_sym_flag='-bexport'
13855 no_entry_flag='-bnoentry'
13856 fi
13857
13858 # When large executables or shared objects are built, AIX ld can
13859 # have problems creating the table of contents. If linking a library
13860 # or program results in "error TOC overflow" add -mminimal-toc to
13861 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13862 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13863
13864 archive_cmds_CXX=''
13865 hardcode_direct_CXX=yes
13866 hardcode_direct_absolute_CXX=yes
13867 hardcode_libdir_separator_CXX=':'
13868 link_all_deplibs_CXX=yes
13869 file_list_spec_CXX='${wl}-f,'
13870
13871 if test "$GXX" = yes; then
13872 case $host_os in aix4.[012]|aix4.[012].*)
13873 # We only want to do this on AIX 4.2 and lower, the check
13874 # below for broken collect2 doesn't work under 4.3+
13875 collect2name=`${CC} -print-prog-name=collect2`
13876 if test -f "$collect2name" &&
13877 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13878 then
13879 # We have reworked collect2
13880 :
13881 else
13882 # We have old collect2
13883 hardcode_direct_CXX=unsupported
13884 # It fails to find uninstalled libraries when the uninstalled
13885 # path is not listed in the libpath. Setting hardcode_minus_L
13886 # to unsupported forces relinking
13887 hardcode_minus_L_CXX=yes
13888 hardcode_libdir_flag_spec_CXX='-L$libdir'
13889 hardcode_libdir_separator_CXX=
13890 fi
13891 esac
13892 shared_flag='-shared'
13893 if test "$aix_use_runtimelinking" = yes; then
13894 shared_flag="$shared_flag "'${wl}-G'
13895 fi
13896 else
13897 # not using gcc
13898 if test "$host_cpu" = ia64; then
13899 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13900 # chokes on -Wl,-G. The following line is correct:
13901 shared_flag='-G'
13902 else
13903 if test "$aix_use_runtimelinking" = yes; then
13904 shared_flag='${wl}-G'
13905 else
13906 shared_flag='${wl}-bM:SRE'
13907 fi
13908 fi
13909 fi
13910
13911 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13912 # It seems that -bexpall does not export symbols beginning with
13913 # underscore (_), so it is better to generate a list of symbols to
13914 # export.
13915 always_export_symbols_CXX=yes
13916 if test "$aix_use_runtimelinking" = yes; then
13917 # Warning - without using the other runtime loading flags (-brtl),
13918 # -berok will link without error, but may produce a broken library.
13919 allow_undefined_flag_CXX='-berok'
13920 # Determine the default libpath from the value encoded in an empty
13921 # executable.
13922 if test "${lt_cv_aix_libpath+set}" = set; then
13923 aix_libpath=$lt_cv_aix_libpath
13924else
13925 if ${lt_cv_aix_libpath__CXX+:} false; then :
13926 $as_echo_n "(cached) " >&6
13927else
13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929/* end confdefs.h. */
13930
13931int
13932main ()
13933{
13934
13935 ;
13936 return 0;
13937}
13938_ACEOF
13939if ac_fn_cxx_try_link "$LINENO"; then :
13940
13941 lt_aix_libpath_sed='
13942 /Import File Strings/,/^$/ {
13943 /^0/ {
13944 s/^0 *\([^ ]*\) *$/\1/
13945 p
13946 }
13947 }'
13948 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13949 # Check for a 64-bit object if we didn't find anything.
13950 if test -z "$lt_cv_aix_libpath__CXX"; then
13951 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13952 fi
13953fi
13954rm -f core conftest.err conftest.$ac_objext \
13955 conftest$ac_exeext conftest.$ac_ext
13956 if test -z "$lt_cv_aix_libpath__CXX"; then
13957 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13958 fi
13959
13960fi
13961
13962 aix_libpath=$lt_cv_aix_libpath__CXX
13963fi
13964
13965 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13966
13967 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13968 else
13969 if test "$host_cpu" = ia64; then
13970 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13971 allow_undefined_flag_CXX="-z nodefs"
13972 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13973 else
13974 # Determine the default libpath from the value encoded in an
13975 # empty executable.
13976 if test "${lt_cv_aix_libpath+set}" = set; then
13977 aix_libpath=$lt_cv_aix_libpath
13978else
13979 if ${lt_cv_aix_libpath__CXX+:} false; then :
13980 $as_echo_n "(cached) " >&6
13981else
13982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13983/* end confdefs.h. */
13984
13985int
13986main ()
13987{
13988
13989 ;
13990 return 0;
13991}
13992_ACEOF
13993if ac_fn_cxx_try_link "$LINENO"; then :
13994
13995 lt_aix_libpath_sed='
13996 /Import File Strings/,/^$/ {
13997 /^0/ {
13998 s/^0 *\([^ ]*\) *$/\1/
13999 p
14000 }
14001 }'
14002 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14003 # Check for a 64-bit object if we didn't find anything.
14004 if test -z "$lt_cv_aix_libpath__CXX"; then
14005 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14006 fi
14007fi
14008rm -f core conftest.err conftest.$ac_objext \
14009 conftest$ac_exeext conftest.$ac_ext
14010 if test -z "$lt_cv_aix_libpath__CXX"; then
14011 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14012 fi
14013
14014fi
14015
14016 aix_libpath=$lt_cv_aix_libpath__CXX
14017fi
14018
14019 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14020 # Warning - without using the other run time loading flags,
14021 # -berok will link without error, but may produce a broken library.
14022 no_undefined_flag_CXX=' ${wl}-bernotok'
14023 allow_undefined_flag_CXX=' ${wl}-berok'
14024 if test "$with_gnu_ld" = yes; then
14025 # We only use this code for GNU lds that support --whole-archive.
14026 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14027 else
14028 # Exported symbols can be pulled into shared objects from archives
14029 whole_archive_flag_spec_CXX='$convenience'
14030 fi
14031 archive_cmds_need_lc_CXX=yes
14032 # This is similar to how AIX traditionally builds its shared
14033 # libraries.
14034 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14035 fi
14036 fi
14037 ;;
14038
14039 beos*)
14040 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14041 allow_undefined_flag_CXX=unsupported
14042 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14043 # support --undefined. This deserves some investigation. FIXME
14044 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14045 else
14046 ld_shlibs_CXX=no
14047 fi
14048 ;;
14049
14050 chorus*)
14051 case $cc_basename in
14052 *)
14053 # FIXME: insert proper C++ library support
14054 ld_shlibs_CXX=no
14055 ;;
14056 esac
14057 ;;
14058
14059 cygwin* | mingw* | pw32* | cegcc*)
14060 case $GXX,$cc_basename in
14061 ,cl* | no,cl*)
14062 # Native MSVC
14063 # hardcode_libdir_flag_spec is actually meaningless, as there is
14064 # no search path for DLLs.
14065 hardcode_libdir_flag_spec_CXX=' '
14066 allow_undefined_flag_CXX=unsupported
14067 always_export_symbols_CXX=yes
14068 file_list_spec_CXX='@'
14069 # Tell ltmain to make .lib files, not .a files.
14070 libext=lib
14071 # Tell ltmain to make .dll files, not .so files.
14072 shrext_cmds=".dll"
14073 # FIXME: Setting linknames here is a bad hack.
14074 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14075 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14076 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14077 else
14078 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14079 fi~
14080 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14081 linknames='
14082 # The linker will not automatically build a static lib if we build a DLL.
14083 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14084 enable_shared_with_static_runtimes_CXX=yes
14085 # Don't use ranlib
14086 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14087 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14088 lt_tool_outputfile="@TOOL_OUTPUT@"~
14089 case $lt_outputfile in
14090 *.exe|*.EXE) ;;
14091 *)
14092 lt_outputfile="$lt_outputfile.exe"
14093 lt_tool_outputfile="$lt_tool_outputfile.exe"
14094 ;;
14095 esac~
14096 func_to_tool_file "$lt_outputfile"~
14097 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14098 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14099 $RM "$lt_outputfile.manifest";
14100 fi'
14101 ;;
14102 *)
14103 # g++
14104 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14105 # as there is no search path for DLLs.
14106 hardcode_libdir_flag_spec_CXX='-L$libdir'
14107 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14108 allow_undefined_flag_CXX=unsupported
14109 always_export_symbols_CXX=no
14110 enable_shared_with_static_runtimes_CXX=yes
14111
14112 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14113 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14114 # If the export-symbols file already is a .def file (1st line
14115 # is EXPORTS), use it as is; otherwise, prepend...
14116 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14117 cp $export_symbols $output_objdir/$soname.def;
14118 else
14119 echo EXPORTS > $output_objdir/$soname.def;
14120 cat $export_symbols >> $output_objdir/$soname.def;
14121 fi~
14122 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14123 else
14124 ld_shlibs_CXX=no
14125 fi
14126 ;;
14127 esac
14128 ;;
14129 darwin* | rhapsody*)
14130
14131
14132 archive_cmds_need_lc_CXX=no
14133 hardcode_direct_CXX=no
14134 hardcode_automatic_CXX=yes
14135 hardcode_shlibpath_var_CXX=unsupported
14136 if test "$lt_cv_ld_force_load" = "yes"; then
14137 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14138 else
14139 whole_archive_flag_spec_CXX=''
14140 fi
14141 link_all_deplibs_CXX=yes
14142 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14143 case $cc_basename in
14144 ifort*) _lt_dar_can_shared=yes ;;
14145 *) _lt_dar_can_shared=$GCC ;;
14146 esac
14147 if test "$_lt_dar_can_shared" = "yes"; then
14148 output_verbose_link_cmd=func_echo_all
14149 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14150 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14151 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14152 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14153 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14154 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${_lt_dsymutil}"
14155 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
14156 fi
14157
14158 else
14159 ld_shlibs_CXX=no
14160 fi
14161
14162 ;;
14163
14164 dgux*)
14165 case $cc_basename in
14166 ec++*)
14167 # FIXME: insert proper C++ library support
14168 ld_shlibs_CXX=no
14169 ;;
14170 ghcx*)
14171 # Green Hills C++ Compiler
14172 # FIXME: insert proper C++ library support
14173 ld_shlibs_CXX=no
14174 ;;
14175 *)
14176 # FIXME: insert proper C++ library support
14177 ld_shlibs_CXX=no
14178 ;;
14179 esac
14180 ;;
14181
14182 freebsd[12]*)
14183 # C++ shared libraries reported to be fairly broken before
14184 # switch to ELF
14185 ld_shlibs_CXX=no
14186 ;;
14187
14188 freebsd-elf*)
14189 archive_cmds_need_lc_CXX=no
14190 ;;
14191
14192 freebsd* | dragonfly*)
14193 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14194 # conventions
14195 ld_shlibs_CXX=yes
14196 ;;
14197
14198 gnu*)
14199 ;;
14200
14201 haiku*)
14202 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14203 link_all_deplibs_CXX=yes
14204 ;;
14205
14206 hpux9*)
14207 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14208 hardcode_libdir_separator_CXX=:
14209 export_dynamic_flag_spec_CXX='${wl}-E'
14210 hardcode_direct_CXX=yes
14211 hardcode_minus_L_CXX=yes # Not in the search PATH,
14212 # but as the default
14213 # location of the library.
14214
14215 case $cc_basename in
14216 CC*)
14217 # FIXME: insert proper C++ library support
14218 ld_shlibs_CXX=no
14219 ;;
14220 aCC*)
14221 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'
14222 # Commands to make compiler produce verbose output that lists
14223 # what "hidden" libraries, object files and flags are used when
14224 # linking a shared library.
14225 #
14226 # There doesn't appear to be a way to prevent this compiler from
14227 # explicitly linking system object files so we need to strip them
14228 # from the output so that they don't get included in the library
14229 # dependencies.
14230 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14231 ;;
14232 *)
14233 if test "$GXX" = yes; then
14234 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
14235 else
14236 # FIXME: insert proper C++ library support
14237 ld_shlibs_CXX=no
14238 fi
14239 ;;
14240 esac
14241 ;;
14242
14243 hpux10*|hpux11*)
14244 if test $with_gnu_ld = no; then
14245 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14246 hardcode_libdir_separator_CXX=:
14247
14248 case $host_cpu in
14249 hppa*64*|ia64*)
14250 ;;
14251 *)
14252 export_dynamic_flag_spec_CXX='${wl}-E'
14253 ;;
14254 esac
14255 fi
14256 case $host_cpu in
14257 hppa*64*|ia64*)
14258 hardcode_direct_CXX=no
14259 hardcode_shlibpath_var_CXX=no
14260 ;;
14261 *)
14262 hardcode_direct_CXX=yes
14263 hardcode_direct_absolute_CXX=yes
14264 hardcode_minus_L_CXX=yes # Not in the search PATH,
14265 # but as the default
14266 # location of the library.
14267 ;;
14268 esac
14269
14270 case $cc_basename in
14271 CC*)
14272 # FIXME: insert proper C++ library support
14273 ld_shlibs_CXX=no
14274 ;;
14275 aCC*)
14276 case $host_cpu in
14277 hppa*64*)
14278 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14279 ;;
14280 ia64*)
14281 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14282 ;;
14283 *)
14284 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14285 ;;
14286 esac
14287 # Commands to make compiler produce verbose output that lists
14288 # what "hidden" libraries, object files and flags are used when
14289 # linking a shared library.
14290 #
14291 # There doesn't appear to be a way to prevent this compiler from
14292 # explicitly linking system object files so we need to strip them
14293 # from the output so that they don't get included in the library
14294 # dependencies.
14295 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; func_echo_all "$list"'
14296 ;;
14297 *)
14298 if test "$GXX" = yes; then
14299 if test $with_gnu_ld = no; then
14300 case $host_cpu in
14301 hppa*64*)
14302 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14303 ;;
14304 ia64*)
14305 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14306 ;;
14307 *)
14308 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14309 ;;
14310 esac
14311 fi
14312 else
14313 # FIXME: insert proper C++ library support
14314 ld_shlibs_CXX=no
14315 fi
14316 ;;
14317 esac
14318 ;;
14319
14320 interix[3-9]*)
14321 hardcode_direct_CXX=no
14322 hardcode_shlibpath_var_CXX=no
14323 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14324 export_dynamic_flag_spec_CXX='${wl}-E'
14325 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14326 # Instead, shared libraries are loaded at an image base (0x10000000 by
14327 # default) and relocated if they conflict, which is a slow very memory
14328 # consuming and fragmenting process. To avoid this, we pick a random,
14329 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14330 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14331 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14332 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14333 ;;
14334 irix5* | irix6*)
14335 case $cc_basename in
14336 CC*)
14337 # SGI C++
14338 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14339
14340 # Archives containing C++ object files must be created using
14341 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14342 # necessary to make sure instantiated templates are included
14343 # in the archive.
14344 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14345 ;;
14346 *)
14347 if test "$GXX" = yes; then
14348 if test "$with_gnu_ld" = no; then
14349 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14350 else
14351 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14352 fi
14353 fi
14354 link_all_deplibs_CXX=yes
14355 ;;
14356 esac
14357 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14358 hardcode_libdir_separator_CXX=:
14359 inherit_rpath_CXX=yes
14360 ;;
14361
14362 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14363 case $cc_basename in
14364 KCC*)
14365 # Kuck and Associates, Inc. (KAI) C++ Compiler
14366
14367 # KCC will only create a shared library if the output file
14368 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14369 # to its proper name (with version) after linking.
14370 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'
14371 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'
14372 # Commands to make compiler produce verbose output that lists
14373 # what "hidden" libraries, object files and flags are used when
14374 # linking a shared library.
14375 #
14376 # There doesn't appear to be a way to prevent this compiler from
14377 # explicitly linking system object files so we need to strip them
14378 # from the output so that they don't get included in the library
14379 # dependencies.
14380 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; func_echo_all "$list"'
14381
14382 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14383 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14384
14385 # Archives containing C++ object files must be created using
14386 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14387 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14388 ;;
14389 icpc* | ecpc* )
14390 # Intel C++
14391 with_gnu_ld=yes
14392 # version 8.0 and above of icpc choke on multiply defined symbols
14393 # if we add $predep_objects and $postdep_objects, however 7.1 and
14394 # earlier do not add the objects themselves.
14395 case `$CC -V 2>&1` in
14396 *"Version 7."*)
14397 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14398 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'
14399 ;;
14400 *) # Version 8.0 or newer
14401 tmp_idyn=
14402 case $host_cpu in
14403 ia64*) tmp_idyn=' -i_dynamic';;
14404 esac
14405 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14406 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14407 ;;
14408 esac
14409 archive_cmds_need_lc_CXX=no
14410 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14411 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14412 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14413 ;;
14414 pgCC* | pgcpp*)
14415 # Portland Group C++ compiler
14416 case `$CC -V` in
14417 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14418 prelink_cmds_CXX='tpldir=Template.dir~
14419 rm -rf $tpldir~
14420 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14421 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14422 old_archive_cmds_CXX='tpldir=Template.dir~
14423 rm -rf $tpldir~
14424 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14425 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14426 $RANLIB $oldlib'
14427 archive_cmds_CXX='tpldir=Template.dir~
14428 rm -rf $tpldir~
14429 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14430 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14431 archive_expsym_cmds_CXX='tpldir=Template.dir~
14432 rm -rf $tpldir~
14433 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14434 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14435 ;;
14436 *) # Version 6 and above use weak symbols
14437 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14438 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14439 ;;
14440 esac
14441
14442 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14443 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14444 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14445 ;;
14446 cxx*)
14447 # Compaq C++
14448 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14449 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'
14450
14451 runpath_var=LD_RUN_PATH
14452 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14453 hardcode_libdir_separator_CXX=:
14454
14455 # Commands to make compiler produce verbose output that lists
14456 # what "hidden" libraries, object files and flags are used when
14457 # linking a shared library.
14458 #
14459 # There doesn't appear to be a way to prevent this compiler from
14460 # explicitly linking system object files so we need to strip them
14461 # from the output so that they don't get included in the library
14462 # dependencies.
14463 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
14464 ;;
14465 xl* | mpixl* | bgxl*)
14466 # IBM XL 8.0 on PPC, with GNU ld
14467 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14468 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14469 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14470 if test "x$supports_anon_versioning" = xyes; then
14471 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14472 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14473 echo "local: *; };" >> $output_objdir/$libname.ver~
14474 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14475 fi
14476 ;;
14477 *)
14478 case `$CC -V 2>&1 | sed 5q` in
14479 *Sun\ C*)
14480 # Sun C++ 5.9
14481 no_undefined_flag_CXX=' -zdefs'
14482 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14483 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14484 hardcode_libdir_flag_spec_CXX='-R$libdir'
14485 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14486 compiler_needs_object_CXX=yes
14487
14488 # Not sure whether something based on
14489 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14490 # would be better.
14491 output_verbose_link_cmd='func_echo_all'
14492
14493 # Archives containing C++ object files must be created using
14494 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14495 # necessary to make sure instantiated templates are included
14496 # in the archive.
14497 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14498 ;;
14499 esac
14500 ;;
14501 esac
14502 ;;
14503
14504 lynxos*)
14505 # FIXME: insert proper C++ library support
14506 ld_shlibs_CXX=no
14507 ;;
14508
14509 m88k*)
14510 # FIXME: insert proper C++ library support
14511 ld_shlibs_CXX=no
14512 ;;
14513
14514 mvs*)
14515 case $cc_basename in
14516 cxx*)
14517 # FIXME: insert proper C++ library support
14518 ld_shlibs_CXX=no
14519 ;;
14520 *)
14521 # FIXME: insert proper C++ library support
14522 ld_shlibs_CXX=no
14523 ;;
14524 esac
14525 ;;
14526
14527 netbsd*)
14528 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14529 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14530 wlarc=
14531 hardcode_libdir_flag_spec_CXX='-R$libdir'
14532 hardcode_direct_CXX=yes
14533 hardcode_shlibpath_var_CXX=no
14534 fi
14535 # Workaround some broken pre-1.5 toolchains
14536 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14537 ;;
14538
14539 *nto* | *qnx*)
14540 ld_shlibs_CXX=yes
14541 ;;
14542
14543 openbsd2*)
14544 # C++ shared libraries are fairly broken
14545 ld_shlibs_CXX=no
14546 ;;
14547
14548 openbsd*)
14549 if test -f /usr/libexec/ld.so; then
14550 hardcode_direct_CXX=yes
14551 hardcode_shlibpath_var_CXX=no
14552 hardcode_direct_absolute_CXX=yes
14553 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14554 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14555 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14556 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14557 export_dynamic_flag_spec_CXX='${wl}-E'
14558 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14559 fi
14560 output_verbose_link_cmd=func_echo_all
14561 else
14562 ld_shlibs_CXX=no
14563 fi
14564 ;;
14565
14566 osf3* | osf4* | osf5*)
14567 case $cc_basename in
14568 KCC*)
14569 # Kuck and Associates, Inc. (KAI) C++ Compiler
14570
14571 # KCC will only create a shared library if the output file
14572 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14573 # to its proper name (with version) after linking.
14574 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'
14575
14576 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14577 hardcode_libdir_separator_CXX=:
14578
14579 # Archives containing C++ object files must be created using
14580 # the KAI C++ compiler.
14581 case $host in
14582 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14583 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14584 esac
14585 ;;
14586 RCC*)
14587 # Rational C++ 2.4.1
14588 # FIXME: insert proper C++ library support
14589 ld_shlibs_CXX=no
14590 ;;
14591 cxx*)
14592 case $host in
14593 osf3*)
14594 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14595 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14596 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14597 ;;
14598 *)
14599 allow_undefined_flag_CXX=' -expect_unresolved \*'
14600 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14601 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14602 echo "-hidden">> $lib.exp~
14603 $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 ${output_objdir}/so_locations -o $lib~
14604 $RM $lib.exp'
14605 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14606 ;;
14607 esac
14608
14609 hardcode_libdir_separator_CXX=:
14610
14611 # Commands to make compiler produce verbose output that lists
14612 # what "hidden" libraries, object files and flags are used when
14613 # linking a shared library.
14614 #
14615 # There doesn't appear to be a way to prevent this compiler from
14616 # explicitly linking system object files so we need to strip them
14617 # from the output so that they don't get included in the library
14618 # dependencies.
14619 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
14620 ;;
14621 *)
14622 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14623 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14624 case $host in
14625 osf3*)
14626 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14627 ;;
14628 *)
14629 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14630 ;;
14631 esac
14632
14633 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14634 hardcode_libdir_separator_CXX=:
14635
14636 # Commands to make compiler produce verbose output that lists
14637 # what "hidden" libraries, object files and flags are used when
14638 # linking a shared library.
14639 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14640
14641 else
14642 # FIXME: insert proper C++ library support
14643 ld_shlibs_CXX=no
14644 fi
14645 ;;
14646 esac
14647 ;;
14648
14649 psos*)
14650 # FIXME: insert proper C++ library support
14651 ld_shlibs_CXX=no
14652 ;;
14653
14654 sunos4*)
14655 case $cc_basename in
14656 CC*)
14657 # Sun C++ 4.x
14658 # FIXME: insert proper C++ library support
14659 ld_shlibs_CXX=no
14660 ;;
14661 lcc*)
14662 # Lucid
14663 # FIXME: insert proper C++ library support
14664 ld_shlibs_CXX=no
14665 ;;
14666 *)
14667 # FIXME: insert proper C++ library support
14668 ld_shlibs_CXX=no
14669 ;;
14670 esac
14671 ;;
14672
14673 solaris*)
14674 case $cc_basename in
14675 CC* | sunCC*)
14676 # Sun C++ 4.2, 5.x and Centerline C++
14677 archive_cmds_need_lc_CXX=yes
14678 no_undefined_flag_CXX=' -zdefs'
14679 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14680 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14681 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14682
14683 hardcode_libdir_flag_spec_CXX='-R$libdir'
14684 hardcode_shlibpath_var_CXX=no
14685 case $host_os in
14686 solaris2.[0-5] | solaris2.[0-5].*) ;;
14687 *)
14688 # The compiler driver will combine and reorder linker options,
14689 # but understands `-z linker_flag'.
14690 # Supported since Solaris 2.6 (maybe 2.5.1?)
14691 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14692 ;;
14693 esac
14694 link_all_deplibs_CXX=yes
14695
14696 output_verbose_link_cmd='func_echo_all'
14697
14698 # Archives containing C++ object files must be created using
14699 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14700 # necessary to make sure instantiated templates are included
14701 # in the archive.
14702 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14703 ;;
14704 gcx*)
14705 # Green Hills C++ Compiler
14706 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14707
14708 # The C++ compiler must be used to create the archive.
14709 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14710 ;;
14711 *)
14712 # GNU C++ compiler with Solaris linker
14713 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14714 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14715 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14716 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14717 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14718 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14719
14720 # Commands to make compiler produce verbose output that lists
14721 # what "hidden" libraries, object files and flags are used when
14722 # linking a shared library.
14723 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14724 else
14725 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14726 # platform.
14727 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14728 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14729 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14730
14731 # Commands to make compiler produce verbose output that lists
14732 # what "hidden" libraries, object files and flags are used when
14733 # linking a shared library.
14734 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14735 fi
14736
14737 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14738 case $host_os in
14739 solaris2.[0-5] | solaris2.[0-5].*) ;;
14740 *)
14741 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14742 ;;
14743 esac
14744 fi
14745 ;;
14746 esac
14747 ;;
14748
14749 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14750 no_undefined_flag_CXX='${wl}-z,text'
14751 archive_cmds_need_lc_CXX=no
14752 hardcode_shlibpath_var_CXX=no
14753 runpath_var='LD_RUN_PATH'
14754
14755 case $cc_basename in
14756 CC*)
14757 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14758 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14759 ;;
14760 *)
14761 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14762 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14763 ;;
14764 esac
14765 ;;
14766
14767 sysv5* | sco3.2v5* | sco5v6*)
14768 # Note: We can NOT use -z defs as we might desire, because we do not
14769 # link with -lc, and that would cause any symbols used from libc to
14770 # always be unresolved, which means just about no library would
14771 # ever link correctly. If we're not using GNU ld we use -z text
14772 # though, which does catch some bad symbols but isn't as heavy-handed
14773 # as -z defs.
14774 no_undefined_flag_CXX='${wl}-z,text'
14775 allow_undefined_flag_CXX='${wl}-z,nodefs'
14776 archive_cmds_need_lc_CXX=no
14777 hardcode_shlibpath_var_CXX=no
14778 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14779 hardcode_libdir_separator_CXX=':'
14780 link_all_deplibs_CXX=yes
14781 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14782 runpath_var='LD_RUN_PATH'
14783
14784 case $cc_basename in
14785 CC*)
14786 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14787 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14788 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14789 '"$old_archive_cmds_CXX"
14790 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14791 '"$reload_cmds_CXX"
14792 ;;
14793 *)
14794 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14795 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14796 ;;
14797 esac
14798 ;;
14799
14800 tandem*)
14801 case $cc_basename in
14802 NCC*)
14803 # NonStop-UX NCC 3.20
14804 # FIXME: insert proper C++ library support
14805 ld_shlibs_CXX=no
14806 ;;
14807 *)
14808 # FIXME: insert proper C++ library support
14809 ld_shlibs_CXX=no
14810 ;;
14811 esac
14812 ;;
14813
14814 vxworks*)
14815 # FIXME: insert proper C++ library support
14816 ld_shlibs_CXX=no
14817 ;;
14818
14819 *)
14820 # FIXME: insert proper C++ library support
14821 ld_shlibs_CXX=no
14822 ;;
14823 esac
14824
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14826$as_echo "$ld_shlibs_CXX" >&6; }
14827 test "$ld_shlibs_CXX" = no && can_build_shared=no
14828
14829 GCC_CXX="$GXX"
14830 LD_CXX="$LD"
14831
14832 ## CAVEAT EMPTOR:
14833 ## There is no encapsulation within the following macros, do not change
14834 ## the running order or otherwise move them around unless you know exactly
14835 ## what you are doing...
14836 # Dependencies to place before and after the object being linked:
14837predep_objects_CXX=
14838postdep_objects_CXX=
14839predeps_CXX=
14840postdeps_CXX=
14841compiler_lib_search_path_CXX=
14842
14843cat > conftest.$ac_ext <<_LT_EOF
14844class Foo
14845{
14846public:
14847 Foo (void) { a = 0; }
14848private:
14849 int a;
14850};
14851_LT_EOF
14852
14853
14854_lt_libdeps_save_CFLAGS=$CFLAGS
14855case "$CC $CFLAGS " in #(
14856*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14857*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14858esac
14859
14860if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14861 (eval $ac_compile) 2>&5
14862 ac_status=$?
14863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14864 test $ac_status = 0; }; then
14865 # Parse the compiler output and extract the necessary
14866 # objects, libraries and library flags.
14867
14868 # Sentinel used to keep track of whether or not we are before
14869 # the conftest object file.
14870 pre_test_object_deps_done=no
14871
14872 for p in `eval "$output_verbose_link_cmd"`; do
14873 case ${prev}${p} in
14874
14875 -L* | -R* | -l*)
14876 # Some compilers place space between "-{L,R}" and the path.
14877 # Remove the space.
14878 if test $p = "-L" ||
14879 test $p = "-R"; then
14880 prev=$p
14881 continue
14882 fi
14883
14884 # Expand the sysroot to ease extracting the directories later.
14885 if test -z "$prev"; then
14886 case $p in
14887 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14888 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14889 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14890 esac
14891 fi
14892 case $p in
14893 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14894 esac
14895 if test "$pre_test_object_deps_done" = no; then
14896 case ${prev} in
14897 -L | -R)
14898 # Internal compiler library paths should come after those
14899 # provided the user. The postdeps already come after the
14900 # user supplied libs so there is no need to process them.
14901 if test -z "$compiler_lib_search_path_CXX"; then
14902 compiler_lib_search_path_CXX="${prev}${p}"
14903 else
14904 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14905 fi
14906 ;;
14907 # The "-l" case would never come before the object being
14908 # linked, so don't bother handling this case.
14909 esac
14910 else
14911 if test -z "$postdeps_CXX"; then
14912 postdeps_CXX="${prev}${p}"
14913 else
14914 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14915 fi
14916 fi
14917 prev=
14918 ;;
14919
14920 *.lto.$objext) ;; # Ignore GCC LTO objects
14921 *.$objext)
14922 # This assumes that the test object file only shows up
14923 # once in the compiler output.
14924 if test "$p" = "conftest.$objext"; then
14925 pre_test_object_deps_done=yes
14926 continue
14927 fi
14928
14929 if test "$pre_test_object_deps_done" = no; then
14930 if test -z "$predep_objects_CXX"; then
14931 predep_objects_CXX="$p"
14932 else
14933 predep_objects_CXX="$predep_objects_CXX $p"
14934 fi
14935 else
14936 if test -z "$postdep_objects_CXX"; then
14937 postdep_objects_CXX="$p"
14938 else
14939 postdep_objects_CXX="$postdep_objects_CXX $p"
14940 fi
14941 fi
14942 ;;
14943
14944 *) ;; # Ignore the rest.
14945
14946 esac
14947 done
14948
14949 # Clean up.
14950 rm -f a.out a.exe
14951else
14952 echo "libtool.m4: error: problem compiling CXX test program"
14953fi
14954
14955$RM -f confest.$objext
14956CFLAGS=$_lt_libdeps_save_CFLAGS
14957
14958# PORTME: override above test on systems where it is broken
14959case $host_os in
14960interix[3-9]*)
14961 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14962 # hack all around it, let's just trust "g++" to DTRT.
14963 predep_objects_CXX=
14964 postdep_objects_CXX=
14965 postdeps_CXX=
14966 ;;
14967
14968linux*)
14969 case `$CC -V 2>&1 | sed 5q` in
14970 *Sun\ C*)
14971 # Sun C++ 5.9
14972
14973 # The more standards-conforming stlport4 library is
14974 # incompatible with the Cstd library. Avoid specifying
14975 # it if it's in CXXFLAGS. Ignore libCrun as
14976 # -library=stlport4 depends on it.
14977 case " $CXX $CXXFLAGS " in
14978 *" -library=stlport4 "*)
14979 solaris_use_stlport4=yes
14980 ;;
14981 esac
14982
14983 if test "$solaris_use_stlport4" != yes; then
14984 postdeps_CXX='-library=Cstd -library=Crun'
14985 fi
14986 ;;
14987 esac
14988 ;;
14989
14990solaris*)
14991 case $cc_basename in
14992 CC* | sunCC*)
14993 # The more standards-conforming stlport4 library is
14994 # incompatible with the Cstd library. Avoid specifying
14995 # it if it's in CXXFLAGS. Ignore libCrun as
14996 # -library=stlport4 depends on it.
14997 case " $CXX $CXXFLAGS " in
14998 *" -library=stlport4 "*)
14999 solaris_use_stlport4=yes
15000 ;;
15001 esac
15002
15003 # Adding this requires a known-good setup of shared libraries for
15004 # Sun compiler versions before 5.6, else PIC objects from an old
15005 # archive will be linked into the output, leading to subtle bugs.
15006 if test "$solaris_use_stlport4" != yes; then
15007 postdeps_CXX='-library=Cstd -library=Crun'
15008 fi
15009 ;;
15010 esac
15011 ;;
15012esac
15013
15014
15015case " $postdeps_CXX " in
15016*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15017esac
15018 compiler_lib_search_dirs_CXX=
15019if test -n "${compiler_lib_search_path_CXX}"; then
15020 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15021fi
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053 lt_prog_compiler_wl_CXX=
15054lt_prog_compiler_pic_CXX=
15055lt_prog_compiler_static_CXX=
15056
15057
15058 # C++ specific cases for pic, static, wl, etc.
15059 if test "$GXX" = yes; then
15060 lt_prog_compiler_wl_CXX='-Wl,'
15061 lt_prog_compiler_static_CXX='-static'
15062
15063 case $host_os in
15064 aix*)
15065 # All AIX code is PIC.
15066 if test "$host_cpu" = ia64; then
15067 # AIX 5 now supports IA64 processor
15068 lt_prog_compiler_static_CXX='-Bstatic'
15069 fi
15070 ;;
15071
15072 amigaos*)
15073 case $host_cpu in
15074 powerpc)
15075 # see comment about AmigaOS4 .so support
15076 lt_prog_compiler_pic_CXX='-fPIC'
15077 ;;
15078 m68k)
15079 # FIXME: we need at least 68020 code to build shared libraries, but
15080 # adding the `-m68020' flag to GCC prevents building anything better,
15081 # like `-m68040'.
15082 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15083 ;;
15084 esac
15085 ;;
15086
15087 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15088 # PIC is the default for these OSes.
15089 ;;
15090 mingw* | cygwin* | os2* | pw32* | cegcc*)
15091 # This hack is so that the source file can tell whether it is being
15092 # built for inclusion in a dll (and should export symbols for example).
15093 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15094 # (--disable-auto-import) libraries
15095 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15096 ;;
15097 darwin* | rhapsody*)
15098 # PIC is the default on this platform
15099 # Common symbols not allowed in MH_DYLIB files
15100 lt_prog_compiler_pic_CXX='-fno-common'
15101 ;;
15102 *djgpp*)
15103 # DJGPP does not support shared libraries at all
15104 lt_prog_compiler_pic_CXX=
15105 ;;
15106 haiku*)
15107 # PIC is the default for Haiku.
15108 # The "-static" flag exists, but is broken.
15109 lt_prog_compiler_static_CXX=
15110 ;;
15111 interix[3-9]*)
15112 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15113 # Instead, we relocate shared libraries at runtime.
15114 ;;
15115 sysv4*MP*)
15116 if test -d /usr/nec; then
15117 lt_prog_compiler_pic_CXX=-Kconform_pic
15118 fi
15119 ;;
15120 hpux*)
15121 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15122 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15123 # sets the default TLS model and affects inlining.
15124 case $host_cpu in
15125 hppa*64*)
15126 ;;
15127 *)
15128 lt_prog_compiler_pic_CXX='-fPIC'
15129 ;;
15130 esac
15131 ;;
15132 *qnx* | *nto*)
15133 # QNX uses GNU C++, but need to define -shared option too, otherwise
15134 # it will coredump.
15135 lt_prog_compiler_pic_CXX='-fPIC -shared'
15136 ;;
15137 *)
15138 lt_prog_compiler_pic_CXX='-fPIC'
15139 ;;
15140 esac
15141 else
15142 case $host_os in
15143 aix[4-9]*)
15144 # All AIX code is PIC.
15145 if test "$host_cpu" = ia64; then
15146 # AIX 5 now supports IA64 processor
15147 lt_prog_compiler_static_CXX='-Bstatic'
15148 else
15149 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15150 fi
15151 ;;
15152 chorus*)
15153 case $cc_basename in
15154 cxch68*)
15155 # Green Hills C++ Compiler
15156 # _LT_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"
15157 ;;
15158 esac
15159 ;;
15160 mingw* | cygwin* | os2* | pw32* | cegcc*)
15161 # This hack is so that the source file can tell whether it is being
15162 # built for inclusion in a dll (and should export symbols for example).
15163 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15164 ;;
15165 dgux*)
15166 case $cc_basename in
15167 ec++*)
15168 lt_prog_compiler_pic_CXX='-KPIC'
15169 ;;
15170 ghcx*)
15171 # Green Hills C++ Compiler
15172 lt_prog_compiler_pic_CXX='-pic'
15173 ;;
15174 *)
15175 ;;
15176 esac
15177 ;;
15178 freebsd* | dragonfly*)
15179 # FreeBSD uses GNU C++
15180 ;;
15181 hpux9* | hpux10* | hpux11*)
15182 case $cc_basename in
15183 CC*)
15184 lt_prog_compiler_wl_CXX='-Wl,'
15185 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15186 if test "$host_cpu" != ia64; then
15187 lt_prog_compiler_pic_CXX='+Z'
15188 fi
15189 ;;
15190 aCC*)
15191 lt_prog_compiler_wl_CXX='-Wl,'
15192 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15193 case $host_cpu in
15194 hppa*64*|ia64*)
15195 # +Z the default
15196 ;;
15197 *)
15198 lt_prog_compiler_pic_CXX='+Z'
15199 ;;
15200 esac
15201 ;;
15202 *)
15203 ;;
15204 esac
15205 ;;
15206 interix*)
15207 # This is c89, which is MS Visual C++ (no shared libs)
15208 # Anyone wants to do a port?
15209 ;;
15210 irix5* | irix6* | nonstopux*)
15211 case $cc_basename in
15212 CC*)
15213 lt_prog_compiler_wl_CXX='-Wl,'
15214 lt_prog_compiler_static_CXX='-non_shared'
15215 # CC pic flag -KPIC is the default.
15216 ;;
15217 *)
15218 ;;
15219 esac
15220 ;;
15221 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15222 case $cc_basename in
15223 KCC*)
15224 # KAI C++ Compiler
15225 lt_prog_compiler_wl_CXX='--backend -Wl,'
15226 lt_prog_compiler_pic_CXX='-fPIC'
15227 ;;
15228 ecpc* )
15229 # old Intel C++ for x86_64 which still supported -KPIC.
15230 lt_prog_compiler_wl_CXX='-Wl,'
15231 lt_prog_compiler_pic_CXX='-KPIC'
15232 lt_prog_compiler_static_CXX='-static'
15233 ;;
15234 icpc* )
15235 # Intel C++, used to be incompatible with GCC.
15236 # ICC 10 doesn't accept -KPIC any more.
15237 lt_prog_compiler_wl_CXX='-Wl,'
15238 lt_prog_compiler_pic_CXX='-fPIC'
15239 lt_prog_compiler_static_CXX='-static'
15240 ;;
15241 pgCC* | pgcpp*)
15242 # Portland Group C++ compiler
15243 lt_prog_compiler_wl_CXX='-Wl,'
15244 lt_prog_compiler_pic_CXX='-fpic'
15245 lt_prog_compiler_static_CXX='-Bstatic'
15246 ;;
15247 cxx*)
15248 # Compaq C++
15249 # Make sure the PIC flag is empty. It appears that all Alpha
15250 # Linux and Compaq Tru64 Unix objects are PIC.
15251 lt_prog_compiler_pic_CXX=
15252 lt_prog_compiler_static_CXX='-non_shared'
15253 ;;
15254 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15255 # IBM XL 8.0, 9.0 on PPC and BlueGene
15256 lt_prog_compiler_wl_CXX='-Wl,'
15257 lt_prog_compiler_pic_CXX='-qpic'
15258 lt_prog_compiler_static_CXX='-qstaticlink'
15259 ;;
15260 *)
15261 case `$CC -V 2>&1 | sed 5q` in
15262 *Sun\ C*)
15263 # Sun C++ 5.9
15264 lt_prog_compiler_pic_CXX='-KPIC'
15265 lt_prog_compiler_static_CXX='-Bstatic'
15266 lt_prog_compiler_wl_CXX='-Qoption ld '
15267 ;;
15268 esac
15269 ;;
15270 esac
15271 ;;
15272 lynxos*)
15273 ;;
15274 m88k*)
15275 ;;
15276 mvs*)
15277 case $cc_basename in
15278 cxx*)
15279 lt_prog_compiler_pic_CXX='-W c,exportall'
15280 ;;
15281 *)
15282 ;;
15283 esac
15284 ;;
15285 netbsd* | netbsdelf*-gnu)
15286 ;;
15287 *qnx* | *nto*)
15288 # QNX uses GNU C++, but need to define -shared option too, otherwise
15289 # it will coredump.
15290 lt_prog_compiler_pic_CXX='-fPIC -shared'
15291 ;;
15292 osf3* | osf4* | osf5*)
15293 case $cc_basename in
15294 KCC*)
15295 lt_prog_compiler_wl_CXX='--backend -Wl,'
15296 ;;
15297 RCC*)
15298 # Rational C++ 2.4.1
15299 lt_prog_compiler_pic_CXX='-pic'
15300 ;;
15301 cxx*)
15302 # Digital/Compaq C++
15303 lt_prog_compiler_wl_CXX='-Wl,'
15304 # Make sure the PIC flag is empty. It appears that all Alpha
15305 # Linux and Compaq Tru64 Unix objects are PIC.
15306 lt_prog_compiler_pic_CXX=
15307 lt_prog_compiler_static_CXX='-non_shared'
15308 ;;
15309 *)
15310 ;;
15311 esac
15312 ;;
15313 psos*)
15314 ;;
15315 solaris*)
15316 case $cc_basename in
15317 CC* | sunCC*)
15318 # Sun C++ 4.2, 5.x and Centerline C++
15319 lt_prog_compiler_pic_CXX='-KPIC'
15320 lt_prog_compiler_static_CXX='-Bstatic'
15321 lt_prog_compiler_wl_CXX='-Qoption ld '
15322 ;;
15323 gcx*)
15324 # Green Hills C++ Compiler
15325 lt_prog_compiler_pic_CXX='-PIC'
15326 ;;
15327 *)
15328 ;;
15329 esac
15330 ;;
15331 sunos4*)
15332 case $cc_basename in
15333 CC*)
15334 # Sun C++ 4.x
15335 lt_prog_compiler_pic_CXX='-pic'
15336 lt_prog_compiler_static_CXX='-Bstatic'
15337 ;;
15338 lcc*)
15339 # Lucid
15340 lt_prog_compiler_pic_CXX='-pic'
15341 ;;
15342 *)
15343 ;;
15344 esac
15345 ;;
15346 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15347 case $cc_basename in
15348 CC*)
15349 lt_prog_compiler_wl_CXX='-Wl,'
15350 lt_prog_compiler_pic_CXX='-KPIC'
15351 lt_prog_compiler_static_CXX='-Bstatic'
15352 ;;
15353 esac
15354 ;;
15355 tandem*)
15356 case $cc_basename in
15357 NCC*)
15358 # NonStop-UX NCC 3.20
15359 lt_prog_compiler_pic_CXX='-KPIC'
15360 ;;
15361 *)
15362 ;;
15363 esac
15364 ;;
15365 vxworks*)
15366 ;;
15367 *)
15368 lt_prog_compiler_can_build_shared_CXX=no
15369 ;;
15370 esac
15371 fi
15372
15373case $host_os in
15374 # For platforms which do not support PIC, -DPIC is meaningless:
15375 *djgpp*)
15376 lt_prog_compiler_pic_CXX=
15377 ;;
15378 *)
15379 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
15380 ;;
15381esac
15382
15383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15384$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15385if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15386 $as_echo_n "(cached) " >&6
15387else
15388 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15389fi
15390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15391$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15392lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15393
15394#
15395# Check to make sure the PIC flag actually works.
15396#
15397if test -n "$lt_prog_compiler_pic_CXX"; then
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15399$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15400if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15401 $as_echo_n "(cached) " >&6
15402else
15403 lt_cv_prog_compiler_pic_works_CXX=no
15404 ac_outfile=conftest.$ac_objext
15405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15406 lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
15407 # Insert the option either (1) after the last *FLAGS variable, or
15408 # (2) before a word containing "conftest.", or (3) at the end.
15409 # Note that $ac_compile itself does not contain backslashes and begins
15410 # with a dollar sign (not a hyphen), so the echo should work correctly.
15411 # The option is referenced via a variable to avoid confusing sed.
15412 lt_compile=`echo "$ac_compile" | $SED \
15413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15415 -e 's:$: $lt_compiler_flag:'`
15416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15417 (eval "$lt_compile" 2>conftest.err)
15418 ac_status=$?
15419 cat conftest.err >&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 if (exit $ac_status) && test -s "$ac_outfile"; then
15422 # The compiler can only warn and ignore the option if not recognized
15423 # So say no if there are warnings other than the usual output.
15424 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15426 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15427 lt_cv_prog_compiler_pic_works_CXX=yes
15428 fi
15429 fi
15430 $RM conftest*
15431
15432fi
15433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15434$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15435
15436if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15437 case $lt_prog_compiler_pic_CXX in
15438 "" | " "*) ;;
15439 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15440 esac
15441else
15442 lt_prog_compiler_pic_CXX=
15443 lt_prog_compiler_can_build_shared_CXX=no
15444fi
15445
15446fi
15447
15448
15449
15450
15451
15452#
15453# Check to make sure the static flag actually works.
15454#
15455wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15457$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15458if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15459 $as_echo_n "(cached) " >&6
15460else
15461 lt_cv_prog_compiler_static_works_CXX=no
15462 save_LDFLAGS="$LDFLAGS"
15463 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15464 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15465 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15466 # The linker can only warn and ignore the option if not recognized
15467 # So say no if there are warnings
15468 if test -s conftest.err; then
15469 # Append any errors to the config.log.
15470 cat conftest.err 1>&5
15471 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15473 if diff conftest.exp conftest.er2 >/dev/null; then
15474 lt_cv_prog_compiler_static_works_CXX=yes
15475 fi
15476 else
15477 lt_cv_prog_compiler_static_works_CXX=yes
15478 fi
15479 fi
15480 $RM -r conftest*
15481 LDFLAGS="$save_LDFLAGS"
15482
15483fi
15484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15485$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15486
15487if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15488 :
15489else
15490 lt_prog_compiler_static_CXX=
15491fi
15492
15493
15494
15495
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15497$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15498if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15499 $as_echo_n "(cached) " >&6
15500else
15501 lt_cv_prog_compiler_c_o_CXX=no
15502 $RM -r conftest 2>/dev/null
15503 mkdir conftest
15504 cd conftest
15505 mkdir out
15506 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15507
15508 lt_compiler_flag="-o out/conftest2.$ac_objext"
15509 # Insert the option either (1) after the last *FLAGS variable, or
15510 # (2) before a word containing "conftest.", or (3) at the end.
15511 # Note that $ac_compile itself does not contain backslashes and begins
15512 # with a dollar sign (not a hyphen), so the echo should work correctly.
15513 lt_compile=`echo "$ac_compile" | $SED \
15514 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15515 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15516 -e 's:$: $lt_compiler_flag:'`
15517 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15518 (eval "$lt_compile" 2>out/conftest.err)
15519 ac_status=$?
15520 cat out/conftest.err >&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15523 then
15524 # The compiler can only warn and ignore the option if not recognized
15525 # So say no if there are warnings
15526 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15527 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15528 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15529 lt_cv_prog_compiler_c_o_CXX=yes
15530 fi
15531 fi
15532 chmod u+w . 2>&5
15533 $RM conftest*
15534 # SGI C++ compiler will create directory out/ii_files/ for
15535 # template instantiation
15536 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15537 $RM out/* && rmdir out
15538 cd ..
15539 $RM -r conftest
15540 $RM conftest*
15541
15542fi
15543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15544$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15545
15546
15547
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15549$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15550if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15551 $as_echo_n "(cached) " >&6
15552else
15553 lt_cv_prog_compiler_c_o_CXX=no
15554 $RM -r conftest 2>/dev/null
15555 mkdir conftest
15556 cd conftest
15557 mkdir out
15558 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15559
15560 lt_compiler_flag="-o out/conftest2.$ac_objext"
15561 # Insert the option either (1) after the last *FLAGS variable, or
15562 # (2) before a word containing "conftest.", or (3) at the end.
15563 # Note that $ac_compile itself does not contain backslashes and begins
15564 # with a dollar sign (not a hyphen), so the echo should work correctly.
15565 lt_compile=`echo "$ac_compile" | $SED \
15566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15568 -e 's:$: $lt_compiler_flag:'`
15569 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15570 (eval "$lt_compile" 2>out/conftest.err)
15571 ac_status=$?
15572 cat out/conftest.err >&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15575 then
15576 # The compiler can only warn and ignore the option if not recognized
15577 # So say no if there are warnings
15578 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15579 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15580 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15581 lt_cv_prog_compiler_c_o_CXX=yes
15582 fi
15583 fi
15584 chmod u+w . 2>&5
15585 $RM conftest*
15586 # SGI C++ compiler will create directory out/ii_files/ for
15587 # template instantiation
15588 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15589 $RM out/* && rmdir out
15590 cd ..
15591 $RM -r conftest
15592 $RM conftest*
15593
15594fi
15595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15596$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15597
15598
15599
15600
15601hard_links="nottested"
15602if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15603 # do not overwrite the value of need_locks provided by the user
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15605$as_echo_n "checking if we can lock with hard links... " >&6; }
15606 hard_links=yes
15607 $RM conftest*
15608 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15609 touch conftest.a
15610 ln conftest.a conftest.b 2>&5 || hard_links=no
15611 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15613$as_echo "$hard_links" >&6; }
15614 if test "$hard_links" = no; then
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15616$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15617 need_locks=warn
15618 fi
15619else
15620 need_locks=no
15621fi
15622
15623
15624
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15626$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15627
15628 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15629 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15630 case $host_os in
15631 aix[4-9]*)
15632 # If we're using GNU nm, then we don't want the "-C" option.
15633 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15634 # Also, AIX nm treats weak defined symbols like other global defined
15635 # symbols, whereas GNU nm marks them as "W".
15636 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15637 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15638 else
15639 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'
15640 fi
15641 ;;
15642 pw32*)
15643 export_symbols_cmds_CXX="$ltdll_cmds"
15644 ;;
15645 cygwin* | mingw* | cegcc*)
15646 case $cc_basename in
15647 cl*) ;;
15648 *)
15649 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15650 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15651 ;;
15652 esac
15653 ;;
15654 linux* | k*bsd*-gnu | gnu*)
15655 link_all_deplibs_CXX=no
15656 ;;
15657 *)
15658 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15659 ;;
15660 esac
15661
15662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15663$as_echo "$ld_shlibs_CXX" >&6; }
15664test "$ld_shlibs_CXX" = no && can_build_shared=no
15665
15666with_gnu_ld_CXX=$with_gnu_ld
15667
15668
15669
15670
15671
15672
15673#
15674# Do we need to explicitly link libc?
15675#
15676case "x$archive_cmds_need_lc_CXX" in
15677x|xyes)
15678 # Assume -lc should be added
15679 archive_cmds_need_lc_CXX=yes
15680
15681 if test "$enable_shared" = yes && test "$GCC" = yes; then
15682 case $archive_cmds_CXX in
15683 *'~'*)
15684 # FIXME: we may have to deal with multi-command sequences.
15685 ;;
15686 '$CC '*)
15687 # Test whether the compiler implicitly links with -lc since on some
15688 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15689 # to ld, don't add -lc before -lgcc.
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15691$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15692if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15693 $as_echo_n "(cached) " >&6
15694else
15695 $RM conftest*
15696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15697
15698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15699 (eval $ac_compile) 2>&5
15700 ac_status=$?
15701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15702 test $ac_status = 0; } 2>conftest.err; then
15703 soname=conftest
15704 lib=conftest
15705 libobjs=conftest.$ac_objext
15706 deplibs=
15707 wl=$lt_prog_compiler_wl_CXX
15708 pic_flag=$lt_prog_compiler_pic_CXX
15709 compiler_flags=-v
15710 linker_flags=-v
15711 verstring=
15712 output_objdir=.
15713 libname=conftest
15714 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15715 allow_undefined_flag_CXX=
15716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15717 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15718 ac_status=$?
15719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15720 test $ac_status = 0; }
15721 then
15722 lt_cv_archive_cmds_need_lc_CXX=no
15723 else
15724 lt_cv_archive_cmds_need_lc_CXX=yes
15725 fi
15726 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15727 else
15728 cat conftest.err 1>&5
15729 fi
15730 $RM conftest*
15731
15732fi
15733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15734$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15735 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15736 ;;
15737 esac
15738 fi
15739 ;;
15740esac
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15806$as_echo_n "checking dynamic linker characteristics... " >&6; }
15807
15808library_names_spec=
15809libname_spec='lib$name'
15810soname_spec=
15811shrext_cmds=".so"
15812postinstall_cmds=
15813postuninstall_cmds=
15814finish_cmds=
15815finish_eval=
15816shlibpath_var=
15817shlibpath_overrides_runpath=unknown
15818version_type=none
15819dynamic_linker="$host_os ld.so"
15820sys_lib_dlsearch_path_spec="/lib /usr/lib"
15821need_lib_prefix=unknown
15822hardcode_into_libs=no
15823
15824# when you set need_version to no, make sure it does not cause -set_version
15825# flags to be left without arguments
15826need_version=unknown
15827
15828case $host_os in
15829aix3*)
15830 version_type=linux
15831 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15832 shlibpath_var=LIBPATH
15833
15834 # AIX 3 has no versioning support, so we append a major version to the name.
15835 soname_spec='${libname}${release}${shared_ext}$major'
15836 ;;
15837
15838aix[4-9]*)
15839 version_type=linux
15840 need_lib_prefix=no
15841 need_version=no
15842 hardcode_into_libs=yes
15843 if test "$host_cpu" = ia64; then
15844 # AIX 5 supports IA64
15845 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15846 shlibpath_var=LD_LIBRARY_PATH
15847 else
15848 # With GCC up to 2.95.x, collect2 would create an import file
15849 # for dependence libraries. The import file would start with
15850 # the line `#! .'. This would cause the generated library to
15851 # depend on `.', always an invalid library. This was fixed in
15852 # development snapshots of GCC prior to 3.0.
15853 case $host_os in
15854 aix4 | aix4.[01] | aix4.[01].*)
15855 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15856 echo ' yes '
15857 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15858 :
15859 else
15860 can_build_shared=no
15861 fi
15862 ;;
15863 esac
15864 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15865 # soname into executable. Probably we can add versioning support to
15866 # collect2, so additional links can be useful in future.
15867 if test "$aix_use_runtimelinking" = yes; then
15868 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15869 # instead of lib<name>.a to let people know that these are not
15870 # typical AIX shared libraries.
15871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15872 else
15873 # We preserve .a as extension for shared libraries through AIX4.2
15874 # and later when we are not doing run time linking.
15875 library_names_spec='${libname}${release}.a $libname.a'
15876 soname_spec='${libname}${release}${shared_ext}$major'
15877 fi
15878 shlibpath_var=LIBPATH
15879 fi
15880 ;;
15881
15882amigaos*)
15883 case $host_cpu in
15884 powerpc)
15885 # Since July 2007 AmigaOS4 officially supports .so libraries.
15886 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15888 ;;
15889 m68k)
15890 library_names_spec='$libname.ixlibrary $libname.a'
15891 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15892 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
15893 ;;
15894 esac
15895 ;;
15896
15897beos*)
15898 library_names_spec='${libname}${shared_ext}'
15899 dynamic_linker="$host_os ld.so"
15900 shlibpath_var=LIBRARY_PATH
15901 ;;
15902
15903bsdi[45]*)
15904 version_type=linux
15905 need_version=no
15906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15907 soname_spec='${libname}${release}${shared_ext}$major'
15908 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15909 shlibpath_var=LD_LIBRARY_PATH
15910 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15911 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15912 # the default ld.so.conf also contains /usr/contrib/lib and
15913 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15914 # libtool to hard-code these into programs
15915 ;;
15916
15917cygwin* | mingw* | pw32* | cegcc*)
15918 version_type=windows
15919 shrext_cmds=".dll"
15920 need_version=no
15921 need_lib_prefix=no
15922
15923 case $GCC,$cc_basename in
15924 yes,*)
15925 # gcc
15926 library_names_spec='$libname.dll.a'
15927 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15928 postinstall_cmds='base_file=`basename \${file}`~
15929 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15930 dldir=$destdir/`dirname \$dlpath`~
15931 test -d \$dldir || mkdir -p \$dldir~
15932 $install_prog $dir/$dlname \$dldir/$dlname~
15933 chmod a+x \$dldir/$dlname~
15934 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15935 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15936 fi'
15937 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15938 dlpath=$dir/\$dldll~
15939 $RM \$dlpath'
15940 shlibpath_overrides_runpath=yes
15941
15942 case $host_os in
15943 cygwin*)
15944 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15945 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15946
15947 ;;
15948 mingw* | cegcc*)
15949 # MinGW DLLs use traditional 'lib' prefix
15950 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15951 ;;
15952 pw32*)
15953 # pw32 DLLs use 'pw' prefix rather than 'lib'
15954 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15955 ;;
15956 esac
15957 dynamic_linker='Win32 ld.exe'
15958 ;;
15959
15960 *,cl*)
15961 # Native MSVC
15962 libname_spec='$name'
15963 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15964 library_names_spec='${libname}.dll.lib'
15965
15966 case $build_os in
15967 mingw*)
15968 sys_lib_search_path_spec=
15969 lt_save_ifs=$IFS
15970 IFS=';'
15971 for lt_path in $LIB
15972 do
15973 IFS=$lt_save_ifs
15974 # Let DOS variable expansion print the short 8.3 style file name.
15975 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15976 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15977 done
15978 IFS=$lt_save_ifs
15979 # Convert to MSYS style.
15980 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15981 ;;
15982 cygwin*)
15983 # Convert to unix form, then to dos form, then back to unix form
15984 # but this time dos style (no spaces!) so that the unix form looks
15985 # like /cygdrive/c/PROGRA~1:/cygdr...
15986 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15987 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15988 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15989 ;;
15990 *)
15991 sys_lib_search_path_spec="$LIB"
15992 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15993 # It is most probably a Windows format PATH.
15994 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15995 else
15996 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15997 fi
15998 # FIXME: find the short name or the path components, as spaces are
15999 # common. (e.g. "Program Files" -> "PROGRA~1")
16000 ;;
16001 esac
16002
16003 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16004 postinstall_cmds='base_file=`basename \${file}`~
16005 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16006 dldir=$destdir/`dirname \$dlpath`~
16007 test -d \$dldir || mkdir -p \$dldir~
16008 $install_prog $dir/$dlname \$dldir/$dlname'
16009 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16010 dlpath=$dir/\$dldll~
16011 $RM \$dlpath'
16012 shlibpath_overrides_runpath=yes
16013 dynamic_linker='Win32 link.exe'
16014 ;;
16015
16016 *)
16017 # Assume MSVC wrapper
16018 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16019 dynamic_linker='Win32 ld.exe'
16020 ;;
16021 esac
16022 # FIXME: first we should search . and the directory the executable is in
16023 shlibpath_var=PATH
16024 ;;
16025
16026darwin* | rhapsody*)
16027 dynamic_linker="$host_os dyld"
16028 version_type=darwin
16029 need_lib_prefix=no
16030 need_version=no
16031 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16032 soname_spec='${libname}${release}${major}$shared_ext'
16033 shlibpath_overrides_runpath=yes
16034 shlibpath_var=DYLD_LIBRARY_PATH
16035 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16036
16037 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16038 ;;
16039
16040dgux*)
16041 version_type=linux
16042 need_lib_prefix=no
16043 need_version=no
16044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16045 soname_spec='${libname}${release}${shared_ext}$major'
16046 shlibpath_var=LD_LIBRARY_PATH
16047 ;;
16048
16049freebsd1*)
16050 dynamic_linker=no
16051 ;;
16052
16053freebsd* | dragonfly*)
16054 # DragonFly does not have aout. When/if they implement a new
16055 # versioning mechanism, adjust this.
16056 if test -x /usr/bin/objformat; then
16057 objformat=`/usr/bin/objformat`
16058 else
16059 case $host_os in
16060 freebsd[123]*) objformat=aout ;;
16061 *) objformat=elf ;;
16062 esac
16063 fi
16064 version_type=freebsd-$objformat
16065 case $version_type in
16066 freebsd-elf*)
16067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16068 need_version=no
16069 need_lib_prefix=no
16070 ;;
16071 freebsd-*)
16072 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16073 need_version=yes
16074 ;;
16075 esac
16076 shlibpath_var=LD_LIBRARY_PATH
16077 case $host_os in
16078 freebsd2*)
16079 shlibpath_overrides_runpath=yes
16080 ;;
16081 freebsd3.[01]* | freebsdelf3.[01]*)
16082 shlibpath_overrides_runpath=yes
16083 hardcode_into_libs=yes
16084 ;;
16085 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16086 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16087 shlibpath_overrides_runpath=no
16088 hardcode_into_libs=yes
16089 ;;
16090 *) # from 4.6 on, and DragonFly
16091 shlibpath_overrides_runpath=yes
16092 hardcode_into_libs=yes
16093 ;;
16094 esac
16095 ;;
16096
16097gnu*)
16098 version_type=linux
16099 need_lib_prefix=no
16100 need_version=no
16101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16102 soname_spec='${libname}${release}${shared_ext}$major'
16103 shlibpath_var=LD_LIBRARY_PATH
16104 shlibpath_overrides_runpath=no
16105 hardcode_into_libs=yes
16106 ;;
16107
16108haiku*)
16109 version_type=linux
16110 need_lib_prefix=no
16111 need_version=no
16112 dynamic_linker="$host_os runtime_loader"
16113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16114 soname_spec='${libname}${release}${shared_ext}$major'
16115 shlibpath_var=LIBRARY_PATH
16116 shlibpath_overrides_runpath=yes
16117 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16118 hardcode_into_libs=yes
16119 ;;
16120
16121hpux9* | hpux10* | hpux11*)
16122 # Give a soname corresponding to the major version so that dld.sl refuses to
16123 # link against other versions.
16124 version_type=sunos
16125 need_lib_prefix=no
16126 need_version=no
16127 case $host_cpu in
16128 ia64*)
16129 shrext_cmds='.so'
16130 hardcode_into_libs=yes
16131 dynamic_linker="$host_os dld.so"
16132 shlibpath_var=LD_LIBRARY_PATH
16133 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16135 soname_spec='${libname}${release}${shared_ext}$major'
16136 if test "X$HPUX_IA64_MODE" = X32; then
16137 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16138 else
16139 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16140 fi
16141 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16142 ;;
16143 hppa*64*)
16144 shrext_cmds='.sl'
16145 hardcode_into_libs=yes
16146 dynamic_linker="$host_os dld.sl"
16147 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16148 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16150 soname_spec='${libname}${release}${shared_ext}$major'
16151 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16152 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16153 ;;
16154 *)
16155 shrext_cmds='.sl'
16156 dynamic_linker="$host_os dld.sl"
16157 shlibpath_var=SHLIB_PATH
16158 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16160 soname_spec='${libname}${release}${shared_ext}$major'
16161 ;;
16162 esac
16163 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16164 postinstall_cmds='chmod 555 $lib'
16165 # or fails outright, so override atomically:
16166 install_override_mode=555
16167 ;;
16168
16169interix[3-9]*)
16170 version_type=linux
16171 need_lib_prefix=no
16172 need_version=no
16173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16174 soname_spec='${libname}${release}${shared_ext}$major'
16175 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16176 shlibpath_var=LD_LIBRARY_PATH
16177 shlibpath_overrides_runpath=no
16178 hardcode_into_libs=yes
16179 ;;
16180
16181irix5* | irix6* | nonstopux*)
16182 case $host_os in
16183 nonstopux*) version_type=nonstopux ;;
16184 *)
16185 if test "$lt_cv_prog_gnu_ld" = yes; then
16186 version_type=linux
16187 else
16188 version_type=irix
16189 fi ;;
16190 esac
16191 need_lib_prefix=no
16192 need_version=no
16193 soname_spec='${libname}${release}${shared_ext}$major'
16194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16195 case $host_os in
16196 irix5* | nonstopux*)
16197 libsuff= shlibsuff=
16198 ;;
16199 *)
16200 case $LD in # libtool.m4 will add one of these switches to LD
16201 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16202 libsuff= shlibsuff= libmagic=32-bit;;
16203 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16204 libsuff=32 shlibsuff=N32 libmagic=N32;;
16205 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16206 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16207 *) libsuff= shlibsuff= libmagic=never-match;;
16208 esac
16209 ;;
16210 esac
16211 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16212 shlibpath_overrides_runpath=no
16213 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16214 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16215 hardcode_into_libs=yes
16216 ;;
16217
16218# No shared lib support for Linux oldld, aout, or coff.
16219linux*oldld* | linux*aout* | linux*coff*)
16220 dynamic_linker=no
16221 ;;
16222
16223# This must be Linux ELF.
16224linux* | k*bsd*-gnu | kopensolaris*-gnu)
16225 version_type=linux
16226 need_lib_prefix=no
16227 need_version=no
16228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16229 soname_spec='${libname}${release}${shared_ext}$major'
16230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16231 shlibpath_var=LD_LIBRARY_PATH
16232 shlibpath_overrides_runpath=no
16233
16234 # Some binutils ld are patched to set DT_RUNPATH
16235 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16236 $as_echo_n "(cached) " >&6
16237else
16238 lt_cv_shlibpath_overrides_runpath=no
16239 save_LDFLAGS=$LDFLAGS
16240 save_libdir=$libdir
16241 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16242 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244/* end confdefs.h. */
16245
16246int
16247main ()
16248{
16249
16250 ;
16251 return 0;
16252}
16253_ACEOF
16254if ac_fn_cxx_try_link "$LINENO"; then :
16255 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16256 lt_cv_shlibpath_overrides_runpath=yes
16257fi
16258fi
16259rm -f core conftest.err conftest.$ac_objext \
16260 conftest$ac_exeext conftest.$ac_ext
16261 LDFLAGS=$save_LDFLAGS
16262 libdir=$save_libdir
16263
16264fi
16265
16266 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16267
16268 # This implies no fast_install, which is unacceptable.
16269 # Some rework will be needed to allow for fast_install
16270 # before this can be enabled.
16271 hardcode_into_libs=yes
16272
16273 # Append ld.so.conf contents to the search path
16274 if test -f /etc/ld.so.conf; then
16275 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16276 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16277 fi
16278
16279 # We used to test for /lib/ld.so.1 and disable shared libraries on
16280 # powerpc, because MkLinux only supported shared libraries with the
16281 # GNU dynamic linker. Since this was broken with cross compilers,
16282 # most powerpc-linux boxes support dynamic linking these days and
16283 # people can always --disable-shared, the test was removed, and we
16284 # assume the GNU/Linux dynamic linker is in use.
16285 dynamic_linker='GNU/Linux ld.so'
16286 ;;
16287
16288netbsdelf*-gnu)
16289 version_type=linux
16290 need_lib_prefix=no
16291 need_version=no
16292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16293 soname_spec='${libname}${release}${shared_ext}$major'
16294 shlibpath_var=LD_LIBRARY_PATH
16295 shlibpath_overrides_runpath=no
16296 hardcode_into_libs=yes
16297 dynamic_linker='NetBSD ld.elf_so'
16298 ;;
16299
16300netbsd*)
16301 version_type=sunos
16302 need_lib_prefix=no
16303 need_version=no
16304 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16307 dynamic_linker='NetBSD (a.out) ld.so'
16308 else
16309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16310 soname_spec='${libname}${release}${shared_ext}$major'
16311 dynamic_linker='NetBSD ld.elf_so'
16312 fi
16313 shlibpath_var=LD_LIBRARY_PATH
16314 shlibpath_overrides_runpath=yes
16315 hardcode_into_libs=yes
16316 ;;
16317
16318newsos6)
16319 version_type=linux
16320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16321 shlibpath_var=LD_LIBRARY_PATH
16322 shlibpath_overrides_runpath=yes
16323 ;;
16324
16325*nto* | *qnx*)
16326 version_type=qnx
16327 need_lib_prefix=no
16328 need_version=no
16329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16330 soname_spec='${libname}${release}${shared_ext}$major'
16331 shlibpath_var=LD_LIBRARY_PATH
16332 shlibpath_overrides_runpath=no
16333 hardcode_into_libs=yes
16334 dynamic_linker='ldqnx.so'
16335 ;;
16336
16337openbsd*)
16338 version_type=sunos
16339 sys_lib_dlsearch_path_spec="/usr/lib"
16340 need_lib_prefix=no
16341 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16342 case $host_os in
16343 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16344 *) need_version=no ;;
16345 esac
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16348 shlibpath_var=LD_LIBRARY_PATH
16349 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16350 case $host_os in
16351 openbsd2.[89] | openbsd2.[89].*)
16352 shlibpath_overrides_runpath=no
16353 ;;
16354 *)
16355 shlibpath_overrides_runpath=yes
16356 ;;
16357 esac
16358 else
16359 shlibpath_overrides_runpath=yes
16360 fi
16361 ;;
16362
16363os2*)
16364 libname_spec='$name'
16365 shrext_cmds=".dll"
16366 need_lib_prefix=no
16367 library_names_spec='$libname${shared_ext} $libname.a'
16368 dynamic_linker='OS/2 ld.exe'
16369 shlibpath_var=LIBPATH
16370 ;;
16371
16372osf3* | osf4* | osf5*)
16373 version_type=osf
16374 need_lib_prefix=no
16375 need_version=no
16376 soname_spec='${libname}${release}${shared_ext}$major'
16377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16378 shlibpath_var=LD_LIBRARY_PATH
16379 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16380 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16381 ;;
16382
16383rdos*)
16384 dynamic_linker=no
16385 ;;
16386
16387solaris*)
16388 version_type=linux
16389 need_lib_prefix=no
16390 need_version=no
16391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16392 soname_spec='${libname}${release}${shared_ext}$major'
16393 shlibpath_var=LD_LIBRARY_PATH
16394 shlibpath_overrides_runpath=yes
16395 hardcode_into_libs=yes
16396 # ldd complains unless libraries are executable
16397 postinstall_cmds='chmod +x $lib'
16398 ;;
16399
16400sunos4*)
16401 version_type=sunos
16402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16403 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16404 shlibpath_var=LD_LIBRARY_PATH
16405 shlibpath_overrides_runpath=yes
16406 if test "$with_gnu_ld" = yes; then
16407 need_lib_prefix=no
16408 fi
16409 need_version=yes
16410 ;;
16411
16412sysv4 | sysv4.3*)
16413 version_type=linux
16414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16415 soname_spec='${libname}${release}${shared_ext}$major'
16416 shlibpath_var=LD_LIBRARY_PATH
16417 case $host_vendor in
16418 sni)
16419 shlibpath_overrides_runpath=no
16420 need_lib_prefix=no
16421 runpath_var=LD_RUN_PATH
16422 ;;
16423 siemens)
16424 need_lib_prefix=no
16425 ;;
16426 motorola)
16427 need_lib_prefix=no
16428 need_version=no
16429 shlibpath_overrides_runpath=no
16430 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16431 ;;
16432 esac
16433 ;;
16434
16435sysv4*MP*)
16436 if test -d /usr/nec ;then
16437 version_type=linux
16438 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16439 soname_spec='$libname${shared_ext}.$major'
16440 shlibpath_var=LD_LIBRARY_PATH
16441 fi
16442 ;;
16443
16444sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16445 version_type=freebsd-elf
16446 need_lib_prefix=no
16447 need_version=no
16448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16449 soname_spec='${libname}${release}${shared_ext}$major'
16450 shlibpath_var=LD_LIBRARY_PATH
16451 shlibpath_overrides_runpath=yes
16452 hardcode_into_libs=yes
16453 if test "$with_gnu_ld" = yes; then
16454 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16455 else
16456 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16457 case $host_os in
16458 sco3.2v5*)
16459 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16460 ;;
16461 esac
16462 fi
16463 sys_lib_dlsearch_path_spec='/usr/lib'
16464 ;;
16465
16466tpf*)
16467 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16468 version_type=linux
16469 need_lib_prefix=no
16470 need_version=no
16471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16472 shlibpath_var=LD_LIBRARY_PATH
16473 shlibpath_overrides_runpath=no
16474 hardcode_into_libs=yes
16475 ;;
16476
16477uts4*)
16478 version_type=linux
16479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16480 soname_spec='${libname}${release}${shared_ext}$major'
16481 shlibpath_var=LD_LIBRARY_PATH
16482 ;;
16483
16484*)
16485 dynamic_linker=no
16486 ;;
16487esac
16488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16489$as_echo "$dynamic_linker" >&6; }
16490test "$dynamic_linker" = no && can_build_shared=no
16491
16492variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16493if test "$GCC" = yes; then
16494 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16495fi
16496
16497if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16498 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16499fi
16500if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16501 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16502fi
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16542$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16543hardcode_action_CXX=
16544if test -n "$hardcode_libdir_flag_spec_CXX" ||
16545 test -n "$runpath_var_CXX" ||
16546 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16547
16548 # We can hardcode non-existent directories.
16549 if test "$hardcode_direct_CXX" != no &&
16550 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16551 # have to relink, otherwise we might link with an installed library
16552 # when we should be linking with a yet-to-be-installed one
16553 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16554 test "$hardcode_minus_L_CXX" != no; then
16555 # Linking always hardcodes the temporary library directory.
16556 hardcode_action_CXX=relink
16557 else
16558 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16559 hardcode_action_CXX=immediate
16560 fi
16561else
16562 # We cannot hardcode anything, or else we can only hardcode existing
16563 # directories.
16564 hardcode_action_CXX=unsupported
16565fi
16566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16567$as_echo "$hardcode_action_CXX" >&6; }
16568
16569if test "$hardcode_action_CXX" = relink ||
16570 test "$inherit_rpath_CXX" = yes; then
16571 # Fast installation is not supported
16572 enable_fast_install=no
16573elif test "$shlibpath_overrides_runpath" = yes ||
16574 test "$enable_shared" = no; then
16575 # Fast installation is not necessary
16576 enable_fast_install=needless
16577fi
16578
16579
16580
16581
16582
16583
16584
16585 fi # test -n "$compiler"
16586
16587 CC=$lt_save_CC
16588 CFLAGS=$lt_save_CFLAGS
16589 LDCXX=$LD
16590 LD=$lt_save_LD
16591 GCC=$lt_save_GCC
16592 with_gnu_ld=$lt_save_with_gnu_ld
16593 lt_cv_path_LDCXX=$lt_cv_path_LD
16594 lt_cv_path_LD=$lt_save_path_LD
16595 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16596 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16597fi # test "$_lt_caught_CXX_error" != yes
16598
16599ac_ext=cpp
16600ac_cpp='$CXXCPP $CPPFLAGS'
16601ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16602ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16603ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617 ac_config_commands="$ac_config_commands libtool"
16618
16619
16620
16621
16622# Only expand once:
16623
16624
16625am__api_version='1.11'
16626
16627# Find a good install program. We prefer a C program (faster),
16628# so one script is as good as another. But avoid the broken or
16629# incompatible versions:
16630# SysV /etc/install, /usr/sbin/install
16631# SunOS /usr/etc/install
16632# IRIX /sbin/install
16633# AIX /bin/install
16634# AmigaOS /C/install, which installs bootblocks on floppy discs
16635# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
16636# AFS /usr/afsws/bin/install, which mishandles nonexistent args
16637# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
16638# OS/2's system install, which has a completely different semantic
16639# ./install, which can be erroneously created by make from ./install.sh.
16640# Reject install programs that cannot install multiple files.
16641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
16642$as_echo_n "checking for a BSD-compatible install... " >&6; }
16643if test -z "$INSTALL"; then
16644if ${ac_cv_path_install+:} false; then :
16645 $as_echo_n "(cached) " >&6
16646else
16647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16648for as_dir in $PATH
16649do
16650 IFS=$as_save_IFS
16651 test -z "$as_dir" && as_dir=.
16652 # Account for people who put trailing slashes in PATH elements.
16653case $as_dir/ in @%:@((
16654 ./ | .// | /[cC]/* | \
16655 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
16656 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
16657 /usr/ucb/* ) ;;
16658 *)
16659 # OSF1 and SCO ODT 3.0 have their own names for install.
16660 # Don't use installbsd from OSF since it installs stuff as root
16661 # by default.
16662 for ac_prog in ginstall scoinst install; do
16663 for ac_exec_ext in '' $ac_executable_extensions; do
16664 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
16665 if test $ac_prog = install &&
16666 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16667 # AIX install. It has an incompatible calling convention.
16668 :
16669 elif test $ac_prog = install &&
16670 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16671 # program-specific install script used by HP pwplus--don't use.
16672 :
16673 else
16674 rm -rf conftest.one conftest.two conftest.dir
16675 echo one > conftest.one
16676 echo two > conftest.two
16677 mkdir conftest.dir
16678 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
16679 test -s conftest.one && test -s conftest.two &&
16680 test -s conftest.dir/conftest.one &&
16681 test -s conftest.dir/conftest.two
16682 then
16683 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
16684 break 3
16685 fi
16686 fi
16687 fi
16688 done
16689 done
16690 ;;
16691esac
16692
16693 done
16694IFS=$as_save_IFS
16695
16696rm -rf conftest.one conftest.two conftest.dir
16697
16698fi
16699 if test "${ac_cv_path_install+set}" = set; then
16700 INSTALL=$ac_cv_path_install
16701 else
16702 # As a last resort, use the slow shell script. Don't cache a
16703 # value for INSTALL within a source directory, because that will
16704 # break other packages using the cache if that directory is
16705 # removed, or if the value is a relative name.
16706 INSTALL=$ac_install_sh
16707 fi
16708fi
16709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
16710$as_echo "$INSTALL" >&6; }
16711
16712# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
16713# It thinks the first close brace ends the variable substitution.
16714test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
16715
16716test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
16717
16718test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
16719
16720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
16721$as_echo_n "checking whether build environment is sane... " >&6; }
16722# Just in case
16723sleep 1
16724echo timestamp > conftest.file
16725# Reject unsafe characters in $srcdir or the absolute working directory
16726# name. Accept space and tab only in the latter.
16727am_lf='
16728'
16729case `pwd` in
16730 *[\\\"\#\$\&\'\`$am_lf]*)
16731 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
16732esac
16733case $srcdir in
16734 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
16735 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
16736esac
16737
16738# Do `set' in a subshell so we don't clobber the current shell's
16739# arguments. Must try -L first in case configure is actually a
16740# symlink; some systems play weird games with the mod time of symlinks
16741# (eg FreeBSD returns the mod time of the symlink's containing
16742# directory).
16743if (
16744 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
16745 if test "$*" = "X"; then
16746 # -L didn't work.
16747 set X `ls -t "$srcdir/configure" conftest.file`
16748 fi
16749 rm -f conftest.file
16750 if test "$*" != "X $srcdir/configure conftest.file" \
16751 && test "$*" != "X conftest.file $srcdir/configure"; then
16752
16753 # If neither matched, then we have a broken ls. This can happen
16754 # if, for instance, CONFIG_SHELL is bash and it inherits a
16755 # broken ls alias from the environment. This has actually
16756 # happened. Such a system could not be considered "sane".
16757 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
16758alias in your environment" "$LINENO" 5
16759 fi
16760
16761 test "$2" = conftest.file
16762 )
16763then
16764 # Ok.
16765 :
16766else
16767 as_fn_error $? "newly created file is older than distributed files!
16768Check your system clock" "$LINENO" 5
16769fi
16770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16771$as_echo "yes" >&6; }
16772test "$program_prefix" != NONE &&
16773 program_transform_name="s&^&$program_prefix&;$program_transform_name"
16774# Use a double $ so make ignores it.
16775test "$program_suffix" != NONE &&
16776 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
16777# Double any \ or $.
16778# By default was `s,x,x', remove it if useless.
16779ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
16780program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
16781
16782# expand $ac_aux_dir to an absolute path
16783am_aux_dir=`cd $ac_aux_dir && pwd`
16784
16785if test x"${MISSING+set}" != xset; then
16786 case $am_aux_dir in
16787 *\ * | *\ *)
16788 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
16789 *)
16790 MISSING="\${SHELL} $am_aux_dir/missing" ;;
16791 esac
16792fi
16793# Use eval to expand $SHELL
16794if eval "$MISSING --run true"; then
16795 am_missing_run="$MISSING --run "
16796else
16797 am_missing_run=
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
16799$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
16800fi
16801
16802if test x"${install_sh}" != xset; then
16803 case $am_aux_dir in
16804 *\ * | *\ *)
16805 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
16806 *)
16807 install_sh="\${SHELL} $am_aux_dir/install-sh"
16808 esac
16809fi
16810
16811# Installed binaries are usually stripped using `strip' when the user
16812# run `make install-strip'. However `strip' might not be the right
16813# tool to use in cross-compilation environments, therefore Automake
16814# will honor the `STRIP' environment variable to overrule this program.
16815if test "$cross_compiling" != no; then
16816 if test -n "$ac_tool_prefix"; then
16817 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16818set dummy ${ac_tool_prefix}strip; ac_word=$2
16819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16820$as_echo_n "checking for $ac_word... " >&6; }
16821if ${ac_cv_prog_STRIP+:} false; then :
16822 $as_echo_n "(cached) " >&6
16823else
16824 if test -n "$STRIP"; then
16825 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16826else
16827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16828for as_dir in $PATH
16829do
16830 IFS=$as_save_IFS
16831 test -z "$as_dir" && as_dir=.
16832 for ac_exec_ext in '' $ac_executable_extensions; do
16833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16834 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16836 break 2
16837 fi
16838done
16839 done
16840IFS=$as_save_IFS
16841
16842fi
16843fi
16844STRIP=$ac_cv_prog_STRIP
16845if test -n "$STRIP"; then
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
16847$as_echo "$STRIP" >&6; }
16848else
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16850$as_echo "no" >&6; }
16851fi
16852
16853
16854fi
16855if test -z "$ac_cv_prog_STRIP"; then
16856 ac_ct_STRIP=$STRIP
16857 # Extract the first word of "strip", so it can be a program name with args.
16858set dummy strip; ac_word=$2
16859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16860$as_echo_n "checking for $ac_word... " >&6; }
16861if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
16862 $as_echo_n "(cached) " >&6
16863else
16864 if test -n "$ac_ct_STRIP"; then
16865 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16866else
16867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16868for as_dir in $PATH
16869do
16870 IFS=$as_save_IFS
16871 test -z "$as_dir" && as_dir=.
16872 for ac_exec_ext in '' $ac_executable_extensions; do
16873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16874 ac_cv_prog_ac_ct_STRIP="strip"
16875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16876 break 2
16877 fi
16878done
16879 done
16880IFS=$as_save_IFS
16881
16882fi
16883fi
16884ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16885if test -n "$ac_ct_STRIP"; then
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
16887$as_echo "$ac_ct_STRIP" >&6; }
16888else
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16890$as_echo "no" >&6; }
16891fi
16892
16893 if test "x$ac_ct_STRIP" = x; then
16894 STRIP=":"
16895 else
16896 case $cross_compiling:$ac_tool_warned in
16897yes:)
16898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16900ac_tool_warned=yes ;;
16901esac
16902 STRIP=$ac_ct_STRIP
16903 fi
16904else
16905 STRIP="$ac_cv_prog_STRIP"
16906fi
16907
16908fi
16909INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
16910
16911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
16912$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
16913if test -z "$MKDIR_P"; then
16914 if ${ac_cv_path_mkdir+:} false; then :
16915 $as_echo_n "(cached) " >&6
16916else
16917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16918for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
16919do
16920 IFS=$as_save_IFS
16921 test -z "$as_dir" && as_dir=.
16922 for ac_prog in mkdir gmkdir; do
16923 for ac_exec_ext in '' $ac_executable_extensions; do
16924 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
16925 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
16926 'mkdir (GNU coreutils) '* | \
16927 'mkdir (coreutils) '* | \
16928 'mkdir (fileutils) '4.1*)
16929 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
16930 break 3;;
16931 esac
16932 done
16933 done
16934 done
16935IFS=$as_save_IFS
16936
16937fi
16938
16939 test -d ./--version && rmdir ./--version
16940 if test "${ac_cv_path_mkdir+set}" = set; then
16941 MKDIR_P="$ac_cv_path_mkdir -p"
16942 else
16943 # As a last resort, use the slow shell script. Don't cache a
16944 # value for MKDIR_P within a source directory, because that will
16945 # break other packages using the cache if that directory is
16946 # removed, or if the value is a relative name.
16947 MKDIR_P="$ac_install_sh -d"
16948 fi
16949fi
16950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
16951$as_echo "$MKDIR_P" >&6; }
16952
16953mkdir_p="$MKDIR_P"
16954case $mkdir_p in
16955 [\\/$]* | ?:[\\/]*) ;;
16956 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
16957esac
16958
16959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16960$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16961set x ${MAKE-make}
16962ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16963if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16964 $as_echo_n "(cached) " >&6
16965else
16966 cat >conftest.make <<\_ACEOF
16967SHELL = /bin/sh
16968all:
16969 @echo '@@@%%%=$(MAKE)=@@@%%%'
16970_ACEOF
16971# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16972case `${MAKE-make} -f conftest.make 2>/dev/null` in
16973 *@@@%%%=?*=@@@%%%*)
16974 eval ac_cv_prog_make_${ac_make}_set=yes;;
16975 *)
16976 eval ac_cv_prog_make_${ac_make}_set=no;;
16977esac
16978rm -f conftest.make
16979fi
16980if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16982$as_echo "yes" >&6; }
16983 SET_MAKE=
16984else
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16986$as_echo "no" >&6; }
16987 SET_MAKE="MAKE=${MAKE-make}"
16988fi
16989
16990rm -rf .tst 2>/dev/null
16991mkdir .tst 2>/dev/null
16992if test -d .tst; then
16993 am__leading_dot=.
16994else
16995 am__leading_dot=_
16996fi
16997rmdir .tst 2>/dev/null
16998
16999DEPDIR="${am__leading_dot}deps"
17000
17001ac_config_commands="$ac_config_commands depfiles"
17002
17003
17004am_make=${MAKE-make}
17005cat > confinc << 'END'
17006am__doit:
17007 @echo this is the am__doit target
17008.PHONY: am__doit
17009END
17010# If we don't find an include directive, just comment out the code.
17011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
17012$as_echo_n "checking for style of include used by $am_make... " >&6; }
17013am__include="#"
17014am__quote=
17015_am_result=none
17016# First try GNU make style include.
17017echo "include confinc" > confmf
17018# Ignore all kinds of additional output from `make'.
17019case `$am_make -s -f confmf 2> /dev/null` in #(
17020*the\ am__doit\ target*)
17021 am__include=include
17022 am__quote=
17023 _am_result=GNU
17024 ;;
17025esac
17026# Now try BSD make style include.
17027if test "$am__include" = "#"; then
17028 echo '.include "confinc"' > confmf
17029 case `$am_make -s -f confmf 2> /dev/null` in #(
17030 *the\ am__doit\ target*)
17031 am__include=.include
17032 am__quote="\""
17033 _am_result=BSD
17034 ;;
17035 esac
17036fi
17037
17038
17039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
17040$as_echo "$_am_result" >&6; }
17041rm -f confinc confmf
17042
17043@%:@ Check whether --enable-dependency-tracking was given.
17044if test "${enable_dependency_tracking+set}" = set; then :
17045 enableval=$enable_dependency_tracking;
17046fi
17047
17048if test "x$enable_dependency_tracking" != xno; then
17049 am_depcomp="$ac_aux_dir/depcomp"
17050 AMDEPBACKSLASH='\'
17051fi
17052 if test "x$enable_dependency_tracking" != xno; then
17053 AMDEP_TRUE=
17054 AMDEP_FALSE='#'
17055else
17056 AMDEP_TRUE='#'
17057 AMDEP_FALSE=
17058fi
17059
17060
17061if test "`cd $srcdir && pwd`" != "`pwd`"; then
17062 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
17063 # is not polluted with repeated "-I."
17064 am__isrc=' -I$(srcdir)'
17065 # test to see if srcdir already configured
17066 if test -f $srcdir/config.status; then
17067 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
17068 fi
17069fi
17070
17071# test whether we have cygpath
17072if test -z "$CYGPATH_W"; then
17073 if (cygpath --version) >/dev/null 2>/dev/null; then
17074 CYGPATH_W='cygpath -w'
17075 else
17076 CYGPATH_W=echo
17077 fi
17078fi
17079
17080
17081# Define the identity of the package.
17082 PACKAGE=commoncpp2
17083 VERSION=$VERSION
17084
17085
17086cat >>confdefs.h <<_ACEOF
17087@%:@define PACKAGE "$PACKAGE"
17088_ACEOF
17089
17090
17091cat >>confdefs.h <<_ACEOF
17092@%:@define VERSION "$VERSION"
17093_ACEOF
17094
17095# Some tools Automake needs.
17096
17097ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
17098
17099
17100AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
17101
17102
17103AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
17104
17105
17106AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
17107
17108
17109MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
17110
17111# We need awk for the "check" target. The system "awk" is bad on
17112# some platforms.
17113# Always define AMTAR for backward compatibility.
17114
17115AMTAR=${AMTAR-"${am_missing_run}tar"}
17116
17117am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
17118
17119
17120
17121
17122depcc="$CC" am_compiler_list=
17123
17124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17125$as_echo_n "checking dependency style of $depcc... " >&6; }
17126if ${am_cv_CC_dependencies_compiler_type+:} false; then :
17127 $as_echo_n "(cached) " >&6
17128else
17129 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17130 # We make a subdir and do the tests there. Otherwise we can end up
17131 # making bogus files that we don't know about and never remove. For
17132 # instance it was reported that on HP-UX the gcc test will end up
17133 # making a dummy file named `D' -- because `-MD' means `put the output
17134 # in D'.
17135 mkdir conftest.dir
17136 # Copy depcomp to subdir because otherwise we won't find it if we're
17137 # using a relative directory.
17138 cp "$am_depcomp" conftest.dir
17139 cd conftest.dir
17140 # We will build objects and dependencies in a subdirectory because
17141 # it helps to detect inapplicable dependency modes. For instance
17142 # both Tru64's cc and ICC support -MD to output dependencies as a
17143 # side effect of compilation, but ICC will put the dependencies in
17144 # the current directory while Tru64 will put them in the object
17145 # directory.
17146 mkdir sub
17147
17148 am_cv_CC_dependencies_compiler_type=none
17149 if test "$am_compiler_list" = ""; then
17150 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17151 fi
17152 am__universal=false
17153 case " $depcc " in #(
17154 *\ -arch\ *\ -arch\ *) am__universal=true ;;
17155 esac
17156
17157 for depmode in $am_compiler_list; do
17158 # Setup a source with many dependencies, because some compilers
17159 # like to wrap large dependency lists on column 80 (with \), and
17160 # we should not choose a depcomp mode which is confused by this.
17161 #
17162 # We need to recreate these files for each test, as the compiler may
17163 # overwrite some of them when testing with obscure command lines.
17164 # This happens at least with the AIX C compiler.
17165 : > sub/conftest.c
17166 for i in 1 2 3 4 5 6; do
17167 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17168 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17169 # Solaris 8's {/usr,}/bin/sh.
17170 touch sub/conftst$i.h
17171 done
17172 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17173
17174 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17175 # mode. It turns out that the SunPro C++ compiler does not properly
17176 # handle `-M -o', and we need to detect this. Also, some Intel
17177 # versions had trouble with output in subdirs
17178 am__obj=sub/conftest.${OBJEXT-o}
17179 am__minus_obj="-o $am__obj"
17180 case $depmode in
17181 gcc)
17182 # This depmode causes a compiler race in universal mode.
17183 test "$am__universal" = false || continue
17184 ;;
17185 nosideeffect)
17186 # after this tag, mechanisms are not by side-effect, so they'll
17187 # only be used when explicitly requested
17188 if test "x$enable_dependency_tracking" = xyes; then
17189 continue
17190 else
17191 break
17192 fi
17193 ;;
17194 msvisualcpp | msvcmsys)
17195 # This compiler won't grok `-c -o', but also, the minuso test has
17196 # not run yet. These depmodes are late enough in the game, and
17197 # so weak that their functioning should not be impacted.
17198 am__obj=conftest.${OBJEXT-o}
17199 am__minus_obj=
17200 ;;
17201 none) break ;;
17202 esac
17203 if depmode=$depmode \
17204 source=sub/conftest.c object=$am__obj \
17205 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17206 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17207 >/dev/null 2>conftest.err &&
17208 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17209 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17210 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17211 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17212 # icc doesn't choke on unknown options, it will just issue warnings
17213 # or remarks (even with -Werror). So we grep stderr for any message
17214 # that says an option was ignored or not supported.
17215 # When given -MP, icc 7.0 and 7.1 complain thusly:
17216 # icc: Command line warning: ignoring option '-M'; no argument required
17217 # The diagnosis changed in icc 8.0:
17218 # icc: Command line remark: option '-MP' not supported
17219 if (grep 'ignoring option' conftest.err ||
17220 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17221 am_cv_CC_dependencies_compiler_type=$depmode
17222 break
17223 fi
17224 fi
17225 done
17226
17227 cd ..
17228 rm -rf conftest.dir
17229else
17230 am_cv_CC_dependencies_compiler_type=none
17231fi
17232
17233fi
17234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
17235$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
17236CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
17237
17238 if
17239 test "x$enable_dependency_tracking" != xno \
17240 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
17241 am__fastdepCC_TRUE=
17242 am__fastdepCC_FALSE='#'
17243else
17244 am__fastdepCC_TRUE='#'
17245 am__fastdepCC_FALSE=
17246fi
17247
17248
17249depcc="$CXX" am_compiler_list=
17250
17251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17252$as_echo_n "checking dependency style of $depcc... " >&6; }
17253if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
17254 $as_echo_n "(cached) " >&6
17255else
17256 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17257 # We make a subdir and do the tests there. Otherwise we can end up
17258 # making bogus files that we don't know about and never remove. For
17259 # instance it was reported that on HP-UX the gcc test will end up
17260 # making a dummy file named `D' -- because `-MD' means `put the output
17261 # in D'.
17262 mkdir conftest.dir
17263 # Copy depcomp to subdir because otherwise we won't find it if we're
17264 # using a relative directory.
17265 cp "$am_depcomp" conftest.dir
17266 cd conftest.dir
17267 # We will build objects and dependencies in a subdirectory because
17268 # it helps to detect inapplicable dependency modes. For instance
17269 # both Tru64's cc and ICC support -MD to output dependencies as a
17270 # side effect of compilation, but ICC will put the dependencies in
17271 # the current directory while Tru64 will put them in the object
17272 # directory.
17273 mkdir sub
17274
17275 am_cv_CXX_dependencies_compiler_type=none
17276 if test "$am_compiler_list" = ""; then
17277 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17278 fi
17279 am__universal=false
17280 case " $depcc " in #(
17281 *\ -arch\ *\ -arch\ *) am__universal=true ;;
17282 esac
17283
17284 for depmode in $am_compiler_list; do
17285 # Setup a source with many dependencies, because some compilers
17286 # like to wrap large dependency lists on column 80 (with \), and
17287 # we should not choose a depcomp mode which is confused by this.
17288 #
17289 # We need to recreate these files for each test, as the compiler may
17290 # overwrite some of them when testing with obscure command lines.
17291 # This happens at least with the AIX C compiler.
17292 : > sub/conftest.c
17293 for i in 1 2 3 4 5 6; do
17294 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17295 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17296 # Solaris 8's {/usr,}/bin/sh.
17297 touch sub/conftst$i.h
17298 done
17299 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17300
17301 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17302 # mode. It turns out that the SunPro C++ compiler does not properly
17303 # handle `-M -o', and we need to detect this. Also, some Intel
17304 # versions had trouble with output in subdirs
17305 am__obj=sub/conftest.${OBJEXT-o}
17306 am__minus_obj="-o $am__obj"
17307 case $depmode in
17308 gcc)
17309 # This depmode causes a compiler race in universal mode.
17310 test "$am__universal" = false || continue
17311 ;;
17312 nosideeffect)
17313 # after this tag, mechanisms are not by side-effect, so they'll
17314 # only be used when explicitly requested
17315 if test "x$enable_dependency_tracking" = xyes; then
17316 continue
17317 else
17318 break
17319 fi
17320 ;;
17321 msvisualcpp | msvcmsys)
17322 # This compiler won't grok `-c -o', but also, the minuso test has
17323 # not run yet. These depmodes are late enough in the game, and
17324 # so weak that their functioning should not be impacted.
17325 am__obj=conftest.${OBJEXT-o}
17326 am__minus_obj=
17327 ;;
17328 none) break ;;
17329 esac
17330 if depmode=$depmode \
17331 source=sub/conftest.c object=$am__obj \
17332 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17333 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17334 >/dev/null 2>conftest.err &&
17335 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17336 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17337 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17338 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17339 # icc doesn't choke on unknown options, it will just issue warnings
17340 # or remarks (even with -Werror). So we grep stderr for any message
17341 # that says an option was ignored or not supported.
17342 # When given -MP, icc 7.0 and 7.1 complain thusly:
17343 # icc: Command line warning: ignoring option '-M'; no argument required
17344 # The diagnosis changed in icc 8.0:
17345 # icc: Command line remark: option '-MP' not supported
17346 if (grep 'ignoring option' conftest.err ||
17347 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17348 am_cv_CXX_dependencies_compiler_type=$depmode
17349 break
17350 fi
17351 fi
17352 done
17353
17354 cd ..
17355 rm -rf conftest.dir
17356else
17357 am_cv_CXX_dependencies_compiler_type=none
17358fi
17359
17360fi
17361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
17362$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
17363CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
17364
17365 if
17366 test "x$enable_dependency_tracking" != xno \
17367 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
17368 am__fastdepCXX_TRUE=
17369 am__fastdepCXX_FALSE='#'
17370else
17371 am__fastdepCXX_TRUE='#'
17372 am__fastdepCXX_FALSE=
17373fi
17374
17375
17376
17377ac_config_headers="$ac_config_headers config.h"
17378
17379
17380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17381$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17382if ${ac_cv_c_restrict+:} false; then :
17383 $as_echo_n "(cached) " >&6
17384else
17385 ac_cv_c_restrict=no
17386 # The order here caters to the fact that C++ does not require restrict.
17387 for ac_kw in __restrict __restrict__ _Restrict restrict; do
17388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17389/* end confdefs.h. */
17390typedef int * int_ptr;
17391 int foo (int_ptr $ac_kw ip) {
17392 return ip[0];
17393 }
17394int
17395main ()
17396{
17397int s[1];
17398 int * $ac_kw t = s;
17399 t[0] = 0;
17400 return foo(t)
17401 ;
17402 return 0;
17403}
17404_ACEOF
17405if ac_fn_cxx_try_compile "$LINENO"; then :
17406 ac_cv_c_restrict=$ac_kw
17407fi
17408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17409 test "$ac_cv_c_restrict" != no && break
17410 done
17411
17412fi
17413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17414$as_echo "$ac_cv_c_restrict" >&6; }
17415
17416 case $ac_cv_c_restrict in
17417 restrict) ;;
17418 no) $as_echo "@%:@define restrict /**/" >>confdefs.h
17419 ;;
17420 *) cat >>confdefs.h <<_ACEOF
17421@%:@define restrict $ac_cv_c_restrict
17422_ACEOF
17423 ;;
17424 esac
17425
17426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
17427$as_echo_n "checking for working volatile... " >&6; }
17428if ${ac_cv_c_volatile+:} false; then :
17429 $as_echo_n "(cached) " >&6
17430else
17431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17432/* end confdefs.h. */
17433
17434int
17435main ()
17436{
17437
17438volatile int x;
17439int * volatile y = (int *) 0;
17440return !x && !y;
17441 ;
17442 return 0;
17443}
17444_ACEOF
17445if ac_fn_cxx_try_compile "$LINENO"; then :
17446 ac_cv_c_volatile=yes
17447else
17448 ac_cv_c_volatile=no
17449fi
17450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17451fi
17452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
17453$as_echo "$ac_cv_c_volatile" >&6; }
17454if test $ac_cv_c_volatile = no; then
17455
17456$as_echo "@%:@define volatile /**/" >>confdefs.h
17457
17458fi
17459
17460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17461$as_echo_n "checking for inline... " >&6; }
17462if ${ac_cv_c_inline+:} false; then :
17463 $as_echo_n "(cached) " >&6
17464else
17465 ac_cv_c_inline=no
17466for ac_kw in inline __inline__ __inline; do
17467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17468/* end confdefs.h. */
17469#ifndef __cplusplus
17470typedef int foo_t;
17471static $ac_kw foo_t static_foo () {return 0; }
17472$ac_kw foo_t foo () {return 0; }
17473#endif
17474
17475_ACEOF
17476if ac_fn_cxx_try_compile "$LINENO"; then :
17477 ac_cv_c_inline=$ac_kw
17478fi
17479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17480 test "$ac_cv_c_inline" != no && break
17481done
17482
17483fi
17484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17485$as_echo "$ac_cv_c_inline" >&6; }
17486
17487case $ac_cv_c_inline in
17488 inline | yes) ;;
17489 *)
17490 case $ac_cv_c_inline in
17491 no) ac_val=;;
17492 *) ac_val=$ac_cv_c_inline;;
17493 esac
17494 cat >>confdefs.h <<_ACEOF
17495#ifndef __cplusplus
17496#define inline $ac_val
17497#endif
17498_ACEOF
17499 ;;
17500esac
17501
17502
17503
17504
17505if test "$prefix" != "/usr" ; then
17506 if test -d "$prefix" ; then
17507 bprefix="$prefix"
17508 else if test "$GCC" = "no" ; then
17509 bprefix=/usr/local ; fi
17510 fi
17511 if test -d $bprefix/include ; then
17512 COMMON_FLAGS="$COMMON_FLAGS -I$bprefix/include"
17513 fi
17514 if test -d $bprefix/lib ; then
17515 LIBS="$LIBS -L$bprefix/lib"
17516 fi
17517fi
17518
17519
17520
17521
17522
17523
17524 LT_MAJOR="`echo $LT_VERSION | sed s/:.*$//`"
17525 LT_MINOR="`echo $LT_VERSION | sed s/.*://`"
17526 LT_SUBVER="$LT_MAJOR.$LT_MINOR"
17527
17528
17529
17530
17531
17532if test -n "$ac_tool_prefix"; then
17533 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17534set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17536$as_echo_n "checking for $ac_word... " >&6; }
17537if ${ac_cv_prog_RANLIB+:} false; then :
17538 $as_echo_n "(cached) " >&6
17539else
17540 if test -n "$RANLIB"; then
17541 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17542else
17543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17544for as_dir in $PATH
17545do
17546 IFS=$as_save_IFS
17547 test -z "$as_dir" && as_dir=.
17548 for ac_exec_ext in '' $ac_executable_extensions; do
17549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17550 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17552 break 2
17553 fi
17554done
17555 done
17556IFS=$as_save_IFS
17557
17558fi
17559fi
17560RANLIB=$ac_cv_prog_RANLIB
17561if test -n "$RANLIB"; then
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17563$as_echo "$RANLIB" >&6; }
17564else
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17566$as_echo "no" >&6; }
17567fi
17568
17569
17570fi
17571if test -z "$ac_cv_prog_RANLIB"; then
17572 ac_ct_RANLIB=$RANLIB
17573 # Extract the first word of "ranlib", so it can be a program name with args.
17574set dummy ranlib; ac_word=$2
17575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17576$as_echo_n "checking for $ac_word... " >&6; }
17577if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
17578 $as_echo_n "(cached) " >&6
17579else
17580 if test -n "$ac_ct_RANLIB"; then
17581 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17582else
17583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17584for as_dir in $PATH
17585do
17586 IFS=$as_save_IFS
17587 test -z "$as_dir" && as_dir=.
17588 for ac_exec_ext in '' $ac_executable_extensions; do
17589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17590 ac_cv_prog_ac_ct_RANLIB="ranlib"
17591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17592 break 2
17593 fi
17594done
17595 done
17596IFS=$as_save_IFS
17597
17598fi
17599fi
17600ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17601if test -n "$ac_ct_RANLIB"; then
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17603$as_echo "$ac_ct_RANLIB" >&6; }
17604else
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17606$as_echo "no" >&6; }
17607fi
17608
17609 if test "x$ac_ct_RANLIB" = x; then
17610 RANLIB=":"
17611 else
17612 case $cross_compiling:$ac_tool_warned in
17613yes:)
17614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17616ac_tool_warned=yes ;;
17617esac
17618 RANLIB=$ac_ct_RANLIB
17619 fi
17620else
17621 RANLIB="$ac_cv_prog_RANLIB"
17622fi
17623
17624
17625
17626
17627 if test ! -z "$LT_VERSION" ; then
17628 LT_CCXX_VERSION="-version-info $LT_VERSION"
17629
17630 fi
17631
17632
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genorated automake files" >&5
17634$as_echo_n "checking for genorated automake files... " >&6; }
17635 if test -z "" ; then
17636 ost_AUTOMAKE_TEST=Makefile.in
17637 else
17638 ost_AUTOMAKE_TEST=
17639 fi
17640 if test ! -f $ost_AUTOMAKE_TEST ; then
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5
17642$as_echo "missing" >&6; }
17643 automake -a
17644 else
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
17646$as_echo "found" >&6; }
17647 fi
17648
17649
17650
17651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
17652$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
17653 @%:@ Check whether --enable-maintainer-mode was given.
17654if test "${enable_maintainer_mode+set}" = set; then :
17655 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
17656else
17657 USE_MAINTAINER_MODE=no
17658fi
17659
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
17661$as_echo "$USE_MAINTAINER_MODE" >&6; }
17662 if test $USE_MAINTAINER_MODE = yes; then
17663 MAINTAINER_MODE_TRUE=
17664 MAINTAINER_MODE_FALSE='#'
17665else
17666 MAINTAINER_MODE_TRUE='#'
17667 MAINTAINER_MODE_FALSE=
17668fi
17669
17670 MAINT=$MAINTAINER_MODE_TRUE
17671
17672
17673 if test -z "$MAINT" ; then
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maintainer ftp distribution directory" >&5
17675$as_echo_n "checking for maintainer ftp distribution directory... " >&6; }
17676 if test -d ~ftp/pub ; then
17677 FTPDIR=~ftp/pub
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
17679$as_echo "found" >&6; }
17680 else
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5
17682$as_echo "missing" >&6; }
17683 fi
17684 fi
17685
17686
17687
17688 WINVERSION="`echo $VERSION | sed 's/\./,/g'`,0"
17689
17690
17691
17692
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32 gnu environment" >&5
17694$as_echo_n "checking for Win32 gnu environment... " >&6; }
17695if ${ost_cv_gnuwin32+:} false; then :
17696 $as_echo_n "(cached) " >&6
17697else
17698
17699 ac_save_CFLAGS="$CFLAGS"
17700 CFLAGS=""
17701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17702/* end confdefs.h. */
17703
17704 #ifdef __WIN32__
17705 #ifdef __MINGW32__
17706 #define __RETURN_WIN32__ __MINGW32__
17707 #endif
17708 #ifdef __CYGWIN32__
17709 #define __RETURN_WIN32__ __CYGWIN32__
17710 #endif
17711 #endif
17712
17713int
17714main ()
17715{
17716return __RETURN_WIN32__;
17717 ;
17718 return 0;
17719}
17720_ACEOF
17721if ac_fn_cxx_try_compile "$LINENO"; then :
17722 ost_cv_gnuwin32=yes
17723
17724else
17725 ost_cv_gnuwin32=no
17726fi
17727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17728 rm -f conftest*
17729 CFLAGS="$ac_save_CFLAGS"
17730
17731fi
17732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ost_cv_gnuwin32" >&5
17733$as_echo "$ost_cv_gnuwin32" >&6; }
17734
17735
17736
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system meets Posix.1" >&5
17738$as_echo_n "checking whether system meets Posix.1... " >&6; }
17739if ${ost_cv_sys_posix1+:} false; then :
17740 $as_echo_n "(cached) " >&6
17741else
17742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17743/* end confdefs.h. */
17744
17745 #include <sys/types.h>
17746 #include <unistd.h>
17747
17748int
17749main ()
17750{
17751
17752 #ifndef _POSIX_VERSION
17753 fatal
17754 #endif
17755
17756 ;
17757 return 0;
17758}
17759_ACEOF
17760if ac_fn_cxx_try_compile "$LINENO"; then :
17761 ost_cv_sys_posix1=yes
17762else
17763 ost_cv_sys_posix1=no
17764
17765fi
17766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17767
17768fi
17769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ost_cv_sys_posix1" >&5
17770$as_echo "$ost_cv_sys_posix1" >&6; }
17771 if test $ost_cv_sys_posix1 = no ; then
17772 for ac_header in unistd.h
17773do :
17774 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
17775if test "x$ac_cv_header_unistd_h" = xyes; then :
17776 cat >>confdefs.h <<_ACEOF
17777@%:@define HAVE_UNISTD_H 1
17778_ACEOF
17779
17780fi
17781
17782done
17783
17784 else
17785
17786$as_echo "@%:@define HAVE_UNISTD_H 1" >>confdefs.h
17787
17788 fi
17789 for ac_header in features.h
17790do :
17791 ac_fn_cxx_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
17792if test "x$ac_cv_header_features_h" = xyes; then :
17793 cat >>confdefs.h <<_ACEOF
17794@%:@define HAVE_FEATURES_H 1
17795_ACEOF
17796
17797fi
17798
17799done
17800
17801
17802
17803
17804
17805 for ac_header in fcntl.h sys/fcntl.h
17806do :
17807 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17808ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17809if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17810 cat >>confdefs.h <<_ACEOF
17811@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17812_ACEOF
17813
17814fi
17815
17816done
17817
17818
17819
17820
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17822$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17823if ${ac_cv_header_time+:} false; then :
17824 $as_echo_n "(cached) " >&6
17825else
17826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17827/* end confdefs.h. */
17828#include <sys/types.h>
17829#include <sys/time.h>
17830#include <time.h>
17831
17832int
17833main ()
17834{
17835if ((struct tm *) 0)
17836return 0;
17837 ;
17838 return 0;
17839}
17840_ACEOF
17841if ac_fn_cxx_try_compile "$LINENO"; then :
17842 ac_cv_header_time=yes
17843else
17844 ac_cv_header_time=no
17845fi
17846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17847fi
17848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17849$as_echo "$ac_cv_header_time" >&6; }
17850if test $ac_cv_header_time = yes; then
17851
17852$as_echo "@%:@define TIME_WITH_SYS_TIME 1" >>confdefs.h
17853
17854fi
17855
17856 for ac_header in sys/time.h
17857do :
17858 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
17859if test "x$ac_cv_header_sys_time_h" = xyes; then :
17860 cat >>confdefs.h <<_ACEOF
17861@%:@define HAVE_SYS_TIME_H 1
17862_ACEOF
17863
17864fi
17865
17866done
17867
17868
17869
17870
17871
17872
17873 for ac_header in sys/types.h bits/wordsize.h
17874do :
17875 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17876ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17877if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17878 cat >>confdefs.h <<_ACEOF
17879@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17880_ACEOF
17881
17882fi
17883
17884done
17885
17886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17887/* end confdefs.h. */
17888#include <sys/types.h>
17889
17890_ACEOF
17891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17892 $EGREP "u_int8_t" >/dev/null 2>&1; then :
17893
17894
17895$as_echo "@%:@define HAVE_SYS_TYPES_STD 1" >>confdefs.h
17896
17897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17898/* end confdefs.h. */
17899#include <sys/types.h>
17900
17901_ACEOF
17902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17903 $EGREP "u_int64_t" >/dev/null 2>&1; then :
17904
17905
17906$as_echo "@%:@define HAVE_SYS_TYPES_64 1" >>confdefs.h
17907
17908
17909fi
17910rm -f conftest*
17911
17912
17913fi
17914rm -f conftest*
17915
17916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17917/* end confdefs.h. */
17918#include <sys/types.h>
17919
17920_ACEOF
17921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17922 $EGREP "long long" >/dev/null 2>&1; then :
17923
17924
17925$as_echo "@%:@define HAVE_LONG_LONG 1" >>confdefs.h
17926
17927
17928fi
17929rm -f conftest*
17930
17931
17932
17933
17934
17935
17936 ac_fn_cxx_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
17937if test "x$ac_cv_header_endian_h" = xyes; then :
17938
17939
17940$as_echo "@%:@define HAVE_ENDIAN_H 1" >>confdefs.h
17941
17942
17943else
17944
17945 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/isa_defs.h" "ac_cv_header_sys_isa_defs_h" "$ac_includes_default"
17946if test "x$ac_cv_header_sys_isa_defs_h" = xyes; then :
17947
17948
17949$as_echo "@%:@define HAVE_SYS_ISA_DEFS_H 1" >>confdefs.h
17950
17951
17952else
17953
17954 case "$target_cpu" in
17955 alpha* | i?86)
17956
17957$as_echo "@%:@define __BYTE_ORDER 1234" >>confdefs.h
17958
17959 ;;
17960 hppa* | m68* | mips* | powerpc* | sparc*)
17961 $as_echo "@%:@define __BYTE_ORDER 4321" >>confdefs.h
17962
17963 ;;
17964 esac
17965
17966fi
17967
17968
17969
17970fi
17971
17972
17973
17974
17975
17976
17977 for ac_func in sigaction
17978do :
17979 ac_fn_cxx_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
17980if test "x$ac_cv_func_sigaction" = xyes; then :
17981 cat >>confdefs.h <<_ACEOF
17982@%:@define HAVE_SIGACTION 1
17983_ACEOF
17984
17985fi
17986done
17987
17988 for ac_func in setitimer
17989do :
17990 ac_fn_cxx_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer"
17991if test "x$ac_cv_func_setitimer" = xyes; then :
17992 cat >>confdefs.h <<_ACEOF
17993@%:@define HAVE_SETITIMER 1
17994_ACEOF
17995
17996fi
17997done
17998
17999 for ac_func in sigwait
18000do :
18001 ac_fn_cxx_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
18002if test "x$ac_cv_func_sigwait" = xyes; then :
18003 cat >>confdefs.h <<_ACEOF
18004@%:@define HAVE_SIGWAIT 1
18005_ACEOF
18006
18007fi
18008done
18009
18010 for ac_header in bsd/signal.h
18011do :
18012 ac_fn_cxx_check_header_mongrel "$LINENO" "bsd/signal.h" "ac_cv_header_bsd_signal_h" "$ac_includes_default"
18013if test "x$ac_cv_header_bsd_signal_h" = xyes; then :
18014 cat >>confdefs.h <<_ACEOF
18015@%:@define HAVE_BSD_SIGNAL_H 1
18016_ACEOF
18017
18018fi
18019
18020done
18021
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
18023$as_echo_n "checking return type of signal handlers... " >&6; }
18024if ${ac_cv_type_signal+:} false; then :
18025 $as_echo_n "(cached) " >&6
18026else
18027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18028/* end confdefs.h. */
18029#include <sys/types.h>
18030#include <signal.h>
18031
18032int
18033main ()
18034{
18035return *(signal (0, 0)) (0) == 1;
18036 ;
18037 return 0;
18038}
18039_ACEOF
18040if ac_fn_cxx_try_compile "$LINENO"; then :
18041 ac_cv_type_signal=int
18042else
18043 ac_cv_type_signal=void
18044fi
18045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18046fi
18047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
18048$as_echo "$ac_cv_type_signal" >&6; }
18049
18050cat >>confdefs.h <<_ACEOF
18051@%:@define RETSIGTYPE $ac_cv_type_signal
18052_ACEOF
18053
18054
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sigwait has 2 arguments" >&5
18056$as_echo_n "checking whether sigwait has 2 arguments... " >&6; }
18057if ${ac_cv_ost_sigwait2+:} false; then :
18058 $as_echo_n "(cached) " >&6
18059else
18060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18061/* end confdefs.h. */
18062
18063 #ifndef _POSIX_PTHREAD_SEMANTICS
18064 #define _POSIX_PTHREAD_SEMANTICS
18065 #endif
18066 #ifndef _GNU_SOURCE
18067 #define _GNU_SOURCE
18068 #endif
18069 #include <stdio.h>
18070 #include <signal.h>
18071
18072int
18073main ()
18074{
18075
18076 sigset_t sigs; int signo; sigwait(&sigs, &signo);
18077 ;
18078 return 0;
18079}
18080_ACEOF
18081if ac_fn_cxx_try_compile "$LINENO"; then :
18082 ac_cv_ost_sigwait2=yes
18083else
18084 ac_cv_ost_sigwait2=no
18085
18086fi
18087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18088
18089fi
18090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ost_sigwait2" >&5
18091$as_echo "$ac_cv_ost_sigwait2" >&6; }
18092 if test "$ac_cv_ost_sigwait2" = "yes" ; then
18093
18094$as_echo "@%:@define HAVE_SIGWAIT2 1" >>confdefs.h
18095
18096 fi
18097
18098
18099
18100
18101 for ac_func in strcasecmp
18102do :
18103 ac_fn_cxx_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
18104if test "x$ac_cv_func_strcasecmp" = xyes; then :
18105 cat >>confdefs.h <<_ACEOF
18106@%:@define HAVE_STRCASECMP 1
18107_ACEOF
18108
18109fi
18110done
18111
18112 for ac_header in strings.h alloca.h
18113do :
18114 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18115ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18116if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18117 cat >>confdefs.h <<_ACEOF
18118@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18119_ACEOF
18120
18121fi
18122
18123done
18124
18125
18126
18127
18128
18129 ost_cv_libgetopt_long=false
18130 GETOPT_LIBS=""
18131 LIBGETOPTOBJS=""
18132
18133 for ac_func in getopt
18134do :
18135 ac_fn_cxx_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
18136if test "x$ac_cv_func_getopt" = xyes; then :
18137 cat >>confdefs.h <<_ACEOF
18138@%:@define HAVE_GETOPT 1
18139_ACEOF
18140
18141
18142$as_echo "@%:@define HAVE_GETOPT 1" >>confdefs.h
18143
18144
18145else
18146
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt in -lm" >&5
18148$as_echo_n "checking for getopt in -lm... " >&6; }
18149if ${ac_cv_lib_m_getopt+:} false; then :
18150 $as_echo_n "(cached) " >&6
18151else
18152 ac_check_lib_save_LIBS=$LIBS
18153LIBS="-lm $LIBS"
18154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18155/* end confdefs.h. */
18156
18157/* Override any GCC internal prototype to avoid an error.
18158 Use char because int might match the return type of a GCC
18159 builtin and then its argument prototype would still apply. */
18160#ifdef __cplusplus
18161extern "C"
18162#endif
18163char getopt ();
18164int
18165main ()
18166{
18167return getopt ();
18168 ;
18169 return 0;
18170}
18171_ACEOF
18172if ac_fn_cxx_try_link "$LINENO"; then :
18173 ac_cv_lib_m_getopt=yes
18174else
18175 ac_cv_lib_m_getopt=no
18176fi
18177rm -f core conftest.err conftest.$ac_objext \
18178 conftest$ac_exeext conftest.$ac_ext
18179LIBS=$ac_check_lib_save_LIBS
18180fi
18181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_getopt" >&5
18182$as_echo "$ac_cv_lib_m_getopt" >&6; }
18183if test "x$ac_cv_lib_m_getopt" = xyes; then :
18184
18185 $as_echo "@%:@define HAVE_GETOPT 1" >>confdefs.h
18186
18187 GETOPT_LIBS="-lm"
18188
18189fi
18190
18191
18192fi
18193done
18194
18195 for ac_header in getopt.h
18196do :
18197 ac_fn_cxx_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
18198if test "x$ac_cv_header_getopt_h" = xyes; then :
18199 cat >>confdefs.h <<_ACEOF
18200@%:@define HAVE_GETOPT_H 1
18201_ACEOF
18202
18203fi
18204
18205done
18206
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long in -lgnugetopt" >&5
18208$as_echo_n "checking for getopt_long in -lgnugetopt... " >&6; }
18209if ${ac_cv_lib_gnugetopt_getopt_long+:} false; then :
18210 $as_echo_n "(cached) " >&6
18211else
18212 ac_check_lib_save_LIBS=$LIBS
18213LIBS="-lgnugetopt $LIBS"
18214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18215/* end confdefs.h. */
18216
18217/* Override any GCC internal prototype to avoid an error.
18218 Use char because int might match the return type of a GCC
18219 builtin and then its argument prototype would still apply. */
18220#ifdef __cplusplus
18221extern "C"
18222#endif
18223char getopt_long ();
18224int
18225main ()
18226{
18227return getopt_long ();
18228 ;
18229 return 0;
18230}
18231_ACEOF
18232if ac_fn_cxx_try_link "$LINENO"; then :
18233 ac_cv_lib_gnugetopt_getopt_long=yes
18234else
18235 ac_cv_lib_gnugetopt_getopt_long=no
18236fi
18237rm -f core conftest.err conftest.$ac_objext \
18238 conftest$ac_exeext conftest.$ac_ext
18239LIBS=$ac_check_lib_save_LIBS
18240fi
18241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
18242$as_echo "$ac_cv_lib_gnugetopt_getopt_long" >&6; }
18243if test "x$ac_cv_lib_gnugetopt_getopt_long" = xyes; then :
18244
18245
18246$as_echo "@%:@define HAVE_GETOPT_LONG 1" >>confdefs.h
18247
18248 GETOPT_LIBS="-lgnugetopt $GETOPT_LIBS"
18249 LIBS="$LIBS -lgnugetopt"
18250else
18251
18252 for ac_func in getopt_long
18253do :
18254 ac_fn_cxx_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
18255if test "x$ac_cv_func_getopt_long" = xyes; then :
18256 cat >>confdefs.h <<_ACEOF
18257@%:@define HAVE_GETOPT_LONG 1
18258_ACEOF
18259
18260 $as_echo "@%:@define HAVE_GETOPT_LONG 1" >>confdefs.h
18261
18262
18263else
18264
18265 LIBGETOPTOBJS="getopt.c getopt1.c"
18266
18267fi
18268done
18269
18270
18271fi
18272
18273
18274
18275
18276
18277 DYN_LOADER=''
18278 ost_cv_dynloader=no
18279
18280 for ac_header in dlfcn.h
18281do :
18282 ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
18283if test "x$ac_cv_header_dlfcn_h" = xyes; then :
18284 cat >>confdefs.h <<_ACEOF
18285@%:@define HAVE_DLFCN_H 1
18286_ACEOF
18287
18288fi
18289
18290done
18291
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18293$as_echo_n "checking for shl_load in -ldld... " >&6; }
18294if ${ac_cv_lib_dld_shl_load+:} false; then :
18295 $as_echo_n "(cached) " >&6
18296else
18297 ac_check_lib_save_LIBS=$LIBS
18298LIBS="-ldld $LIBS"
18299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18300/* end confdefs.h. */
18301
18302/* Override any GCC internal prototype to avoid an error.
18303 Use char because int might match the return type of a GCC
18304 builtin and then its argument prototype would still apply. */
18305#ifdef __cplusplus
18306extern "C"
18307#endif
18308char shl_load ();
18309int
18310main ()
18311{
18312return shl_load ();
18313 ;
18314 return 0;
18315}
18316_ACEOF
18317if ac_fn_cxx_try_link "$LINENO"; then :
18318 ac_cv_lib_dld_shl_load=yes
18319else
18320 ac_cv_lib_dld_shl_load=no
18321fi
18322rm -f core conftest.err conftest.$ac_objext \
18323 conftest$ac_exeext conftest.$ac_ext
18324LIBS=$ac_check_lib_save_LIBS
18325fi
18326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18327$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18328if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18329 DYN_LOADER=-ldld,
18330
18331$as_echo "@%:@define HAVE_SHL_LOAD 1" >>confdefs.h
18332
18333fi
18334
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18336$as_echo_n "checking for dlopen in -ldl... " >&6; }
18337if ${ac_cv_lib_dl_dlopen+:} false; then :
18338 $as_echo_n "(cached) " >&6
18339else
18340 ac_check_lib_save_LIBS=$LIBS
18341LIBS="-ldl $LIBS"
18342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18343/* end confdefs.h. */
18344
18345/* Override any GCC internal prototype to avoid an error.
18346 Use char because int might match the return type of a GCC
18347 builtin and then its argument prototype would still apply. */
18348#ifdef __cplusplus
18349extern "C"
18350#endif
18351char dlopen ();
18352int
18353main ()
18354{
18355return dlopen ();
18356 ;
18357 return 0;
18358}
18359_ACEOF
18360if ac_fn_cxx_try_link "$LINENO"; then :
18361 ac_cv_lib_dl_dlopen=yes
18362else
18363 ac_cv_lib_dl_dlopen=no
18364fi
18365rm -f core conftest.err conftest.$ac_objext \
18366 conftest$ac_exeext conftest.$ac_ext
18367LIBS=$ac_check_lib_save_LIBS
18368fi
18369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18370$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18371if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18372 DYN_LOADER=-ldl
18373fi
18374
18375 if test ! -z "$DYN_LOADER" ; then
18376 ost_cv_dynloader=yes
18377
18378$as_echo "@%:@define HAVE_MODULES 1" >>confdefs.h
18379
18380 else
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
18382$as_echo_n "checking for dlopen in -lc... " >&6; }
18383if ${ac_cv_lib_c_dlopen+:} false; then :
18384 $as_echo_n "(cached) " >&6
18385else
18386 ac_check_lib_save_LIBS=$LIBS
18387LIBS="-lc $LIBS"
18388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18389/* end confdefs.h. */
18390
18391/* Override any GCC internal prototype to avoid an error.
18392 Use char because int might match the return type of a GCC
18393 builtin and then its argument prototype would still apply. */
18394#ifdef __cplusplus
18395extern "C"
18396#endif
18397char dlopen ();
18398int
18399main ()
18400{
18401return dlopen ();
18402 ;
18403 return 0;
18404}
18405_ACEOF
18406if ac_fn_cxx_try_link "$LINENO"; then :
18407 ac_cv_lib_c_dlopen=yes
18408else
18409 ac_cv_lib_c_dlopen=no
18410fi
18411rm -f core conftest.err conftest.$ac_objext \
18412 conftest$ac_exeext conftest.$ac_ext
18413LIBS=$ac_check_lib_save_LIBS
18414fi
18415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
18416$as_echo "$ac_cv_lib_c_dlopen" >&6; }
18417if test "x$ac_cv_lib_c_dlopen" = xyes; then :
18418
18419 ost_cv_dynloader=yes
18420 $as_echo "@%:@define HAVE_MODULES 1" >>confdefs.h
18421
18422
18423else
18424
18425 for ac_header in mach-o/dyld.h
18426do :
18427 ac_fn_cxx_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
18428if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
18429 cat >>confdefs.h <<_ACEOF
18430@%:@define HAVE_MACH_O_DYLD_H 1
18431_ACEOF
18432
18433 ost_cv_dynloader=yes
18434 $as_echo "@%:@define HAVE_MODULES 1" >>confdefs.h
18435
18436
18437$as_echo "@%:@define HAVE_MACH_DYLD 1" >>confdefs.h
18438
18439
18440fi
18441
18442done
18443
18444
18445fi
18446
18447 fi
18448
18449
18450
18451
18452
18453 THREAD_FLAGS=""
18454 THREAD_LIBS=""
18455 ost_cv_thread_library="none"
18456 ost_cv_rt_library="none"
18457 ost_cv_cxx_mode=false
18458
18459
18460@%:@ Check whether --with-pthread was given.
18461if test "${with_pthread+set}" = set; then :
18462 withval=$with_pthread; if test "$withval" != "" ; then ost_cv_thread_library=$withval ; fi
18463
18464fi
18465
18466
18467
18468@%:@ Check whether --with-linuxthreads was given.
18469if test "${with_linuxthreads+set}" = set; then :
18470 withval=$with_linuxthreads;
18471 ost_cv_thread_library=lthread
18472
18473$as_echo "@%:@define WITH_LINUXTHREADS 1" >>confdefs.h
18474
18475 if test "$withval" != "yes" ; then
18476 THREAD_FLAGS="-D__USE_GNU -D__USE_UNIX98 -I$withval $THREAD_FLAGS"
18477 CFLAGS="-D__USE_GNU -D__USE_UNIX98 -I$withval $CFLAGS"
18478 else
18479 THREAD_FLAGS="-D__USE_GNU -D__USE_UNIX98 -I/usr/local/include/pthread/linuxthreads $THREAD_FLAGS"
18480 CFLAGS="-D__USE_GNU -D__USE_UNIX98 -I/usr/local/include/pthread/linuxthreads $CFLAGS"
18481 fi
18482
18483fi
18484
18485
18486 for ac_header in pthread.h
18487do :
18488 ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
18489if test "x$ac_cv_header_pthread_h" = xyes; then :
18490 cat >>confdefs.h <<_ACEOF
18491@%:@define HAVE_PTHREAD_H 1
18492_ACEOF
18493
18494
18495$as_echo "@%:@define HAVE_PTHREAD_H 1" >>confdefs.h
18496
18497 ost_cv_posix_threads=yes
18498else
18499 ost_cv_posix_threads=no
18500fi
18501
18502done
18503
18504
18505 if test $ost_cv_posix_threads = no ; then
18506
18507 ac_save_CXXFLAGS="$CXXFLAGS"
18508 ac_ext=cpp
18509ac_cpp='$CXXCPP $CPPFLAGS'
18510ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18511ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18512ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18513
18514 CXXFLAGS="$CXXFLAGS -pthread"
18515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18516/* end confdefs.h. */
18517#include <pthread.h>
18518int
18519main ()
18520{
18521
18522 ;
18523 return 0;
18524}
18525_ACEOF
18526if ac_fn_cxx_try_compile "$LINENO"; then :
18527 $as_echo "@%:@define HAVE_PTHREAD_H 1" >>confdefs.h
18528
18529 ost_cv_cxx_mode=true
18530 ost_cv_posix_threads=yes
18531fi
18532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18533 CXXFLAGS="$ac_save_CXXFLAGS"
18534 ac_ext=cpp
18535ac_cpp='$CXXCPP $CPPFLAGS'
18536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18539
18540 fi
18541
18542
18543 ac_save_CXXFLAGS="$CXXFLAGS"
18544 CXXFLAGS=""
18545 ac_ext=cpp
18546ac_cpp='$CXXCPP $CPPFLAGS'
18547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18550
18551
18552 ost_cv_posix_atomic=no
18553 for ac_header in sys/atomic_op.h
18554do :
18555 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/atomic_op.h" "ac_cv_header_sys_atomic_op_h" "$ac_includes_default"
18556if test "x$ac_cv_header_sys_atomic_op_h" = xyes; then :
18557 cat >>confdefs.h <<_ACEOF
18558@%:@define HAVE_SYS_ATOMIC_OP_H 1
18559_ACEOF
18560
18561
18562$as_echo "@%:@define HAVE_ATOMIC_AIX 1" >>confdefs.h
18563
18564
18565fi
18566
18567done
18568
18569 for ac_header in sys/atomic.h
18570do :
18571 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/atomic.h" "ac_cv_header_sys_atomic_h" "$ac_includes_default"
18572if test "x$ac_cv_header_sys_atomic_h" = xyes; then :
18573 cat >>confdefs.h <<_ACEOF
18574@%:@define HAVE_SYS_ATOMIC_H 1
18575_ACEOF
18576 ost_cv_posix_sys_atomic=yes
18577else
18578 ost_cv_posix_sys_atomic=no
18579fi
18580
18581done
18582
18583 if test $ost_cv_posix_sys_atomic = yes ; then
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_t" >&5
18585$as_echo_n "checking for atomic_t... " >&6; }
18586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18587/* end confdefs.h. */
18588#include <sys/atomic.h>
18589int
18590main ()
18591{
18592
18593 atomic_t at; at.counter = 1;
18594 atomic_dec_and_test(&at);
18595 atomic_sub(4, &at);
18596 atomic_inc(&at);
18597 atomic_add(3, &at);
18598
18599 ;
18600 return 0;
18601}
18602_ACEOF
18603if ac_fn_cxx_try_compile "$LINENO"; then :
18604
18605 ost_cv_posix_atomic=yes
18606
18607$as_echo "@%:@define HAVE_WORKING_SYS_ATOMIC_H 1" >>confdefs.h
18608
18609else
18610 ost_cv_posix_atomic=no
18611fi
18612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ost_cv_posix_atomic" >&5
18614$as_echo "$ost_cv_posix_atomic" >&6; }
18615 fi
18616
18617 if test 0 = 1 ; then
18618 for ac_header in bits/atomicity.h
18619do :
18620 ac_fn_cxx_check_header_mongrel "$LINENO" "bits/atomicity.h" "ac_cv_header_bits_atomicity_h" "$ac_includes_default"
18621if test "x$ac_cv_header_bits_atomicity_h" = xyes; then :
18622 cat >>confdefs.h <<_ACEOF
18623@%:@define HAVE_BITS_ATOMICITY_H 1
18624_ACEOF
18625 ost_cv_bits_atomicity=yes
18626else
18627 ost_cv_bits_atomicity=no
18628fi
18629
18630done
18631
18632 if test $ost_cv_bits_atomicity = yes ; then
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Atomic_word" >&5
18634$as_echo_n "checking for _Atomic_word... " >&6; }
18635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18636/* end confdefs.h. */
18637#include <bits/atomicity.h>
18638int
18639main ()
18640{
18641
18642 _Atomic_word i = 0;
18643 __atomic_add(&i, 1);
18644 __exchange_and_add(&i, 1);
18645
18646 ;
18647 return 0;
18648}
18649_ACEOF
18650if ac_fn_cxx_try_compile "$LINENO"; then :
18651 ost_cv_gcc_atomic=yes
18652
18653$as_echo "@%:@define HAVE_GCC_BITS_ATOMIC 1" >>confdefs.h
18654
18655else
18656 ost_cv_gcc_atomic=no
18657fi
18658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ost_cv_gcc_atomic" >&5
18660$as_echo "$ost_cv_gcc_atomic" >&6; }
18661
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gnu_cxx::_Atomic_word" >&5
18663$as_echo_n "checking for __gnu_cxx::_Atomic_word... " >&6; }
18664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18665/* end confdefs.h. */
18666#include <bits/atomicity.h>
18667int
18668main ()
18669{
18670
18671 using namespace __gnu_cxx;
18672 _Atomic_word i = 0;
18673 __atomic_add(&i, 1);
18674 __exchange_and_add(&i, 1);
18675
18676 ;
18677 return 0;
18678}
18679_ACEOF
18680if ac_fn_cxx_try_compile "$LINENO"; then :
18681
18682 ost_cv_gcc_cxx_atomic=yes
18683
18684$as_echo "@%:@define HAVE_GCC_CXX_BITS_ATOMIC 1" >>confdefs.h
18685
18686
18687else
18688
18689 ost_cv_gcc_cxx_atomic=no
18690
18691fi
18692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ost_cv_gcc_cxx_atomic" >&5
18694$as_echo "$ost_cv_gcc_cxx_atomic" >&6; }
18695 fi
18696 fi
18697
18698 ac_ext=cpp
18699ac_cpp='$CXXCPP $CPPFLAGS'
18700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18703
18704 CXXFLAGS="$ac_save_CXXFLAGS"
18705
18706 if test "$target" = NONE ; then
18707 targetdir=""
18708 else
18709 targetdir="$target"
18710 fi
18711
18712 for ac_header in thread.h
18713do :
18714 ac_fn_cxx_check_header_mongrel "$LINENO" "thread.h" "ac_cv_header_thread_h" "$ac_includes_default"
18715if test "x$ac_cv_header_thread_h" = xyes; then :
18716 cat >>confdefs.h <<_ACEOF
18717@%:@define HAVE_THREAD_H 1
18718_ACEOF
18719
18720fi
18721
18722done
18723
18724 if test "$prefix" = NONE ; then
18725 thrprefix="/usr/$targetdir/include"
18726 if test -d /usr/$targetdir/sys-include ; then
18727 thrprefix="$prefix/$targetdir/sys-include" ; fi
18728 else
18729 thrprefix="$prefix/$targetdir/include"
18730 if test -d "$prefix/$targetdir/sys-include" ; then
18731 thrprefix="$prefix/$targetdir/sys-include" ; fi
18732 fi
18733
18734 if test ! -f $thrprefix/thread.h ; then
18735 thrprefix=/usr/include
18736 fi
18737
18738
18739
18740 if test $ost_cv_posix_threads = yes ; then
18741 if test "$ost_cv_thread_library" = "none" ; then
18742 ost_cv_thread_flags=""
18743 for flags in -kthread -pthread -mthreads -pthreads -Kthread --threadsafe -mt ; do
18744
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts $flags" >&5
18746$as_echo_n "checking whether ${CC-cc} accepts $flags... " >&6; }
18747 echo 'void f(){}' >conftest.c
18748 if test -z "`${CC-cc} $flags -c conftest.c 2>&1`"; then
18749 ost_cv_thread_flags=$flags
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18751$as_echo "yes" >&6; }
18752 else
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18754$as_echo "no" >&6; }
18755 fi
18756 rm -f conftest*
18757 if test ! -z "$ost_cv_thread_flags" ; then break ; fi
18758 done
18759 # if test "$ost_cv_prog_cc_pthread" = "no" ; then
18760 # AC_CACHE_CHECK(whether ${CC-cc} accepts -mthreads,
18761 # ost_cv_prog_cc_mthreads,
18762 # [echo 'void f(){}' >conftest.c
18763 # if test -z "`${CC-cc} -mthreads -c conftest.c 2>&1`"; then
18764 # ost_cv_prog_cc_mthreads=yes
18765 # else
18766 # ost_cv_prog_cc_mthreads=no
18767 # fi
18768 # rm -f conftest*
18769 # ])
18770 # fi
18771 ost_cv_thread_library=none
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
18773$as_echo_n "checking for pthread_self in -lpthread... " >&6; }
18774if ${ac_cv_lib_pthread_pthread_self+:} false; then :
18775 $as_echo_n "(cached) " >&6
18776else
18777 ac_check_lib_save_LIBS=$LIBS
18778LIBS="-lpthread $LIBS"
18779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18780/* end confdefs.h. */
18781
18782/* Override any GCC internal prototype to avoid an error.
18783 Use char because int might match the return type of a GCC
18784 builtin and then its argument prototype would still apply. */
18785#ifdef __cplusplus
18786extern "C"
18787#endif
18788char pthread_self ();
18789int
18790main ()
18791{
18792return pthread_self ();
18793 ;
18794 return 0;
18795}
18796_ACEOF
18797if ac_fn_cxx_try_link "$LINENO"; then :
18798 ac_cv_lib_pthread_pthread_self=yes
18799else
18800 ac_cv_lib_pthread_pthread_self=no
18801fi
18802rm -f core conftest.err conftest.$ac_objext \
18803 conftest$ac_exeext conftest.$ac_ext
18804LIBS=$ac_check_lib_save_LIBS
18805fi
18806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
18807$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
18808if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
18809 ost_cv_thread_library=pthread
18810else
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lc_r" >&5
18812$as_echo_n "checking for pthread_self in -lc_r... " >&6; }
18813if ${ac_cv_lib_c_r_pthread_self+:} false; then :
18814 $as_echo_n "(cached) " >&6
18815else
18816 ac_check_lib_save_LIBS=$LIBS
18817LIBS="-lc_r $LIBS"
18818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18819/* end confdefs.h. */
18820
18821/* Override any GCC internal prototype to avoid an error.
18822 Use char because int might match the return type of a GCC
18823 builtin and then its argument prototype would still apply. */
18824#ifdef __cplusplus
18825extern "C"
18826#endif
18827char pthread_self ();
18828int
18829main ()
18830{
18831return pthread_self ();
18832 ;
18833 return 0;
18834}
18835_ACEOF
18836if ac_fn_cxx_try_link "$LINENO"; then :
18837 ac_cv_lib_c_r_pthread_self=yes
18838else
18839 ac_cv_lib_c_r_pthread_self=no
18840fi
18841rm -f core conftest.err conftest.$ac_objext \
18842 conftest$ac_exeext conftest.$ac_ext
18843LIBS=$ac_check_lib_save_LIBS
18844fi
18845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_self" >&5
18846$as_echo "$ac_cv_lib_c_r_pthread_self" >&6; }
18847if test "x$ac_cv_lib_c_r_pthread_self" = xyes; then :
18848 ost_cv_thread_library=c_r
18849else
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
18851$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
18852if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
18853 $as_echo_n "(cached) " >&6
18854else
18855 ac_check_lib_save_LIBS=$LIBS
18856LIBS="-lpthread $LIBS"
18857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18858/* end confdefs.h. */
18859
18860/* Override any GCC internal prototype to avoid an error.
18861 Use char because int might match the return type of a GCC
18862 builtin and then its argument prototype would still apply. */
18863#ifdef __cplusplus
18864extern "C"
18865#endif
18866char pthread_kill ();
18867int
18868main ()
18869{
18870return pthread_kill ();
18871 ;
18872 return 0;
18873}
18874_ACEOF
18875if ac_fn_cxx_try_link "$LINENO"; then :
18876 ac_cv_lib_pthread_pthread_kill=yes
18877else
18878 ac_cv_lib_pthread_pthread_kill=no
18879fi
18880rm -f core conftest.err conftest.$ac_objext \
18881 conftest$ac_exeext conftest.$ac_ext
18882LIBS=$ac_check_lib_save_LIBS
18883fi
18884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
18885$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
18886if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
18887 ost_cv_thread_library=pthread
18888else
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthreads" >&5
18890$as_echo_n "checking for pthread_self in -lpthreads... " >&6; }
18891if ${ac_cv_lib_pthreads_pthread_self+:} false; then :
18892 $as_echo_n "(cached) " >&6
18893else
18894 ac_check_lib_save_LIBS=$LIBS
18895LIBS="-lpthreads $LIBS"
18896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18897/* end confdefs.h. */
18898
18899/* Override any GCC internal prototype to avoid an error.
18900 Use char because int might match the return type of a GCC
18901 builtin and then its argument prototype would still apply. */
18902#ifdef __cplusplus
18903extern "C"
18904#endif
18905char pthread_self ();
18906int
18907main ()
18908{
18909return pthread_self ();
18910 ;
18911 return 0;
18912}
18913_ACEOF
18914if ac_fn_cxx_try_link "$LINENO"; then :
18915 ac_cv_lib_pthreads_pthread_self=yes
18916else
18917 ac_cv_lib_pthreads_pthread_self=no
18918fi
18919rm -f core conftest.err conftest.$ac_objext \
18920 conftest$ac_exeext conftest.$ac_ext
18921LIBS=$ac_check_lib_save_LIBS
18922fi
18923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_self" >&5
18924$as_echo "$ac_cv_lib_pthreads_pthread_self" >&6; }
18925if test "x$ac_cv_lib_pthreads_pthread_self" = xyes; then :
18926 ost_cv_thread_library=pthreads
18927else
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lthread" >&5
18929$as_echo_n "checking for pthread_self in -lthread... " >&6; }
18930if ${ac_cv_lib_thread_pthread_self+:} false; then :
18931 $as_echo_n "(cached) " >&6
18932else
18933 ac_check_lib_save_LIBS=$LIBS
18934LIBS="-lthread $LIBS"
18935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18936/* end confdefs.h. */
18937
18938/* Override any GCC internal prototype to avoid an error.
18939 Use char because int might match the return type of a GCC
18940 builtin and then its argument prototype would still apply. */
18941#ifdef __cplusplus
18942extern "C"
18943#endif
18944char pthread_self ();
18945int
18946main ()
18947{
18948return pthread_self ();
18949 ;
18950 return 0;
18951}
18952_ACEOF
18953if ac_fn_cxx_try_link "$LINENO"; then :
18954 ac_cv_lib_thread_pthread_self=yes
18955else
18956 ac_cv_lib_thread_pthread_self=no
18957fi
18958rm -f core conftest.err conftest.$ac_objext \
18959 conftest$ac_exeext conftest.$ac_ext
18960LIBS=$ac_check_lib_save_LIBS
18961fi
18962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_pthread_self" >&5
18963$as_echo "$ac_cv_lib_thread_pthread_self" >&6; }
18964if test "x$ac_cv_lib_thread_pthread_self" = xyes; then :
18965 ost_cv_thread_library=thread
18966fi
18967
18968fi
18969
18970fi
18971
18972fi
18973
18974fi
18975
18976
18977 if test $ost_cv_thread_library = none ; then
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lgthreads" >&5
18979$as_echo_n "checking for pthread_self in -lgthreads... " >&6; }
18980if ${ac_cv_lib_gthreads_pthread_self+:} false; then :
18981 $as_echo_n "(cached) " >&6
18982else
18983 ac_check_lib_save_LIBS=$LIBS
18984LIBS="-lgthreads $LIBS"
18985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18986/* end confdefs.h. */
18987
18988/* Override any GCC internal prototype to avoid an error.
18989 Use char because int might match the return type of a GCC
18990 builtin and then its argument prototype would still apply. */
18991#ifdef __cplusplus
18992extern "C"
18993#endif
18994char pthread_self ();
18995int
18996main ()
18997{
18998return pthread_self ();
18999 ;
19000 return 0;
19001}
19002_ACEOF
19003if ac_fn_cxx_try_link "$LINENO"; then :
19004 ac_cv_lib_gthreads_pthread_self=yes
19005else
19006 ac_cv_lib_gthreads_pthread_self=no
19007fi
19008rm -f core conftest.err conftest.$ac_objext \
19009 conftest$ac_exeext conftest.$ac_ext
19010LIBS=$ac_check_lib_save_LIBS
19011fi
19012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gthreads_pthread_self" >&5
19013$as_echo "$ac_cv_lib_gthreads_pthread_self" >&6; }
19014if test "x$ac_cv_lib_gthreads_pthread_self" = xyes; then :
19015
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lmalloc" >&5
19017$as_echo_n "checking for malloc in -lmalloc... " >&6; }
19018if ${ac_cv_lib_malloc_malloc+:} false; then :
19019 $as_echo_n "(cached) " >&6
19020else
19021 ac_check_lib_save_LIBS=$LIBS
19022LIBS="-lmalloc $LIBS"
19023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19024/* end confdefs.h. */
19025
19026/* Override any GCC internal prototype to avoid an error.
19027 Use char because int might match the return type of a GCC
19028 builtin and then its argument prototype would still apply. */
19029#ifdef __cplusplus
19030extern "C"
19031#endif
19032char malloc ();
19033int
19034main ()
19035{
19036return malloc ();
19037 ;
19038 return 0;
19039}
19040_ACEOF
19041if ac_fn_cxx_try_link "$LINENO"; then :
19042 ac_cv_lib_malloc_malloc=yes
19043else
19044 ac_cv_lib_malloc_malloc=no
19045fi
19046rm -f core conftest.err conftest.$ac_objext \
19047 conftest$ac_exeext conftest.$ac_ext
19048LIBS=$ac_check_lib_save_LIBS
19049fi
19050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_malloc_malloc" >&5
19051$as_echo "$ac_cv_lib_malloc_malloc" >&6; }
19052if test "x$ac_cv_lib_malloc_malloc" = xyes; then :
19053 cat >>confdefs.h <<_ACEOF
19054@%:@define HAVE_LIBMALLOC 1
19055_ACEOF
19056
19057 LIBS="-lmalloc $LIBS"
19058
19059fi
19060
19061 ost_cv_thread_library=gthreads
19062fi
19063
19064 fi
19065 if test $ost_cv_thread_library = none ; then
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lcma" >&5
19067$as_echo_n "checking for pthread_self in -lcma... " >&6; }
19068if ${ac_cv_lib_cma_pthread_self+:} false; then :
19069 $as_echo_n "(cached) " >&6
19070else
19071 ac_check_lib_save_LIBS=$LIBS
19072LIBS="-lcma $LIBS"
19073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19074/* end confdefs.h. */
19075
19076/* Override any GCC internal prototype to avoid an error.
19077 Use char because int might match the return type of a GCC
19078 builtin and then its argument prototype would still apply. */
19079#ifdef __cplusplus
19080extern "C"
19081#endif
19082char pthread_self ();
19083int
19084main ()
19085{
19086return pthread_self ();
19087 ;
19088 return 0;
19089}
19090_ACEOF
19091if ac_fn_cxx_try_link "$LINENO"; then :
19092 ac_cv_lib_cma_pthread_self=yes
19093else
19094 ac_cv_lib_cma_pthread_self=no
19095fi
19096rm -f core conftest.err conftest.$ac_objext \
19097 conftest$ac_exeext conftest.$ac_ext
19098LIBS=$ac_check_lib_save_LIBS
19099fi
19100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_self" >&5
19101$as_echo "$ac_cv_lib_cma_pthread_self" >&6; }
19102if test "x$ac_cv_lib_cma_pthread_self" = xyes; then :
19103 ost_cv_thread_library=cma
19104fi
19105
19106 fi
19107
19108 if test $ost_cv_thread_library = none ; then
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lc" >&5
19110$as_echo_n "checking for pthread_self in -lc... " >&6; }
19111if ${ac_cv_lib_c_pthread_self+:} false; then :
19112 $as_echo_n "(cached) " >&6
19113else
19114 ac_check_lib_save_LIBS=$LIBS
19115LIBS="-lc $LIBS"
19116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19117/* end confdefs.h. */
19118
19119/* Override any GCC internal prototype to avoid an error.
19120 Use char because int might match the return type of a GCC
19121 builtin and then its argument prototype would still apply. */
19122#ifdef __cplusplus
19123extern "C"
19124#endif
19125char pthread_self ();
19126int
19127main ()
19128{
19129return pthread_self ();
19130 ;
19131 return 0;
19132}
19133_ACEOF
19134if ac_fn_cxx_try_link "$LINENO"; then :
19135 ac_cv_lib_c_pthread_self=yes
19136else
19137 ac_cv_lib_c_pthread_self=no
19138fi
19139rm -f core conftest.err conftest.$ac_objext \
19140 conftest$ac_exeext conftest.$ac_ext
19141LIBS=$ac_check_lib_save_LIBS
19142fi
19143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_self" >&5
19144$as_echo "$ac_cv_lib_c_pthread_self" >&6; }
19145if test "x$ac_cv_lib_c_pthread_self" = xyes; then :
19146 ost_cv_thread_library=c
19147fi
19148
19149 fi
19150
19151 if test $ost_cv_thread_library = none ; then
19152 as_fn_error $? "no library for posix threads found!" "$LINENO" 5
19153 fi
19154 else
19155 # ost_cv_prog_cc_pthread=no
19156 # ost_cv_prog_cc_mthreads=no
19157 ost_cv_thread_flags=""
19158 fi
19159
19160 as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_mach_thread_np" | $as_tr_sh`
19161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mach_thread_np in -l${ost_cv_thread_library}" >&5
19162$as_echo_n "checking for pthread_mach_thread_np in -l${ost_cv_thread_library}... " >&6; }
19163if eval \${$as_ac_Lib+:} false; then :
19164 $as_echo_n "(cached) " >&6
19165else
19166 ac_check_lib_save_LIBS=$LIBS
19167LIBS="-l${ost_cv_thread_library} $LIBS"
19168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19169/* end confdefs.h. */
19170
19171/* Override any GCC internal prototype to avoid an error.
19172 Use char because int might match the return type of a GCC
19173 builtin and then its argument prototype would still apply. */
19174#ifdef __cplusplus
19175extern "C"
19176#endif
19177char pthread_mach_thread_np ();
19178int
19179main ()
19180{
19181return pthread_mach_thread_np ();
19182 ;
19183 return 0;
19184}
19185_ACEOF
19186if ac_fn_cxx_try_link "$LINENO"; then :
19187 eval "$as_ac_Lib=yes"
19188else
19189 eval "$as_ac_Lib=no"
19190fi
19191rm -f core conftest.err conftest.$ac_objext \
19192 conftest$ac_exeext conftest.$ac_ext
19193LIBS=$ac_check_lib_save_LIBS
19194fi
19195eval ac_res=\$$as_ac_Lib
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19197$as_echo "$ac_res" >&6; }
19198if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19199
19200$as_echo "@%:@define HAVE_PTHREAD_MACH_THREAD_NP 1" >>confdefs.h
19201
19202
19203fi
19204
19205
19206 as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_nanosleep" | $as_tr_sh`
19207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -l${ost_cv_thread_library}" >&5
19208$as_echo_n "checking for nanosleep in -l${ost_cv_thread_library}... " >&6; }
19209if eval \${$as_ac_Lib+:} false; then :
19210 $as_echo_n "(cached) " >&6
19211else
19212 ac_check_lib_save_LIBS=$LIBS
19213LIBS="-l${ost_cv_thread_library} $LIBS"
19214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19215/* end confdefs.h. */
19216
19217/* Override any GCC internal prototype to avoid an error.
19218 Use char because int might match the return type of a GCC
19219 builtin and then its argument prototype would still apply. */
19220#ifdef __cplusplus
19221extern "C"
19222#endif
19223char nanosleep ();
19224int
19225main ()
19226{
19227return nanosleep ();
19228 ;
19229 return 0;
19230}
19231_ACEOF
19232if ac_fn_cxx_try_link "$LINENO"; then :
19233 eval "$as_ac_Lib=yes"
19234else
19235 eval "$as_ac_Lib=no"
19236fi
19237rm -f core conftest.err conftest.$ac_objext \
19238 conftest$ac_exeext conftest.$ac_ext
19239LIBS=$ac_check_lib_save_LIBS
19240fi
19241eval ac_res=\$$as_ac_Lib
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19243$as_echo "$ac_res" >&6; }
19244if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19245
19246$as_echo "@%:@define HAVE_PTHREAD_NANOSLEEP 1" >>confdefs.h
19247
19248else
19249
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
19251$as_echo_n "checking for nanosleep in -lposix4... " >&6; }
19252if ${ac_cv_lib_posix4_nanosleep+:} false; then :
19253 $as_echo_n "(cached) " >&6
19254else
19255 ac_check_lib_save_LIBS=$LIBS
19256LIBS="-lposix4 $LIBS"
19257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19258/* end confdefs.h. */
19259
19260/* Override any GCC internal prototype to avoid an error.
19261 Use char because int might match the return type of a GCC
19262 builtin and then its argument prototype would still apply. */
19263#ifdef __cplusplus
19264extern "C"
19265#endif
19266char nanosleep ();
19267int
19268main ()
19269{
19270return nanosleep ();
19271 ;
19272 return 0;
19273}
19274_ACEOF
19275if ac_fn_cxx_try_link "$LINENO"; then :
19276 ac_cv_lib_posix4_nanosleep=yes
19277else
19278 ac_cv_lib_posix4_nanosleep=no
19279fi
19280rm -f core conftest.err conftest.$ac_objext \
19281 conftest$ac_exeext conftest.$ac_ext
19282LIBS=$ac_check_lib_save_LIBS
19283fi
19284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
19285$as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
19286if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then :
19287
19288 $as_echo "@%:@define HAVE_PTHREAD_NANOSLEEP 1" >>confdefs.h
19289
19290 THREAD_LIBS="$THREAD_LIBS -lposix4"
19291
19292else
19293
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
19295$as_echo_n "checking for nanosleep in -lrt... " >&6; }
19296if ${ac_cv_lib_rt_nanosleep+:} false; then :
19297 $as_echo_n "(cached) " >&6
19298else
19299 ac_check_lib_save_LIBS=$LIBS
19300LIBS="-lrt $LIBS"
19301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19302/* end confdefs.h. */
19303
19304/* Override any GCC internal prototype to avoid an error.
19305 Use char because int might match the return type of a GCC
19306 builtin and then its argument prototype would still apply. */
19307#ifdef __cplusplus
19308extern "C"
19309#endif
19310char nanosleep ();
19311int
19312main ()
19313{
19314return nanosleep ();
19315 ;
19316 return 0;
19317}
19318_ACEOF
19319if ac_fn_cxx_try_link "$LINENO"; then :
19320 ac_cv_lib_rt_nanosleep=yes
19321else
19322 ac_cv_lib_rt_nanosleep=no
19323fi
19324rm -f core conftest.err conftest.$ac_objext \
19325 conftest$ac_exeext conftest.$ac_ext
19326LIBS=$ac_check_lib_save_LIBS
19327fi
19328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
19329$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
19330if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
19331
19332 $as_echo "@%:@define HAVE_PTHREAD_NANOSLEEP 1" >>confdefs.h
19333
19334 ost_cv_rt_library="-lrt"
19335fi
19336
19337
19338fi
19339
19340
19341
19342fi
19343
19344
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
19346$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
19347if ${ac_cv_lib_rt_clock_gettime+:} false; then :
19348 $as_echo_n "(cached) " >&6
19349else
19350 ac_check_lib_save_LIBS=$LIBS
19351LIBS="-lrt $LIBS"
19352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19353/* end confdefs.h. */
19354
19355/* Override any GCC internal prototype to avoid an error.
19356 Use char because int might match the return type of a GCC
19357 builtin and then its argument prototype would still apply. */
19358#ifdef __cplusplus
19359extern "C"
19360#endif
19361char clock_gettime ();
19362int
19363main ()
19364{
19365return clock_gettime ();
19366 ;
19367 return 0;
19368}
19369_ACEOF
19370if ac_fn_cxx_try_link "$LINENO"; then :
19371 ac_cv_lib_rt_clock_gettime=yes
19372else
19373 ac_cv_lib_rt_clock_gettime=no
19374fi
19375rm -f core conftest.err conftest.$ac_objext \
19376 conftest$ac_exeext conftest.$ac_ext
19377LIBS=$ac_check_lib_save_LIBS
19378fi
19379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
19380$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
19381if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
19382
19383 ost_cv_rt_library="-lrt"
19384
19385$as_echo "@%:@define HAVE_HIRES_TIMER 1" >>confdefs.h
19386
19387
19388else
19389
19390 for ac_func in clock_gettime
19391do :
19392 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
19393if test "x$ac_cv_func_clock_gettime" = xyes; then :
19394 cat >>confdefs.h <<_ACEOF
19395@%:@define HAVE_CLOCK_GETTIME 1
19396_ACEOF
19397
19398
19399$as_echo "@%:@define HAVE_HIRES_TIMER 1" >>confdefs.h
19400
19401
19402fi
19403done
19404
19405
19406fi
19407
19408
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mlockall in -lrt" >&5
19410$as_echo_n "checking for mlockall in -lrt... " >&6; }
19411if ${ac_cv_lib_rt_mlockall+:} false; then :
19412 $as_echo_n "(cached) " >&6
19413else
19414 ac_check_lib_save_LIBS=$LIBS
19415LIBS="-lrt $LIBS"
19416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19417/* end confdefs.h. */
19418
19419/* Override any GCC internal prototype to avoid an error.
19420 Use char because int might match the return type of a GCC
19421 builtin and then its argument prototype would still apply. */
19422#ifdef __cplusplus
19423extern "C"
19424#endif
19425char mlockall ();
19426int
19427main ()
19428{
19429return mlockall ();
19430 ;
19431 return 0;
19432}
19433_ACEOF
19434if ac_fn_cxx_try_link "$LINENO"; then :
19435 ac_cv_lib_rt_mlockall=yes
19436else
19437 ac_cv_lib_rt_mlockall=no
19438fi
19439rm -f core conftest.err conftest.$ac_objext \
19440 conftest$ac_exeext conftest.$ac_ext
19441LIBS=$ac_check_lib_save_LIBS
19442fi
19443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_mlockall" >&5
19444$as_echo "$ac_cv_lib_rt_mlockall" >&6; }
19445if test "x$ac_cv_lib_rt_mlockall" = xyes; then :
19446
19447
19448$as_echo "@%:@define HAVE_MLOCK 1" >>confdefs.h
19449
19450
19451$as_echo "@%:@define HAVE_MLOCKALL 1" >>confdefs.h
19452
19453 ost_cv_rt_library="-lrt"
19454else
19455
19456 for ac_func in mlock
19457do :
19458 ac_fn_cxx_check_func "$LINENO" "mlock" "ac_cv_func_mlock"
19459if test "x$ac_cv_func_mlock" = xyes; then :
19460 cat >>confdefs.h <<_ACEOF
19461@%:@define HAVE_MLOCK 1
19462_ACEOF
19463
19464fi
19465done
19466
19467 for ac_func in mlockall
19468do :
19469 ac_fn_cxx_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
19470if test "x$ac_cv_func_mlockall" = xyes; then :
19471 cat >>confdefs.h <<_ACEOF
19472@%:@define HAVE_MLOCKALL 1
19473_ACEOF
19474
19475fi
19476done
19477
19478
19479fi
19480
19481
19482 if test "$ost_cv_rt_library" != "none" ; then
19483 THREAD_LIBS="$THREAD_LIBS $ost_cv_rt_library" ; fi
19484
19485 if test ! -z "$ost_cv_thread_flags" ; then
19486 THREAD_LIBS="$THREAD_LIBS $ost_cv_thread_flags" ; fi
19487 if test "$ost_cv_thread_library" != "none" -a "$ost_cv_thread_library" != "c" ; then
19488 THREAD_LIBS="$THREAD_LIBS -l$ost_cv_thread_library" ; fi
19489
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19491$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19492 flag=no
19493 case "${host_cpu}-${host_os}" in
19494 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
19495 *solaris* | alpha*-osf*) flag="-D_REENTRANT";;
19496 esac
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
19498$as_echo "${flag}" >&6; }
19499 if test "x$flag" != xno; then
19500 THREAD_FLAGS="$flag"
19501 fi
19502
19503
19504
19505# LIBS="$THREAD_LIBS $LIBS"
19506 if test "$ost_cv_thread_library" != "lthread" ; then
19507 for ac_header in pthread_np.h
19508do :
19509 ac_fn_cxx_check_header_mongrel "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "$ac_includes_default"
19510if test "x$ac_cv_header_pthread_np_h" = xyes; then :
19511 cat >>confdefs.h <<_ACEOF
19512@%:@define HAVE_PTHREAD_NP_H 1
19513_ACEOF
19514
19515fi
19516
19517done
19518
19519 fi
19520 for ac_header in semaphore.h
19521do :
19522 ac_fn_cxx_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
19523if test "x$ac_cv_header_semaphore_h" = xyes; then :
19524 cat >>confdefs.h <<_ACEOF
19525@%:@define HAVE_SEMAPHORE_H 1
19526_ACEOF
19527
19528fi
19529
19530done
19531
19532 for ac_header in sched.h
19533do :
19534 ac_fn_cxx_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
19535if test "x$ac_cv_header_sched_h" = xyes; then :
19536 cat >>confdefs.h <<_ACEOF
19537@%:@define HAVE_SCHED_H 1
19538_ACEOF
19539
19540fi
19541
19542done
19543
19544 for ac_header in sys/sched.h
19545do :
19546 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
19547if test "x$ac_cv_header_sys_sched_h" = xyes; then :
19548 cat >>confdefs.h <<_ACEOF
19549@%:@define HAVE_SYS_SCHED_H 1
19550_ACEOF
19551
19552fi
19553
19554done
19555
19556 for ac_func in sched_getscheduler
19557do :
19558 ac_fn_cxx_check_func "$LINENO" "sched_getscheduler" "ac_cv_func_sched_getscheduler"
19559if test "x$ac_cv_func_sched_getscheduler" = xyes; then :
19560 cat >>confdefs.h <<_ACEOF
19561@%:@define HAVE_SCHED_GETSCHEDULER 1
19562_ACEOF
19563
19564fi
19565done
19566
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutex type support" >&5
19568$as_echo_n "checking for recursive mutex type support... " >&6; }
19569if ${ost_cv_mutex_recursive+:} false; then :
19570 $as_echo_n "(cached) " >&6
19571else
19572
19573 ost_cv_mutex_recursive="none"
19574
19575 if test "$ost_cv_cxx_mode" = true ; then
19576
19577 ac_ext=cpp
19578ac_cpp='$CXXCPP $CPPFLAGS'
19579ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19582
19583 ac_save_CXXFLAGS="$CXXFLAGS"
19584 CXXFLAGS="$CXXFLAGS -pthread"
19585 fi
19586
19587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19588/* end confdefs.h. */
19589#include <pthread.h>
19590int
19591main ()
19592{
19593
19594 #ifndef PTHREAD_MUTEXTYPE_RECURSIVE
19595 #ifdef PTHREAD_MUTEX_RECURSIVE
19596 #define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE
19597 #endif
19598 #endif
19599 return (int)PTHREAD_MUTEXTYPE_RECURSIVE;
19600
19601 ;
19602 return 0;
19603}
19604_ACEOF
19605if ac_fn_cxx_try_compile "$LINENO"; then :
19606 ost_cv_mutex_recursive="portable"
19607else
19608
19609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19610/* end confdefs.h. */
19611#include <pthread.h>
19612
19613_ACEOF
19614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19615 $EGREP "PTHREAD_MUTEXTYPE_RECURSIVE_NP" >/dev/null 2>&1; then :
19616 ost_cv_mutex_recursive=non-portable
19617fi
19618rm -f conftest*
19619
19620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19621/* end confdefs.h. */
19622#include <pthread.h>
19623
19624_ACEOF
19625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19626 $EGREP "PTHREAD_MUTEX_RECURSIVE_INITIALIZER_NP" >/dev/null 2>&1; then :
19627 ost_cv_mutex_recursive=lthread
19628fi
19629rm -f conftest*
19630
19631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19632/* end confdefs.h. */
19633#include <pthread.h>
19634
19635_ACEOF
19636if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19637 $EGREP "PTHREAD_MUTEX_RECURSIVE_NP" >/dev/null 2>&1; then :
19638 ost_cv_mutex_recursive=linux
19639fi
19640rm -f conftest*
19641
19642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19643/* end confdefs.h. */
19644#include <pthread.h>
19645
19646_ACEOF
19647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19648 $EGREP "MUTEX_TYPE_COUNTING_FAST" >/dev/null 2>&1; then :
19649 ost_cv_mutex_recursive=counting
19650fi
19651rm -f conftest*
19652
19653
19654fi
19655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19656 if test $ost_cv_mutex_recursive = "none" ; then
19657 if test $ost_cv_thread_library = "lthread" ; then
19658 ost_cv_mutex_recursive=linux
19659 fi
19660 fi
19661 rm -f conftest*
19662
19663fi
19664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ost_cv_mutex_recursive" >&5
19665$as_echo "$ost_cv_mutex_recursive" >&6; }
19666
19667 if test $ost_cv_mutex_recursive = "none" ; then
19668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19669/* end confdefs.h. */
19670#include <pthread.h>
19671int
19672main ()
19673{
19674return MUTEX_TYPE_COUNTING_FAST;
19675 ;
19676 return 0;
19677}
19678_ACEOF
19679if ac_fn_cxx_try_compile "$LINENO"; then :
19680 ost_cv_mutex_recursive=counting
19681fi
19682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19683 fi
19684
19685 if test "$ost_cv_cxx_mode" = true ; then
19686 CXXFLAGS="$ac_save_CXXFLAGS"
19687 ac_ext=cpp
19688ac_cpp='$CXXCPP $CPPFLAGS'
19689ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19690ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19691ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19692
19693 fi
19694
19695
19696 case $ost_cv_mutex_recursive in
19697 non-portable)
19698
19699$as_echo "@%:@define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEXTYPE_RECURSIVE_NP" >>confdefs.h
19700
19701 ;;
19702 linux)
19703 $as_echo "@%:@define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP" >>confdefs.h
19704
19705 ;;
19706 counting)
19707 $as_echo "@%:@define PTHREAD_MUTEXTYPE_RECURSIVE MUTEX_TYPE_COUNTING_FAST" >>confdefs.h
19708
19709 ;;
19710 esac
19711
19712 as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_mutexattr_settype" | $as_tr_sh`
19713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutexattr_settype in -l${ost_cv_thread_library}" >&5
19714$as_echo_n "checking for pthread_mutexattr_settype in -l${ost_cv_thread_library}... " >&6; }
19715if eval \${$as_ac_Lib+:} false; then :
19716 $as_echo_n "(cached) " >&6
19717else
19718 ac_check_lib_save_LIBS=$LIBS
19719LIBS="-l${ost_cv_thread_library} $LIBS"
19720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19721/* end confdefs.h. */
19722
19723/* Override any GCC internal prototype to avoid an error.
19724 Use char because int might match the return type of a GCC
19725 builtin and then its argument prototype would still apply. */
19726#ifdef __cplusplus
19727extern "C"
19728#endif
19729char pthread_mutexattr_settype ();
19730int
19731main ()
19732{
19733return pthread_mutexattr_settype ();
19734 ;
19735 return 0;
19736}
19737_ACEOF
19738if ac_fn_cxx_try_link "$LINENO"; then :
19739 eval "$as_ac_Lib=yes"
19740else
19741 eval "$as_ac_Lib=no"
19742fi
19743rm -f core conftest.err conftest.$ac_objext \
19744 conftest$ac_exeext conftest.$ac_ext
19745LIBS=$ac_check_lib_save_LIBS
19746fi
19747eval ac_res=\$$as_ac_Lib
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19749$as_echo "$ac_res" >&6; }
19750if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19751
19752$as_echo "@%:@define HAVE_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h
19753
19754else
19755
19756 as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_mutexattr_settype_np" | $as_tr_sh`
19757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutexattr_settype_np in -l${ost_cv_thread_library}" >&5
19758$as_echo_n "checking for pthread_mutexattr_settype_np in -l${ost_cv_thread_library}... " >&6; }
19759if eval \${$as_ac_Lib+:} false; then :
19760 $as_echo_n "(cached) " >&6
19761else
19762 ac_check_lib_save_LIBS=$LIBS
19763LIBS="-l${ost_cv_thread_library} $LIBS"
19764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19765/* end confdefs.h. */
19766
19767/* Override any GCC internal prototype to avoid an error.
19768 Use char because int might match the return type of a GCC
19769 builtin and then its argument prototype would still apply. */
19770#ifdef __cplusplus
19771extern "C"
19772#endif
19773char pthread_mutexattr_settype_np ();
19774int
19775main ()
19776{
19777return pthread_mutexattr_settype_np ();
19778 ;
19779 return 0;
19780}
19781_ACEOF
19782if ac_fn_cxx_try_link "$LINENO"; then :
19783 eval "$as_ac_Lib=yes"
19784else
19785 eval "$as_ac_Lib=no"
19786fi
19787rm -f core conftest.err conftest.$ac_objext \
19788 conftest$ac_exeext conftest.$ac_ext
19789LIBS=$ac_check_lib_save_LIBS
19790fi
19791eval ac_res=\$$as_ac_Lib
19792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19793$as_echo "$ac_res" >&6; }
19794if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19795
19796$as_echo "@%:@define HAVE_PTHREAD_MUTEXATTR_SETTYPE_NP 1" >>confdefs.h
19797
19798fi
19799
19800 as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_mutexattr_setkind_np" | $as_tr_sh`
19801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutexattr_setkind_np in -l${ost_cv_thread_library}" >&5
19802$as_echo_n "checking for pthread_mutexattr_setkind_np in -l${ost_cv_thread_library}... " >&6; }
19803if eval \${$as_ac_Lib+:} false; then :
19804 $as_echo_n "(cached) " >&6
19805else
19806 ac_check_lib_save_LIBS=$LIBS
19807LIBS="-l${ost_cv_thread_library} $LIBS"
19808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19809/* end confdefs.h. */
19810
19811/* Override any GCC internal prototype to avoid an error.
19812 Use char because int might match the return type of a GCC
19813 builtin and then its argument prototype would still apply. */
19814#ifdef __cplusplus
19815extern "C"
19816#endif
19817char pthread_mutexattr_setkind_np ();
19818int
19819main ()
19820{
19821return pthread_mutexattr_setkind_np ();
19822 ;
19823 return 0;
19824}
19825_ACEOF
19826if ac_fn_cxx_try_link "$LINENO"; then :
19827 eval "$as_ac_Lib=yes"
19828else
19829 eval "$as_ac_Lib=no"
19830fi
19831rm -f core conftest.err conftest.$ac_objext \
19832 conftest$ac_exeext conftest.$ac_ext
19833LIBS=$ac_check_lib_save_LIBS
19834fi
19835eval ac_res=\$$as_ac_Lib
19836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19837$as_echo "$ac_res" >&6; }
19838if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19839
19840$as_echo "@%:@define HAVE_PTHREAD_MUTEXATTR_SETKIND_NP 1" >>confdefs.h
19841
19842fi
19843
19844
19845
19846fi
19847
19848
19849 ost_cv_thread_rwlock=false
19850 as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_rwlock_init" | $as_tr_sh`
19851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_init in -l${ost_cv_thread_library}" >&5
19852$as_echo_n "checking for pthread_rwlock_init in -l${ost_cv_thread_library}... " >&6; }
19853if eval \${$as_ac_Lib+:} false; then :
19854 $as_echo_n "(cached) " >&6
19855else
19856 ac_check_lib_save_LIBS=$LIBS
19857LIBS="-l${ost_cv_thread_library} $LIBS"
19858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19859/* end confdefs.h. */
19860
19861/* Override any GCC internal prototype to avoid an error.
19862 Use char because int might match the return type of a GCC
19863 builtin and then its argument prototype would still apply. */
19864#ifdef __cplusplus
19865extern "C"
19866#endif
19867char pthread_rwlock_init ();
19868int
19869main ()
19870{
19871return pthread_rwlock_init ();
19872 ;
19873 return 0;
19874}
19875_ACEOF
19876if ac_fn_cxx_try_link "$LINENO"; then :
19877 eval "$as_ac_Lib=yes"
19878else
19879 eval "$as_ac_Lib=no"
19880fi
19881rm -f core conftest.err conftest.$ac_objext \
19882 conftest$ac_exeext conftest.$ac_ext
19883LIBS=$ac_check_lib_save_LIBS
19884fi
19885eval ac_res=\$$as_ac_Lib
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19887$as_echo "$ac_res" >&6; }
19888if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19889
19890 ost_cv_thread_rwlock=true
19891
19892$as_echo "@%:@define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
19893
19894fi
19895
19896
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pread in -lc" >&5
19898$as_echo_n "checking for pread in -lc... " >&6; }
19899if ${ac_cv_lib_c_pread+:} false; then :
19900 $as_echo_n "(cached) " >&6
19901else
19902 ac_check_lib_save_LIBS=$LIBS
19903LIBS="-lc $LIBS"
19904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19905/* end confdefs.h. */
19906
19907/* Override any GCC internal prototype to avoid an error.
19908 Use char because int might match the return type of a GCC
19909 builtin and then its argument prototype would still apply. */
19910#ifdef __cplusplus
19911extern "C"
19912#endif
19913char pread ();
19914int
19915main ()
19916{
19917return pread ();
19918 ;
19919 return 0;
19920}
19921_ACEOF
19922if ac_fn_cxx_try_link "$LINENO"; then :
19923 ac_cv_lib_c_pread=yes
19924else
19925 ac_cv_lib_c_pread=no
19926fi
19927rm -f core conftest.err conftest.$ac_objext \
19928 conftest$ac_exeext conftest.$ac_ext
19929LIBS=$ac_check_lib_save_LIBS
19930fi
19931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pread" >&5
19932$as_echo "$ac_cv_lib_c_pread" >&6; }
19933if test "x$ac_cv_lib_c_pread" = xyes; then :
19934
19935
19936$as_echo "@%:@define HAVE_PREAD_PWRITE 1" >>confdefs.h
19937
19938else
19939
19940 as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pread" | $as_tr_sh`
19941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pread in -l${ost_cv_thread_library}" >&5
19942$as_echo_n "checking for pread in -l${ost_cv_thread_library}... " >&6; }
19943if eval \${$as_ac_Lib+:} false; then :
19944 $as_echo_n "(cached) " >&6
19945else
19946 ac_check_lib_save_LIBS=$LIBS
19947LIBS="-l${ost_cv_thread_library} $LIBS"
19948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19949/* end confdefs.h. */
19950
19951/* Override any GCC internal prototype to avoid an error.
19952 Use char because int might match the return type of a GCC
19953 builtin and then its argument prototype would still apply. */
19954#ifdef __cplusplus
19955extern "C"
19956#endif
19957char pread ();
19958int
19959main ()
19960{
19961return pread ();
19962 ;
19963 return 0;
19964}
19965_ACEOF
19966if ac_fn_cxx_try_link "$LINENO"; then :
19967 eval "$as_ac_Lib=yes"
19968else
19969 eval "$as_ac_Lib=no"
19970fi
19971rm -f core conftest.err conftest.$ac_objext \
19972 conftest$ac_exeext conftest.$ac_ext
19973LIBS=$ac_check_lib_save_LIBS
19974fi
19975eval ac_res=\$$as_ac_Lib
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19977$as_echo "$ac_res" >&6; }
19978if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19979
19980 $as_echo "@%:@define HAVE_PREAD_PWRITE 1" >>confdefs.h
19981
19982else
19983
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pread in -lc_r" >&5
19985$as_echo_n "checking for pread in -lc_r... " >&6; }
19986if ${ac_cv_lib_c_r_pread+:} false; then :
19987 $as_echo_n "(cached) " >&6
19988else
19989 ac_check_lib_save_LIBS=$LIBS
19990LIBS="-lc_r $LIBS"
19991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19992/* end confdefs.h. */
19993
19994/* Override any GCC internal prototype to avoid an error.
19995 Use char because int might match the return type of a GCC
19996 builtin and then its argument prototype would still apply. */
19997#ifdef __cplusplus
19998extern "C"
19999#endif
20000char pread ();
20001int
20002main ()
20003{
20004return pread ();
20005 ;
20006 return 0;
20007}
20008_ACEOF
20009if ac_fn_cxx_try_link "$LINENO"; then :
20010 ac_cv_lib_c_r_pread=yes
20011else
20012 ac_cv_lib_c_r_pread=no
20013fi
20014rm -f core conftest.err conftest.$ac_objext \
20015 conftest$ac_exeext conftest.$ac_ext
20016LIBS=$ac_check_lib_save_LIBS
20017fi
20018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pread" >&5
20019$as_echo "$ac_cv_lib_c_r_pread" >&6; }
20020if test "x$ac_cv_lib_c_r_pread" = xyes; then :
20021 $as_echo "@%:@define HAVE_PREAD_PWRITE 1" >>confdefs.h
20022
20023fi
20024
20025
20026fi
20027
20028
20029fi
20030
20031
20032 as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_suspend" | $as_tr_sh`
20033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_suspend in -l${ost_cv_thread_library}" >&5
20034$as_echo_n "checking for pthread_suspend in -l${ost_cv_thread_library}... " >&6; }
20035if eval \${$as_ac_Lib+:} false; then :
20036 $as_echo_n "(cached) " >&6
20037else
20038 ac_check_lib_save_LIBS=$LIBS
20039LIBS="-l${ost_cv_thread_library} $LIBS"
20040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20041/* end confdefs.h. */
20042
20043/* Override any GCC internal prototype to avoid an error.
20044 Use char because int might match the return type of a GCC
20045 builtin and then its argument prototype would still apply. */
20046#ifdef __cplusplus
20047extern "C"
20048#endif
20049char pthread_suspend ();
20050int
20051main ()
20052{
20053return pthread_suspend ();
20054 ;
20055 return 0;
20056}
20057_ACEOF
20058if ac_fn_cxx_try_link "$LINENO"; then :
20059 eval "$as_ac_Lib=yes"
20060else
20061 eval "$as_ac_Lib=no"
20062fi
20063rm -f core conftest.err conftest.$ac_objext \
20064 conftest$ac_exeext conftest.$ac_ext
20065LIBS=$ac_check_lib_save_LIBS
20066fi
20067eval ac_res=\$$as_ac_Lib
20068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20069$as_echo "$ac_res" >&6; }
20070if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20071
20072$as_echo "@%:@define HAVE_PTHREAD_SUSPEND 1" >>confdefs.h
20073
20074fi
20075
20076
20077 as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_attr_setstacksize" | $as_tr_sh`
20078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_setstacksize in -l${ost_cv_thread_library}" >&5
20079$as_echo_n "checking for pthread_attr_setstacksize in -l${ost_cv_thread_library}... " >&6; }
20080if eval \${$as_ac_Lib+:} false; then :
20081 $as_echo_n "(cached) " >&6
20082else
20083 ac_check_lib_save_LIBS=$LIBS
20084LIBS="-l${ost_cv_thread_library} $LIBS"
20085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20086/* end confdefs.h. */
20087
20088/* Override any GCC internal prototype to avoid an error.
20089 Use char because int might match the return type of a GCC
20090 builtin and then its argument prototype would still apply. */
20091#ifdef __cplusplus
20092extern "C"
20093#endif
20094char pthread_attr_setstacksize ();
20095int
20096main ()
20097{
20098return pthread_attr_setstacksize ();
20099 ;
20100 return 0;
20101}
20102_ACEOF
20103if ac_fn_cxx_try_link "$LINENO"; then :
20104 eval "$as_ac_Lib=yes"
20105else
20106 eval "$as_ac_Lib=no"
20107fi
20108rm -f core conftest.err conftest.$ac_objext \
20109 conftest$ac_exeext conftest.$ac_ext
20110LIBS=$ac_check_lib_save_LIBS
20111fi
20112eval ac_res=\$$as_ac_Lib
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20114$as_echo "$ac_res" >&6; }
20115if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20116
20117$as_echo "@%:@define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h
20118
20119fi
20120
20121
20122 as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_yield_np" | $as_tr_sh`
20123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_yield_np in -l${ost_cv_thread_library}" >&5
20124$as_echo_n "checking for pthread_yield_np in -l${ost_cv_thread_library}... " >&6; }
20125if eval \${$as_ac_Lib+:} false; then :
20126 $as_echo_n "(cached) " >&6
20127else
20128 ac_check_lib_save_LIBS=$LIBS
20129LIBS="-l${ost_cv_thread_library} $LIBS"
20130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20131/* end confdefs.h. */
20132
20133/* Override any GCC internal prototype to avoid an error.
20134 Use char because int might match the return type of a GCC
20135 builtin and then its argument prototype would still apply. */
20136#ifdef __cplusplus
20137extern "C"
20138#endif
20139char pthread_yield_np ();
20140int
20141main ()
20142{
20143return pthread_yield_np ();
20144 ;
20145 return 0;
20146}
20147_ACEOF
20148if ac_fn_cxx_try_link "$LINENO"; then :
20149 eval "$as_ac_Lib=yes"
20150else
20151 eval "$as_ac_Lib=no"
20152fi
20153rm -f core conftest.err conftest.$ac_objext \
20154 conftest$ac_exeext conftest.$ac_ext
20155LIBS=$ac_check_lib_save_LIBS
20156fi
20157eval ac_res=\$$as_ac_Lib
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20159$as_echo "$ac_res" >&6; }
20160if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20161
20162$as_echo "@%:@define HAVE_PTHREAD_YIELD_NP 1" >>confdefs.h
20163
20164else
20165
20166 as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_yield" | $as_tr_sh`
20167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_yield in -l${ost_cv_thread_library}" >&5
20168$as_echo_n "checking for pthread_yield in -l${ost_cv_thread_library}... " >&6; }
20169if eval \${$as_ac_Lib+:} false; then :
20170 $as_echo_n "(cached) " >&6
20171else
20172 ac_check_lib_save_LIBS=$LIBS
20173LIBS="-l${ost_cv_thread_library} $LIBS"
20174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20175/* end confdefs.h. */
20176
20177/* Override any GCC internal prototype to avoid an error.
20178 Use char because int might match the return type of a GCC
20179 builtin and then its argument prototype would still apply. */
20180#ifdef __cplusplus
20181extern "C"
20182#endif
20183char pthread_yield ();
20184int
20185main ()
20186{
20187return pthread_yield ();
20188 ;
20189 return 0;
20190}
20191_ACEOF
20192if ac_fn_cxx_try_link "$LINENO"; then :
20193 eval "$as_ac_Lib=yes"
20194else
20195 eval "$as_ac_Lib=no"
20196fi
20197rm -f core conftest.err conftest.$ac_objext \
20198 conftest$ac_exeext conftest.$ac_ext
20199LIBS=$ac_check_lib_save_LIBS
20200fi
20201eval ac_res=\$$as_ac_Lib
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20203$as_echo "$ac_res" >&6; }
20204if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20205
20206$as_echo "@%:@define HAVE_PTHREAD_YIELD 1" >>confdefs.h
20207
20208else
20209
20210 as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_sched_yield" | $as_tr_sh`
20211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -l${ost_cv_thread_library}" >&5
20212$as_echo_n "checking for sched_yield in -l${ost_cv_thread_library}... " >&6; }
20213if eval \${$as_ac_Lib+:} false; then :
20214 $as_echo_n "(cached) " >&6
20215else
20216 ac_check_lib_save_LIBS=$LIBS
20217LIBS="-l${ost_cv_thread_library} $LIBS"
20218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20219/* end confdefs.h. */
20220
20221/* Override any GCC internal prototype to avoid an error.
20222 Use char because int might match the return type of a GCC
20223 builtin and then its argument prototype would still apply. */
20224#ifdef __cplusplus
20225extern "C"
20226#endif
20227char sched_yield ();
20228int
20229main ()
20230{
20231return sched_yield ();
20232 ;
20233 return 0;
20234}
20235_ACEOF
20236if ac_fn_cxx_try_link "$LINENO"; then :
20237 eval "$as_ac_Lib=yes"
20238else
20239 eval "$as_ac_Lib=no"
20240fi
20241rm -f core conftest.err conftest.$ac_objext \
20242 conftest$ac_exeext conftest.$ac_ext
20243LIBS=$ac_check_lib_save_LIBS
20244fi
20245eval ac_res=\$$as_ac_Lib
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20247$as_echo "$ac_res" >&6; }
20248if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20249
20250$as_echo "@%:@define HAVE_PTHREAD_SCHED_YIELD 1" >>confdefs.h
20251
20252fi
20253
20254
20255fi
20256
20257
20258fi
20259
20260
20261 as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_cancel" | $as_tr_sh`
20262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_cancel in -l${ost_cv_thread_library}" >&5
20263$as_echo_n "checking for pthread_cancel in -l${ost_cv_thread_library}... " >&6; }
20264if eval \${$as_ac_Lib+:} false; then :
20265 $as_echo_n "(cached) " >&6
20266else
20267 ac_check_lib_save_LIBS=$LIBS
20268LIBS="-l${ost_cv_thread_library} $LIBS"
20269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20270/* end confdefs.h. */
20271
20272/* Override any GCC internal prototype to avoid an error.
20273 Use char because int might match the return type of a GCC
20274 builtin and then its argument prototype would still apply. */
20275#ifdef __cplusplus
20276extern "C"
20277#endif
20278char pthread_cancel ();
20279int
20280main ()
20281{
20282return pthread_cancel ();
20283 ;
20284 return 0;
20285}
20286_ACEOF
20287if ac_fn_cxx_try_link "$LINENO"; then :
20288 eval "$as_ac_Lib=yes"
20289else
20290 eval "$as_ac_Lib=no"
20291fi
20292rm -f core conftest.err conftest.$ac_objext \
20293 conftest$ac_exeext conftest.$ac_ext
20294LIBS=$ac_check_lib_save_LIBS
20295fi
20296eval ac_res=\$$as_ac_Lib
20297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20298$as_echo "$ac_res" >&6; }
20299if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20300
20301
20302$as_echo "@%:@define HAVE_PTHREAD_CANCEL 1" >>confdefs.h
20303
20304 as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_setcanceltype" | $as_tr_sh`
20305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setcanceltype in -l${ost_cv_thread_library}" >&5
20306$as_echo_n "checking for pthread_setcanceltype in -l${ost_cv_thread_library}... " >&6; }
20307if eval \${$as_ac_Lib+:} false; then :
20308 $as_echo_n "(cached) " >&6
20309else
20310 ac_check_lib_save_LIBS=$LIBS
20311LIBS="-l${ost_cv_thread_library} $LIBS"
20312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20313/* end confdefs.h. */
20314
20315/* Override any GCC internal prototype to avoid an error.
20316 Use char because int might match the return type of a GCC
20317 builtin and then its argument prototype would still apply. */
20318#ifdef __cplusplus
20319extern "C"
20320#endif
20321char pthread_setcanceltype ();
20322int
20323main ()
20324{
20325return pthread_setcanceltype ();
20326 ;
20327 return 0;
20328}
20329_ACEOF
20330if ac_fn_cxx_try_link "$LINENO"; then :
20331 eval "$as_ac_Lib=yes"
20332else
20333 eval "$as_ac_Lib=no"
20334fi
20335rm -f core conftest.err conftest.$ac_objext \
20336 conftest$ac_exeext conftest.$ac_ext
20337LIBS=$ac_check_lib_save_LIBS
20338fi
20339eval ac_res=\$$as_ac_Lib
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20341$as_echo "$ac_res" >&6; }
20342if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20343
20344$as_echo "@%:@define HAVE_PTHREAD_SETCANCELTYPE 1" >>confdefs.h
20345
20346else
20347 as_ac_Lib=`$as_echo "ac_cv_lib_$ost_cv_thread_library''_pthread_setcanel" | $as_tr_sh`
20348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setcanel in -l$ost_cv_thread_library" >&5
20349$as_echo_n "checking for pthread_setcanel in -l$ost_cv_thread_library... " >&6; }
20350if eval \${$as_ac_Lib+:} false; then :
20351 $as_echo_n "(cached) " >&6
20352else
20353 ac_check_lib_save_LIBS=$LIBS
20354LIBS="-l$ost_cv_thread_library $LIBS"
20355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20356/* end confdefs.h. */
20357
20358/* Override any GCC internal prototype to avoid an error.
20359 Use char because int might match the return type of a GCC
20360 builtin and then its argument prototype would still apply. */
20361#ifdef __cplusplus
20362extern "C"
20363#endif
20364char pthread_setcanel ();
20365int
20366main ()
20367{
20368return pthread_setcanel ();
20369 ;
20370 return 0;
20371}
20372_ACEOF
20373if ac_fn_cxx_try_link "$LINENO"; then :
20374 eval "$as_ac_Lib=yes"
20375else
20376 eval "$as_ac_Lib=no"
20377fi
20378rm -f core conftest.err conftest.$ac_objext \
20379 conftest$ac_exeext conftest.$ac_ext
20380LIBS=$ac_check_lib_save_LIBS
20381fi
20382eval ac_res=\$$as_ac_Lib
20383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20384$as_echo "$ac_res" >&6; }
20385if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20386
20387$as_echo "@%:@define HAVE_PTHREAD_SETCANCEL 1" >>confdefs.h
20388
20389fi
20390
20391fi
20392
20393
20394else
20395
20396 as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_setcanceltype" | $as_tr_sh`
20397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setcanceltype in -l${ost_cv_thread_library}" >&5
20398$as_echo_n "checking for pthread_setcanceltype in -l${ost_cv_thread_library}... " >&6; }
20399if eval \${$as_ac_Lib+:} false; then :
20400 $as_echo_n "(cached) " >&6
20401else
20402 ac_check_lib_save_LIBS=$LIBS
20403LIBS="-l${ost_cv_thread_library} $LIBS"
20404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20405/* end confdefs.h. */
20406
20407/* Override any GCC internal prototype to avoid an error.
20408 Use char because int might match the return type of a GCC
20409 builtin and then its argument prototype would still apply. */
20410#ifdef __cplusplus
20411extern "C"
20412#endif
20413char pthread_setcanceltype ();
20414int
20415main ()
20416{
20417return pthread_setcanceltype ();
20418 ;
20419 return 0;
20420}
20421_ACEOF
20422if ac_fn_cxx_try_link "$LINENO"; then :
20423 eval "$as_ac_Lib=yes"
20424else
20425 eval "$as_ac_Lib=no"
20426fi
20427rm -f core conftest.err conftest.$ac_objext \
20428 conftest$ac_exeext conftest.$ac_ext
20429LIBS=$ac_check_lib_save_LIBS
20430fi
20431eval ac_res=\$$as_ac_Lib
20432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20433$as_echo "$ac_res" >&6; }
20434if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20435
20436 $as_echo "@%:@define HAVE_PTHREAD_CANCEL 1" >>confdefs.h
20437
20438 $as_echo "@%:@define HAVE_PTHREAD_SETCANCELTYPE 1" >>confdefs.h
20439
20440fi
20441
20442
20443
20444fi
20445
20446
20447 as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_thread_library}''_pthread_delay_np" | $as_tr_sh`
20448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_delay_np in -l${ost_cv_thread_library}" >&5
20449$as_echo_n "checking for pthread_delay_np in -l${ost_cv_thread_library}... " >&6; }
20450if eval \${$as_ac_Lib+:} false; then :
20451 $as_echo_n "(cached) " >&6
20452else
20453 ac_check_lib_save_LIBS=$LIBS
20454LIBS="-l${ost_cv_thread_library} $LIBS"
20455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20456/* end confdefs.h. */
20457
20458/* Override any GCC internal prototype to avoid an error.
20459 Use char because int might match the return type of a GCC
20460 builtin and then its argument prototype would still apply. */
20461#ifdef __cplusplus
20462extern "C"
20463#endif
20464char pthread_delay_np ();
20465int
20466main ()
20467{
20468return pthread_delay_np ();
20469 ;
20470 return 0;
20471}
20472_ACEOF
20473if ac_fn_cxx_try_link "$LINENO"; then :
20474 eval "$as_ac_Lib=yes"
20475else
20476 eval "$as_ac_Lib=no"
20477fi
20478rm -f core conftest.err conftest.$ac_objext \
20479 conftest$ac_exeext conftest.$ac_ext
20480LIBS=$ac_check_lib_save_LIBS
20481fi
20482eval ac_res=\$$as_ac_Lib
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20484$as_echo "$ac_res" >&6; }
20485if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20486
20487$as_echo "@%:@define HAVE_PTHREAD_DELAY_NP 1" >>confdefs.h
20488
20489fi
20490
20491
20492 fi
20493
20494 UNAME=`uname`
20495 if test "$UNAME" = "AIX" ; then
20496 # Extract the first word of "cc_r", so it can be a program name with args.
20497set dummy cc_r; ac_word=$2
20498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20499$as_echo_n "checking for $ac_word... " >&6; }
20500if ${ac_cv_prog_PTHREAD_CC+:} false; then :
20501 $as_echo_n "(cached) " >&6
20502else
20503 if test -n "$PTHREAD_CC"; then
20504 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20505else
20506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20507for as_dir in $PATH
20508do
20509 IFS=$as_save_IFS
20510 test -z "$as_dir" && as_dir=.
20511 for ac_exec_ext in '' $ac_executable_extensions; do
20512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20513 ac_cv_prog_PTHREAD_CC="cc_r"
20514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20515 break 2
20516 fi
20517done
20518 done
20519IFS=$as_save_IFS
20520
20521 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
20522fi
20523fi
20524PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20525if test -n "$PTHREAD_CC"; then
20526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20527$as_echo "$PTHREAD_CC" >&6; }
20528else
20529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20530$as_echo "no" >&6; }
20531fi
20532
20533
20534 CC=$PTHREAD_CC
20535
20536$as_echo "@%:@define COMMON_AIX_FIXES 1" >>confdefs.h
20537
20538 fi
20539
20540
20541
20542
20543
20544 reentrant_lib=${ost_cv_thread_library}
20545 if test -z "$reentrant_lib" ; then
20546 reentrant_lib=c_r
20547 fi
20548 if test "c" = "$reentrant_lib" ; then
20549 reentrant_lib=c_r
20550 fi
20551 if test "none" = "$reentrant_lib" ; then
20552 reentrant_lib=c_r
20553 fi
20554
20555 for ac_func in setenv
20556do :
20557 ac_fn_cxx_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
20558if test "x$ac_cv_func_setenv" = xyes; then :
20559 cat >>confdefs.h <<_ACEOF
20560@%:@define HAVE_SETENV 1
20561_ACEOF
20562
20563fi
20564done
20565
20566 as_ac_Lib=`$as_echo "ac_cv_lib_$reentrant_lib''_localtime_r" | $as_tr_sh`
20567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for localtime_r in -l$reentrant_lib" >&5
20568$as_echo_n "checking for localtime_r in -l$reentrant_lib... " >&6; }
20569if eval \${$as_ac_Lib+:} false; then :
20570 $as_echo_n "(cached) " >&6
20571else
20572 ac_check_lib_save_LIBS=$LIBS
20573LIBS="-l$reentrant_lib $LIBS"
20574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20575/* end confdefs.h. */
20576
20577/* Override any GCC internal prototype to avoid an error.
20578 Use char because int might match the return type of a GCC
20579 builtin and then its argument prototype would still apply. */
20580#ifdef __cplusplus
20581extern "C"
20582#endif
20583char localtime_r ();
20584int
20585main ()
20586{
20587return localtime_r ();
20588 ;
20589 return 0;
20590}
20591_ACEOF
20592if ac_fn_cxx_try_link "$LINENO"; then :
20593 eval "$as_ac_Lib=yes"
20594else
20595 eval "$as_ac_Lib=no"
20596fi
20597rm -f core conftest.err conftest.$ac_objext \
20598 conftest$ac_exeext conftest.$ac_ext
20599LIBS=$ac_check_lib_save_LIBS
20600fi
20601eval ac_res=\$$as_ac_Lib
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20603$as_echo "$ac_res" >&6; }
20604if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20605
20606
20607$as_echo "@%:@define HAVE_STRTOK_R 1" >>confdefs.h
20608
20609
20610$as_echo "@%:@define HAVE_LOCALTIME_R 1" >>confdefs.h
20611
20612else
20613
20614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtok_r in -lc" >&5
20615$as_echo_n "checking for strtok_r in -lc... " >&6; }
20616if ${ac_cv_lib_c_strtok_r+:} false; then :
20617 $as_echo_n "(cached) " >&6
20618else
20619 ac_check_lib_save_LIBS=$LIBS
20620LIBS="-lc $LIBS"
20621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20622/* end confdefs.h. */
20623
20624/* Override any GCC internal prototype to avoid an error.
20625 Use char because int might match the return type of a GCC
20626 builtin and then its argument prototype would still apply. */
20627#ifdef __cplusplus
20628extern "C"
20629#endif
20630char strtok_r ();
20631int
20632main ()
20633{
20634return strtok_r ();
20635 ;
20636 return 0;
20637}
20638_ACEOF
20639if ac_fn_cxx_try_link "$LINENO"; then :
20640 ac_cv_lib_c_strtok_r=yes
20641else
20642 ac_cv_lib_c_strtok_r=no
20643fi
20644rm -f core conftest.err conftest.$ac_objext \
20645 conftest$ac_exeext conftest.$ac_ext
20646LIBS=$ac_check_lib_save_LIBS
20647fi
20648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strtok_r" >&5
20649$as_echo "$ac_cv_lib_c_strtok_r" >&6; }
20650if test "x$ac_cv_lib_c_strtok_r" = xyes; then :
20651 $as_echo "@%:@define HAVE_STRTOK_R 1" >>confdefs.h
20652
20653fi
20654
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for localtime_r in -lc" >&5
20656$as_echo_n "checking for localtime_r in -lc... " >&6; }
20657if ${ac_cv_lib_c_localtime_r+:} false; then :
20658 $as_echo_n "(cached) " >&6
20659else
20660 ac_check_lib_save_LIBS=$LIBS
20661LIBS="-lc $LIBS"
20662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20663/* end confdefs.h. */
20664
20665/* Override any GCC internal prototype to avoid an error.
20666 Use char because int might match the return type of a GCC
20667 builtin and then its argument prototype would still apply. */
20668#ifdef __cplusplus
20669extern "C"
20670#endif
20671char localtime_r ();
20672int
20673main ()
20674{
20675return localtime_r ();
20676 ;
20677 return 0;
20678}
20679_ACEOF
20680if ac_fn_cxx_try_link "$LINENO"; then :
20681 ac_cv_lib_c_localtime_r=yes
20682else
20683 ac_cv_lib_c_localtime_r=no
20684fi
20685rm -f core conftest.err conftest.$ac_objext \
20686 conftest$ac_exeext conftest.$ac_ext
20687LIBS=$ac_check_lib_save_LIBS
20688fi
20689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_localtime_r" >&5
20690$as_echo "$ac_cv_lib_c_localtime_r" >&6; }
20691if test "x$ac_cv_lib_c_localtime_r" = xyes; then :
20692 $as_echo "@%:@define HAVE_LOCALTIME_R 1" >>confdefs.h
20693
20694fi
20695
20696
20697fi
20698
20699 as_ac_Lib=`$as_echo "ac_cv_lib_$reentrant_lib''_readdir_r" | $as_tr_sh`
20700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readdir_r in -l$reentrant_lib" >&5
20701$as_echo_n "checking for readdir_r in -l$reentrant_lib... " >&6; }
20702if eval \${$as_ac_Lib+:} false; then :
20703 $as_echo_n "(cached) " >&6
20704else
20705 ac_check_lib_save_LIBS=$LIBS
20706LIBS="-l$reentrant_lib $LIBS"
20707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20708/* end confdefs.h. */
20709
20710/* Override any GCC internal prototype to avoid an error.
20711 Use char because int might match the return type of a GCC
20712 builtin and then its argument prototype would still apply. */
20713#ifdef __cplusplus
20714extern "C"
20715#endif
20716char readdir_r ();
20717int
20718main ()
20719{
20720return readdir_r ();
20721 ;
20722 return 0;
20723}
20724_ACEOF
20725if ac_fn_cxx_try_link "$LINENO"; then :
20726 eval "$as_ac_Lib=yes"
20727else
20728 eval "$as_ac_Lib=no"
20729fi
20730rm -f core conftest.err conftest.$ac_objext \
20731 conftest$ac_exeext conftest.$ac_ext
20732LIBS=$ac_check_lib_save_LIBS
20733fi
20734eval ac_res=\$$as_ac_Lib
20735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20736$as_echo "$ac_res" >&6; }
20737if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20738
20739
20740$as_echo "@%:@define HAVE_READDIR_R 1" >>confdefs.h
20741
20742else
20743
20744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readdir_r in -lc" >&5
20745$as_echo_n "checking for readdir_r in -lc... " >&6; }
20746if ${ac_cv_lib_c_readdir_r+:} false; then :
20747 $as_echo_n "(cached) " >&6
20748else
20749 ac_check_lib_save_LIBS=$LIBS
20750LIBS="-lc $LIBS"
20751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20752/* end confdefs.h. */
20753
20754/* Override any GCC internal prototype to avoid an error.
20755 Use char because int might match the return type of a GCC
20756 builtin and then its argument prototype would still apply. */
20757#ifdef __cplusplus
20758extern "C"
20759#endif
20760char readdir_r ();
20761int
20762main ()
20763{
20764return readdir_r ();
20765 ;
20766 return 0;
20767}
20768_ACEOF
20769if ac_fn_cxx_try_link "$LINENO"; then :
20770 ac_cv_lib_c_readdir_r=yes
20771else
20772 ac_cv_lib_c_readdir_r=no
20773fi
20774rm -f core conftest.err conftest.$ac_objext \
20775 conftest$ac_exeext conftest.$ac_ext
20776LIBS=$ac_check_lib_save_LIBS
20777fi
20778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_readdir_r" >&5
20779$as_echo "$ac_cv_lib_c_readdir_r" >&6; }
20780if test "x$ac_cv_lib_c_readdir_r" = xyes; then :
20781 $as_echo "@%:@define HAVE_READDIR_R 1" >>confdefs.h
20782
20783fi
20784
20785
20786fi
20787
20788 as_ac_Lib=`$as_echo "ac_cv_lib_$reentrant_lib''_strerror_r" | $as_tr_sh`
20789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_r in -l$reentrant_lib" >&5
20790$as_echo_n "checking for strerror_r in -l$reentrant_lib... " >&6; }
20791if eval \${$as_ac_Lib+:} false; then :
20792 $as_echo_n "(cached) " >&6
20793else
20794 ac_check_lib_save_LIBS=$LIBS
20795LIBS="-l$reentrant_lib $LIBS"
20796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20797/* end confdefs.h. */
20798
20799/* Override any GCC internal prototype to avoid an error.
20800 Use char because int might match the return type of a GCC
20801 builtin and then its argument prototype would still apply. */
20802#ifdef __cplusplus
20803extern "C"
20804#endif
20805char strerror_r ();
20806int
20807main ()
20808{
20809return strerror_r ();
20810 ;
20811 return 0;
20812}
20813_ACEOF
20814if ac_fn_cxx_try_link "$LINENO"; then :
20815 eval "$as_ac_Lib=yes"
20816else
20817 eval "$as_ac_Lib=no"
20818fi
20819rm -f core conftest.err conftest.$ac_objext \
20820 conftest$ac_exeext conftest.$ac_ext
20821LIBS=$ac_check_lib_save_LIBS
20822fi
20823eval ac_res=\$$as_ac_Lib
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20825$as_echo "$ac_res" >&6; }
20826if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20827
20828
20829$as_echo "@%:@define HAVE_STRERROR_R 1" >>confdefs.h
20830
20831else
20832
20833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_r in -lc" >&5
20834$as_echo_n "checking for strerror_r in -lc... " >&6; }
20835if ${ac_cv_lib_c_strerror_r+:} false; then :
20836 $as_echo_n "(cached) " >&6
20837else
20838 ac_check_lib_save_LIBS=$LIBS
20839LIBS="-lc $LIBS"
20840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20841/* end confdefs.h. */
20842
20843/* Override any GCC internal prototype to avoid an error.
20844 Use char because int might match the return type of a GCC
20845 builtin and then its argument prototype would still apply. */
20846#ifdef __cplusplus
20847extern "C"
20848#endif
20849char strerror_r ();
20850int
20851main ()
20852{
20853return strerror_r ();
20854 ;
20855 return 0;
20856}
20857_ACEOF
20858if ac_fn_cxx_try_link "$LINENO"; then :
20859 ac_cv_lib_c_strerror_r=yes
20860else
20861 ac_cv_lib_c_strerror_r=no
20862fi
20863rm -f core conftest.err conftest.$ac_objext \
20864 conftest$ac_exeext conftest.$ac_ext
20865LIBS=$ac_check_lib_save_LIBS
20866fi
20867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strerror_r" >&5
20868$as_echo "$ac_cv_lib_c_strerror_r" >&6; }
20869if test "x$ac_cv_lib_c_strerror_r" = xyes; then :
20870 $as_echo "@%:@define HAVE_STRERROR_R 1" >>confdefs.h
20871
20872fi
20873
20874
20875fi
20876
20877 as_ac_Lib=`$as_echo "ac_cv_lib_$reentrant_lib''_getpwuid_r" | $as_tr_sh`
20878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -l$reentrant_lib" >&5
20879$as_echo_n "checking for getpwuid_r in -l$reentrant_lib... " >&6; }
20880if eval \${$as_ac_Lib+:} false; then :
20881 $as_echo_n "(cached) " >&6
20882else
20883 ac_check_lib_save_LIBS=$LIBS
20884LIBS="-l$reentrant_lib $LIBS"
20885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20886/* end confdefs.h. */
20887
20888/* Override any GCC internal prototype to avoid an error.
20889 Use char because int might match the return type of a GCC
20890 builtin and then its argument prototype would still apply. */
20891#ifdef __cplusplus
20892extern "C"
20893#endif
20894char getpwuid_r ();
20895int
20896main ()
20897{
20898return getpwuid_r ();
20899 ;
20900 return 0;
20901}
20902_ACEOF
20903if ac_fn_cxx_try_link "$LINENO"; then :
20904 eval "$as_ac_Lib=yes"
20905else
20906 eval "$as_ac_Lib=no"
20907fi
20908rm -f core conftest.err conftest.$ac_objext \
20909 conftest$ac_exeext conftest.$ac_ext
20910LIBS=$ac_check_lib_save_LIBS
20911fi
20912eval ac_res=\$$as_ac_Lib
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20914$as_echo "$ac_res" >&6; }
20915if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20916
20917
20918$as_echo "@%:@define HAVE_GETPWUID_R 1" >>confdefs.h
20919
20920
20921$as_echo "@%:@define HAVE_GETPWNAM_R 1" >>confdefs.h
20922
20923else
20924
20925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5
20926$as_echo_n "checking for getpwuid_r in -lc... " >&6; }
20927if ${ac_cv_lib_c_getpwuid_r+:} false; then :
20928 $as_echo_n "(cached) " >&6
20929else
20930 ac_check_lib_save_LIBS=$LIBS
20931LIBS="-lc $LIBS"
20932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20933/* end confdefs.h. */
20934
20935/* Override any GCC internal prototype to avoid an error.
20936 Use char because int might match the return type of a GCC
20937 builtin and then its argument prototype would still apply. */
20938#ifdef __cplusplus
20939extern "C"
20940#endif
20941char getpwuid_r ();
20942int
20943main ()
20944{
20945return getpwuid_r ();
20946 ;
20947 return 0;
20948}
20949_ACEOF
20950if ac_fn_cxx_try_link "$LINENO"; then :
20951 ac_cv_lib_c_getpwuid_r=yes
20952else
20953 ac_cv_lib_c_getpwuid_r=no
20954fi
20955rm -f core conftest.err conftest.$ac_objext \
20956 conftest$ac_exeext conftest.$ac_ext
20957LIBS=$ac_check_lib_save_LIBS
20958fi
20959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5
20960$as_echo "$ac_cv_lib_c_getpwuid_r" >&6; }
20961if test "x$ac_cv_lib_c_getpwuid_r" = xyes; then :
20962 $as_echo "@%:@define HAVE_GETPWUID_R 1" >>confdefs.h
20963
20964fi
20965
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam_r in -lc" >&5
20967$as_echo_n "checking for getpwnam_r in -lc... " >&6; }
20968if ${ac_cv_lib_c_getpwnam_r+:} false; then :
20969 $as_echo_n "(cached) " >&6
20970else
20971 ac_check_lib_save_LIBS=$LIBS
20972LIBS="-lc $LIBS"
20973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20974/* end confdefs.h. */
20975
20976/* Override any GCC internal prototype to avoid an error.
20977 Use char because int might match the return type of a GCC
20978 builtin and then its argument prototype would still apply. */
20979#ifdef __cplusplus
20980extern "C"
20981#endif
20982char getpwnam_r ();
20983int
20984main ()
20985{
20986return getpwnam_r ();
20987 ;
20988 return 0;
20989}
20990_ACEOF
20991if ac_fn_cxx_try_link "$LINENO"; then :
20992 ac_cv_lib_c_getpwnam_r=yes
20993else
20994 ac_cv_lib_c_getpwnam_r=no
20995fi
20996rm -f core conftest.err conftest.$ac_objext \
20997 conftest$ac_exeext conftest.$ac_ext
20998LIBS=$ac_check_lib_save_LIBS
20999fi
21000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwnam_r" >&5
21001$as_echo "$ac_cv_lib_c_getpwnam_r" >&6; }
21002if test "x$ac_cv_lib_c_getpwnam_r" = xyes; then :
21003 $as_echo "@%:@define HAVE_GETPWNAM_R 1" >>confdefs.h
21004
21005fi
21006
21007
21008fi
21009
21010 as_ac_Lib=`$as_echo "ac_cv_lib_$reentrant_lib''_getgrnam_r" | $as_tr_sh`
21011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgrnam_r in -l$reentrant_lib" >&5
21012$as_echo_n "checking for getgrnam_r in -l$reentrant_lib... " >&6; }
21013if eval \${$as_ac_Lib+:} false; then :
21014 $as_echo_n "(cached) " >&6
21015else
21016 ac_check_lib_save_LIBS=$LIBS
21017LIBS="-l$reentrant_lib $LIBS"
21018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21019/* end confdefs.h. */
21020
21021/* Override any GCC internal prototype to avoid an error.
21022 Use char because int might match the return type of a GCC
21023 builtin and then its argument prototype would still apply. */
21024#ifdef __cplusplus
21025extern "C"
21026#endif
21027char getgrnam_r ();
21028int
21029main ()
21030{
21031return getgrnam_r ();
21032 ;
21033 return 0;
21034}
21035_ACEOF
21036if ac_fn_cxx_try_link "$LINENO"; then :
21037 eval "$as_ac_Lib=yes"
21038else
21039 eval "$as_ac_Lib=no"
21040fi
21041rm -f core conftest.err conftest.$ac_objext \
21042 conftest$ac_exeext conftest.$ac_ext
21043LIBS=$ac_check_lib_save_LIBS
21044fi
21045eval ac_res=\$$as_ac_Lib
21046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21047$as_echo "$ac_res" >&6; }
21048if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21049
21050
21051$as_echo "@%:@define HAVE_GETGRNAM_R 1" >>confdefs.h
21052
21053else
21054
21055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgrnam_r in -lc" >&5
21056$as_echo_n "checking for getgrnam_r in -lc... " >&6; }
21057if ${ac_cv_lib_c_getgrnam_r+:} false; then :
21058 $as_echo_n "(cached) " >&6
21059else
21060 ac_check_lib_save_LIBS=$LIBS
21061LIBS="-lc $LIBS"
21062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21063/* end confdefs.h. */
21064
21065/* Override any GCC internal prototype to avoid an error.
21066 Use char because int might match the return type of a GCC
21067 builtin and then its argument prototype would still apply. */
21068#ifdef __cplusplus
21069extern "C"
21070#endif
21071char getgrnam_r ();
21072int
21073main ()
21074{
21075return getgrnam_r ();
21076 ;
21077 return 0;
21078}
21079_ACEOF
21080if ac_fn_cxx_try_link "$LINENO"; then :
21081 ac_cv_lib_c_getgrnam_r=yes
21082else
21083 ac_cv_lib_c_getgrnam_r=no
21084fi
21085rm -f core conftest.err conftest.$ac_objext \
21086 conftest$ac_exeext conftest.$ac_ext
21087LIBS=$ac_check_lib_save_LIBS
21088fi
21089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getgrnam_r" >&5
21090$as_echo "$ac_cv_lib_c_getgrnam_r" >&6; }
21091if test "x$ac_cv_lib_c_getgrnam_r" = xyes; then :
21092 $as_echo "@%:@define HAVE_GETGRNAM_R 1" >>confdefs.h
21093
21094fi
21095
21096
21097fi
21098
21099
21100
21101
21102
21103 for ac_header in poll.h sys/poll.h sys/stream.h
21104do :
21105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21106ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21107if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21108 cat >>confdefs.h <<_ACEOF
21109@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21110_ACEOF
21111
21112fi
21113
21114done
21115
21116 for ac_func in poll
21117do :
21118 ac_fn_cxx_check_func "$LINENO" "poll" "ac_cv_func_poll"
21119if test "x$ac_cv_func_poll" = xyes; then :
21120 cat >>confdefs.h <<_ACEOF
21121@%:@define HAVE_POLL 1
21122_ACEOF
21123
21124fi
21125done
21126
21127
21128
21129
21130
21131
21132 ost_cv_inet_sockets=no
21133 ost_cv_unix_sockets=no
21134 ost_cv_lib_socket="c"
21135 ost_cv_ipv6=yes
21136 ost_cv_nat=yes
21137 ost_cv_nat_detected=no
21138 SOCKET_LIBS=""
21139 for ac_header in net/if.h
21140do :
21141 ac_fn_cxx_check_header_mongrel "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
21142if test "x$ac_cv_header_net_if_h" = xyes; then :
21143 cat >>confdefs.h <<_ACEOF
21144@%:@define HAVE_NET_IF_H 1
21145_ACEOF
21146
21147fi
21148
21149done
21150
21151 for ac_header in sys/socket.h
21152do :
21153 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
21154if test "x$ac_cv_header_sys_socket_h" = xyes; then :
21155 cat >>confdefs.h <<_ACEOF
21156@%:@define HAVE_SYS_SOCKET_H 1
21157_ACEOF
21158
21159 for ac_header in select.h sys/select.h netinet/in_systm.h netinet/ip.h
21160do :
21161 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21162ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21163if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21164 cat >>confdefs.h <<_ACEOF
21165@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21166_ACEOF
21167
21168fi
21169
21170done
21171
21172 for ac_header in netinet/inet.h netinet/in.h
21173do :
21174 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21175ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21176if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21177 cat >>confdefs.h <<_ACEOF
21178@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21179_ACEOF
21180
21181fi
21182
21183done
21184
21185 for ac_header in arpa/inet.h
21186do :
21187 ac_fn_cxx_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
21188if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
21189 cat >>confdefs.h <<_ACEOF
21190@%:@define HAVE_ARPA_INET_H 1
21191_ACEOF
21192 ost_cv_inet_sockets=yes
21193fi
21194
21195done
21196
21197 for ac_header in sys/sockio.h
21198do :
21199 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
21200if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
21201 cat >>confdefs.h <<_ACEOF
21202@%:@define HAVE_SYS_SOCKIO_H 1
21203_ACEOF
21204
21205fi
21206
21207done
21208
21209 for ac_header in sys/un.h
21210do :
21211 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
21212if test "x$ac_cv_header_sys_un_h" = xyes; then :
21213 cat >>confdefs.h <<_ACEOF
21214@%:@define HAVE_SYS_UN_H 1
21215_ACEOF
21216 ost_cv_unix_sockets=yes
21217fi
21218
21219done
21220
21221
21222else
21223
21224 for ac_header in winsock2.h winsock.h
21225do :
21226 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21227ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21228if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21229 cat >>confdefs.h <<_ACEOF
21230@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21231_ACEOF
21232
21233 ost_cv_lib_socket="wsock32"
21234 SOCKET_LIBS="-lwsock32 -liberty -lws2_32"
21235 ost_cv_inet_sockets=yes
21236
21237fi
21238
21239done
21240
21241
21242fi
21243
21244done
21245
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21247$as_echo_n "checking for socket in -lsocket... " >&6; }
21248if ${ac_cv_lib_socket_socket+:} false; then :
21249 $as_echo_n "(cached) " >&6
21250else
21251 ac_check_lib_save_LIBS=$LIBS
21252LIBS="-lsocket $LIBS"
21253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21254/* end confdefs.h. */
21255
21256/* Override any GCC internal prototype to avoid an error.
21257 Use char because int might match the return type of a GCC
21258 builtin and then its argument prototype would still apply. */
21259#ifdef __cplusplus
21260extern "C"
21261#endif
21262char socket ();
21263int
21264main ()
21265{
21266return socket ();
21267 ;
21268 return 0;
21269}
21270_ACEOF
21271if ac_fn_cxx_try_link "$LINENO"; then :
21272 ac_cv_lib_socket_socket=yes
21273else
21274 ac_cv_lib_socket_socket=no
21275fi
21276rm -f core conftest.err conftest.$ac_objext \
21277 conftest$ac_exeext conftest.$ac_ext
21278LIBS=$ac_check_lib_save_LIBS
21279fi
21280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21281$as_echo "$ac_cv_lib_socket_socket" >&6; }
21282if test "x$ac_cv_lib_socket_socket" = xyes; then :
21283
21284 ost_cv_lib_socket="socket"
21285 SOCKET_LIBS="-lsocket"
21286
21287fi
21288
21289
21290 if test $ost_cv_inet_sockets = yes ; then
21291 as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_lib_socket}''_getaddrinfo" | $as_tr_sh`
21292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l${ost_cv_lib_socket}" >&5
21293$as_echo_n "checking for getaddrinfo in -l${ost_cv_lib_socket}... " >&6; }
21294if eval \${$as_ac_Lib+:} false; then :
21295 $as_echo_n "(cached) " >&6
21296else
21297 ac_check_lib_save_LIBS=$LIBS
21298LIBS="-l${ost_cv_lib_socket} $LIBS"
21299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21300/* end confdefs.h. */
21301
21302/* Override any GCC internal prototype to avoid an error.
21303 Use char because int might match the return type of a GCC
21304 builtin and then its argument prototype would still apply. */
21305#ifdef __cplusplus
21306extern "C"
21307#endif
21308char getaddrinfo ();
21309int
21310main ()
21311{
21312return getaddrinfo ();
21313 ;
21314 return 0;
21315}
21316_ACEOF
21317if ac_fn_cxx_try_link "$LINENO"; then :
21318 eval "$as_ac_Lib=yes"
21319else
21320 eval "$as_ac_Lib=no"
21321fi
21322rm -f core conftest.err conftest.$ac_objext \
21323 conftest$ac_exeext conftest.$ac_ext
21324LIBS=$ac_check_lib_save_LIBS
21325fi
21326eval ac_res=\$$as_ac_Lib
21327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21328$as_echo "$ac_res" >&6; }
21329if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21330
21331
21332$as_echo "@%:@define HAVE_GETADDRINFO 1" >>confdefs.h
21333
21334
21335fi
21336
21337
21338@%:@ Check whether --with-ipv6 was given.
21339if test "${with_ipv6+set}" = set; then :
21340 withval=$with_ipv6; ost_cv_ipv6=no
21341else
21342
21343 for ac_header in netinet6/in6.h linux/in6.h
21344do :
21345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21346ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21347if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21348 cat >>confdefs.h <<_ACEOF
21349@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21350_ACEOF
21351
21352fi
21353
21354done
21355
21356 as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_lib_socket}''_inet_pton" | $as_tr_sh`
21357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton in -l${ost_cv_lib_socket}" >&5
21358$as_echo_n "checking for inet_pton in -l${ost_cv_lib_socket}... " >&6; }
21359if eval \${$as_ac_Lib+:} false; then :
21360 $as_echo_n "(cached) " >&6
21361else
21362 ac_check_lib_save_LIBS=$LIBS
21363LIBS="-l${ost_cv_lib_socket} $LIBS"
21364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21365/* end confdefs.h. */
21366
21367/* Override any GCC internal prototype to avoid an error.
21368 Use char because int might match the return type of a GCC
21369 builtin and then its argument prototype would still apply. */
21370#ifdef __cplusplus
21371extern "C"
21372#endif
21373char inet_pton ();
21374int
21375main ()
21376{
21377return inet_pton ();
21378 ;
21379 return 0;
21380}
21381_ACEOF
21382if ac_fn_cxx_try_link "$LINENO"; then :
21383 eval "$as_ac_Lib=yes"
21384else
21385 eval "$as_ac_Lib=no"
21386fi
21387rm -f core conftest.err conftest.$ac_objext \
21388 conftest$ac_exeext conftest.$ac_ext
21389LIBS=$ac_check_lib_save_LIBS
21390fi
21391eval ac_res=\$$as_ac_Lib
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21393$as_echo "$ac_res" >&6; }
21394if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21395
21396
21397$as_echo "@%:@define HAVE_INET_PTON 1" >>confdefs.h
21398
21399fi
21400
21401 as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_lib_socket}''_gethostbyname2" | $as_tr_sh`
21402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname2 in -l${ost_cv_lib_socket}" >&5
21403$as_echo_n "checking for gethostbyname2 in -l${ost_cv_lib_socket}... " >&6; }
21404if eval \${$as_ac_Lib+:} false; then :
21405 $as_echo_n "(cached) " >&6
21406else
21407 ac_check_lib_save_LIBS=$LIBS
21408LIBS="-l${ost_cv_lib_socket} $LIBS"
21409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21410/* end confdefs.h. */
21411
21412/* Override any GCC internal prototype to avoid an error.
21413 Use char because int might match the return type of a GCC
21414 builtin and then its argument prototype would still apply. */
21415#ifdef __cplusplus
21416extern "C"
21417#endif
21418char gethostbyname2 ();
21419int
21420main ()
21421{
21422return gethostbyname2 ();
21423 ;
21424 return 0;
21425}
21426_ACEOF
21427if ac_fn_cxx_try_link "$LINENO"; then :
21428 eval "$as_ac_Lib=yes"
21429else
21430 eval "$as_ac_Lib=no"
21431fi
21432rm -f core conftest.err conftest.$ac_objext \
21433 conftest$ac_exeext conftest.$ac_ext
21434LIBS=$ac_check_lib_save_LIBS
21435fi
21436eval ac_res=\$$as_ac_Lib
21437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21438$as_echo "$ac_res" >&6; }
21439if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21440
21441
21442$as_echo "@%:@define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
21443
21444fi
21445
21446
21447fi
21448
21449 for ac_header in sys/libcsys.h
21450do :
21451 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/libcsys.h" "ac_cv_header_sys_libcsys_h" "$ac_includes_default"
21452if test "x$ac_cv_header_sys_libcsys_h" = xyes; then :
21453 cat >>confdefs.h <<_ACEOF
21454@%:@define HAVE_SYS_LIBCSYS_H 1
21455_ACEOF
21456
21457fi
21458
21459done
21460
21461
21462$as_echo "@%:@define HAVE_INET_SOCKETS 1" >>confdefs.h
21463
21464 as_ac_Lib=`$as_echo "ac_cv_lib_${ost_cv_lib_socket}''_inet_aton" | $as_tr_sh`
21465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -l${ost_cv_lib_socket}" >&5
21466$as_echo_n "checking for inet_aton in -l${ost_cv_lib_socket}... " >&6; }
21467if eval \${$as_ac_Lib+:} false; then :
21468 $as_echo_n "(cached) " >&6
21469else
21470 ac_check_lib_save_LIBS=$LIBS
21471LIBS="-l${ost_cv_lib_socket} $LIBS"
21472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21473/* end confdefs.h. */
21474
21475/* Override any GCC internal prototype to avoid an error.
21476 Use char because int might match the return type of a GCC
21477 builtin and then its argument prototype would still apply. */
21478#ifdef __cplusplus
21479extern "C"
21480#endif
21481char inet_aton ();
21482int
21483main ()
21484{
21485return inet_aton ();
21486 ;
21487 return 0;
21488}
21489_ACEOF
21490if ac_fn_cxx_try_link "$LINENO"; then :
21491 eval "$as_ac_Lib=yes"
21492else
21493 eval "$as_ac_Lib=no"
21494fi
21495rm -f core conftest.err conftest.$ac_objext \
21496 conftest$ac_exeext conftest.$ac_ext
21497LIBS=$ac_check_lib_save_LIBS
21498fi
21499eval ac_res=\$$as_ac_Lib
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21501$as_echo "$ac_res" >&6; }
21502if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21503
21504
21505$as_echo "@%:@define HAVE_INET_ATON 1" >>confdefs.h
21506
21507fi
21508
21509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t defined" >&5
21510$as_echo_n "checking for socklen_t defined... " >&6; }
21511if ${ost_cv_socklen_t+:} false; then :
21512 $as_echo_n "(cached) " >&6
21513else
21514
21515 ost_cv_socklen_t='no'
21516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21517/* end confdefs.h. */
21518#include <sys/socket.h>
21519
21520_ACEOF
21521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21522 $EGREP "socklen_t" >/dev/null 2>&1; then :
21523 ost_cv_socklen_t='yes'
21524else
21525
21526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21527/* end confdefs.h. */
21528#include <cygwin/socket.h>
21529
21530_ACEOF
21531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21532 $EGREP "socklen_t" >/dev/null 2>&1; then :
21533 ost_cv_socklen_t='yes'
21534fi
21535rm -f conftest*
21536
21537fi
21538rm -f conftest*
21539
21540
21541fi
21542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ost_cv_socklen_t" >&5
21543$as_echo "$ost_cv_socklen_t" >&6; }
21544 if test $ost_cv_socklen_t = yes ; then
21545
21546$as_echo "@%:@define HAVE_SOCKLEN_T 1" >>confdefs.h
21547
21548 fi
21549
21550
21551@%:@ Check whether --with-nat was given.
21552if test "${with_nat+set}" = set; then :
21553 withval=$with_nat; ost_cv_nat=no
21554
21555fi
21556
21557
21558 if test "$ost_cv_nat" = "yes" ; then
21559
21560 for ac_header in errno.h limits.h sys/types.h sys/socket.h sys/ioctl.h unistd.h
21561do :
21562 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21563ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21564if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21565 cat >>confdefs.h <<_ACEOF
21566@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21567_ACEOF
21568
21569fi
21570
21571done
21572
21573 for ac_header in net/if.h
21574do :
21575 ac_fn_cxx_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
21576 #include <sys/socket.h>
21577 #endif
21578"
21579if test "x$ac_cv_header_net_if_h" = xyes; then :
21580 cat >>confdefs.h <<_ACEOF
21581@%:@define HAVE_NET_IF_H 1
21582_ACEOF
21583
21584fi
21585
21586done
21587
21588
21589 if test "$ost_cv_nat_detected" = "no" ; then
21590 for ac_header in linux/netfilter_ipv4.h linux/netfilter_ipv6.h
21591do :
21592 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21593ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIMITS_H
21594 #include <limits.h>
21595 #endif
21596"
21597if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21598 cat >>confdefs.h <<_ACEOF
21599@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21600_ACEOF
21601
21602fi
21603
21604done
21605
21606 if test "$ac_cv_header_linux_netfilter_ipv4_h" = "yes" &&
21607 test "$ac_cv_header_linux_netfilter_ipv6_h" = "yes" &&
21608 test "$ost_cv_ipv6" = "yes" ||
21609 test "$ost_cv_ipv6" = "no" ; then
21610
21611$as_echo "@%:@define HAVE_NAT_NETFILTER 1" >>confdefs.h
21612
21613 ost_cv_nat_detected="yes"
21614 fi
21615 fi
21616
21617 if test "$ost_cv_nat_detected" = "no" ; then
21618 ip_filter_compat="no"
21619 for ac_header in netinet/ip_compat.h ip_compat.h netinet/ip_fil_compat.h ip_fil_compat.h
21620do :
21621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21622ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
21623 #include <sys/types.h>
21624 #endif
21625 #ifdef HAVE_SYS_SOCKET_H
21626 #include <sys/socket.h>
21627 #endif
21628 #ifdef HAVE_NETINET_IN_H
21629 #include <netinet/in.h>
21630 #endif
21631"
21632if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21633 cat >>confdefs.h <<_ACEOF
21634@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21635_ACEOF
21636 ip_filter_compat=$ac_header
21637 break
21638fi
21639
21640done
21641
21642 if test "$ip_filter_compat" != "no" ; then
21643 ip_filter_fil="no"
21644 for ac_header in netinet/ip_fil.h ip_fil.h
21645do :
21646 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21647ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
21648 #include <sys/types.h>
21649 #endif
21650 #ifdef HAVE_SYS_SOCKET_H
21651 #include <sys/socket.h>
21652 #endif
21653 #ifdef HAVE_NETINET_IN_H
21654 #include <netinet/in.h>
21655 #endif
21656 #include <$ip_filter_compat>
21657"
21658if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21659 cat >>confdefs.h <<_ACEOF
21660@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21661_ACEOF
21662 ip_filter_fil=$ac_header
21663 break
21664fi
21665
21666done
21667
21668 ip_filter_nat="no"
21669 for ac_header in netinet/ip_nat.h ip_nat.h
21670do :
21671 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21672ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
21673 #include <sys/types.h>
21674 #endif
21675 #ifdef HAVE_SYS_SOCKET_H
21676 #include <sys/socket.h>
21677 #endif
21678 #ifdef HAVE_NETINET_IN_H
21679 #include <netinet/in.h>
21680 #endif
21681 #include <$ip_filter_compat>
21682 #include <$ip_filter_fil>
21683 #ifdef HAVE_NET_IF_H
21684 #include <net/if.h>
21685 #endif
21686"
21687if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21688 cat >>confdefs.h <<_ACEOF
21689@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21690_ACEOF
21691 ip_filter_nat=$ac_header
21692 break
21693fi
21694
21695done
21696
21697 if test "$ip_filter_fil" != "no" &&
21698 test "$ip_filter_nat" != "no" ; then
21699
21700$as_echo "@%:@define HAVE_NAT_IPF 1" >>confdefs.h
21701
21702 ost_cv_nat_detected="yes"
21703 fi
21704 fi
21705 fi
21706
21707 if test "$ost_cv_nat_detected" = "no" ; then
21708 for ac_header in net/pfvar.h
21709do :
21710 ac_fn_cxx_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#ifdef HAVE_SYS_TYPES_H
21711 #include <sys/types.h>
21712 #endif
21713 #ifdef HAVE_SYS_SOCKET_H
21714 #include <sys/socket.h>
21715 #endif
21716 #ifdef HAVE_NET_IF_H
21717 #include <net/if.h>
21718 #endif
21719 #ifdef HAVE_NETINET_IN_H
21720 #include <netinet/in.h>
21721 #endif
21722"
21723if test "x$ac_cv_header_net_pfvar_h" = xyes; then :
21724 cat >>confdefs.h <<_ACEOF
21725@%:@define HAVE_NET_PFVAR_H 1
21726_ACEOF
21727
21728fi
21729
21730done
21731
21732 if test "$ac_cv_header_net_pfvar.h" = "yes" ; then
21733
21734$as_echo "@%:@define HAVE_NAT_PF 1" >>confdefs.h
21735
21736 ost_cv_nat_detected="yes"
21737 fi
21738 fi
21739
21740 if test "$ost_cv_nat_detected" = "yes"; then
21741
21742$as_echo "@%:@define CCXX_NAT 1" >>confdefs.h
21743
21744 else
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -------------------------------------------------------" >&5
21746$as_echo "$as_me: WARNING: -------------------------------------------------------" >&2;}
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not autodetect NAT engine - pf, ipf or netfilter." >&5
21748$as_echo "$as_me: WARNING: Could not autodetect NAT engine - pf, ipf or netfilter." >&2;}
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NAT engine c++ class interface support was disabled. " >&5
21750$as_echo "$as_me: WARNING: NAT engine c++ class interface support was disabled. " >&2;}
21751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is not necessarilly a problem. If you do not plan " >&5
21752$as_echo "$as_me: WARNING: This is not necessarilly a problem. If you do not plan " >&2;}
21753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to use or don't know what this is, than it is safe to " >&5
21754$as_echo "$as_me: WARNING: to use or don't know what this is, than it is safe to " >&2;}
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: assume that you don't need it. " >&5
21756$as_echo "$as_me: WARNING: assume that you don't need it. " >&2;}
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -------------------------------------------------------" >&5
21758$as_echo "$as_me: WARNING: -------------------------------------------------------" >&2;}
21759 ost_cv_nat="no"
21760 fi
21761 fi
21762 fi
21763
21764 if test $ost_cv_unix_sockets = yes ; then
21765
21766$as_echo "@%:@define HAVE_UNIX_SOCKETS 1" >>confdefs.h
21767
21768 fi
21769 THREAD_LIBS="$SOCKET_LIBS $THREAD_LIBS"
21770
21771
21772
21773
21774ost_cv_ssl=no
21775
21776@%:@ Check whether --with-monotonic was given.
21777if test "${with_monotonic+set}" = set; then :
21778 withval=$with_monotonic;
21779else
21780
21781$as_echo "@%:@define USE_MONOTONIC_TIMER 1" >>confdefs.h
21782
21783
21784fi
21785
21786
21787
21788@%:@ Check whether --with-extras was given.
21789if test "${with_extras+set}" = set; then :
21790 withval=$with_extras;
21791
21792 ZSTREAM_LIBS=""
21793 ost_cv_lib_zlib=false
21794
21795
21796 OST_LIB_NOXML
21797 ost_cv_extras=no
21798
21799else
21800
21801 ost_cv_extras=yes
21802
21803$as_echo "@%:@define HAVE_EXTRAS 1" >>confdefs.h
21804
21805
21806
21807@%:@ Check whether --with-gnutls was given.
21808if test "${with_gnutls+set}" = set; then :
21809 withval=$with_gnutls;
21810 ac_fn_cxx_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
21811if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
21812
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
21814$as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
21815if ${ac_cv_lib_gnutls_gnutls_init+:} false; then :
21816 $as_echo_n "(cached) " >&6
21817else
21818 ac_check_lib_save_LIBS=$LIBS
21819LIBS="-lgnutls $LIBS"
21820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21821/* end confdefs.h. */
21822
21823/* Override any GCC internal prototype to avoid an error.
21824 Use char because int might match the return type of a GCC
21825 builtin and then its argument prototype would still apply. */
21826#ifdef __cplusplus
21827extern "C"
21828#endif
21829char gnutls_init ();
21830int
21831main ()
21832{
21833return gnutls_init ();
21834 ;
21835 return 0;
21836}
21837_ACEOF
21838if ac_fn_cxx_try_link "$LINENO"; then :
21839 ac_cv_lib_gnutls_gnutls_init=yes
21840else
21841 ac_cv_lib_gnutls_gnutls_init=no
21842fi
21843rm -f core conftest.err conftest.$ac_objext \
21844 conftest$ac_exeext conftest.$ac_ext
21845LIBS=$ac_check_lib_save_LIBS
21846fi
21847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
21848$as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; }
21849if test "x$ac_cv_lib_gnutls_gnutls_init" = xyes; then :
21850
21851 SSL_LIBS="-lgnutls -lgcrypt"
21852 ost_cv_ssl=true
21853
21854$as_echo "@%:@define CCXX_SSL GNUTLS" >>confdefs.h
21855
21856
21857$as_echo "@%:@define CCXX_GNUTLS 1" >>confdefs.h
21858
21859
21860fi
21861
21862
21863fi
21864
21865
21866
21867else
21868
21869
21870@%:@ Check whether --with-openssl was given.
21871if test "${with_openssl+set}" = set; then :
21872 withval=$with_openssl;
21873 SSL_LIBS=""
21874#
21875# WE CANNOT YET USE GNUTLS BECAUSE GNUTLS OPENSSL EMULATION DOES
21876# NOT SUPPORT THREAD SAFETY, SO ssl.cpp MUST BE REWRITTEN TO USE
21877# NATIVE GNUTLS API.
21878#
21879# AC_CHECK_HEADER(gnutls/gnutls.h,[
21880# AC_CHECK_LIB(gnutls, gnutls_init, [
21881# SSL_LIBS="-lgnutls -lgcrypt -ltasn1"
21882# ost_cv_ssl=true
21883# AC_DEFINE(CCXX_SSL, [GNUTLS], [defines ssl])
21884# AC_DEFINE(CCXX_GNUTLS, [1], [define gnutls])
21885# ])
21886# ],[
21887 ac_fn_cxx_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
21888if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
21889
21890 SSL_LIBS="-lssl"
21891 ost_cv_ssl=true
21892
21893$as_echo "@%:@define CCXX_OPENSSL 1" >>confdefs.h
21894
21895
21896$as_echo "@%:@define CCXX_SSL OPENSSL" >>confdefs.h
21897
21898
21899fi
21900
21901
21902# ])
21903
21904
21905else
21906
21907 SSL_LIBS=""
21908
21909
21910fi
21911
21912
21913fi
21914
21915
21916@%:@ Check whether --with-compression was given.
21917if test "${with_compression+set}" = set; then :
21918 withval=$with_compression;
21919 ZSTREAM_LIBS=""
21920 ost_cv_lib_zlib=false
21921
21922
21923else
21924
21925
21926 ZSTREAM_LIBS=""
21927 ost_cv_lib_zlib=false
21928 for ac_header in zlib.h
21929do :
21930 ac_fn_cxx_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21931if test "x$ac_cv_header_zlib_h" = xyes; then :
21932 cat >>confdefs.h <<_ACEOF
21933@%:@define HAVE_ZLIB_H 1
21934_ACEOF
21935
21936 ZSTREAM_LIBS="-lz"
21937
21938$as_echo "@%:@define HAVE_ZLIB_H 1" >>confdefs.h
21939
21940 ost_cv_lib_zlib=true
21941fi
21942
21943done
21944
21945
21946
21947fi
21948
21949
21950fi
21951
21952
21953
21954@%:@ Check whether --with-memaudit was given.
21955if test "${with_memaudit+set}" = set; then :
21956 withval=$with_memaudit;
21957$as_echo "@%:@define COMMON_MEMORY_AUDIT 1" >>confdefs.h
21958
21959fi
21960
21961
21962
21963@%:@ Check whether --with-cppunit was given.
21964if test "${with_cppunit+set}" = set; then :
21965 withval=$with_cppunit;
21966 if test "$withval" != "yes"; then
21967 CPPUNIT_LIBS="-l$withval"
21968 else
21969 CPPUNIT_LIBS="-lcppunit"
21970 fi
21971
21972else
21973
21974 CPPUNIT_LIBS=" "
21975
21976fi
21977
21978
21979
21980 if test "$CPPUNIT_LIBS" != " "; then
21981 WITH_CPPUNIT_TESTS_TRUE=
21982 WITH_CPPUNIT_TESTS_FALSE='#'
21983else
21984 WITH_CPPUNIT_TESTS_TRUE='#'
21985 WITH_CPPUNIT_TESTS_FALSE=
21986fi
21987
21988
21989for ac_header in sys/file.h sys/param.h sys/wait.h syslog.h syslog.hposix_evlog.h ss.h ioctl.h
21990do :
21991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21992ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21993if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21994 cat >>confdefs.h <<_ACEOF
21995@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21996_ACEOF
21997
21998fi
21999
22000done
22001
22002for ac_func in realpath lstat snprintf memmove strdup lockf waitpid wait4 gettimeofday
22003do :
22004 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22005ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
22006if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22007 cat >>confdefs.h <<_ACEOF
22008@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22009_ACEOF
22010
22011fi
22012done
22013
22014for ac_func in posix_memalign setegid setpgrp getpagesize
22015do :
22016 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22017ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
22018if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22019 cat >>confdefs.h <<_ACEOF
22020@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22021_ACEOF
22022
22023fi
22024done
22025
22026
22027# C++ stuff must done after library and header
22028# (some C++ define require some header)
22029
22030
22031 ac_ext=c
22032ac_cpp='$CPP $CPPFLAGS'
22033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22035ac_compiler_gnu=$ac_cv_c_compiler_gnu
22036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
22037$as_echo_n "checking how to run the C preprocessor... " >&6; }
22038# On Suns, sometimes $CPP names a directory.
22039if test -n "$CPP" && test -d "$CPP"; then
22040 CPP=
22041fi
22042if test -z "$CPP"; then
22043 if ${ac_cv_prog_CPP+:} false; then :
22044 $as_echo_n "(cached) " >&6
22045else
22046 # Double quotes because CPP needs to be expanded
22047 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
22048 do
22049 ac_preproc_ok=false
22050for ac_c_preproc_warn_flag in '' yes
22051do
22052 # Use a header file that comes with gcc, so configuring glibc
22053 # with a fresh cross-compiler works.
22054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22055 # <limits.h> exists even on freestanding compilers.
22056 # On the NeXT, cc -E runs the code through the compiler's parser,
22057 # not just through cpp. "Syntax error" is here to catch this case.
22058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22059/* end confdefs.h. */
22060@%:@ifdef __STDC__
22061@%:@ include <limits.h>
22062@%:@else
22063@%:@ include <assert.h>
22064@%:@endif
22065 Syntax error
22066_ACEOF
22067if ac_fn_c_try_cpp "$LINENO"; then :
22068
22069else
22070 # Broken: fails on valid input.
22071continue
22072fi
22073rm -f conftest.err conftest.i conftest.$ac_ext
22074
22075 # OK, works on sane cases. Now check whether nonexistent headers
22076 # can be detected and how.
22077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22078/* end confdefs.h. */
22079@%:@include <ac_nonexistent.h>
22080_ACEOF
22081if ac_fn_c_try_cpp "$LINENO"; then :
22082 # Broken: success on invalid input.
22083continue
22084else
22085 # Passes both tests.
22086ac_preproc_ok=:
22087break
22088fi
22089rm -f conftest.err conftest.i conftest.$ac_ext
22090
22091done
22092# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22093rm -f conftest.i conftest.err conftest.$ac_ext
22094if $ac_preproc_ok; then :
22095 break
22096fi
22097
22098 done
22099 ac_cv_prog_CPP=$CPP
22100
22101fi
22102 CPP=$ac_cv_prog_CPP
22103else
22104 ac_cv_prog_CPP=$CPP
22105fi
22106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
22107$as_echo "$CPP" >&6; }
22108ac_preproc_ok=false
22109for ac_c_preproc_warn_flag in '' yes
22110do
22111 # Use a header file that comes with gcc, so configuring glibc
22112 # with a fresh cross-compiler works.
22113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22114 # <limits.h> exists even on freestanding compilers.
22115 # On the NeXT, cc -E runs the code through the compiler's parser,
22116 # not just through cpp. "Syntax error" is here to catch this case.
22117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22118/* end confdefs.h. */
22119@%:@ifdef __STDC__
22120@%:@ include <limits.h>
22121@%:@else
22122@%:@ include <assert.h>
22123@%:@endif
22124 Syntax error
22125_ACEOF
22126if ac_fn_c_try_cpp "$LINENO"; then :
22127
22128else
22129 # Broken: fails on valid input.
22130continue
22131fi
22132rm -f conftest.err conftest.i conftest.$ac_ext
22133
22134 # OK, works on sane cases. Now check whether nonexistent headers
22135 # can be detected and how.
22136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22137/* end confdefs.h. */
22138@%:@include <ac_nonexistent.h>
22139_ACEOF
22140if ac_fn_c_try_cpp "$LINENO"; then :
22141 # Broken: success on invalid input.
22142continue
22143else
22144 # Passes both tests.
22145ac_preproc_ok=:
22146break
22147fi
22148rm -f conftest.err conftest.i conftest.$ac_ext
22149
22150done
22151# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22152rm -f conftest.i conftest.err conftest.$ac_ext
22153if $ac_preproc_ok; then :
22154
22155else
22156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22158as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
22159See \`config.log' for more details" "$LINENO" 5; }
22160fi
22161
22162ac_ext=cpp
22163ac_cpp='$CXXCPP $CPPFLAGS'
22164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22167
22168 ac_ext=cpp
22169ac_cpp='$CXXCPP $CPPFLAGS'
22170ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22171ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22172ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22173if test -z "$CXX"; then
22174 if test -n "$CCC"; then
22175 CXX=$CCC
22176 else
22177 if test -n "$ac_tool_prefix"; then
22178 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22179 do
22180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22181set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22183$as_echo_n "checking for $ac_word... " >&6; }
22184if ${ac_cv_prog_CXX+:} false; then :
22185 $as_echo_n "(cached) " >&6
22186else
22187 if test -n "$CXX"; then
22188 ac_cv_prog_CXX="$CXX" # Let the user override the test.
22189else
22190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22191for as_dir in $PATH
22192do
22193 IFS=$as_save_IFS
22194 test -z "$as_dir" && as_dir=.
22195 for ac_exec_ext in '' $ac_executable_extensions; do
22196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22197 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
22198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22199 break 2
22200 fi
22201done
22202 done
22203IFS=$as_save_IFS
22204
22205fi
22206fi
22207CXX=$ac_cv_prog_CXX
22208if test -n "$CXX"; then
22209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
22210$as_echo "$CXX" >&6; }
22211else
22212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22213$as_echo "no" >&6; }
22214fi
22215
22216
22217 test -n "$CXX" && break
22218 done
22219fi
22220if test -z "$CXX"; then
22221 ac_ct_CXX=$CXX
22222 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22223do
22224 # Extract the first word of "$ac_prog", so it can be a program name with args.
22225set dummy $ac_prog; ac_word=$2
22226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22227$as_echo_n "checking for $ac_word... " >&6; }
22228if ${ac_cv_prog_ac_ct_CXX+:} false; then :
22229 $as_echo_n "(cached) " >&6
22230else
22231 if test -n "$ac_ct_CXX"; then
22232 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
22233else
22234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22235for as_dir in $PATH
22236do
22237 IFS=$as_save_IFS
22238 test -z "$as_dir" && as_dir=.
22239 for ac_exec_ext in '' $ac_executable_extensions; do
22240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22241 ac_cv_prog_ac_ct_CXX="$ac_prog"
22242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22243 break 2
22244 fi
22245done
22246 done
22247IFS=$as_save_IFS
22248
22249fi
22250fi
22251ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
22252if test -n "$ac_ct_CXX"; then
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
22254$as_echo "$ac_ct_CXX" >&6; }
22255else
22256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22257$as_echo "no" >&6; }
22258fi
22259
22260
22261 test -n "$ac_ct_CXX" && break
22262done
22263
22264 if test "x$ac_ct_CXX" = x; then
22265 CXX="g++"
22266 else
22267 case $cross_compiling:$ac_tool_warned in
22268yes:)
22269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22271ac_tool_warned=yes ;;
22272esac
22273 CXX=$ac_ct_CXX
22274 fi
22275fi
22276
22277 fi
22278fi
22279# Provide some information about the compiler.
22280$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
22281set X $ac_compile
22282ac_compiler=$2
22283for ac_option in --version -v -V -qversion; do
22284 { { ac_try="$ac_compiler $ac_option >&5"
22285case "(($ac_try" in
22286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287 *) ac_try_echo=$ac_try;;
22288esac
22289eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22290$as_echo "$ac_try_echo"; } >&5
22291 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
22292 ac_status=$?
22293 if test -s conftest.err; then
22294 sed '10a\
22295... rest of stderr output deleted ...
22296 10q' conftest.err >conftest.er1
22297 cat conftest.er1 >&5
22298 fi
22299 rm -f conftest.er1 conftest.err
22300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22301 test $ac_status = 0; }
22302done
22303
22304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
22305$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22306if ${ac_cv_cxx_compiler_gnu+:} false; then :
22307 $as_echo_n "(cached) " >&6
22308else
22309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22310/* end confdefs.h. */
22311
22312int
22313main ()
22314{
22315#ifndef __GNUC__
22316 choke me
22317#endif
22318
22319 ;
22320 return 0;
22321}
22322_ACEOF
22323if ac_fn_cxx_try_compile "$LINENO"; then :
22324 ac_compiler_gnu=yes
22325else
22326 ac_compiler_gnu=no
22327fi
22328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22329ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
22330
22331fi
22332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
22333$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
22334if test $ac_compiler_gnu = yes; then
22335 GXX=yes
22336else
22337 GXX=
22338fi
22339ac_test_CXXFLAGS=${CXXFLAGS+set}
22340ac_save_CXXFLAGS=$CXXFLAGS
22341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
22342$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22343if ${ac_cv_prog_cxx_g+:} false; then :
22344 $as_echo_n "(cached) " >&6
22345else
22346 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
22347 ac_cxx_werror_flag=yes
22348 ac_cv_prog_cxx_g=no
22349 CXXFLAGS="-g"
22350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22351/* end confdefs.h. */
22352
22353int
22354main ()
22355{
22356
22357 ;
22358 return 0;
22359}
22360_ACEOF
22361if ac_fn_cxx_try_compile "$LINENO"; then :
22362 ac_cv_prog_cxx_g=yes
22363else
22364 CXXFLAGS=""
22365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22366/* end confdefs.h. */
22367
22368int
22369main ()
22370{
22371
22372 ;
22373 return 0;
22374}
22375_ACEOF
22376if ac_fn_cxx_try_compile "$LINENO"; then :
22377
22378else
22379 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
22380 CXXFLAGS="-g"
22381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22382/* end confdefs.h. */
22383
22384int
22385main ()
22386{
22387
22388 ;
22389 return 0;
22390}
22391_ACEOF
22392if ac_fn_cxx_try_compile "$LINENO"; then :
22393 ac_cv_prog_cxx_g=yes
22394fi
22395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22396fi
22397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22398fi
22399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22400 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
22401fi
22402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
22403$as_echo "$ac_cv_prog_cxx_g" >&6; }
22404if test "$ac_test_CXXFLAGS" = set; then
22405 CXXFLAGS=$ac_save_CXXFLAGS
22406elif test $ac_cv_prog_cxx_g = yes; then
22407 if test "$GXX" = yes; then
22408 CXXFLAGS="-g -O2"
22409 else
22410 CXXFLAGS="-g"
22411 fi
22412else
22413 if test "$GXX" = yes; then
22414 CXXFLAGS="-O2"
22415 else
22416 CXXFLAGS=
22417 fi
22418fi
22419ac_ext=cpp
22420ac_cpp='$CXXCPP $CPPFLAGS'
22421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22424
22425 ac_ext=cpp
22426ac_cpp='$CXXCPP $CPPFLAGS'
22427ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22428ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22429ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
22431$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
22432if test -z "$CXXCPP"; then
22433 if ${ac_cv_prog_CXXCPP+:} false; then :
22434 $as_echo_n "(cached) " >&6
22435else
22436 # Double quotes because CXXCPP needs to be expanded
22437 for CXXCPP in "$CXX -E" "/lib/cpp"
22438 do
22439 ac_preproc_ok=false
22440for ac_cxx_preproc_warn_flag in '' yes
22441do
22442 # Use a header file that comes with gcc, so configuring glibc
22443 # with a fresh cross-compiler works.
22444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22445 # <limits.h> exists even on freestanding compilers.
22446 # On the NeXT, cc -E runs the code through the compiler's parser,
22447 # not just through cpp. "Syntax error" is here to catch this case.
22448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22449/* end confdefs.h. */
22450@%:@ifdef __STDC__
22451@%:@ include <limits.h>
22452@%:@else
22453@%:@ include <assert.h>
22454@%:@endif
22455 Syntax error
22456_ACEOF
22457if ac_fn_cxx_try_cpp "$LINENO"; then :
22458
22459else
22460 # Broken: fails on valid input.
22461continue
22462fi
22463rm -f conftest.err conftest.i conftest.$ac_ext
22464
22465 # OK, works on sane cases. Now check whether nonexistent headers
22466 # can be detected and how.
22467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22468/* end confdefs.h. */
22469@%:@include <ac_nonexistent.h>
22470_ACEOF
22471if ac_fn_cxx_try_cpp "$LINENO"; then :
22472 # Broken: success on invalid input.
22473continue
22474else
22475 # Passes both tests.
22476ac_preproc_ok=:
22477break
22478fi
22479rm -f conftest.err conftest.i conftest.$ac_ext
22480
22481done
22482# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22483rm -f conftest.i conftest.err conftest.$ac_ext
22484if $ac_preproc_ok; then :
22485 break
22486fi
22487
22488 done
22489 ac_cv_prog_CXXCPP=$CXXCPP
22490
22491fi
22492 CXXCPP=$ac_cv_prog_CXXCPP
22493else
22494 ac_cv_prog_CXXCPP=$CXXCPP
22495fi
22496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
22497$as_echo "$CXXCPP" >&6; }
22498ac_preproc_ok=false
22499for ac_cxx_preproc_warn_flag in '' yes
22500do
22501 # Use a header file that comes with gcc, so configuring glibc
22502 # with a fresh cross-compiler works.
22503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22504 # <limits.h> exists even on freestanding compilers.
22505 # On the NeXT, cc -E runs the code through the compiler's parser,
22506 # not just through cpp. "Syntax error" is here to catch this case.
22507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22508/* end confdefs.h. */
22509@%:@ifdef __STDC__
22510@%:@ include <limits.h>
22511@%:@else
22512@%:@ include <assert.h>
22513@%:@endif
22514 Syntax error
22515_ACEOF
22516if ac_fn_cxx_try_cpp "$LINENO"; then :
22517
22518else
22519 # Broken: fails on valid input.
22520continue
22521fi
22522rm -f conftest.err conftest.i conftest.$ac_ext
22523
22524 # OK, works on sane cases. Now check whether nonexistent headers
22525 # can be detected and how.
22526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22527/* end confdefs.h. */
22528@%:@include <ac_nonexistent.h>
22529_ACEOF
22530if ac_fn_cxx_try_cpp "$LINENO"; then :
22531 # Broken: success on invalid input.
22532continue
22533else
22534 # Passes both tests.
22535ac_preproc_ok=:
22536break
22537fi
22538rm -f conftest.err conftest.i conftest.$ac_ext
22539
22540done
22541# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22542rm -f conftest.i conftest.err conftest.$ac_ext
22543if $ac_preproc_ok; then :
22544
22545else
22546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22548as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
22549See \`config.log' for more details" "$LINENO" 5; }
22550fi
22551
22552ac_ext=cpp
22553ac_cpp='$CXXCPP $CPPFLAGS'
22554ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22555ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22556ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22557
22558
22559
22560
22561 ac_save_CXXFLAGS="$CXXFLAGS"
22562 CXXFLAGS=""
22563 ac_ext=cpp
22564ac_cpp='$CXXCPP $CPPFLAGS'
22565ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22566ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22567ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22568
22569
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} has built-in bool type" >&5
22571$as_echo_n "checking whether ${CXX} has built-in bool type... " >&6; }
22572if ${ac_cv_cxx_bool_type+:} false; then :
22573 $as_echo_n "(cached) " >&6
22574else
22575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22576/* end confdefs.h. */
22577
22578int
22579main ()
22580{
22581bool b1=true; bool b2=false;
22582 ;
22583 return 0;
22584}
22585_ACEOF
22586if ac_fn_cxx_try_compile "$LINENO"; then :
22587 ac_cv_cxx_bool_type=yes
22588else
22589 ac_cv_cxx_bool_type=no
22590
22591fi
22592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22593
22594fi
22595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_bool_type" >&5
22596$as_echo "$ac_cv_cxx_bool_type" >&6; }
22597
22598 if test $ac_cv_cxx_bool_type = yes ; then
22599
22600$as_echo "@%:@define HAVE_BOOL_TYPE 1" >>confdefs.h
22601
22602 fi
22603
22604 ac_ext=cpp
22605ac_cpp='$CXXCPP $CPPFLAGS'
22606ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22607ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22608ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22609
22610 CXXFLAGS="$ac_save_CXXFLAGS"
22611
22612
22613
22614# allow build of library without exception handling, for use in
22615# dedicated targets, etc...
22616
22617
22618@%:@ Check whether --with-exceptions was given.
22619if test "${with_exceptions+set}" = set; then :
22620 withval=$with_exceptions;
22621
22622
22623
22624
22625 ac_save_CXXFLAGS="$CXXFLAGS"
22626 CXXFLAGS=""
22627 ac_ext=cpp
22628ac_cpp='$CXXCPP $CPPFLAGS'
22629ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22630ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22631ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22632
22633
22634 optflags=$CXXFLAGS
22635 if test ! -z "$optflags" ; then
22636 CXXFLAGS=""
22637 for opt in $optflags ; do
22638 case $opt in
22639 *rtti*)
22640 ;;
22641 *exceptions*)
22642 ;;
22643 *)
22644 CXXFLAGS="$CXXFLAGS $opt"
22645 ;;
22646 esac
22647 done
22648 fi
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-exceptions" >&5
22650$as_echo_n "checking whether ${CXX} supports -fno-exceptions... " >&6; }
22651if ${ac_cv_cxx_noexception_flag+:} false; then :
22652 $as_echo_n "(cached) " >&6
22653else
22654
22655 echo 'void f(){}' >conftest.cpp
22656 if test -z "`${CXX} -fno-exceptions -c conftest.cpp 2>&1`"; then
22657 COMMON_FLAGS="$COMMON_FLAGS -fno-exceptions"
22658 ac_cv_cxx_noexception_flag=yes
22659 else
22660 ac_cv_cxx_noexception_flag=no
22661 fi
22662 rm -f conftest*
22663
22664fi
22665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_noexception_flag" >&5
22666$as_echo "$ac_cv_cxx_noexception_flag" >&6; }
22667
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-rtti" >&5
22669$as_echo_n "checking whether ${CXX} supports -fno-rtti... " >&6; }
22670if ${ac_cv_cxx_no_rtti_flag+:} false; then :
22671 $as_echo_n "(cached) " >&6
22672else
22673
22674 echo '#include <sstream>' >conftest.cpp
22675 echo 'void f(){}' >>conftest.cpp
22676 if test -z "`${CXX} -fno-rtti -c conftest.cpp 2>&1`"; then
22677 COMMON_FLAGS="$COMMON_FLAGS -fno-rtti"
22678 ac_cv_cxx_no_rtti_flag=yes
22679 else
22680 ac_cv_cxx_no_rtti_flag=no
22681 fi
22682 rm -f conftest*
22683
22684fi
22685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_no_rtti_flag" >&5
22686$as_echo "$ac_cv_cxx_no_rtti_flag" >&6; }
22687
22688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-check-new" >&5
22689$as_echo_n "checking whether ${CXX} supports -fno-check-new... " >&6; }
22690if ${ac_cv_cxx_no_check_new_flag+:} false; then :
22691 $as_echo_n "(cached) " >&6
22692else
22693
22694 echo 'void f(){}' >conftest.cpp
22695 if test -z "`${CXX} -fno-check-new -c conftest.cpp 2>&1`"; then
22696 COMMON_FLAGS="$COMMON_FLAGS -fno-check-new"
22697 ac_cv_cxx_no_check_new_flag=yes
22698 else
22699 ac_cv_cxx_no_check_new_flag=no
22700 fi
22701 rm -f conftest*
22702
22703fi
22704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_no_check_new_flag" >&5
22705$as_echo "$ac_cv_cxx_no_check_new_flag" >&6; }
22706
22707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -finline" >&5
22708$as_echo_n "checking whether ${CXX} supports -finline... " >&6; }
22709if ${ac_cv_cxx_inline_flag+:} false; then :
22710 $as_echo_n "(cached) " >&6
22711else
22712
22713 echo 'void f(){}' >conftest.cpp
22714 if test -z "`${CXX} -finline -c conftest.cpp 2>&1`"; then
22715 COMMON_FLAGS="$COMMON_FLAGS -finline"
22716 ac_cv_cxx_inline_flag=yes
22717 else
22718 ac_cv_cxx_inline_flag=no
22719 fi
22720 rm -f conftest*
22721
22722fi
22723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_inline_flag" >&5
22724$as_echo "$ac_cv_cxx_inline_flag" >&6; }
22725
22726
22727 ac_ext=cpp
22728ac_cpp='$CXXCPP $CPPFLAGS'
22729ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22730ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22731ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22732
22733 CXXFLAGS="$ac_save_CXXFLAGS"
22734
22735else
22736
22737
22738
22739
22740
22741 ac_save_CXXFLAGS="$CXXFLAGS"
22742 CXXFLAGS=""
22743 ac_ext=cpp
22744ac_cpp='$CXXCPP $CPPFLAGS'
22745ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22746ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22747ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22748
22749
22750 optflags=$CXXFLAGS
22751 if test ! -z "$optflags" ; then
22752 CXXFLAGS=""
22753 for opt in $optflags ; do
22754 case $opt in
22755 *no-rtti*)
22756 ;;
22757 *omit-frame-pointer*)
22758 ;;
22759 *no-exceptions*)
22760 ;;
22761 *)
22762 CXXFLAGS="$CXXFLAGS $opt"
22763 ;;
22764 esac
22765 done
22766 fi
22767
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fhandle-exceptions" >&5
22769$as_echo_n "checking whether ${CXX} supports -fhandle-exceptions... " >&6; }
22770if ${ac_cv_cxx_exception_flag+:} false; then :
22771 $as_echo_n "(cached) " >&6
22772else
22773
22774 echo 'void f(){}' >conftest.cpp
22775 if test -z "`${CXX} -fhandle-exceptions -c conftest.cpp 2>&1`"; then
22776 ac_cv_cxx_exception_flag=yes
22777 COMMON_FLAGS="$COMMON_FLAGS -fhandle-exceptions"
22778 else
22779 ac_cv_cxx_exception_flag=no
22780 fi
22781 rm -f conftest*
22782
22783fi
22784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_exception_flag" >&5
22785$as_echo "$ac_cv_cxx_exception_flag" >&6; }
22786
22787 if test $ac_cv_cxx_exception_flag = "yes" ; then
22788 ac_cv_cxx_exception_handling=yes
22789 else
22790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports exception handling" >&5
22791$as_echo_n "checking whether ${CXX} supports exception handling... " >&6; }
22792if ${ac_cv_cxx_exception_handling+:} false; then :
22793 $as_echo_n "(cached) " >&6
22794else
22795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22796/* end confdefs.h. */
22797void f(void)
22798 {
22799 throw "abc";
22800 }
22801 void g(void)
22802 {
22803 try {
22804 f();
22805 }
22806 catch(char*){}
22807 }
22808
22809int
22810main ()
22811{
22812
22813 ;
22814 return 0;
22815}
22816_ACEOF
22817if ac_fn_cxx_try_compile "$LINENO"; then :
22818 ac_cv_cxx_exception_handling=yes
22819else
22820 ac_cv_cxx_exception_handling=no
22821
22822fi
22823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22824
22825fi
22826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_exception_handling" >&5
22827$as_echo "$ac_cv_cxx_exception_handling" >&6; }
22828 fi
22829
22830 if test $ac_cv_cxx_exception_handling = yes ; then
22831
22832$as_echo "@%:@define CCXX_EXCEPTIONS 1" >>confdefs.h
22833
22834 for ac_header in exception
22835do :
22836 ac_fn_cxx_check_header_mongrel "$LINENO" "exception" "ac_cv_header_exception" "$ac_includes_default"
22837if test "x$ac_cv_header_exception" = xyes; then :
22838 cat >>confdefs.h <<_ACEOF
22839@%:@define HAVE_EXCEPTION 1
22840_ACEOF
22841
22842fi
22843
22844done
22845
22846 fi
22847
22848 ac_ext=cpp
22849ac_cpp='$CXXCPP $CPPFLAGS'
22850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22853
22854 CXXFLAGS="$ac_save_CXXFLAGS"
22855
22856
22857
22858fi
22859
22860
22861
22862
22863
22864
22865
22866 ac_save_CXXFLAGS="$CXXFLAGS"
22867 CXXFLAGS=""
22868 ac_ext=cpp
22869ac_cpp='$CXXCPP $CPPFLAGS'
22870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22872ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22873
22874
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports mutable" >&5
22876$as_echo_n "checking whether ${CXX} supports mutable... " >&6; }
22877if ${ost_cv_cxx_mutable+:} false; then :
22878 $as_echo_n "(cached) " >&6
22879else
22880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22881/* end confdefs.h. */
22882
22883class t {mutable int i;};
22884int
22885main ()
22886{
22887return 0;
22888 ;
22889 return 0;
22890}
22891_ACEOF
22892if ac_fn_cxx_try_compile "$LINENO"; then :
22893 ost_cv_cxx_mutable=yes
22894else
22895 ost_cv_cxx_mutable=no
22896
22897fi
22898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22899
22900fi
22901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ost_cv_cxx_mutable" >&5
22902$as_echo "$ost_cv_cxx_mutable" >&6; }
22903
22904 if test $ost_cv_cxx_mutable = no ; then
22905 COMMON_FLAGS="$COMMON_FLAGS -Dmutable"
22906 fi
22907
22908 ac_ext=cpp
22909ac_cpp='$CXXCPP $CPPFLAGS'
22910ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22911ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22912ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22913
22914 CXXFLAGS="$ac_save_CXXFLAGS"
22915
22916
22917
22918
22919
22920
22921 ac_save_CXXFLAGS="$CXXFLAGS"
22922 CXXFLAGS=""
22923 ac_ext=cpp
22924ac_cpp='$CXXCPP $CPPFLAGS'
22925ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22926ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22927ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22928
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports namespace" >&5
22930$as_echo_n "checking whether ${CXX} supports namespace... " >&6; }
22931if ${ost_cv_cxx_namespace+:} false; then :
22932 $as_echo_n "(cached) " >&6
22933else
22934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22935/* end confdefs.h. */
22936
22937#include <iostream>
22938namespace Test { using namespace std; }
22939int
22940main ()
22941{
22942return 0;
22943 ;
22944 return 0;
22945}
22946_ACEOF
22947if ac_fn_cxx_try_compile "$LINENO"; then :
22948 ost_cv_cxx_namespace=yes
22949else
22950 ost_cv_cxx_namespace=no
22951
22952fi
22953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22954
22955fi
22956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ost_cv_cxx_namespace" >&5
22957$as_echo "$ost_cv_cxx_namespace" >&6; }
22958
22959 if test "$ost_cv_cxx_namespace" = yes ; then
22960
22961$as_echo "@%:@define CCXX_NAMESPACES 1" >>confdefs.h
22962
22963 fi
22964
22965 ac_ext=cpp
22966ac_cpp='$CXXCPP $CPPFLAGS'
22967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22970
22971 CXXFLAGS="$ac_save_CXXFLAGS"
22972
22973
22974
22975
22976
22977 ac_save_CXXFLAGS="$CXXFLAGS"
22978 CXXFLAGS=""
22979 ac_ext=cpp
22980ac_cpp='$CXXCPP $CPPFLAGS'
22981ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22982ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22983ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22984
22985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking wheather old style iostreams" >&5
22986$as_echo_n "checking wheather old style iostreams... " >&6; }
22987if ${ost_cv_cxx_iostream+:} false; then :
22988 $as_echo_n "(cached) " >&6
22989else
22990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22991/* end confdefs.h. */
22992
22993#include <iostream>
22994using namespace std;
22995
22996class mystr : public streambuf, public iostream
22997{
22998 mystr();
22999};
23000
23001mystr::mystr() : streambuf(), iostream((streambuf *)this)
23002{
23003}
23004
23005int
23006main ()
23007{
23008return 0;
23009 ;
23010 return 0;
23011}
23012_ACEOF
23013if ac_fn_cxx_try_compile "$LINENO"; then :
23014 ost_cv_cxx_iostream=no
23015else
23016 ost_cv_cxx_iostream=yes
23017
23018fi
23019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23020
23021fi
23022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ost_cv_cxx_iostream" >&5
23023$as_echo "$ost_cv_cxx_iostream" >&6; }
23024 if test $ost_cv_cxx_iostream = yes ; then
23025
23026$as_echo "@%:@define HAVE_OLD_IOSTREAM 1" >>confdefs.h
23027
23028 fi
23029 for ac_header in sstream
23030do :
23031 ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default"
23032if test "x$ac_cv_header_sstream" = xyes; then :
23033 cat >>confdefs.h <<_ACEOF
23034@%:@define HAVE_SSTREAM 1
23035_ACEOF
23036
23037fi
23038
23039done
23040
23041
23042 ac_ext=cpp
23043ac_cpp='$CXXCPP $CPPFLAGS'
23044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23047
23048 CXXFLAGS="$ac_save_CXXFLAGS"
23049
23050
23051
23052# AC_PROG_CPP
23053# AC_PROG_CXX
23054# AC_PROG_CXXCPP
23055
23056
23057
23058 ac_save_CXXFLAGS="$CXXFLAGS"
23059 CXXFLAGS=""
23060 ac_ext=cpp
23061ac_cpp='$CXXCPP $CPPFLAGS'
23062ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23063ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23064ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23065
23066
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} has new(size_t,void*)" >&5
23068$as_echo_n "checking whether ${CXX} has new(size_t,void*)... " >&6; }
23069if ${ac_cv_cxx_new_init+:} false; then :
23070 $as_echo_n "(cached) " >&6
23071else
23072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23073/* end confdefs.h. */
23074#include <new>
23075#include <iostream>
23076using namespace std;
23077int
23078main ()
23079{
23080int* p1 = new int();
23081int* p2 = new (p1) int();
23082return 0;
23083 ;
23084 return 0;
23085}
23086_ACEOF
23087if ac_fn_cxx_try_compile "$LINENO"; then :
23088 ac_cv_cxx_new_init=yes
23089else
23090 ac_cv_cxx_new_init=no
23091
23092fi
23093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23094
23095fi
23096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_new_init" >&5
23097$as_echo "$ac_cv_cxx_new_init" >&6; }
23098
23099 if test $ac_cv_cxx_new_init = yes ; then
23100
23101$as_echo "@%:@define CCXX_HAVE_NEW_INIT 1" >>confdefs.h
23102
23103 fi
23104
23105 ac_ext=cpp
23106ac_cpp='$CXXCPP $CPPFLAGS'
23107ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23108ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23109ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23110
23111 CXXFLAGS="$ac_save_CXXFLAGS"
23112
23113
23114
23115
23116
23117
23118
23119 ac_save_CXXFLAGS="$CXXFLAGS"
23120 CXXFLAGS=""
23121 ac_ext=cpp
23122ac_cpp='$CXXCPP $CPPFLAGS'
23123ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23126
23127
23128
23129@%:@ Check whether --with-stlport was given.
23130if test "${with_stlport+set}" = set; then :
23131 withval=$with_stlport;
23132 if test "$withval" = "" ; then
23133 COMMON_FLAGS="-I$(includedir)/stlport $COMMON_FLAGS"
23134 else
23135 COMMON_FLAGS="-I$withval/include/stlport $COMMON_FLAGS"
23136 LIBS="-L$withval/lib $LIBS"
23137 fi
23138
23139
23140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __stl_throw_invalid_argument" >&5
23141$as_echo_n "checking for library containing __stl_throw_invalid_argument... " >&6; }
23142if ${ost_cv_search___stl_throw_invalid_argument+:} false; then :
23143 $as_echo_n "(cached) " >&6
23144else
23145
23146 ac_func_search_save_LIBS="$LIBS"
23147 ost_cv_search___stl_throw_invalid_argument="no"
23148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23149/* end confdefs.h. */
23150
23151 namespace _STL { void __stl_throw_invalid_argument(const char*); }
23152
23153int
23154main ()
23155{
23156_STL::__stl_throw_invalid_argument("x")
23157 ;
23158 return 0;
23159}
23160_ACEOF
23161if ac_fn_cxx_try_link "$LINENO"; then :
23162 ost_cv_search___stl_throw_invalid_argument="none required"
23163fi
23164rm -f core conftest.err conftest.$ac_objext \
23165 conftest$ac_exeext conftest.$ac_ext
23166 test "$ost_cv_search___stl_throw_invalid_argument" = "no" && for i in stlport_gcc stlport_cygwin stlport_mingw32 stlport_sunpro stlport_watcom; do
23167 LIBS="-l$i $ac_func_search_save_LIBS"
23168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23169/* end confdefs.h. */
23170
23171 namespace _STL { void __stl_throw_invalid_argument(const char*); }
23172
23173int
23174main ()
23175{
23176_STL::__stl_throw_invalid_argument("x")
23177 ;
23178 return 0;
23179}
23180_ACEOF
23181if ac_fn_cxx_try_link "$LINENO"; then :
23182
23183 ost_cv_search___stl_throw_invalid_argument="-l$i"
23184 break
23185
23186fi
23187rm -f core conftest.err conftest.$ac_objext \
23188 conftest$ac_exeext conftest.$ac_ext
23189 done
23190 LIBS="$ac_func_search_save_LIBS"
23191
23192fi
23193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ost_cv_search___stl_throw_invalid_argument" >&5
23194$as_echo "$ost_cv_search___stl_throw_invalid_argument" >&6; }
23195 if test "$ost_cv_search___stl_throw_invalid_argument" != "no"; then
23196 test "$ost_cv_search___stl_throw_invalid_argument" = "none required" || LIBS="$ost_cv_search___stl_throw_invalid_argument $LIBS"
23197
23198 else :
23199
23200 fi
23201
23202
23203fi
23204
23205
23206 ac_ext=cpp
23207ac_cpp='$CXXCPP $CPPFLAGS'
23208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23211
23212 CXXFLAGS="$ac_save_CXXFLAGS"
23213
23214
23215# Are we using the GNU compiler?
23216if test "$GCC" = yes ; then
23217 WARN_FLAGS="-pedantic -Wall"
23218else
23219 WARN_FLAGS=""
23220fi
23221
23222
23223
23224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debugging" >&5
23225$as_echo_n "checking for debugging... " >&6; }
23226 @%:@ Check whether --enable-debug was given.
23227if test "${enable_debug+set}" = set; then :
23228 enableval=$enable_debug;
23229fi
23230
23231 if test -z "$enable_debug" ; then
23232 enable_debug="no"
23233 elif test $enable_debug = "yes" ; then
23234 CXXFLAGS="${CXXFLAGS} -g -DDEBUG"
23235# CXXFLAGS=`echo $CFLAGS | sed 's/-O.//'`
23236 fi
23237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
23238$as_echo "$enable_debug" >&6; }
23239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profiling" >&5
23240$as_echo_n "checking for profiling... " >&6; }
23241 @%:@ Check whether --enable-profiling was given.
23242if test "${enable_profiling+set}" = set; then :
23243 enableval=$enable_profiling;
23244fi
23245
23246 if test -z "$enable_profiling" ; then
23247 enable_profiling="no"
23248 elif test "$enable_profiling" = "yes" ; then
23249 CXXFLAGS="${CXXFLAGS} -p"
23250 fi
23251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5
23252$as_echo "$enable_profiling" >&6; }
23253
23254
23255if test $ost_cv_gnuwin32 = yes ; then
23256 CCXX_DIR="\$(top_srcdir)/w32"
23257else
23258 if test $np_cv_prog_msc = yes ; then
23259 CCXX_DIR="\$(top_srcdir)/w32"
23260 else
23261 CCXX_DIR="\$(top_srcdir)/inc"
23262 fi
23263fi
23264KDOC_DIR="\$(top_srcdir)/doc"
23265
23266
23267
23268
23269 if test $ost_cv_gnuwin32 = yes; then
23270 WIN32_TRUE=
23271 WIN32_FALSE='#'
23272else
23273 WIN32_TRUE='#'
23274 WIN32_FALSE=
23275fi
23276
23277 if test $ost_cv_extras = yes; then
23278 EXTRAS_TRUE=
23279 EXTRAS_FALSE='#'
23280else
23281 EXTRAS_TRUE='#'
23282 EXTRAS_FALSE=
23283fi
23284
23285
23286
23287# some peculiar things needed for cygwin dll builds and the currently broken toolchain...
23288
23289SHARED_FLAGS=""
23290MODULE_FLAGS="-module -shared -avoid-version"
23291STAGE2=""
23292BASE_LIB=""
23293case "$target_os" in
23294osf*)
23295 COMMON_FLAGS="$COMMON_FLAGS -D_POSIX_C_SOURCE=1 -D_OSF_SOURCE=1 -D__USE_STD_IOSTREAM"
23296 ;;
23297cygwin*|mingw*)
23298 BASE_LIB="../src/libccgnu2.la $XML_LIBS $ZSTREAM_LIBS $SSL_LIBS"
23299
23300$as_echo "@%:@define CYGWIN_IMPORTS 1" >>confdefs.h
23301
23302 SHARED_FLAGS="-no-undefined"
23303 MODULE_FLAGS="-module -shared -avoid-version -no-undefined"
23304 ;;
23305darwin6*)
23306 MODULE_FLAGS="-dynamic -bundle -undefined suppress -flat_namespace -read_only_relocs suppress"
23307 STAGE2="macosx"
23308
23309$as_echo "@%:@define _DARWIN6_ 1" >>confdefs.h
23310
23311 ;;
23312darwin*)
23313 MODULE_FLAGS="-dynamic -bundle -undefined suppress -flat_namespace -read_only_relocs suppress"
23314 ;;
23315linux*)
23316 BASE_LIB="../src/libccgnu2.la"
23317 ;;
23318esac
23319
23320
23321
23322
23323
23324
23325
23326
23327
23328 etc_confdir="$sysconfdir"
23329 result="***"
23330 prior="A"
23331 while test "$prior" != "$result" ; do
23332 prior=`(echo "$etc_confdir")`
23333 etc_confdir=`(
23334 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
23335 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
23336 eval echo \""$etc_confdir"\"
23337 )`
23338 result=`(echo "$etc_confdir")`
23339 done
23340
23341
23342
23343if test "$sysconfdir" != '${prefix}/etc' ; then
23344
23345cat >>confdefs.h <<_ACEOF
23346@%:@define ETC_PREFIX "$etc_confdir/"
23347_ACEOF
23348
23349elif test "$sysconfdir" != '/etc' ; then
23350
23351cat >>confdefs.h <<_ACEOF
23352@%:@define ETC_CONFDIR "$etc_confdir/"
23353_ACEOF
23354
23355fi
23356
23357
23358
23359# Extract the first word of "doxygen", so it can be a program name with args.
23360set dummy doxygen; ac_word=$2
23361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23362$as_echo_n "checking for $ac_word... " >&6; }
23363if ${ac_cv_path_DOXYGEN+:} false; then :
23364 $as_echo_n "(cached) " >&6
23365else
23366 case $DOXYGEN in
23367 [\\/]* | ?:[\\/]*)
23368 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
23369 ;;
23370 *)
23371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23372for as_dir in $PATH
23373do
23374 IFS=$as_save_IFS
23375 test -z "$as_dir" && as_dir=.
23376 for ac_exec_ext in '' $ac_executable_extensions; do
23377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23378 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
23379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23380 break 2
23381 fi
23382done
23383 done
23384IFS=$as_save_IFS
23385
23386 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="no"
23387 ;;
23388esac
23389fi
23390DOXYGEN=$ac_cv_path_DOXYGEN
23391if test -n "$DOXYGEN"; then
23392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
23393$as_echo "$DOXYGEN" >&6; }
23394else
23395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23396$as_echo "no" >&6; }
23397fi
23398
23399
23400
23401 if test "$DOXYGEN" != "no"; then
23402 DOXY_TRUE=
23403 DOXY_FALSE='#'
23404else
23405 DOXY_TRUE='#'
23406 DOXY_FALSE=
23407fi
23408
23409
23410 if test ! -z "$LIBGETOPTOBJS"; then
23411 GETOPT_LONG_TRUE=
23412 GETOPT_LONG_FALSE='#'
23413else
23414 GETOPT_LONG_TRUE='#'
23415 GETOPT_LONG_FALSE=
23416fi
23417
23418
23419LIB_VERSION=`echo $LT_RELEASE | sed -e 's/\./_/'`
23420LIB_MAJOR=`echo $LT_VERSION | sed -e 's/:.*$//'`
23421
23422
23423
23424
23425ac_config_files="$ac_config_files src/ccgnu2-config src/libccext2.pc src/libccgnu2.pc src/Makefile w32/Makefile w32/vs2008/Makefile w32/vs2008/ccext2.vcproj w32/vs2008/ccgnu2.vcproj w32/vs2008/common.sln m4/Makefile doc/Doxyfile doc/Makefile demo/Makefile inc/Makefile inc/cc++/Makefile Makefile commoncpp2.spec tests/Makefile commoncpp2.list w32/ccgnu2.dsp w32/ccext2.dsp w32/ccgnu2.vcproj w32/ccext2.vcproj"
23426
23427cat >confcache <<\_ACEOF
23428# This file is a shell script that caches the results of configure
23429# tests run on this system so they can be shared between configure
23430# scripts and configure runs, see configure's option --config-cache.
23431# It is not useful on other systems. If it contains results you don't
23432# want to keep, you may remove or edit it.
23433#
23434# config.status only pays attention to the cache file if you give it
23435# the --recheck option to rerun configure.
23436#
23437# `ac_cv_env_foo' variables (set or unset) will be overridden when
23438# loading this file, other *unset* `ac_cv_foo' will be assigned the
23439# following values.
23440
23441_ACEOF
23442
23443# The following way of writing the cache mishandles newlines in values,
23444# but we know of no workaround that is simple, portable, and efficient.
23445# So, we kill variables containing newlines.
23446# Ultrix sh set writes to stderr and can't be redirected directly,
23447# and sets the high bit in the cache file unless we assign to the vars.
23448(
23449 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23450 eval ac_val=\$$ac_var
23451 case $ac_val in #(
23452 *${as_nl}*)
23453 case $ac_var in #(
23454 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23455$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23456 esac
23457 case $ac_var in #(
23458 _ | IFS | as_nl) ;; #(
23459 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23460 *) { eval $ac_var=; unset $ac_var;} ;;
23461 esac ;;
23462 esac
23463 done
23464
23465 (set) 2>&1 |
23466 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23467 *${as_nl}ac_space=\ *)
23468 # `set' does not quote correctly, so add quotes: double-quote
23469 # substitution turns \\\\ into \\, and sed turns \\ into \.
23470 sed -n \
23471 "s/'/'\\\\''/g;
23472 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23473 ;; #(
23474 *)
23475 # `set' quotes correctly as required by POSIX, so do not add quotes.
23476 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23477 ;;
23478 esac |
23479 sort
23480) |
23481 sed '
23482 /^ac_cv_env_/b end
23483 t clear
23484 :clear
23485 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23486 t end
23487 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23488 :end' >>confcache
23489if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23490 if test -w "$cache_file"; then
23491 if test "x$cache_file" != "x/dev/null"; then
23492 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23493$as_echo "$as_me: updating cache $cache_file" >&6;}
23494 if test ! -f "$cache_file" || test -h "$cache_file"; then
23495 cat confcache >"$cache_file"
23496 else
23497 case $cache_file in #(
23498 */* | ?:*)
23499 mv -f confcache "$cache_file"$$ &&
23500 mv -f "$cache_file"$$ "$cache_file" ;; #(
23501 *)
23502 mv -f confcache "$cache_file" ;;
23503 esac
23504 fi
23505 fi
23506 else
23507 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23508$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23509 fi
23510fi
23511rm -f confcache
23512
23513test "x$prefix" = xNONE && prefix=$ac_default_prefix
23514# Let make expand exec_prefix.
23515test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23516
23517DEFS=-DHAVE_CONFIG_H
23518
23519ac_libobjs=
23520ac_ltlibobjs=
23521U=
23522for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
23523 # 1. Remove the extension, and $U if already installed.
23524 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23525 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23526 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23527 # will be set to the directory where LIBOBJS objects are built.
23528 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23529 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23530done
23531LIB@&t@OBJS=$ac_libobjs
23532
23533LTLIBOBJS=$ac_ltlibobjs
23534
23535
23536if test -z "${MSWIN32_TRUE}" && test -z "${MSWIN32_FALSE}"; then
23537 as_fn_error $? "conditional \"MSWIN32\" was never defined.
23538Usually this means the macro was only invoked conditionally." "$LINENO" 5
23539fi
23540if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23541 as_fn_error $? "conditional \"AMDEP\" was never defined.
23542Usually this means the macro was only invoked conditionally." "$LINENO" 5
23543fi
23544if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23545 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23546Usually this means the macro was only invoked conditionally." "$LINENO" 5
23547fi
23548if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23549 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23550Usually this means the macro was only invoked conditionally." "$LINENO" 5
23551fi
23552 if test -n "$EXEEXT"; then
23553 am__EXEEXT_TRUE=
23554 am__EXEEXT_FALSE='#'
23555else
23556 am__EXEEXT_TRUE='#'
23557 am__EXEEXT_FALSE=
23558fi
23559
23560if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23561 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
23562Usually this means the macro was only invoked conditionally." "$LINENO" 5
23563fi
23564if test -z "${WITH_CPPUNIT_TESTS_TRUE}" && test -z "${WITH_CPPUNIT_TESTS_FALSE}"; then
23565 as_fn_error $? "conditional \"WITH_CPPUNIT_TESTS\" was never defined.
23566Usually this means the macro was only invoked conditionally." "$LINENO" 5
23567fi
23568if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
23569 as_fn_error $? "conditional \"WIN32\" was never defined.
23570Usually this means the macro was only invoked conditionally." "$LINENO" 5
23571fi
23572if test -z "${EXTRAS_TRUE}" && test -z "${EXTRAS_FALSE}"; then
23573 as_fn_error $? "conditional \"EXTRAS\" was never defined.
23574Usually this means the macro was only invoked conditionally." "$LINENO" 5
23575fi
23576if test -z "${DOXY_TRUE}" && test -z "${DOXY_FALSE}"; then
23577 as_fn_error $? "conditional \"DOXY\" was never defined.
23578Usually this means the macro was only invoked conditionally." "$LINENO" 5
23579fi
23580if test -z "${GETOPT_LONG_TRUE}" && test -z "${GETOPT_LONG_FALSE}"; then
23581 as_fn_error $? "conditional \"GETOPT_LONG\" was never defined.
23582Usually this means the macro was only invoked conditionally." "$LINENO" 5
23583fi
23584
23585: "${CONFIG_STATUS=./config.status}"
23586ac_write_fail=0
23587ac_clean_files_save=$ac_clean_files
23588ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23589{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23590$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23591as_write_fail=0
23592cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23593#! $SHELL
23594# Generated by $as_me.
23595# Run this file to recreate the current configuration.
23596# Compiler output produced by configure, useful for debugging
23597# configure, is in config.log if it exists.
23598
23599debug=false
23600ac_cs_recheck=false
23601ac_cs_silent=false
23602
23603SHELL=\${CONFIG_SHELL-$SHELL}
23604export SHELL
23605_ASEOF
23606cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23607## -------------------- ##
23608## M4sh Initialization. ##
23609## -------------------- ##
23610
23611# Be more Bourne compatible
23612DUALCASE=1; export DUALCASE # for MKS sh
23613if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23614 emulate sh
23615 NULLCMD=:
23616 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23617 # is contrary to our usage. Disable this feature.
23618 alias -g '${1+"$@"}'='"$@"'
23619 setopt NO_GLOB_SUBST
23620else
23621 case `(set -o) 2>/dev/null` in @%:@(
23622 *posix*) :
23623 set -o posix ;; @%:@(
23624 *) :
23625 ;;
23626esac
23627fi
23628
23629
23630as_nl='
23631'
23632export as_nl
23633# Printing a long string crashes Solaris 7 /usr/bin/printf.
23634as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23635as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23636as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23637# Prefer a ksh shell builtin over an external printf program on Solaris,
23638# but without wasting forks for bash or zsh.
23639if test -z "$BASH_VERSION$ZSH_VERSION" \
23640 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23641 as_echo='print -r --'
23642 as_echo_n='print -rn --'
23643elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23644 as_echo='printf %s\n'
23645 as_echo_n='printf %s'
23646else
23647 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23648 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23649 as_echo_n='/usr/ucb/echo -n'
23650 else
23651 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23652 as_echo_n_body='eval
23653 arg=$1;
23654 case $arg in @%:@(
23655 *"$as_nl"*)
23656 expr "X$arg" : "X\\(.*\\)$as_nl";
23657 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23658 esac;
23659 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23660 '
23661 export as_echo_n_body
23662 as_echo_n='sh -c $as_echo_n_body as_echo'
23663 fi
23664 export as_echo_body
23665 as_echo='sh -c $as_echo_body as_echo'
23666fi
23667
23668# The user is always right.
23669if test "${PATH_SEPARATOR+set}" != set; then
23670 PATH_SEPARATOR=:
23671 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23672 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23673 PATH_SEPARATOR=';'
23674 }
23675fi
23676
23677
23678# IFS
23679# We need space, tab and new line, in precisely that order. Quoting is
23680# there to prevent editors from complaining about space-tab.
23681# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23682# splitting by setting IFS to empty value.)
23683IFS=" "" $as_nl"
23684
23685# Find who we are. Look in the path if we contain no directory separator.
23686as_myself=
23687case $0 in @%:@((
23688 *[\\/]* ) as_myself=$0 ;;
23689 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23690for as_dir in $PATH
23691do
23692 IFS=$as_save_IFS
23693 test -z "$as_dir" && as_dir=.
23694 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23695 done
23696IFS=$as_save_IFS
23697
23698 ;;
23699esac
23700# We did not find ourselves, most probably we were run as `sh COMMAND'
23701# in which case we are not to be found in the path.
23702if test "x$as_myself" = x; then
23703 as_myself=$0
23704fi
23705if test ! -f "$as_myself"; then
23706 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23707 exit 1
23708fi
23709
23710# Unset variables that we do not need and which cause bugs (e.g. in
23711# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23712# suppresses any "Segmentation fault" message there. '((' could
23713# trigger a bug in pdksh 5.2.14.
23714for as_var in BASH_ENV ENV MAIL MAILPATH
23715do eval test x\${$as_var+set} = xset \
23716 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23717done
23718PS1='$ '
23719PS2='> '
23720PS4='+ '
23721
23722# NLS nuisances.
23723LC_ALL=C
23724export LC_ALL
23725LANGUAGE=C
23726export LANGUAGE
23727
23728# CDPATH.
23729(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23730
23731
23732@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
23733@%:@ ----------------------------------------
23734@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23735@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23736@%:@ script with STATUS, using 1 if that was 0.
23737as_fn_error ()
23738{
23739 as_status=$1; test $as_status -eq 0 && as_status=1
23740 if test "$4"; then
23741 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23742 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23743 fi
23744 $as_echo "$as_me: error: $2" >&2
23745 as_fn_exit $as_status
23746} @%:@ as_fn_error
23747
23748
23749@%:@ as_fn_set_status STATUS
23750@%:@ -----------------------
23751@%:@ Set @S|@? to STATUS, without forking.
23752as_fn_set_status ()
23753{
23754 return $1
23755} @%:@ as_fn_set_status
23756
23757@%:@ as_fn_exit STATUS
23758@%:@ -----------------
23759@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23760as_fn_exit ()
23761{
23762 set +e
23763 as_fn_set_status $1
23764 exit $1
23765} @%:@ as_fn_exit
23766
23767@%:@ as_fn_unset VAR
23768@%:@ ---------------
23769@%:@ Portably unset VAR.
23770as_fn_unset ()
23771{
23772 { eval $1=; unset $1;}
23773}
23774as_unset=as_fn_unset
23775@%:@ as_fn_append VAR VALUE
23776@%:@ ----------------------
23777@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
23778@%:@ advantage of any shell optimizations that allow amortized linear growth over
23779@%:@ repeated appends, instead of the typical quadratic growth present in naive
23780@%:@ implementations.
23781if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23782 eval 'as_fn_append ()
23783 {
23784 eval $1+=\$2
23785 }'
23786else
23787 as_fn_append ()
23788 {
23789 eval $1=\$$1\$2
23790 }
23791fi # as_fn_append
23792
23793@%:@ as_fn_arith ARG...
23794@%:@ ------------------
23795@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
23796@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
23797@%:@ must be portable across @S|@(()) and expr.
23798if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23799 eval 'as_fn_arith ()
23800 {
23801 as_val=$(( $* ))
23802 }'
23803else
23804 as_fn_arith ()
23805 {
23806 as_val=`expr "$@" || test $? -eq 1`
23807 }
23808fi # as_fn_arith
23809
23810
23811if expr a : '\(a\)' >/dev/null 2>&1 &&
23812 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23813 as_expr=expr
23814else
23815 as_expr=false
23816fi
23817
23818if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23819 as_basename=basename
23820else
23821 as_basename=false
23822fi
23823
23824if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23825 as_dirname=dirname
23826else
23827 as_dirname=false
23828fi
23829
23830as_me=`$as_basename -- "$0" ||
23831$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23832 X"$0" : 'X\(//\)$' \| \
23833 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23834$as_echo X/"$0" |
23835 sed '/^.*\/\([^/][^/]*\)\/*$/{
23836 s//\1/
23837 q
23838 }
23839 /^X\/\(\/\/\)$/{
23840 s//\1/
23841 q
23842 }
23843 /^X\/\(\/\).*/{
23844 s//\1/
23845 q
23846 }
23847 s/.*/./; q'`
23848
23849# Avoid depending upon Character Ranges.
23850as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23851as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23852as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23853as_cr_digits='0123456789'
23854as_cr_alnum=$as_cr_Letters$as_cr_digits
23855
23856ECHO_C= ECHO_N= ECHO_T=
23857case `echo -n x` in @%:@(((((
23858-n*)
23859 case `echo 'xy\c'` in
23860 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23861 xy) ECHO_C='\c';;
23862 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23863 ECHO_T=' ';;
23864 esac;;
23865*)
23866 ECHO_N='-n';;
23867esac
23868
23869rm -f conf$$ conf$$.exe conf$$.file
23870if test -d conf$$.dir; then
23871 rm -f conf$$.dir/conf$$.file
23872else
23873 rm -f conf$$.dir
23874 mkdir conf$$.dir 2>/dev/null
23875fi
23876if (echo >conf$$.file) 2>/dev/null; then
23877 if ln -s conf$$.file conf$$ 2>/dev/null; then
23878 as_ln_s='ln -s'
23879 # ... but there are two gotchas:
23880 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23881 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23882 # In both cases, we have to default to `cp -p'.
23883 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23884 as_ln_s='cp -p'
23885 elif ln conf$$.file conf$$ 2>/dev/null; then
23886 as_ln_s=ln
23887 else
23888 as_ln_s='cp -p'
23889 fi
23890else
23891 as_ln_s='cp -p'
23892fi
23893rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23894rmdir conf$$.dir 2>/dev/null
23895
23896
23897@%:@ as_fn_mkdir_p
23898@%:@ -------------
23899@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
23900as_fn_mkdir_p ()
23901{
23902
23903 case $as_dir in #(
23904 -*) as_dir=./$as_dir;;
23905 esac
23906 test -d "$as_dir" || eval $as_mkdir_p || {
23907 as_dirs=
23908 while :; do
23909 case $as_dir in #(
23910 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23911 *) as_qdir=$as_dir;;
23912 esac
23913 as_dirs="'$as_qdir' $as_dirs"
23914 as_dir=`$as_dirname -- "$as_dir" ||
23915$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23916 X"$as_dir" : 'X\(//\)[^/]' \| \
23917 X"$as_dir" : 'X\(//\)$' \| \
23918 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23919$as_echo X"$as_dir" |
23920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23921 s//\1/
23922 q
23923 }
23924 /^X\(\/\/\)[^/].*/{
23925 s//\1/
23926 q
23927 }
23928 /^X\(\/\/\)$/{
23929 s//\1/
23930 q
23931 }
23932 /^X\(\/\).*/{
23933 s//\1/
23934 q
23935 }
23936 s/.*/./; q'`
23937 test -d "$as_dir" && break
23938 done
23939 test -z "$as_dirs" || eval "mkdir $as_dirs"
23940 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23941
23942
23943} @%:@ as_fn_mkdir_p
23944if mkdir -p . 2>/dev/null; then
23945 as_mkdir_p='mkdir -p "$as_dir"'
23946else
23947 test -d ./-p && rmdir ./-p
23948 as_mkdir_p=false
23949fi
23950
23951if test -x / >/dev/null 2>&1; then
23952 as_test_x='test -x'
23953else
23954 if ls -dL / >/dev/null 2>&1; then
23955 as_ls_L_option=L
23956 else
23957 as_ls_L_option=
23958 fi
23959 as_test_x='
23960 eval sh -c '\''
23961 if test -d "$1"; then
23962 test -d "$1/.";
23963 else
23964 case $1 in @%:@(
23965 -*)set "./$1";;
23966 esac;
23967 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
23968 ???[sx]*):;;*)false;;esac;fi
23969 '\'' sh
23970 '
23971fi
23972as_executable_p=$as_test_x
23973
23974# Sed expression to map a string onto a valid CPP name.
23975as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23976
23977# Sed expression to map a string onto a valid variable name.
23978as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23979
23980
23981exec 6>&1
23982## ----------------------------------- ##
23983## Main body of $CONFIG_STATUS script. ##
23984## ----------------------------------- ##
23985_ASEOF
23986test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23987
23988cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23989# Save the log message, to keep $0 and so on meaningful, and to
23990# report actual input values of CONFIG_FILES etc. instead of their
23991# values after options handling.
23992ac_log="
23993This file was extended by $as_me, which was
23994generated by GNU Autoconf 2.68. Invocation command line was
23995
23996 CONFIG_FILES = $CONFIG_FILES
23997 CONFIG_HEADERS = $CONFIG_HEADERS
23998 CONFIG_LINKS = $CONFIG_LINKS
23999 CONFIG_COMMANDS = $CONFIG_COMMANDS
24000 $ $0 $@
24001
24002on `(hostname || uname -n) 2>/dev/null | sed 1q`
24003"
24004
24005_ACEOF
24006
24007case $ac_config_files in *"
24008"*) set x $ac_config_files; shift; ac_config_files=$*;;
24009esac
24010
24011case $ac_config_headers in *"
24012"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24013esac
24014
24015
24016cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24017# Files that config.status was made for.
24018config_files="$ac_config_files"
24019config_headers="$ac_config_headers"
24020config_commands="$ac_config_commands"
24021
24022_ACEOF
24023
24024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24025ac_cs_usage="\
24026\`$as_me' instantiates files and other configuration actions
24027from templates according to the current configuration. Unless the files
24028and actions are specified as TAGs, all are instantiated by default.
24029
24030Usage: $0 [OPTION]... [TAG]...
24031
24032 -h, --help print this help, then exit
24033 -V, --version print version number and configuration settings, then exit
24034 --config print configuration, then exit
24035 -q, --quiet, --silent
24036 do not print progress messages
24037 -d, --debug don't remove temporary files
24038 --recheck update $as_me by reconfiguring in the same conditions
24039 --file=FILE[:TEMPLATE]
24040 instantiate the configuration file FILE
24041 --header=FILE[:TEMPLATE]
24042 instantiate the configuration header FILE
24043
24044Configuration files:
24045$config_files
24046
24047Configuration headers:
24048$config_headers
24049
24050Configuration commands:
24051$config_commands
24052
24053Report bugs to the package provider."
24054
24055_ACEOF
24056cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24057ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24058ac_cs_version="\\
24059config.status
24060configured by $0, generated by GNU Autoconf 2.68,
24061 with options \\"\$ac_cs_config\\"
24062
24063Copyright (C) 2010 Free Software Foundation, Inc.
24064This config.status script is free software; the Free Software Foundation
24065gives unlimited permission to copy, distribute and modify it."
24066
24067ac_pwd='$ac_pwd'
24068srcdir='$srcdir'
24069INSTALL='$INSTALL'
24070MKDIR_P='$MKDIR_P'
24071AWK='$AWK'
24072test -n "\$AWK" || AWK=awk
24073_ACEOF
24074
24075cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24076# The default lists apply if the user does not specify any file.
24077ac_need_defaults=:
24078while test $# != 0
24079do
24080 case $1 in
24081 --*=?*)
24082 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24083 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24084 ac_shift=:
24085 ;;
24086 --*=)
24087 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24088 ac_optarg=
24089 ac_shift=:
24090 ;;
24091 *)
24092 ac_option=$1
24093 ac_optarg=$2
24094 ac_shift=shift
24095 ;;
24096 esac
24097
24098 case $ac_option in
24099 # Handling of the options.
24100 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24101 ac_cs_recheck=: ;;
24102 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24103 $as_echo "$ac_cs_version"; exit ;;
24104 --config | --confi | --conf | --con | --co | --c )
24105 $as_echo "$ac_cs_config"; exit ;;
24106 --debug | --debu | --deb | --de | --d | -d )
24107 debug=: ;;
24108 --file | --fil | --fi | --f )
24109 $ac_shift
24110 case $ac_optarg in
24111 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24112 '') as_fn_error $? "missing file argument" ;;
24113 esac
24114 as_fn_append CONFIG_FILES " '$ac_optarg'"
24115 ac_need_defaults=false;;
24116 --header | --heade | --head | --hea )
24117 $ac_shift
24118 case $ac_optarg in
24119 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24120 esac
24121 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24122 ac_need_defaults=false;;
24123 --he | --h)
24124 # Conflict between --help and --header
24125 as_fn_error $? "ambiguous option: \`$1'
24126Try \`$0 --help' for more information.";;
24127 --help | --hel | -h )
24128 $as_echo "$ac_cs_usage"; exit ;;
24129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24130 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24131 ac_cs_silent=: ;;
24132
24133 # This is an error.
24134 -*) as_fn_error $? "unrecognized option: \`$1'
24135Try \`$0 --help' for more information." ;;
24136
24137 *) as_fn_append ac_config_targets " $1"
24138 ac_need_defaults=false ;;
24139
24140 esac
24141 shift
24142done
24143
24144ac_configure_extra_args=
24145
24146if $ac_cs_silent; then
24147 exec 6>/dev/null
24148 ac_configure_extra_args="$ac_configure_extra_args --silent"
24149fi
24150
24151_ACEOF
24152cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24153if \$ac_cs_recheck; then
24154 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24155 shift
24156 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24157 CONFIG_SHELL='$SHELL'
24158 export CONFIG_SHELL
24159 exec "\$@"
24160fi
24161
24162_ACEOF
24163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24164exec 5>>config.log
24165{
24166 echo
24167 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
24168@%:@@%:@ Running $as_me. @%:@@%:@
24169_ASBOX
24170 $as_echo "$ac_log"
24171} >&5
24172
24173_ACEOF
24174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24175#
24176# INIT-COMMANDS
24177#
24178
24179
24180# The HP-UX ksh and POSIX shell print the target directory to stdout
24181# if CDPATH is set.
24182(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24183
24184sed_quote_subst='$sed_quote_subst'
24185double_quote_subst='$double_quote_subst'
24186delay_variable_subst='$delay_variable_subst'
24187AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
24188DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
24189OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24190macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24191macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24192enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24193enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24194pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24195enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24196SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24197ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24198host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24199host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24200host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24201build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24202build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24203build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24204SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24205Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24206GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24207EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24208FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24209LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24210NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24211LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24212max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24213ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24214exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24215lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24216lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24217lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24218lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
24219lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
24220reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24221reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24222deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24223file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24224file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
24225want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
24226sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
24227AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24228AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24229archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
24230STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24231RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24232old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24233old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24234old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24235lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24236CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24237CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24238compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24239GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24240lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24241lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24242lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24243lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
24244nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
24245lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
24246objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24247MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24248lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24249lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24250lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24251lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24252lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24253need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24254MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
24255DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24256NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24257LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24258OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24259OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24260libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24261shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24262extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24263archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24264enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24265export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24266whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24267compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24268old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24269old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24270archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24271archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24272module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24273module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24274with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24275allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24276no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24277hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24278hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
24279hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24280hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24281hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24282hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24283hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24284hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24285inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24286link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24287always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24288export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24289exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24290include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24291prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24292postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24293file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24294variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24295need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24296need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24297version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24298runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24299shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24300shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24301libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24302library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24303soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24304install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24305postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24306postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24307finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24308finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24309hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24310sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24311sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
24312hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24313enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24314enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24315enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24316old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24317striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24318compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
24319predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
24320postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
24321predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
24322postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
24323compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
24324LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
24325reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
24326reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24327old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24328compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
24329GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
24330lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
24331lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
24332lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
24333lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
24334lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
24335archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
24336enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
24337export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24338whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24339compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
24340old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24341old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24342archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24343archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24344module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24345module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24346with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
24347allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24348no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24349hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24350hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
24351hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
24352hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
24353hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
24354hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
24355hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
24356hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
24357inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
24358link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
24359always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
24360export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24361exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24362include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24363prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24364postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24365file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
24366hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
24367compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
24368predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24369postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24370predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
24371postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
24372compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
24373
24374LTCC='$LTCC'
24375LTCFLAGS='$LTCFLAGS'
24376compiler='$compiler_DEFAULT'
24377
24378# A function that is used when there is no print builtin or printf.
24379func_fallback_echo ()
24380{
24381 eval 'cat <<_LTECHO_EOF
24382\$1
24383_LTECHO_EOF'
24384}
24385
24386# Quote evaled strings.
24387for var in AS \
24388DLLTOOL \
24389OBJDUMP \
24390SHELL \
24391ECHO \
24392SED \
24393GREP \
24394EGREP \
24395FGREP \
24396LD \
24397NM \
24398LN_S \
24399lt_SP2NL \
24400lt_NL2SP \
24401reload_flag \
24402deplibs_check_method \
24403file_magic_cmd \
24404file_magic_glob \
24405want_nocaseglob \
24406sharedlib_from_linklib_cmd \
24407AR \
24408AR_FLAGS \
24409archiver_list_spec \
24410STRIP \
24411RANLIB \
24412CC \
24413CFLAGS \
24414compiler \
24415lt_cv_sys_global_symbol_pipe \
24416lt_cv_sys_global_symbol_to_cdecl \
24417lt_cv_sys_global_symbol_to_c_name_address \
24418lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24419nm_file_list_spec \
24420lt_prog_compiler_no_builtin_flag \
24421lt_prog_compiler_pic \
24422lt_prog_compiler_wl \
24423lt_prog_compiler_static \
24424lt_cv_prog_compiler_c_o \
24425need_locks \
24426MANIFEST_TOOL \
24427DSYMUTIL \
24428NMEDIT \
24429LIPO \
24430OTOOL \
24431OTOOL64 \
24432shrext_cmds \
24433export_dynamic_flag_spec \
24434whole_archive_flag_spec \
24435compiler_needs_object \
24436with_gnu_ld \
24437allow_undefined_flag \
24438no_undefined_flag \
24439hardcode_libdir_flag_spec \
24440hardcode_libdir_flag_spec_ld \
24441hardcode_libdir_separator \
24442exclude_expsyms \
24443include_expsyms \
24444file_list_spec \
24445variables_saved_for_relink \
24446libname_spec \
24447library_names_spec \
24448soname_spec \
24449install_override_mode \
24450finish_eval \
24451old_striplib \
24452striplib \
24453compiler_lib_search_dirs \
24454predep_objects \
24455postdep_objects \
24456predeps \
24457postdeps \
24458compiler_lib_search_path \
24459LD_CXX \
24460reload_flag_CXX \
24461compiler_CXX \
24462lt_prog_compiler_no_builtin_flag_CXX \
24463lt_prog_compiler_pic_CXX \
24464lt_prog_compiler_wl_CXX \
24465lt_prog_compiler_static_CXX \
24466lt_cv_prog_compiler_c_o_CXX \
24467export_dynamic_flag_spec_CXX \
24468whole_archive_flag_spec_CXX \
24469compiler_needs_object_CXX \
24470with_gnu_ld_CXX \
24471allow_undefined_flag_CXX \
24472no_undefined_flag_CXX \
24473hardcode_libdir_flag_spec_CXX \
24474hardcode_libdir_flag_spec_ld_CXX \
24475hardcode_libdir_separator_CXX \
24476exclude_expsyms_CXX \
24477include_expsyms_CXX \
24478file_list_spec_CXX \
24479compiler_lib_search_dirs_CXX \
24480predep_objects_CXX \
24481postdep_objects_CXX \
24482predeps_CXX \
24483postdeps_CXX \
24484compiler_lib_search_path_CXX; do
24485 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24486 *[\\\\\\\`\\"\\\$]*)
24487 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
24488 ;;
24489 *)
24490 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24491 ;;
24492 esac
24493done
24494
24495# Double-quote double-evaled strings.
24496for var in reload_cmds \
24497old_postinstall_cmds \
24498old_postuninstall_cmds \
24499old_archive_cmds \
24500extract_expsyms_cmds \
24501old_archive_from_new_cmds \
24502old_archive_from_expsyms_cmds \
24503archive_cmds \
24504archive_expsym_cmds \
24505module_cmds \
24506module_expsym_cmds \
24507export_symbols_cmds \
24508prelink_cmds \
24509postlink_cmds \
24510postinstall_cmds \
24511postuninstall_cmds \
24512finish_cmds \
24513sys_lib_search_path_spec \
24514sys_lib_dlsearch_path_spec \
24515reload_cmds_CXX \
24516old_archive_cmds_CXX \
24517old_archive_from_new_cmds_CXX \
24518old_archive_from_expsyms_cmds_CXX \
24519archive_cmds_CXX \
24520archive_expsym_cmds_CXX \
24521module_cmds_CXX \
24522module_expsym_cmds_CXX \
24523export_symbols_cmds_CXX \
24524prelink_cmds_CXX \
24525postlink_cmds_CXX; do
24526 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24527 *[\\\\\\\`\\"\\\$]*)
24528 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
24529 ;;
24530 *)
24531 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24532 ;;
24533 esac
24534done
24535
24536ac_aux_dir='$ac_aux_dir'
24537xsi_shell='$xsi_shell'
24538lt_shell_append='$lt_shell_append'
24539
24540# See if we are running on zsh, and set the options which allow our
24541# commands through without removal of \ escapes INIT.
24542if test -n "\${ZSH_VERSION+set}" ; then
24543 setopt NO_GLOB_SUBST
24544fi
24545
24546
24547 PACKAGE='$PACKAGE'
24548 VERSION='$VERSION'
24549 TIMESTAMP='$TIMESTAMP'
24550 RM='$RM'
24551 ofile='$ofile'
24552
24553
24554
24555
24556
24557AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24558
24559_ACEOF
24560
24561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24562
24563# Handling of arguments.
24564for ac_config_target in $ac_config_targets
24565do
24566 case $ac_config_target in
24567 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24568 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24569 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24570 "src/ccgnu2-config") CONFIG_FILES="$CONFIG_FILES src/ccgnu2-config" ;;
24571 "src/libccext2.pc") CONFIG_FILES="$CONFIG_FILES src/libccext2.pc" ;;
24572 "src/libccgnu2.pc") CONFIG_FILES="$CONFIG_FILES src/libccgnu2.pc" ;;
24573 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24574 "w32/Makefile") CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;;
24575 "w32/vs2008/Makefile") CONFIG_FILES="$CONFIG_FILES w32/vs2008/Makefile" ;;
24576 "w32/vs2008/ccext2.vcproj") CONFIG_FILES="$CONFIG_FILES w32/vs2008/ccext2.vcproj" ;;
24577 "w32/vs2008/ccgnu2.vcproj") CONFIG_FILES="$CONFIG_FILES w32/vs2008/ccgnu2.vcproj" ;;
24578 "w32/vs2008/common.sln") CONFIG_FILES="$CONFIG_FILES w32/vs2008/common.sln" ;;
24579 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
24580 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
24581 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24582 "demo/Makefile") CONFIG_FILES="$CONFIG_FILES demo/Makefile" ;;
24583 "inc/Makefile") CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
24584 "inc/cc++/Makefile") CONFIG_FILES="$CONFIG_FILES inc/cc++/Makefile" ;;
24585 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24586 "commoncpp2.spec") CONFIG_FILES="$CONFIG_FILES commoncpp2.spec" ;;
24587 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
24588 "commoncpp2.list") CONFIG_FILES="$CONFIG_FILES commoncpp2.list" ;;
24589 "w32/ccgnu2.dsp") CONFIG_FILES="$CONFIG_FILES w32/ccgnu2.dsp" ;;
24590 "w32/ccext2.dsp") CONFIG_FILES="$CONFIG_FILES w32/ccext2.dsp" ;;
24591 "w32/ccgnu2.vcproj") CONFIG_FILES="$CONFIG_FILES w32/ccgnu2.vcproj" ;;
24592 "w32/ccext2.vcproj") CONFIG_FILES="$CONFIG_FILES w32/ccext2.vcproj" ;;
24593
24594 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24595 esac
24596done
24597
24598
24599# If the user did not use the arguments to specify the items to instantiate,
24600# then the envvar interface is used. Set only those that are not.
24601# We use the long form for the default assignment because of an extremely
24602# bizarre bug on SunOS 4.1.3.
24603if $ac_need_defaults; then
24604 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24605 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24606 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24607fi
24608
24609# Have a temporary directory for convenience. Make it in the build tree
24610# simply because there is no reason against having it here, and in addition,
24611# creating and moving files from /tmp can sometimes cause problems.
24612# Hook for its removal unless debugging.
24613# Note that there is a small window in which the directory will not be cleaned:
24614# after its creation but before its name has been assigned to `$tmp'.
24615$debug ||
24616{
24617 tmp= ac_tmp=
24618 trap 'exit_status=$?
24619 : "${ac_tmp:=$tmp}"
24620 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24621' 0
24622 trap 'as_fn_exit 1' 1 2 13 15
24623}
24624# Create a (secure) tmp directory for tmp files.
24625
24626{
24627 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24628 test -d "$tmp"
24629} ||
24630{
24631 tmp=./conf$$-$RANDOM
24632 (umask 077 && mkdir "$tmp")
24633} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24634ac_tmp=$tmp
24635
24636# Set up the scripts for CONFIG_FILES section.
24637# No need to generate them if there are no CONFIG_FILES.
24638# This happens for instance with `./config.status config.h'.
24639if test -n "$CONFIG_FILES"; then
24640
24641
24642ac_cr=`echo X | tr X '\015'`
24643# On cygwin, bash can eat \r inside `` if the user requested igncr.
24644# But we know of no other shell where ac_cr would be empty at this
24645# point, so we can use a bashism as a fallback.
24646if test "x$ac_cr" = x; then
24647 eval ac_cr=\$\'\\r\'
24648fi
24649ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24650if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24651 ac_cs_awk_cr='\\r'
24652else
24653 ac_cs_awk_cr=$ac_cr
24654fi
24655
24656echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24657_ACEOF
24658
24659
24660{
24661 echo "cat >conf$$subs.awk <<_ACEOF" &&
24662 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24663 echo "_ACEOF"
24664} >conf$$subs.sh ||
24665 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24666ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24667ac_delim='%!_!# '
24668for ac_last_try in false false false false false :; do
24669 . ./conf$$subs.sh ||
24670 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24671
24672 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24673 if test $ac_delim_n = $ac_delim_num; then
24674 break
24675 elif $ac_last_try; then
24676 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24677 else
24678 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24679 fi
24680done
24681rm -f conf$$subs.sh
24682
24683cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24684cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24685_ACEOF
24686sed -n '
24687h
24688s/^/S["/; s/!.*/"]=/
24689p
24690g
24691s/^[^!]*!//
24692:repl
24693t repl
24694s/'"$ac_delim"'$//
24695t delim
24696:nl
24697h
24698s/\(.\{148\}\)..*/\1/
24699t more1
24700s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24701p
24702n
24703b repl
24704:more1
24705s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24706p
24707g
24708s/.\{148\}//
24709t nl
24710:delim
24711h
24712s/\(.\{148\}\)..*/\1/
24713t more2
24714s/["\\]/\\&/g; s/^/"/; s/$/"/
24715p
24716b
24717:more2
24718s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24719p
24720g
24721s/.\{148\}//
24722t delim
24723' <conf$$subs.awk | sed '
24724/^[^""]/{
24725 N
24726 s/\n//
24727}
24728' >>$CONFIG_STATUS || ac_write_fail=1
24729rm -f conf$$subs.awk
24730cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24731_ACAWK
24732cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24733 for (key in S) S_is_set[key] = 1
24734 FS = ""
24735
24736}
24737{
24738 line = $ 0
24739 nfields = split(line, field, "@")
24740 substed = 0
24741 len = length(field[1])
24742 for (i = 2; i < nfields; i++) {
24743 key = field[i]
24744 keylen = length(key)
24745 if (S_is_set[key]) {
24746 value = S[key]
24747 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24748 len += length(value) + length(field[++i])
24749 substed = 1
24750 } else
24751 len += 1 + keylen
24752 }
24753
24754 print line
24755}
24756
24757_ACAWK
24758_ACEOF
24759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24760if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24761 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24762else
24763 cat
24764fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24765 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24766_ACEOF
24767
24768# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24769# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24770# trailing colons and then remove the whole line if VPATH becomes empty
24771# (actually we leave an empty line to preserve line numbers).
24772if test "x$srcdir" = x.; then
24773 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24774h
24775s///
24776s/^/:/
24777s/[ ]*$/:/
24778s/:\$(srcdir):/:/g
24779s/:\${srcdir}:/:/g
24780s/:@srcdir@:/:/g
24781s/^:*//
24782s/:*$//
24783x
24784s/\(=[ ]*\).*/\1/
24785G
24786s/\n//
24787s/^[^=]*=[ ]*$//
24788}'
24789fi
24790
24791cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24792fi # test -n "$CONFIG_FILES"
24793
24794# Set up the scripts for CONFIG_HEADERS section.
24795# No need to generate them if there are no CONFIG_HEADERS.
24796# This happens for instance with `./config.status Makefile'.
24797if test -n "$CONFIG_HEADERS"; then
24798cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24799BEGIN {
24800_ACEOF
24801
24802# Transform confdefs.h into an awk script `defines.awk', embedded as
24803# here-document in config.status, that substitutes the proper values into
24804# config.h.in to produce config.h.
24805
24806# Create a delimiter string that does not exist in confdefs.h, to ease
24807# handling of long lines.
24808ac_delim='%!_!# '
24809for ac_last_try in false false :; do
24810 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24811 if test -z "$ac_tt"; then
24812 break
24813 elif $ac_last_try; then
24814 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24815 else
24816 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24817 fi
24818done
24819
24820# For the awk script, D is an array of macro values keyed by name,
24821# likewise P contains macro parameters if any. Preserve backslash
24822# newline sequences.
24823
24824ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24825sed -n '
24826s/.\{148\}/&'"$ac_delim"'/g
24827t rset
24828:rset
24829s/^[ ]*#[ ]*define[ ][ ]*/ /
24830t def
24831d
24832:def
24833s/\\$//
24834t bsnl
24835s/["\\]/\\&/g
24836s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24837D["\1"]=" \3"/p
24838s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24839d
24840:bsnl
24841s/["\\]/\\&/g
24842s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24843D["\1"]=" \3\\\\\\n"\\/p
24844t cont
24845s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24846t cont
24847d
24848:cont
24849n
24850s/.\{148\}/&'"$ac_delim"'/g
24851t clear
24852:clear
24853s/\\$//
24854t bsnlc
24855s/["\\]/\\&/g; s/^/"/; s/$/"/p
24856d
24857:bsnlc
24858s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24859b cont
24860' <confdefs.h | sed '
24861s/'"$ac_delim"'/"\\\
24862"/g' >>$CONFIG_STATUS || ac_write_fail=1
24863
24864cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24865 for (key in D) D_is_set[key] = 1
24866 FS = ""
24867}
24868/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24869 line = \$ 0
24870 split(line, arg, " ")
24871 if (arg[1] == "#") {
24872 defundef = arg[2]
24873 mac1 = arg[3]
24874 } else {
24875 defundef = substr(arg[1], 2)
24876 mac1 = arg[2]
24877 }
24878 split(mac1, mac2, "(") #)
24879 macro = mac2[1]
24880 prefix = substr(line, 1, index(line, defundef) - 1)
24881 if (D_is_set[macro]) {
24882 # Preserve the white space surrounding the "#".
24883 print prefix "define", macro P[macro] D[macro]
24884 next
24885 } else {
24886 # Replace #undef with comments. This is necessary, for example,
24887 # in the case of _POSIX_SOURCE, which is predefined and required
24888 # on some systems where configure will not decide to define it.
24889 if (defundef == "undef") {
24890 print "/*", prefix defundef, macro, "*/"
24891 next
24892 }
24893 }
24894}
24895{ print }
24896_ACAWK
24897_ACEOF
24898cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24899 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24900fi # test -n "$CONFIG_HEADERS"
24901
24902
24903eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24904shift
24905for ac_tag
24906do
24907 case $ac_tag in
24908 :[FHLC]) ac_mode=$ac_tag; continue;;
24909 esac
24910 case $ac_mode$ac_tag in
24911 :[FHL]*:*);;
24912 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24913 :[FH]-) ac_tag=-:-;;
24914 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24915 esac
24916 ac_save_IFS=$IFS
24917 IFS=:
24918 set x $ac_tag
24919 IFS=$ac_save_IFS
24920 shift
24921 ac_file=$1
24922 shift
24923
24924 case $ac_mode in
24925 :L) ac_source=$1;;
24926 :[FH])
24927 ac_file_inputs=
24928 for ac_f
24929 do
24930 case $ac_f in
24931 -) ac_f="$ac_tmp/stdin";;
24932 *) # Look for the file first in the build tree, then in the source tree
24933 # (if the path is not absolute). The absolute path cannot be DOS-style,
24934 # because $ac_f cannot contain `:'.
24935 test -f "$ac_f" ||
24936 case $ac_f in
24937 [\\/$]*) false;;
24938 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24939 esac ||
24940 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24941 esac
24942 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24943 as_fn_append ac_file_inputs " '$ac_f'"
24944 done
24945
24946 # Let's still pretend it is `configure' which instantiates (i.e., don't
24947 # use $as_me), people would be surprised to read:
24948 # /* config.h. Generated by config.status. */
24949 configure_input='Generated from '`
24950 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24951 `' by configure.'
24952 if test x"$ac_file" != x-; then
24953 configure_input="$ac_file. $configure_input"
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24955$as_echo "$as_me: creating $ac_file" >&6;}
24956 fi
24957 # Neutralize special characters interpreted by sed in replacement strings.
24958 case $configure_input in #(
24959 *\&* | *\|* | *\\* )
24960 ac_sed_conf_input=`$as_echo "$configure_input" |
24961 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24962 *) ac_sed_conf_input=$configure_input;;
24963 esac
24964
24965 case $ac_tag in
24966 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24967 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24968 esac
24969 ;;
24970 esac
24971
24972 ac_dir=`$as_dirname -- "$ac_file" ||
24973$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24974 X"$ac_file" : 'X\(//\)[^/]' \| \
24975 X"$ac_file" : 'X\(//\)$' \| \
24976 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24977$as_echo X"$ac_file" |
24978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24979 s//\1/
24980 q
24981 }
24982 /^X\(\/\/\)[^/].*/{
24983 s//\1/
24984 q
24985 }
24986 /^X\(\/\/\)$/{
24987 s//\1/
24988 q
24989 }
24990 /^X\(\/\).*/{
24991 s//\1/
24992 q
24993 }
24994 s/.*/./; q'`
24995 as_dir="$ac_dir"; as_fn_mkdir_p
24996 ac_builddir=.
24997
24998case "$ac_dir" in
24999.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25000*)
25001 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25002 # A ".." for each directory in $ac_dir_suffix.
25003 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25004 case $ac_top_builddir_sub in
25005 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25006 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25007 esac ;;
25008esac
25009ac_abs_top_builddir=$ac_pwd
25010ac_abs_builddir=$ac_pwd$ac_dir_suffix
25011# for backward compatibility:
25012ac_top_builddir=$ac_top_build_prefix
25013
25014case $srcdir in
25015 .) # We are building in place.
25016 ac_srcdir=.
25017 ac_top_srcdir=$ac_top_builddir_sub
25018 ac_abs_top_srcdir=$ac_pwd ;;
25019 [\\/]* | ?:[\\/]* ) # Absolute name.
25020 ac_srcdir=$srcdir$ac_dir_suffix;
25021 ac_top_srcdir=$srcdir
25022 ac_abs_top_srcdir=$srcdir ;;
25023 *) # Relative name.
25024 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25025 ac_top_srcdir=$ac_top_build_prefix$srcdir
25026 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25027esac
25028ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25029
25030
25031 case $ac_mode in
25032 :F)
25033 #
25034 # CONFIG_FILE
25035 #
25036
25037 case $INSTALL in
25038 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25039 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25040 esac
25041 ac_MKDIR_P=$MKDIR_P
25042 case $MKDIR_P in
25043 [\\/$]* | ?:[\\/]* ) ;;
25044 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25045 esac
25046_ACEOF
25047
25048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25049# If the template does not know about datarootdir, expand it.
25050# FIXME: This hack should be removed a few years after 2.60.
25051ac_datarootdir_hack=; ac_datarootdir_seen=
25052ac_sed_dataroot='
25053/datarootdir/ {
25054 p
25055 q
25056}
25057/@datadir@/p
25058/@docdir@/p
25059/@infodir@/p
25060/@localedir@/p
25061/@mandir@/p'
25062case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25063*datarootdir*) ac_datarootdir_seen=yes;;
25064*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25066$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25067_ACEOF
25068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25069 ac_datarootdir_hack='
25070 s&@datadir@&$datadir&g
25071 s&@docdir@&$docdir&g
25072 s&@infodir@&$infodir&g
25073 s&@localedir@&$localedir&g
25074 s&@mandir@&$mandir&g
25075 s&\\\${datarootdir}&$datarootdir&g' ;;
25076esac
25077_ACEOF
25078
25079# Neutralize VPATH when `$srcdir' = `.'.
25080# Shell code in configure.ac might set extrasub.
25081# FIXME: do we really want to maintain this feature?
25082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25083ac_sed_extra="$ac_vpsub
25084$extrasub
25085_ACEOF
25086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25087:t
25088/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25089s|@configure_input@|$ac_sed_conf_input|;t t
25090s&@top_builddir@&$ac_top_builddir_sub&;t t
25091s&@top_build_prefix@&$ac_top_build_prefix&;t t
25092s&@srcdir@&$ac_srcdir&;t t
25093s&@abs_srcdir@&$ac_abs_srcdir&;t t
25094s&@top_srcdir@&$ac_top_srcdir&;t t
25095s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25096s&@builddir@&$ac_builddir&;t t
25097s&@abs_builddir@&$ac_abs_builddir&;t t
25098s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25099s&@INSTALL@&$ac_INSTALL&;t t
25100s&@MKDIR_P@&$ac_MKDIR_P&;t t
25101$ac_datarootdir_hack
25102"
25103eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25104 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25105
25106test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25107 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25108 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
25109 "$ac_tmp/out"`; test -z "$ac_out"; } &&
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25111which seems to be undefined. Please make sure it is defined" >&5
25112$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25113which seems to be undefined. Please make sure it is defined" >&2;}
25114
25115 rm -f "$ac_tmp/stdin"
25116 case $ac_file in
25117 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25118 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
25119 esac \
25120 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25121 ;;
25122 :H)
25123 #
25124 # CONFIG_HEADER
25125 #
25126 if test x"$ac_file" != x-; then
25127 {
25128 $as_echo "/* $configure_input */" \
25129 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25130 } >"$ac_tmp/config.h" \
25131 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25132 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25133 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25134$as_echo "$as_me: $ac_file is unchanged" >&6;}
25135 else
25136 rm -f "$ac_file"
25137 mv "$ac_tmp/config.h" "$ac_file" \
25138 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25139 fi
25140 else
25141 $as_echo "/* $configure_input */" \
25142 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25143 || as_fn_error $? "could not create -" "$LINENO" 5
25144 fi
25145# Compute "$ac_file"'s index in $config_headers.
25146_am_arg="$ac_file"
25147_am_stamp_count=1
25148for _am_header in $config_headers :; do
25149 case $_am_header in
25150 $_am_arg | $_am_arg:* )
25151 break ;;
25152 * )
25153 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25154 esac
25155done
25156echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25157$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25158 X"$_am_arg" : 'X\(//\)[^/]' \| \
25159 X"$_am_arg" : 'X\(//\)$' \| \
25160 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25161$as_echo X"$_am_arg" |
25162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25163 s//\1/
25164 q
25165 }
25166 /^X\(\/\/\)[^/].*/{
25167 s//\1/
25168 q
25169 }
25170 /^X\(\/\/\)$/{
25171 s//\1/
25172 q
25173 }
25174 /^X\(\/\).*/{
25175 s//\1/
25176 q
25177 }
25178 s/.*/./; q'`/stamp-h$_am_stamp_count
25179 ;;
25180
25181 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25182$as_echo "$as_me: executing $ac_file commands" >&6;}
25183 ;;
25184 esac
25185
25186
25187 case $ac_file$ac_mode in
25188 "libtool":C)
25189
25190 # See if we are running on zsh, and set the options which allow our
25191 # commands through without removal of \ escapes.
25192 if test -n "${ZSH_VERSION+set}" ; then
25193 setopt NO_GLOB_SUBST
25194 fi
25195
25196 cfgfile="${ofile}T"
25197 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25198 $RM "$cfgfile"
25199
25200 cat <<_LT_EOF >> "$cfgfile"
25201#! $SHELL
25202
25203# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
25204# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
25205# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25206# NOTE: Changes made to this file will be lost: look at ltmain.sh.
25207#
25208# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25209# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
25210# Inc.
25211# Written by Gordon Matzigkeit, 1996
25212#
25213# This file is part of GNU Libtool.
25214#
25215# GNU Libtool is free software; you can redistribute it and/or
25216# modify it under the terms of the GNU General Public License as
25217# published by the Free Software Foundation; either version 2 of
25218# the License, or (at your option) any later version.
25219#
25220# As a special exception to the GNU General Public License,
25221# if you distribute this file as part of a program or library that
25222# is built using GNU Libtool, you may include this file under the
25223# same distribution terms that you use for the rest of that program.
25224#
25225# GNU Libtool is distributed in the hope that it will be useful,
25226# but WITHOUT ANY WARRANTY; without even the implied warranty of
25227# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25228# GNU General Public License for more details.
25229#
25230# You should have received a copy of the GNU General Public License
25231# along with GNU Libtool; see the file COPYING. If not, a copy
25232# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
25233# obtained by writing to the Free Software Foundation, Inc.,
25234# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25235
25236
25237# The names of the tagged configurations supported by this script.
25238available_tags="CXX "
25239
25240# ### BEGIN LIBTOOL CONFIG
25241
25242# Assembler program.
25243AS=$lt_AS
25244
25245# DLL creation program.
25246DLLTOOL=$lt_DLLTOOL
25247
25248# Object dumper program.
25249OBJDUMP=$lt_OBJDUMP
25250
25251# Which release of libtool.m4 was used?
25252macro_version=$macro_version
25253macro_revision=$macro_revision
25254
25255# Whether or not to build shared libraries.
25256build_libtool_libs=$enable_shared
25257
25258# Whether or not to build static libraries.
25259build_old_libs=$enable_static
25260
25261# What type of objects to build.
25262pic_mode=$pic_mode
25263
25264# Whether or not to optimize for fast installation.
25265fast_install=$enable_fast_install
25266
25267# Shell to use when invoking shell scripts.
25268SHELL=$lt_SHELL
25269
25270# An echo program that protects backslashes.
25271ECHO=$lt_ECHO
25272
25273# The host system.
25274host_alias=$host_alias
25275host=$host
25276host_os=$host_os
25277
25278# The build system.
25279build_alias=$build_alias
25280build=$build
25281build_os=$build_os
25282
25283# A sed program that does not truncate output.
25284SED=$lt_SED
25285
25286# Sed that helps us avoid accidentally triggering echo(1) options like -n.
25287Xsed="\$SED -e 1s/^X//"
25288
25289# A grep program that handles long lines.
25290GREP=$lt_GREP
25291
25292# An ERE matcher.
25293EGREP=$lt_EGREP
25294
25295# A literal string matcher.
25296FGREP=$lt_FGREP
25297
25298# A BSD- or MS-compatible name lister.
25299NM=$lt_NM
25300
25301# Whether we need soft or hard links.
25302LN_S=$lt_LN_S
25303
25304# What is the maximum length of a command?
25305max_cmd_len=$max_cmd_len
25306
25307# Object file suffix (normally "o").
25308objext=$ac_objext
25309
25310# Executable file suffix (normally "").
25311exeext=$exeext
25312
25313# whether the shell understands "unset".
25314lt_unset=$lt_unset
25315
25316# turn spaces into newlines.
25317SP2NL=$lt_lt_SP2NL
25318
25319# turn newlines into spaces.
25320NL2SP=$lt_lt_NL2SP
25321
25322# convert \$build file names to \$host format.
25323to_host_file_cmd=$lt_cv_to_host_file_cmd
25324
25325# convert \$build files to toolchain format.
25326to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25327
25328# Method to check whether dependent libraries are shared objects.
25329deplibs_check_method=$lt_deplibs_check_method
25330
25331# Command to use when deplibs_check_method = "file_magic".
25332file_magic_cmd=$lt_file_magic_cmd
25333
25334# How to find potential files when deplibs_check_method = "file_magic".
25335file_magic_glob=$lt_file_magic_glob
25336
25337# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25338want_nocaseglob=$lt_want_nocaseglob
25339
25340# Command to associate shared and link libraries.
25341sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25342
25343# The archiver.
25344AR=$lt_AR
25345
25346# Flags to create an archive.
25347AR_FLAGS=$lt_AR_FLAGS
25348
25349# How to feed a file listing to the archiver.
25350archiver_list_spec=$lt_archiver_list_spec
25351
25352# A symbol stripping program.
25353STRIP=$lt_STRIP
25354
25355# Commands used to install an old-style archive.
25356RANLIB=$lt_RANLIB
25357old_postinstall_cmds=$lt_old_postinstall_cmds
25358old_postuninstall_cmds=$lt_old_postuninstall_cmds
25359
25360# Whether to use a lock for old archive extraction.
25361lock_old_archive_extraction=$lock_old_archive_extraction
25362
25363# A C compiler.
25364LTCC=$lt_CC
25365
25366# LTCC compiler flags.
25367LTCFLAGS=$lt_CFLAGS
25368
25369# Take the output of nm and produce a listing of raw symbols and C names.
25370global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25371
25372# Transform the output of nm in a proper C declaration.
25373global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25374
25375# Transform the output of nm in a C name address pair.
25376global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25377
25378# Transform the output of nm in a C name address pair when lib prefix is needed.
25379global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25380
25381# Specify filename containing input files for \$NM.
25382nm_file_list_spec=$lt_nm_file_list_spec
25383
25384# The root where to search for dependent libraries,and in which our libraries should be installed.
25385lt_sysroot=$lt_sysroot
25386
25387# The name of the directory that contains temporary libtool files.
25388objdir=$objdir
25389
25390# Used to examine libraries when file_magic_cmd begins with "file".
25391MAGIC_CMD=$MAGIC_CMD
25392
25393# Must we lock files when doing compilation?
25394need_locks=$lt_need_locks
25395
25396# Manifest tool.
25397MANIFEST_TOOL=$lt_MANIFEST_TOOL
25398
25399# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25400DSYMUTIL=$lt_DSYMUTIL
25401
25402# Tool to change global to local symbols on Mac OS X.
25403NMEDIT=$lt_NMEDIT
25404
25405# Tool to manipulate fat objects and archives on Mac OS X.
25406LIPO=$lt_LIPO
25407
25408# ldd/readelf like tool for Mach-O binaries on Mac OS X.
25409OTOOL=$lt_OTOOL
25410
25411# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25412OTOOL64=$lt_OTOOL64
25413
25414# Old archive suffix (normally "a").
25415libext=$libext
25416
25417# Shared library suffix (normally ".so").
25418shrext_cmds=$lt_shrext_cmds
25419
25420# The commands to extract the exported symbol list from a shared archive.
25421extract_expsyms_cmds=$lt_extract_expsyms_cmds
25422
25423# Variables whose values should be saved in libtool wrapper scripts and
25424# restored at link time.
25425variables_saved_for_relink=$lt_variables_saved_for_relink
25426
25427# Do we need the "lib" prefix for modules?
25428need_lib_prefix=$need_lib_prefix
25429
25430# Do we need a version for libraries?
25431need_version=$need_version
25432
25433# Library versioning type.
25434version_type=$version_type
25435
25436# Shared library runtime path variable.
25437runpath_var=$runpath_var
25438
25439# Shared library path variable.
25440shlibpath_var=$shlibpath_var
25441
25442# Is shlibpath searched before the hard-coded library search path?
25443shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25444
25445# Format of library name prefix.
25446libname_spec=$lt_libname_spec
25447
25448# List of archive names. First name is the real one, the rest are links.
25449# The last name is the one that the linker finds with -lNAME
25450library_names_spec=$lt_library_names_spec
25451
25452# The coded name of the library, if different from the real name.
25453soname_spec=$lt_soname_spec
25454
25455# Permission mode override for installation of shared libraries.
25456install_override_mode=$lt_install_override_mode
25457
25458# Command to use after installation of a shared archive.
25459postinstall_cmds=$lt_postinstall_cmds
25460
25461# Command to use after uninstallation of a shared archive.
25462postuninstall_cmds=$lt_postuninstall_cmds
25463
25464# Commands used to finish a libtool library installation in a directory.
25465finish_cmds=$lt_finish_cmds
25466
25467# As "finish_cmds", except a single script fragment to be evaled but
25468# not shown.
25469finish_eval=$lt_finish_eval
25470
25471# Whether we should hardcode library paths into libraries.
25472hardcode_into_libs=$hardcode_into_libs
25473
25474# Compile-time system search path for libraries.
25475sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25476
25477# Run-time system search path for libraries.
25478sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25479
25480# Whether dlopen is supported.
25481dlopen_support=$enable_dlopen
25482
25483# Whether dlopen of programs is supported.
25484dlopen_self=$enable_dlopen_self
25485
25486# Whether dlopen of statically linked programs is supported.
25487dlopen_self_static=$enable_dlopen_self_static
25488
25489# Commands to strip libraries.
25490old_striplib=$lt_old_striplib
25491striplib=$lt_striplib
25492
25493
25494# The linker used to build libraries.
25495LD=$lt_LD
25496
25497# How to create reloadable object files.
25498reload_flag=$lt_reload_flag
25499reload_cmds=$lt_reload_cmds
25500
25501# Commands used to build an old-style archive.
25502old_archive_cmds=$lt_old_archive_cmds
25503
25504# A language specific compiler.
25505CC=$lt_compiler
25506
25507# Is the compiler the GNU compiler?
25508with_gcc=$GCC
25509
25510# Compiler flag to turn off builtin functions.
25511no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25512
25513# Additional compiler flags for building library objects.
25514pic_flag=$lt_lt_prog_compiler_pic
25515
25516# How to pass a linker flag through the compiler.
25517wl=$lt_lt_prog_compiler_wl
25518
25519# Compiler flag to prevent dynamic linking.
25520link_static_flag=$lt_lt_prog_compiler_static
25521
25522# Does compiler simultaneously support -c and -o options?
25523compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25524
25525# Whether or not to add -lc for building shared libraries.
25526build_libtool_need_lc=$archive_cmds_need_lc
25527
25528# Whether or not to disallow shared libs when runtime libs are static.
25529allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25530
25531# Compiler flag to allow reflexive dlopens.
25532export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25533
25534# Compiler flag to generate shared objects directly from archives.
25535whole_archive_flag_spec=$lt_whole_archive_flag_spec
25536
25537# Whether the compiler copes with passing no objects directly.
25538compiler_needs_object=$lt_compiler_needs_object
25539
25540# Create an old-style archive from a shared archive.
25541old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25542
25543# Create a temporary old-style archive to link instead of a shared archive.
25544old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25545
25546# Commands used to build a shared archive.
25547archive_cmds=$lt_archive_cmds
25548archive_expsym_cmds=$lt_archive_expsym_cmds
25549
25550# Commands used to build a loadable module if different from building
25551# a shared archive.
25552module_cmds=$lt_module_cmds
25553module_expsym_cmds=$lt_module_expsym_cmds
25554
25555# Whether we are building with GNU ld or not.
25556with_gnu_ld=$lt_with_gnu_ld
25557
25558# Flag that allows shared libraries with undefined symbols to be built.
25559allow_undefined_flag=$lt_allow_undefined_flag
25560
25561# Flag that enforces no undefined symbols.
25562no_undefined_flag=$lt_no_undefined_flag
25563
25564# Flag to hardcode \$libdir into a binary during linking.
25565# This must work even if \$libdir does not exist
25566hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25567
25568# If ld is used when linking, flag to hardcode \$libdir into a binary
25569# during linking. This must work even if \$libdir does not exist.
25570hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
25571
25572# Whether we need a single "-rpath" flag with a separated argument.
25573hardcode_libdir_separator=$lt_hardcode_libdir_separator
25574
25575# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25576# DIR into the resulting binary.
25577hardcode_direct=$hardcode_direct
25578
25579# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25580# DIR into the resulting binary and the resulting library dependency is
25581# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25582# library is relocated.
25583hardcode_direct_absolute=$hardcode_direct_absolute
25584
25585# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25586# into the resulting binary.
25587hardcode_minus_L=$hardcode_minus_L
25588
25589# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25590# into the resulting binary.
25591hardcode_shlibpath_var=$hardcode_shlibpath_var
25592
25593# Set to "yes" if building a shared library automatically hardcodes DIR
25594# into the library and all subsequent libraries and executables linked
25595# against it.
25596hardcode_automatic=$hardcode_automatic
25597
25598# Set to yes if linker adds runtime paths of dependent libraries
25599# to runtime path list.
25600inherit_rpath=$inherit_rpath
25601
25602# Whether libtool must link a program against all its dependency libraries.
25603link_all_deplibs=$link_all_deplibs
25604
25605# Set to "yes" if exported symbols are required.
25606always_export_symbols=$always_export_symbols
25607
25608# The commands to list exported symbols.
25609export_symbols_cmds=$lt_export_symbols_cmds
25610
25611# Symbols that should not be listed in the preloaded symbols.
25612exclude_expsyms=$lt_exclude_expsyms
25613
25614# Symbols that must always be exported.
25615include_expsyms=$lt_include_expsyms
25616
25617# Commands necessary for linking programs (against libraries) with templates.
25618prelink_cmds=$lt_prelink_cmds
25619
25620# Commands necessary for finishing linking programs.
25621postlink_cmds=$lt_postlink_cmds
25622
25623# Specify filename containing input files.
25624file_list_spec=$lt_file_list_spec
25625
25626# How to hardcode a shared library path into an executable.
25627hardcode_action=$hardcode_action
25628
25629# The directories searched by this compiler when creating a shared library.
25630compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
25631
25632# Dependencies to place before and after the objects being linked to
25633# create a shared library.
25634predep_objects=$lt_predep_objects
25635postdep_objects=$lt_postdep_objects
25636predeps=$lt_predeps
25637postdeps=$lt_postdeps
25638
25639# The library search path used internally by the compiler when linking
25640# a shared library.
25641compiler_lib_search_path=$lt_compiler_lib_search_path
25642
25643# ### END LIBTOOL CONFIG
25644
25645_LT_EOF
25646
25647 case $host_os in
25648 aix3*)
25649 cat <<\_LT_EOF >> "$cfgfile"
25650# AIX sometimes has problems with the GCC collect2 program. For some
25651# reason, if we set the COLLECT_NAMES environment variable, the problems
25652# vanish in a puff of smoke.
25653if test "X${COLLECT_NAMES+set}" != Xset; then
25654 COLLECT_NAMES=
25655 export COLLECT_NAMES
25656fi
25657_LT_EOF
25658 ;;
25659 esac
25660
25661
25662ltmain="$ac_aux_dir/ltmain.sh"
25663
25664
25665 # We use sed instead of cat because bash on DJGPP gets confused if
25666 # if finds mixed CR/LF and LF-only lines. Since sed operates in
25667 # text mode, it properly converts lines to CR/LF. This bash problem
25668 # is reportedly fixed, but why not run on old versions too?
25669 sed '$q' "$ltmain" >> "$cfgfile" \
25670 || (rm -f "$cfgfile"; exit 1)
25671
25672 if test x"$xsi_shell" = xyes; then
25673 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
25674func_dirname ()\
25675{\
25676\ case ${1} in\
25677\ */*) func_dirname_result="${1%/*}${2}" ;;\
25678\ * ) func_dirname_result="${3}" ;;\
25679\ esac\
25680} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
25681 && mv -f "$cfgfile.tmp" "$cfgfile" \
25682 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25683test 0 -eq $? || _lt_function_replace_fail=:
25684
25685
25686 sed -e '/^func_basename ()$/,/^} # func_basename /c\
25687func_basename ()\
25688{\
25689\ func_basename_result="${1##*/}"\
25690} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
25691 && mv -f "$cfgfile.tmp" "$cfgfile" \
25692 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25693test 0 -eq $? || _lt_function_replace_fail=:
25694
25695
25696 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
25697func_dirname_and_basename ()\
25698{\
25699\ case ${1} in\
25700\ */*) func_dirname_result="${1%/*}${2}" ;;\
25701\ * ) func_dirname_result="${3}" ;;\
25702\ esac\
25703\ func_basename_result="${1##*/}"\
25704} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
25705 && mv -f "$cfgfile.tmp" "$cfgfile" \
25706 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25707test 0 -eq $? || _lt_function_replace_fail=:
25708
25709
25710 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
25711func_stripname ()\
25712{\
25713\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
25714\ # positional parameters, so assign one to ordinary parameter first.\
25715\ func_stripname_result=${3}\
25716\ func_stripname_result=${func_stripname_result#"${1}"}\
25717\ func_stripname_result=${func_stripname_result%"${2}"}\
25718} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
25719 && mv -f "$cfgfile.tmp" "$cfgfile" \
25720 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25721test 0 -eq $? || _lt_function_replace_fail=:
25722
25723
25724 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
25725func_split_long_opt ()\
25726{\
25727\ func_split_long_opt_name=${1%%=*}\
25728\ func_split_long_opt_arg=${1#*=}\
25729} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
25730 && mv -f "$cfgfile.tmp" "$cfgfile" \
25731 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25732test 0 -eq $? || _lt_function_replace_fail=:
25733
25734
25735 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
25736func_split_short_opt ()\
25737{\
25738\ func_split_short_opt_arg=${1#??}\
25739\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
25740} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
25741 && mv -f "$cfgfile.tmp" "$cfgfile" \
25742 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25743test 0 -eq $? || _lt_function_replace_fail=:
25744
25745
25746 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
25747func_lo2o ()\
25748{\
25749\ case ${1} in\
25750\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
25751\ *) func_lo2o_result=${1} ;;\
25752\ esac\
25753} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
25754 && mv -f "$cfgfile.tmp" "$cfgfile" \
25755 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25756test 0 -eq $? || _lt_function_replace_fail=:
25757
25758
25759 sed -e '/^func_xform ()$/,/^} # func_xform /c\
25760func_xform ()\
25761{\
25762 func_xform_result=${1%.*}.lo\
25763} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
25764 && mv -f "$cfgfile.tmp" "$cfgfile" \
25765 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25766test 0 -eq $? || _lt_function_replace_fail=:
25767
25768
25769 sed -e '/^func_arith ()$/,/^} # func_arith /c\
25770func_arith ()\
25771{\
25772 func_arith_result=$(( $* ))\
25773} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
25774 && mv -f "$cfgfile.tmp" "$cfgfile" \
25775 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25776test 0 -eq $? || _lt_function_replace_fail=:
25777
25778
25779 sed -e '/^func_len ()$/,/^} # func_len /c\
25780func_len ()\
25781{\
25782 func_len_result=${#1}\
25783} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
25784 && mv -f "$cfgfile.tmp" "$cfgfile" \
25785 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25786test 0 -eq $? || _lt_function_replace_fail=:
25787
25788fi
25789
25790if test x"$lt_shell_append" = xyes; then
25791 sed -e '/^func_append ()$/,/^} # func_append /c\
25792func_append ()\
25793{\
25794 eval "${1}+=\\${2}"\
25795} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
25796 && mv -f "$cfgfile.tmp" "$cfgfile" \
25797 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25798test 0 -eq $? || _lt_function_replace_fail=:
25799
25800
25801 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
25802func_append_quoted ()\
25803{\
25804\ func_quote_for_eval "${2}"\
25805\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
25806} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
25807 && mv -f "$cfgfile.tmp" "$cfgfile" \
25808 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25809test 0 -eq $? || _lt_function_replace_fail=:
25810
25811
25812 # Save a `func_append' function call where possible by direct use of '+='
25813 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
25814 && mv -f "$cfgfile.tmp" "$cfgfile" \
25815 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25816 test 0 -eq $? || _lt_function_replace_fail=:
25817else
25818 # Save a `func_append' function call even when '+=' is not available
25819 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
25820 && mv -f "$cfgfile.tmp" "$cfgfile" \
25821 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25822 test 0 -eq $? || _lt_function_replace_fail=:
25823fi
25824
25825if test x"$_lt_function_replace_fail" = x":"; then
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
25827$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
25828fi
25829
25830
25831 mv -f "$cfgfile" "$ofile" ||
25832 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25833 chmod +x "$ofile"
25834
25835
25836 cat <<_LT_EOF >> "$ofile"
25837
25838# ### BEGIN LIBTOOL TAG CONFIG: CXX
25839
25840# The linker used to build libraries.
25841LD=$lt_LD_CXX
25842
25843# How to create reloadable object files.
25844reload_flag=$lt_reload_flag_CXX
25845reload_cmds=$lt_reload_cmds_CXX
25846
25847# Commands used to build an old-style archive.
25848old_archive_cmds=$lt_old_archive_cmds_CXX
25849
25850# A language specific compiler.
25851CC=$lt_compiler_CXX
25852
25853# Is the compiler the GNU compiler?
25854with_gcc=$GCC_CXX
25855
25856# Compiler flag to turn off builtin functions.
25857no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25858
25859# Additional compiler flags for building library objects.
25860pic_flag=$lt_lt_prog_compiler_pic_CXX
25861
25862# How to pass a linker flag through the compiler.
25863wl=$lt_lt_prog_compiler_wl_CXX
25864
25865# Compiler flag to prevent dynamic linking.
25866link_static_flag=$lt_lt_prog_compiler_static_CXX
25867
25868# Does compiler simultaneously support -c and -o options?
25869compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25870
25871# Whether or not to add -lc for building shared libraries.
25872build_libtool_need_lc=$archive_cmds_need_lc_CXX
25873
25874# Whether or not to disallow shared libs when runtime libs are static.
25875allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25876
25877# Compiler flag to allow reflexive dlopens.
25878export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25879
25880# Compiler flag to generate shared objects directly from archives.
25881whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25882
25883# Whether the compiler copes with passing no objects directly.
25884compiler_needs_object=$lt_compiler_needs_object_CXX
25885
25886# Create an old-style archive from a shared archive.
25887old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25888
25889# Create a temporary old-style archive to link instead of a shared archive.
25890old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25891
25892# Commands used to build a shared archive.
25893archive_cmds=$lt_archive_cmds_CXX
25894archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25895
25896# Commands used to build a loadable module if different from building
25897# a shared archive.
25898module_cmds=$lt_module_cmds_CXX
25899module_expsym_cmds=$lt_module_expsym_cmds_CXX
25900
25901# Whether we are building with GNU ld or not.
25902with_gnu_ld=$lt_with_gnu_ld_CXX
25903
25904# Flag that allows shared libraries with undefined symbols to be built.
25905allow_undefined_flag=$lt_allow_undefined_flag_CXX
25906
25907# Flag that enforces no undefined symbols.
25908no_undefined_flag=$lt_no_undefined_flag_CXX
25909
25910# Flag to hardcode \$libdir into a binary during linking.
25911# This must work even if \$libdir does not exist
25912hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25913
25914# If ld is used when linking, flag to hardcode \$libdir into a binary
25915# during linking. This must work even if \$libdir does not exist.
25916hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
25917
25918# Whether we need a single "-rpath" flag with a separated argument.
25919hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25920
25921# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25922# DIR into the resulting binary.
25923hardcode_direct=$hardcode_direct_CXX
25924
25925# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25926# DIR into the resulting binary and the resulting library dependency is
25927# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25928# library is relocated.
25929hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25930
25931# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25932# into the resulting binary.
25933hardcode_minus_L=$hardcode_minus_L_CXX
25934
25935# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25936# into the resulting binary.
25937hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25938
25939# Set to "yes" if building a shared library automatically hardcodes DIR
25940# into the library and all subsequent libraries and executables linked
25941# against it.
25942hardcode_automatic=$hardcode_automatic_CXX
25943
25944# Set to yes if linker adds runtime paths of dependent libraries
25945# to runtime path list.
25946inherit_rpath=$inherit_rpath_CXX
25947
25948# Whether libtool must link a program against all its dependency libraries.
25949link_all_deplibs=$link_all_deplibs_CXX
25950
25951# Set to "yes" if exported symbols are required.
25952always_export_symbols=$always_export_symbols_CXX
25953
25954# The commands to list exported symbols.
25955export_symbols_cmds=$lt_export_symbols_cmds_CXX
25956
25957# Symbols that should not be listed in the preloaded symbols.
25958exclude_expsyms=$lt_exclude_expsyms_CXX
25959
25960# Symbols that must always be exported.
25961include_expsyms=$lt_include_expsyms_CXX
25962
25963# Commands necessary for linking programs (against libraries) with templates.
25964prelink_cmds=$lt_prelink_cmds_CXX
25965
25966# Commands necessary for finishing linking programs.
25967postlink_cmds=$lt_postlink_cmds_CXX
25968
25969# Specify filename containing input files.
25970file_list_spec=$lt_file_list_spec_CXX
25971
25972# How to hardcode a shared library path into an executable.
25973hardcode_action=$hardcode_action_CXX
25974
25975# The directories searched by this compiler when creating a shared library.
25976compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25977
25978# Dependencies to place before and after the objects being linked to
25979# create a shared library.
25980predep_objects=$lt_predep_objects_CXX
25981postdep_objects=$lt_postdep_objects_CXX
25982predeps=$lt_predeps_CXX
25983postdeps=$lt_postdeps_CXX
25984
25985# The library search path used internally by the compiler when linking
25986# a shared library.
25987compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25988
25989# ### END LIBTOOL TAG CONFIG: CXX
25990_LT_EOF
25991
25992 ;;
25993 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25994 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25995 # are listed without --file. Let's play safe and only enable the eval
25996 # if we detect the quoting.
25997 case $CONFIG_FILES in
25998 *\'*) eval set x "$CONFIG_FILES" ;;
25999 *) set x $CONFIG_FILES ;;
26000 esac
26001 shift
26002 for mf
26003 do
26004 # Strip MF so we end up with the name of the file.
26005 mf=`echo "$mf" | sed -e 's/:.*$//'`
26006 # Check whether this is an Automake generated Makefile or not.
26007 # We used to match only the files named `Makefile.in', but
26008 # some people rename them; so instead we look at the file content.
26009 # Grep'ing the first line is not enough: some people post-process
26010 # each Makefile.in and add a new line on top of each file to say so.
26011 # Grep'ing the whole file is not good either: AIX grep has a line
26012 # limit of 2048, but all sed's we know have understand at least 4000.
26013 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26014 dirpart=`$as_dirname -- "$mf" ||
26015$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26016 X"$mf" : 'X\(//\)[^/]' \| \
26017 X"$mf" : 'X\(//\)$' \| \
26018 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26019$as_echo X"$mf" |
26020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26021 s//\1/
26022 q
26023 }
26024 /^X\(\/\/\)[^/].*/{
26025 s//\1/
26026 q
26027 }
26028 /^X\(\/\/\)$/{
26029 s//\1/
26030 q
26031 }
26032 /^X\(\/\).*/{
26033 s//\1/
26034 q
26035 }
26036 s/.*/./; q'`
26037 else
26038 continue
26039 fi
26040 # Extract the definition of DEPDIR, am__include, and am__quote
26041 # from the Makefile without running `make'.
26042 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26043 test -z "$DEPDIR" && continue
26044 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26045 test -z "am__include" && continue
26046 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26047 # When using ansi2knr, U may be empty or an underscore; expand it
26048 U=`sed -n 's/^U = //p' < "$mf"`
26049 # Find all dependency output files, they are included files with
26050 # $(DEPDIR) in their names. We invoke sed twice because it is the
26051 # simplest approach to changing $(DEPDIR) to its actual value in the
26052 # expansion.
26053 for file in `sed -n "
26054 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26055 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26056 # Make sure the directory exists.
26057 test -f "$dirpart/$file" && continue
26058 fdir=`$as_dirname -- "$file" ||
26059$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26060 X"$file" : 'X\(//\)[^/]' \| \
26061 X"$file" : 'X\(//\)$' \| \
26062 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26063$as_echo X"$file" |
26064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26065 s//\1/
26066 q
26067 }
26068 /^X\(\/\/\)[^/].*/{
26069 s//\1/
26070 q
26071 }
26072 /^X\(\/\/\)$/{
26073 s//\1/
26074 q
26075 }
26076 /^X\(\/\).*/{
26077 s//\1/
26078 q
26079 }
26080 s/.*/./; q'`
26081 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26082 # echo "creating $dirpart/$file"
26083 echo '# dummy' > "$dirpart/$file"
26084 done
26085 done
26086}
26087 ;;
26088
26089 esac
26090done # for ac_tag
26091
26092
26093as_fn_exit 0
26094_ACEOF
26095ac_clean_files=$ac_clean_files_save
26096
26097test $ac_write_fail = 0 ||
26098 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26099
26100
26101# configure is writing to config.log, and then calls config.status.
26102# config.status does its own redirection, appending to config.log.
26103# Unfortunately, on DOS this fails, as config.log is still kept open
26104# by configure, so config.status won't be able to write to it; its
26105# output is simply discarded. So we exec the FD to /dev/null,
26106# effectively closing config.log, so it can be properly (re)opened and
26107# appended to by config.status. When coming back to configure, we
26108# need to make the FD available again.
26109if test "$no_create" != yes; then
26110 ac_cs_success=:
26111 ac_config_status_args=
26112 test "$silent" = yes &&
26113 ac_config_status_args="$ac_config_status_args --quiet"
26114 exec 5>/dev/null
26115 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26116 exec 5>>config.log
26117 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26118 # would make configure fail if this is the last instruction.
26119 $ac_cs_success || as_fn_exit 1
26120fi
26121if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26123$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26124fi
26125
26126
26127# if test ! -f inc/cc++/thread.h ; then
26128# cp ${srcdir}/inc/cc++/*.h inc/cc++ ; fi
26129
26130cd inc
26131rm -f config.tmp
26132cp ../config.h config.tmp
26133sed -e s!"@thrprefix@"!"$thrprefix"! -e s!"@USR_PREFIX@"!"$prefix"! \
26134 -e s!PACKAGE!CCXX_PACKAGE! -e s!VERSION!CCXX_VERSION! <config.tmp >cc++/config.h
26135cd ..
26136#
26137# Visual Studio
26138#
26139DLLVERSION=`echo "$LT_RELEASE" | sed -e 's/\.//'g`
26140#
26141# Visual Studio 2008
26142#
26143rm -f w32/vs2008/ccext2.vcproj.tmp w32/vs2008/ccgnu2.vcproj.tmp
26144cp -p w32/vs2008/ccext2.vcproj w32/vs2008/ccext2.vcproj.tmp
26145cp -p w32/vs2008/ccgnu2.vcproj w32/vs2008/ccgnu2.vcproj.tmp
26146sed -e s/VCVERSION/$VERSION/g < w32/vs2008/ccext2.vcproj.tmp > w32/vs2008/ccext2.vcproj
26147sed -e s/VCVERSION/$VERSION/g < w32/vs2008/ccgnu2.vcproj.tmp > w32/vs2008/ccgnu2.vcproj
26148
26149cp -p w32/vs2008/ccext2.vcproj w32/vs2008/ccext2.vcproj.tmp
26150cp -p w32/vs2008/ccgnu2.vcproj w32/vs2008/ccgnu2.vcproj.tmp
26151sed -e s/DLLVERSION/$DLLVERSION/g < w32/vs2008/ccext2.vcproj.tmp > w32/vs2008/ccext2.vcproj
26152sed -e s/DLLVERSION/$DLLVERSION/g < w32/vs2008/ccgnu2.vcproj.tmp > w32/vs2008/ccgnu2.vcproj
26153rm -f w32/vs2008/ccext2.vcproj.tmp w32/vs2008/ccgnu2.vcproj.tmp
26154
26155#
26156# Visual Studio 2005
26157#
26158rm -f w32/ccext2.vcproj.tmp w32/ccgnu2.vcproj.tmp
26159cp -p w32/ccext2.vcproj w32/ccext2.vcproj.tmp
26160cp -p w32/ccgnu2.vcproj w32/ccgnu2.vcproj.tmp
26161sed -e s/VCVERSION/$VERSION/g < w32/ccext2.vcproj.tmp > w32/ccext2.vcproj
26162sed -e s/VCVERSION/$VERSION/g < w32/ccgnu2.vcproj.tmp > w32/ccgnu2.vcproj
26163
26164cp -p w32/ccext2.vcproj w32/ccext2.vcproj.tmp
26165cp -p w32/ccgnu2.vcproj w32/ccgnu2.vcproj.tmp
26166sed -e s/DLLVERSION/$DLLVERSION/g < w32/ccext2.vcproj.tmp > w32/ccext2.vcproj
26167sed -e s/DLLVERSION/$DLLVERSION/g < w32/ccgnu2.vcproj.tmp > w32/ccgnu2.vcproj
26168rm -f w32/ccext2.vcproj.tmp w32/ccgnu2.vcproj.tmp
26169
26170#
26171# Visual Studio 6
26172#
26173rm -f w32/ccext2.dsp.tmp w32/ccgnu2.dsp.tmp
26174cp -p w32/ccext2.dsp w32/ccext2.dsp.tmp
26175cp -p w32/ccgnu2.dsp w32/ccgnu2.dsp.tmp
26176sed -e s/VCVERSION/$VERSION/g < w32/ccext2.dsp.tmp > w32/ccext2.dsp
26177sed -e s/VCVERSION/$VERSION/g < w32/ccgnu2.dsp.tmp > w32/ccgnu2.dsp
26178
26179cp -p w32/ccext2.dsp w32/ccext2.dsp.tmp
26180cp -p w32/ccgnu2.dsp w32/ccgnu2.dsp.tmp
26181sed -e s/DLLVERSION/$DLLVERSION/g < w32/ccext2.dsp.tmp > w32/ccext2.dsp
26182sed -e s/DLLVERSION/$DLLVERSION/g < w32/ccgnu2.dsp.tmp > w32/ccgnu2.dsp
26183rm -f w32/ccext2.dsp.tmp w32/ccgnu2.dsp.tmp
26184