Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
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
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if 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
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_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.
45 if 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 --'
49 elif (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'
52 else
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'
72 fi
73
74 # The user is always right.
75 if 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 }
81 fi
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.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell [email protected] about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
532
533 case X$lt_ECHO in
534 X*--fallback-echo)
535 # Remove one level of quotation (which was required for Make).
536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537 ;;
538 esac
539
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
543 shift
544 elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
546 :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
549 :
550 else
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
554
555 if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
557 shift
558 cat <<_LT_EOF
559 $*
560 _LT_EOF
561 exit 0
562 fi
563
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568 if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575 then
576 break
577 fi
578 done
579 fi
580
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
584 :
585 else
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
589 #
590 # So, first we look for a working echo in the user's PATH.
591
592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593 for dir in $PATH /usr/ucb; do
594 IFS="$lt_save_ifs"
595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
599 ECHO="$dir/echo"
600 break
601 fi
602 done
603 IFS="$lt_save_ifs"
604
605 if test "X$ECHO" = Xecho; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
611 ECHO='print -r'
612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X/bin/ksh; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL=/bin/ksh
618 export CONFIG_SHELL
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620 else
621 # Try using printf.
622 ECHO='printf %s\n'
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
626 # Cool, printf works
627 :
628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633 export CONFIG_SHELL
634 SHELL="$CONFIG_SHELL"
635 export SHELL
636 ECHO="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
642 else
643 # maybe with a smaller string...
644 prev=:
645
646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648 then
649 break
650 fi
651 prev="$cmd"
652 done
653
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658 else
659 # Oops. We lost completely, so just stick with echo.
660 ECHO=echo
661 fi
662 fi
663 fi
664 fi
665 fi
666 fi
667
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
674
675
676
677
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME=
700 PACKAGE_TARNAME=
701 PACKAGE_VERSION=
702 PACKAGE_STRING=
703 PACKAGE_BUGREPORT=
704 PACKAGE_URL=
705
706 ac_unique_file="README"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 # include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 # include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
742
743 ac_header_list=
744 ac_subst_vars='LTLIBOBJS
745 RCPATH
746 ICONV_CFLAGS
747 LIBOBJS
748 LTVERSION
749 LEXLIB
750 LEX_OUTPUT_ROOT
751 LEX
752 CXXCPP
753 CPP
754 OTOOL64
755 OTOOL
756 LIPO
757 NMEDIT
758 DSYMUTIL
759 lt_ECHO
760 RANLIB
761 AR
762 OBJDUMP
763 LN_S
764 NM
765 ac_ct_DUMPBIN
766 DUMPBIN
767 LD
768 FGREP
769 EGREP
770 GREP
771 SED
772 host_os
773 host_vendor
774 host_cpu
775 host
776 build_os
777 build_vendor
778 build_cpu
779 build
780 LIBTOOL
781 am__fastdepCXX_FALSE
782 am__fastdepCXX_TRUE
783 CXXDEPMODE
784 ac_ct_CXX
785 CXXFLAGS
786 CXX
787 am__fastdepCC_FALSE
788 am__fastdepCC_TRUE
789 CCDEPMODE
790 AMDEPBACKSLASH
791 AMDEP_FALSE
792 AMDEP_TRUE
793 am__quote
794 am__include
795 DEPDIR
796 OBJEXT
797 EXEEXT
798 ac_ct_CC
799 CPPFLAGS
800 LDFLAGS
801 CFLAGS
802 CC
803 MAINT
804 MAINTAINER_MODE_FALSE
805 MAINTAINER_MODE_TRUE
806 am__leading_dot
807 SET_MAKE
808 AWK
809 INSTALL_STRIP_PROGRAM
810 STRIP
811 install_sh
812 AMTAR
813 MAKEINFO
814 AUTOHEADER
815 AUTOMAKE
816 AUTOCONF
817 ACLOCAL
818 VERSION
819 PACKAGE
820 CYGPATH_W
821 INSTALL_DATA
822 INSTALL_SCRIPT
823 INSTALL_PROGRAM
824 target_alias
825 host_alias
826 build_alias
827 LIBS
828 ECHO_T
829 ECHO_N
830 ECHO_C
831 DEFS
832 mandir
833 localedir
834 libdir
835 psdir
836 pdfdir
837 dvidir
838 htmldir
839 infodir
840 docdir
841 oldincludedir
842 includedir
843 localstatedir
844 sharedstatedir
845 sysconfdir
846 datadir
847 datarootdir
848 libexecdir
849 sbindir
850 bindir
851 program_transform_name
852 prefix
853 exec_prefix
854 PACKAGE_URL
855 PACKAGE_BUGREPORT
856 PACKAGE_STRING
857 PACKAGE_VERSION
858 PACKAGE_TARNAME
859 PACKAGE_NAME
860 PATH_SEPARATOR
861 SHELL'
862 ac_subst_files=''
863 ac_user_opts='
864 enable_option_checking
865 enable_maintainer_mode
866 enable_dependency_tracking
867 enable_shared
868 enable_static
869 with_pic
870 enable_fast_install
871 with_gnu_ld
872 enable_libtool_lock
873 with_darts
874 with_libiconv
875 '
876 ac_precious_vars='build_alias
877 host_alias
878 target_alias
879 CC
880 CFLAGS
881 LDFLAGS
882 LIBS
883 CPPFLAGS
884 CXX
885 CXXFLAGS
886 CCC
887 CPP
888 CXXCPP'
889
890
891 # Initialize some variables set by options.
892 ac_init_help=
893 ac_init_version=false
894 ac_unrecognized_opts=
895 ac_unrecognized_sep=
896 # The variables have the same names as the options, with
897 # dashes changed to underlines.
898 cache_file=/dev/null
899 exec_prefix=NONE
900 no_create=
901 no_recursion=
902 prefix=NONE
903 program_prefix=NONE
904 program_suffix=NONE
905 program_transform_name=s,x,x,
906 silent=
907 site=
908 srcdir=
909 verbose=
910 x_includes=NONE
911 x_libraries=NONE
912
913 # Installation directory options.
914 # These are left unexpanded so users can "make install exec_prefix=/foo"
915 # and all the variables that are supposed to be based on exec_prefix
916 # by default will actually change.
917 # Use braces instead of parens because sh, perl, etc. also accept them.
918 # (The list follows the same order as the GNU Coding Standards.)
919 bindir='${exec_prefix}/bin'
920 sbindir='${exec_prefix}/sbin'
921 libexecdir='${exec_prefix}/libexec'
922 datarootdir='${prefix}/share'
923 datadir='${datarootdir}'
924 sysconfdir='${prefix}/etc'
925 sharedstatedir='${prefix}/com'
926 localstatedir='${prefix}/var'
927 includedir='${prefix}/include'
928 oldincludedir='/usr/include'
929 docdir='${datarootdir}/doc/${PACKAGE}'
930 infodir='${datarootdir}/info'
931 htmldir='${docdir}'
932 dvidir='${docdir}'
933 pdfdir='${docdir}'
934 psdir='${docdir}'
935 libdir='${exec_prefix}/lib'
936 localedir='${datarootdir}/locale'
937 mandir='${datarootdir}/man'
938
939 ac_prev=
940 ac_dashdash=
941 for ac_option
942 do
943 # If the previous option needs an argument, assign it.
944 if test -n "$ac_prev"; then
945 eval $ac_prev=\$ac_option
946 ac_prev=
947 continue
948 fi
949
950 case $ac_option in
951 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952 *=) ac_optarg= ;;
953 *) ac_optarg=yes ;;
954 esac
955
956 # Accept the important Cygnus configure options, so we can diagnose typos.
957
958 case $ac_dashdash$ac_option in
959 --)
960 ac_dashdash=yes ;;
961
962 -bindir | --bindir | --bindi | --bind | --bin | --bi)
963 ac_prev=bindir ;;
964 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965 bindir=$ac_optarg ;;
966
967 -build | --build | --buil | --bui | --bu)
968 ac_prev=build_alias ;;
969 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970 build_alias=$ac_optarg ;;
971
972 -cache-file | --cache-file | --cache-fil | --cache-fi \
973 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974 ac_prev=cache_file ;;
975 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
977 cache_file=$ac_optarg ;;
978
979 --config-cache | -C)
980 cache_file=config.cache ;;
981
982 -datadir | --datadir | --datadi | --datad)
983 ac_prev=datadir ;;
984 -datadir=* | --datadir=* | --datadi=* | --datad=*)
985 datadir=$ac_optarg ;;
986
987 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
988 | --dataroo | --dataro | --datar)
989 ac_prev=datarootdir ;;
990 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
991 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
992 datarootdir=$ac_optarg ;;
993
994 -disable-* | --disable-*)
995 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998 as_fn_error $? "invalid feature name: $ac_useropt"
999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1002 *"
1003 "enable_$ac_useropt"
1004 "*) ;;
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1007 esac
1008 eval enable_$ac_useropt=no ;;
1009
1010 -docdir | --docdir | --docdi | --doc | --do)
1011 ac_prev=docdir ;;
1012 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1013 docdir=$ac_optarg ;;
1014
1015 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1016 ac_prev=dvidir ;;
1017 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1018 dvidir=$ac_optarg ;;
1019
1020 -enable-* | --enable-*)
1021 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024 as_fn_error $? "invalid feature name: $ac_useropt"
1025 ac_useropt_orig=$ac_useropt
1026 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027 case $ac_user_opts in
1028 *"
1029 "enable_$ac_useropt"
1030 "*) ;;
1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1032 ac_unrecognized_sep=', ';;
1033 esac
1034 eval enable_$ac_useropt=\$ac_optarg ;;
1035
1036 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038 | --exec | --exe | --ex)
1039 ac_prev=exec_prefix ;;
1040 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042 | --exec=* | --exe=* | --ex=*)
1043 exec_prefix=$ac_optarg ;;
1044
1045 -gas | --gas | --ga | --g)
1046 # Obsolete; use --with-gas.
1047 with_gas=yes ;;
1048
1049 -help | --help | --hel | --he | -h)
1050 ac_init_help=long ;;
1051 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052 ac_init_help=recursive ;;
1053 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054 ac_init_help=short ;;
1055
1056 -host | --host | --hos | --ho)
1057 ac_prev=host_alias ;;
1058 -host=* | --host=* | --hos=* | --ho=*)
1059 host_alias=$ac_optarg ;;
1060
1061 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062 ac_prev=htmldir ;;
1063 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064 | --ht=*)
1065 htmldir=$ac_optarg ;;
1066
1067 -includedir | --includedir | --includedi | --included | --include \
1068 | --includ | --inclu | --incl | --inc)
1069 ac_prev=includedir ;;
1070 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071 | --includ=* | --inclu=* | --incl=* | --inc=*)
1072 includedir=$ac_optarg ;;
1073
1074 -infodir | --infodir | --infodi | --infod | --info | --inf)
1075 ac_prev=infodir ;;
1076 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077 infodir=$ac_optarg ;;
1078
1079 -libdir | --libdir | --libdi | --libd)
1080 ac_prev=libdir ;;
1081 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082 libdir=$ac_optarg ;;
1083
1084 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085 | --libexe | --libex | --libe)
1086 ac_prev=libexecdir ;;
1087 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088 | --libexe=* | --libex=* | --libe=*)
1089 libexecdir=$ac_optarg ;;
1090
1091 -localedir | --localedir | --localedi | --localed | --locale)
1092 ac_prev=localedir ;;
1093 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094 localedir=$ac_optarg ;;
1095
1096 -localstatedir | --localstatedir | --localstatedi | --localstated \
1097 | --localstate | --localstat | --localsta | --localst | --locals)
1098 ac_prev=localstatedir ;;
1099 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1100 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1101 localstatedir=$ac_optarg ;;
1102
1103 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104 ac_prev=mandir ;;
1105 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106 mandir=$ac_optarg ;;
1107
1108 -nfp | --nfp | --nf)
1109 # Obsolete; use --without-fp.
1110 with_fp=no ;;
1111
1112 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113 | --no-cr | --no-c | -n)
1114 no_create=yes ;;
1115
1116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118 no_recursion=yes ;;
1119
1120 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122 | --oldin | --oldi | --old | --ol | --o)
1123 ac_prev=oldincludedir ;;
1124 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1127 oldincludedir=$ac_optarg ;;
1128
1129 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130 ac_prev=prefix ;;
1131 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132 prefix=$ac_optarg ;;
1133
1134 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135 | --program-pre | --program-pr | --program-p)
1136 ac_prev=program_prefix ;;
1137 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1139 program_prefix=$ac_optarg ;;
1140
1141 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142 | --program-suf | --program-su | --program-s)
1143 ac_prev=program_suffix ;;
1144 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1146 program_suffix=$ac_optarg ;;
1147
1148 -program-transform-name | --program-transform-name \
1149 | --program-transform-nam | --program-transform-na \
1150 | --program-transform-n | --program-transform- \
1151 | --program-transform | --program-transfor \
1152 | --program-transfo | --program-transf \
1153 | --program-trans | --program-tran \
1154 | --progr-tra | --program-tr | --program-t)
1155 ac_prev=program_transform_name ;;
1156 -program-transform-name=* | --program-transform-name=* \
1157 | --program-transform-nam=* | --program-transform-na=* \
1158 | --program-transform-n=* | --program-transform-=* \
1159 | --program-transform=* | --program-transfor=* \
1160 | --program-transfo=* | --program-transf=* \
1161 | --program-trans=* | --program-tran=* \
1162 | --progr-tra=* | --program-tr=* | --program-t=*)
1163 program_transform_name=$ac_optarg ;;
1164
1165 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166 ac_prev=pdfdir ;;
1167 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168 pdfdir=$ac_optarg ;;
1169
1170 -psdir | --psdir | --psdi | --psd | --ps)
1171 ac_prev=psdir ;;
1172 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173 psdir=$ac_optarg ;;
1174
1175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176 | -silent | --silent | --silen | --sile | --sil)
1177 silent=yes ;;
1178
1179 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180 ac_prev=sbindir ;;
1181 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182 | --sbi=* | --sb=*)
1183 sbindir=$ac_optarg ;;
1184
1185 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187 | --sharedst | --shareds | --shared | --share | --shar \
1188 | --sha | --sh)
1189 ac_prev=sharedstatedir ;;
1190 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193 | --sha=* | --sh=*)
1194 sharedstatedir=$ac_optarg ;;
1195
1196 -site | --site | --sit)
1197 ac_prev=site ;;
1198 -site=* | --site=* | --sit=*)
1199 site=$ac_optarg ;;
1200
1201 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202 ac_prev=srcdir ;;
1203 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204 srcdir=$ac_optarg ;;
1205
1206 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207 | --syscon | --sysco | --sysc | --sys | --sy)
1208 ac_prev=sysconfdir ;;
1209 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1211 sysconfdir=$ac_optarg ;;
1212
1213 -target | --target | --targe | --targ | --tar | --ta | --t)
1214 ac_prev=target_alias ;;
1215 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1216 target_alias=$ac_optarg ;;
1217
1218 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1219 verbose=yes ;;
1220
1221 -version | --version | --versio | --versi | --vers | -V)
1222 ac_init_version=: ;;
1223
1224 -with-* | --with-*)
1225 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228 as_fn_error $? "invalid package name: $ac_useropt"
1229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1232 *"
1233 "with_$ac_useropt"
1234 "*) ;;
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1237 esac
1238 eval with_$ac_useropt=\$ac_optarg ;;
1239
1240 -without-* | --without-*)
1241 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244 as_fn_error $? "invalid package name: $ac_useropt"
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1248 *"
1249 "with_$ac_useropt"
1250 "*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1253 esac
1254 eval with_$ac_useropt=no ;;
1255
1256 --x)
1257 # Obsolete; use --with-x.
1258 with_x=yes ;;
1259
1260 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261 | --x-incl | --x-inc | --x-in | --x-i)
1262 ac_prev=x_includes ;;
1263 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1265 x_includes=$ac_optarg ;;
1266
1267 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269 ac_prev=x_libraries ;;
1270 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1272 x_libraries=$ac_optarg ;;
1273
1274 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1275 Try \`$0 --help' for more information"
1276 ;;
1277
1278 *=*)
1279 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280 # Reject names that are not valid shell variable names.
1281 case $ac_envvar in #(
1282 '' | [0-9]* | *[!_$as_cr_alnum]* )
1283 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1284 esac
1285 eval $ac_envvar=\$ac_optarg
1286 export $ac_envvar ;;
1287
1288 *)
1289 # FIXME: should be removed in autoconf 3.0.
1290 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1291 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1293 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1294 ;;
1295
1296 esac
1297 done
1298
1299 if test -n "$ac_prev"; then
1300 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1301 as_fn_error $? "missing argument to $ac_option"
1302 fi
1303
1304 if test -n "$ac_unrecognized_opts"; then
1305 case $enable_option_checking in
1306 no) ;;
1307 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1308 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1309 esac
1310 fi
1311
1312 # Check all directory arguments for consistency.
1313 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314 datadir sysconfdir sharedstatedir localstatedir includedir \
1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316 libdir localedir mandir
1317 do
1318 eval ac_val=\$$ac_var
1319 # Remove trailing slashes.
1320 case $ac_val in
1321 */ )
1322 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1323 eval $ac_var=\$ac_val;;
1324 esac
1325 # Be sure to have absolute directory names.
1326 case $ac_val in
1327 [\\/$]* | ?:[\\/]* ) continue;;
1328 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1329 esac
1330 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1331 done
1332
1333 # There might be people who depend on the old broken behavior: `$host'
1334 # used to hold the argument of --host etc.
1335 # FIXME: To remove some day.
1336 build=$build_alias
1337 host=$host_alias
1338 target=$target_alias
1339
1340 # FIXME: To remove some day.
1341 if test "x$host_alias" != x; then
1342 if test "x$build_alias" = x; then
1343 cross_compiling=maybe
1344 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1345 If a cross compiler is detected then cross compile mode will be used" >&2
1346 elif test "x$build_alias" != "x$host_alias"; then
1347 cross_compiling=yes
1348 fi
1349 fi
1350
1351 ac_tool_prefix=
1352 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1353
1354 test "$silent" = yes && exec 6>/dev/null
1355
1356
1357 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1358 ac_ls_di=`ls -di .` &&
1359 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1360 as_fn_error $? "working directory cannot be determined"
1361 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1362 as_fn_error $? "pwd does not report name of working directory"
1363
1364
1365 # Find the source files, if location was not specified.
1366 if test -z "$srcdir"; then
1367 ac_srcdir_defaulted=yes
1368 # Try the directory containing this script, then the parent directory.
1369 ac_confdir=`$as_dirname -- "$as_myself" ||
1370 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1371 X"$as_myself" : 'X\(//\)[^/]' \| \
1372 X"$as_myself" : 'X\(//\)$' \| \
1373 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1374 $as_echo X"$as_myself" |
1375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376 s//\1/
1377 q
1378 }
1379 /^X\(\/\/\)[^/].*/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\/\)$/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\).*/{
1388 s//\1/
1389 q
1390 }
1391 s/.*/./; q'`
1392 srcdir=$ac_confdir
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1394 srcdir=..
1395 fi
1396 else
1397 ac_srcdir_defaulted=no
1398 fi
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1401 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1402 fi
1403 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1404 ac_abs_confdir=`(
1405 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1406 pwd)`
1407 # When building in place, set srcdir=.
1408 if test "$ac_abs_confdir" = "$ac_pwd"; then
1409 srcdir=.
1410 fi
1411 # Remove unnecessary trailing slashes from srcdir.
1412 # Double slashes in file names in object file debugging info
1413 # mess up M-x gdb in Emacs.
1414 case $srcdir in
1415 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1416 esac
1417 for ac_var in $ac_precious_vars; do
1418 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_env_${ac_var}_value=\$${ac_var}
1420 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1422 done
1423
1424 #
1425 # Report the --help message.
1426 #
1427 if test "$ac_init_help" = "long"; then
1428 # Omit some internal or obsolete options to make the list less imposing.
1429 # This message is too long to be a string in the A/UX 3.1 sh.
1430 cat <<_ACEOF
1431 \`configure' configures this package to adapt to many kinds of systems.
1432
1433 Usage: $0 [OPTION]... [VAR=VALUE]...
1434
1435 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1436 VAR=VALUE. See below for descriptions of some of the useful variables.
1437
1438 Defaults for the options are specified in brackets.
1439
1440 Configuration:
1441 -h, --help display this help and exit
1442 --help=short display options specific to this package
1443 --help=recursive display the short help of all the included packages
1444 -V, --version display version information and exit
1445 -q, --quiet, --silent do not print \`checking ...' messages
1446 --cache-file=FILE cache test results in FILE [disabled]
1447 -C, --config-cache alias for \`--cache-file=config.cache'
1448 -n, --no-create do not create output files
1449 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1450
1451 Installation directories:
1452 --prefix=PREFIX install architecture-independent files in PREFIX
1453 [$ac_default_prefix]
1454 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1455 [PREFIX]
1456
1457 By default, \`make install' will install all the files in
1458 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1459 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1460 for instance \`--prefix=\$HOME'.
1461
1462 For better control, use the options below.
1463
1464 Fine tuning of the installation directories:
1465 --bindir=DIR user executables [EPREFIX/bin]
1466 --sbindir=DIR system admin executables [EPREFIX/sbin]
1467 --libexecdir=DIR program executables [EPREFIX/libexec]
1468 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1469 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1470 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1471 --libdir=DIR object code libraries [EPREFIX/lib]
1472 --includedir=DIR C header files [PREFIX/include]
1473 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1474 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1475 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1476 --infodir=DIR info documentation [DATAROOTDIR/info]
1477 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1478 --mandir=DIR man documentation [DATAROOTDIR/man]
1479 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1480 --htmldir=DIR html documentation [DOCDIR]
1481 --dvidir=DIR dvi documentation [DOCDIR]
1482 --pdfdir=DIR pdf documentation [DOCDIR]
1483 --psdir=DIR ps documentation [DOCDIR]
1484 _ACEOF
1485
1486 cat <<\_ACEOF
1487
1488 Program names:
1489 --program-prefix=PREFIX prepend PREFIX to installed program names
1490 --program-suffix=SUFFIX append SUFFIX to installed program names
1491 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1492
1493 System types:
1494 --build=BUILD configure for building on BUILD [guessed]
1495 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1496 _ACEOF
1497 fi
1498
1499 if test -n "$ac_init_help"; then
1500
1501 cat <<\_ACEOF
1502
1503 Optional Features:
1504 --disable-option-checking ignore unrecognized --enable/--with options
1505 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1506 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1507 --enable-maintainer-mode enable make rules and dependencies not useful
1508 (and sometimes confusing) to the casual installer
1509 --disable-dependency-tracking Speeds up one-time builds
1510 --enable-dependency-tracking Do not reject slow dependency extractors
1511 --enable-shared[=PKGS] build shared libraries [default=yes]
1512 --enable-static[=PKGS] build static libraries [default=yes]
1513 --enable-fast-install[=PKGS]
1514 optimize for fast installation [default=yes]
1515 --disable-libtool-lock avoid locking (might break parallel builds)
1516
1517 Optional Packages:
1518 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1519 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1520 --with-pic try to use only PIC/non-PIC objects [default=use
1521 both]
1522 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1523 --with-darts=DIR specify a path for the header file of Darts
1524 --with-libiconv=DIR use libiconv in DIR
1525
1526 Some influential environment variables:
1527 CC C compiler command
1528 CFLAGS C compiler flags
1529 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1530 nonstandard directory <lib dir>
1531 LIBS libraries to pass to the linker, e.g. -l<library>
1532 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1533 you have headers in a nonstandard directory <include dir>
1534 CXX C++ compiler command
1535 CXXFLAGS C++ compiler flags
1536 CPP C preprocessor
1537 CXXCPP C++ preprocessor
1538
1539 Use these variables to override the choices made by `configure' or to help
1540 it to find libraries and programs with nonstandard names/locations.
1541
1542 Report bugs to the package provider.
1543 _ACEOF
1544 ac_status=$?
1545 fi
1546
1547 if test "$ac_init_help" = "recursive"; then
1548 # If there are subdirs, report their specific --help.
1549 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550 test -d "$ac_dir" ||
1551 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1552 continue
1553 ac_builddir=.
1554
1555 case "$ac_dir" in
1556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *)
1558 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1559 # A ".." for each directory in $ac_dir_suffix.
1560 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1561 case $ac_top_builddir_sub in
1562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564 esac ;;
1565 esac
1566 ac_abs_top_builddir=$ac_pwd
1567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568 # for backward compatibility:
1569 ac_top_builddir=$ac_top_build_prefix
1570
1571 case $srcdir in
1572 .) # We are building in place.
1573 ac_srcdir=.
1574 ac_top_srcdir=$ac_top_builddir_sub
1575 ac_abs_top_srcdir=$ac_pwd ;;
1576 [\\/]* | ?:[\\/]* ) # Absolute name.
1577 ac_srcdir=$srcdir$ac_dir_suffix;
1578 ac_top_srcdir=$srcdir
1579 ac_abs_top_srcdir=$srcdir ;;
1580 *) # Relative name.
1581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582 ac_top_srcdir=$ac_top_build_prefix$srcdir
1583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1584 esac
1585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1586
1587 cd "$ac_dir" || { ac_status=$?; continue; }
1588 # Check for guested configure.
1589 if test -f "$ac_srcdir/configure.gnu"; then
1590 echo &&
1591 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592 elif test -f "$ac_srcdir/configure"; then
1593 echo &&
1594 $SHELL "$ac_srcdir/configure" --help=recursive
1595 else
1596 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1597 fi || ac_status=$?
1598 cd "$ac_pwd" || { ac_status=$?; break; }
1599 done
1600 fi
1601
1602 test -n "$ac_init_help" && exit $ac_status
1603 if $ac_init_version; then
1604 cat <<\_ACEOF
1605 configure
1606 generated by GNU Autoconf 2.67
1607
1608 Copyright (C) 2010 Free Software Foundation, Inc.
1609 This configure script is free software; the Free Software Foundation
1610 gives unlimited permission to copy, distribute and modify it.
1611 _ACEOF
1612 exit
1613 fi
1614
1615 ## ------------------------ ##
1616 ## Autoconf initialization. ##
1617 ## ------------------------ ##
1618
1619 # ac_fn_c_try_compile LINENO
1620 # --------------------------
1621 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_compile ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext
1626 if { { ac_try="$ac_compile"
1627 case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_compile") 2>conftest.err
1634 ac_status=$?
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1639 fi
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_c_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest.$ac_objext; then :
1645 ac_retval=0
1646 else
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1649
1650 ac_retval=1
1651 fi
1652 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1653 as_fn_set_status $ac_retval
1654
1655 } # ac_fn_c_try_compile
1656
1657 # ac_fn_cxx_try_compile LINENO
1658 # ----------------------------
1659 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_cxx_try_compile ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext
1664 if { { ac_try="$ac_compile"
1665 case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_compile") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_cxx_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest.$ac_objext; then :
1683 ac_retval=0
1684 else
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1
1689 fi
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1691 as_fn_set_status $ac_retval
1692
1693 } # ac_fn_cxx_try_compile
1694
1695 # ac_fn_c_try_link LINENO
1696 # -----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded.
1698 ac_fn_c_try_link ()
1699 {
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 rm -f conftest.$ac_objext conftest$ac_exeext
1702 if { { ac_try="$ac_link"
1703 case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>conftest.err
1710 ac_status=$?
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1715 fi
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest$ac_exeext && {
1721 test "$cross_compiling" = yes ||
1722 $as_test_x conftest$ac_exeext
1723 }; then :
1724 ac_retval=0
1725 else
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=1
1730 fi
1731 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733 # interfere with the next link command; also delete a directory that is
1734 # left behind by Apple's compiler. We do this before executing the actions.
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1737 as_fn_set_status $ac_retval
1738
1739 } # ac_fn_c_try_link
1740
1741 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1742 # -------------------------------------------------------
1743 # Tests whether HEADER exists and can be compiled using the include files in
1744 # INCLUDES, setting the cache variable VAR accordingly.
1745 ac_fn_c_check_header_compile ()
1746 {
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749 $as_echo_n "checking for $2... " >&6; }
1750 if eval "test \"\${$3+set}\"" = set; then :
1751 $as_echo_n "(cached) " >&6
1752 else
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1755 $4
1756 #include <$2>
1757 _ACEOF
1758 if ac_fn_c_try_compile "$LINENO"; then :
1759 eval "$3=yes"
1760 else
1761 eval "$3=no"
1762 fi
1763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764 fi
1765 eval ac_res=\$$3
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 $as_echo "$ac_res" >&6; }
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769
1770 } # ac_fn_c_check_header_compile
1771
1772 # ac_fn_c_try_cpp LINENO
1773 # ----------------------
1774 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1775 ac_fn_c_try_cpp ()
1776 {
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if { { ac_try="$ac_cpp conftest.$ac_ext"
1779 case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1786 ac_status=$?
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1791 fi
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } > conftest.i && {
1794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1795 test ! -s conftest.err
1796 }; then :
1797 ac_retval=0
1798 else
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1801
1802 ac_retval=1
1803 fi
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805 as_fn_set_status $ac_retval
1806
1807 } # ac_fn_c_try_cpp
1808
1809 # ac_fn_c_try_run LINENO
1810 # ----------------------
1811 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1812 # that executables *can* be run.
1813 ac_fn_c_try_run ()
1814 {
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 if { { ac_try="$ac_link"
1817 case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_link") 2>&5
1824 ac_status=$?
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1827 { { case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_try") 2>&5
1834 ac_status=$?
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; }; }; then :
1837 ac_retval=0
1838 else
1839 $as_echo "$as_me: program exited with status $ac_status" >&5
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1842
1843 ac_retval=$ac_status
1844 fi
1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 as_fn_set_status $ac_retval
1848
1849 } # ac_fn_c_try_run
1850
1851 # ac_fn_c_check_func LINENO FUNC VAR
1852 # ----------------------------------
1853 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1854 ac_fn_c_check_func ()
1855 {
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if eval "test \"\${$3+set}\"" = set; then :
1860 $as_echo_n "(cached) " >&6
1861 else
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1864 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1866 #define $2 innocuous_$2
1867
1868 /* System header to define __stub macros and hopefully few prototypes,
1869 which can conflict with char $2 (); below.
1870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1871 <limits.h> exists even on freestanding compilers. */
1872
1873 #ifdef __STDC__
1874 # include <limits.h>
1875 #else
1876 # include <assert.h>
1877 #endif
1878
1879 #undef $2
1880
1881 /* Override any GCC internal prototype to avoid an error.
1882 Use char because int might match the return type of a GCC
1883 builtin and then its argument prototype would still apply. */
1884 #ifdef __cplusplus
1885 extern "C"
1886 #endif
1887 char $2 ();
1888 /* The GNU C library defines this for functions which it implements
1889 to always fail with ENOSYS. Some functions are actually named
1890 something starting with __ and the normal name is an alias. */
1891 #if defined __stub_$2 || defined __stub___$2
1892 choke me
1893 #endif
1894
1895 int
1896 main ()
1897 {
1898 return $2 ();
1899 ;
1900 return 0;
1901 }
1902 _ACEOF
1903 if ac_fn_c_try_link "$LINENO"; then :
1904 eval "$3=yes"
1905 else
1906 eval "$3=no"
1907 fi
1908 rm -f core conftest.err conftest.$ac_objext \
1909 conftest$ac_exeext conftest.$ac_ext
1910 fi
1911 eval ac_res=\$$3
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1914 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1915
1916 } # ac_fn_c_check_func
1917
1918 # ac_fn_cxx_try_cpp LINENO
1919 # ------------------------
1920 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1921 ac_fn_cxx_try_cpp ()
1922 {
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if { { ac_try="$ac_cpp conftest.$ac_ext"
1925 case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1932 ac_status=$?
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1937 fi
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } > conftest.i && {
1940 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1941 test ! -s conftest.err
1942 }; then :
1943 ac_retval=0
1944 else
1945 $as_echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1947
1948 ac_retval=1
1949 fi
1950 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951 as_fn_set_status $ac_retval
1952
1953 } # ac_fn_cxx_try_cpp
1954
1955 # ac_fn_cxx_try_link LINENO
1956 # -------------------------
1957 # Try to link conftest.$ac_ext, and return whether this succeeded.
1958 ac_fn_cxx_try_link ()
1959 {
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 rm -f conftest.$ac_objext conftest$ac_exeext
1962 if { { ac_try="$ac_link"
1963 case "(($ac_try" in
1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965 *) ac_try_echo=$ac_try;;
1966 esac
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 $as_echo "$ac_try_echo"; } >&5
1969 (eval "$ac_link") 2>conftest.err
1970 ac_status=$?
1971 if test -s conftest.err; then
1972 grep -v '^ *+' conftest.err >conftest.er1
1973 cat conftest.er1 >&5
1974 mv -f conftest.er1 conftest.err
1975 fi
1976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977 test $ac_status = 0; } && {
1978 test -z "$ac_cxx_werror_flag" ||
1979 test ! -s conftest.err
1980 } && test -s conftest$ac_exeext && {
1981 test "$cross_compiling" = yes ||
1982 $as_test_x conftest$ac_exeext
1983 }; then :
1984 ac_retval=0
1985 else
1986 $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1988
1989 ac_retval=1
1990 fi
1991 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1992 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1993 # interfere with the next link command; also delete a directory that is
1994 # left behind by Apple's compiler. We do this before executing the actions.
1995 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1996 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997 as_fn_set_status $ac_retval
1998
1999 } # ac_fn_cxx_try_link
2000
2001 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2002 # -------------------------------------------------------
2003 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2004 # the include files in INCLUDES and setting the cache variable VAR
2005 # accordingly.
2006 ac_fn_c_check_header_mongrel ()
2007 {
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 if eval "test \"\${$3+set}\"" = set; then :
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2011 $as_echo_n "checking for $2... " >&6; }
2012 if eval "test \"\${$3+set}\"" = set; then :
2013 $as_echo_n "(cached) " >&6
2014 fi
2015 eval ac_res=\$$3
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 $as_echo "$ac_res" >&6; }
2018 else
2019 # Is the header compilable?
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2021 $as_echo_n "checking $2 usability... " >&6; }
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2024 $4
2025 #include <$2>
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028 ac_header_compiler=yes
2029 else
2030 ac_header_compiler=no
2031 fi
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2034 $as_echo "$ac_header_compiler" >&6; }
2035
2036 # Is the header present?
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2038 $as_echo_n "checking $2 presence... " >&6; }
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2041 #include <$2>
2042 _ACEOF
2043 if ac_fn_c_try_cpp "$LINENO"; then :
2044 ac_header_preproc=yes
2045 else
2046 ac_header_preproc=no
2047 fi
2048 rm -f conftest.err conftest.i conftest.$ac_ext
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2050 $as_echo "$ac_header_preproc" >&6; }
2051
2052 # So? What about this header?
2053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2054 yes:no: )
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2056 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2058 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2059 ;;
2060 no:yes:* )
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2062 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2064 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2066 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2068 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2070 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2071 ;;
2072 esac
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2074 $as_echo_n "checking for $2... " >&6; }
2075 if eval "test \"\${$3+set}\"" = set; then :
2076 $as_echo_n "(cached) " >&6
2077 else
2078 eval "$3=\$ac_header_compiler"
2079 fi
2080 eval ac_res=\$$3
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082 $as_echo "$ac_res" >&6; }
2083 fi
2084 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2085
2086 } # ac_fn_c_check_header_mongrel
2087
2088 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2089 # -------------------------------------------
2090 # Tests whether TYPE exists after having included INCLUDES, setting cache
2091 # variable VAR accordingly.
2092 ac_fn_c_check_type ()
2093 {
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2096 $as_echo_n "checking for $2... " >&6; }
2097 if eval "test \"\${$3+set}\"" = set; then :
2098 $as_echo_n "(cached) " >&6
2099 else
2100 eval "$3=no"
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2103 $4
2104 int
2105 main ()
2106 {
2107 if (sizeof ($2))
2108 return 0;
2109 ;
2110 return 0;
2111 }
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2116 $4
2117 int
2118 main ()
2119 {
2120 if (sizeof (($2)))
2121 return 0;
2122 ;
2123 return 0;
2124 }
2125 _ACEOF
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127
2128 else
2129 eval "$3=yes"
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 fi
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 fi
2135 eval ac_res=\$$3
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137 $as_echo "$ac_res" >&6; }
2138 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2139
2140 } # ac_fn_c_check_type
2141 cat >config.log <<_ACEOF
2142 This file contains any messages produced by compilers while
2143 running configure, to aid debugging if configure makes a mistake.
2144
2145 It was created by $as_me, which was
2146 generated by GNU Autoconf 2.67. Invocation command line was
2147
2148 $ $0 $@
2149
2150 _ACEOF
2151 exec 5>>config.log
2152 {
2153 cat <<_ASUNAME
2154 ## --------- ##
2155 ## Platform. ##
2156 ## --------- ##
2157
2158 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2159 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2160 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2161 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2162 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2163
2164 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2165 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2166
2167 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2168 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2169 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2170 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2171 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2172 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2173 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2174
2175 _ASUNAME
2176
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2179 do
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 $as_echo "PATH: $as_dir"
2183 done
2184 IFS=$as_save_IFS
2185
2186 } >&5
2187
2188 cat >&5 <<_ACEOF
2189
2190
2191 ## ----------- ##
2192 ## Core tests. ##
2193 ## ----------- ##
2194
2195 _ACEOF
2196
2197
2198 # Keep a trace of the command line.
2199 # Strip out --no-create and --no-recursion so they do not pile up.
2200 # Strip out --silent because we don't want to record it for future runs.
2201 # Also quote any args containing shell meta-characters.
2202 # Make two passes to allow for proper duplicate-argument suppression.
2203 ac_configure_args=
2204 ac_configure_args0=
2205 ac_configure_args1=
2206 ac_must_keep_next=false
2207 for ac_pass in 1 2
2208 do
2209 for ac_arg
2210 do
2211 case $ac_arg in
2212 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2214 | -silent | --silent | --silen | --sile | --sil)
2215 continue ;;
2216 *\'*)
2217 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2218 esac
2219 case $ac_pass in
2220 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2221 2)
2222 as_fn_append ac_configure_args1 " '$ac_arg'"
2223 if test $ac_must_keep_next = true; then
2224 ac_must_keep_next=false # Got value, back to normal.
2225 else
2226 case $ac_arg in
2227 *=* | --config-cache | -C | -disable-* | --disable-* \
2228 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2229 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2230 | -with-* | --with-* | -without-* | --without-* | --x)
2231 case "$ac_configure_args0 " in
2232 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2233 esac
2234 ;;
2235 -* ) ac_must_keep_next=true ;;
2236 esac
2237 fi
2238 as_fn_append ac_configure_args " '$ac_arg'"
2239 ;;
2240 esac
2241 done
2242 done
2243 { ac_configure_args0=; unset ac_configure_args0;}
2244 { ac_configure_args1=; unset ac_configure_args1;}
2245
2246 # When interrupted or exit'd, cleanup temporary files, and complete
2247 # config.log. We remove comments because anyway the quotes in there
2248 # would cause problems or look ugly.
2249 # WARNING: Use '\'' to represent an apostrophe within the trap.
2250 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2251 trap 'exit_status=$?
2252 # Save into config.log some information that might help in debugging.
2253 {
2254 echo
2255
2256 $as_echo "## ---------------- ##
2257 ## Cache variables. ##
2258 ## ---------------- ##"
2259 echo
2260 # The following way of writing the cache mishandles newlines in values,
2261 (
2262 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2263 eval ac_val=\$$ac_var
2264 case $ac_val in #(
2265 *${as_nl}*)
2266 case $ac_var in #(
2267 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2268 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2269 esac
2270 case $ac_var in #(
2271 _ | IFS | as_nl) ;; #(
2272 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2273 *) { eval $ac_var=; unset $ac_var;} ;;
2274 esac ;;
2275 esac
2276 done
2277 (set) 2>&1 |
2278 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2279 *${as_nl}ac_space=\ *)
2280 sed -n \
2281 "s/'\''/'\''\\\\'\'''\''/g;
2282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2283 ;; #(
2284 *)
2285 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2286 ;;
2287 esac |
2288 sort
2289 )
2290 echo
2291
2292 $as_echo "## ----------------- ##
2293 ## Output variables. ##
2294 ## ----------------- ##"
2295 echo
2296 for ac_var in $ac_subst_vars
2297 do
2298 eval ac_val=\$$ac_var
2299 case $ac_val in
2300 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2301 esac
2302 $as_echo "$ac_var='\''$ac_val'\''"
2303 done | sort
2304 echo
2305
2306 if test -n "$ac_subst_files"; then
2307 $as_echo "## ------------------- ##
2308 ## File substitutions. ##
2309 ## ------------------- ##"
2310 echo
2311 for ac_var in $ac_subst_files
2312 do
2313 eval ac_val=\$$ac_var
2314 case $ac_val in
2315 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2316 esac
2317 $as_echo "$ac_var='\''$ac_val'\''"
2318 done | sort
2319 echo
2320 fi
2321
2322 if test -s confdefs.h; then
2323 $as_echo "## ----------- ##
2324 ## confdefs.h. ##
2325 ## ----------- ##"
2326 echo
2327 cat confdefs.h
2328 echo
2329 fi
2330 test "$ac_signal" != 0 &&
2331 $as_echo "$as_me: caught signal $ac_signal"
2332 $as_echo "$as_me: exit $exit_status"
2333 } >&5
2334 rm -f core *.core core.conftest.* &&
2335 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2336 exit $exit_status
2337 ' 0
2338 for ac_signal in 1 2 13 15; do
2339 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2340 done
2341 ac_signal=0
2342
2343 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2344 rm -f -r conftest* confdefs.h
2345
2346 $as_echo "/* confdefs.h */" > confdefs.h
2347
2348 # Predefined preprocessor variables.
2349
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_NAME "$PACKAGE_NAME"
2352 _ACEOF
2353
2354 cat >>confdefs.h <<_ACEOF
2355 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2356 _ACEOF
2357
2358 cat >>confdefs.h <<_ACEOF
2359 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2360 _ACEOF
2361
2362 cat >>confdefs.h <<_ACEOF
2363 #define PACKAGE_STRING "$PACKAGE_STRING"
2364 _ACEOF
2365
2366 cat >>confdefs.h <<_ACEOF
2367 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2368 _ACEOF
2369
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_URL "$PACKAGE_URL"
2372 _ACEOF
2373
2374
2375 # Let the site file select an alternate cache file if it wants to.
2376 # Prefer an explicitly selected file to automatically selected ones.
2377 ac_site_file1=NONE
2378 ac_site_file2=NONE
2379 if test -n "$CONFIG_SITE"; then
2380 # We do not want a PATH search for config.site.
2381 case $CONFIG_SITE in #((
2382 -*) ac_site_file1=./$CONFIG_SITE;;
2383 */*) ac_site_file1=$CONFIG_SITE;;
2384 *) ac_site_file1=./$CONFIG_SITE;;
2385 esac
2386 elif test "x$prefix" != xNONE; then
2387 ac_site_file1=$prefix/share/config.site
2388 ac_site_file2=$prefix/etc/config.site
2389 else
2390 ac_site_file1=$ac_default_prefix/share/config.site
2391 ac_site_file2=$ac_default_prefix/etc/config.site
2392 fi
2393 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2394 do
2395 test "x$ac_site_file" = xNONE && continue
2396 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2398 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2399 sed 's/^/| /' "$ac_site_file" >&5
2400 . "$ac_site_file" \
2401 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2403 as_fn_error $? "failed to load site script $ac_site_file
2404 See \`config.log' for more details" "$LINENO" 5 ; }
2405 fi
2406 done
2407
2408 if test -r "$cache_file"; then
2409 # Some versions of bash will fail to source /dev/null (special files
2410 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2411 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2413 $as_echo "$as_me: loading cache $cache_file" >&6;}
2414 case $cache_file in
2415 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2416 *) . "./$cache_file";;
2417 esac
2418 fi
2419 else
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2421 $as_echo "$as_me: creating cache $cache_file" >&6;}
2422 >$cache_file
2423 fi
2424
2425 as_fn_append ac_header_list " stdlib.h"
2426 as_fn_append ac_header_list " unistd.h"
2427 as_fn_append ac_header_list " sys/param.h"
2428 # Check that the precious variables saved in the cache have kept the same
2429 # value.
2430 ac_cache_corrupted=false
2431 for ac_var in $ac_precious_vars; do
2432 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2433 eval ac_new_set=\$ac_env_${ac_var}_set
2434 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2435 eval ac_new_val=\$ac_env_${ac_var}_value
2436 case $ac_old_set,$ac_new_set in
2437 set,)
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2439 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2440 ac_cache_corrupted=: ;;
2441 ,set)
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2443 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2444 ac_cache_corrupted=: ;;
2445 ,);;
2446 *)
2447 if test "x$ac_old_val" != "x$ac_new_val"; then
2448 # differences in whitespace do not lead to failure.
2449 ac_old_val_w=`echo x $ac_old_val`
2450 ac_new_val_w=`echo x $ac_new_val`
2451 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2453 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2454 ac_cache_corrupted=:
2455 else
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2457 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2458 eval $ac_var=\$ac_old_val
2459 fi
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2461 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2463 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2464 fi;;
2465 esac
2466 # Pass precious variables to config.status.
2467 if test "$ac_new_set" = set; then
2468 case $ac_new_val in
2469 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2470 *) ac_arg=$ac_var=$ac_new_val ;;
2471 esac
2472 case " $ac_configure_args " in
2473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2474 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2475 esac
2476 fi
2477 done
2478 if $ac_cache_corrupted; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2482 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2483 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2484 fi
2485 ## -------------------- ##
2486 ## Main body of script. ##
2487 ## -------------------- ##
2488
2489 ac_ext=c
2490 ac_cpp='$CPP $CPPFLAGS'
2491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2494
2495
2496
2497 am__api_version="1.7"
2498 ac_aux_dir=
2499 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2500 if test -f "$ac_dir/install-sh"; then
2501 ac_aux_dir=$ac_dir
2502 ac_install_sh="$ac_aux_dir/install-sh -c"
2503 break
2504 elif test -f "$ac_dir/install.sh"; then
2505 ac_aux_dir=$ac_dir
2506 ac_install_sh="$ac_aux_dir/install.sh -c"
2507 break
2508 elif test -f "$ac_dir/shtool"; then
2509 ac_aux_dir=$ac_dir
2510 ac_install_sh="$ac_aux_dir/shtool install -c"
2511 break
2512 fi
2513 done
2514 if test -z "$ac_aux_dir"; then
2515 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2516 fi
2517
2518 # These three variables are undocumented and unsupported,
2519 # and are intended to be withdrawn in a future Autoconf release.
2520 # They can cause serious problems if a builder's source tree is in a directory
2521 # whose full name contains unusual characters.
2522 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2523 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2524 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2525
2526
2527 # Find a good install program. We prefer a C program (faster),
2528 # so one script is as good as another. But avoid the broken or
2529 # incompatible versions:
2530 # SysV /etc/install, /usr/sbin/install
2531 # SunOS /usr/etc/install
2532 # IRIX /sbin/install
2533 # AIX /bin/install
2534 # AmigaOS /C/install, which installs bootblocks on floppy discs
2535 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2536 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2537 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2538 # OS/2's system install, which has a completely different semantic
2539 # ./install, which can be erroneously created by make from ./install.sh.
2540 # Reject install programs that cannot install multiple files.
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2542 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2543 if test -z "$INSTALL"; then
2544 if test "${ac_cv_path_install+set}" = set; then :
2545 $as_echo_n "(cached) " >&6
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2549 do
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
2552 # Account for people who put trailing slashes in PATH elements.
2553 case $as_dir/ in #((
2554 ./ | .// | /[cC]/* | \
2555 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2556 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2557 /usr/ucb/* ) ;;
2558 *)
2559 # OSF1 and SCO ODT 3.0 have their own names for install.
2560 # Don't use installbsd from OSF since it installs stuff as root
2561 # by default.
2562 for ac_prog in ginstall scoinst install; do
2563 for ac_exec_ext in '' $ac_executable_extensions; do
2564 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2565 if test $ac_prog = install &&
2566 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2567 # AIX install. It has an incompatible calling convention.
2568 :
2569 elif test $ac_prog = install &&
2570 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2571 # program-specific install script used by HP pwplus--don't use.
2572 :
2573 else
2574 rm -rf conftest.one conftest.two conftest.dir
2575 echo one > conftest.one
2576 echo two > conftest.two
2577 mkdir conftest.dir
2578 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2579 test -s conftest.one && test -s conftest.two &&
2580 test -s conftest.dir/conftest.one &&
2581 test -s conftest.dir/conftest.two
2582 then
2583 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2584 break 3
2585 fi
2586 fi
2587 fi
2588 done
2589 done
2590 ;;
2591 esac
2592
2593 done
2594 IFS=$as_save_IFS
2595
2596 rm -rf conftest.one conftest.two conftest.dir
2597
2598 fi
2599 if test "${ac_cv_path_install+set}" = set; then
2600 INSTALL=$ac_cv_path_install
2601 else
2602 # As a last resort, use the slow shell script. Don't cache a
2603 # value for INSTALL within a source directory, because that will
2604 # break other packages using the cache if that directory is
2605 # removed, or if the value is a relative name.
2606 INSTALL=$ac_install_sh
2607 fi
2608 fi
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2610 $as_echo "$INSTALL" >&6; }
2611
2612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2613 # It thinks the first close brace ends the variable substitution.
2614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2615
2616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2617
2618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2619
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2621 $as_echo_n "checking whether build environment is sane... " >&6; }
2622 # Just in case
2623 sleep 1
2624 echo timestamp > conftest.file
2625 # Do `set' in a subshell so we don't clobber the current shell's
2626 # arguments. Must try -L first in case configure is actually a
2627 # symlink; some systems play weird games with the mod time of symlinks
2628 # (eg FreeBSD returns the mod time of the symlink's containing
2629 # directory).
2630 if (
2631 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2632 if test "$*" = "X"; then
2633 # -L didn't work.
2634 set X `ls -t $srcdir/configure conftest.file`
2635 fi
2636 rm -f conftest.file
2637 if test "$*" != "X $srcdir/configure conftest.file" \
2638 && test "$*" != "X conftest.file $srcdir/configure"; then
2639
2640 # If neither matched, then we have a broken ls. This can happen
2641 # if, for instance, CONFIG_SHELL is bash and it inherits a
2642 # broken ls alias from the environment. This has actually
2643 # happened. Such a system could not be considered "sane".
2644 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2645 alias in your environment" "$LINENO" 5
2646 fi
2647
2648 test "$2" = conftest.file
2649 )
2650 then
2651 # Ok.
2652 :
2653 else
2654 as_fn_error $? "newly created file is older than distributed files!
2655 Check your system clock" "$LINENO" 5
2656 fi
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2658 $as_echo "yes" >&6; }
2659 test "$program_prefix" != NONE &&
2660 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2661 # Use a double $ so make ignores it.
2662 test "$program_suffix" != NONE &&
2663 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2664 # Double any \ or $.
2665 # By default was `s,x,x', remove it if useless.
2666 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2667 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2668
2669
2670 # expand $ac_aux_dir to an absolute path
2671 am_aux_dir=`cd $ac_aux_dir && pwd`
2672
2673 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2674 # Use eval to expand $SHELL
2675 if eval "$MISSING --run true"; then
2676 am_missing_run="$MISSING --run "
2677 else
2678 am_missing_run=
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2680 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2681 fi
2682
2683 for ac_prog in gawk mawk nawk awk
2684 do
2685 # Extract the first word of "$ac_prog", so it can be a program name with args.
2686 set dummy $ac_prog; ac_word=$2
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688 $as_echo_n "checking for $ac_word... " >&6; }
2689 if test "${ac_cv_prog_AWK+set}" = set; then :
2690 $as_echo_n "(cached) " >&6
2691 else
2692 if test -n "$AWK"; then
2693 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2694 else
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 for as_dir in $PATH
2697 do
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2702 ac_cv_prog_AWK="$ac_prog"
2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 break 2
2705 fi
2706 done
2707 done
2708 IFS=$as_save_IFS
2709
2710 fi
2711 fi
2712 AWK=$ac_cv_prog_AWK
2713 if test -n "$AWK"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2715 $as_echo "$AWK" >&6; }
2716 else
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718 $as_echo "no" >&6; }
2719 fi
2720
2721
2722 test -n "$AWK" && break
2723 done
2724
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2726 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2727 set x ${MAKE-make}
2728 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2729 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2730 $as_echo_n "(cached) " >&6
2731 else
2732 cat >conftest.make <<\_ACEOF
2733 SHELL = /bin/sh
2734 all:
2735 @echo '@@@%%%=$(MAKE)=@@@%%%'
2736 _ACEOF
2737 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2738 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2739 *@@@%%%=?*=@@@%%%*)
2740 eval ac_cv_prog_make_${ac_make}_set=yes;;
2741 *)
2742 eval ac_cv_prog_make_${ac_make}_set=no;;
2743 esac
2744 rm -f conftest.make
2745 fi
2746 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2748 $as_echo "yes" >&6; }
2749 SET_MAKE=
2750 else
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752 $as_echo "no" >&6; }
2753 SET_MAKE="MAKE=${MAKE-make}"
2754 fi
2755
2756 rm -rf .tst 2>/dev/null
2757 mkdir .tst 2>/dev/null
2758 if test -d .tst; then
2759 am__leading_dot=.
2760 else
2761 am__leading_dot=_
2762 fi
2763 rmdir .tst 2>/dev/null
2764
2765 # test to see if srcdir already configured
2766 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2767 test -f $srcdir/config.status; then
2768 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2769 fi
2770
2771 # test whether we have cygpath
2772 if test -z "$CYGPATH_W"; then
2773 if (cygpath --version) >/dev/null 2>/dev/null; then
2774 CYGPATH_W='cygpath -w'
2775 else
2776 CYGPATH_W=echo
2777 fi
2778 fi
2779
2780
2781 # Define the identity of the package.
2782 PACKAGE=chasen
2783 VERSION=2.4.5
2784
2785
2786 cat >>confdefs.h <<_ACEOF
2787 #define PACKAGE "$PACKAGE"
2788 _ACEOF
2789
2790
2791 cat >>confdefs.h <<_ACEOF
2792 #define VERSION "$VERSION"
2793 _ACEOF
2794
2795 # Some tools Automake needs.
2796
2797 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2798
2799
2800 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2801
2802
2803 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2804
2805
2806 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2807
2808
2809 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2810
2811
2812 AMTAR=${AMTAR-"${am_missing_run}tar"}
2813
2814 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2815
2816 # Installed binaries are usually stripped using `strip' when the user
2817 # run `make install-strip'. However `strip' might not be the right
2818 # tool to use in cross-compilation environments, therefore Automake
2819 # will honor the `STRIP' environment variable to overrule this program.
2820 if test "$cross_compiling" != no; then
2821 if test -n "$ac_tool_prefix"; then
2822 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2823 set dummy ${ac_tool_prefix}strip; ac_word=$2
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if test "${ac_cv_prog_STRIP+set}" = set; then :
2827 $as_echo_n "(cached) " >&6
2828 else
2829 if test -n "$STRIP"; then
2830 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 break 2
2842 fi
2843 done
2844 done
2845 IFS=$as_save_IFS
2846
2847 fi
2848 fi
2849 STRIP=$ac_cv_prog_STRIP
2850 if test -n "$STRIP"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2852 $as_echo "$STRIP" >&6; }
2853 else
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2856 fi
2857
2858
2859 fi
2860 if test -z "$ac_cv_prog_STRIP"; then
2861 ac_ct_STRIP=$STRIP
2862 # Extract the first word of "strip", so it can be a program name with args.
2863 set dummy strip; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 if test -n "$ac_ct_STRIP"; then
2870 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2874 do
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 ac_cv_prog_ac_ct_STRIP="strip"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2882 fi
2883 done
2884 done
2885 IFS=$as_save_IFS
2886
2887 fi
2888 fi
2889 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2890 if test -n "$ac_ct_STRIP"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2892 $as_echo "$ac_ct_STRIP" >&6; }
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2896 fi
2897
2898 if test "x$ac_ct_STRIP" = x; then
2899 STRIP=":"
2900 else
2901 case $cross_compiling:$ac_tool_warned in
2902 yes:)
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2905 ac_tool_warned=yes ;;
2906 esac
2907 STRIP=$ac_ct_STRIP
2908 fi
2909 else
2910 STRIP="$ac_cv_prog_STRIP"
2911 fi
2912
2913 fi
2914 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2915
2916 # We need awk for the "check" target. The system "awk" is bad on
2917 # some platforms.
2918
2919
2920
2921 ac_config_headers="$ac_config_headers config.h"
2922
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2924 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2925 # Check whether --enable-maintainer-mode was given.
2926 if test "${enable_maintainer_mode+set}" = set; then :
2927 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2928 else
2929 USE_MAINTAINER_MODE=no
2930 fi
2931
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2933 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2934
2935
2936 if test $USE_MAINTAINER_MODE = yes; then
2937 MAINTAINER_MODE_TRUE=
2938 MAINTAINER_MODE_FALSE='#'
2939 else
2940 MAINTAINER_MODE_TRUE='#'
2941 MAINTAINER_MODE_FALSE=
2942 fi
2943
2944 MAINT=$MAINTAINER_MODE_TRUE
2945
2946
2947
2948 ac_ext=c
2949 ac_cpp='$CPP $CPPFLAGS'
2950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2953 if test -n "$ac_tool_prefix"; then
2954 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2955 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if test "${ac_cv_prog_CC+set}" = set; then :
2959 $as_echo_n "(cached) " >&6
2960 else
2961 if test -n "$CC"; then
2962 ac_cv_prog_CC="$CC" # Let the user override the test.
2963 else
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH
2966 do
2967 IFS=$as_save_IFS
2968 test -z "$as_dir" && as_dir=.
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 break 2
2974 fi
2975 done
2976 done
2977 IFS=$as_save_IFS
2978
2979 fi
2980 fi
2981 CC=$ac_cv_prog_CC
2982 if test -n "$CC"; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2984 $as_echo "$CC" >&6; }
2985 else
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2988 fi
2989
2990
2991 fi
2992 if test -z "$ac_cv_prog_CC"; then
2993 ac_ct_CC=$CC
2994 # Extract the first word of "gcc", so it can be a program name with args.
2995 set dummy gcc; ac_word=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2999 $as_echo_n "(cached) " >&6
3000 else
3001 if test -n "$ac_ct_CC"; then
3002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3006 do
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011 ac_cv_prog_ac_ct_CC="gcc"
3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 break 2
3014 fi
3015 done
3016 done
3017 IFS=$as_save_IFS
3018
3019 fi
3020 fi
3021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3022 if test -n "$ac_ct_CC"; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3024 $as_echo "$ac_ct_CC" >&6; }
3025 else
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3028 fi
3029
3030 if test "x$ac_ct_CC" = x; then
3031 CC=""
3032 else
3033 case $cross_compiling:$ac_tool_warned in
3034 yes:)
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3037 ac_tool_warned=yes ;;
3038 esac
3039 CC=$ac_ct_CC
3040 fi
3041 else
3042 CC="$ac_cv_prog_CC"
3043 fi
3044
3045 if test -z "$CC"; then
3046 if test -n "$ac_tool_prefix"; then
3047 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3048 set dummy ${ac_tool_prefix}cc; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if test "${ac_cv_prog_CC+set}" = set; then :
3052 $as_echo_n "(cached) " >&6
3053 else
3054 if test -n "$CC"; then
3055 ac_cv_prog_CC="$CC" # Let the user override the test.
3056 else
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3059 do
3060 IFS=$as_save_IFS
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3064 ac_cv_prog_CC="${ac_tool_prefix}cc"
3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 break 2
3067 fi
3068 done
3069 done
3070 IFS=$as_save_IFS
3071
3072 fi
3073 fi
3074 CC=$ac_cv_prog_CC
3075 if test -n "$CC"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3077 $as_echo "$CC" >&6; }
3078 else
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3081 fi
3082
3083
3084 fi
3085 fi
3086 if test -z "$CC"; then
3087 # Extract the first word of "cc", so it can be a program name with args.
3088 set dummy cc; ac_word=$2
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if test "${ac_cv_prog_CC+set}" = set; then :
3092 $as_echo_n "(cached) " >&6
3093 else
3094 if test -n "$CC"; then
3095 ac_cv_prog_CC="$CC" # Let the user override the test.
3096 else
3097 ac_prog_rejected=no
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3100 do
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3106 ac_prog_rejected=yes
3107 continue
3108 fi
3109 ac_cv_prog_CC="cc"
3110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3111 break 2
3112 fi
3113 done
3114 done
3115 IFS=$as_save_IFS
3116
3117 if test $ac_prog_rejected = yes; then
3118 # We found a bogon in the path, so make sure we never use it.
3119 set dummy $ac_cv_prog_CC
3120 shift
3121 if test $# != 0; then
3122 # We chose a different compiler from the bogus one.
3123 # However, it has the same basename, so the bogon will be chosen
3124 # first if we set CC to just the basename; use the full file name.
3125 shift
3126 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3127 fi
3128 fi
3129 fi
3130 fi
3131 CC=$ac_cv_prog_CC
3132 if test -n "$CC"; then
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3134 $as_echo "$CC" >&6; }
3135 else
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137 $as_echo "no" >&6; }
3138 fi
3139
3140
3141 fi
3142 if test -z "$CC"; then
3143 if test -n "$ac_tool_prefix"; then
3144 for ac_prog in cl.exe
3145 do
3146 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3147 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if test "${ac_cv_prog_CC+set}" = set; then :
3151 $as_echo_n "(cached) " >&6
3152 else
3153 if test -n "$CC"; then
3154 ac_cv_prog_CC="$CC" # Let the user override the test.
3155 else
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
3158 do
3159 IFS=$as_save_IFS
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3163 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 break 2
3166 fi
3167 done
3168 done
3169 IFS=$as_save_IFS
3170
3171 fi
3172 fi
3173 CC=$ac_cv_prog_CC
3174 if test -n "$CC"; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3176 $as_echo "$CC" >&6; }
3177 else
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3180 fi
3181
3182
3183 test -n "$CC" && break
3184 done
3185 fi
3186 if test -z "$CC"; then
3187 ac_ct_CC=$CC
3188 for ac_prog in cl.exe
3189 do
3190 # Extract the first word of "$ac_prog", so it can be a program name with args.
3191 set dummy $ac_prog; ac_word=$2
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3195 $as_echo_n "(cached) " >&6
3196 else
3197 if test -n "$ac_ct_CC"; then
3198 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3199 else
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203 IFS=$as_save_IFS
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207 ac_cv_prog_ac_ct_CC="$ac_prog"
3208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 break 2
3210 fi
3211 done
3212 done
3213 IFS=$as_save_IFS
3214
3215 fi
3216 fi
3217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3218 if test -n "$ac_ct_CC"; then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3220 $as_echo "$ac_ct_CC" >&6; }
3221 else
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3224 fi
3225
3226
3227 test -n "$ac_ct_CC" && break
3228 done
3229
3230 if test "x$ac_ct_CC" = x; then
3231 CC=""
3232 else
3233 case $cross_compiling:$ac_tool_warned in
3234 yes:)
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3237 ac_tool_warned=yes ;;
3238 esac
3239 CC=$ac_ct_CC
3240 fi
3241 fi
3242
3243 fi
3244
3245
3246 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248 as_fn_error $? "no acceptable C compiler found in \$PATH
3249 See \`config.log' for more details" "$LINENO" 5 ; }
3250
3251 # Provide some information about the compiler.
3252 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3253 set X $ac_compile
3254 ac_compiler=$2
3255 for ac_option in --version -v -V -qversion; do
3256 { { ac_try="$ac_compiler $ac_option >&5"
3257 case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260 esac
3261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262 $as_echo "$ac_try_echo"; } >&5
3263 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3264 ac_status=$?
3265 if test -s conftest.err; then
3266 sed '10a\
3267 ... rest of stderr output deleted ...
3268 10q' conftest.err >conftest.er1
3269 cat conftest.er1 >&5
3270 fi
3271 rm -f conftest.er1 conftest.err
3272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }
3274 done
3275
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h. */
3278
3279 int
3280 main ()
3281 {
3282
3283 ;
3284 return 0;
3285 }
3286 _ACEOF
3287 ac_clean_files_save=$ac_clean_files
3288 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3289 # Try to create an executable without -o first, disregard a.out.
3290 # It will help us diagnose broken compilers, and finding out an intuition
3291 # of exeext.
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3293 $as_echo_n "checking whether the C compiler works... " >&6; }
3294 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3295
3296 # The possible output files:
3297 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3298
3299 ac_rmfiles=
3300 for ac_file in $ac_files
3301 do
3302 case $ac_file in
3303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3304 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3305 esac
3306 done
3307 rm -f $ac_rmfiles
3308
3309 if { { ac_try="$ac_link_default"
3310 case "(($ac_try" in
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3313 esac
3314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3315 $as_echo "$ac_try_echo"; } >&5
3316 (eval "$ac_link_default") 2>&5
3317 ac_status=$?
3318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3319 test $ac_status = 0; }; then :
3320 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3321 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3322 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3323 # so that the user can short-circuit this test for compilers unknown to
3324 # Autoconf.
3325 for ac_file in $ac_files ''
3326 do
3327 test -f "$ac_file" || continue
3328 case $ac_file in
3329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3330 ;;
3331 [ab].out )
3332 # We found the default executable, but exeext='' is most
3333 # certainly right.
3334 break;;
3335 *.* )
3336 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3337 then :; else
3338 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3339 fi
3340 # We set ac_cv_exeext here because the later test for it is not
3341 # safe: cross compilers may not add the suffix if given an `-o'
3342 # argument, so we may need to know it at that point already.
3343 # Even if this section looks crufty: it has the advantage of
3344 # actually working.
3345 break;;
3346 * )
3347 break;;
3348 esac
3349 done
3350 test "$ac_cv_exeext" = no && ac_cv_exeext=
3351
3352 else
3353 ac_file=''
3354 fi
3355 if test -z "$ac_file"; then :
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 $as_echo "no" >&6; }
3358 $as_echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3360
3361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3363 as_fn_error 77 "C compiler cannot create executables
3364 See \`config.log' for more details" "$LINENO" 5 ; }
3365 else
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3367 $as_echo "yes" >&6; }
3368 fi
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3370 $as_echo_n "checking for C compiler default output file name... " >&6; }
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3372 $as_echo "$ac_file" >&6; }
3373 ac_exeext=$ac_cv_exeext
3374
3375 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3376 ac_clean_files=$ac_clean_files_save
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3378 $as_echo_n "checking for suffix of executables... " >&6; }
3379 if { { ac_try="$ac_link"
3380 case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383 esac
3384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3385 $as_echo "$ac_try_echo"; } >&5
3386 (eval "$ac_link") 2>&5
3387 ac_status=$?
3388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389 test $ac_status = 0; }; then :
3390 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3391 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3392 # work properly (i.e., refer to `conftest.exe'), while it won't with
3393 # `rm'.
3394 for ac_file in conftest.exe conftest conftest.*; do
3395 test -f "$ac_file" || continue
3396 case $ac_file in
3397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3398 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3399 break;;
3400 * ) break;;
3401 esac
3402 done
3403 else
3404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3406 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3407 See \`config.log' for more details" "$LINENO" 5 ; }
3408 fi
3409 rm -f conftest conftest$ac_cv_exeext
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3411 $as_echo "$ac_cv_exeext" >&6; }
3412
3413 rm -f conftest.$ac_ext
3414 EXEEXT=$ac_cv_exeext
3415 ac_exeext=$EXEEXT
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3418 #include <stdio.h>
3419 int
3420 main ()
3421 {
3422 FILE *f = fopen ("conftest.out", "w");
3423 return ferror (f) || fclose (f) != 0;
3424
3425 ;
3426 return 0;
3427 }
3428 _ACEOF
3429 ac_clean_files="$ac_clean_files conftest.out"
3430 # Check that the compiler produces executables we can run. If not, either
3431 # the compiler is broken, or we cross compile.
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3433 $as_echo_n "checking whether we are cross compiling... " >&6; }
3434 if test "$cross_compiling" != yes; then
3435 { { ac_try="$ac_link"
3436 case "(($ac_try" in
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3439 esac
3440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441 $as_echo "$ac_try_echo"; } >&5
3442 (eval "$ac_link") 2>&5
3443 ac_status=$?
3444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445 test $ac_status = 0; }
3446 if { ac_try='./conftest$ac_cv_exeext'
3447 { { case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450 esac
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 $as_echo "$ac_try_echo"; } >&5
3453 (eval "$ac_try") 2>&5
3454 ac_status=$?
3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456 test $ac_status = 0; }; }; then
3457 cross_compiling=no
3458 else
3459 if test "$cross_compiling" = maybe; then
3460 cross_compiling=yes
3461 else
3462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464 as_fn_error $? "cannot run C compiled programs.
3465 If you meant to cross compile, use \`--host'.
3466 See \`config.log' for more details" "$LINENO" 5 ; }
3467 fi
3468 fi
3469 fi
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3471 $as_echo "$cross_compiling" >&6; }
3472
3473 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3474 ac_clean_files=$ac_clean_files_save
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3476 $as_echo_n "checking for suffix of object files... " >&6; }
3477 if test "${ac_cv_objext+set}" = set; then :
3478 $as_echo_n "(cached) " >&6
3479 else
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3482
3483 int
3484 main ()
3485 {
3486
3487 ;
3488 return 0;
3489 }
3490 _ACEOF
3491 rm -f conftest.o conftest.obj
3492 if { { ac_try="$ac_compile"
3493 case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3496 esac
3497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498 $as_echo "$ac_try_echo"; } >&5
3499 (eval "$ac_compile") 2>&5
3500 ac_status=$?
3501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502 test $ac_status = 0; }; then :
3503 for ac_file in conftest.o conftest.obj conftest.*; do
3504 test -f "$ac_file" || continue;
3505 case $ac_file in
3506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3507 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3508 break;;
3509 esac
3510 done
3511 else
3512 $as_echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3514
3515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3517 as_fn_error $? "cannot compute suffix of object files: cannot compile
3518 See \`config.log' for more details" "$LINENO" 5 ; }
3519 fi
3520 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3521 fi
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3523 $as_echo "$ac_cv_objext" >&6; }
3524 OBJEXT=$ac_cv_objext
3525 ac_objext=$OBJEXT
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3527 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3528 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3529 $as_echo_n "(cached) " >&6
3530 else
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h. */
3533
3534 int
3535 main ()
3536 {
3537 #ifndef __GNUC__
3538 choke me
3539 #endif
3540
3541 ;
3542 return 0;
3543 }
3544 _ACEOF
3545 if ac_fn_c_try_compile "$LINENO"; then :
3546 ac_compiler_gnu=yes
3547 else
3548 ac_compiler_gnu=no
3549 fi
3550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3552
3553 fi
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3555 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3556 if test $ac_compiler_gnu = yes; then
3557 GCC=yes
3558 else
3559 GCC=
3560 fi
3561 ac_test_CFLAGS=${CFLAGS+set}
3562 ac_save_CFLAGS=$CFLAGS
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3564 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3565 if test "${ac_cv_prog_cc_g+set}" = set; then :
3566 $as_echo_n "(cached) " >&6
3567 else
3568 ac_save_c_werror_flag=$ac_c_werror_flag
3569 ac_c_werror_flag=yes
3570 ac_cv_prog_cc_g=no
3571 CFLAGS="-g"
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3574
3575 int
3576 main ()
3577 {
3578
3579 ;
3580 return 0;
3581 }
3582 _ACEOF
3583 if ac_fn_c_try_compile "$LINENO"; then :
3584 ac_cv_prog_cc_g=yes
3585 else
3586 CFLAGS=""
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3589
3590 int
3591 main ()
3592 {
3593
3594 ;
3595 return 0;
3596 }
3597 _ACEOF
3598 if ac_fn_c_try_compile "$LINENO"; then :
3599
3600 else
3601 ac_c_werror_flag=$ac_save_c_werror_flag
3602 CFLAGS="-g"
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h. */
3605
3606 int
3607 main ()
3608 {
3609
3610 ;
3611 return 0;
3612 }
3613 _ACEOF
3614 if ac_fn_c_try_compile "$LINENO"; then :
3615 ac_cv_prog_cc_g=yes
3616 fi
3617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618 fi
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620 fi
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622 ac_c_werror_flag=$ac_save_c_werror_flag
3623 fi
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3625 $as_echo "$ac_cv_prog_cc_g" >&6; }
3626 if test "$ac_test_CFLAGS" = set; then
3627 CFLAGS=$ac_save_CFLAGS
3628 elif test $ac_cv_prog_cc_g = yes; then
3629 if test "$GCC" = yes; then
3630 CFLAGS="-g -O2"
3631 else
3632 CFLAGS="-g"
3633 fi
3634 else
3635 if test "$GCC" = yes; then
3636 CFLAGS="-O2"
3637 else
3638 CFLAGS=
3639 fi
3640 fi
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3642 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3643 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3644 $as_echo_n "(cached) " >&6
3645 else
3646 ac_cv_prog_cc_c89=no
3647 ac_save_CC=$CC
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3650 #include <stdarg.h>
3651 #include <stdio.h>
3652 #include <sys/types.h>
3653 #include <sys/stat.h>
3654 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3655 struct buf { int x; };
3656 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3657 static char *e (p, i)
3658 char **p;
3659 int i;
3660 {
3661 return p[i];
3662 }
3663 static char *f (char * (*g) (char **, int), char **p, ...)
3664 {
3665 char *s;
3666 va_list v;
3667 va_start (v,p);
3668 s = g (p, va_arg (v,int));
3669 va_end (v);
3670 return s;
3671 }
3672
3673 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3674 function prototypes and stuff, but not '\xHH' hex character constants.
3675 These don't provoke an error unfortunately, instead are silently treated
3676 as 'x'. The following induces an error, until -std is added to get
3677 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3678 array size at least. It's necessary to write '\x00'==0 to get something
3679 that's true only with -std. */
3680 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3681
3682 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3683 inside strings and character constants. */
3684 #define FOO(x) 'x'
3685 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3686
3687 int test (int i, double x);
3688 struct s1 {int (*f) (int a);};
3689 struct s2 {int (*f) (double a);};
3690 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3691 int argc;
3692 char **argv;
3693 int
3694 main ()
3695 {
3696 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3697 ;
3698 return 0;
3699 }
3700 _ACEOF
3701 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3702 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3703 do
3704 CC="$ac_save_CC $ac_arg"
3705 if ac_fn_c_try_compile "$LINENO"; then :
3706 ac_cv_prog_cc_c89=$ac_arg
3707 fi
3708 rm -f core conftest.err conftest.$ac_objext
3709 test "x$ac_cv_prog_cc_c89" != "xno" && break
3710 done
3711 rm -f conftest.$ac_ext
3712 CC=$ac_save_CC
3713
3714 fi
3715 # AC_CACHE_VAL
3716 case "x$ac_cv_prog_cc_c89" in
3717 x)
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3719 $as_echo "none needed" >&6; } ;;
3720 xno)
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3722 $as_echo "unsupported" >&6; } ;;
3723 *)
3724 CC="$CC $ac_cv_prog_cc_c89"
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3726 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3727 esac
3728 if test "x$ac_cv_prog_cc_c89" != xno; then :
3729
3730 fi
3731
3732 ac_ext=c
3733 ac_cpp='$CPP $CPPFLAGS'
3734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3737 DEPDIR="${am__leading_dot}deps"
3738
3739 ac_config_commands="$ac_config_commands depfiles"
3740
3741
3742 am_make=${MAKE-make}
3743 cat > confinc << 'END'
3744 am__doit:
3745 @echo done
3746 .PHONY: am__doit
3747 END
3748 # If we don't find an include directive, just comment out the code.
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3750 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3751 am__include="#"
3752 am__quote=
3753 _am_result=none
3754 # First try GNU make style include.
3755 echo "include confinc" > confmf
3756 # We grep out `Entering directory' and `Leaving directory'
3757 # messages which can occur if `w' ends up in MAKEFLAGS.
3758 # In particular we don't look at `^make:' because GNU make might
3759 # be invoked under some other name (usually "gmake"), in which
3760 # case it prints its new name instead of `make'.
3761 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3762 am__include=include
3763 am__quote=
3764 _am_result=GNU
3765 fi
3766 # Now try BSD make style include.
3767 if test "$am__include" = "#"; then
3768 echo '.include "confinc"' > confmf
3769 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3770 am__include=.include
3771 am__quote="\""
3772 _am_result=BSD
3773 fi
3774 fi
3775
3776
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3778 $as_echo "$_am_result" >&6; }
3779 rm -f confinc confmf
3780
3781 # Check whether --enable-dependency-tracking was given.
3782 if test "${enable_dependency_tracking+set}" = set; then :
3783 enableval=$enable_dependency_tracking;
3784 fi
3785
3786 if test "x$enable_dependency_tracking" != xno; then
3787 am_depcomp="$ac_aux_dir/depcomp"
3788 AMDEPBACKSLASH='\'
3789 fi
3790
3791
3792 if test "x$enable_dependency_tracking" != xno; then
3793 AMDEP_TRUE=
3794 AMDEP_FALSE='#'
3795 else
3796 AMDEP_TRUE='#'
3797 AMDEP_FALSE=
3798 fi
3799
3800
3801
3802
3803 depcc="$CC" am_compiler_list=
3804
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3806 $as_echo_n "checking dependency style of $depcc... " >&6; }
3807 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3808 $as_echo_n "(cached) " >&6
3809 else
3810 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3811 # We make a subdir and do the tests there. Otherwise we can end up
3812 # making bogus files that we don't know about and never remove. For
3813 # instance it was reported that on HP-UX the gcc test will end up
3814 # making a dummy file named `D' -- because `-MD' means `put the output
3815 # in D'.
3816 mkdir conftest.dir
3817 # Copy depcomp to subdir because otherwise we won't find it if we're
3818 # using a relative directory.
3819 cp "$am_depcomp" conftest.dir
3820 cd conftest.dir
3821 # We will build objects and dependencies in a subdirectory because
3822 # it helps to detect inapplicable dependency modes. For instance
3823 # both Tru64's cc and ICC support -MD to output dependencies as a
3824 # side effect of compilation, but ICC will put the dependencies in
3825 # the current directory while Tru64 will put them in the object
3826 # directory.
3827 mkdir sub
3828
3829 am_cv_CC_dependencies_compiler_type=none
3830 if test "$am_compiler_list" = ""; then
3831 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3832 fi
3833 for depmode in $am_compiler_list; do
3834 # Setup a source with many dependencies, because some compilers
3835 # like to wrap large dependency lists on column 80 (with \), and
3836 # we should not choose a depcomp mode which is confused by this.
3837 #
3838 # We need to recreate these files for each test, as the compiler may
3839 # overwrite some of them when testing with obscure command lines.
3840 # This happens at least with the AIX C compiler.
3841 : > sub/conftest.c
3842 for i in 1 2 3 4 5 6; do
3843 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3844 : > sub/conftst$i.h
3845 done
3846 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3847
3848 case $depmode in
3849 nosideeffect)
3850 # after this tag, mechanisms are not by side-effect, so they'll
3851 # only be used when explicitly requested
3852 if test "x$enable_dependency_tracking" = xyes; then
3853 continue
3854 else
3855 break
3856 fi
3857 ;;
3858 none) break ;;
3859 esac
3860 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3861 # mode. It turns out that the SunPro C++ compiler does not properly
3862 # handle `-M -o', and we need to detect this.
3863 if depmode=$depmode \
3864 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3865 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3866 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3867 >/dev/null 2>conftest.err &&
3868 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3869 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3870 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3871 # icc doesn't choke on unknown options, it will just issue warnings
3872 # (even with -Werror). So we grep stderr for any message
3873 # that says an option was ignored.
3874 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3875 am_cv_CC_dependencies_compiler_type=$depmode
3876 break
3877 fi
3878 fi
3879 done
3880
3881 cd ..
3882 rm -rf conftest.dir
3883 else
3884 am_cv_CC_dependencies_compiler_type=none
3885 fi
3886
3887 fi
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3889 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3890 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3891
3892
3893
3894 if
3895 test "x$enable_dependency_tracking" != xno \
3896 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3897 am__fastdepCC_TRUE=
3898 am__fastdepCC_FALSE='#'
3899 else
3900 am__fastdepCC_TRUE='#'
3901 am__fastdepCC_FALSE=
3902 fi
3903
3904
3905 ac_ext=cpp
3906 ac_cpp='$CXXCPP $CPPFLAGS'
3907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3910 if test -z "$CXX"; then
3911 if test -n "$CCC"; then
3912 CXX=$CCC
3913 else
3914 if test -n "$ac_tool_prefix"; then
3915 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3916 do
3917 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3918 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3920 $as_echo_n "checking for $ac_word... " >&6; }
3921 if test "${ac_cv_prog_CXX+set}" = set; then :
3922 $as_echo_n "(cached) " >&6
3923 else
3924 if test -n "$CXX"; then
3925 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3926 else
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 for as_dir in $PATH
3929 do
3930 IFS=$as_save_IFS
3931 test -z "$as_dir" && as_dir=.
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3934 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3936 break 2
3937 fi
3938 done
3939 done
3940 IFS=$as_save_IFS
3941
3942 fi
3943 fi
3944 CXX=$ac_cv_prog_CXX
3945 if test -n "$CXX"; then
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3947 $as_echo "$CXX" >&6; }
3948 else
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 $as_echo "no" >&6; }
3951 fi
3952
3953
3954 test -n "$CXX" && break
3955 done
3956 fi
3957 if test -z "$CXX"; then
3958 ac_ct_CXX=$CXX
3959 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3960 do
3961 # Extract the first word of "$ac_prog", so it can be a program name with args.
3962 set dummy $ac_prog; ac_word=$2
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3964 $as_echo_n "checking for $ac_word... " >&6; }
3965 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3966 $as_echo_n "(cached) " >&6
3967 else
3968 if test -n "$ac_ct_CXX"; then
3969 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3973 do
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3978 ac_cv_prog_ac_ct_CXX="$ac_prog"
3979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 break 2
3981 fi
3982 done
3983 done
3984 IFS=$as_save_IFS
3985
3986 fi
3987 fi
3988 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3989 if test -n "$ac_ct_CXX"; then
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3991 $as_echo "$ac_ct_CXX" >&6; }
3992 else
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3994 $as_echo "no" >&6; }
3995 fi
3996
3997
3998 test -n "$ac_ct_CXX" && break
3999 done
4000
4001 if test "x$ac_ct_CXX" = x; then
4002 CXX="g++"
4003 else
4004 case $cross_compiling:$ac_tool_warned in
4005 yes:)
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4008 ac_tool_warned=yes ;;
4009 esac
4010 CXX=$ac_ct_CXX
4011 fi
4012 fi
4013
4014 fi
4015 fi
4016 # Provide some information about the compiler.
4017 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4018 set X $ac_compile
4019 ac_compiler=$2
4020 for ac_option in --version -v -V -qversion; do
4021 { { ac_try="$ac_compiler $ac_option >&5"
4022 case "(($ac_try" in
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4025 esac
4026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4027 $as_echo "$ac_try_echo"; } >&5
4028 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4029 ac_status=$?
4030 if test -s conftest.err; then
4031 sed '10a\
4032 ... rest of stderr output deleted ...
4033 10q' conftest.err >conftest.er1
4034 cat conftest.er1 >&5
4035 fi
4036 rm -f conftest.er1 conftest.err
4037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038 test $ac_status = 0; }
4039 done
4040
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4042 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4043 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4048
4049 int
4050 main ()
4051 {
4052 #ifndef __GNUC__
4053 choke me
4054 #endif
4055
4056 ;
4057 return 0;
4058 }
4059 _ACEOF
4060 if ac_fn_cxx_try_compile "$LINENO"; then :
4061 ac_compiler_gnu=yes
4062 else
4063 ac_compiler_gnu=no
4064 fi
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4067
4068 fi
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4070 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4071 if test $ac_compiler_gnu = yes; then
4072 GXX=yes
4073 else
4074 GXX=
4075 fi
4076 ac_test_CXXFLAGS=${CXXFLAGS+set}
4077 ac_save_CXXFLAGS=$CXXFLAGS
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4079 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4080 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4084 ac_cxx_werror_flag=yes
4085 ac_cv_prog_cxx_g=no
4086 CXXFLAGS="-g"
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4089
4090 int
4091 main ()
4092 {
4093
4094 ;
4095 return 0;
4096 }
4097 _ACEOF
4098 if ac_fn_cxx_try_compile "$LINENO"; then :
4099 ac_cv_prog_cxx_g=yes
4100 else
4101 CXXFLAGS=""
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4104
4105 int
4106 main ()
4107 {
4108
4109 ;
4110 return 0;
4111 }
4112 _ACEOF
4113 if ac_fn_cxx_try_compile "$LINENO"; then :
4114
4115 else
4116 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4117 CXXFLAGS="-g"
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4120
4121 int
4122 main ()
4123 {
4124
4125 ;
4126 return 0;
4127 }
4128 _ACEOF
4129 if ac_fn_cxx_try_compile "$LINENO"; then :
4130 ac_cv_prog_cxx_g=yes
4131 fi
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 fi
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 fi
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4138 fi
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4140 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4141 if test "$ac_test_CXXFLAGS" = set; then
4142 CXXFLAGS=$ac_save_CXXFLAGS
4143 elif test $ac_cv_prog_cxx_g = yes; then
4144 if test "$GXX" = yes; then
4145 CXXFLAGS="-g -O2"
4146 else
4147 CXXFLAGS="-g"
4148 fi
4149 else
4150 if test "$GXX" = yes; then
4151 CXXFLAGS="-O2"
4152 else
4153 CXXFLAGS=
4154 fi
4155 fi
4156 ac_ext=c
4157 ac_cpp='$CPP $CPPFLAGS'
4158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161
4162 depcc="$CXX" am_compiler_list=
4163
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4165 $as_echo_n "checking dependency style of $depcc... " >&6; }
4166 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4170 # We make a subdir and do the tests there. Otherwise we can end up
4171 # making bogus files that we don't know about and never remove. For
4172 # instance it was reported that on HP-UX the gcc test will end up
4173 # making a dummy file named `D' -- because `-MD' means `put the output
4174 # in D'.
4175 mkdir conftest.dir
4176 # Copy depcomp to subdir because otherwise we won't find it if we're
4177 # using a relative directory.
4178 cp "$am_depcomp" conftest.dir
4179 cd conftest.dir
4180 # We will build objects and dependencies in a subdirectory because
4181 # it helps to detect inapplicable dependency modes. For instance
4182 # both Tru64's cc and ICC support -MD to output dependencies as a
4183 # side effect of compilation, but ICC will put the dependencies in
4184 # the current directory while Tru64 will put them in the object
4185 # directory.
4186 mkdir sub
4187
4188 am_cv_CXX_dependencies_compiler_type=none
4189 if test "$am_compiler_list" = ""; then
4190 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4191 fi
4192 for depmode in $am_compiler_list; do
4193 # Setup a source with many dependencies, because some compilers
4194 # like to wrap large dependency lists on column 80 (with \), and
4195 # we should not choose a depcomp mode which is confused by this.
4196 #
4197 # We need to recreate these files for each test, as the compiler may
4198 # overwrite some of them when testing with obscure command lines.
4199 # This happens at least with the AIX C compiler.
4200 : > sub/conftest.c
4201 for i in 1 2 3 4 5 6; do
4202 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4203 : > sub/conftst$i.h
4204 done
4205 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4206
4207 case $depmode in
4208 nosideeffect)
4209 # after this tag, mechanisms are not by side-effect, so they'll
4210 # only be used when explicitly requested
4211 if test "x$enable_dependency_tracking" = xyes; then
4212 continue
4213 else
4214 break
4215 fi
4216 ;;
4217 none) break ;;
4218 esac
4219 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4220 # mode. It turns out that the SunPro C++ compiler does not properly
4221 # handle `-M -o', and we need to detect this.
4222 if depmode=$depmode \
4223 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4224 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4225 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4226 >/dev/null 2>conftest.err &&
4227 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4228 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4229 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4230 # icc doesn't choke on unknown options, it will just issue warnings
4231 # (even with -Werror). So we grep stderr for any message
4232 # that says an option was ignored.
4233 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4234 am_cv_CXX_dependencies_compiler_type=$depmode
4235 break
4236 fi
4237 fi
4238 done
4239
4240 cd ..
4241 rm -rf conftest.dir
4242 else
4243 am_cv_CXX_dependencies_compiler_type=none
4244 fi
4245
4246 fi
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4248 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4249 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4250
4251
4252
4253 if
4254 test "x$enable_dependency_tracking" != xno \
4255 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4256 am__fastdepCXX_TRUE=
4257 am__fastdepCXX_FALSE='#'
4258 else
4259 am__fastdepCXX_TRUE='#'
4260 am__fastdepCXX_FALSE=
4261 fi
4262
4263
4264 case `pwd` in
4265 *\ * | *\ *)
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4267 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4268 esac
4269
4270
4271
4272 macro_version='2.2.6b'
4273 macro_revision='1.3017'
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287 ltmain="$ac_aux_dir/ltmain.sh"
4288
4289 # Make sure we can run config.sub.
4290 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4291 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4292
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4294 $as_echo_n "checking build system type... " >&6; }
4295 if test "${ac_cv_build+set}" = set; then :
4296 $as_echo_n "(cached) " >&6
4297 else
4298 ac_build_alias=$build_alias
4299 test "x$ac_build_alias" = x &&
4300 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4301 test "x$ac_build_alias" = x &&
4302 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4303 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4304 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4305
4306 fi
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4308 $as_echo "$ac_cv_build" >&6; }
4309 case $ac_cv_build in
4310 *-*-*) ;;
4311 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
4312 esac
4313 build=$ac_cv_build
4314 ac_save_IFS=$IFS; IFS='-'
4315 set x $ac_cv_build
4316 shift
4317 build_cpu=$1
4318 build_vendor=$2
4319 shift; shift
4320 # Remember, the first character of IFS is used to create $*,
4321 # except with old shells:
4322 build_os=$*
4323 IFS=$ac_save_IFS
4324 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4325
4326
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4328 $as_echo_n "checking host system type... " >&6; }
4329 if test "${ac_cv_host+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
4331 else
4332 if test "x$host_alias" = x; then
4333 ac_cv_host=$ac_cv_build
4334 else
4335 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4336 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4337 fi
4338
4339 fi
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4341 $as_echo "$ac_cv_host" >&6; }
4342 case $ac_cv_host in
4343 *-*-*) ;;
4344 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4345 esac
4346 host=$ac_cv_host
4347 ac_save_IFS=$IFS; IFS='-'
4348 set x $ac_cv_host
4349 shift
4350 host_cpu=$1
4351 host_vendor=$2
4352 shift; shift
4353 # Remember, the first character of IFS is used to create $*,
4354 # except with old shells:
4355 host_os=$*
4356 IFS=$ac_save_IFS
4357 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4358
4359
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4361 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4362 if test "${ac_cv_path_SED+set}" = set; then :
4363 $as_echo_n "(cached) " >&6
4364 else
4365 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4366 for ac_i in 1 2 3 4 5 6 7; do
4367 ac_script="$ac_script$as_nl$ac_script"
4368 done
4369 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4370 { ac_script=; unset ac_script;}
4371 if test -z "$SED"; then
4372 ac_path_SED_found=false
4373 # Loop through the user's path and test for each of PROGNAME-LIST
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4376 do
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
4379 for ac_prog in sed gsed; do
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4382 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4383 # Check for GNU ac_path_SED and select it if it is found.
4384 # Check for GNU $ac_path_SED
4385 case `"$ac_path_SED" --version 2>&1` in
4386 *GNU*)
4387 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4388 *)
4389 ac_count=0
4390 $as_echo_n 0123456789 >"conftest.in"
4391 while :
4392 do
4393 cat "conftest.in" "conftest.in" >"conftest.tmp"
4394 mv "conftest.tmp" "conftest.in"
4395 cp "conftest.in" "conftest.nl"
4396 $as_echo '' >> "conftest.nl"
4397 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4398 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4399 as_fn_arith $ac_count + 1 && ac_count=$as_val
4400 if test $ac_count -gt ${ac_path_SED_max-0}; then
4401 # Best one so far, save it but keep looking for a better one
4402 ac_cv_path_SED="$ac_path_SED"
4403 ac_path_SED_max=$ac_count
4404 fi
4405 # 10*(2^10) chars as input seems more than enough
4406 test $ac_count -gt 10 && break
4407 done
4408 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4409 esac
4410
4411 $ac_path_SED_found && break 3
4412 done
4413 done
4414 done
4415 IFS=$as_save_IFS
4416 if test -z "$ac_cv_path_SED"; then
4417 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4418 fi
4419 else
4420 ac_cv_path_SED=$SED
4421 fi
4422
4423 fi
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4425 $as_echo "$ac_cv_path_SED" >&6; }
4426 SED="$ac_cv_path_SED"
4427 rm -f conftest.sed
4428
4429 test -z "$SED" && SED=sed
4430 Xsed="$SED -e 1s/^X//"
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4443 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4444 if test "${ac_cv_path_GREP+set}" = set; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 if test -z "$GREP"; then
4448 ac_path_GREP_found=false
4449 # Loop through the user's path and test for each of PROGNAME-LIST
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4452 do
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_prog in grep ggrep; do
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4458 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4459 # Check for GNU ac_path_GREP and select it if it is found.
4460 # Check for GNU $ac_path_GREP
4461 case `"$ac_path_GREP" --version 2>&1` in
4462 *GNU*)
4463 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4464 *)
4465 ac_count=0
4466 $as_echo_n 0123456789 >"conftest.in"
4467 while :
4468 do
4469 cat "conftest.in" "conftest.in" >"conftest.tmp"
4470 mv "conftest.tmp" "conftest.in"
4471 cp "conftest.in" "conftest.nl"
4472 $as_echo 'GREP' >> "conftest.nl"
4473 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4474 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4475 as_fn_arith $ac_count + 1 && ac_count=$as_val
4476 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4477 # Best one so far, save it but keep looking for a better one
4478 ac_cv_path_GREP="$ac_path_GREP"
4479 ac_path_GREP_max=$ac_count
4480 fi
4481 # 10*(2^10) chars as input seems more than enough
4482 test $ac_count -gt 10 && break
4483 done
4484 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4485 esac
4486
4487 $ac_path_GREP_found && break 3
4488 done
4489 done
4490 done
4491 IFS=$as_save_IFS
4492 if test -z "$ac_cv_path_GREP"; then
4493 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4494 fi
4495 else
4496 ac_cv_path_GREP=$GREP
4497 fi
4498
4499 fi
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4501 $as_echo "$ac_cv_path_GREP" >&6; }
4502 GREP="$ac_cv_path_GREP"
4503
4504
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4506 $as_echo_n "checking for egrep... " >&6; }
4507 if test "${ac_cv_path_EGREP+set}" = set; then :
4508 $as_echo_n "(cached) " >&6
4509 else
4510 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4511 then ac_cv_path_EGREP="$GREP -E"
4512 else
4513 if test -z "$EGREP"; then
4514 ac_path_EGREP_found=false
4515 # Loop through the user's path and test for each of PROGNAME-LIST
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4518 do
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
4521 for ac_prog in egrep; do
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4524 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4525 # Check for GNU ac_path_EGREP and select it if it is found.
4526 # Check for GNU $ac_path_EGREP
4527 case `"$ac_path_EGREP" --version 2>&1` in
4528 *GNU*)
4529 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4530 *)
4531 ac_count=0
4532 $as_echo_n 0123456789 >"conftest.in"
4533 while :
4534 do
4535 cat "conftest.in" "conftest.in" >"conftest.tmp"
4536 mv "conftest.tmp" "conftest.in"
4537 cp "conftest.in" "conftest.nl"
4538 $as_echo 'EGREP' >> "conftest.nl"
4539 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4540 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4541 as_fn_arith $ac_count + 1 && ac_count=$as_val
4542 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4543 # Best one so far, save it but keep looking for a better one
4544 ac_cv_path_EGREP="$ac_path_EGREP"
4545 ac_path_EGREP_max=$ac_count
4546 fi
4547 # 10*(2^10) chars as input seems more than enough
4548 test $ac_count -gt 10 && break
4549 done
4550 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4551 esac
4552
4553 $ac_path_EGREP_found && break 3
4554 done
4555 done
4556 done
4557 IFS=$as_save_IFS
4558 if test -z "$ac_cv_path_EGREP"; then
4559 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4560 fi
4561 else
4562 ac_cv_path_EGREP=$EGREP
4563 fi
4564
4565 fi
4566 fi
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4568 $as_echo "$ac_cv_path_EGREP" >&6; }
4569 EGREP="$ac_cv_path_EGREP"
4570
4571
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4573 $as_echo_n "checking for fgrep... " >&6; }
4574 if test "${ac_cv_path_FGREP+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
4576 else
4577 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4578 then ac_cv_path_FGREP="$GREP -F"
4579 else
4580 if test -z "$FGREP"; then
4581 ac_path_FGREP_found=false
4582 # Loop through the user's path and test for each of PROGNAME-LIST
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4585 do
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
4588 for ac_prog in fgrep; do
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4591 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4592 # Check for GNU ac_path_FGREP and select it if it is found.
4593 # Check for GNU $ac_path_FGREP
4594 case `"$ac_path_FGREP" --version 2>&1` in
4595 *GNU*)
4596 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4597 *)
4598 ac_count=0
4599 $as_echo_n 0123456789 >"conftest.in"
4600 while :
4601 do
4602 cat "conftest.in" "conftest.in" >"conftest.tmp"
4603 mv "conftest.tmp" "conftest.in"
4604 cp "conftest.in" "conftest.nl"
4605 $as_echo 'FGREP' >> "conftest.nl"
4606 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4608 as_fn_arith $ac_count + 1 && ac_count=$as_val
4609 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4610 # Best one so far, save it but keep looking for a better one
4611 ac_cv_path_FGREP="$ac_path_FGREP"
4612 ac_path_FGREP_max=$ac_count
4613 fi
4614 # 10*(2^10) chars as input seems more than enough
4615 test $ac_count -gt 10 && break
4616 done
4617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4618 esac
4619
4620 $ac_path_FGREP_found && break 3
4621 done
4622 done
4623 done
4624 IFS=$as_save_IFS
4625 if test -z "$ac_cv_path_FGREP"; then
4626 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4627 fi
4628 else
4629 ac_cv_path_FGREP=$FGREP
4630 fi
4631
4632 fi
4633 fi
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4635 $as_echo "$ac_cv_path_FGREP" >&6; }
4636 FGREP="$ac_cv_path_FGREP"
4637
4638
4639 test -z "$GREP" && GREP=grep
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659 # Check whether --with-gnu-ld was given.
4660 if test "${with_gnu_ld+set}" = set; then :
4661 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4662 else
4663 with_gnu_ld=no
4664 fi
4665
4666 ac_prog=ld
4667 if test "$GCC" = yes; then
4668 # Check if gcc -print-prog-name=ld gives a path.
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4670 $as_echo_n "checking for ld used by $CC... " >&6; }
4671 case $host in
4672 *-*-mingw*)
4673 # gcc leaves a trailing carriage return which upsets mingw
4674 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4675 *)
4676 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4677 esac
4678 case $ac_prog in
4679 # Accept absolute paths.
4680 [\\/]* | ?:[\\/]*)
4681 re_direlt='/[^/][^/]*/\.\./'
4682 # Canonicalize the pathname of ld
4683 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4684 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4685 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4686 done
4687 test -z "$LD" && LD="$ac_prog"
4688 ;;
4689 "")
4690 # If it fails, then pretend we aren't using GCC.
4691 ac_prog=ld
4692 ;;
4693 *)
4694 # If it is relative, then search for the first ld in PATH.
4695 with_gnu_ld=unknown
4696 ;;
4697 esac
4698 elif test "$with_gnu_ld" = yes; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4700 $as_echo_n "checking for GNU ld... " >&6; }
4701 else
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4703 $as_echo_n "checking for non-GNU ld... " >&6; }
4704 fi
4705 if test "${lt_cv_path_LD+set}" = set; then :
4706 $as_echo_n "(cached) " >&6
4707 else
4708 if test -z "$LD"; then
4709 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4710 for ac_dir in $PATH; do
4711 IFS="$lt_save_ifs"
4712 test -z "$ac_dir" && ac_dir=.
4713 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4714 lt_cv_path_LD="$ac_dir/$ac_prog"
4715 # Check to see if the program is GNU ld. I'd rather use --version,
4716 # but apparently some variants of GNU ld only accept -v.
4717 # Break only if it was the GNU/non-GNU ld that we prefer.
4718 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4719 *GNU* | *'with BFD'*)
4720 test "$with_gnu_ld" != no && break
4721 ;;
4722 *)
4723 test "$with_gnu_ld" != yes && break
4724 ;;
4725 esac
4726 fi
4727 done
4728 IFS="$lt_save_ifs"
4729 else
4730 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4731 fi
4732 fi
4733
4734 LD="$lt_cv_path_LD"
4735 if test -n "$LD"; then
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4737 $as_echo "$LD" >&6; }
4738 else
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4740 $as_echo "no" >&6; }
4741 fi
4742 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4744 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4745 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4746 $as_echo_n "(cached) " >&6
4747 else
4748 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4749 case `$LD -v 2>&1 </dev/null` in
4750 *GNU* | *'with BFD'*)
4751 lt_cv_prog_gnu_ld=yes
4752 ;;
4753 *)
4754 lt_cv_prog_gnu_ld=no
4755 ;;
4756 esac
4757 fi
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4759 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4760 with_gnu_ld=$lt_cv_prog_gnu_ld
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4771 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4772 if test "${lt_cv_path_NM+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4774 else
4775 if test -n "$NM"; then
4776 # Let the user override the test.
4777 lt_cv_path_NM="$NM"
4778 else
4779 lt_nm_to_check="${ac_tool_prefix}nm"
4780 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4781 lt_nm_to_check="$lt_nm_to_check nm"
4782 fi
4783 for lt_tmp_nm in $lt_nm_to_check; do
4784 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4785 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4786 IFS="$lt_save_ifs"
4787 test -z "$ac_dir" && ac_dir=.
4788 tmp_nm="$ac_dir/$lt_tmp_nm"
4789 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4790 # Check to see if the nm accepts a BSD-compat flag.
4791 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4792 # nm: unknown option "B" ignored
4793 # Tru64's nm complains that /dev/null is an invalid object file
4794 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4795 */dev/null* | *'Invalid file or object type'*)
4796 lt_cv_path_NM="$tmp_nm -B"
4797 break
4798 ;;
4799 *)
4800 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4801 */dev/null*)
4802 lt_cv_path_NM="$tmp_nm -p"
4803 break
4804 ;;
4805 *)
4806 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4807 continue # so that we can try to find one that supports BSD flags
4808 ;;
4809 esac
4810 ;;
4811 esac
4812 fi
4813 done
4814 IFS="$lt_save_ifs"
4815 done
4816 : ${lt_cv_path_NM=no}
4817 fi
4818 fi
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4820 $as_echo "$lt_cv_path_NM" >&6; }
4821 if test "$lt_cv_path_NM" != "no"; then
4822 NM="$lt_cv_path_NM"
4823 else
4824 # Didn't find any BSD compatible name lister, look for dumpbin.
4825 if test -n "$ac_tool_prefix"; then
4826 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4827 do
4828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4829 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831 $as_echo_n "checking for $ac_word... " >&6; }
4832 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 if test -n "$DUMPBIN"; then
4836 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4840 do
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4845 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 break 2
4848 fi
4849 done
4850 done
4851 IFS=$as_save_IFS
4852
4853 fi
4854 fi
4855 DUMPBIN=$ac_cv_prog_DUMPBIN
4856 if test -n "$DUMPBIN"; then
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4858 $as_echo "$DUMPBIN" >&6; }
4859 else
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861 $as_echo "no" >&6; }
4862 fi
4863
4864
4865 test -n "$DUMPBIN" && break
4866 done
4867 fi
4868 if test -z "$DUMPBIN"; then
4869 ac_ct_DUMPBIN=$DUMPBIN
4870 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4871 do
4872 # Extract the first word of "$ac_prog", so it can be a program name with args.
4873 set dummy $ac_prog; ac_word=$2
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4875 $as_echo_n "checking for $ac_word... " >&6; }
4876 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 if test -n "$ac_ct_DUMPBIN"; then
4880 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4881 else
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 for as_dir in $PATH
4884 do
4885 IFS=$as_save_IFS
4886 test -z "$as_dir" && as_dir=.
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4889 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 break 2
4892 fi
4893 done
4894 done
4895 IFS=$as_save_IFS
4896
4897 fi
4898 fi
4899 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4900 if test -n "$ac_ct_DUMPBIN"; then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4902 $as_echo "$ac_ct_DUMPBIN" >&6; }
4903 else
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905 $as_echo "no" >&6; }
4906 fi
4907
4908
4909 test -n "$ac_ct_DUMPBIN" && break
4910 done
4911
4912 if test "x$ac_ct_DUMPBIN" = x; then
4913 DUMPBIN=":"
4914 else
4915 case $cross_compiling:$ac_tool_warned in
4916 yes:)
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4919 ac_tool_warned=yes ;;
4920 esac
4921 DUMPBIN=$ac_ct_DUMPBIN
4922 fi
4923 fi
4924
4925
4926 if test "$DUMPBIN" != ":"; then
4927 NM="$DUMPBIN"
4928 fi
4929 fi
4930 test -z "$NM" && NM=nm
4931
4932
4933
4934
4935
4936
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4938 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4939 if test "${lt_cv_nm_interface+set}" = set; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 lt_cv_nm_interface="BSD nm"
4943 echo "int some_variable = 0;" > conftest.$ac_ext
4944 (eval echo "\"\$as_me:4944: $ac_compile\"" >&5)
4945 (eval "$ac_compile" 2>conftest.err)
4946 cat conftest.err >&5
4947 (eval echo "\"\$as_me:4947: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4948 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4949 cat conftest.err >&5
4950 (eval echo "\"\$as_me:4950: output\"" >&5)
4951 cat conftest.out >&5
4952 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4953 lt_cv_nm_interface="MS dumpbin"
4954 fi
4955 rm -f conftest*
4956 fi
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4958 $as_echo "$lt_cv_nm_interface" >&6; }
4959
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4961 $as_echo_n "checking whether ln -s works... " >&6; }
4962 LN_S=$as_ln_s
4963 if test "$LN_S" = "ln -s"; then
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4965 $as_echo "yes" >&6; }
4966 else
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4968 $as_echo "no, using $LN_S" >&6; }
4969 fi
4970
4971 # find the maximum length of command line arguments
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4973 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4974 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4975 $as_echo_n "(cached) " >&6
4976 else
4977 i=0
4978 teststring="ABCD"
4979
4980 case $build_os in
4981 msdosdjgpp*)
4982 # On DJGPP, this test can blow up pretty badly due to problems in libc
4983 # (any single argument exceeding 2000 bytes causes a buffer overrun
4984 # during glob expansion). Even if it were fixed, the result of this
4985 # check would be larger than it should be.
4986 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4987 ;;
4988
4989 gnu*)
4990 # Under GNU Hurd, this test is not required because there is
4991 # no limit to the length of command line arguments.
4992 # Libtool will interpret -1 as no limit whatsoever
4993 lt_cv_sys_max_cmd_len=-1;
4994 ;;
4995
4996 cygwin* | mingw* | cegcc*)
4997 # On Win9x/ME, this test blows up -- it succeeds, but takes
4998 # about 5 minutes as the teststring grows exponentially.
4999 # Worse, since 9x/ME are not pre-emptively multitasking,
5000 # you end up with a "frozen" computer, even though with patience
5001 # the test eventually succeeds (with a max line length of 256k).
5002 # Instead, let's just punt: use the minimum linelength reported by
5003 # all of the supported platforms: 8192 (on NT/2K/XP).
5004 lt_cv_sys_max_cmd_len=8192;
5005 ;;
5006
5007 amigaos*)
5008 # On AmigaOS with pdksh, this test takes hours, literally.
5009 # So we just punt and use a minimum line length of 8192.
5010 lt_cv_sys_max_cmd_len=8192;
5011 ;;
5012
5013 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5014 # This has been around since 386BSD, at least. Likely further.
5015 if test -x /sbin/sysctl; then
5016 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5017 elif test -x /usr/sbin/sysctl; then
5018 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5019 else
5020 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5021 fi
5022 # And add a safety zone
5023 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5024 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5025 ;;
5026
5027 interix*)
5028 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5029 lt_cv_sys_max_cmd_len=196608
5030 ;;
5031
5032 osf*)
5033 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5034 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5035 # nice to cause kernel panics so lets avoid the loop below.
5036 # First set a reasonable default.
5037 lt_cv_sys_max_cmd_len=16384
5038 #
5039 if test -x /sbin/sysconfig; then
5040 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5041 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5042 esac
5043 fi
5044 ;;
5045 sco3.2v5*)
5046 lt_cv_sys_max_cmd_len=102400
5047 ;;
5048 sysv5* | sco5v6* | sysv4.2uw2*)
5049 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5050 if test -n "$kargmax"; then
5051 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5052 else
5053 lt_cv_sys_max_cmd_len=32768
5054 fi
5055 ;;
5056 *)
5057 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5058 if test -n "$lt_cv_sys_max_cmd_len"; then
5059 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5061 else
5062 # Make teststring a little bigger before we do anything with it.
5063 # a 1K string should be a reasonable start.
5064 for i in 1 2 3 4 5 6 7 8 ; do
5065 teststring=$teststring$teststring
5066 done
5067 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5068 # If test is not a shell built-in, we'll probably end up computing a
5069 # maximum length that is only half of the actual maximum length, but
5070 # we can't tell.
5071 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5072 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5073 test $i != 17 # 1/2 MB should be enough
5074 do
5075 i=`expr $i + 1`
5076 teststring=$teststring$teststring
5077 done
5078 # Only check the string length outside the loop.
5079 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5080 teststring=
5081 # Add a significant safety factor because C++ compilers can tack on
5082 # massive amounts of additional arguments before passing them to the
5083 # linker. It appears as though 1/2 is a usable value.
5084 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5085 fi
5086 ;;
5087 esac
5088
5089 fi
5090
5091 if test -n $lt_cv_sys_max_cmd_len ; then
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5093 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5094 else
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5096 $as_echo "none" >&6; }
5097 fi
5098 max_cmd_len=$lt_cv_sys_max_cmd_len
5099
5100
5101
5102
5103
5104
5105 : ${CP="cp -f"}
5106 : ${MV="mv -f"}
5107 : ${RM="rm -f"}
5108
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5110 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5111 # Try some XSI features
5112 xsi_shell=no
5113 ( _lt_dummy="a/b/c"
5114 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5115 = c,a/b,, \
5116 && eval 'test $(( 1 + 1 )) -eq 2 \
5117 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5118 && xsi_shell=yes
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5120 $as_echo "$xsi_shell" >&6; }
5121
5122
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5124 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5125 lt_shell_append=no
5126 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5127 >/dev/null 2>&1 \
5128 && lt_shell_append=yes
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5130 $as_echo "$lt_shell_append" >&6; }
5131
5132
5133 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5134 lt_unset=unset
5135 else
5136 lt_unset=false
5137 fi
5138
5139
5140
5141
5142
5143 # test EBCDIC or ASCII
5144 case `echo X|tr X '\101'` in
5145 A) # ASCII based system
5146 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5147 lt_SP2NL='tr \040 \012'
5148 lt_NL2SP='tr \015\012 \040\040'
5149 ;;
5150 *) # EBCDIC based system
5151 lt_SP2NL='tr \100 \n'
5152 lt_NL2SP='tr \r\n \100\100'
5153 ;;
5154 esac
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5165 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5166 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 lt_cv_ld_reload_flag='-r'
5170 fi
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5172 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5173 reload_flag=$lt_cv_ld_reload_flag
5174 case $reload_flag in
5175 "" | " "*) ;;
5176 *) reload_flag=" $reload_flag" ;;
5177 esac
5178 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5179 case $host_os in
5180 darwin*)
5181 if test "$GCC" = yes; then
5182 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5183 else
5184 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5185 fi
5186 ;;
5187 esac
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197 if test -n "$ac_tool_prefix"; then
5198 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5199 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 if test -n "$OBJDUMP"; then
5206 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5210 do
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 break 2
5218 fi
5219 done
5220 done
5221 IFS=$as_save_IFS
5222
5223 fi
5224 fi
5225 OBJDUMP=$ac_cv_prog_OBJDUMP
5226 if test -n "$OBJDUMP"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5228 $as_echo "$OBJDUMP" >&6; }
5229 else
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5232 fi
5233
5234
5235 fi
5236 if test -z "$ac_cv_prog_OBJDUMP"; then
5237 ac_ct_OBJDUMP=$OBJDUMP
5238 # Extract the first word of "objdump", so it can be a program name with args.
5239 set dummy objdump; ac_word=$2
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241 $as_echo_n "checking for $ac_word... " >&6; }
5242 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5243 $as_echo_n "(cached) " >&6
5244 else
5245 if test -n "$ac_ct_OBJDUMP"; then
5246 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5247 else
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5250 do
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5255 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 break 2
5258 fi
5259 done
5260 done
5261 IFS=$as_save_IFS
5262
5263 fi
5264 fi
5265 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5266 if test -n "$ac_ct_OBJDUMP"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5268 $as_echo "$ac_ct_OBJDUMP" >&6; }
5269 else
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5272 fi
5273
5274 if test "x$ac_ct_OBJDUMP" = x; then
5275 OBJDUMP="false"
5276 else
5277 case $cross_compiling:$ac_tool_warned in
5278 yes:)
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5281 ac_tool_warned=yes ;;
5282 esac
5283 OBJDUMP=$ac_ct_OBJDUMP
5284 fi
5285 else
5286 OBJDUMP="$ac_cv_prog_OBJDUMP"
5287 fi
5288
5289 test -z "$OBJDUMP" && OBJDUMP=objdump
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5300 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5301 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 lt_cv_file_magic_cmd='$MAGIC_CMD'
5305 lt_cv_file_magic_test_file=
5306 lt_cv_deplibs_check_method='unknown'
5307 # Need to set the preceding variable on all platforms that support
5308 # interlibrary dependencies.
5309 # 'none' -- dependencies not supported.
5310 # `unknown' -- same as none, but documents that we really don't know.
5311 # 'pass_all' -- all dependencies passed with no checks.
5312 # 'test_compile' -- check by making test program.
5313 # 'file_magic [[regex]]' -- check by looking for files in library path
5314 # which responds to the $file_magic_cmd with a given extended regex.
5315 # If you have `file' or equivalent on your system and you're not sure
5316 # whether `pass_all' will *always* work, you probably want this one.
5317
5318 case $host_os in
5319 aix[4-9]*)
5320 lt_cv_deplibs_check_method=pass_all
5321 ;;
5322
5323 beos*)
5324 lt_cv_deplibs_check_method=pass_all
5325 ;;
5326
5327 bsdi[45]*)
5328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5329 lt_cv_file_magic_cmd='/usr/bin/file -L'
5330 lt_cv_file_magic_test_file=/shlib/libc.so
5331 ;;
5332
5333 cygwin*)
5334 # func_win32_libid is a shell function defined in ltmain.sh
5335 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5336 lt_cv_file_magic_cmd='func_win32_libid'
5337 ;;
5338
5339 mingw* | pw32*)
5340 # Base MSYS/MinGW do not provide the 'file' command needed by
5341 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5342 # unless we find 'file', for example because we are cross-compiling.
5343 if ( file / ) >/dev/null 2>&1; then
5344 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5345 lt_cv_file_magic_cmd='func_win32_libid'
5346 else
5347 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5348 lt_cv_file_magic_cmd='$OBJDUMP -f'
5349 fi
5350 ;;
5351
5352 cegcc)
5353 # use the weaker test based on 'objdump'. See mingw*.
5354 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5355 lt_cv_file_magic_cmd='$OBJDUMP -f'
5356 ;;
5357
5358 darwin* | rhapsody*)
5359 lt_cv_deplibs_check_method=pass_all
5360 ;;
5361
5362 freebsd* | dragonfly*)
5363 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5364 case $host_cpu in
5365 i*86 )
5366 # Not sure whether the presence of OpenBSD here was a mistake.
5367 # Let's accept both of them until this is cleared up.
5368 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5369 lt_cv_file_magic_cmd=/usr/bin/file
5370 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5371 ;;
5372 esac
5373 else
5374 lt_cv_deplibs_check_method=pass_all
5375 fi
5376 ;;
5377
5378 gnu*)
5379 lt_cv_deplibs_check_method=pass_all
5380 ;;
5381
5382 hpux10.20* | hpux11*)
5383 lt_cv_file_magic_cmd=/usr/bin/file
5384 case $host_cpu in
5385 ia64*)
5386 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5387 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5388 ;;
5389 hppa*64*)
5390 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5391 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5392 ;;
5393 *)
5394 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5395 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5396 ;;
5397 esac
5398 ;;
5399
5400 interix[3-9]*)
5401 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5403 ;;
5404
5405 irix5* | irix6* | nonstopux*)
5406 case $LD in
5407 *-32|*"-32 ") libmagic=32-bit;;
5408 *-n32|*"-n32 ") libmagic=N32;;
5409 *-64|*"-64 ") libmagic=64-bit;;
5410 *) libmagic=never-match;;
5411 esac
5412 lt_cv_deplibs_check_method=pass_all
5413 ;;
5414
5415 # This must be Linux ELF.
5416 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5417 lt_cv_deplibs_check_method=pass_all
5418 ;;
5419
5420 netbsd* | netbsdelf*-gnu)
5421 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5423 else
5424 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5425 fi
5426 ;;
5427
5428 newos6*)
5429 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5430 lt_cv_file_magic_cmd=/usr/bin/file
5431 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5432 ;;
5433
5434 *nto* | *qnx*)
5435 lt_cv_deplibs_check_method=pass_all
5436 ;;
5437
5438 openbsd*)
5439 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5441 else
5442 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5443 fi
5444 ;;
5445
5446 osf3* | osf4* | osf5*)
5447 lt_cv_deplibs_check_method=pass_all
5448 ;;
5449
5450 rdos*)
5451 lt_cv_deplibs_check_method=pass_all
5452 ;;
5453
5454 solaris*)
5455 lt_cv_deplibs_check_method=pass_all
5456 ;;
5457
5458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5459 lt_cv_deplibs_check_method=pass_all
5460 ;;
5461
5462 sysv4 | sysv4.3*)
5463 case $host_vendor in
5464 motorola)
5465 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]'
5466 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5467 ;;
5468 ncr)
5469 lt_cv_deplibs_check_method=pass_all
5470 ;;
5471 sequent)
5472 lt_cv_file_magic_cmd='/bin/file'
5473 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5474 ;;
5475 sni)
5476 lt_cv_file_magic_cmd='/bin/file'
5477 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5478 lt_cv_file_magic_test_file=/lib/libc.so
5479 ;;
5480 siemens)
5481 lt_cv_deplibs_check_method=pass_all
5482 ;;
5483 pc)
5484 lt_cv_deplibs_check_method=pass_all
5485 ;;
5486 esac
5487 ;;
5488
5489 tpf*)
5490 lt_cv_deplibs_check_method=pass_all
5491 ;;
5492 esac
5493
5494 fi
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5496 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5497 file_magic_cmd=$lt_cv_file_magic_cmd
5498 deplibs_check_method=$lt_cv_deplibs_check_method
5499 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512 if test -n "$ac_tool_prefix"; then
5513 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5514 set dummy ${ac_tool_prefix}ar; ac_word=$2
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if test "${ac_cv_prog_AR+set}" = set; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 if test -n "$AR"; then
5521 ac_cv_prog_AR="$AR" # Let the user override the test.
5522 else
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 for as_dir in $PATH
5525 do
5526 IFS=$as_save_IFS
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5530 ac_cv_prog_AR="${ac_tool_prefix}ar"
5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 break 2
5533 fi
5534 done
5535 done
5536 IFS=$as_save_IFS
5537
5538 fi
5539 fi
5540 AR=$ac_cv_prog_AR
5541 if test -n "$AR"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5543 $as_echo "$AR" >&6; }
5544 else
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5547 fi
5548
5549
5550 fi
5551 if test -z "$ac_cv_prog_AR"; then
5552 ac_ct_AR=$AR
5553 # Extract the first word of "ar", so it can be a program name with args.
5554 set dummy ar; ac_word=$2
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 if test -n "$ac_ct_AR"; then
5561 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5562 else
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 for as_dir in $PATH
5565 do
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5570 ac_cv_prog_ac_ct_AR="ar"
5571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 break 2
5573 fi
5574 done
5575 done
5576 IFS=$as_save_IFS
5577
5578 fi
5579 fi
5580 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5581 if test -n "$ac_ct_AR"; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5583 $as_echo "$ac_ct_AR" >&6; }
5584 else
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5587 fi
5588
5589 if test "x$ac_ct_AR" = x; then
5590 AR="false"
5591 else
5592 case $cross_compiling:$ac_tool_warned in
5593 yes:)
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5596 ac_tool_warned=yes ;;
5597 esac
5598 AR=$ac_ct_AR
5599 fi
5600 else
5601 AR="$ac_cv_prog_AR"
5602 fi
5603
5604 test -z "$AR" && AR=ar
5605 test -z "$AR_FLAGS" && AR_FLAGS=cru
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617 if test -n "$ac_tool_prefix"; then
5618 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5619 set dummy ${ac_tool_prefix}strip; ac_word=$2
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621 $as_echo_n "checking for $ac_word... " >&6; }
5622 if test "${ac_cv_prog_STRIP+set}" = set; then :
5623 $as_echo_n "(cached) " >&6
5624 else
5625 if test -n "$STRIP"; then
5626 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5627 else
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5630 do
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5635 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 break 2
5638 fi
5639 done
5640 done
5641 IFS=$as_save_IFS
5642
5643 fi
5644 fi
5645 STRIP=$ac_cv_prog_STRIP
5646 if test -n "$STRIP"; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5648 $as_echo "$STRIP" >&6; }
5649 else
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5652 fi
5653
5654
5655 fi
5656 if test -z "$ac_cv_prog_STRIP"; then
5657 ac_ct_STRIP=$STRIP
5658 # Extract the first word of "strip", so it can be a program name with args.
5659 set dummy strip; ac_word=$2
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5661 $as_echo_n "checking for $ac_word... " >&6; }
5662 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5663 $as_echo_n "(cached) " >&6
5664 else
5665 if test -n "$ac_ct_STRIP"; then
5666 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5667 else
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5670 do
5671 IFS=$as_save_IFS
5672 test -z "$as_dir" && as_dir=.
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5675 ac_cv_prog_ac_ct_STRIP="strip"
5676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 break 2
5678 fi
5679 done
5680 done
5681 IFS=$as_save_IFS
5682
5683 fi
5684 fi
5685 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5686 if test -n "$ac_ct_STRIP"; then
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5688 $as_echo "$ac_ct_STRIP" >&6; }
5689 else
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 $as_echo "no" >&6; }
5692 fi
5693
5694 if test "x$ac_ct_STRIP" = x; then
5695 STRIP=":"
5696 else
5697 case $cross_compiling:$ac_tool_warned in
5698 yes:)
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5701 ac_tool_warned=yes ;;
5702 esac
5703 STRIP=$ac_ct_STRIP
5704 fi
5705 else
5706 STRIP="$ac_cv_prog_STRIP"
5707 fi
5708
5709 test -z "$STRIP" && STRIP=:
5710
5711
5712
5713
5714
5715
5716 if test -n "$ac_tool_prefix"; then
5717 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5718 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720 $as_echo_n "checking for $ac_word... " >&6; }
5721 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5722 $as_echo_n "(cached) " >&6
5723 else
5724 if test -n "$RANLIB"; then
5725 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5726 else
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 for as_dir in $PATH
5729 do
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5734 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5737 fi
5738 done
5739 done
5740 IFS=$as_save_IFS
5741
5742 fi
5743 fi
5744 RANLIB=$ac_cv_prog_RANLIB
5745 if test -n "$RANLIB"; then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5747 $as_echo "$RANLIB" >&6; }
5748 else
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5751 fi
5752
5753
5754 fi
5755 if test -z "$ac_cv_prog_RANLIB"; then
5756 ac_ct_RANLIB=$RANLIB
5757 # Extract the first word of "ranlib", so it can be a program name with args.
5758 set dummy ranlib; ac_word=$2
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760 $as_echo_n "checking for $ac_word... " >&6; }
5761 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5764 if test -n "$ac_ct_RANLIB"; then
5765 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5766 else
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH
5769 do
5770 IFS=$as_save_IFS
5771 test -z "$as_dir" && as_dir=.
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5774 ac_cv_prog_ac_ct_RANLIB="ranlib"
5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 break 2
5777 fi
5778 done
5779 done
5780 IFS=$as_save_IFS
5781
5782 fi
5783 fi
5784 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5785 if test -n "$ac_ct_RANLIB"; then
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5787 $as_echo "$ac_ct_RANLIB" >&6; }
5788 else
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790 $as_echo "no" >&6; }
5791 fi
5792
5793 if test "x$ac_ct_RANLIB" = x; then
5794 RANLIB=":"
5795 else
5796 case $cross_compiling:$ac_tool_warned in
5797 yes:)
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5800 ac_tool_warned=yes ;;
5801 esac
5802 RANLIB=$ac_ct_RANLIB
5803 fi
5804 else
5805 RANLIB="$ac_cv_prog_RANLIB"
5806 fi
5807
5808 test -z "$RANLIB" && RANLIB=:
5809
5810
5811
5812
5813
5814
5815 # Determine commands to create old-style static archives.
5816 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5817 old_postinstall_cmds='chmod 644 $oldlib'
5818 old_postuninstall_cmds=
5819
5820 if test -n "$RANLIB"; then
5821 case $host_os in
5822 openbsd*)
5823 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5824 ;;
5825 *)
5826 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5827 ;;
5828 esac
5829 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5830 fi
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865 # If no C compiler was specified, use CC.
5866 LTCC=${LTCC-"$CC"}
5867
5868 # If no C compiler flags were specified, use CFLAGS.
5869 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5870
5871 # Allow CC to be a program name with arguments.
5872 compiler=$CC
5873
5874
5875 # Check for command to grab the raw symbol name followed by C symbol from nm.
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5877 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5878 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881
5882 # These are sane defaults that work on at least a few old systems.
5883 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5884
5885 # Character class describing NM global symbol codes.
5886 symcode='[BCDEGRST]'
5887
5888 # Regexp to match symbols that can be accessed directly from C.
5889 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5890
5891 # Define system-specific variables.
5892 case $host_os in
5893 aix*)
5894 symcode='[BCDT]'
5895 ;;
5896 cygwin* | mingw* | pw32* | cegcc*)
5897 symcode='[ABCDGISTW]'
5898 ;;
5899 hpux*)
5900 if test "$host_cpu" = ia64; then
5901 symcode='[ABCDEGRST]'
5902 fi
5903 ;;
5904 irix* | nonstopux*)
5905 symcode='[BCDEGRST]'
5906 ;;
5907 osf*)
5908 symcode='[BCDEGQRST]'
5909 ;;
5910 solaris*)
5911 symcode='[BDRT]'
5912 ;;
5913 sco3.2v5*)
5914 symcode='[DT]'
5915 ;;
5916 sysv4.2uw2*)
5917 symcode='[DT]'
5918 ;;
5919 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5920 symcode='[ABDT]'
5921 ;;
5922 sysv4)
5923 symcode='[DFNSTU]'
5924 ;;
5925 esac
5926
5927 # If we're using GNU nm, then use its standard symbol codes.
5928 case `$NM -V 2>&1` in
5929 *GNU* | *'with BFD'*)
5930 symcode='[ABCDGIRSTW]' ;;
5931 esac
5932
5933 # Transform an extracted symbol line into a proper C declaration.
5934 # Some systems (esp. on ia64) link data and code symbols differently,
5935 # so use this general approach.
5936 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5937
5938 # Transform an extracted symbol line into symbol name and symbol address
5939 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5940 lt_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'"
5941
5942 # Handle CRLF in mingw tool chain
5943 opt_cr=
5944 case $build_os in
5945 mingw*)
5946 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5947 ;;
5948 esac
5949
5950 # Try without a prefix underscore, then with it.
5951 for ac_symprfx in "" "_"; do
5952
5953 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5954 symxfrm="\\1 $ac_symprfx\\2 \\2"
5955
5956 # Write the raw and C identifiers.
5957 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5958 # Fake it for dumpbin and say T for any non-static function
5959 # and D for any global variable.
5960 # Also find C++ and __fastcall symbols from MSVC++,
5961 # which start with @ or ?.
5962 lt_cv_sys_global_symbol_pipe="$AWK '"\
5963 " {last_section=section; section=\$ 3};"\
5964 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5965 " \$ 0!~/External *\|/{next};"\
5966 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5967 " {if(hide[section]) next};"\
5968 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5969 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5970 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5971 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5972 " ' prfx=^$ac_symprfx"
5973 else
5974 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5975 fi
5976
5977 # Check to see that the pipe works correctly.
5978 pipe_works=no
5979
5980 rm -f conftest*
5981 cat > conftest.$ac_ext <<_LT_EOF
5982 #ifdef __cplusplus
5983 extern "C" {
5984 #endif
5985 char nm_test_var;
5986 void nm_test_func(void);
5987 void nm_test_func(void){}
5988 #ifdef __cplusplus
5989 }
5990 #endif
5991 int main(){nm_test_var='a';nm_test_func();return(0);}
5992 _LT_EOF
5993
5994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5995 (eval $ac_compile) 2>&5
5996 ac_status=$?
5997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5998 test $ac_status = 0; }; then
5999 # Now try to grab the symbols.
6000 nlist=conftest.nm
6001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6002 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6003 ac_status=$?
6004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6005 test $ac_status = 0; } && test -s "$nlist"; then
6006 # Try sorting and uniquifying the output.
6007 if sort "$nlist" | uniq > "$nlist"T; then
6008 mv -f "$nlist"T "$nlist"
6009 else
6010 rm -f "$nlist"T
6011 fi
6012
6013 # Make sure that we snagged all the symbols we need.
6014 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6015 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6016 cat <<_LT_EOF > conftest.$ac_ext
6017 #ifdef __cplusplus
6018 extern "C" {
6019 #endif
6020
6021 _LT_EOF
6022 # Now generate the symbol file.
6023 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6024
6025 cat <<_LT_EOF >> conftest.$ac_ext
6026
6027 /* The mapping between symbol names and symbols. */
6028 const struct {
6029 const char *name;
6030 void *address;
6031 }
6032 lt__PROGRAM__LTX_preloaded_symbols[] =
6033 {
6034 { "@PROGRAM@", (void *) 0 },
6035 _LT_EOF
6036 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6037 cat <<\_LT_EOF >> conftest.$ac_ext
6038 {0, (void *) 0}
6039 };
6040
6041 /* This works around a problem in FreeBSD linker */
6042 #ifdef FREEBSD_WORKAROUND
6043 static const void *lt_preloaded_setup() {
6044 return lt__PROGRAM__LTX_preloaded_symbols;
6045 }
6046 #endif
6047
6048 #ifdef __cplusplus
6049 }
6050 #endif
6051 _LT_EOF
6052 # Now try linking the two files.
6053 mv conftest.$ac_objext conftstm.$ac_objext
6054 lt_save_LIBS="$LIBS"
6055 lt_save_CFLAGS="$CFLAGS"
6056 LIBS="conftstm.$ac_objext"
6057 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6059 (eval $ac_link) 2>&5
6060 ac_status=$?
6061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6062 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6063 pipe_works=yes
6064 fi
6065 LIBS="$lt_save_LIBS"
6066 CFLAGS="$lt_save_CFLAGS"
6067 else
6068 echo "cannot find nm_test_func in $nlist" >&5
6069 fi
6070 else
6071 echo "cannot find nm_test_var in $nlist" >&5
6072 fi
6073 else
6074 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6075 fi
6076 else
6077 echo "$progname: failed program was:" >&5
6078 cat conftest.$ac_ext >&5
6079 fi
6080 rm -rf conftest* conftst*
6081
6082 # Do not use the global_symbol_pipe unless it works.
6083 if test "$pipe_works" = yes; then
6084 break
6085 else
6086 lt_cv_sys_global_symbol_pipe=
6087 fi
6088 done
6089
6090 fi
6091
6092 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6093 lt_cv_sys_global_symbol_to_cdecl=
6094 fi
6095 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6097 $as_echo "failed" >&6; }
6098 else
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6100 $as_echo "ok" >&6; }
6101 fi
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125 # Check whether --enable-libtool-lock was given.
6126 if test "${enable_libtool_lock+set}" = set; then :
6127 enableval=$enable_libtool_lock;
6128 fi
6129
6130 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6131
6132 # Some flags need to be propagated to the compiler or linker for good
6133 # libtool support.
6134 case $host in
6135 ia64-*-hpux*)
6136 # Find out which ABI we are using.
6137 echo 'int i;' > conftest.$ac_ext
6138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6139 (eval $ac_compile) 2>&5
6140 ac_status=$?
6141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6142 test $ac_status = 0; }; then
6143 case `/usr/bin/file conftest.$ac_objext` in
6144 *ELF-32*)
6145 HPUX_IA64_MODE="32"
6146 ;;
6147 *ELF-64*)
6148 HPUX_IA64_MODE="64"
6149 ;;
6150 esac
6151 fi
6152 rm -rf conftest*
6153 ;;
6154 *-*-irix6*)
6155 # Find out which ABI we are using.
6156 echo '#line 6156 "configure"' > conftest.$ac_ext
6157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6158 (eval $ac_compile) 2>&5
6159 ac_status=$?
6160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6161 test $ac_status = 0; }; then
6162 if test "$lt_cv_prog_gnu_ld" = yes; then
6163 case `/usr/bin/file conftest.$ac_objext` in
6164 *32-bit*)
6165 LD="${LD-ld} -melf32bsmip"
6166 ;;
6167 *N32*)
6168 LD="${LD-ld} -melf32bmipn32"
6169 ;;
6170 *64-bit*)
6171 LD="${LD-ld} -melf64bmip"
6172 ;;
6173 esac
6174 else
6175 case `/usr/bin/file conftest.$ac_objext` in
6176 *32-bit*)
6177 LD="${LD-ld} -32"
6178 ;;
6179 *N32*)
6180 LD="${LD-ld} -n32"
6181 ;;
6182 *64-bit*)
6183 LD="${LD-ld} -64"
6184 ;;
6185 esac
6186 fi
6187 fi
6188 rm -rf conftest*
6189 ;;
6190
6191 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6192 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6193 # Find out which ABI we are using.
6194 echo 'int i;' > conftest.$ac_ext
6195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6196 (eval $ac_compile) 2>&5
6197 ac_status=$?
6198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6199 test $ac_status = 0; }; then
6200 case `/usr/bin/file conftest.o` in
6201 *32-bit*)
6202 case $host in
6203 x86_64-*kfreebsd*-gnu)
6204 LD="${LD-ld} -m elf_i386_fbsd"
6205 ;;
6206 x86_64-*linux*)
6207 LD="${LD-ld} -m elf_i386"
6208 ;;
6209 ppc64-*linux*|powerpc64-*linux*)
6210 LD="${LD-ld} -m elf32ppclinux"
6211 ;;
6212 s390x-*linux*)
6213 LD="${LD-ld} -m elf_s390"
6214 ;;
6215 sparc64-*linux*)
6216 LD="${LD-ld} -m elf32_sparc"
6217 ;;
6218 esac
6219 ;;
6220 *64-bit*)
6221 case $host in
6222 x86_64-*kfreebsd*-gnu)
6223 LD="${LD-ld} -m elf_x86_64_fbsd"
6224 ;;
6225 x86_64-*linux*)
6226 LD="${LD-ld} -m elf_x86_64"
6227 ;;
6228 ppc*-*linux*|powerpc*-*linux*)
6229 LD="${LD-ld} -m elf64ppc"
6230 ;;
6231 s390*-*linux*|s390*-*tpf*)
6232 LD="${LD-ld} -m elf64_s390"
6233 ;;
6234 sparc*-*linux*)
6235 LD="${LD-ld} -m elf64_sparc"
6236 ;;
6237 esac
6238 ;;
6239 esac
6240 fi
6241 rm -rf conftest*
6242 ;;
6243
6244 *-*-sco3.2v5*)
6245 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6246 SAVE_CFLAGS="$CFLAGS"
6247 CFLAGS="$CFLAGS -belf"
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6249 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6250 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 ac_ext=c
6254 ac_cpp='$CPP $CPPFLAGS'
6255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6258
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6261
6262 int
6263 main ()
6264 {
6265
6266 ;
6267 return 0;
6268 }
6269 _ACEOF
6270 if ac_fn_c_try_link "$LINENO"; then :
6271 lt_cv_cc_needs_belf=yes
6272 else
6273 lt_cv_cc_needs_belf=no
6274 fi
6275 rm -f core conftest.err conftest.$ac_objext \
6276 conftest$ac_exeext conftest.$ac_ext
6277 ac_ext=c
6278 ac_cpp='$CPP $CPPFLAGS'
6279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6282
6283 fi
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6285 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6286 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6287 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6288 CFLAGS="$SAVE_CFLAGS"
6289 fi
6290 ;;
6291 sparc*-*solaris*)
6292 # Find out which ABI we are using.
6293 echo 'int i;' > conftest.$ac_ext
6294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6295 (eval $ac_compile) 2>&5
6296 ac_status=$?
6297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6298 test $ac_status = 0; }; then
6299 case `/usr/bin/file conftest.o` in
6300 *64-bit*)
6301 case $lt_cv_prog_gnu_ld in
6302 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6303 *)
6304 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6305 LD="${LD-ld} -64"
6306 fi
6307 ;;
6308 esac
6309 ;;
6310 esac
6311 fi
6312 rm -rf conftest*
6313 ;;
6314 esac
6315
6316 need_locks="$enable_libtool_lock"
6317
6318
6319 case $host_os in
6320 rhapsody* | darwin*)
6321 if test -n "$ac_tool_prefix"; then
6322 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6323 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325 $as_echo_n "checking for $ac_word... " >&6; }
6326 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 if test -n "$DSYMUTIL"; then
6330 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6331 else
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 for as_dir in $PATH
6334 do
6335 IFS=$as_save_IFS
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 break 2
6342 fi
6343 done
6344 done
6345 IFS=$as_save_IFS
6346
6347 fi
6348 fi
6349 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6350 if test -n "$DSYMUTIL"; then
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6352 $as_echo "$DSYMUTIL" >&6; }
6353 else
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355 $as_echo "no" >&6; }
6356 fi
6357
6358
6359 fi
6360 if test -z "$ac_cv_prog_DSYMUTIL"; then
6361 ac_ct_DSYMUTIL=$DSYMUTIL
6362 # Extract the first word of "dsymutil", so it can be a program name with args.
6363 set dummy dsymutil; ac_word=$2
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6365 $as_echo_n "checking for $ac_word... " >&6; }
6366 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6367 $as_echo_n "(cached) " >&6
6368 else
6369 if test -n "$ac_ct_DSYMUTIL"; then
6370 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6371 else
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6374 do
6375 IFS=$as_save_IFS
6376 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 break 2
6382 fi
6383 done
6384 done
6385 IFS=$as_save_IFS
6386
6387 fi
6388 fi
6389 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6390 if test -n "$ac_ct_DSYMUTIL"; then
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6392 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6393 else
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395 $as_echo "no" >&6; }
6396 fi
6397
6398 if test "x$ac_ct_DSYMUTIL" = x; then
6399 DSYMUTIL=":"
6400 else
6401 case $cross_compiling:$ac_tool_warned in
6402 yes:)
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6405 ac_tool_warned=yes ;;
6406 esac
6407 DSYMUTIL=$ac_ct_DSYMUTIL
6408 fi
6409 else
6410 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6411 fi
6412
6413 if test -n "$ac_tool_prefix"; then
6414 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6415 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417 $as_echo_n "checking for $ac_word... " >&6; }
6418 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6419 $as_echo_n "(cached) " >&6
6420 else
6421 if test -n "$NMEDIT"; then
6422 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6423 else
6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 for as_dir in $PATH
6426 do
6427 IFS=$as_save_IFS
6428 test -z "$as_dir" && as_dir=.
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6431 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 break 2
6434 fi
6435 done
6436 done
6437 IFS=$as_save_IFS
6438
6439 fi
6440 fi
6441 NMEDIT=$ac_cv_prog_NMEDIT
6442 if test -n "$NMEDIT"; then
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6444 $as_echo "$NMEDIT" >&6; }
6445 else
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447 $as_echo "no" >&6; }
6448 fi
6449
6450
6451 fi
6452 if test -z "$ac_cv_prog_NMEDIT"; then
6453 ac_ct_NMEDIT=$NMEDIT
6454 # Extract the first word of "nmedit", so it can be a program name with args.
6455 set dummy nmedit; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6459 $as_echo_n "(cached) " >&6
6460 else
6461 if test -n "$ac_ct_NMEDIT"; then
6462 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6463 else
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6466 do
6467 IFS=$as_save_IFS
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 break 2
6474 fi
6475 done
6476 done
6477 IFS=$as_save_IFS
6478
6479 fi
6480 fi
6481 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6482 if test -n "$ac_ct_NMEDIT"; then
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6484 $as_echo "$ac_ct_NMEDIT" >&6; }
6485 else
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6488 fi
6489
6490 if test "x$ac_ct_NMEDIT" = x; then
6491 NMEDIT=":"
6492 else
6493 case $cross_compiling:$ac_tool_warned in
6494 yes:)
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6497 ac_tool_warned=yes ;;
6498 esac
6499 NMEDIT=$ac_ct_NMEDIT
6500 fi
6501 else
6502 NMEDIT="$ac_cv_prog_NMEDIT"
6503 fi
6504
6505 if test -n "$ac_tool_prefix"; then
6506 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6507 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6509 $as_echo_n "checking for $ac_word... " >&6; }
6510 if test "${ac_cv_prog_LIPO+set}" = set; then :
6511 $as_echo_n "(cached) " >&6
6512 else
6513 if test -n "$LIPO"; then
6514 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6515 else
6516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 for as_dir in $PATH
6518 do
6519 IFS=$as_save_IFS
6520 test -z "$as_dir" && as_dir=.
6521 for ac_exec_ext in '' $ac_executable_extensions; do
6522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6523 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 break 2
6526 fi
6527 done
6528 done
6529 IFS=$as_save_IFS
6530
6531 fi
6532 fi
6533 LIPO=$ac_cv_prog_LIPO
6534 if test -n "$LIPO"; then
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6536 $as_echo "$LIPO" >&6; }
6537 else
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6539 $as_echo "no" >&6; }
6540 fi
6541
6542
6543 fi
6544 if test -z "$ac_cv_prog_LIPO"; then
6545 ac_ct_LIPO=$LIPO
6546 # Extract the first word of "lipo", so it can be a program name with args.
6547 set dummy lipo; ac_word=$2
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549 $as_echo_n "checking for $ac_word... " >&6; }
6550 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6551 $as_echo_n "(cached) " >&6
6552 else
6553 if test -n "$ac_ct_LIPO"; then
6554 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6555 else
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH
6558 do
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6563 ac_cv_prog_ac_ct_LIPO="lipo"
6564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 break 2
6566 fi
6567 done
6568 done
6569 IFS=$as_save_IFS
6570
6571 fi
6572 fi
6573 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6574 if test -n "$ac_ct_LIPO"; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6576 $as_echo "$ac_ct_LIPO" >&6; }
6577 else
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 $as_echo "no" >&6; }
6580 fi
6581
6582 if test "x$ac_ct_LIPO" = x; then
6583 LIPO=":"
6584 else
6585 case $cross_compiling:$ac_tool_warned in
6586 yes:)
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6589 ac_tool_warned=yes ;;
6590 esac
6591 LIPO=$ac_ct_LIPO
6592 fi
6593 else
6594 LIPO="$ac_cv_prog_LIPO"
6595 fi
6596
6597 if test -n "$ac_tool_prefix"; then
6598 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6599 set dummy ${ac_tool_prefix}otool; ac_word=$2
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6601 $as_echo_n "checking for $ac_word... " >&6; }
6602 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6603 $as_echo_n "(cached) " >&6
6604 else
6605 if test -n "$OTOOL"; then
6606 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6607 else
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 for as_dir in $PATH
6610 do
6611 IFS=$as_save_IFS
6612 test -z "$as_dir" && as_dir=.
6613 for ac_exec_ext in '' $ac_executable_extensions; do
6614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6615 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6617 break 2
6618 fi
6619 done
6620 done
6621 IFS=$as_save_IFS
6622
6623 fi
6624 fi
6625 OTOOL=$ac_cv_prog_OTOOL
6626 if test -n "$OTOOL"; then
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6628 $as_echo "$OTOOL" >&6; }
6629 else
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6631 $as_echo "no" >&6; }
6632 fi
6633
6634
6635 fi
6636 if test -z "$ac_cv_prog_OTOOL"; then
6637 ac_ct_OTOOL=$OTOOL
6638 # Extract the first word of "otool", so it can be a program name with args.
6639 set dummy otool; ac_word=$2
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641 $as_echo_n "checking for $ac_word... " >&6; }
6642 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6643 $as_echo_n "(cached) " >&6
6644 else
6645 if test -n "$ac_ct_OTOOL"; then
6646 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6647 else
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH
6650 do
6651 IFS=$as_save_IFS
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
6654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6655 ac_cv_prog_ac_ct_OTOOL="otool"
6656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6657 break 2
6658 fi
6659 done
6660 done
6661 IFS=$as_save_IFS
6662
6663 fi
6664 fi
6665 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6666 if test -n "$ac_ct_OTOOL"; then
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6668 $as_echo "$ac_ct_OTOOL" >&6; }
6669 else
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671 $as_echo "no" >&6; }
6672 fi
6673
6674 if test "x$ac_ct_OTOOL" = x; then
6675 OTOOL=":"
6676 else
6677 case $cross_compiling:$ac_tool_warned in
6678 yes:)
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6681 ac_tool_warned=yes ;;
6682 esac
6683 OTOOL=$ac_ct_OTOOL
6684 fi
6685 else
6686 OTOOL="$ac_cv_prog_OTOOL"
6687 fi
6688
6689 if test -n "$ac_tool_prefix"; then
6690 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6691 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693 $as_echo_n "checking for $ac_word... " >&6; }
6694 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6695 $as_echo_n "(cached) " >&6
6696 else
6697 if test -n "$OTOOL64"; then
6698 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6699 else
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 for as_dir in $PATH
6702 do
6703 IFS=$as_save_IFS
6704 test -z "$as_dir" && as_dir=.
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6707 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 break 2
6710 fi
6711 done
6712 done
6713 IFS=$as_save_IFS
6714
6715 fi
6716 fi
6717 OTOOL64=$ac_cv_prog_OTOOL64
6718 if test -n "$OTOOL64"; then
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6720 $as_echo "$OTOOL64" >&6; }
6721 else
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723 $as_echo "no" >&6; }
6724 fi
6725
6726
6727 fi
6728 if test -z "$ac_cv_prog_OTOOL64"; then
6729 ac_ct_OTOOL64=$OTOOL64
6730 # Extract the first word of "otool64", so it can be a program name with args.
6731 set dummy otool64; ac_word=$2
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6735 $as_echo_n "(cached) " >&6
6736 else
6737 if test -n "$ac_ct_OTOOL64"; then
6738 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6739 else
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6742 do
6743 IFS=$as_save_IFS
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747 ac_cv_prog_ac_ct_OTOOL64="otool64"
6748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 break 2
6750 fi
6751 done
6752 done
6753 IFS=$as_save_IFS
6754
6755 fi
6756 fi
6757 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6758 if test -n "$ac_ct_OTOOL64"; then
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6760 $as_echo "$ac_ct_OTOOL64" >&6; }
6761 else
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763 $as_echo "no" >&6; }
6764 fi
6765
6766 if test "x$ac_ct_OTOOL64" = x; then
6767 OTOOL64=":"
6768 else
6769 case $cross_compiling:$ac_tool_warned in
6770 yes:)
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6773 ac_tool_warned=yes ;;
6774 esac
6775 OTOOL64=$ac_ct_OTOOL64
6776 fi
6777 else
6778 OTOOL64="$ac_cv_prog_OTOOL64"
6779 fi
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6808 $as_echo_n "checking for -single_module linker flag... " >&6; }
6809 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6810 $as_echo_n "(cached) " >&6
6811 else
6812 lt_cv_apple_cc_single_mod=no
6813 if test -z "${LT_MULTI_MODULE}"; then
6814 # By default we will add the -single_module flag. You can override
6815 # by either setting the environment variable LT_MULTI_MODULE
6816 # non-empty at configure time, or by adding -multi_module to the
6817 # link flags.
6818 rm -rf libconftest.dylib*
6819 echo "int foo(void){return 1;}" > conftest.c
6820 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6821 -dynamiclib -Wl,-single_module conftest.c" >&5
6822 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6823 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6824 _lt_result=$?
6825 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6826 lt_cv_apple_cc_single_mod=yes
6827 else
6828 cat conftest.err >&5
6829 fi
6830 rm -rf libconftest.dylib*
6831 rm -f conftest.*
6832 fi
6833 fi
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6835 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6837 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6838 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 lt_cv_ld_exported_symbols_list=no
6842 save_LDFLAGS=$LDFLAGS
6843 echo "_main" > conftest.sym
6844 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6847
6848 int
6849 main ()
6850 {
6851
6852 ;
6853 return 0;
6854 }
6855 _ACEOF
6856 if ac_fn_c_try_link "$LINENO"; then :
6857 lt_cv_ld_exported_symbols_list=yes
6858 else
6859 lt_cv_ld_exported_symbols_list=no
6860 fi
6861 rm -f core conftest.err conftest.$ac_objext \
6862 conftest$ac_exeext conftest.$ac_ext
6863 LDFLAGS="$save_LDFLAGS"
6864
6865 fi
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6867 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6868 case $host_os in
6869 rhapsody* | darwin1.[012])
6870 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6871 darwin1.*)
6872 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6873 darwin*) # darwin 5.x on
6874 # if running on 10.5 or later, the deployment target defaults
6875 # to the OS version, if on x86, and 10.4, the deployment
6876 # target defaults to 10.4. Don't you love it?
6877 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6878 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6879 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6880 10.[012]*)
6881 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6882 10.*)
6883 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6884 esac
6885 ;;
6886 esac
6887 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6888 _lt_dar_single_mod='$single_module'
6889 fi
6890 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6891 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6892 else
6893 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6894 fi
6895 if test "$DSYMUTIL" != ":"; then
6896 _lt_dsymutil='~$DSYMUTIL $lib || :'
6897 else
6898 _lt_dsymutil=
6899 fi
6900 ;;
6901 esac
6902
6903 ac_ext=c
6904 ac_cpp='$CPP $CPPFLAGS'
6905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6909 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6910 # On Suns, sometimes $CPP names a directory.
6911 if test -n "$CPP" && test -d "$CPP"; then
6912 CPP=
6913 fi
6914 if test -z "$CPP"; then
6915 if test "${ac_cv_prog_CPP+set}" = set; then :
6916 $as_echo_n "(cached) " >&6
6917 else
6918 # Double quotes because CPP needs to be expanded
6919 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6920 do
6921 ac_preproc_ok=false
6922 for ac_c_preproc_warn_flag in '' yes
6923 do
6924 # Use a header file that comes with gcc, so configuring glibc
6925 # with a fresh cross-compiler works.
6926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6927 # <limits.h> exists even on freestanding compilers.
6928 # On the NeXT, cc -E runs the code through the compiler's parser,
6929 # not just through cpp. "Syntax error" is here to catch this case.
6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6932 #ifdef __STDC__
6933 # include <limits.h>
6934 #else
6935 # include <assert.h>
6936 #endif
6937 Syntax error
6938 _ACEOF
6939 if ac_fn_c_try_cpp "$LINENO"; then :
6940
6941 else
6942 # Broken: fails on valid input.
6943 continue
6944 fi
6945 rm -f conftest.err conftest.i conftest.$ac_ext
6946
6947 # OK, works on sane cases. Now check whether nonexistent headers
6948 # can be detected and how.
6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h. */
6951 #include <ac_nonexistent.h>
6952 _ACEOF
6953 if ac_fn_c_try_cpp "$LINENO"; then :
6954 # Broken: success on invalid input.
6955 continue
6956 else
6957 # Passes both tests.
6958 ac_preproc_ok=:
6959 break
6960 fi
6961 rm -f conftest.err conftest.i conftest.$ac_ext
6962
6963 done
6964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6965 rm -f conftest.i conftest.err conftest.$ac_ext
6966 if $ac_preproc_ok; then :
6967 break
6968 fi
6969
6970 done
6971 ac_cv_prog_CPP=$CPP
6972
6973 fi
6974 CPP=$ac_cv_prog_CPP
6975 else
6976 ac_cv_prog_CPP=$CPP
6977 fi
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6979 $as_echo "$CPP" >&6; }
6980 ac_preproc_ok=false
6981 for ac_c_preproc_warn_flag in '' yes
6982 do
6983 # Use a header file that comes with gcc, so configuring glibc
6984 # with a fresh cross-compiler works.
6985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6986 # <limits.h> exists even on freestanding compilers.
6987 # On the NeXT, cc -E runs the code through the compiler's parser,
6988 # not just through cpp. "Syntax error" is here to catch this case.
6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
6991 #ifdef __STDC__
6992 # include <limits.h>
6993 #else
6994 # include <assert.h>
6995 #endif
6996 Syntax error
6997 _ACEOF
6998 if ac_fn_c_try_cpp "$LINENO"; then :
6999
7000 else
7001 # Broken: fails on valid input.
7002 continue
7003 fi
7004 rm -f conftest.err conftest.i conftest.$ac_ext
7005
7006 # OK, works on sane cases. Now check whether nonexistent headers
7007 # can be detected and how.
7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h. */
7010 #include <ac_nonexistent.h>
7011 _ACEOF
7012 if ac_fn_c_try_cpp "$LINENO"; then :
7013 # Broken: success on invalid input.
7014 continue
7015 else
7016 # Passes both tests.
7017 ac_preproc_ok=:
7018 break
7019 fi
7020 rm -f conftest.err conftest.i conftest.$ac_ext
7021
7022 done
7023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7024 rm -f conftest.i conftest.err conftest.$ac_ext
7025 if $ac_preproc_ok; then :
7026
7027 else
7028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7030 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7031 See \`config.log' for more details" "$LINENO" 5 ; }
7032 fi
7033
7034 ac_ext=c
7035 ac_cpp='$CPP $CPPFLAGS'
7036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7039
7040
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7042 $as_echo_n "checking for ANSI C header files... " >&6; }
7043 if test "${ac_cv_header_stdc+set}" = set; then :
7044 $as_echo_n "(cached) " >&6
7045 else
7046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047 /* end confdefs.h. */
7048 #include <stdlib.h>
7049 #include <stdarg.h>
7050 #include <string.h>
7051 #include <float.h>
7052
7053 int
7054 main ()
7055 {
7056
7057 ;
7058 return 0;
7059 }
7060 _ACEOF
7061 if ac_fn_c_try_compile "$LINENO"; then :
7062 ac_cv_header_stdc=yes
7063 else
7064 ac_cv_header_stdc=no
7065 fi
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067
7068 if test $ac_cv_header_stdc = yes; then
7069 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071 /* end confdefs.h. */
7072 #include <string.h>
7073
7074 _ACEOF
7075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7076 $EGREP "memchr" >/dev/null 2>&1; then :
7077
7078 else
7079 ac_cv_header_stdc=no
7080 fi
7081 rm -f conftest*
7082
7083 fi
7084
7085 if test $ac_cv_header_stdc = yes; then
7086 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h. */
7089 #include <stdlib.h>
7090
7091 _ACEOF
7092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7093 $EGREP "free" >/dev/null 2>&1; then :
7094
7095 else
7096 ac_cv_header_stdc=no
7097 fi
7098 rm -f conftest*
7099
7100 fi
7101
7102 if test $ac_cv_header_stdc = yes; then
7103 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7104 if test "$cross_compiling" = yes; then :
7105 :
7106 else
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7109 #include <ctype.h>
7110 #include <stdlib.h>
7111 #if ((' ' & 0x0FF) == 0x020)
7112 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7113 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7114 #else
7115 # define ISLOWER(c) \
7116 (('a' <= (c) && (c) <= 'i') \
7117 || ('j' <= (c) && (c) <= 'r') \
7118 || ('s' <= (c) && (c) <= 'z'))
7119 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7120 #endif
7121
7122 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7123 int
7124 main ()
7125 {
7126 int i;
7127 for (i = 0; i < 256; i++)
7128 if (XOR (islower (i), ISLOWER (i))
7129 || toupper (i) != TOUPPER (i))
7130 return 2;
7131 return 0;
7132 }
7133 _ACEOF
7134 if ac_fn_c_try_run "$LINENO"; then :
7135
7136 else
7137 ac_cv_header_stdc=no
7138 fi
7139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7140 conftest.$ac_objext conftest.beam conftest.$ac_ext
7141 fi
7142
7143 fi
7144 fi
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7146 $as_echo "$ac_cv_header_stdc" >&6; }
7147 if test $ac_cv_header_stdc = yes; then
7148
7149 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7150
7151 fi
7152
7153 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7154 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7155 inttypes.h stdint.h unistd.h
7156 do :
7157 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7158 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7159 "
7160 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7161 cat >>confdefs.h <<_ACEOF
7162 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7163 _ACEOF
7164
7165 fi
7166
7167 done
7168
7169
7170 for ac_header in dlfcn.h
7171 do :
7172 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7173 "
7174 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7175 cat >>confdefs.h <<_ACEOF
7176 #define HAVE_DLFCN_H 1
7177 _ACEOF
7178
7179 fi
7180
7181 done
7182
7183
7184
7185 ac_ext=cpp
7186 ac_cpp='$CXXCPP $CPPFLAGS'
7187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7190 if test -z "$CXX"; then
7191 if test -n "$CCC"; then
7192 CXX=$CCC
7193 else
7194 if test -n "$ac_tool_prefix"; then
7195 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7196 do
7197 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7198 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200 $as_echo_n "checking for $ac_word... " >&6; }
7201 if test "${ac_cv_prog_CXX+set}" = set; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7204 if test -n "$CXX"; then
7205 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7206 else
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 for as_dir in $PATH
7209 do
7210 IFS=$as_save_IFS
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7214 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 break 2
7217 fi
7218 done
7219 done
7220 IFS=$as_save_IFS
7221
7222 fi
7223 fi
7224 CXX=$ac_cv_prog_CXX
7225 if test -n "$CXX"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7227 $as_echo "$CXX" >&6; }
7228 else
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7231 fi
7232
7233
7234 test -n "$CXX" && break
7235 done
7236 fi
7237 if test -z "$CXX"; then
7238 ac_ct_CXX=$CXX
7239 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7240 do
7241 # Extract the first word of "$ac_prog", so it can be a program name with args.
7242 set dummy $ac_prog; ac_word=$2
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244 $as_echo_n "checking for $ac_word... " >&6; }
7245 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7246 $as_echo_n "(cached) " >&6
7247 else
7248 if test -n "$ac_ct_CXX"; then
7249 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7250 else
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 for as_dir in $PATH
7253 do
7254 IFS=$as_save_IFS
7255 test -z "$as_dir" && as_dir=.
7256 for ac_exec_ext in '' $ac_executable_extensions; do
7257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7258 ac_cv_prog_ac_ct_CXX="$ac_prog"
7259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7260 break 2
7261 fi
7262 done
7263 done
7264 IFS=$as_save_IFS
7265
7266 fi
7267 fi
7268 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7269 if test -n "$ac_ct_CXX"; then
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7271 $as_echo "$ac_ct_CXX" >&6; }
7272 else
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274 $as_echo "no" >&6; }
7275 fi
7276
7277
7278 test -n "$ac_ct_CXX" && break
7279 done
7280
7281 if test "x$ac_ct_CXX" = x; then
7282 CXX="g++"
7283 else
7284 case $cross_compiling:$ac_tool_warned in
7285 yes:)
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7288 ac_tool_warned=yes ;;
7289 esac
7290 CXX=$ac_ct_CXX
7291 fi
7292 fi
7293
7294 fi
7295 fi
7296 # Provide some information about the compiler.
7297 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7298 set X $ac_compile
7299 ac_compiler=$2
7300 for ac_option in --version -v -V -qversion; do
7301 { { ac_try="$ac_compiler $ac_option >&5"
7302 case "(($ac_try" in
7303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7304 *) ac_try_echo=$ac_try;;
7305 esac
7306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7307 $as_echo "$ac_try_echo"; } >&5
7308 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7309 ac_status=$?
7310 if test -s conftest.err; then
7311 sed '10a\
7312 ... rest of stderr output deleted ...
7313 10q' conftest.err >conftest.er1
7314 cat conftest.er1 >&5
7315 fi
7316 rm -f conftest.er1 conftest.err
7317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7318 test $ac_status = 0; }
7319 done
7320
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7322 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7323 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7324 $as_echo_n "(cached) " >&6
7325 else
7326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327 /* end confdefs.h. */
7328
7329 int
7330 main ()
7331 {
7332 #ifndef __GNUC__
7333 choke me
7334 #endif
7335
7336 ;
7337 return 0;
7338 }
7339 _ACEOF
7340 if ac_fn_cxx_try_compile "$LINENO"; then :
7341 ac_compiler_gnu=yes
7342 else
7343 ac_compiler_gnu=no
7344 fi
7345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7346 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7347
7348 fi
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7350 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7351 if test $ac_compiler_gnu = yes; then
7352 GXX=yes
7353 else
7354 GXX=
7355 fi
7356 ac_test_CXXFLAGS=${CXXFLAGS+set}
7357 ac_save_CXXFLAGS=$CXXFLAGS
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7359 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7360 if test "${ac_cv_prog_cxx_g+set}" = set; then :
7361 $as_echo_n "(cached) " >&6
7362 else
7363 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7364 ac_cxx_werror_flag=yes
7365 ac_cv_prog_cxx_g=no
7366 CXXFLAGS="-g"
7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368 /* end confdefs.h. */
7369
7370 int
7371 main ()
7372 {
7373
7374 ;
7375 return 0;
7376 }
7377 _ACEOF
7378 if ac_fn_cxx_try_compile "$LINENO"; then :
7379 ac_cv_prog_cxx_g=yes
7380 else
7381 CXXFLAGS=""
7382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383 /* end confdefs.h. */
7384
7385 int
7386 main ()
7387 {
7388
7389 ;
7390 return 0;
7391 }
7392 _ACEOF
7393 if ac_fn_cxx_try_compile "$LINENO"; then :
7394
7395 else
7396 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7397 CXXFLAGS="-g"
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399 /* end confdefs.h. */
7400
7401 int
7402 main ()
7403 {
7404
7405 ;
7406 return 0;
7407 }
7408 _ACEOF
7409 if ac_fn_cxx_try_compile "$LINENO"; then :
7410 ac_cv_prog_cxx_g=yes
7411 fi
7412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7413 fi
7414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7415 fi
7416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7417 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7418 fi
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7420 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7421 if test "$ac_test_CXXFLAGS" = set; then
7422 CXXFLAGS=$ac_save_CXXFLAGS
7423 elif test $ac_cv_prog_cxx_g = yes; then
7424 if test "$GXX" = yes; then
7425 CXXFLAGS="-g -O2"
7426 else
7427 CXXFLAGS="-g"
7428 fi
7429 else
7430 if test "$GXX" = yes; then
7431 CXXFLAGS="-O2"
7432 else
7433 CXXFLAGS=
7434 fi
7435 fi
7436 ac_ext=c
7437 ac_cpp='$CPP $CPPFLAGS'
7438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7441
7442 depcc="$CXX" am_compiler_list=
7443
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7445 $as_echo_n "checking dependency style of $depcc... " >&6; }
7446 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7450 # We make a subdir and do the tests there. Otherwise we can end up
7451 # making bogus files that we don't know about and never remove. For
7452 # instance it was reported that on HP-UX the gcc test will end up
7453 # making a dummy file named `D' -- because `-MD' means `put the output
7454 # in D'.
7455 mkdir conftest.dir
7456 # Copy depcomp to subdir because otherwise we won't find it if we're
7457 # using a relative directory.
7458 cp "$am_depcomp" conftest.dir
7459 cd conftest.dir
7460 # We will build objects and dependencies in a subdirectory because
7461 # it helps to detect inapplicable dependency modes. For instance
7462 # both Tru64's cc and ICC support -MD to output dependencies as a
7463 # side effect of compilation, but ICC will put the dependencies in
7464 # the current directory while Tru64 will put them in the object
7465 # directory.
7466 mkdir sub
7467
7468 am_cv_CXX_dependencies_compiler_type=none
7469 if test "$am_compiler_list" = ""; then
7470 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7471 fi
7472 for depmode in $am_compiler_list; do
7473 # Setup a source with many dependencies, because some compilers
7474 # like to wrap large dependency lists on column 80 (with \), and
7475 # we should not choose a depcomp mode which is confused by this.
7476 #
7477 # We need to recreate these files for each test, as the compiler may
7478 # overwrite some of them when testing with obscure command lines.
7479 # This happens at least with the AIX C compiler.
7480 : > sub/conftest.c
7481 for i in 1 2 3 4 5 6; do
7482 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7483 : > sub/conftst$i.h
7484 done
7485 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7486
7487 case $depmode in
7488 nosideeffect)
7489 # after this tag, mechanisms are not by side-effect, so they'll
7490 # only be used when explicitly requested
7491 if test "x$enable_dependency_tracking" = xyes; then
7492 continue
7493 else
7494 break
7495 fi
7496 ;;
7497 none) break ;;
7498 esac
7499 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7500 # mode. It turns out that the SunPro C++ compiler does not properly
7501 # handle `-M -o', and we need to detect this.
7502 if depmode=$depmode \
7503 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7504 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7505 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7506 >/dev/null 2>conftest.err &&
7507 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7508 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7509 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7510 # icc doesn't choke on unknown options, it will just issue warnings
7511 # (even with -Werror). So we grep stderr for any message
7512 # that says an option was ignored.
7513 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
7514 am_cv_CXX_dependencies_compiler_type=$depmode
7515 break
7516 fi
7517 fi
7518 done
7519
7520 cd ..
7521 rm -rf conftest.dir
7522 else
7523 am_cv_CXX_dependencies_compiler_type=none
7524 fi
7525
7526 fi
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7528 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7529 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7530
7531
7532
7533 if
7534 test "x$enable_dependency_tracking" != xno \
7535 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7536 am__fastdepCXX_TRUE=
7537 am__fastdepCXX_FALSE='#'
7538 else
7539 am__fastdepCXX_TRUE='#'
7540 am__fastdepCXX_FALSE=
7541 fi
7542
7543
7544 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7545 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7546 (test "X$CXX" != "Xg++"))) ; then
7547 ac_ext=cpp
7548 ac_cpp='$CXXCPP $CPPFLAGS'
7549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7553 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7554 if test -z "$CXXCPP"; then
7555 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7556 $as_echo_n "(cached) " >&6
7557 else
7558 # Double quotes because CXXCPP needs to be expanded
7559 for CXXCPP in "$CXX -E" "/lib/cpp"
7560 do
7561 ac_preproc_ok=false
7562 for ac_cxx_preproc_warn_flag in '' yes
7563 do
7564 # Use a header file that comes with gcc, so configuring glibc
7565 # with a fresh cross-compiler works.
7566 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7567 # <limits.h> exists even on freestanding compilers.
7568 # On the NeXT, cc -E runs the code through the compiler's parser,
7569 # not just through cpp. "Syntax error" is here to catch this case.
7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h. */
7572 #ifdef __STDC__
7573 # include <limits.h>
7574 #else
7575 # include <assert.h>
7576 #endif
7577 Syntax error
7578 _ACEOF
7579 if ac_fn_cxx_try_cpp "$LINENO"; then :
7580
7581 else
7582 # Broken: fails on valid input.
7583 continue
7584 fi
7585 rm -f conftest.err conftest.i conftest.$ac_ext
7586
7587 # OK, works on sane cases. Now check whether nonexistent headers
7588 # can be detected and how.
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7591 #include <ac_nonexistent.h>
7592 _ACEOF
7593 if ac_fn_cxx_try_cpp "$LINENO"; then :
7594 # Broken: success on invalid input.
7595 continue
7596 else
7597 # Passes both tests.
7598 ac_preproc_ok=:
7599 break
7600 fi
7601 rm -f conftest.err conftest.i conftest.$ac_ext
7602
7603 done
7604 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7605 rm -f conftest.i conftest.err conftest.$ac_ext
7606 if $ac_preproc_ok; then :
7607 break
7608 fi
7609
7610 done
7611 ac_cv_prog_CXXCPP=$CXXCPP
7612
7613 fi
7614 CXXCPP=$ac_cv_prog_CXXCPP
7615 else
7616 ac_cv_prog_CXXCPP=$CXXCPP
7617 fi
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7619 $as_echo "$CXXCPP" >&6; }
7620 ac_preproc_ok=false
7621 for ac_cxx_preproc_warn_flag in '' yes
7622 do
7623 # Use a header file that comes with gcc, so configuring glibc
7624 # with a fresh cross-compiler works.
7625 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7626 # <limits.h> exists even on freestanding compilers.
7627 # On the NeXT, cc -E runs the code through the compiler's parser,
7628 # not just through cpp. "Syntax error" is here to catch this case.
7629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630 /* end confdefs.h. */
7631 #ifdef __STDC__
7632 # include <limits.h>
7633 #else
7634 # include <assert.h>
7635 #endif
7636 Syntax error
7637 _ACEOF
7638 if ac_fn_cxx_try_cpp "$LINENO"; then :
7639
7640 else
7641 # Broken: fails on valid input.
7642 continue
7643 fi
7644 rm -f conftest.err conftest.i conftest.$ac_ext
7645
7646 # OK, works on sane cases. Now check whether nonexistent headers
7647 # can be detected and how.
7648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649 /* end confdefs.h. */
7650 #include <ac_nonexistent.h>
7651 _ACEOF
7652 if ac_fn_cxx_try_cpp "$LINENO"; then :
7653 # Broken: success on invalid input.
7654 continue
7655 else
7656 # Passes both tests.
7657 ac_preproc_ok=:
7658 break
7659 fi
7660 rm -f conftest.err conftest.i conftest.$ac_ext
7661
7662 done
7663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7664 rm -f conftest.i conftest.err conftest.$ac_ext
7665 if $ac_preproc_ok; then :
7666
7667 else
7668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7670 _lt_caught_CXX_error=yes; }
7671 fi
7672
7673 ac_ext=c
7674 ac_cpp='$CPP $CPPFLAGS'
7675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7678
7679 else
7680 _lt_caught_CXX_error=yes
7681 fi
7682
7683
7684
7685
7686
7687 # Set options
7688
7689
7690
7691 enable_dlopen=no
7692
7693
7694 enable_win32_dll=no
7695
7696
7697 # Check whether --enable-shared was given.
7698 if test "${enable_shared+set}" = set; then :
7699 enableval=$enable_shared; p=${PACKAGE-default}
7700 case $enableval in
7701 yes) enable_shared=yes ;;
7702 no) enable_shared=no ;;
7703 *)
7704 enable_shared=no
7705 # Look at the argument we got. We use all the common list separators.
7706 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7707 for pkg in $enableval; do
7708 IFS="$lt_save_ifs"
7709 if test "X$pkg" = "X$p"; then
7710 enable_shared=yes
7711 fi
7712 done
7713 IFS="$lt_save_ifs"
7714 ;;
7715 esac
7716 else
7717 enable_shared=yes
7718 fi
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728 # Check whether --enable-static was given.
7729 if test "${enable_static+set}" = set; then :
7730 enableval=$enable_static; p=${PACKAGE-default}
7731 case $enableval in
7732 yes) enable_static=yes ;;
7733 no) enable_static=no ;;
7734 *)
7735 enable_static=no
7736 # Look at the argument we got. We use all the common list separators.
7737 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7738 for pkg in $enableval; do
7739 IFS="$lt_save_ifs"
7740 if test "X$pkg" = "X$p"; then
7741 enable_static=yes
7742 fi
7743 done
7744 IFS="$lt_save_ifs"
7745 ;;
7746 esac
7747 else
7748 enable_static=yes
7749 fi
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760 # Check whether --with-pic was given.
7761 if test "${with_pic+set}" = set; then :
7762 withval=$with_pic; pic_mode="$withval"
7763 else
7764 pic_mode=default
7765 fi
7766
7767
7768 test -z "$pic_mode" && pic_mode=default
7769
7770
7771
7772
7773
7774
7775
7776 # Check whether --enable-fast-install was given.
7777 if test "${enable_fast_install+set}" = set; then :
7778 enableval=$enable_fast_install; p=${PACKAGE-default}
7779 case $enableval in
7780 yes) enable_fast_install=yes ;;
7781 no) enable_fast_install=no ;;
7782 *)
7783 enable_fast_install=no
7784 # Look at the argument we got. We use all the common list separators.
7785 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7786 for pkg in $enableval; do
7787 IFS="$lt_save_ifs"
7788 if test "X$pkg" = "X$p"; then
7789 enable_fast_install=yes
7790 fi
7791 done
7792 IFS="$lt_save_ifs"
7793 ;;
7794 esac
7795 else
7796 enable_fast_install=yes
7797 fi
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809 # This can be used to rebuild libtool when needed
7810 LIBTOOL_DEPS="$ltmain"
7811
7812 # Always use our own libtool.
7813 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839 test -z "$LN_S" && LN_S="ln -s"
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854 if test -n "${ZSH_VERSION+set}" ; then
7855 setopt NO_GLOB_SUBST
7856 fi
7857
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7859 $as_echo_n "checking for objdir... " >&6; }
7860 if test "${lt_cv_objdir+set}" = set; then :
7861 $as_echo_n "(cached) " >&6
7862 else
7863 rm -f .libs 2>/dev/null
7864 mkdir .libs 2>/dev/null
7865 if test -d .libs; then
7866 lt_cv_objdir=.libs
7867 else
7868 # MS-DOS does not allow filenames that begin with a dot.
7869 lt_cv_objdir=_libs
7870 fi
7871 rmdir .libs 2>/dev/null
7872 fi
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7874 $as_echo "$lt_cv_objdir" >&6; }
7875 objdir=$lt_cv_objdir
7876
7877
7878
7879
7880
7881 cat >>confdefs.h <<_ACEOF
7882 #define LT_OBJDIR "$lt_cv_objdir/"
7883 _ACEOF
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901 case $host_os in
7902 aix3*)
7903 # AIX sometimes has problems with the GCC collect2 program. For some
7904 # reason, if we set the COLLECT_NAMES environment variable, the problems
7905 # vanish in a puff of smoke.
7906 if test "X${COLLECT_NAMES+set}" != Xset; then
7907 COLLECT_NAMES=
7908 export COLLECT_NAMES
7909 fi
7910 ;;
7911 esac
7912
7913 # Sed substitution that helps us do robust quoting. It backslashifies
7914 # metacharacters that are still active within double-quoted strings.
7915 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7916
7917 # Same as above, but do not quote variable references.
7918 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7919
7920 # Sed substitution to delay expansion of an escaped shell variable in a
7921 # double_quote_subst'ed string.
7922 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7923
7924 # Sed substitution to delay expansion of an escaped single quote.
7925 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7926
7927 # Sed substitution to avoid accidental globbing in evaled expressions
7928 no_glob_subst='s/\*/\\\*/g'
7929
7930 # Global variables:
7931 ofile=libtool
7932 can_build_shared=yes
7933
7934 # All known linkers require a `.a' archive for static linking (except MSVC,
7935 # which needs '.lib').
7936 libext=a
7937
7938 with_gnu_ld="$lt_cv_prog_gnu_ld"
7939
7940 old_CC="$CC"
7941 old_CFLAGS="$CFLAGS"
7942
7943 # Set sane defaults for various variables
7944 test -z "$CC" && CC=cc
7945 test -z "$LTCC" && LTCC=$CC
7946 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7947 test -z "$LD" && LD=ld
7948 test -z "$ac_objext" && ac_objext=o
7949
7950 for cc_temp in $compiler""; do
7951 case $cc_temp in
7952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7954 \-*) ;;
7955 *) break;;
7956 esac
7957 done
7958 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7959
7960
7961 # Only perform the check for file, if the check method requires it
7962 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7963 case $deplibs_check_method in
7964 file_magic*)
7965 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7967 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7968 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971 case $MAGIC_CMD in
7972 [\\/*] | ?:[\\/]*)
7973 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7974 ;;
7975 *)
7976 lt_save_MAGIC_CMD="$MAGIC_CMD"
7977 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7978 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7979 for ac_dir in $ac_dummy; do
7980 IFS="$lt_save_ifs"
7981 test -z "$ac_dir" && ac_dir=.
7982 if test -f $ac_dir/${ac_tool_prefix}file; then
7983 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7984 if test -n "$file_magic_test_file"; then
7985 case $deplibs_check_method in
7986 "file_magic "*)
7987 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7988 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7989 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7990 $EGREP "$file_magic_regex" > /dev/null; then
7991 :
7992 else
7993 cat <<_LT_EOF 1>&2
7994
7995 *** Warning: the command libtool uses to detect shared libraries,
7996 *** $file_magic_cmd, produces output that libtool cannot recognize.
7997 *** The result is that libtool may fail to recognize shared libraries
7998 *** as such. This will affect the creation of libtool libraries that
7999 *** depend on shared libraries, but programs linked with such libtool
8000 *** libraries will work regardless of this problem. Nevertheless, you
8001 *** may want to report the problem to your system manager and/or to
8002 *** [email protected]
8003
8004 _LT_EOF
8005 fi ;;
8006 esac
8007 fi
8008 break
8009 fi
8010 done
8011 IFS="$lt_save_ifs"
8012 MAGIC_CMD="$lt_save_MAGIC_CMD"
8013 ;;
8014 esac
8015 fi
8016
8017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8018 if test -n "$MAGIC_CMD"; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8020 $as_echo "$MAGIC_CMD" >&6; }
8021 else
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023 $as_echo "no" >&6; }
8024 fi
8025
8026
8027
8028
8029
8030 if test -z "$lt_cv_path_MAGIC_CMD"; then
8031 if test -n "$ac_tool_prefix"; then
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8033 $as_echo_n "checking for file... " >&6; }
8034 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8035 $as_echo_n "(cached) " >&6
8036 else
8037 case $MAGIC_CMD in
8038 [\\/*] | ?:[\\/]*)
8039 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8040 ;;
8041 *)
8042 lt_save_MAGIC_CMD="$MAGIC_CMD"
8043 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8044 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8045 for ac_dir in $ac_dummy; do
8046 IFS="$lt_save_ifs"
8047 test -z "$ac_dir" && ac_dir=.
8048 if test -f $ac_dir/file; then
8049 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8050 if test -n "$file_magic_test_file"; then
8051 case $deplibs_check_method in
8052 "file_magic "*)
8053 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8054 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8055 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8056 $EGREP "$file_magic_regex" > /dev/null; then
8057 :
8058 else
8059 cat <<_LT_EOF 1>&2
8060
8061 *** Warning: the command libtool uses to detect shared libraries,
8062 *** $file_magic_cmd, produces output that libtool cannot recognize.
8063 *** The result is that libtool may fail to recognize shared libraries
8064 *** as such. This will affect the creation of libtool libraries that
8065 *** depend on shared libraries, but programs linked with such libtool
8066 *** libraries will work regardless of this problem. Nevertheless, you
8067 *** may want to report the problem to your system manager and/or to
8068 *** [email protected]
8069
8070 _LT_EOF
8071 fi ;;
8072 esac
8073 fi
8074 break
8075 fi
8076 done
8077 IFS="$lt_save_ifs"
8078 MAGIC_CMD="$lt_save_MAGIC_CMD"
8079 ;;
8080 esac
8081 fi
8082
8083 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8084 if test -n "$MAGIC_CMD"; then
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8086 $as_echo "$MAGIC_CMD" >&6; }
8087 else
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 $as_echo "no" >&6; }
8090 fi
8091
8092
8093 else
8094 MAGIC_CMD=:
8095 fi
8096 fi
8097
8098 fi
8099 ;;
8100 esac
8101
8102 # Use C for the default configuration in the libtool script
8103
8104 lt_save_CC="$CC"
8105 ac_ext=c
8106 ac_cpp='$CPP $CPPFLAGS'
8107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8110
8111
8112 # Source file extension for C test sources.
8113 ac_ext=c
8114
8115 # Object file extension for compiled C test sources.
8116 objext=o
8117 objext=$objext
8118
8119 # Code to be used in simple compile tests
8120 lt_simple_compile_test_code="int some_variable = 0;"
8121
8122 # Code to be used in simple link tests
8123 lt_simple_link_test_code='int main(){return(0);}'
8124
8125
8126
8127
8128
8129
8130
8131 # If no C compiler was specified, use CC.
8132 LTCC=${LTCC-"$CC"}
8133
8134 # If no C compiler flags were specified, use CFLAGS.
8135 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8136
8137 # Allow CC to be a program name with arguments.
8138 compiler=$CC
8139
8140 # Save the default compiler, since it gets overwritten when the other
8141 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8142 compiler_DEFAULT=$CC
8143
8144 # save warnings/boilerplate of simple test code
8145 ac_outfile=conftest.$ac_objext
8146 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8147 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8148 _lt_compiler_boilerplate=`cat conftest.err`
8149 $RM conftest*
8150
8151 ac_outfile=conftest.$ac_objext
8152 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8153 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8154 _lt_linker_boilerplate=`cat conftest.err`
8155 $RM -r conftest*
8156
8157
8158 if test -n "$compiler"; then
8159
8160 lt_prog_compiler_no_builtin_flag=
8161
8162 if test "$GCC" = yes; then
8163 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8164
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8166 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8167 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8168 $as_echo_n "(cached) " >&6
8169 else
8170 lt_cv_prog_compiler_rtti_exceptions=no
8171 ac_outfile=conftest.$ac_objext
8172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8173 lt_compiler_flag="-fno-rtti -fno-exceptions"
8174 # Insert the option either (1) after the last *FLAGS variable, or
8175 # (2) before a word containing "conftest.", or (3) at the end.
8176 # Note that $ac_compile itself does not contain backslashes and begins
8177 # with a dollar sign (not a hyphen), so the echo should work correctly.
8178 # The option is referenced via a variable to avoid confusing sed.
8179 lt_compile=`echo "$ac_compile" | $SED \
8180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8182 -e 's:$: $lt_compiler_flag:'`
8183 (eval echo "\"\$as_me:8183: $lt_compile\"" >&5)
8184 (eval "$lt_compile" 2>conftest.err)
8185 ac_status=$?
8186 cat conftest.err >&5
8187 echo "$as_me:8187: \$? = $ac_status" >&5
8188 if (exit $ac_status) && test -s "$ac_outfile"; then
8189 # The compiler can only warn and ignore the option if not recognized
8190 # So say no if there are warnings other than the usual output.
8191 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8192 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8193 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8194 lt_cv_prog_compiler_rtti_exceptions=yes
8195 fi
8196 fi
8197 $RM conftest*
8198
8199 fi
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8201 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8202
8203 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8204 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8205 else
8206 :
8207 fi
8208
8209 fi
8210
8211
8212
8213
8214
8215
8216 lt_prog_compiler_wl=
8217 lt_prog_compiler_pic=
8218 lt_prog_compiler_static=
8219
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8221 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8222
8223 if test "$GCC" = yes; then
8224 lt_prog_compiler_wl='-Wl,'
8225 lt_prog_compiler_static='-static'
8226
8227 case $host_os in
8228 aix*)
8229 # All AIX code is PIC.
8230 if test "$host_cpu" = ia64; then
8231 # AIX 5 now supports IA64 processor
8232 lt_prog_compiler_static='-Bstatic'
8233 fi
8234 ;;
8235
8236 amigaos*)
8237 case $host_cpu in
8238 powerpc)
8239 # see comment about AmigaOS4 .so support
8240 lt_prog_compiler_pic='-fPIC'
8241 ;;
8242 m68k)
8243 # FIXME: we need at least 68020 code to build shared libraries, but
8244 # adding the `-m68020' flag to GCC prevents building anything better,
8245 # like `-m68040'.
8246 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8247 ;;
8248 esac
8249 ;;
8250
8251 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8252 # PIC is the default for these OSes.
8253 ;;
8254
8255 mingw* | cygwin* | pw32* | os2* | cegcc*)
8256 # This hack is so that the source file can tell whether it is being
8257 # built for inclusion in a dll (and should export symbols for example).
8258 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8259 # (--disable-auto-import) libraries
8260 lt_prog_compiler_pic='-DDLL_EXPORT'
8261 ;;
8262
8263 darwin* | rhapsody*)
8264 # PIC is the default on this platform
8265 # Common symbols not allowed in MH_DYLIB files
8266 lt_prog_compiler_pic='-fno-common'
8267 ;;
8268
8269 hpux*)
8270 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8271 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8272 # sets the default TLS model and affects inlining.
8273 case $host_cpu in
8274 hppa*64*)
8275 # +Z the default
8276 ;;
8277 *)
8278 lt_prog_compiler_pic='-fPIC'
8279 ;;
8280 esac
8281 ;;
8282
8283 interix[3-9]*)
8284 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8285 # Instead, we relocate shared libraries at runtime.
8286 ;;
8287
8288 msdosdjgpp*)
8289 # Just because we use GCC doesn't mean we suddenly get shared libraries
8290 # on systems that don't support them.
8291 lt_prog_compiler_can_build_shared=no
8292 enable_shared=no
8293 ;;
8294
8295 *nto* | *qnx*)
8296 # QNX uses GNU C++, but need to define -shared option too, otherwise
8297 # it will coredump.
8298 lt_prog_compiler_pic='-fPIC -shared'
8299 ;;
8300
8301 sysv4*MP*)
8302 if test -d /usr/nec; then
8303 lt_prog_compiler_pic=-Kconform_pic
8304 fi
8305 ;;
8306
8307 *)
8308 lt_prog_compiler_pic='-fPIC'
8309 ;;
8310 esac
8311 else
8312 # PORTME Check for flag to pass linker flags through the system compiler.
8313 case $host_os in
8314 aix*)
8315 lt_prog_compiler_wl='-Wl,'
8316 if test "$host_cpu" = ia64; then
8317 # AIX 5 now supports IA64 processor
8318 lt_prog_compiler_static='-Bstatic'
8319 else
8320 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8321 fi
8322 ;;
8323
8324 mingw* | cygwin* | pw32* | os2* | cegcc*)
8325 # This hack is so that the source file can tell whether it is being
8326 # built for inclusion in a dll (and should export symbols for example).
8327 lt_prog_compiler_pic='-DDLL_EXPORT'
8328 ;;
8329
8330 hpux9* | hpux10* | hpux11*)
8331 lt_prog_compiler_wl='-Wl,'
8332 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8333 # not for PA HP-UX.
8334 case $host_cpu in
8335 hppa*64*|ia64*)
8336 # +Z the default
8337 ;;
8338 *)
8339 lt_prog_compiler_pic='+Z'
8340 ;;
8341 esac
8342 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8343 lt_prog_compiler_static='${wl}-a ${wl}archive'
8344 ;;
8345
8346 irix5* | irix6* | nonstopux*)
8347 lt_prog_compiler_wl='-Wl,'
8348 # PIC (with -KPIC) is the default.
8349 lt_prog_compiler_static='-non_shared'
8350 ;;
8351
8352 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8353 case $cc_basename in
8354 # old Intel for x86_64 which still supported -KPIC.
8355 ecc*)
8356 lt_prog_compiler_wl='-Wl,'
8357 lt_prog_compiler_pic='-KPIC'
8358 lt_prog_compiler_static='-static'
8359 ;;
8360 # icc used to be incompatible with GCC.
8361 # ICC 10 doesn't accept -KPIC any more.
8362 icc* | ifort*)
8363 lt_prog_compiler_wl='-Wl,'
8364 lt_prog_compiler_pic='-fPIC'
8365 lt_prog_compiler_static='-static'
8366 ;;
8367 # Lahey Fortran 8.1.
8368 lf95*)
8369 lt_prog_compiler_wl='-Wl,'
8370 lt_prog_compiler_pic='--shared'
8371 lt_prog_compiler_static='--static'
8372 ;;
8373 pgcc* | pgf77* | pgf90* | pgf95*)
8374 # Portland Group compilers (*not* the Pentium gcc compiler,
8375 # which looks to be a dead project)
8376 lt_prog_compiler_wl='-Wl,'
8377 lt_prog_compiler_pic='-fpic'
8378 lt_prog_compiler_static='-Bstatic'
8379 ;;
8380 ccc*)
8381 lt_prog_compiler_wl='-Wl,'
8382 # All Alpha code is PIC.
8383 lt_prog_compiler_static='-non_shared'
8384 ;;
8385 xl*)
8386 # IBM XL C 8.0/Fortran 10.1 on PPC
8387 lt_prog_compiler_wl='-Wl,'
8388 lt_prog_compiler_pic='-qpic'
8389 lt_prog_compiler_static='-qstaticlink'
8390 ;;
8391 *)
8392 case `$CC -V 2>&1 | sed 5q` in
8393 *Sun\ C*)
8394 # Sun C 5.9
8395 lt_prog_compiler_pic='-KPIC'
8396 lt_prog_compiler_static='-Bstatic'
8397 lt_prog_compiler_wl='-Wl,'
8398 ;;
8399 *Sun\ F*)
8400 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8401 lt_prog_compiler_pic='-KPIC'
8402 lt_prog_compiler_static='-Bstatic'
8403 lt_prog_compiler_wl=''
8404 ;;
8405 esac
8406 ;;
8407 esac
8408 ;;
8409
8410 newsos6)
8411 lt_prog_compiler_pic='-KPIC'
8412 lt_prog_compiler_static='-Bstatic'
8413 ;;
8414
8415 *nto* | *qnx*)
8416 # QNX uses GNU C++, but need to define -shared option too, otherwise
8417 # it will coredump.
8418 lt_prog_compiler_pic='-fPIC -shared'
8419 ;;
8420
8421 osf3* | osf4* | osf5*)
8422 lt_prog_compiler_wl='-Wl,'
8423 # All OSF/1 code is PIC.
8424 lt_prog_compiler_static='-non_shared'
8425 ;;
8426
8427 rdos*)
8428 lt_prog_compiler_static='-non_shared'
8429 ;;
8430
8431 solaris*)
8432 lt_prog_compiler_pic='-KPIC'
8433 lt_prog_compiler_static='-Bstatic'
8434 case $cc_basename in
8435 f77* | f90* | f95*)
8436 lt_prog_compiler_wl='-Qoption ld ';;
8437 *)
8438 lt_prog_compiler_wl='-Wl,';;
8439 esac
8440 ;;
8441
8442 sunos4*)
8443 lt_prog_compiler_wl='-Qoption ld '
8444 lt_prog_compiler_pic='-PIC'
8445 lt_prog_compiler_static='-Bstatic'
8446 ;;
8447
8448 sysv4 | sysv4.2uw2* | sysv4.3*)
8449 lt_prog_compiler_wl='-Wl,'
8450 lt_prog_compiler_pic='-KPIC'
8451 lt_prog_compiler_static='-Bstatic'
8452 ;;
8453
8454 sysv4*MP*)
8455 if test -d /usr/nec ;then
8456 lt_prog_compiler_pic='-Kconform_pic'
8457 lt_prog_compiler_static='-Bstatic'
8458 fi
8459 ;;
8460
8461 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8462 lt_prog_compiler_wl='-Wl,'
8463 lt_prog_compiler_pic='-KPIC'
8464 lt_prog_compiler_static='-Bstatic'
8465 ;;
8466
8467 unicos*)
8468 lt_prog_compiler_wl='-Wl,'
8469 lt_prog_compiler_can_build_shared=no
8470 ;;
8471
8472 uts4*)
8473 lt_prog_compiler_pic='-pic'
8474 lt_prog_compiler_static='-Bstatic'
8475 ;;
8476
8477 *)
8478 lt_prog_compiler_can_build_shared=no
8479 ;;
8480 esac
8481 fi
8482
8483 case $host_os in
8484 # For platforms which do not support PIC, -DPIC is meaningless:
8485 *djgpp*)
8486 lt_prog_compiler_pic=
8487 ;;
8488 *)
8489 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8490 ;;
8491 esac
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8493 $as_echo "$lt_prog_compiler_pic" >&6; }
8494
8495
8496
8497
8498
8499
8500 #
8501 # Check to make sure the PIC flag actually works.
8502 #
8503 if test -n "$lt_prog_compiler_pic"; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8505 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8506 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8507 $as_echo_n "(cached) " >&6
8508 else
8509 lt_cv_prog_compiler_pic_works=no
8510 ac_outfile=conftest.$ac_objext
8511 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8512 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8513 # Insert the option either (1) after the last *FLAGS variable, or
8514 # (2) before a word containing "conftest.", or (3) at the end.
8515 # Note that $ac_compile itself does not contain backslashes and begins
8516 # with a dollar sign (not a hyphen), so the echo should work correctly.
8517 # The option is referenced via a variable to avoid confusing sed.
8518 lt_compile=`echo "$ac_compile" | $SED \
8519 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8521 -e 's:$: $lt_compiler_flag:'`
8522 (eval echo "\"\$as_me:8522: $lt_compile\"" >&5)
8523 (eval "$lt_compile" 2>conftest.err)
8524 ac_status=$?
8525 cat conftest.err >&5
8526 echo "$as_me:8526: \$? = $ac_status" >&5
8527 if (exit $ac_status) && test -s "$ac_outfile"; then
8528 # The compiler can only warn and ignore the option if not recognized
8529 # So say no if there are warnings other than the usual output.
8530 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8531 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8532 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8533 lt_cv_prog_compiler_pic_works=yes
8534 fi
8535 fi
8536 $RM conftest*
8537
8538 fi
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8540 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8541
8542 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8543 case $lt_prog_compiler_pic in
8544 "" | " "*) ;;
8545 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8546 esac
8547 else
8548 lt_prog_compiler_pic=
8549 lt_prog_compiler_can_build_shared=no
8550 fi
8551
8552 fi
8553
8554
8555
8556
8557
8558
8559 #
8560 # Check to make sure the static flag actually works.
8561 #
8562 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8564 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8565 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8566 $as_echo_n "(cached) " >&6
8567 else
8568 lt_cv_prog_compiler_static_works=no
8569 save_LDFLAGS="$LDFLAGS"
8570 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8571 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8572 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8573 # The linker can only warn and ignore the option if not recognized
8574 # So say no if there are warnings
8575 if test -s conftest.err; then
8576 # Append any errors to the config.log.
8577 cat conftest.err 1>&5
8578 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8579 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8580 if diff conftest.exp conftest.er2 >/dev/null; then
8581 lt_cv_prog_compiler_static_works=yes
8582 fi
8583 else
8584 lt_cv_prog_compiler_static_works=yes
8585 fi
8586 fi
8587 $RM -r conftest*
8588 LDFLAGS="$save_LDFLAGS"
8589
8590 fi
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8592 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8593
8594 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8595 :
8596 else
8597 lt_prog_compiler_static=
8598 fi
8599
8600
8601
8602
8603
8604
8605
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8607 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8608 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8609 $as_echo_n "(cached) " >&6
8610 else
8611 lt_cv_prog_compiler_c_o=no
8612 $RM -r conftest 2>/dev/null
8613 mkdir conftest
8614 cd conftest
8615 mkdir out
8616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8617
8618 lt_compiler_flag="-o out/conftest2.$ac_objext"
8619 # Insert the option either (1) after the last *FLAGS variable, or
8620 # (2) before a word containing "conftest.", or (3) at the end.
8621 # Note that $ac_compile itself does not contain backslashes and begins
8622 # with a dollar sign (not a hyphen), so the echo should work correctly.
8623 lt_compile=`echo "$ac_compile" | $SED \
8624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8626 -e 's:$: $lt_compiler_flag:'`
8627 (eval echo "\"\$as_me:8627: $lt_compile\"" >&5)
8628 (eval "$lt_compile" 2>out/conftest.err)
8629 ac_status=$?
8630 cat out/conftest.err >&5
8631 echo "$as_me:8631: \$? = $ac_status" >&5
8632 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8633 then
8634 # The compiler can only warn and ignore the option if not recognized
8635 # So say no if there are warnings
8636 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8637 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8638 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8639 lt_cv_prog_compiler_c_o=yes
8640 fi
8641 fi
8642 chmod u+w . 2>&5
8643 $RM conftest*
8644 # SGI C++ compiler will create directory out/ii_files/ for
8645 # template instantiation
8646 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8647 $RM out/* && rmdir out
8648 cd ..
8649 $RM -r conftest
8650 $RM conftest*
8651
8652 fi
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8654 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8655
8656
8657
8658
8659
8660
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8662 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8663 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8664 $as_echo_n "(cached) " >&6
8665 else
8666 lt_cv_prog_compiler_c_o=no
8667 $RM -r conftest 2>/dev/null
8668 mkdir conftest
8669 cd conftest
8670 mkdir out
8671 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8672
8673 lt_compiler_flag="-o out/conftest2.$ac_objext"
8674 # Insert the option either (1) after the last *FLAGS variable, or
8675 # (2) before a word containing "conftest.", or (3) at the end.
8676 # Note that $ac_compile itself does not contain backslashes and begins
8677 # with a dollar sign (not a hyphen), so the echo should work correctly.
8678 lt_compile=`echo "$ac_compile" | $SED \
8679 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8680 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8681 -e 's:$: $lt_compiler_flag:'`
8682 (eval echo "\"\$as_me:8682: $lt_compile\"" >&5)
8683 (eval "$lt_compile" 2>out/conftest.err)
8684 ac_status=$?
8685 cat out/conftest.err >&5
8686 echo "$as_me:8686: \$? = $ac_status" >&5
8687 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8688 then
8689 # The compiler can only warn and ignore the option if not recognized
8690 # So say no if there are warnings
8691 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8692 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8693 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8694 lt_cv_prog_compiler_c_o=yes
8695 fi
8696 fi
8697 chmod u+w . 2>&5
8698 $RM conftest*
8699 # SGI C++ compiler will create directory out/ii_files/ for
8700 # template instantiation
8701 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8702 $RM out/* && rmdir out
8703 cd ..
8704 $RM -r conftest
8705 $RM conftest*
8706
8707 fi
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8709 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8710
8711
8712
8713
8714 hard_links="nottested"
8715 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8716 # do not overwrite the value of need_locks provided by the user
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8718 $as_echo_n "checking if we can lock with hard links... " >&6; }
8719 hard_links=yes
8720 $RM conftest*
8721 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8722 touch conftest.a
8723 ln conftest.a conftest.b 2>&5 || hard_links=no
8724 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8726 $as_echo "$hard_links" >&6; }
8727 if test "$hard_links" = no; then
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8729 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8730 need_locks=warn
8731 fi
8732 else
8733 need_locks=no
8734 fi
8735
8736
8737
8738
8739
8740
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8742 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8743
8744 runpath_var=
8745 allow_undefined_flag=
8746 always_export_symbols=no
8747 archive_cmds=
8748 archive_expsym_cmds=
8749 compiler_needs_object=no
8750 enable_shared_with_static_runtimes=no
8751 export_dynamic_flag_spec=
8752 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8753 hardcode_automatic=no
8754 hardcode_direct=no
8755 hardcode_direct_absolute=no
8756 hardcode_libdir_flag_spec=
8757 hardcode_libdir_flag_spec_ld=
8758 hardcode_libdir_separator=
8759 hardcode_minus_L=no
8760 hardcode_shlibpath_var=unsupported
8761 inherit_rpath=no
8762 link_all_deplibs=unknown
8763 module_cmds=
8764 module_expsym_cmds=
8765 old_archive_from_new_cmds=
8766 old_archive_from_expsyms_cmds=
8767 thread_safe_flag_spec=
8768 whole_archive_flag_spec=
8769 # include_expsyms should be a list of space-separated symbols to be *always*
8770 # included in the symbol list
8771 include_expsyms=
8772 # exclude_expsyms can be an extended regexp of symbols to exclude
8773 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8774 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8775 # as well as any symbol that contains `d'.
8776 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8777 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8778 # platforms (ab)use it in PIC code, but their linkers get confused if
8779 # the symbol is explicitly referenced. Since portable code cannot
8780 # rely on this symbol name, it's probably fine to never include it in
8781 # preloaded symbol tables.
8782 # Exclude shared library initialization/finalization symbols.
8783 extract_expsyms_cmds=
8784
8785 case $host_os in
8786 cygwin* | mingw* | pw32* | cegcc*)
8787 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8788 # When not using gcc, we currently assume that we are using
8789 # Microsoft Visual C++.
8790 if test "$GCC" != yes; then
8791 with_gnu_ld=no
8792 fi
8793 ;;
8794 interix*)
8795 # we just hope/assume this is gcc and not c89 (= MSVC++)
8796 with_gnu_ld=yes
8797 ;;
8798 openbsd*)
8799 with_gnu_ld=no
8800 ;;
8801 linux* | k*bsd*-gnu)
8802 link_all_deplibs=no
8803 ;;
8804 esac
8805
8806 ld_shlibs=yes
8807 if test "$with_gnu_ld" = yes; then
8808 # If archive_cmds runs LD, not CC, wlarc should be empty
8809 wlarc='${wl}'
8810
8811 # Set some defaults for GNU ld with shared library support. These
8812 # are reset later if shared libraries are not supported. Putting them
8813 # here allows them to be overridden if necessary.
8814 runpath_var=LD_RUN_PATH
8815 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8816 export_dynamic_flag_spec='${wl}--export-dynamic'
8817 # ancient GNU ld didn't support --whole-archive et. al.
8818 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8819 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8820 else
8821 whole_archive_flag_spec=
8822 fi
8823 supports_anon_versioning=no
8824 case `$LD -v 2>&1` in
8825 *GNU\ gold*) supports_anon_versioning=yes ;;
8826 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8827 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8828 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8829 *\ 2.11.*) ;; # other 2.11 versions
8830 *) supports_anon_versioning=yes ;;
8831 esac
8832
8833 # See if GNU ld supports shared libraries.
8834 case $host_os in
8835 aix[3-9]*)
8836 # On AIX/PPC, the GNU linker is very broken
8837 if test "$host_cpu" != ia64; then
8838 ld_shlibs=no
8839 cat <<_LT_EOF 1>&2
8840
8841 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8842 *** to be unable to reliably create shared libraries on AIX.
8843 *** Therefore, libtool is disabling shared libraries support. If you
8844 *** really care for shared libraries, you may want to modify your PATH
8845 *** so that a non-GNU linker is found, and then restart.
8846
8847 _LT_EOF
8848 fi
8849 ;;
8850
8851 amigaos*)
8852 case $host_cpu in
8853 powerpc)
8854 # see comment about AmigaOS4 .so support
8855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8856 archive_expsym_cmds=''
8857 ;;
8858 m68k)
8859 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)'
8860 hardcode_libdir_flag_spec='-L$libdir'
8861 hardcode_minus_L=yes
8862 ;;
8863 esac
8864 ;;
8865
8866 beos*)
8867 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8868 allow_undefined_flag=unsupported
8869 # Joseph Beckenbach <[email protected]> says some releases of gcc
8870 # support --undefined. This deserves some investigation. FIXME
8871 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8872 else
8873 ld_shlibs=no
8874 fi
8875 ;;
8876
8877 cygwin* | mingw* | pw32* | cegcc*)
8878 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8879 # as there is no search path for DLLs.
8880 hardcode_libdir_flag_spec='-L$libdir'
8881 allow_undefined_flag=unsupported
8882 always_export_symbols=no
8883 enable_shared_with_static_runtimes=yes
8884 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8885
8886 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8888 # If the export-symbols file already is a .def file (1st line
8889 # is EXPORTS), use it as is; otherwise, prepend...
8890 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8891 cp $export_symbols $output_objdir/$soname.def;
8892 else
8893 echo EXPORTS > $output_objdir/$soname.def;
8894 cat $export_symbols >> $output_objdir/$soname.def;
8895 fi~
8896 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8897 else
8898 ld_shlibs=no
8899 fi
8900 ;;
8901
8902 interix[3-9]*)
8903 hardcode_direct=no
8904 hardcode_shlibpath_var=no
8905 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8906 export_dynamic_flag_spec='${wl}-E'
8907 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8908 # Instead, shared libraries are loaded at an image base (0x10000000 by
8909 # default) and relocated if they conflict, which is a slow very memory
8910 # consuming and fragmenting process. To avoid this, we pick a random,
8911 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8912 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8913 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8914 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'
8915 ;;
8916
8917 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8918 tmp_diet=no
8919 if test "$host_os" = linux-dietlibc; then
8920 case $cc_basename in
8921 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8922 esac
8923 fi
8924 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8925 && test "$tmp_diet" = no
8926 then
8927 tmp_addflag=
8928 tmp_sharedflag='-shared'
8929 case $cc_basename,$host_cpu in
8930 pgcc*) # Portland Group C compiler
8931 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8932 tmp_addflag=' $pic_flag'
8933 ;;
8934 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8935 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8936 tmp_addflag=' $pic_flag -Mnomain' ;;
8937 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8938 tmp_addflag=' -i_dynamic' ;;
8939 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8940 tmp_addflag=' -i_dynamic -nofor_main' ;;
8941 ifc* | ifort*) # Intel Fortran compiler
8942 tmp_addflag=' -nofor_main' ;;
8943 lf95*) # Lahey Fortran 8.1
8944 whole_archive_flag_spec=
8945 tmp_sharedflag='--shared' ;;
8946 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8947 tmp_sharedflag='-qmkshrobj'
8948 tmp_addflag= ;;
8949 esac
8950 case `$CC -V 2>&1 | sed 5q` in
8951 *Sun\ C*) # Sun C 5.9
8952 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8953 compiler_needs_object=yes
8954 tmp_sharedflag='-G' ;;
8955 *Sun\ F*) # Sun Fortran 8.3
8956 tmp_sharedflag='-G' ;;
8957 esac
8958 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8959
8960 if test "x$supports_anon_versioning" = xyes; then
8961 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8962 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8963 echo "local: *; };" >> $output_objdir/$libname.ver~
8964 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8965 fi
8966
8967 case $cc_basename in
8968 xlf*)
8969 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8970 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8971 hardcode_libdir_flag_spec=
8972 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8973 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8974 if test "x$supports_anon_versioning" = xyes; then
8975 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8976 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8977 echo "local: *; };" >> $output_objdir/$libname.ver~
8978 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8979 fi
8980 ;;
8981 esac
8982 else
8983 ld_shlibs=no
8984 fi
8985 ;;
8986
8987 netbsd* | netbsdelf*-gnu)
8988 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8989 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8990 wlarc=
8991 else
8992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8993 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8994 fi
8995 ;;
8996
8997 solaris*)
8998 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8999 ld_shlibs=no
9000 cat <<_LT_EOF 1>&2
9001
9002 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9003 *** create shared libraries on Solaris systems. Therefore, libtool
9004 *** is disabling shared libraries support. We urge you to upgrade GNU
9005 *** binutils to release 2.9.1 or newer. Another option is to modify
9006 *** your PATH or compiler configuration so that the native linker is
9007 *** used, and then restart.
9008
9009 _LT_EOF
9010 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9012 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9013 else
9014 ld_shlibs=no
9015 fi
9016 ;;
9017
9018 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9019 case `$LD -v 2>&1` in
9020 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9021 ld_shlibs=no
9022 cat <<_LT_EOF 1>&2
9023
9024 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9025 *** reliably create shared libraries on SCO systems. Therefore, libtool
9026 *** is disabling shared libraries support. We urge you to upgrade GNU
9027 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9028 *** your PATH or compiler configuration so that the native linker is
9029 *** used, and then restart.
9030
9031 _LT_EOF
9032 ;;
9033 *)
9034 # For security reasons, it is highly recommended that you always
9035 # use absolute paths for naming shared libraries, and exclude the
9036 # DT_RUNPATH tag from executables and libraries. But doing so
9037 # requires that you compile everything twice, which is a pain.
9038 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9039 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9041 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9042 else
9043 ld_shlibs=no
9044 fi
9045 ;;
9046 esac
9047 ;;
9048
9049 sunos4*)
9050 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9051 wlarc=
9052 hardcode_direct=yes
9053 hardcode_shlibpath_var=no
9054 ;;
9055
9056 *)
9057 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9059 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9060 else
9061 ld_shlibs=no
9062 fi
9063 ;;
9064 esac
9065
9066 if test "$ld_shlibs" = no; then
9067 runpath_var=
9068 hardcode_libdir_flag_spec=
9069 export_dynamic_flag_spec=
9070 whole_archive_flag_spec=
9071 fi
9072 else
9073 # PORTME fill in a description of your system's linker (not GNU ld)
9074 case $host_os in
9075 aix3*)
9076 allow_undefined_flag=unsupported
9077 always_export_symbols=yes
9078 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'
9079 # Note: this linker hardcodes the directories in LIBPATH if there
9080 # are no directories specified by -L.
9081 hardcode_minus_L=yes
9082 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9083 # Neither direct hardcoding nor static linking is supported with a
9084 # broken collect2.
9085 hardcode_direct=unsupported
9086 fi
9087 ;;
9088
9089 aix[4-9]*)
9090 if test "$host_cpu" = ia64; then
9091 # On IA64, the linker does run time linking by default, so we don't
9092 # have to do anything special.
9093 aix_use_runtimelinking=no
9094 exp_sym_flag='-Bexport'
9095 no_entry_flag=""
9096 else
9097 # If we're using GNU nm, then we don't want the "-C" option.
9098 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9099 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9100 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9101 else
9102 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'
9103 fi
9104 aix_use_runtimelinking=no
9105
9106 # Test if we are trying to use run time linking or normal
9107 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9108 # need to do runtime linking.
9109 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9110 for ld_flag in $LDFLAGS; do
9111 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9112 aix_use_runtimelinking=yes
9113 break
9114 fi
9115 done
9116 ;;
9117 esac
9118
9119 exp_sym_flag='-bexport'
9120 no_entry_flag='-bnoentry'
9121 fi
9122
9123 # When large executables or shared objects are built, AIX ld can
9124 # have problems creating the table of contents. If linking a library
9125 # or program results in "error TOC overflow" add -mminimal-toc to
9126 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9127 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9128
9129 archive_cmds=''
9130 hardcode_direct=yes
9131 hardcode_direct_absolute=yes
9132 hardcode_libdir_separator=':'
9133 link_all_deplibs=yes
9134 file_list_spec='${wl}-f,'
9135
9136 if test "$GCC" = yes; then
9137 case $host_os in aix4.[012]|aix4.[012].*)
9138 # We only want to do this on AIX 4.2 and lower, the check
9139 # below for broken collect2 doesn't work under 4.3+
9140 collect2name=`${CC} -print-prog-name=collect2`
9141 if test -f "$collect2name" &&
9142 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9143 then
9144 # We have reworked collect2
9145 :
9146 else
9147 # We have old collect2
9148 hardcode_direct=unsupported
9149 # It fails to find uninstalled libraries when the uninstalled
9150 # path is not listed in the libpath. Setting hardcode_minus_L
9151 # to unsupported forces relinking
9152 hardcode_minus_L=yes
9153 hardcode_libdir_flag_spec='-L$libdir'
9154 hardcode_libdir_separator=
9155 fi
9156 ;;
9157 esac
9158 shared_flag='-shared'
9159 if test "$aix_use_runtimelinking" = yes; then
9160 shared_flag="$shared_flag "'${wl}-G'
9161 fi
9162 link_all_deplibs=no
9163 else
9164 # not using gcc
9165 if test "$host_cpu" = ia64; then
9166 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9167 # chokes on -Wl,-G. The following line is correct:
9168 shared_flag='-G'
9169 else
9170 if test "$aix_use_runtimelinking" = yes; then
9171 shared_flag='${wl}-G'
9172 else
9173 shared_flag='${wl}-bM:SRE'
9174 fi
9175 fi
9176 fi
9177
9178 export_dynamic_flag_spec='${wl}-bexpall'
9179 # It seems that -bexpall does not export symbols beginning with
9180 # underscore (_), so it is better to generate a list of symbols to export.
9181 always_export_symbols=yes
9182 if test "$aix_use_runtimelinking" = yes; then
9183 # Warning - without using the other runtime loading flags (-brtl),
9184 # -berok will link without error, but may produce a broken library.
9185 allow_undefined_flag='-berok'
9186 # Determine the default libpath from the value encoded in an
9187 # empty executable.
9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189 /* end confdefs.h. */
9190
9191 int
9192 main ()
9193 {
9194
9195 ;
9196 return 0;
9197 }
9198 _ACEOF
9199 if ac_fn_c_try_link "$LINENO"; then :
9200
9201 lt_aix_libpath_sed='
9202 /Import File Strings/,/^$/ {
9203 /^0/ {
9204 s/^0 *\(.*\)$/\1/
9205 p
9206 }
9207 }'
9208 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9209 # Check for a 64-bit object if we didn't find anything.
9210 if test -z "$aix_libpath"; then
9211 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9212 fi
9213 fi
9214 rm -f core conftest.err conftest.$ac_objext \
9215 conftest$ac_exeext conftest.$ac_ext
9216 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9217
9218 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9219 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9220 else
9221 if test "$host_cpu" = ia64; then
9222 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9223 allow_undefined_flag="-z nodefs"
9224 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"
9225 else
9226 # Determine the default libpath from the value encoded in an
9227 # empty executable.
9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9230
9231 int
9232 main ()
9233 {
9234
9235 ;
9236 return 0;
9237 }
9238 _ACEOF
9239 if ac_fn_c_try_link "$LINENO"; then :
9240
9241 lt_aix_libpath_sed='
9242 /Import File Strings/,/^$/ {
9243 /^0/ {
9244 s/^0 *\(.*\)$/\1/
9245 p
9246 }
9247 }'
9248 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9249 # Check for a 64-bit object if we didn't find anything.
9250 if test -z "$aix_libpath"; then
9251 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9252 fi
9253 fi
9254 rm -f core conftest.err conftest.$ac_objext \
9255 conftest$ac_exeext conftest.$ac_ext
9256 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9257
9258 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9259 # Warning - without using the other run time loading flags,
9260 # -berok will link without error, but may produce a broken library.
9261 no_undefined_flag=' ${wl}-bernotok'
9262 allow_undefined_flag=' ${wl}-berok'
9263 # Exported symbols can be pulled into shared objects from archives
9264 whole_archive_flag_spec='$convenience'
9265 archive_cmds_need_lc=yes
9266 # This is similar to how AIX traditionally builds its shared libraries.
9267 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'
9268 fi
9269 fi
9270 ;;
9271
9272 amigaos*)
9273 case $host_cpu in
9274 powerpc)
9275 # see comment about AmigaOS4 .so support
9276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9277 archive_expsym_cmds=''
9278 ;;
9279 m68k)
9280 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)'
9281 hardcode_libdir_flag_spec='-L$libdir'
9282 hardcode_minus_L=yes
9283 ;;
9284 esac
9285 ;;
9286
9287 bsdi[45]*)
9288 export_dynamic_flag_spec=-rdynamic
9289 ;;
9290
9291 cygwin* | mingw* | pw32* | cegcc*)
9292 # When not using gcc, we currently assume that we are using
9293 # Microsoft Visual C++.
9294 # hardcode_libdir_flag_spec is actually meaningless, as there is
9295 # no search path for DLLs.
9296 hardcode_libdir_flag_spec=' '
9297 allow_undefined_flag=unsupported
9298 # Tell ltmain to make .lib files, not .a files.
9299 libext=lib
9300 # Tell ltmain to make .dll files, not .so files.
9301 shrext_cmds=".dll"
9302 # FIXME: Setting linknames here is a bad hack.
9303 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9304 # The linker will automatically build a .lib file if we build a DLL.
9305 old_archive_from_new_cmds='true'
9306 # FIXME: Should let the user specify the lib program.
9307 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9308 fix_srcfile_path='`cygpath -w "$srcfile"`'
9309 enable_shared_with_static_runtimes=yes
9310 ;;
9311
9312 darwin* | rhapsody*)
9313
9314
9315 archive_cmds_need_lc=no
9316 hardcode_direct=no
9317 hardcode_automatic=yes
9318 hardcode_shlibpath_var=unsupported
9319 whole_archive_flag_spec=''
9320 link_all_deplibs=yes
9321 allow_undefined_flag="$_lt_dar_allow_undefined"
9322 case $cc_basename in
9323 ifort*) _lt_dar_can_shared=yes ;;
9324 *) _lt_dar_can_shared=$GCC ;;
9325 esac
9326 if test "$_lt_dar_can_shared" = "yes"; then
9327 output_verbose_link_cmd=echo
9328 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9329 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9330 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}"
9331 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}"
9332
9333 else
9334 ld_shlibs=no
9335 fi
9336
9337 ;;
9338
9339 dgux*)
9340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9341 hardcode_libdir_flag_spec='-L$libdir'
9342 hardcode_shlibpath_var=no
9343 ;;
9344
9345 freebsd1*)
9346 ld_shlibs=no
9347 ;;
9348
9349 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9350 # support. Future versions do this automatically, but an explicit c++rt0.o
9351 # does not break anything, and helps significantly (at the cost of a little
9352 # extra space).
9353 freebsd2.2*)
9354 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9355 hardcode_libdir_flag_spec='-R$libdir'
9356 hardcode_direct=yes
9357 hardcode_shlibpath_var=no
9358 ;;
9359
9360 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9361 freebsd2*)
9362 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9363 hardcode_direct=yes
9364 hardcode_minus_L=yes
9365 hardcode_shlibpath_var=no
9366 ;;
9367
9368 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9369 freebsd* | dragonfly*)
9370 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9371 hardcode_libdir_flag_spec='-R$libdir'
9372 hardcode_direct=yes
9373 hardcode_shlibpath_var=no
9374 ;;
9375
9376 hpux9*)
9377 if test "$GCC" = yes; then
9378 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9379 else
9380 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'
9381 fi
9382 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9383 hardcode_libdir_separator=:
9384 hardcode_direct=yes
9385
9386 # hardcode_minus_L: Not really in the search PATH,
9387 # but as the default location of the library.
9388 hardcode_minus_L=yes
9389 export_dynamic_flag_spec='${wl}-E'
9390 ;;
9391
9392 hpux10*)
9393 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9394 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9395 else
9396 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9397 fi
9398 if test "$with_gnu_ld" = no; then
9399 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9400 hardcode_libdir_flag_spec_ld='+b $libdir'
9401 hardcode_libdir_separator=:
9402 hardcode_direct=yes
9403 hardcode_direct_absolute=yes
9404 export_dynamic_flag_spec='${wl}-E'
9405 # hardcode_minus_L: Not really in the search PATH,
9406 # but as the default location of the library.
9407 hardcode_minus_L=yes
9408 fi
9409 ;;
9410
9411 hpux11*)
9412 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9413 case $host_cpu in
9414 hppa*64*)
9415 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9416 ;;
9417 ia64*)
9418 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9419 ;;
9420 *)
9421 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9422 ;;
9423 esac
9424 else
9425 case $host_cpu in
9426 hppa*64*)
9427 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9428 ;;
9429 ia64*)
9430 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9431 ;;
9432 *)
9433 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9434 ;;
9435 esac
9436 fi
9437 if test "$with_gnu_ld" = no; then
9438 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9439 hardcode_libdir_separator=:
9440
9441 case $host_cpu in
9442 hppa*64*|ia64*)
9443 hardcode_direct=no
9444 hardcode_shlibpath_var=no
9445 ;;
9446 *)
9447 hardcode_direct=yes
9448 hardcode_direct_absolute=yes
9449 export_dynamic_flag_spec='${wl}-E'
9450
9451 # hardcode_minus_L: Not really in the search PATH,
9452 # but as the default location of the library.
9453 hardcode_minus_L=yes
9454 ;;
9455 esac
9456 fi
9457 ;;
9458
9459 irix5* | irix6* | nonstopux*)
9460 if test "$GCC" = yes; then
9461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9462 # Try to use the -exported_symbol ld option, if it does not
9463 # work, assume that -exports_file does not work either and
9464 # implicitly export all symbols.
9465 save_LDFLAGS="$LDFLAGS"
9466 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468 /* end confdefs.h. */
9469 int foo(void) {}
9470 _ACEOF
9471 if ac_fn_c_try_link "$LINENO"; then :
9472 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9473
9474 fi
9475 rm -f core conftest.err conftest.$ac_objext \
9476 conftest$ac_exeext conftest.$ac_ext
9477 LDFLAGS="$save_LDFLAGS"
9478 else
9479 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9480 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9481 fi
9482 archive_cmds_need_lc='no'
9483 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9484 hardcode_libdir_separator=:
9485 inherit_rpath=yes
9486 link_all_deplibs=yes
9487 ;;
9488
9489 netbsd* | netbsdelf*-gnu)
9490 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9491 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9492 else
9493 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9494 fi
9495 hardcode_libdir_flag_spec='-R$libdir'
9496 hardcode_direct=yes
9497 hardcode_shlibpath_var=no
9498 ;;
9499
9500 newsos6)
9501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9502 hardcode_direct=yes
9503 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9504 hardcode_libdir_separator=:
9505 hardcode_shlibpath_var=no
9506 ;;
9507
9508 *nto* | *qnx*)
9509 ;;
9510
9511 openbsd*)
9512 if test -f /usr/libexec/ld.so; then
9513 hardcode_direct=yes
9514 hardcode_shlibpath_var=no
9515 hardcode_direct_absolute=yes
9516 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9517 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9518 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9519 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9520 export_dynamic_flag_spec='${wl}-E'
9521 else
9522 case $host_os in
9523 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9524 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9525 hardcode_libdir_flag_spec='-R$libdir'
9526 ;;
9527 *)
9528 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9529 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9530 ;;
9531 esac
9532 fi
9533 else
9534 ld_shlibs=no
9535 fi
9536 ;;
9537
9538 os2*)
9539 hardcode_libdir_flag_spec='-L$libdir'
9540 hardcode_minus_L=yes
9541 allow_undefined_flag=unsupported
9542 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'
9543 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9544 ;;
9545
9546 osf3*)
9547 if test "$GCC" = yes; then
9548 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9549 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9550 else
9551 allow_undefined_flag=' -expect_unresolved \*'
9552 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9553 fi
9554 archive_cmds_need_lc='no'
9555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9556 hardcode_libdir_separator=:
9557 ;;
9558
9559 osf4* | osf5*) # as osf3* with the addition of -msym flag
9560 if test "$GCC" = yes; then
9561 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9562 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9564 else
9565 allow_undefined_flag=' -expect_unresolved \*'
9566 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9567 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~
9568 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9569
9570 # Both c and cxx compiler support -rpath directly
9571 hardcode_libdir_flag_spec='-rpath $libdir'
9572 fi
9573 archive_cmds_need_lc='no'
9574 hardcode_libdir_separator=:
9575 ;;
9576
9577 solaris*)
9578 no_undefined_flag=' -z defs'
9579 if test "$GCC" = yes; then
9580 wlarc='${wl}'
9581 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9582 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9583 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9584 else
9585 case `$CC -V 2>&1` in
9586 *"Compilers 5.0"*)
9587 wlarc=''
9588 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9589 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9590 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9591 ;;
9592 *)
9593 wlarc='${wl}'
9594 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9595 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9596 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9597 ;;
9598 esac
9599 fi
9600 hardcode_libdir_flag_spec='-R$libdir'
9601 hardcode_shlibpath_var=no
9602 case $host_os in
9603 solaris2.[0-5] | solaris2.[0-5].*) ;;
9604 *)
9605 # The compiler driver will combine and reorder linker options,
9606 # but understands `-z linker_flag'. GCC discards it without `$wl',
9607 # but is careful enough not to reorder.
9608 # Supported since Solaris 2.6 (maybe 2.5.1?)
9609 if test "$GCC" = yes; then
9610 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9611 else
9612 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9613 fi
9614 ;;
9615 esac
9616 link_all_deplibs=yes
9617 ;;
9618
9619 sunos4*)
9620 if test "x$host_vendor" = xsequent; then
9621 # Use $CC to link under sequent, because it throws in some extra .o
9622 # files that make .init and .fini sections work.
9623 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9624 else
9625 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9626 fi
9627 hardcode_libdir_flag_spec='-L$libdir'
9628 hardcode_direct=yes
9629 hardcode_minus_L=yes
9630 hardcode_shlibpath_var=no
9631 ;;
9632
9633 sysv4)
9634 case $host_vendor in
9635 sni)
9636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9637 hardcode_direct=yes # is this really true???
9638 ;;
9639 siemens)
9640 ## LD is ld it makes a PLAMLIB
9641 ## CC just makes a GrossModule.
9642 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9643 reload_cmds='$CC -r -o $output$reload_objs'
9644 hardcode_direct=no
9645 ;;
9646 motorola)
9647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9648 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9649 ;;
9650 esac
9651 runpath_var='LD_RUN_PATH'
9652 hardcode_shlibpath_var=no
9653 ;;
9654
9655 sysv4.3*)
9656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9657 hardcode_shlibpath_var=no
9658 export_dynamic_flag_spec='-Bexport'
9659 ;;
9660
9661 sysv4*MP*)
9662 if test -d /usr/nec; then
9663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9664 hardcode_shlibpath_var=no
9665 runpath_var=LD_RUN_PATH
9666 hardcode_runpath_var=yes
9667 ld_shlibs=yes
9668 fi
9669 ;;
9670
9671 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9672 no_undefined_flag='${wl}-z,text'
9673 archive_cmds_need_lc=no
9674 hardcode_shlibpath_var=no
9675 runpath_var='LD_RUN_PATH'
9676
9677 if test "$GCC" = yes; then
9678 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9679 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9680 else
9681 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9682 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9683 fi
9684 ;;
9685
9686 sysv5* | sco3.2v5* | sco5v6*)
9687 # Note: We can NOT use -z defs as we might desire, because we do not
9688 # link with -lc, and that would cause any symbols used from libc to
9689 # always be unresolved, which means just about no library would
9690 # ever link correctly. If we're not using GNU ld we use -z text
9691 # though, which does catch some bad symbols but isn't as heavy-handed
9692 # as -z defs.
9693 no_undefined_flag='${wl}-z,text'
9694 allow_undefined_flag='${wl}-z,nodefs'
9695 archive_cmds_need_lc=no
9696 hardcode_shlibpath_var=no
9697 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9698 hardcode_libdir_separator=':'
9699 link_all_deplibs=yes
9700 export_dynamic_flag_spec='${wl}-Bexport'
9701 runpath_var='LD_RUN_PATH'
9702
9703 if test "$GCC" = yes; then
9704 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9705 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9706 else
9707 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9708 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9709 fi
9710 ;;
9711
9712 uts4*)
9713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9714 hardcode_libdir_flag_spec='-L$libdir'
9715 hardcode_shlibpath_var=no
9716 ;;
9717
9718 *)
9719 ld_shlibs=no
9720 ;;
9721 esac
9722
9723 if test x$host_vendor = xsni; then
9724 case $host in
9725 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9726 export_dynamic_flag_spec='${wl}-Blargedynsym'
9727 ;;
9728 esac
9729 fi
9730 fi
9731
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9733 $as_echo "$ld_shlibs" >&6; }
9734 test "$ld_shlibs" = no && can_build_shared=no
9735
9736 with_gnu_ld=$with_gnu_ld
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752 #
9753 # Do we need to explicitly link libc?
9754 #
9755 case "x$archive_cmds_need_lc" in
9756 x|xyes)
9757 # Assume -lc should be added
9758 archive_cmds_need_lc=yes
9759
9760 if test "$enable_shared" = yes && test "$GCC" = yes; then
9761 case $archive_cmds in
9762 *'~'*)
9763 # FIXME: we may have to deal with multi-command sequences.
9764 ;;
9765 '$CC '*)
9766 # Test whether the compiler implicitly links with -lc since on some
9767 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9768 # to ld, don't add -lc before -lgcc.
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9770 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9771 $RM conftest*
9772 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9773
9774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9775 (eval $ac_compile) 2>&5
9776 ac_status=$?
9777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9778 test $ac_status = 0; } 2>conftest.err; then
9779 soname=conftest
9780 lib=conftest
9781 libobjs=conftest.$ac_objext
9782 deplibs=
9783 wl=$lt_prog_compiler_wl
9784 pic_flag=$lt_prog_compiler_pic
9785 compiler_flags=-v
9786 linker_flags=-v
9787 verstring=
9788 output_objdir=.
9789 libname=conftest
9790 lt_save_allow_undefined_flag=$allow_undefined_flag
9791 allow_undefined_flag=
9792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9793 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9794 ac_status=$?
9795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9796 test $ac_status = 0; }
9797 then
9798 archive_cmds_need_lc=no
9799 else
9800 archive_cmds_need_lc=yes
9801 fi
9802 allow_undefined_flag=$lt_save_allow_undefined_flag
9803 else
9804 cat conftest.err 1>&5
9805 fi
9806 $RM conftest*
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9808 $as_echo "$archive_cmds_need_lc" >&6; }
9809 ;;
9810 esac
9811 fi
9812 ;;
9813 esac
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9972 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9973
9974 if test "$GCC" = yes; then
9975 case $host_os in
9976 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9977 *) lt_awk_arg="/^libraries:/" ;;
9978 esac
9979 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9980 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9981 # if the path contains ";" then we assume it to be the separator
9982 # otherwise default to the standard path separator (i.e. ":") - it is
9983 # assumed that no part of a normal pathname contains ";" but that should
9984 # okay in the real world where ";" in dirpaths is itself problematic.
9985 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9986 else
9987 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9988 fi
9989 # Ok, now we have the path, separated by spaces, we can step through it
9990 # and add multilib dir if necessary.
9991 lt_tmp_lt_search_path_spec=
9992 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9993 for lt_sys_path in $lt_search_path_spec; do
9994 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9995 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9996 else
9997 test -d "$lt_sys_path" && \
9998 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9999 fi
10000 done
10001 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10002 BEGIN {RS=" "; FS="/|\n";} {
10003 lt_foo="";
10004 lt_count=0;
10005 for (lt_i = NF; lt_i > 0; lt_i--) {
10006 if ($lt_i != "" && $lt_i != ".") {
10007 if ($lt_i == "..") {
10008 lt_count++;
10009 } else {
10010 if (lt_count == 0) {
10011 lt_foo="/" $lt_i lt_foo;
10012 } else {
10013 lt_count--;
10014 }
10015 }
10016 }
10017 }
10018 if (lt_foo != "") { lt_freq[lt_foo]++; }
10019 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10020 }'`
10021 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10022 else
10023 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10024 fi
10025 library_names_spec=
10026 libname_spec='lib$name'
10027 soname_spec=
10028 shrext_cmds=".so"
10029 postinstall_cmds=
10030 postuninstall_cmds=
10031 finish_cmds=
10032 finish_eval=
10033 shlibpath_var=
10034 shlibpath_overrides_runpath=unknown
10035 version_type=none
10036 dynamic_linker="$host_os ld.so"
10037 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10038 need_lib_prefix=unknown
10039 hardcode_into_libs=no
10040
10041 # when you set need_version to no, make sure it does not cause -set_version
10042 # flags to be left without arguments
10043 need_version=unknown
10044
10045 case $host_os in
10046 aix3*)
10047 version_type=linux
10048 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10049 shlibpath_var=LIBPATH
10050
10051 # AIX 3 has no versioning support, so we append a major version to the name.
10052 soname_spec='${libname}${release}${shared_ext}$major'
10053 ;;
10054
10055 aix[4-9]*)
10056 version_type=linux
10057 need_lib_prefix=no
10058 need_version=no
10059 hardcode_into_libs=yes
10060 if test "$host_cpu" = ia64; then
10061 # AIX 5 supports IA64
10062 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10063 shlibpath_var=LD_LIBRARY_PATH
10064 else
10065 # With GCC up to 2.95.x, collect2 would create an import file
10066 # for dependence libraries. The import file would start with
10067 # the line `#! .'. This would cause the generated library to
10068 # depend on `.', always an invalid library. This was fixed in
10069 # development snapshots of GCC prior to 3.0.
10070 case $host_os in
10071 aix4 | aix4.[01] | aix4.[01].*)
10072 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10073 echo ' yes '
10074 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10075 :
10076 else
10077 can_build_shared=no
10078 fi
10079 ;;
10080 esac
10081 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10082 # soname into executable. Probably we can add versioning support to
10083 # collect2, so additional links can be useful in future.
10084 if test "$aix_use_runtimelinking" = yes; then
10085 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10086 # instead of lib<name>.a to let people know that these are not
10087 # typical AIX shared libraries.
10088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10089 else
10090 # We preserve .a as extension for shared libraries through AIX4.2
10091 # and later when we are not doing run time linking.
10092 library_names_spec='${libname}${release}.a $libname.a'
10093 soname_spec='${libname}${release}${shared_ext}$major'
10094 fi
10095 shlibpath_var=LIBPATH
10096 fi
10097 ;;
10098
10099 amigaos*)
10100 case $host_cpu in
10101 powerpc)
10102 # Since July 2007 AmigaOS4 officially supports .so libraries.
10103 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10105 ;;
10106 m68k)
10107 library_names_spec='$libname.ixlibrary $libname.a'
10108 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10109 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10110 ;;
10111 esac
10112 ;;
10113
10114 beos*)
10115 library_names_spec='${libname}${shared_ext}'
10116 dynamic_linker="$host_os ld.so"
10117 shlibpath_var=LIBRARY_PATH
10118 ;;
10119
10120 bsdi[45]*)
10121 version_type=linux
10122 need_version=no
10123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10124 soname_spec='${libname}${release}${shared_ext}$major'
10125 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10126 shlibpath_var=LD_LIBRARY_PATH
10127 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10128 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10129 # the default ld.so.conf also contains /usr/contrib/lib and
10130 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10131 # libtool to hard-code these into programs
10132 ;;
10133
10134 cygwin* | mingw* | pw32* | cegcc*)
10135 version_type=windows
10136 shrext_cmds=".dll"
10137 need_version=no
10138 need_lib_prefix=no
10139
10140 case $GCC,$host_os in
10141 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10142 library_names_spec='$libname.dll.a'
10143 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10144 postinstall_cmds='base_file=`basename \${file}`~
10145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10146 dldir=$destdir/`dirname \$dlpath`~
10147 test -d \$dldir || mkdir -p \$dldir~
10148 $install_prog $dir/$dlname \$dldir/$dlname~
10149 chmod a+x \$dldir/$dlname~
10150 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10151 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10152 fi'
10153 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10154 dlpath=$dir/\$dldll~
10155 $RM \$dlpath'
10156 shlibpath_overrides_runpath=yes
10157
10158 case $host_os in
10159 cygwin*)
10160 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10161 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10162 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10163 ;;
10164 mingw* | cegcc*)
10165 # MinGW DLLs use traditional 'lib' prefix
10166 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10167 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10168 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10169 # It is most probably a Windows format PATH printed by
10170 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10171 # path with ; separators, and with drive letters. We can handle the
10172 # drive letters (cygwin fileutils understands them), so leave them,
10173 # especially as we might pass files found there to a mingw objdump,
10174 # which wouldn't understand a cygwinified path. Ahh.
10175 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10176 else
10177 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10178 fi
10179 ;;
10180 pw32*)
10181 # pw32 DLLs use 'pw' prefix rather than 'lib'
10182 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10183 ;;
10184 esac
10185 ;;
10186
10187 *)
10188 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10189 ;;
10190 esac
10191 dynamic_linker='Win32 ld.exe'
10192 # FIXME: first we should search . and the directory the executable is in
10193 shlibpath_var=PATH
10194 ;;
10195
10196 darwin* | rhapsody*)
10197 dynamic_linker="$host_os dyld"
10198 version_type=darwin
10199 need_lib_prefix=no
10200 need_version=no
10201 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10202 soname_spec='${libname}${release}${major}$shared_ext'
10203 shlibpath_overrides_runpath=yes
10204 shlibpath_var=DYLD_LIBRARY_PATH
10205 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10206
10207 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10208 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10209 ;;
10210
10211 dgux*)
10212 version_type=linux
10213 need_lib_prefix=no
10214 need_version=no
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10216 soname_spec='${libname}${release}${shared_ext}$major'
10217 shlibpath_var=LD_LIBRARY_PATH
10218 ;;
10219
10220 freebsd1*)
10221 dynamic_linker=no
10222 ;;
10223
10224 freebsd* | dragonfly*)
10225 # DragonFly does not have aout. When/if they implement a new
10226 # versioning mechanism, adjust this.
10227 if test -x /usr/bin/objformat; then
10228 objformat=`/usr/bin/objformat`
10229 else
10230 case $host_os in
10231 freebsd[123]*) objformat=aout ;;
10232 *) objformat=elf ;;
10233 esac
10234 fi
10235 version_type=freebsd-$objformat
10236 case $version_type in
10237 freebsd-elf*)
10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10239 need_version=no
10240 need_lib_prefix=no
10241 ;;
10242 freebsd-*)
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10244 need_version=yes
10245 ;;
10246 esac
10247 shlibpath_var=LD_LIBRARY_PATH
10248 case $host_os in
10249 freebsd2*)
10250 shlibpath_overrides_runpath=yes
10251 ;;
10252 freebsd3.[01]* | freebsdelf3.[01]*)
10253 shlibpath_overrides_runpath=yes
10254 hardcode_into_libs=yes
10255 ;;
10256 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10257 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10258 shlibpath_overrides_runpath=no
10259 hardcode_into_libs=yes
10260 ;;
10261 *) # from 4.6 on, and DragonFly
10262 shlibpath_overrides_runpath=yes
10263 hardcode_into_libs=yes
10264 ;;
10265 esac
10266 ;;
10267
10268 gnu*)
10269 version_type=linux
10270 need_lib_prefix=no
10271 need_version=no
10272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10273 soname_spec='${libname}${release}${shared_ext}$major'
10274 shlibpath_var=LD_LIBRARY_PATH
10275 hardcode_into_libs=yes
10276 ;;
10277
10278 hpux9* | hpux10* | hpux11*)
10279 # Give a soname corresponding to the major version so that dld.sl refuses to
10280 # link against other versions.
10281 version_type=sunos
10282 need_lib_prefix=no
10283 need_version=no
10284 case $host_cpu in
10285 ia64*)
10286 shrext_cmds='.so'
10287 hardcode_into_libs=yes
10288 dynamic_linker="$host_os dld.so"
10289 shlibpath_var=LD_LIBRARY_PATH
10290 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292 soname_spec='${libname}${release}${shared_ext}$major'
10293 if test "X$HPUX_IA64_MODE" = X32; then
10294 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10295 else
10296 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10297 fi
10298 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10299 ;;
10300 hppa*64*)
10301 shrext_cmds='.sl'
10302 hardcode_into_libs=yes
10303 dynamic_linker="$host_os dld.sl"
10304 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10305 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307 soname_spec='${libname}${release}${shared_ext}$major'
10308 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10309 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10310 ;;
10311 *)
10312 shrext_cmds='.sl'
10313 dynamic_linker="$host_os dld.sl"
10314 shlibpath_var=SHLIB_PATH
10315 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10317 soname_spec='${libname}${release}${shared_ext}$major'
10318 ;;
10319 esac
10320 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10321 postinstall_cmds='chmod 555 $lib'
10322 ;;
10323
10324 interix[3-9]*)
10325 version_type=linux
10326 need_lib_prefix=no
10327 need_version=no
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10331 shlibpath_var=LD_LIBRARY_PATH
10332 shlibpath_overrides_runpath=no
10333 hardcode_into_libs=yes
10334 ;;
10335
10336 irix5* | irix6* | nonstopux*)
10337 case $host_os in
10338 nonstopux*) version_type=nonstopux ;;
10339 *)
10340 if test "$lt_cv_prog_gnu_ld" = yes; then
10341 version_type=linux
10342 else
10343 version_type=irix
10344 fi ;;
10345 esac
10346 need_lib_prefix=no
10347 need_version=no
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10350 case $host_os in
10351 irix5* | nonstopux*)
10352 libsuff= shlibsuff=
10353 ;;
10354 *)
10355 case $LD in # libtool.m4 will add one of these switches to LD
10356 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10357 libsuff= shlibsuff= libmagic=32-bit;;
10358 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10359 libsuff=32 shlibsuff=N32 libmagic=N32;;
10360 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10361 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10362 *) libsuff= shlibsuff= libmagic=never-match;;
10363 esac
10364 ;;
10365 esac
10366 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10367 shlibpath_overrides_runpath=no
10368 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10369 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10370 hardcode_into_libs=yes
10371 ;;
10372
10373 # No shared lib support for Linux oldld, aout, or coff.
10374 linux*oldld* | linux*aout* | linux*coff*)
10375 dynamic_linker=no
10376 ;;
10377
10378 # This must be Linux ELF.
10379 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10380 version_type=linux
10381 need_lib_prefix=no
10382 need_version=no
10383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10384 soname_spec='${libname}${release}${shared_ext}$major'
10385 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10386 shlibpath_var=LD_LIBRARY_PATH
10387 shlibpath_overrides_runpath=no
10388 # Some binutils ld are patched to set DT_RUNPATH
10389 save_LDFLAGS=$LDFLAGS
10390 save_libdir=$libdir
10391 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10392 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10395
10396 int
10397 main ()
10398 {
10399
10400 ;
10401 return 0;
10402 }
10403 _ACEOF
10404 if ac_fn_c_try_link "$LINENO"; then :
10405 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10406 shlibpath_overrides_runpath=yes
10407 fi
10408 fi
10409 rm -f core conftest.err conftest.$ac_objext \
10410 conftest$ac_exeext conftest.$ac_ext
10411 LDFLAGS=$save_LDFLAGS
10412 libdir=$save_libdir
10413
10414 # This implies no fast_install, which is unacceptable.
10415 # Some rework will be needed to allow for fast_install
10416 # before this can be enabled.
10417 hardcode_into_libs=yes
10418
10419 # Append ld.so.conf contents to the search path
10420 if test -f /etc/ld.so.conf; then
10421 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;/^$/d' | tr '\n' ' '`
10422 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10423 fi
10424
10425 # We used to test for /lib/ld.so.1 and disable shared libraries on
10426 # powerpc, because MkLinux only supported shared libraries with the
10427 # GNU dynamic linker. Since this was broken with cross compilers,
10428 # most powerpc-linux boxes support dynamic linking these days and
10429 # people can always --disable-shared, the test was removed, and we
10430 # assume the GNU/Linux dynamic linker is in use.
10431 dynamic_linker='GNU/Linux ld.so'
10432 ;;
10433
10434 netbsdelf*-gnu)
10435 version_type=linux
10436 need_lib_prefix=no
10437 need_version=no
10438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10439 soname_spec='${libname}${release}${shared_ext}$major'
10440 shlibpath_var=LD_LIBRARY_PATH
10441 shlibpath_overrides_runpath=no
10442 hardcode_into_libs=yes
10443 dynamic_linker='NetBSD ld.elf_so'
10444 ;;
10445
10446 netbsd*)
10447 version_type=sunos
10448 need_lib_prefix=no
10449 need_version=no
10450 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10453 dynamic_linker='NetBSD (a.out) ld.so'
10454 else
10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10456 soname_spec='${libname}${release}${shared_ext}$major'
10457 dynamic_linker='NetBSD ld.elf_so'
10458 fi
10459 shlibpath_var=LD_LIBRARY_PATH
10460 shlibpath_overrides_runpath=yes
10461 hardcode_into_libs=yes
10462 ;;
10463
10464 newsos6)
10465 version_type=linux
10466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10467 shlibpath_var=LD_LIBRARY_PATH
10468 shlibpath_overrides_runpath=yes
10469 ;;
10470
10471 *nto* | *qnx*)
10472 version_type=qnx
10473 need_lib_prefix=no
10474 need_version=no
10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10476 soname_spec='${libname}${release}${shared_ext}$major'
10477 shlibpath_var=LD_LIBRARY_PATH
10478 shlibpath_overrides_runpath=no
10479 hardcode_into_libs=yes
10480 dynamic_linker='ldqnx.so'
10481 ;;
10482
10483 openbsd*)
10484 version_type=sunos
10485 sys_lib_dlsearch_path_spec="/usr/lib"
10486 need_lib_prefix=no
10487 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10488 case $host_os in
10489 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10490 *) need_version=no ;;
10491 esac
10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10494 shlibpath_var=LD_LIBRARY_PATH
10495 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10496 case $host_os in
10497 openbsd2.[89] | openbsd2.[89].*)
10498 shlibpath_overrides_runpath=no
10499 ;;
10500 *)
10501 shlibpath_overrides_runpath=yes
10502 ;;
10503 esac
10504 else
10505 shlibpath_overrides_runpath=yes
10506 fi
10507 ;;
10508
10509 os2*)
10510 libname_spec='$name'
10511 shrext_cmds=".dll"
10512 need_lib_prefix=no
10513 library_names_spec='$libname${shared_ext} $libname.a'
10514 dynamic_linker='OS/2 ld.exe'
10515 shlibpath_var=LIBPATH
10516 ;;
10517
10518 osf3* | osf4* | osf5*)
10519 version_type=osf
10520 need_lib_prefix=no
10521 need_version=no
10522 soname_spec='${libname}${release}${shared_ext}$major'
10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10524 shlibpath_var=LD_LIBRARY_PATH
10525 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10526 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10527 ;;
10528
10529 rdos*)
10530 dynamic_linker=no
10531 ;;
10532
10533 solaris*)
10534 version_type=linux
10535 need_lib_prefix=no
10536 need_version=no
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538 soname_spec='${libname}${release}${shared_ext}$major'
10539 shlibpath_var=LD_LIBRARY_PATH
10540 shlibpath_overrides_runpath=yes
10541 hardcode_into_libs=yes
10542 # ldd complains unless libraries are executable
10543 postinstall_cmds='chmod +x $lib'
10544 ;;
10545
10546 sunos4*)
10547 version_type=sunos
10548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10549 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10550 shlibpath_var=LD_LIBRARY_PATH
10551 shlibpath_overrides_runpath=yes
10552 if test "$with_gnu_ld" = yes; then
10553 need_lib_prefix=no
10554 fi
10555 need_version=yes
10556 ;;
10557
10558 sysv4 | sysv4.3*)
10559 version_type=linux
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10561 soname_spec='${libname}${release}${shared_ext}$major'
10562 shlibpath_var=LD_LIBRARY_PATH
10563 case $host_vendor in
10564 sni)
10565 shlibpath_overrides_runpath=no
10566 need_lib_prefix=no
10567 runpath_var=LD_RUN_PATH
10568 ;;
10569 siemens)
10570 need_lib_prefix=no
10571 ;;
10572 motorola)
10573 need_lib_prefix=no
10574 need_version=no
10575 shlibpath_overrides_runpath=no
10576 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10577 ;;
10578 esac
10579 ;;
10580
10581 sysv4*MP*)
10582 if test -d /usr/nec ;then
10583 version_type=linux
10584 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10585 soname_spec='$libname${shared_ext}.$major'
10586 shlibpath_var=LD_LIBRARY_PATH
10587 fi
10588 ;;
10589
10590 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10591 version_type=freebsd-elf
10592 need_lib_prefix=no
10593 need_version=no
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10595 soname_spec='${libname}${release}${shared_ext}$major'
10596 shlibpath_var=LD_LIBRARY_PATH
10597 shlibpath_overrides_runpath=yes
10598 hardcode_into_libs=yes
10599 if test "$with_gnu_ld" = yes; then
10600 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10601 else
10602 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10603 case $host_os in
10604 sco3.2v5*)
10605 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10606 ;;
10607 esac
10608 fi
10609 sys_lib_dlsearch_path_spec='/usr/lib'
10610 ;;
10611
10612 tpf*)
10613 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10614 version_type=linux
10615 need_lib_prefix=no
10616 need_version=no
10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10618 shlibpath_var=LD_LIBRARY_PATH
10619 shlibpath_overrides_runpath=no
10620 hardcode_into_libs=yes
10621 ;;
10622
10623 uts4*)
10624 version_type=linux
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10626 soname_spec='${libname}${release}${shared_ext}$major'
10627 shlibpath_var=LD_LIBRARY_PATH
10628 ;;
10629
10630 *)
10631 dynamic_linker=no
10632 ;;
10633 esac
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10635 $as_echo "$dynamic_linker" >&6; }
10636 test "$dynamic_linker" = no && can_build_shared=no
10637
10638 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10639 if test "$GCC" = yes; then
10640 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10641 fi
10642
10643 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10644 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10645 fi
10646 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10647 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10648 fi
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10737 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10738 hardcode_action=
10739 if test -n "$hardcode_libdir_flag_spec" ||
10740 test -n "$runpath_var" ||
10741 test "X$hardcode_automatic" = "Xyes" ; then
10742
10743 # We can hardcode non-existent directories.
10744 if test "$hardcode_direct" != no &&
10745 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10746 # have to relink, otherwise we might link with an installed library
10747 # when we should be linking with a yet-to-be-installed one
10748 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10749 test "$hardcode_minus_L" != no; then
10750 # Linking always hardcodes the temporary library directory.
10751 hardcode_action=relink
10752 else
10753 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10754 hardcode_action=immediate
10755 fi
10756 else
10757 # We cannot hardcode anything, or else we can only hardcode existing
10758 # directories.
10759 hardcode_action=unsupported
10760 fi
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10762 $as_echo "$hardcode_action" >&6; }
10763
10764 if test "$hardcode_action" = relink ||
10765 test "$inherit_rpath" = yes; then
10766 # Fast installation is not supported
10767 enable_fast_install=no
10768 elif test "$shlibpath_overrides_runpath" = yes ||
10769 test "$enable_shared" = no; then
10770 # Fast installation is not necessary
10771 enable_fast_install=needless
10772 fi
10773
10774
10775
10776
10777
10778
10779 if test "x$enable_dlopen" != xyes; then
10780 enable_dlopen=unknown
10781 enable_dlopen_self=unknown
10782 enable_dlopen_self_static=unknown
10783 else
10784 lt_cv_dlopen=no
10785 lt_cv_dlopen_libs=
10786
10787 case $host_os in
10788 beos*)
10789 lt_cv_dlopen="load_add_on"
10790 lt_cv_dlopen_libs=
10791 lt_cv_dlopen_self=yes
10792 ;;
10793
10794 mingw* | pw32* | cegcc*)
10795 lt_cv_dlopen="LoadLibrary"
10796 lt_cv_dlopen_libs=
10797 ;;
10798
10799 cygwin*)
10800 lt_cv_dlopen="dlopen"
10801 lt_cv_dlopen_libs=
10802 ;;
10803
10804 darwin*)
10805 # if libdl is installed we need to link against it
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10807 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10808 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10809 $as_echo_n "(cached) " >&6
10810 else
10811 ac_check_lib_save_LIBS=$LIBS
10812 LIBS="-ldl $LIBS"
10813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h. */
10815
10816 /* Override any GCC internal prototype to avoid an error.
10817 Use char because int might match the return type of a GCC
10818 builtin and then its argument prototype would still apply. */
10819 #ifdef __cplusplus
10820 extern "C"
10821 #endif
10822 char dlopen ();
10823 int
10824 main ()
10825 {
10826 return dlopen ();
10827 ;
10828 return 0;
10829 }
10830 _ACEOF
10831 if ac_fn_c_try_link "$LINENO"; then :
10832 ac_cv_lib_dl_dlopen=yes
10833 else
10834 ac_cv_lib_dl_dlopen=no
10835 fi
10836 rm -f core conftest.err conftest.$ac_objext \
10837 conftest$ac_exeext conftest.$ac_ext
10838 LIBS=$ac_check_lib_save_LIBS
10839 fi
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10841 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10842 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10843 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10844 else
10845
10846 lt_cv_dlopen="dyld"
10847 lt_cv_dlopen_libs=
10848 lt_cv_dlopen_self=yes
10849
10850 fi
10851
10852 ;;
10853
10854 *)
10855 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10856 if test "x$ac_cv_func_shl_load" = x""yes; then :
10857 lt_cv_dlopen="shl_load"
10858 else
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10860 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10861 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10862 $as_echo_n "(cached) " >&6
10863 else
10864 ac_check_lib_save_LIBS=$LIBS
10865 LIBS="-ldld $LIBS"
10866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867 /* end confdefs.h. */
10868
10869 /* Override any GCC internal prototype to avoid an error.
10870 Use char because int might match the return type of a GCC
10871 builtin and then its argument prototype would still apply. */
10872 #ifdef __cplusplus
10873 extern "C"
10874 #endif
10875 char shl_load ();
10876 int
10877 main ()
10878 {
10879 return shl_load ();
10880 ;
10881 return 0;
10882 }
10883 _ACEOF
10884 if ac_fn_c_try_link "$LINENO"; then :
10885 ac_cv_lib_dld_shl_load=yes
10886 else
10887 ac_cv_lib_dld_shl_load=no
10888 fi
10889 rm -f core conftest.err conftest.$ac_objext \
10890 conftest$ac_exeext conftest.$ac_ext
10891 LIBS=$ac_check_lib_save_LIBS
10892 fi
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10894 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10895 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10896 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10897 else
10898 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10899 if test "x$ac_cv_func_dlopen" = x""yes; then :
10900 lt_cv_dlopen="dlopen"
10901 else
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10903 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10904 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10905 $as_echo_n "(cached) " >&6
10906 else
10907 ac_check_lib_save_LIBS=$LIBS
10908 LIBS="-ldl $LIBS"
10909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10910 /* end confdefs.h. */
10911
10912 /* Override any GCC internal prototype to avoid an error.
10913 Use char because int might match the return type of a GCC
10914 builtin and then its argument prototype would still apply. */
10915 #ifdef __cplusplus
10916 extern "C"
10917 #endif
10918 char dlopen ();
10919 int
10920 main ()
10921 {
10922 return dlopen ();
10923 ;
10924 return 0;
10925 }
10926 _ACEOF
10927 if ac_fn_c_try_link "$LINENO"; then :
10928 ac_cv_lib_dl_dlopen=yes
10929 else
10930 ac_cv_lib_dl_dlopen=no
10931 fi
10932 rm -f core conftest.err conftest.$ac_objext \
10933 conftest$ac_exeext conftest.$ac_ext
10934 LIBS=$ac_check_lib_save_LIBS
10935 fi
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10937 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10938 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10939 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10940 else
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10942 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10943 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10944 $as_echo_n "(cached) " >&6
10945 else
10946 ac_check_lib_save_LIBS=$LIBS
10947 LIBS="-lsvld $LIBS"
10948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949 /* end confdefs.h. */
10950
10951 /* Override any GCC internal prototype to avoid an error.
10952 Use char because int might match the return type of a GCC
10953 builtin and then its argument prototype would still apply. */
10954 #ifdef __cplusplus
10955 extern "C"
10956 #endif
10957 char dlopen ();
10958 int
10959 main ()
10960 {
10961 return dlopen ();
10962 ;
10963 return 0;
10964 }
10965 _ACEOF
10966 if ac_fn_c_try_link "$LINENO"; then :
10967 ac_cv_lib_svld_dlopen=yes
10968 else
10969 ac_cv_lib_svld_dlopen=no
10970 fi
10971 rm -f core conftest.err conftest.$ac_objext \
10972 conftest$ac_exeext conftest.$ac_ext
10973 LIBS=$ac_check_lib_save_LIBS
10974 fi
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10976 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10977 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10978 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10979 else
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10981 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10982 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10983 $as_echo_n "(cached) " >&6
10984 else
10985 ac_check_lib_save_LIBS=$LIBS
10986 LIBS="-ldld $LIBS"
10987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h. */
10989
10990 /* Override any GCC internal prototype to avoid an error.
10991 Use char because int might match the return type of a GCC
10992 builtin and then its argument prototype would still apply. */
10993 #ifdef __cplusplus
10994 extern "C"
10995 #endif
10996 char dld_link ();
10997 int
10998 main ()
10999 {
11000 return dld_link ();
11001 ;
11002 return 0;
11003 }
11004 _ACEOF
11005 if ac_fn_c_try_link "$LINENO"; then :
11006 ac_cv_lib_dld_dld_link=yes
11007 else
11008 ac_cv_lib_dld_dld_link=no
11009 fi
11010 rm -f core conftest.err conftest.$ac_objext \
11011 conftest$ac_exeext conftest.$ac_ext
11012 LIBS=$ac_check_lib_save_LIBS
11013 fi
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11015 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11016 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11017 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11018 fi
11019
11020
11021 fi
11022
11023
11024 fi
11025
11026
11027 fi
11028
11029
11030 fi
11031
11032
11033 fi
11034
11035 ;;
11036 esac
11037
11038 if test "x$lt_cv_dlopen" != xno; then
11039 enable_dlopen=yes
11040 else
11041 enable_dlopen=no
11042 fi
11043
11044 case $lt_cv_dlopen in
11045 dlopen)
11046 save_CPPFLAGS="$CPPFLAGS"
11047 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11048
11049 save_LDFLAGS="$LDFLAGS"
11050 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11051
11052 save_LIBS="$LIBS"
11053 LIBS="$lt_cv_dlopen_libs $LIBS"
11054
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11056 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11057 if test "${lt_cv_dlopen_self+set}" = set; then :
11058 $as_echo_n "(cached) " >&6
11059 else
11060 if test "$cross_compiling" = yes; then :
11061 lt_cv_dlopen_self=cross
11062 else
11063 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11064 lt_status=$lt_dlunknown
11065 cat > conftest.$ac_ext <<_LT_EOF
11066 #line 11066 "configure"
11067 #include "confdefs.h"
11068
11069 #if HAVE_DLFCN_H
11070 #include <dlfcn.h>
11071 #endif
11072
11073 #include <stdio.h>
11074
11075 #ifdef RTLD_GLOBAL
11076 # define LT_DLGLOBAL RTLD_GLOBAL
11077 #else
11078 # ifdef DL_GLOBAL
11079 # define LT_DLGLOBAL DL_GLOBAL
11080 # else
11081 # define LT_DLGLOBAL 0
11082 # endif
11083 #endif
11084
11085 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11086 find out it does not work in some platform. */
11087 #ifndef LT_DLLAZY_OR_NOW
11088 # ifdef RTLD_LAZY
11089 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11090 # else
11091 # ifdef DL_LAZY
11092 # define LT_DLLAZY_OR_NOW DL_LAZY
11093 # else
11094 # ifdef RTLD_NOW
11095 # define LT_DLLAZY_OR_NOW RTLD_NOW
11096 # else
11097 # ifdef DL_NOW
11098 # define LT_DLLAZY_OR_NOW DL_NOW
11099 # else
11100 # define LT_DLLAZY_OR_NOW 0
11101 # endif
11102 # endif
11103 # endif
11104 # endif
11105 #endif
11106
11107 void fnord() { int i=42;}
11108 int main ()
11109 {
11110 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11111 int status = $lt_dlunknown;
11112
11113 if (self)
11114 {
11115 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11116 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11117 /* dlclose (self); */
11118 }
11119 else
11120 puts (dlerror ());
11121
11122 return status;
11123 }
11124 _LT_EOF
11125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11126 (eval $ac_link) 2>&5
11127 ac_status=$?
11128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11129 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11130 (./conftest; exit; ) >&5 2>/dev/null
11131 lt_status=$?
11132 case x$lt_status in
11133 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11134 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11135 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11136 esac
11137 else :
11138 # compilation failed
11139 lt_cv_dlopen_self=no
11140 fi
11141 fi
11142 rm -fr conftest*
11143
11144
11145 fi
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11147 $as_echo "$lt_cv_dlopen_self" >&6; }
11148
11149 if test "x$lt_cv_dlopen_self" = xyes; then
11150 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11152 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11153 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11154 $as_echo_n "(cached) " >&6
11155 else
11156 if test "$cross_compiling" = yes; then :
11157 lt_cv_dlopen_self_static=cross
11158 else
11159 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11160 lt_status=$lt_dlunknown
11161 cat > conftest.$ac_ext <<_LT_EOF
11162 #line 11162 "configure"
11163 #include "confdefs.h"
11164
11165 #if HAVE_DLFCN_H
11166 #include <dlfcn.h>
11167 #endif
11168
11169 #include <stdio.h>
11170
11171 #ifdef RTLD_GLOBAL
11172 # define LT_DLGLOBAL RTLD_GLOBAL
11173 #else
11174 # ifdef DL_GLOBAL
11175 # define LT_DLGLOBAL DL_GLOBAL
11176 # else
11177 # define LT_DLGLOBAL 0
11178 # endif
11179 #endif
11180
11181 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11182 find out it does not work in some platform. */
11183 #ifndef LT_DLLAZY_OR_NOW
11184 # ifdef RTLD_LAZY
11185 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11186 # else
11187 # ifdef DL_LAZY
11188 # define LT_DLLAZY_OR_NOW DL_LAZY
11189 # else
11190 # ifdef RTLD_NOW
11191 # define LT_DLLAZY_OR_NOW RTLD_NOW
11192 # else
11193 # ifdef DL_NOW
11194 # define LT_DLLAZY_OR_NOW DL_NOW
11195 # else
11196 # define LT_DLLAZY_OR_NOW 0
11197 # endif
11198 # endif
11199 # endif
11200 # endif
11201 #endif
11202
11203 void fnord() { int i=42;}
11204 int main ()
11205 {
11206 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11207 int status = $lt_dlunknown;
11208
11209 if (self)
11210 {
11211 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11212 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11213 /* dlclose (self); */
11214 }
11215 else
11216 puts (dlerror ());
11217
11218 return status;
11219 }
11220 _LT_EOF
11221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11222 (eval $ac_link) 2>&5
11223 ac_status=$?
11224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11225 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11226 (./conftest; exit; ) >&5 2>/dev/null
11227 lt_status=$?
11228 case x$lt_status in
11229 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11230 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11231 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11232 esac
11233 else :
11234 # compilation failed
11235 lt_cv_dlopen_self_static=no
11236 fi
11237 fi
11238 rm -fr conftest*
11239
11240
11241 fi
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11243 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11244 fi
11245
11246 CPPFLAGS="$save_CPPFLAGS"
11247 LDFLAGS="$save_LDFLAGS"
11248 LIBS="$save_LIBS"
11249 ;;
11250 esac
11251
11252 case $lt_cv_dlopen_self in
11253 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11254 *) enable_dlopen_self=unknown ;;
11255 esac
11256
11257 case $lt_cv_dlopen_self_static in
11258 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11259 *) enable_dlopen_self_static=unknown ;;
11260 esac
11261 fi
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279 striplib=
11280 old_striplib=
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11282 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11283 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11284 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11285 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11287 $as_echo "yes" >&6; }
11288 else
11289 # FIXME - insert some real tests, host_os isn't really good enough
11290 case $host_os in
11291 darwin*)
11292 if test -n "$STRIP" ; then
11293 striplib="$STRIP -x"
11294 old_striplib="$STRIP -S"
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11296 $as_echo "yes" >&6; }
11297 else
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11299 $as_echo "no" >&6; }
11300 fi
11301 ;;
11302 *)
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11304 $as_echo "no" >&6; }
11305 ;;
11306 esac
11307 fi
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320 # Report which library types will actually be built
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11322 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11324 $as_echo "$can_build_shared" >&6; }
11325
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11327 $as_echo_n "checking whether to build shared libraries... " >&6; }
11328 test "$can_build_shared" = "no" && enable_shared=no
11329
11330 # On AIX, shared libraries and static libraries use the same namespace, and
11331 # are all built from PIC.
11332 case $host_os in
11333 aix3*)
11334 test "$enable_shared" = yes && enable_static=no
11335 if test -n "$RANLIB"; then
11336 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11337 postinstall_cmds='$RANLIB $lib'
11338 fi
11339 ;;
11340
11341 aix[4-9]*)
11342 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11343 test "$enable_shared" = yes && enable_static=no
11344 fi
11345 ;;
11346 esac
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11348 $as_echo "$enable_shared" >&6; }
11349
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11351 $as_echo_n "checking whether to build static libraries... " >&6; }
11352 # Make sure either enable_shared or enable_static is yes.
11353 test "$enable_shared" = yes || enable_static=yes
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11355 $as_echo "$enable_static" >&6; }
11356
11357
11358
11359
11360 fi
11361 ac_ext=c
11362 ac_cpp='$CPP $CPPFLAGS'
11363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11366
11367 CC="$lt_save_CC"
11368
11369
11370 ac_ext=cpp
11371 ac_cpp='$CXXCPP $CPPFLAGS'
11372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11375
11376 archive_cmds_need_lc_CXX=no
11377 allow_undefined_flag_CXX=
11378 always_export_symbols_CXX=no
11379 archive_expsym_cmds_CXX=
11380 compiler_needs_object_CXX=no
11381 export_dynamic_flag_spec_CXX=
11382 hardcode_direct_CXX=no
11383 hardcode_direct_absolute_CXX=no
11384 hardcode_libdir_flag_spec_CXX=
11385 hardcode_libdir_flag_spec_ld_CXX=
11386 hardcode_libdir_separator_CXX=
11387 hardcode_minus_L_CXX=no
11388 hardcode_shlibpath_var_CXX=unsupported
11389 hardcode_automatic_CXX=no
11390 inherit_rpath_CXX=no
11391 module_cmds_CXX=
11392 module_expsym_cmds_CXX=
11393 link_all_deplibs_CXX=unknown
11394 old_archive_cmds_CXX=$old_archive_cmds
11395 no_undefined_flag_CXX=
11396 whole_archive_flag_spec_CXX=
11397 enable_shared_with_static_runtimes_CXX=no
11398
11399 # Source file extension for C++ test sources.
11400 ac_ext=cpp
11401
11402 # Object file extension for compiled C++ test sources.
11403 objext=o
11404 objext_CXX=$objext
11405
11406 # No sense in running all these tests if we already determined that
11407 # the CXX compiler isn't working. Some variables (like enable_shared)
11408 # are currently assumed to apply to all compilers on this platform,
11409 # and will be corrupted by setting them based on a non-working compiler.
11410 if test "$_lt_caught_CXX_error" != yes; then
11411 # Code to be used in simple compile tests
11412 lt_simple_compile_test_code="int some_variable = 0;"
11413
11414 # Code to be used in simple link tests
11415 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11416
11417 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11418
11419
11420
11421
11422
11423
11424 # If no C compiler was specified, use CC.
11425 LTCC=${LTCC-"$CC"}
11426
11427 # If no C compiler flags were specified, use CFLAGS.
11428 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11429
11430 # Allow CC to be a program name with arguments.
11431 compiler=$CC
11432
11433
11434 # save warnings/boilerplate of simple test code
11435 ac_outfile=conftest.$ac_objext
11436 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11437 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11438 _lt_compiler_boilerplate=`cat conftest.err`
11439 $RM conftest*
11440
11441 ac_outfile=conftest.$ac_objext
11442 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11443 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11444 _lt_linker_boilerplate=`cat conftest.err`
11445 $RM -r conftest*
11446
11447
11448 # Allow CC to be a program name with arguments.
11449 lt_save_CC=$CC
11450 lt_save_LD=$LD
11451 lt_save_GCC=$GCC
11452 GCC=$GXX
11453 lt_save_with_gnu_ld=$with_gnu_ld
11454 lt_save_path_LD=$lt_cv_path_LD
11455 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11456 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11457 else
11458 $as_unset lt_cv_prog_gnu_ld
11459 fi
11460 if test -n "${lt_cv_path_LDCXX+set}"; then
11461 lt_cv_path_LD=$lt_cv_path_LDCXX
11462 else
11463 $as_unset lt_cv_path_LD
11464 fi
11465 test -z "${LDCXX+set}" || LD=$LDCXX
11466 CC=${CXX-"c++"}
11467 compiler=$CC
11468 compiler_CXX=$CC
11469 for cc_temp in $compiler""; do
11470 case $cc_temp in
11471 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11472 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11473 \-*) ;;
11474 *) break;;
11475 esac
11476 done
11477 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11478
11479
11480 if test -n "$compiler"; then
11481 # We don't want -fno-exception when compiling C++ code, so set the
11482 # no_builtin_flag separately
11483 if test "$GXX" = yes; then
11484 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11485 else
11486 lt_prog_compiler_no_builtin_flag_CXX=
11487 fi
11488
11489 if test "$GXX" = yes; then
11490 # Set up default GNU C++ configuration
11491
11492
11493
11494 # Check whether --with-gnu-ld was given.
11495 if test "${with_gnu_ld+set}" = set; then :
11496 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11497 else
11498 with_gnu_ld=no
11499 fi
11500
11501 ac_prog=ld
11502 if test "$GCC" = yes; then
11503 # Check if gcc -print-prog-name=ld gives a path.
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11505 $as_echo_n "checking for ld used by $CC... " >&6; }
11506 case $host in
11507 *-*-mingw*)
11508 # gcc leaves a trailing carriage return which upsets mingw
11509 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11510 *)
11511 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11512 esac
11513 case $ac_prog in
11514 # Accept absolute paths.
11515 [\\/]* | ?:[\\/]*)
11516 re_direlt='/[^/][^/]*/\.\./'
11517 # Canonicalize the pathname of ld
11518 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11519 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11520 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11521 done
11522 test -z "$LD" && LD="$ac_prog"
11523 ;;
11524 "")
11525 # If it fails, then pretend we aren't using GCC.
11526 ac_prog=ld
11527 ;;
11528 *)
11529 # If it is relative, then search for the first ld in PATH.
11530 with_gnu_ld=unknown
11531 ;;
11532 esac
11533 elif test "$with_gnu_ld" = yes; then
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11535 $as_echo_n "checking for GNU ld... " >&6; }
11536 else
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11538 $as_echo_n "checking for non-GNU ld... " >&6; }
11539 fi
11540 if test "${lt_cv_path_LD+set}" = set; then :
11541 $as_echo_n "(cached) " >&6
11542 else
11543 if test -z "$LD"; then
11544 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11545 for ac_dir in $PATH; do
11546 IFS="$lt_save_ifs"
11547 test -z "$ac_dir" && ac_dir=.
11548 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11549 lt_cv_path_LD="$ac_dir/$ac_prog"
11550 # Check to see if the program is GNU ld. I'd rather use --version,
11551 # but apparently some variants of GNU ld only accept -v.
11552 # Break only if it was the GNU/non-GNU ld that we prefer.
11553 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11554 *GNU* | *'with BFD'*)
11555 test "$with_gnu_ld" != no && break
11556 ;;
11557 *)
11558 test "$with_gnu_ld" != yes && break
11559 ;;
11560 esac
11561 fi
11562 done
11563 IFS="$lt_save_ifs"
11564 else
11565 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11566 fi
11567 fi
11568
11569 LD="$lt_cv_path_LD"
11570 if test -n "$LD"; then
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11572 $as_echo "$LD" >&6; }
11573 else
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11575 $as_echo "no" >&6; }
11576 fi
11577 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11579 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11580 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11581 $as_echo_n "(cached) " >&6
11582 else
11583 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11584 case `$LD -v 2>&1 </dev/null` in
11585 *GNU* | *'with BFD'*)
11586 lt_cv_prog_gnu_ld=yes
11587 ;;
11588 *)
11589 lt_cv_prog_gnu_ld=no
11590 ;;
11591 esac
11592 fi
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11594 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11595 with_gnu_ld=$lt_cv_prog_gnu_ld
11596
11597
11598
11599
11600
11601
11602
11603 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11604 # archiving commands below assume that GNU ld is being used.
11605 if test "$with_gnu_ld" = yes; then
11606 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11607 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11608
11609 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11610 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11611
11612 # If archive_cmds runs LD, not CC, wlarc should be empty
11613 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11614 # investigate it a little bit more. (MM)
11615 wlarc='${wl}'
11616
11617 # ancient GNU ld didn't support --whole-archive et. al.
11618 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11619 $GREP 'no-whole-archive' > /dev/null; then
11620 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11621 else
11622 whole_archive_flag_spec_CXX=
11623 fi
11624 else
11625 with_gnu_ld=no
11626 wlarc=
11627
11628 # A generic and very simple default shared library creation
11629 # command for GNU C++ for the case where it uses the native
11630 # linker, instead of GNU ld. If possible, this setting should
11631 # overridden to take advantage of the native linker features on
11632 # the platform it is being used on.
11633 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11634 fi
11635
11636 # Commands to make compiler produce verbose output that lists
11637 # what "hidden" libraries, object files and flags are used when
11638 # linking a shared library.
11639 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11640
11641 else
11642 GXX=no
11643 with_gnu_ld=no
11644 wlarc=
11645 fi
11646
11647 # PORTME: fill in a description of your system's C++ link characteristics
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11649 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11650 ld_shlibs_CXX=yes
11651 case $host_os in
11652 aix3*)
11653 # FIXME: insert proper C++ library support
11654 ld_shlibs_CXX=no
11655 ;;
11656 aix[4-9]*)
11657 if test "$host_cpu" = ia64; then
11658 # On IA64, the linker does run time linking by default, so we don't
11659 # have to do anything special.
11660 aix_use_runtimelinking=no
11661 exp_sym_flag='-Bexport'
11662 no_entry_flag=""
11663 else
11664 aix_use_runtimelinking=no
11665
11666 # Test if we are trying to use run time linking or normal
11667 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11668 # need to do runtime linking.
11669 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11670 for ld_flag in $LDFLAGS; do
11671 case $ld_flag in
11672 *-brtl*)
11673 aix_use_runtimelinking=yes
11674 break
11675 ;;
11676 esac
11677 done
11678 ;;
11679 esac
11680
11681 exp_sym_flag='-bexport'
11682 no_entry_flag='-bnoentry'
11683 fi
11684
11685 # When large executables or shared objects are built, AIX ld can
11686 # have problems creating the table of contents. If linking a library
11687 # or program results in "error TOC overflow" add -mminimal-toc to
11688 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11689 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11690
11691 archive_cmds_CXX=''
11692 hardcode_direct_CXX=yes
11693 hardcode_direct_absolute_CXX=yes
11694 hardcode_libdir_separator_CXX=':'
11695 link_all_deplibs_CXX=yes
11696 file_list_spec_CXX='${wl}-f,'
11697
11698 if test "$GXX" = yes; then
11699 case $host_os in aix4.[012]|aix4.[012].*)
11700 # We only want to do this on AIX 4.2 and lower, the check
11701 # below for broken collect2 doesn't work under 4.3+
11702 collect2name=`${CC} -print-prog-name=collect2`
11703 if test -f "$collect2name" &&
11704 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11705 then
11706 # We have reworked collect2
11707 :
11708 else
11709 # We have old collect2
11710 hardcode_direct_CXX=unsupported
11711 # It fails to find uninstalled libraries when the uninstalled
11712 # path is not listed in the libpath. Setting hardcode_minus_L
11713 # to unsupported forces relinking
11714 hardcode_minus_L_CXX=yes
11715 hardcode_libdir_flag_spec_CXX='-L$libdir'
11716 hardcode_libdir_separator_CXX=
11717 fi
11718 esac
11719 shared_flag='-shared'
11720 if test "$aix_use_runtimelinking" = yes; then
11721 shared_flag="$shared_flag "'${wl}-G'
11722 fi
11723 else
11724 # not using gcc
11725 if test "$host_cpu" = ia64; then
11726 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11727 # chokes on -Wl,-G. The following line is correct:
11728 shared_flag='-G'
11729 else
11730 if test "$aix_use_runtimelinking" = yes; then
11731 shared_flag='${wl}-G'
11732 else
11733 shared_flag='${wl}-bM:SRE'
11734 fi
11735 fi
11736 fi
11737
11738 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11739 # It seems that -bexpall does not export symbols beginning with
11740 # underscore (_), so it is better to generate a list of symbols to
11741 # export.
11742 always_export_symbols_CXX=yes
11743 if test "$aix_use_runtimelinking" = yes; then
11744 # Warning - without using the other runtime loading flags (-brtl),
11745 # -berok will link without error, but may produce a broken library.
11746 allow_undefined_flag_CXX='-berok'
11747 # Determine the default libpath from the value encoded in an empty
11748 # executable.
11749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11750 /* end confdefs.h. */
11751
11752 int
11753 main ()
11754 {
11755
11756 ;
11757 return 0;
11758 }
11759 _ACEOF
11760 if ac_fn_cxx_try_link "$LINENO"; then :
11761
11762 lt_aix_libpath_sed='
11763 /Import File Strings/,/^$/ {
11764 /^0/ {
11765 s/^0 *\(.*\)$/\1/
11766 p
11767 }
11768 }'
11769 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11770 # Check for a 64-bit object if we didn't find anything.
11771 if test -z "$aix_libpath"; then
11772 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11773 fi
11774 fi
11775 rm -f core conftest.err conftest.$ac_objext \
11776 conftest$ac_exeext conftest.$ac_ext
11777 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11778
11779 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11780
11781 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11782 else
11783 if test "$host_cpu" = ia64; then
11784 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11785 allow_undefined_flag_CXX="-z nodefs"
11786 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"
11787 else
11788 # Determine the default libpath from the value encoded in an
11789 # empty executable.
11790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11791 /* end confdefs.h. */
11792
11793 int
11794 main ()
11795 {
11796
11797 ;
11798 return 0;
11799 }
11800 _ACEOF
11801 if ac_fn_cxx_try_link "$LINENO"; then :
11802
11803 lt_aix_libpath_sed='
11804 /Import File Strings/,/^$/ {
11805 /^0/ {
11806 s/^0 *\(.*\)$/\1/
11807 p
11808 }
11809 }'
11810 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11811 # Check for a 64-bit object if we didn't find anything.
11812 if test -z "$aix_libpath"; then
11813 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11814 fi
11815 fi
11816 rm -f core conftest.err conftest.$ac_objext \
11817 conftest$ac_exeext conftest.$ac_ext
11818 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11819
11820 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11821 # Warning - without using the other run time loading flags,
11822 # -berok will link without error, but may produce a broken library.
11823 no_undefined_flag_CXX=' ${wl}-bernotok'
11824 allow_undefined_flag_CXX=' ${wl}-berok'
11825 # Exported symbols can be pulled into shared objects from archives
11826 whole_archive_flag_spec_CXX='$convenience'
11827 archive_cmds_need_lc_CXX=yes
11828 # This is similar to how AIX traditionally builds its shared
11829 # libraries.
11830 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'
11831 fi
11832 fi
11833 ;;
11834
11835 beos*)
11836 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11837 allow_undefined_flag_CXX=unsupported
11838 # Joseph Beckenbach <[email protected]> says some releases of gcc
11839 # support --undefined. This deserves some investigation. FIXME
11840 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11841 else
11842 ld_shlibs_CXX=no
11843 fi
11844 ;;
11845
11846 chorus*)
11847 case $cc_basename in
11848 *)
11849 # FIXME: insert proper C++ library support
11850 ld_shlibs_CXX=no
11851 ;;
11852 esac
11853 ;;
11854
11855 cygwin* | mingw* | pw32* | cegcc*)
11856 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11857 # as there is no search path for DLLs.
11858 hardcode_libdir_flag_spec_CXX='-L$libdir'
11859 allow_undefined_flag_CXX=unsupported
11860 always_export_symbols_CXX=no
11861 enable_shared_with_static_runtimes_CXX=yes
11862
11863 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11864 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'
11865 # If the export-symbols file already is a .def file (1st line
11866 # is EXPORTS), use it as is; otherwise, prepend...
11867 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11868 cp $export_symbols $output_objdir/$soname.def;
11869 else
11870 echo EXPORTS > $output_objdir/$soname.def;
11871 cat $export_symbols >> $output_objdir/$soname.def;
11872 fi~
11873 $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'
11874 else
11875 ld_shlibs_CXX=no
11876 fi
11877 ;;
11878 darwin* | rhapsody*)
11879
11880
11881 archive_cmds_need_lc_CXX=no
11882 hardcode_direct_CXX=no
11883 hardcode_automatic_CXX=yes
11884 hardcode_shlibpath_var_CXX=unsupported
11885 whole_archive_flag_spec_CXX=''
11886 link_all_deplibs_CXX=yes
11887 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11888 case $cc_basename in
11889 ifort*) _lt_dar_can_shared=yes ;;
11890 *) _lt_dar_can_shared=$GCC ;;
11891 esac
11892 if test "$_lt_dar_can_shared" = "yes"; then
11893 output_verbose_link_cmd=echo
11894 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}"
11895 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11896 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}"
11897 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}"
11898 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11899 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}"
11900 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}"
11901 fi
11902
11903 else
11904 ld_shlibs_CXX=no
11905 fi
11906
11907 ;;
11908
11909 dgux*)
11910 case $cc_basename in
11911 ec++*)
11912 # FIXME: insert proper C++ library support
11913 ld_shlibs_CXX=no
11914 ;;
11915 ghcx*)
11916 # Green Hills C++ Compiler
11917 # FIXME: insert proper C++ library support
11918 ld_shlibs_CXX=no
11919 ;;
11920 *)
11921 # FIXME: insert proper C++ library support
11922 ld_shlibs_CXX=no
11923 ;;
11924 esac
11925 ;;
11926
11927 freebsd[12]*)
11928 # C++ shared libraries reported to be fairly broken before
11929 # switch to ELF
11930 ld_shlibs_CXX=no
11931 ;;
11932
11933 freebsd-elf*)
11934 archive_cmds_need_lc_CXX=no
11935 ;;
11936
11937 freebsd* | dragonfly*)
11938 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11939 # conventions
11940 ld_shlibs_CXX=yes
11941 ;;
11942
11943 gnu*)
11944 ;;
11945
11946 hpux9*)
11947 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11948 hardcode_libdir_separator_CXX=:
11949 export_dynamic_flag_spec_CXX='${wl}-E'
11950 hardcode_direct_CXX=yes
11951 hardcode_minus_L_CXX=yes # Not in the search PATH,
11952 # but as the default
11953 # location of the library.
11954
11955 case $cc_basename in
11956 CC*)
11957 # FIXME: insert proper C++ library support
11958 ld_shlibs_CXX=no
11959 ;;
11960 aCC*)
11961 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'
11962 # Commands to make compiler produce verbose output that lists
11963 # what "hidden" libraries, object files and flags are used when
11964 # linking a shared library.
11965 #
11966 # There doesn't appear to be a way to prevent this compiler from
11967 # explicitly linking system object files so we need to strip them
11968 # from the output so that they don't get included in the library
11969 # dependencies.
11970 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; $ECHO "X$list" | $Xsed'
11971 ;;
11972 *)
11973 if test "$GXX" = yes; then
11974 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11975 else
11976 # FIXME: insert proper C++ library support
11977 ld_shlibs_CXX=no
11978 fi
11979 ;;
11980 esac
11981 ;;
11982
11983 hpux10*|hpux11*)
11984 if test $with_gnu_ld = no; then
11985 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11986 hardcode_libdir_separator_CXX=:
11987
11988 case $host_cpu in
11989 hppa*64*|ia64*)
11990 ;;
11991 *)
11992 export_dynamic_flag_spec_CXX='${wl}-E'
11993 ;;
11994 esac
11995 fi
11996 case $host_cpu in
11997 hppa*64*|ia64*)
11998 hardcode_direct_CXX=no
11999 hardcode_shlibpath_var_CXX=no
12000 ;;
12001 *)
12002 hardcode_direct_CXX=yes
12003 hardcode_direct_absolute_CXX=yes
12004 hardcode_minus_L_CXX=yes # Not in the search PATH,
12005 # but as the default
12006 # location of the library.
12007 ;;
12008 esac
12009
12010 case $cc_basename in
12011 CC*)
12012 # FIXME: insert proper C++ library support
12013 ld_shlibs_CXX=no
12014 ;;
12015 aCC*)
12016 case $host_cpu in
12017 hppa*64*)
12018 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12019 ;;
12020 ia64*)
12021 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12022 ;;
12023 *)
12024 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12025 ;;
12026 esac
12027 # Commands to make compiler produce verbose output that lists
12028 # what "hidden" libraries, object files and flags are used when
12029 # linking a shared library.
12030 #
12031 # There doesn't appear to be a way to prevent this compiler from
12032 # explicitly linking system object files so we need to strip them
12033 # from the output so that they don't get included in the library
12034 # dependencies.
12035 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12036 ;;
12037 *)
12038 if test "$GXX" = yes; then
12039 if test $with_gnu_ld = no; then
12040 case $host_cpu in
12041 hppa*64*)
12042 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12043 ;;
12044 ia64*)
12045 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12046 ;;
12047 *)
12048 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12049 ;;
12050 esac
12051 fi
12052 else
12053 # FIXME: insert proper C++ library support
12054 ld_shlibs_CXX=no
12055 fi
12056 ;;
12057 esac
12058 ;;
12059
12060 interix[3-9]*)
12061 hardcode_direct_CXX=no
12062 hardcode_shlibpath_var_CXX=no
12063 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12064 export_dynamic_flag_spec_CXX='${wl}-E'
12065 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12066 # Instead, shared libraries are loaded at an image base (0x10000000 by
12067 # default) and relocated if they conflict, which is a slow very memory
12068 # consuming and fragmenting process. To avoid this, we pick a random,
12069 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12070 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12071 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'
12072 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'
12073 ;;
12074 irix5* | irix6*)
12075 case $cc_basename in
12076 CC*)
12077 # SGI C++
12078 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12079
12080 # Archives containing C++ object files must be created using
12081 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12082 # necessary to make sure instantiated templates are included
12083 # in the archive.
12084 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12085 ;;
12086 *)
12087 if test "$GXX" = yes; then
12088 if test "$with_gnu_ld" = no; then
12089 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12090 else
12091 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12092 fi
12093 fi
12094 link_all_deplibs_CXX=yes
12095 ;;
12096 esac
12097 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12098 hardcode_libdir_separator_CXX=:
12099 inherit_rpath_CXX=yes
12100 ;;
12101
12102 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12103 case $cc_basename in
12104 KCC*)
12105 # Kuck and Associates, Inc. (KAI) C++ Compiler
12106
12107 # KCC will only create a shared library if the output file
12108 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12109 # to its proper name (with version) after linking.
12110 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'
12111 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'
12112 # Commands to make compiler produce verbose output that lists
12113 # what "hidden" libraries, object files and flags are used when
12114 # linking a shared library.
12115 #
12116 # There doesn't appear to be a way to prevent this compiler from
12117 # explicitly linking system object files so we need to strip them
12118 # from the output so that they don't get included in the library
12119 # dependencies.
12120 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12121
12122 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12123 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12124
12125 # Archives containing C++ object files must be created using
12126 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12127 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12128 ;;
12129 icpc* | ecpc* )
12130 # Intel C++
12131 with_gnu_ld=yes
12132 # version 8.0 and above of icpc choke on multiply defined symbols
12133 # if we add $predep_objects and $postdep_objects, however 7.1 and
12134 # earlier do not add the objects themselves.
12135 case `$CC -V 2>&1` in
12136 *"Version 7."*)
12137 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12138 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'
12139 ;;
12140 *) # Version 8.0 or newer
12141 tmp_idyn=
12142 case $host_cpu in
12143 ia64*) tmp_idyn=' -i_dynamic';;
12144 esac
12145 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12146 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'
12147 ;;
12148 esac
12149 archive_cmds_need_lc_CXX=no
12150 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12151 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12152 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12153 ;;
12154 pgCC* | pgcpp*)
12155 # Portland Group C++ compiler
12156 case `$CC -V` in
12157 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12158 prelink_cmds_CXX='tpldir=Template.dir~
12159 rm -rf $tpldir~
12160 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12161 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12162 old_archive_cmds_CXX='tpldir=Template.dir~
12163 rm -rf $tpldir~
12164 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12165 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12166 $RANLIB $oldlib'
12167 archive_cmds_CXX='tpldir=Template.dir~
12168 rm -rf $tpldir~
12169 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12170 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12171 archive_expsym_cmds_CXX='tpldir=Template.dir~
12172 rm -rf $tpldir~
12173 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12174 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12175 ;;
12176 *) # Version 6 will use weak symbols
12177 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12178 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'
12179 ;;
12180 esac
12181
12182 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12183 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12184 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12185 ;;
12186 cxx*)
12187 # Compaq C++
12188 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12189 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'
12190
12191 runpath_var=LD_RUN_PATH
12192 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12193 hardcode_libdir_separator_CXX=:
12194
12195 # Commands to make compiler produce verbose output that lists
12196 # what "hidden" libraries, object files and flags are used when
12197 # linking a shared library.
12198 #
12199 # There doesn't appear to be a way to prevent this compiler from
12200 # explicitly linking system object files so we need to strip them
12201 # from the output so that they don't get included in the library
12202 # dependencies.
12203 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12204 ;;
12205 xl*)
12206 # IBM XL 8.0 on PPC, with GNU ld
12207 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12208 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12209 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12210 if test "x$supports_anon_versioning" = xyes; then
12211 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12212 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12213 echo "local: *; };" >> $output_objdir/$libname.ver~
12214 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12215 fi
12216 ;;
12217 *)
12218 case `$CC -V 2>&1 | sed 5q` in
12219 *Sun\ C*)
12220 # Sun C++ 5.9
12221 no_undefined_flag_CXX=' -zdefs'
12222 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12223 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'
12224 hardcode_libdir_flag_spec_CXX='-R$libdir'
12225 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12226 compiler_needs_object_CXX=yes
12227
12228 # Not sure whether something based on
12229 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12230 # would be better.
12231 output_verbose_link_cmd='echo'
12232
12233 # Archives containing C++ object files must be created using
12234 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12235 # necessary to make sure instantiated templates are included
12236 # in the archive.
12237 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12238 ;;
12239 esac
12240 ;;
12241 esac
12242 ;;
12243
12244 lynxos*)
12245 # FIXME: insert proper C++ library support
12246 ld_shlibs_CXX=no
12247 ;;
12248
12249 m88k*)
12250 # FIXME: insert proper C++ library support
12251 ld_shlibs_CXX=no
12252 ;;
12253
12254 mvs*)
12255 case $cc_basename in
12256 cxx*)
12257 # FIXME: insert proper C++ library support
12258 ld_shlibs_CXX=no
12259 ;;
12260 *)
12261 # FIXME: insert proper C++ library support
12262 ld_shlibs_CXX=no
12263 ;;
12264 esac
12265 ;;
12266
12267 netbsd*)
12268 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12269 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12270 wlarc=
12271 hardcode_libdir_flag_spec_CXX='-R$libdir'
12272 hardcode_direct_CXX=yes
12273 hardcode_shlibpath_var_CXX=no
12274 fi
12275 # Workaround some broken pre-1.5 toolchains
12276 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12277 ;;
12278
12279 *nto* | *qnx*)
12280 ld_shlibs_CXX=yes
12281 ;;
12282
12283 openbsd2*)
12284 # C++ shared libraries are fairly broken
12285 ld_shlibs_CXX=no
12286 ;;
12287
12288 openbsd*)
12289 if test -f /usr/libexec/ld.so; then
12290 hardcode_direct_CXX=yes
12291 hardcode_shlibpath_var_CXX=no
12292 hardcode_direct_absolute_CXX=yes
12293 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12294 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12295 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12296 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12297 export_dynamic_flag_spec_CXX='${wl}-E'
12298 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12299 fi
12300 output_verbose_link_cmd=echo
12301 else
12302 ld_shlibs_CXX=no
12303 fi
12304 ;;
12305
12306 osf3* | osf4* | osf5*)
12307 case $cc_basename in
12308 KCC*)
12309 # Kuck and Associates, Inc. (KAI) C++ Compiler
12310
12311 # KCC will only create a shared library if the output file
12312 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12313 # to its proper name (with version) after linking.
12314 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'
12315
12316 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12317 hardcode_libdir_separator_CXX=:
12318
12319 # Archives containing C++ object files must be created using
12320 # the KAI C++ compiler.
12321 case $host in
12322 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12323 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12324 esac
12325 ;;
12326 RCC*)
12327 # Rational C++ 2.4.1
12328 # FIXME: insert proper C++ library support
12329 ld_shlibs_CXX=no
12330 ;;
12331 cxx*)
12332 case $host in
12333 osf3*)
12334 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12335 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12336 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12337 ;;
12338 *)
12339 allow_undefined_flag_CXX=' -expect_unresolved \*'
12340 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12341 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12342 echo "-hidden">> $lib.exp~
12343 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12344 $RM $lib.exp'
12345 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12346 ;;
12347 esac
12348
12349 hardcode_libdir_separator_CXX=:
12350
12351 # Commands to make compiler produce verbose output that lists
12352 # what "hidden" libraries, object files and flags are used when
12353 # linking a shared library.
12354 #
12355 # There doesn't appear to be a way to prevent this compiler from
12356 # explicitly linking system object files so we need to strip them
12357 # from the output so that they don't get included in the library
12358 # dependencies.
12359 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12360 ;;
12361 *)
12362 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12363 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12364 case $host in
12365 osf3*)
12366 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12367 ;;
12368 *)
12369 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12370 ;;
12371 esac
12372
12373 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12374 hardcode_libdir_separator_CXX=:
12375
12376 # Commands to make compiler produce verbose output that lists
12377 # what "hidden" libraries, object files and flags are used when
12378 # linking a shared library.
12379 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12380
12381 else
12382 # FIXME: insert proper C++ library support
12383 ld_shlibs_CXX=no
12384 fi
12385 ;;
12386 esac
12387 ;;
12388
12389 psos*)
12390 # FIXME: insert proper C++ library support
12391 ld_shlibs_CXX=no
12392 ;;
12393
12394 sunos4*)
12395 case $cc_basename in
12396 CC*)
12397 # Sun C++ 4.x
12398 # FIXME: insert proper C++ library support
12399 ld_shlibs_CXX=no
12400 ;;
12401 lcc*)
12402 # Lucid
12403 # FIXME: insert proper C++ library support
12404 ld_shlibs_CXX=no
12405 ;;
12406 *)
12407 # FIXME: insert proper C++ library support
12408 ld_shlibs_CXX=no
12409 ;;
12410 esac
12411 ;;
12412
12413 solaris*)
12414 case $cc_basename in
12415 CC*)
12416 # Sun C++ 4.2, 5.x and Centerline C++
12417 archive_cmds_need_lc_CXX=yes
12418 no_undefined_flag_CXX=' -zdefs'
12419 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12420 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12421 $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'
12422
12423 hardcode_libdir_flag_spec_CXX='-R$libdir'
12424 hardcode_shlibpath_var_CXX=no
12425 case $host_os in
12426 solaris2.[0-5] | solaris2.[0-5].*) ;;
12427 *)
12428 # The compiler driver will combine and reorder linker options,
12429 # but understands `-z linker_flag'.
12430 # Supported since Solaris 2.6 (maybe 2.5.1?)
12431 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12432 ;;
12433 esac
12434 link_all_deplibs_CXX=yes
12435
12436 output_verbose_link_cmd='echo'
12437
12438 # Archives containing C++ object files must be created using
12439 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12440 # necessary to make sure instantiated templates are included
12441 # in the archive.
12442 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12443 ;;
12444 gcx*)
12445 # Green Hills C++ Compiler
12446 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12447
12448 # The C++ compiler must be used to create the archive.
12449 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12450 ;;
12451 *)
12452 # GNU C++ compiler with Solaris linker
12453 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12454 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12455 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12456 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12457 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12458 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12459
12460 # Commands to make compiler produce verbose output that lists
12461 # what "hidden" libraries, object files and flags are used when
12462 # linking a shared library.
12463 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12464 else
12465 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12466 # platform.
12467 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12468 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12469 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12470
12471 # Commands to make compiler produce verbose output that lists
12472 # what "hidden" libraries, object files and flags are used when
12473 # linking a shared library.
12474 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12475 fi
12476
12477 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12478 case $host_os in
12479 solaris2.[0-5] | solaris2.[0-5].*) ;;
12480 *)
12481 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12482 ;;
12483 esac
12484 fi
12485 ;;
12486 esac
12487 ;;
12488
12489 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12490 no_undefined_flag_CXX='${wl}-z,text'
12491 archive_cmds_need_lc_CXX=no
12492 hardcode_shlibpath_var_CXX=no
12493 runpath_var='LD_RUN_PATH'
12494
12495 case $cc_basename in
12496 CC*)
12497 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12498 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12499 ;;
12500 *)
12501 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12502 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12503 ;;
12504 esac
12505 ;;
12506
12507 sysv5* | sco3.2v5* | sco5v6*)
12508 # Note: We can NOT use -z defs as we might desire, because we do not
12509 # link with -lc, and that would cause any symbols used from libc to
12510 # always be unresolved, which means just about no library would
12511 # ever link correctly. If we're not using GNU ld we use -z text
12512 # though, which does catch some bad symbols but isn't as heavy-handed
12513 # as -z defs.
12514 no_undefined_flag_CXX='${wl}-z,text'
12515 allow_undefined_flag_CXX='${wl}-z,nodefs'
12516 archive_cmds_need_lc_CXX=no
12517 hardcode_shlibpath_var_CXX=no
12518 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12519 hardcode_libdir_separator_CXX=':'
12520 link_all_deplibs_CXX=yes
12521 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12522 runpath_var='LD_RUN_PATH'
12523
12524 case $cc_basename in
12525 CC*)
12526 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12527 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12528 ;;
12529 *)
12530 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12531 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12532 ;;
12533 esac
12534 ;;
12535
12536 tandem*)
12537 case $cc_basename in
12538 NCC*)
12539 # NonStop-UX NCC 3.20
12540 # FIXME: insert proper C++ library support
12541 ld_shlibs_CXX=no
12542 ;;
12543 *)
12544 # FIXME: insert proper C++ library support
12545 ld_shlibs_CXX=no
12546 ;;
12547 esac
12548 ;;
12549
12550 vxworks*)
12551 # FIXME: insert proper C++ library support
12552 ld_shlibs_CXX=no
12553 ;;
12554
12555 *)
12556 # FIXME: insert proper C++ library support
12557 ld_shlibs_CXX=no
12558 ;;
12559 esac
12560
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12562 $as_echo "$ld_shlibs_CXX" >&6; }
12563 test "$ld_shlibs_CXX" = no && can_build_shared=no
12564
12565 GCC_CXX="$GXX"
12566 LD_CXX="$LD"
12567
12568 ## CAVEAT EMPTOR:
12569 ## There is no encapsulation within the following macros, do not change
12570 ## the running order or otherwise move them around unless you know exactly
12571 ## what you are doing...
12572 # Dependencies to place before and after the object being linked:
12573 predep_objects_CXX=
12574 postdep_objects_CXX=
12575 predeps_CXX=
12576 postdeps_CXX=
12577 compiler_lib_search_path_CXX=
12578
12579 cat > conftest.$ac_ext <<_LT_EOF
12580 class Foo
12581 {
12582 public:
12583 Foo (void) { a = 0; }
12584 private:
12585 int a;
12586 };
12587 _LT_EOF
12588
12589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12590 (eval $ac_compile) 2>&5
12591 ac_status=$?
12592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12593 test $ac_status = 0; }; then
12594 # Parse the compiler output and extract the necessary
12595 # objects, libraries and library flags.
12596
12597 # Sentinel used to keep track of whether or not we are before
12598 # the conftest object file.
12599 pre_test_object_deps_done=no
12600
12601 for p in `eval "$output_verbose_link_cmd"`; do
12602 case $p in
12603
12604 -L* | -R* | -l*)
12605 # Some compilers place space between "-{L,R}" and the path.
12606 # Remove the space.
12607 if test $p = "-L" ||
12608 test $p = "-R"; then
12609 prev=$p
12610 continue
12611 else
12612 prev=
12613 fi
12614
12615 if test "$pre_test_object_deps_done" = no; then
12616 case $p in
12617 -L* | -R*)
12618 # Internal compiler library paths should come after those
12619 # provided the user. The postdeps already come after the
12620 # user supplied libs so there is no need to process them.
12621 if test -z "$compiler_lib_search_path_CXX"; then
12622 compiler_lib_search_path_CXX="${prev}${p}"
12623 else
12624 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12625 fi
12626 ;;
12627 # The "-l" case would never come before the object being
12628 # linked, so don't bother handling this case.
12629 esac
12630 else
12631 if test -z "$postdeps_CXX"; then
12632 postdeps_CXX="${prev}${p}"
12633 else
12634 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12635 fi
12636 fi
12637 ;;
12638
12639 *.$objext)
12640 # This assumes that the test object file only shows up
12641 # once in the compiler output.
12642 if test "$p" = "conftest.$objext"; then
12643 pre_test_object_deps_done=yes
12644 continue
12645 fi
12646
12647 if test "$pre_test_object_deps_done" = no; then
12648 if test -z "$predep_objects_CXX"; then
12649 predep_objects_CXX="$p"
12650 else
12651 predep_objects_CXX="$predep_objects_CXX $p"
12652 fi
12653 else
12654 if test -z "$postdep_objects_CXX"; then
12655 postdep_objects_CXX="$p"
12656 else
12657 postdep_objects_CXX="$postdep_objects_CXX $p"
12658 fi
12659 fi
12660 ;;
12661
12662 *) ;; # Ignore the rest.
12663
12664 esac
12665 done
12666
12667 # Clean up.
12668 rm -f a.out a.exe
12669 else
12670 echo "libtool.m4: error: problem compiling CXX test program"
12671 fi
12672
12673 $RM -f confest.$objext
12674
12675 # PORTME: override above test on systems where it is broken
12676 case $host_os in
12677 interix[3-9]*)
12678 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12679 # hack all around it, let's just trust "g++" to DTRT.
12680 predep_objects_CXX=
12681 postdep_objects_CXX=
12682 postdeps_CXX=
12683 ;;
12684
12685 linux*)
12686 case `$CC -V 2>&1 | sed 5q` in
12687 *Sun\ C*)
12688 # Sun C++ 5.9
12689
12690 # The more standards-conforming stlport4 library is
12691 # incompatible with the Cstd library. Avoid specifying
12692 # it if it's in CXXFLAGS. Ignore libCrun as
12693 # -library=stlport4 depends on it.
12694 case " $CXX $CXXFLAGS " in
12695 *" -library=stlport4 "*)
12696 solaris_use_stlport4=yes
12697 ;;
12698 esac
12699
12700 if test "$solaris_use_stlport4" != yes; then
12701 postdeps_CXX='-library=Cstd -library=Crun'
12702 fi
12703 ;;
12704 esac
12705 ;;
12706
12707 solaris*)
12708 case $cc_basename in
12709 CC*)
12710 # The more standards-conforming stlport4 library is
12711 # incompatible with the Cstd library. Avoid specifying
12712 # it if it's in CXXFLAGS. Ignore libCrun as
12713 # -library=stlport4 depends on it.
12714 case " $CXX $CXXFLAGS " in
12715 *" -library=stlport4 "*)
12716 solaris_use_stlport4=yes
12717 ;;
12718 esac
12719
12720 # Adding this requires a known-good setup of shared libraries for
12721 # Sun compiler versions before 5.6, else PIC objects from an old
12722 # archive will be linked into the output, leading to subtle bugs.
12723 if test "$solaris_use_stlport4" != yes; then
12724 postdeps_CXX='-library=Cstd -library=Crun'
12725 fi
12726 ;;
12727 esac
12728 ;;
12729 esac
12730
12731
12732 case " $postdeps_CXX " in
12733 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12734 esac
12735 compiler_lib_search_dirs_CXX=
12736 if test -n "${compiler_lib_search_path_CXX}"; then
12737 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12738 fi
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770 lt_prog_compiler_wl_CXX=
12771 lt_prog_compiler_pic_CXX=
12772 lt_prog_compiler_static_CXX=
12773
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12775 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12776
12777 # C++ specific cases for pic, static, wl, etc.
12778 if test "$GXX" = yes; then
12779 lt_prog_compiler_wl_CXX='-Wl,'
12780 lt_prog_compiler_static_CXX='-static'
12781
12782 case $host_os in
12783 aix*)
12784 # All AIX code is PIC.
12785 if test "$host_cpu" = ia64; then
12786 # AIX 5 now supports IA64 processor
12787 lt_prog_compiler_static_CXX='-Bstatic'
12788 fi
12789 ;;
12790
12791 amigaos*)
12792 case $host_cpu in
12793 powerpc)
12794 # see comment about AmigaOS4 .so support
12795 lt_prog_compiler_pic_CXX='-fPIC'
12796 ;;
12797 m68k)
12798 # FIXME: we need at least 68020 code to build shared libraries, but
12799 # adding the `-m68020' flag to GCC prevents building anything better,
12800 # like `-m68040'.
12801 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12802 ;;
12803 esac
12804 ;;
12805
12806 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12807 # PIC is the default for these OSes.
12808 ;;
12809 mingw* | cygwin* | os2* | pw32* | cegcc*)
12810 # This hack is so that the source file can tell whether it is being
12811 # built for inclusion in a dll (and should export symbols for example).
12812 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12813 # (--disable-auto-import) libraries
12814 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12815 ;;
12816 darwin* | rhapsody*)
12817 # PIC is the default on this platform
12818 # Common symbols not allowed in MH_DYLIB files
12819 lt_prog_compiler_pic_CXX='-fno-common'
12820 ;;
12821 *djgpp*)
12822 # DJGPP does not support shared libraries at all
12823 lt_prog_compiler_pic_CXX=
12824 ;;
12825 interix[3-9]*)
12826 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12827 # Instead, we relocate shared libraries at runtime.
12828 ;;
12829 sysv4*MP*)
12830 if test -d /usr/nec; then
12831 lt_prog_compiler_pic_CXX=-Kconform_pic
12832 fi
12833 ;;
12834 hpux*)
12835 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12836 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12837 # sets the default TLS model and affects inlining.
12838 case $host_cpu in
12839 hppa*64*)
12840 ;;
12841 *)
12842 lt_prog_compiler_pic_CXX='-fPIC'
12843 ;;
12844 esac
12845 ;;
12846 *qnx* | *nto*)
12847 # QNX uses GNU C++, but need to define -shared option too, otherwise
12848 # it will coredump.
12849 lt_prog_compiler_pic_CXX='-fPIC -shared'
12850 ;;
12851 *)
12852 lt_prog_compiler_pic_CXX='-fPIC'
12853 ;;
12854 esac
12855 else
12856 case $host_os in
12857 aix[4-9]*)
12858 # All AIX code is PIC.
12859 if test "$host_cpu" = ia64; then
12860 # AIX 5 now supports IA64 processor
12861 lt_prog_compiler_static_CXX='-Bstatic'
12862 else
12863 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12864 fi
12865 ;;
12866 chorus*)
12867 case $cc_basename in
12868 cxch68*)
12869 # Green Hills C++ Compiler
12870 # _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"
12871 ;;
12872 esac
12873 ;;
12874 dgux*)
12875 case $cc_basename in
12876 ec++*)
12877 lt_prog_compiler_pic_CXX='-KPIC'
12878 ;;
12879 ghcx*)
12880 # Green Hills C++ Compiler
12881 lt_prog_compiler_pic_CXX='-pic'
12882 ;;
12883 *)
12884 ;;
12885 esac
12886 ;;
12887 freebsd* | dragonfly*)
12888 # FreeBSD uses GNU C++
12889 ;;
12890 hpux9* | hpux10* | hpux11*)
12891 case $cc_basename in
12892 CC*)
12893 lt_prog_compiler_wl_CXX='-Wl,'
12894 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12895 if test "$host_cpu" != ia64; then
12896 lt_prog_compiler_pic_CXX='+Z'
12897 fi
12898 ;;
12899 aCC*)
12900 lt_prog_compiler_wl_CXX='-Wl,'
12901 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12902 case $host_cpu in
12903 hppa*64*|ia64*)
12904 # +Z the default
12905 ;;
12906 *)
12907 lt_prog_compiler_pic_CXX='+Z'
12908 ;;
12909 esac
12910 ;;
12911 *)
12912 ;;
12913 esac
12914 ;;
12915 interix*)
12916 # This is c89, which is MS Visual C++ (no shared libs)
12917 # Anyone wants to do a port?
12918 ;;
12919 irix5* | irix6* | nonstopux*)
12920 case $cc_basename in
12921 CC*)
12922 lt_prog_compiler_wl_CXX='-Wl,'
12923 lt_prog_compiler_static_CXX='-non_shared'
12924 # CC pic flag -KPIC is the default.
12925 ;;
12926 *)
12927 ;;
12928 esac
12929 ;;
12930 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12931 case $cc_basename in
12932 KCC*)
12933 # KAI C++ Compiler
12934 lt_prog_compiler_wl_CXX='--backend -Wl,'
12935 lt_prog_compiler_pic_CXX='-fPIC'
12936 ;;
12937 ecpc* )
12938 # old Intel C++ for x86_64 which still supported -KPIC.
12939 lt_prog_compiler_wl_CXX='-Wl,'
12940 lt_prog_compiler_pic_CXX='-KPIC'
12941 lt_prog_compiler_static_CXX='-static'
12942 ;;
12943 icpc* )
12944 # Intel C++, used to be incompatible with GCC.
12945 # ICC 10 doesn't accept -KPIC any more.
12946 lt_prog_compiler_wl_CXX='-Wl,'
12947 lt_prog_compiler_pic_CXX='-fPIC'
12948 lt_prog_compiler_static_CXX='-static'
12949 ;;
12950 pgCC* | pgcpp*)
12951 # Portland Group C++ compiler
12952 lt_prog_compiler_wl_CXX='-Wl,'
12953 lt_prog_compiler_pic_CXX='-fpic'
12954 lt_prog_compiler_static_CXX='-Bstatic'
12955 ;;
12956 cxx*)
12957 # Compaq C++
12958 # Make sure the PIC flag is empty. It appears that all Alpha
12959 # Linux and Compaq Tru64 Unix objects are PIC.
12960 lt_prog_compiler_pic_CXX=
12961 lt_prog_compiler_static_CXX='-non_shared'
12962 ;;
12963 xlc* | xlC*)
12964 # IBM XL 8.0 on PPC
12965 lt_prog_compiler_wl_CXX='-Wl,'
12966 lt_prog_compiler_pic_CXX='-qpic'
12967 lt_prog_compiler_static_CXX='-qstaticlink'
12968 ;;
12969 *)
12970 case `$CC -V 2>&1 | sed 5q` in
12971 *Sun\ C*)
12972 # Sun C++ 5.9
12973 lt_prog_compiler_pic_CXX='-KPIC'
12974 lt_prog_compiler_static_CXX='-Bstatic'
12975 lt_prog_compiler_wl_CXX='-Qoption ld '
12976 ;;
12977 esac
12978 ;;
12979 esac
12980 ;;
12981 lynxos*)
12982 ;;
12983 m88k*)
12984 ;;
12985 mvs*)
12986 case $cc_basename in
12987 cxx*)
12988 lt_prog_compiler_pic_CXX='-W c,exportall'
12989 ;;
12990 *)
12991 ;;
12992 esac
12993 ;;
12994 netbsd* | netbsdelf*-gnu)
12995 ;;
12996 *qnx* | *nto*)
12997 # QNX uses GNU C++, but need to define -shared option too, otherwise
12998 # it will coredump.
12999 lt_prog_compiler_pic_CXX='-fPIC -shared'
13000 ;;
13001 osf3* | osf4* | osf5*)
13002 case $cc_basename in
13003 KCC*)
13004 lt_prog_compiler_wl_CXX='--backend -Wl,'
13005 ;;
13006 RCC*)
13007 # Rational C++ 2.4.1
13008 lt_prog_compiler_pic_CXX='-pic'
13009 ;;
13010 cxx*)
13011 # Digital/Compaq C++
13012 lt_prog_compiler_wl_CXX='-Wl,'
13013 # Make sure the PIC flag is empty. It appears that all Alpha
13014 # Linux and Compaq Tru64 Unix objects are PIC.
13015 lt_prog_compiler_pic_CXX=
13016 lt_prog_compiler_static_CXX='-non_shared'
13017 ;;
13018 *)
13019 ;;
13020 esac
13021 ;;
13022 psos*)
13023 ;;
13024 solaris*)
13025 case $cc_basename in
13026 CC*)
13027 # Sun C++ 4.2, 5.x and Centerline C++
13028 lt_prog_compiler_pic_CXX='-KPIC'
13029 lt_prog_compiler_static_CXX='-Bstatic'
13030 lt_prog_compiler_wl_CXX='-Qoption ld '
13031 ;;
13032 gcx*)
13033 # Green Hills C++ Compiler
13034 lt_prog_compiler_pic_CXX='-PIC'
13035 ;;
13036 *)
13037 ;;
13038 esac
13039 ;;
13040 sunos4*)
13041 case $cc_basename in
13042 CC*)
13043 # Sun C++ 4.x
13044 lt_prog_compiler_pic_CXX='-pic'
13045 lt_prog_compiler_static_CXX='-Bstatic'
13046 ;;
13047 lcc*)
13048 # Lucid
13049 lt_prog_compiler_pic_CXX='-pic'
13050 ;;
13051 *)
13052 ;;
13053 esac
13054 ;;
13055 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13056 case $cc_basename in
13057 CC*)
13058 lt_prog_compiler_wl_CXX='-Wl,'
13059 lt_prog_compiler_pic_CXX='-KPIC'
13060 lt_prog_compiler_static_CXX='-Bstatic'
13061 ;;
13062 esac
13063 ;;
13064 tandem*)
13065 case $cc_basename in
13066 NCC*)
13067 # NonStop-UX NCC 3.20
13068 lt_prog_compiler_pic_CXX='-KPIC'
13069 ;;
13070 *)
13071 ;;
13072 esac
13073 ;;
13074 vxworks*)
13075 ;;
13076 *)
13077 lt_prog_compiler_can_build_shared_CXX=no
13078 ;;
13079 esac
13080 fi
13081
13082 case $host_os in
13083 # For platforms which do not support PIC, -DPIC is meaningless:
13084 *djgpp*)
13085 lt_prog_compiler_pic_CXX=
13086 ;;
13087 *)
13088 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13089 ;;
13090 esac
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13092 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13093
13094
13095
13096 #
13097 # Check to make sure the PIC flag actually works.
13098 #
13099 if test -n "$lt_prog_compiler_pic_CXX"; then
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13101 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13102 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13103 $as_echo_n "(cached) " >&6
13104 else
13105 lt_cv_prog_compiler_pic_works_CXX=no
13106 ac_outfile=conftest.$ac_objext
13107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13108 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13109 # Insert the option either (1) after the last *FLAGS variable, or
13110 # (2) before a word containing "conftest.", or (3) at the end.
13111 # Note that $ac_compile itself does not contain backslashes and begins
13112 # with a dollar sign (not a hyphen), so the echo should work correctly.
13113 # The option is referenced via a variable to avoid confusing sed.
13114 lt_compile=`echo "$ac_compile" | $SED \
13115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13117 -e 's:$: $lt_compiler_flag:'`
13118 (eval echo "\"\$as_me:13118: $lt_compile\"" >&5)
13119 (eval "$lt_compile" 2>conftest.err)
13120 ac_status=$?
13121 cat conftest.err >&5
13122 echo "$as_me:13122: \$? = $ac_status" >&5
13123 if (exit $ac_status) && test -s "$ac_outfile"; then
13124 # The compiler can only warn and ignore the option if not recognized
13125 # So say no if there are warnings other than the usual output.
13126 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13128 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13129 lt_cv_prog_compiler_pic_works_CXX=yes
13130 fi
13131 fi
13132 $RM conftest*
13133
13134 fi
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13136 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13137
13138 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13139 case $lt_prog_compiler_pic_CXX in
13140 "" | " "*) ;;
13141 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13142 esac
13143 else
13144 lt_prog_compiler_pic_CXX=
13145 lt_prog_compiler_can_build_shared_CXX=no
13146 fi
13147
13148 fi
13149
13150
13151
13152 #
13153 # Check to make sure the static flag actually works.
13154 #
13155 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13157 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13158 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13159 $as_echo_n "(cached) " >&6
13160 else
13161 lt_cv_prog_compiler_static_works_CXX=no
13162 save_LDFLAGS="$LDFLAGS"
13163 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13164 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13165 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13166 # The linker can only warn and ignore the option if not recognized
13167 # So say no if there are warnings
13168 if test -s conftest.err; then
13169 # Append any errors to the config.log.
13170 cat conftest.err 1>&5
13171 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13173 if diff conftest.exp conftest.er2 >/dev/null; then
13174 lt_cv_prog_compiler_static_works_CXX=yes
13175 fi
13176 else
13177 lt_cv_prog_compiler_static_works_CXX=yes
13178 fi
13179 fi
13180 $RM -r conftest*
13181 LDFLAGS="$save_LDFLAGS"
13182
13183 fi
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13185 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13186
13187 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13188 :
13189 else
13190 lt_prog_compiler_static_CXX=
13191 fi
13192
13193
13194
13195
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13197 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13198 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13199 $as_echo_n "(cached) " >&6
13200 else
13201 lt_cv_prog_compiler_c_o_CXX=no
13202 $RM -r conftest 2>/dev/null
13203 mkdir conftest
13204 cd conftest
13205 mkdir out
13206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13207
13208 lt_compiler_flag="-o out/conftest2.$ac_objext"
13209 # Insert the option either (1) after the last *FLAGS variable, or
13210 # (2) before a word containing "conftest.", or (3) at the end.
13211 # Note that $ac_compile itself does not contain backslashes and begins
13212 # with a dollar sign (not a hyphen), so the echo should work correctly.
13213 lt_compile=`echo "$ac_compile" | $SED \
13214 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13215 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13216 -e 's:$: $lt_compiler_flag:'`
13217 (eval echo "\"\$as_me:13217: $lt_compile\"" >&5)
13218 (eval "$lt_compile" 2>out/conftest.err)
13219 ac_status=$?
13220 cat out/conftest.err >&5
13221 echo "$as_me:13221: \$? = $ac_status" >&5
13222 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13223 then
13224 # The compiler can only warn and ignore the option if not recognized
13225 # So say no if there are warnings
13226 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13227 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13228 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13229 lt_cv_prog_compiler_c_o_CXX=yes
13230 fi
13231 fi
13232 chmod u+w . 2>&5
13233 $RM conftest*
13234 # SGI C++ compiler will create directory out/ii_files/ for
13235 # template instantiation
13236 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13237 $RM out/* && rmdir out
13238 cd ..
13239 $RM -r conftest
13240 $RM conftest*
13241
13242 fi
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13244 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13245
13246
13247
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13249 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13250 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13251 $as_echo_n "(cached) " >&6
13252 else
13253 lt_cv_prog_compiler_c_o_CXX=no
13254 $RM -r conftest 2>/dev/null
13255 mkdir conftest
13256 cd conftest
13257 mkdir out
13258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13259
13260 lt_compiler_flag="-o out/conftest2.$ac_objext"
13261 # Insert the option either (1) after the last *FLAGS variable, or
13262 # (2) before a word containing "conftest.", or (3) at the end.
13263 # Note that $ac_compile itself does not contain backslashes and begins
13264 # with a dollar sign (not a hyphen), so the echo should work correctly.
13265 lt_compile=`echo "$ac_compile" | $SED \
13266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13268 -e 's:$: $lt_compiler_flag:'`
13269 (eval echo "\"\$as_me:13269: $lt_compile\"" >&5)
13270 (eval "$lt_compile" 2>out/conftest.err)
13271 ac_status=$?
13272 cat out/conftest.err >&5
13273 echo "$as_me:13273: \$? = $ac_status" >&5
13274 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13275 then
13276 # The compiler can only warn and ignore the option if not recognized
13277 # So say no if there are warnings
13278 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13279 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13280 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13281 lt_cv_prog_compiler_c_o_CXX=yes
13282 fi
13283 fi
13284 chmod u+w . 2>&5
13285 $RM conftest*
13286 # SGI C++ compiler will create directory out/ii_files/ for
13287 # template instantiation
13288 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13289 $RM out/* && rmdir out
13290 cd ..
13291 $RM -r conftest
13292 $RM conftest*
13293
13294 fi
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13296 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13297
13298
13299
13300
13301 hard_links="nottested"
13302 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13303 # do not overwrite the value of need_locks provided by the user
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13305 $as_echo_n "checking if we can lock with hard links... " >&6; }
13306 hard_links=yes
13307 $RM conftest*
13308 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13309 touch conftest.a
13310 ln conftest.a conftest.b 2>&5 || hard_links=no
13311 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13313 $as_echo "$hard_links" >&6; }
13314 if test "$hard_links" = no; then
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13316 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13317 need_locks=warn
13318 fi
13319 else
13320 need_locks=no
13321 fi
13322
13323
13324
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13326 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13327
13328 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13329 case $host_os in
13330 aix[4-9]*)
13331 # If we're using GNU nm, then we don't want the "-C" option.
13332 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13333 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13334 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13335 else
13336 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'
13337 fi
13338 ;;
13339 pw32*)
13340 export_symbols_cmds_CXX="$ltdll_cmds"
13341 ;;
13342 cygwin* | mingw* | cegcc*)
13343 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13344 ;;
13345 linux* | k*bsd*-gnu)
13346 link_all_deplibs_CXX=no
13347 ;;
13348 *)
13349 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13350 ;;
13351 esac
13352 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13353
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13355 $as_echo "$ld_shlibs_CXX" >&6; }
13356 test "$ld_shlibs_CXX" = no && can_build_shared=no
13357
13358 with_gnu_ld_CXX=$with_gnu_ld
13359
13360
13361
13362
13363
13364
13365 #
13366 # Do we need to explicitly link libc?
13367 #
13368 case "x$archive_cmds_need_lc_CXX" in
13369 x|xyes)
13370 # Assume -lc should be added
13371 archive_cmds_need_lc_CXX=yes
13372
13373 if test "$enable_shared" = yes && test "$GCC" = yes; then
13374 case $archive_cmds_CXX in
13375 *'~'*)
13376 # FIXME: we may have to deal with multi-command sequences.
13377 ;;
13378 '$CC '*)
13379 # Test whether the compiler implicitly links with -lc since on some
13380 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13381 # to ld, don't add -lc before -lgcc.
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13383 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13384 $RM conftest*
13385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13386
13387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13388 (eval $ac_compile) 2>&5
13389 ac_status=$?
13390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13391 test $ac_status = 0; } 2>conftest.err; then
13392 soname=conftest
13393 lib=conftest
13394 libobjs=conftest.$ac_objext
13395 deplibs=
13396 wl=$lt_prog_compiler_wl_CXX
13397 pic_flag=$lt_prog_compiler_pic_CXX
13398 compiler_flags=-v
13399 linker_flags=-v
13400 verstring=
13401 output_objdir=.
13402 libname=conftest
13403 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13404 allow_undefined_flag_CXX=
13405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13406 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13407 ac_status=$?
13408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13409 test $ac_status = 0; }
13410 then
13411 archive_cmds_need_lc_CXX=no
13412 else
13413 archive_cmds_need_lc_CXX=yes
13414 fi
13415 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13416 else
13417 cat conftest.err 1>&5
13418 fi
13419 $RM conftest*
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13421 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13422 ;;
13423 esac
13424 fi
13425 ;;
13426 esac
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13492 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13493
13494 library_names_spec=
13495 libname_spec='lib$name'
13496 soname_spec=
13497 shrext_cmds=".so"
13498 postinstall_cmds=
13499 postuninstall_cmds=
13500 finish_cmds=
13501 finish_eval=
13502 shlibpath_var=
13503 shlibpath_overrides_runpath=unknown
13504 version_type=none
13505 dynamic_linker="$host_os ld.so"
13506 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13507 need_lib_prefix=unknown
13508 hardcode_into_libs=no
13509
13510 # when you set need_version to no, make sure it does not cause -set_version
13511 # flags to be left without arguments
13512 need_version=unknown
13513
13514 case $host_os in
13515 aix3*)
13516 version_type=linux
13517 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13518 shlibpath_var=LIBPATH
13519
13520 # AIX 3 has no versioning support, so we append a major version to the name.
13521 soname_spec='${libname}${release}${shared_ext}$major'
13522 ;;
13523
13524 aix[4-9]*)
13525 version_type=linux
13526 need_lib_prefix=no
13527 need_version=no
13528 hardcode_into_libs=yes
13529 if test "$host_cpu" = ia64; then
13530 # AIX 5 supports IA64
13531 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13532 shlibpath_var=LD_LIBRARY_PATH
13533 else
13534 # With GCC up to 2.95.x, collect2 would create an import file
13535 # for dependence libraries. The import file would start with
13536 # the line `#! .'. This would cause the generated library to
13537 # depend on `.', always an invalid library. This was fixed in
13538 # development snapshots of GCC prior to 3.0.
13539 case $host_os in
13540 aix4 | aix4.[01] | aix4.[01].*)
13541 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13542 echo ' yes '
13543 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13544 :
13545 else
13546 can_build_shared=no
13547 fi
13548 ;;
13549 esac
13550 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13551 # soname into executable. Probably we can add versioning support to
13552 # collect2, so additional links can be useful in future.
13553 if test "$aix_use_runtimelinking" = yes; then
13554 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13555 # instead of lib<name>.a to let people know that these are not
13556 # typical AIX shared libraries.
13557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13558 else
13559 # We preserve .a as extension for shared libraries through AIX4.2
13560 # and later when we are not doing run time linking.
13561 library_names_spec='${libname}${release}.a $libname.a'
13562 soname_spec='${libname}${release}${shared_ext}$major'
13563 fi
13564 shlibpath_var=LIBPATH
13565 fi
13566 ;;
13567
13568 amigaos*)
13569 case $host_cpu in
13570 powerpc)
13571 # Since July 2007 AmigaOS4 officially supports .so libraries.
13572 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13574 ;;
13575 m68k)
13576 library_names_spec='$libname.ixlibrary $libname.a'
13577 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13578 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13579 ;;
13580 esac
13581 ;;
13582
13583 beos*)
13584 library_names_spec='${libname}${shared_ext}'
13585 dynamic_linker="$host_os ld.so"
13586 shlibpath_var=LIBRARY_PATH
13587 ;;
13588
13589 bsdi[45]*)
13590 version_type=linux
13591 need_version=no
13592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13593 soname_spec='${libname}${release}${shared_ext}$major'
13594 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13595 shlibpath_var=LD_LIBRARY_PATH
13596 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13597 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13598 # the default ld.so.conf also contains /usr/contrib/lib and
13599 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13600 # libtool to hard-code these into programs
13601 ;;
13602
13603 cygwin* | mingw* | pw32* | cegcc*)
13604 version_type=windows
13605 shrext_cmds=".dll"
13606 need_version=no
13607 need_lib_prefix=no
13608
13609 case $GCC,$host_os in
13610 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13611 library_names_spec='$libname.dll.a'
13612 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13613 postinstall_cmds='base_file=`basename \${file}`~
13614 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13615 dldir=$destdir/`dirname \$dlpath`~
13616 test -d \$dldir || mkdir -p \$dldir~
13617 $install_prog $dir/$dlname \$dldir/$dlname~
13618 chmod a+x \$dldir/$dlname~
13619 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13620 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13621 fi'
13622 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13623 dlpath=$dir/\$dldll~
13624 $RM \$dlpath'
13625 shlibpath_overrides_runpath=yes
13626
13627 case $host_os in
13628 cygwin*)
13629 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13630 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13631 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13632 ;;
13633 mingw* | cegcc*)
13634 # MinGW DLLs use traditional 'lib' prefix
13635 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13636 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13637 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13638 # It is most probably a Windows format PATH printed by
13639 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13640 # path with ; separators, and with drive letters. We can handle the
13641 # drive letters (cygwin fileutils understands them), so leave them,
13642 # especially as we might pass files found there to a mingw objdump,
13643 # which wouldn't understand a cygwinified path. Ahh.
13644 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13645 else
13646 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13647 fi
13648 ;;
13649 pw32*)
13650 # pw32 DLLs use 'pw' prefix rather than 'lib'
13651 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13652 ;;
13653 esac
13654 ;;
13655
13656 *)
13657 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13658 ;;
13659 esac
13660 dynamic_linker='Win32 ld.exe'
13661 # FIXME: first we should search . and the directory the executable is in
13662 shlibpath_var=PATH
13663 ;;
13664
13665 darwin* | rhapsody*)
13666 dynamic_linker="$host_os dyld"
13667 version_type=darwin
13668 need_lib_prefix=no
13669 need_version=no
13670 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13671 soname_spec='${libname}${release}${major}$shared_ext'
13672 shlibpath_overrides_runpath=yes
13673 shlibpath_var=DYLD_LIBRARY_PATH
13674 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13675
13676 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13677 ;;
13678
13679 dgux*)
13680 version_type=linux
13681 need_lib_prefix=no
13682 need_version=no
13683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13684 soname_spec='${libname}${release}${shared_ext}$major'
13685 shlibpath_var=LD_LIBRARY_PATH
13686 ;;
13687
13688 freebsd1*)
13689 dynamic_linker=no
13690 ;;
13691
13692 freebsd* | dragonfly*)
13693 # DragonFly does not have aout. When/if they implement a new
13694 # versioning mechanism, adjust this.
13695 if test -x /usr/bin/objformat; then
13696 objformat=`/usr/bin/objformat`
13697 else
13698 case $host_os in
13699 freebsd[123]*) objformat=aout ;;
13700 *) objformat=elf ;;
13701 esac
13702 fi
13703 version_type=freebsd-$objformat
13704 case $version_type in
13705 freebsd-elf*)
13706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13707 need_version=no
13708 need_lib_prefix=no
13709 ;;
13710 freebsd-*)
13711 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13712 need_version=yes
13713 ;;
13714 esac
13715 shlibpath_var=LD_LIBRARY_PATH
13716 case $host_os in
13717 freebsd2*)
13718 shlibpath_overrides_runpath=yes
13719 ;;
13720 freebsd3.[01]* | freebsdelf3.[01]*)
13721 shlibpath_overrides_runpath=yes
13722 hardcode_into_libs=yes
13723 ;;
13724 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13725 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13726 shlibpath_overrides_runpath=no
13727 hardcode_into_libs=yes
13728 ;;
13729 *) # from 4.6 on, and DragonFly
13730 shlibpath_overrides_runpath=yes
13731 hardcode_into_libs=yes
13732 ;;
13733 esac
13734 ;;
13735
13736 gnu*)
13737 version_type=linux
13738 need_lib_prefix=no
13739 need_version=no
13740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13741 soname_spec='${libname}${release}${shared_ext}$major'
13742 shlibpath_var=LD_LIBRARY_PATH
13743 hardcode_into_libs=yes
13744 ;;
13745
13746 hpux9* | hpux10* | hpux11*)
13747 # Give a soname corresponding to the major version so that dld.sl refuses to
13748 # link against other versions.
13749 version_type=sunos
13750 need_lib_prefix=no
13751 need_version=no
13752 case $host_cpu in
13753 ia64*)
13754 shrext_cmds='.so'
13755 hardcode_into_libs=yes
13756 dynamic_linker="$host_os dld.so"
13757 shlibpath_var=LD_LIBRARY_PATH
13758 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13760 soname_spec='${libname}${release}${shared_ext}$major'
13761 if test "X$HPUX_IA64_MODE" = X32; then
13762 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13763 else
13764 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13765 fi
13766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13767 ;;
13768 hppa*64*)
13769 shrext_cmds='.sl'
13770 hardcode_into_libs=yes
13771 dynamic_linker="$host_os dld.sl"
13772 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13775 soname_spec='${libname}${release}${shared_ext}$major'
13776 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13777 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13778 ;;
13779 *)
13780 shrext_cmds='.sl'
13781 dynamic_linker="$host_os dld.sl"
13782 shlibpath_var=SHLIB_PATH
13783 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13785 soname_spec='${libname}${release}${shared_ext}$major'
13786 ;;
13787 esac
13788 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13789 postinstall_cmds='chmod 555 $lib'
13790 ;;
13791
13792 interix[3-9]*)
13793 version_type=linux
13794 need_lib_prefix=no
13795 need_version=no
13796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13797 soname_spec='${libname}${release}${shared_ext}$major'
13798 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13799 shlibpath_var=LD_LIBRARY_PATH
13800 shlibpath_overrides_runpath=no
13801 hardcode_into_libs=yes
13802 ;;
13803
13804 irix5* | irix6* | nonstopux*)
13805 case $host_os in
13806 nonstopux*) version_type=nonstopux ;;
13807 *)
13808 if test "$lt_cv_prog_gnu_ld" = yes; then
13809 version_type=linux
13810 else
13811 version_type=irix
13812 fi ;;
13813 esac
13814 need_lib_prefix=no
13815 need_version=no
13816 soname_spec='${libname}${release}${shared_ext}$major'
13817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13818 case $host_os in
13819 irix5* | nonstopux*)
13820 libsuff= shlibsuff=
13821 ;;
13822 *)
13823 case $LD in # libtool.m4 will add one of these switches to LD
13824 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13825 libsuff= shlibsuff= libmagic=32-bit;;
13826 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13827 libsuff=32 shlibsuff=N32 libmagic=N32;;
13828 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13829 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13830 *) libsuff= shlibsuff= libmagic=never-match;;
13831 esac
13832 ;;
13833 esac
13834 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13835 shlibpath_overrides_runpath=no
13836 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13837 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13838 hardcode_into_libs=yes
13839 ;;
13840
13841 # No shared lib support for Linux oldld, aout, or coff.
13842 linux*oldld* | linux*aout* | linux*coff*)
13843 dynamic_linker=no
13844 ;;
13845
13846 # This must be Linux ELF.
13847 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13848 version_type=linux
13849 need_lib_prefix=no
13850 need_version=no
13851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13852 soname_spec='${libname}${release}${shared_ext}$major'
13853 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13854 shlibpath_var=LD_LIBRARY_PATH
13855 shlibpath_overrides_runpath=no
13856 # Some binutils ld are patched to set DT_RUNPATH
13857 save_LDFLAGS=$LDFLAGS
13858 save_libdir=$libdir
13859 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13860 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h. */
13863
13864 int
13865 main ()
13866 {
13867
13868 ;
13869 return 0;
13870 }
13871 _ACEOF
13872 if ac_fn_cxx_try_link "$LINENO"; then :
13873 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13874 shlibpath_overrides_runpath=yes
13875 fi
13876 fi
13877 rm -f core conftest.err conftest.$ac_objext \
13878 conftest$ac_exeext conftest.$ac_ext
13879 LDFLAGS=$save_LDFLAGS
13880 libdir=$save_libdir
13881
13882 # This implies no fast_install, which is unacceptable.
13883 # Some rework will be needed to allow for fast_install
13884 # before this can be enabled.
13885 hardcode_into_libs=yes
13886
13887 # Append ld.so.conf contents to the search path
13888 if test -f /etc/ld.so.conf; then
13889 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;/^$/d' | tr '\n' ' '`
13890 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13891 fi
13892
13893 # We used to test for /lib/ld.so.1 and disable shared libraries on
13894 # powerpc, because MkLinux only supported shared libraries with the
13895 # GNU dynamic linker. Since this was broken with cross compilers,
13896 # most powerpc-linux boxes support dynamic linking these days and
13897 # people can always --disable-shared, the test was removed, and we
13898 # assume the GNU/Linux dynamic linker is in use.
13899 dynamic_linker='GNU/Linux ld.so'
13900 ;;
13901
13902 netbsdelf*-gnu)
13903 version_type=linux
13904 need_lib_prefix=no
13905 need_version=no
13906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13907 soname_spec='${libname}${release}${shared_ext}$major'
13908 shlibpath_var=LD_LIBRARY_PATH
13909 shlibpath_overrides_runpath=no
13910 hardcode_into_libs=yes
13911 dynamic_linker='NetBSD ld.elf_so'
13912 ;;
13913
13914 netbsd*)
13915 version_type=sunos
13916 need_lib_prefix=no
13917 need_version=no
13918 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13921 dynamic_linker='NetBSD (a.out) ld.so'
13922 else
13923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13924 soname_spec='${libname}${release}${shared_ext}$major'
13925 dynamic_linker='NetBSD ld.elf_so'
13926 fi
13927 shlibpath_var=LD_LIBRARY_PATH
13928 shlibpath_overrides_runpath=yes
13929 hardcode_into_libs=yes
13930 ;;
13931
13932 newsos6)
13933 version_type=linux
13934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13935 shlibpath_var=LD_LIBRARY_PATH
13936 shlibpath_overrides_runpath=yes
13937 ;;
13938
13939 *nto* | *qnx*)
13940 version_type=qnx
13941 need_lib_prefix=no
13942 need_version=no
13943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13944 soname_spec='${libname}${release}${shared_ext}$major'
13945 shlibpath_var=LD_LIBRARY_PATH
13946 shlibpath_overrides_runpath=no
13947 hardcode_into_libs=yes
13948 dynamic_linker='ldqnx.so'
13949 ;;
13950
13951 openbsd*)
13952 version_type=sunos
13953 sys_lib_dlsearch_path_spec="/usr/lib"
13954 need_lib_prefix=no
13955 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13956 case $host_os in
13957 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13958 *) need_version=no ;;
13959 esac
13960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13962 shlibpath_var=LD_LIBRARY_PATH
13963 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13964 case $host_os in
13965 openbsd2.[89] | openbsd2.[89].*)
13966 shlibpath_overrides_runpath=no
13967 ;;
13968 *)
13969 shlibpath_overrides_runpath=yes
13970 ;;
13971 esac
13972 else
13973 shlibpath_overrides_runpath=yes
13974 fi
13975 ;;
13976
13977 os2*)
13978 libname_spec='$name'
13979 shrext_cmds=".dll"
13980 need_lib_prefix=no
13981 library_names_spec='$libname${shared_ext} $libname.a'
13982 dynamic_linker='OS/2 ld.exe'
13983 shlibpath_var=LIBPATH
13984 ;;
13985
13986 osf3* | osf4* | osf5*)
13987 version_type=osf
13988 need_lib_prefix=no
13989 need_version=no
13990 soname_spec='${libname}${release}${shared_ext}$major'
13991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13992 shlibpath_var=LD_LIBRARY_PATH
13993 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13994 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13995 ;;
13996
13997 rdos*)
13998 dynamic_linker=no
13999 ;;
14000
14001 solaris*)
14002 version_type=linux
14003 need_lib_prefix=no
14004 need_version=no
14005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14006 soname_spec='${libname}${release}${shared_ext}$major'
14007 shlibpath_var=LD_LIBRARY_PATH
14008 shlibpath_overrides_runpath=yes
14009 hardcode_into_libs=yes
14010 # ldd complains unless libraries are executable
14011 postinstall_cmds='chmod +x $lib'
14012 ;;
14013
14014 sunos4*)
14015 version_type=sunos
14016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14017 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14018 shlibpath_var=LD_LIBRARY_PATH
14019 shlibpath_overrides_runpath=yes
14020 if test "$with_gnu_ld" = yes; then
14021 need_lib_prefix=no
14022 fi
14023 need_version=yes
14024 ;;
14025
14026 sysv4 | sysv4.3*)
14027 version_type=linux
14028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14029 soname_spec='${libname}${release}${shared_ext}$major'
14030 shlibpath_var=LD_LIBRARY_PATH
14031 case $host_vendor in
14032 sni)
14033 shlibpath_overrides_runpath=no
14034 need_lib_prefix=no
14035 runpath_var=LD_RUN_PATH
14036 ;;
14037 siemens)
14038 need_lib_prefix=no
14039 ;;
14040 motorola)
14041 need_lib_prefix=no
14042 need_version=no
14043 shlibpath_overrides_runpath=no
14044 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14045 ;;
14046 esac
14047 ;;
14048
14049 sysv4*MP*)
14050 if test -d /usr/nec ;then
14051 version_type=linux
14052 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14053 soname_spec='$libname${shared_ext}.$major'
14054 shlibpath_var=LD_LIBRARY_PATH
14055 fi
14056 ;;
14057
14058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14059 version_type=freebsd-elf
14060 need_lib_prefix=no
14061 need_version=no
14062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14063 soname_spec='${libname}${release}${shared_ext}$major'
14064 shlibpath_var=LD_LIBRARY_PATH
14065 shlibpath_overrides_runpath=yes
14066 hardcode_into_libs=yes
14067 if test "$with_gnu_ld" = yes; then
14068 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14069 else
14070 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14071 case $host_os in
14072 sco3.2v5*)
14073 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14074 ;;
14075 esac
14076 fi
14077 sys_lib_dlsearch_path_spec='/usr/lib'
14078 ;;
14079
14080 tpf*)
14081 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14082 version_type=linux
14083 need_lib_prefix=no
14084 need_version=no
14085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14086 shlibpath_var=LD_LIBRARY_PATH
14087 shlibpath_overrides_runpath=no
14088 hardcode_into_libs=yes
14089 ;;
14090
14091 uts4*)
14092 version_type=linux
14093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14094 soname_spec='${libname}${release}${shared_ext}$major'
14095 shlibpath_var=LD_LIBRARY_PATH
14096 ;;
14097
14098 *)
14099 dynamic_linker=no
14100 ;;
14101 esac
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14103 $as_echo "$dynamic_linker" >&6; }
14104 test "$dynamic_linker" = no && can_build_shared=no
14105
14106 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14107 if test "$GCC" = yes; then
14108 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14109 fi
14110
14111 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14112 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14113 fi
14114 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14115 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14116 fi
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14154 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14155 hardcode_action_CXX=
14156 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14157 test -n "$runpath_var_CXX" ||
14158 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14159
14160 # We can hardcode non-existent directories.
14161 if test "$hardcode_direct_CXX" != no &&
14162 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14163 # have to relink, otherwise we might link with an installed library
14164 # when we should be linking with a yet-to-be-installed one
14165 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14166 test "$hardcode_minus_L_CXX" != no; then
14167 # Linking always hardcodes the temporary library directory.
14168 hardcode_action_CXX=relink
14169 else
14170 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14171 hardcode_action_CXX=immediate
14172 fi
14173 else
14174 # We cannot hardcode anything, or else we can only hardcode existing
14175 # directories.
14176 hardcode_action_CXX=unsupported
14177 fi
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14179 $as_echo "$hardcode_action_CXX" >&6; }
14180
14181 if test "$hardcode_action_CXX" = relink ||
14182 test "$inherit_rpath_CXX" = yes; then
14183 # Fast installation is not supported
14184 enable_fast_install=no
14185 elif test "$shlibpath_overrides_runpath" = yes ||
14186 test "$enable_shared" = no; then
14187 # Fast installation is not necessary
14188 enable_fast_install=needless
14189 fi
14190
14191
14192
14193
14194
14195
14196
14197 fi # test -n "$compiler"
14198
14199 CC=$lt_save_CC
14200 LDCXX=$LD
14201 LD=$lt_save_LD
14202 GCC=$lt_save_GCC
14203 with_gnu_ld=$lt_save_with_gnu_ld
14204 lt_cv_path_LDCXX=$lt_cv_path_LD
14205 lt_cv_path_LD=$lt_save_path_LD
14206 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14207 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14208 fi # test "$_lt_caught_CXX_error" != yes
14209
14210 ac_ext=c
14211 ac_cpp='$CPP $CPPFLAGS'
14212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228 ac_config_commands="$ac_config_commands libtool"
14229
14230
14231
14232
14233 # Only expand once:
14234
14235
14236 ac_ext=c
14237 ac_cpp='$CPP $CPPFLAGS'
14238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14242 $as_echo_n "checking how to run the C preprocessor... " >&6; }
14243 # On Suns, sometimes $CPP names a directory.
14244 if test -n "$CPP" && test -d "$CPP"; then
14245 CPP=
14246 fi
14247 if test -z "$CPP"; then
14248 if test "${ac_cv_prog_CPP+set}" = set; then :
14249 $as_echo_n "(cached) " >&6
14250 else
14251 # Double quotes because CPP needs to be expanded
14252 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
14253 do
14254 ac_preproc_ok=false
14255 for ac_c_preproc_warn_flag in '' yes
14256 do
14257 # Use a header file that comes with gcc, so configuring glibc
14258 # with a fresh cross-compiler works.
14259 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14260 # <limits.h> exists even on freestanding compilers.
14261 # On the NeXT, cc -E runs the code through the compiler's parser,
14262 # not just through cpp. "Syntax error" is here to catch this case.
14263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14264 /* end confdefs.h. */
14265 #ifdef __STDC__
14266 # include <limits.h>
14267 #else
14268 # include <assert.h>
14269 #endif
14270 Syntax error
14271 _ACEOF
14272 if ac_fn_c_try_cpp "$LINENO"; then :
14273
14274 else
14275 # Broken: fails on valid input.
14276 continue
14277 fi
14278 rm -f conftest.err conftest.i conftest.$ac_ext
14279
14280 # OK, works on sane cases. Now check whether nonexistent headers
14281 # can be detected and how.
14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h. */
14284 #include <ac_nonexistent.h>
14285 _ACEOF
14286 if ac_fn_c_try_cpp "$LINENO"; then :
14287 # Broken: success on invalid input.
14288 continue
14289 else
14290 # Passes both tests.
14291 ac_preproc_ok=:
14292 break
14293 fi
14294 rm -f conftest.err conftest.i conftest.$ac_ext
14295
14296 done
14297 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14298 rm -f conftest.i conftest.err conftest.$ac_ext
14299 if $ac_preproc_ok; then :
14300 break
14301 fi
14302
14303 done
14304 ac_cv_prog_CPP=$CPP
14305
14306 fi
14307 CPP=$ac_cv_prog_CPP
14308 else
14309 ac_cv_prog_CPP=$CPP
14310 fi
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14312 $as_echo "$CPP" >&6; }
14313 ac_preproc_ok=false
14314 for ac_c_preproc_warn_flag in '' yes
14315 do
14316 # Use a header file that comes with gcc, so configuring glibc
14317 # with a fresh cross-compiler works.
14318 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14319 # <limits.h> exists even on freestanding compilers.
14320 # On the NeXT, cc -E runs the code through the compiler's parser,
14321 # not just through cpp. "Syntax error" is here to catch this case.
14322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14323 /* end confdefs.h. */
14324 #ifdef __STDC__
14325 # include <limits.h>
14326 #else
14327 # include <assert.h>
14328 #endif
14329 Syntax error
14330 _ACEOF
14331 if ac_fn_c_try_cpp "$LINENO"; then :
14332
14333 else
14334 # Broken: fails on valid input.
14335 continue
14336 fi
14337 rm -f conftest.err conftest.i conftest.$ac_ext
14338
14339 # OK, works on sane cases. Now check whether nonexistent headers
14340 # can be detected and how.
14341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14342 /* end confdefs.h. */
14343 #include <ac_nonexistent.h>
14344 _ACEOF
14345 if ac_fn_c_try_cpp "$LINENO"; then :
14346 # Broken: success on invalid input.
14347 continue
14348 else
14349 # Passes both tests.
14350 ac_preproc_ok=:
14351 break
14352 fi
14353 rm -f conftest.err conftest.i conftest.$ac_ext
14354
14355 done
14356 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14357 rm -f conftest.i conftest.err conftest.$ac_ext
14358 if $ac_preproc_ok; then :
14359
14360 else
14361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14363 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14364 See \`config.log' for more details" "$LINENO" 5 ; }
14365 fi
14366
14367 ac_ext=c
14368 ac_cpp='$CPP $CPPFLAGS'
14369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14372
14373
14374 for ac_prog in flex lex
14375 do
14376 # Extract the first word of "$ac_prog", so it can be a program name with args.
14377 set dummy $ac_prog; ac_word=$2
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14379 $as_echo_n "checking for $ac_word... " >&6; }
14380 if test "${ac_cv_prog_LEX+set}" = set; then :
14381 $as_echo_n "(cached) " >&6
14382 else
14383 if test -n "$LEX"; then
14384 ac_cv_prog_LEX="$LEX" # Let the user override the test.
14385 else
14386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14387 for as_dir in $PATH
14388 do
14389 IFS=$as_save_IFS
14390 test -z "$as_dir" && as_dir=.
14391 for ac_exec_ext in '' $ac_executable_extensions; do
14392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14393 ac_cv_prog_LEX="$ac_prog"
14394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14395 break 2
14396 fi
14397 done
14398 done
14399 IFS=$as_save_IFS
14400
14401 fi
14402 fi
14403 LEX=$ac_cv_prog_LEX
14404 if test -n "$LEX"; then
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
14406 $as_echo "$LEX" >&6; }
14407 else
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14409 $as_echo "no" >&6; }
14410 fi
14411
14412
14413 test -n "$LEX" && break
14414 done
14415 test -n "$LEX" || LEX=":"
14416
14417 if test "x$LEX" != "x:"; then
14418 cat >conftest.l <<_ACEOF
14419 %%
14420 a { ECHO; }
14421 b { REJECT; }
14422 c { yymore (); }
14423 d { yyless (1); }
14424 e { yyless (input () != 0); }
14425 f { unput (yytext[0]); }
14426 . { BEGIN INITIAL; }
14427 %%
14428 #ifdef YYTEXT_POINTER
14429 extern char *yytext;
14430 #endif
14431 int
14432 main (void)
14433 {
14434 return ! yylex () + ! yywrap ();
14435 }
14436 _ACEOF
14437 { { ac_try="$LEX conftest.l"
14438 case "(($ac_try" in
14439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14440 *) ac_try_echo=$ac_try;;
14441 esac
14442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14443 $as_echo "$ac_try_echo"; } >&5
14444 (eval "$LEX conftest.l") 2>&5
14445 ac_status=$?
14446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14447 test $ac_status = 0; }
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
14449 $as_echo_n "checking lex output file root... " >&6; }
14450 if test "${ac_cv_prog_lex_root+set}" = set; then :
14451 $as_echo_n "(cached) " >&6
14452 else
14453
14454 if test -f lex.yy.c; then
14455 ac_cv_prog_lex_root=lex.yy
14456 elif test -f lexyy.c; then
14457 ac_cv_prog_lex_root=lexyy
14458 else
14459 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
14460 fi
14461 fi
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
14463 $as_echo "$ac_cv_prog_lex_root" >&6; }
14464 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
14465
14466 if test -z "${LEXLIB+set}"; then
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
14468 $as_echo_n "checking lex library... " >&6; }
14469 if test "${ac_cv_lib_lex+set}" = set; then :
14470 $as_echo_n "(cached) " >&6
14471 else
14472
14473 ac_save_LIBS=$LIBS
14474 ac_cv_lib_lex='none needed'
14475 for ac_lib in '' -lfl -ll; do
14476 LIBS="$ac_lib $ac_save_LIBS"
14477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14478 /* end confdefs.h. */
14479 `cat $LEX_OUTPUT_ROOT.c`
14480 _ACEOF
14481 if ac_fn_c_try_link "$LINENO"; then :
14482 ac_cv_lib_lex=$ac_lib
14483 fi
14484 rm -f core conftest.err conftest.$ac_objext \
14485 conftest$ac_exeext conftest.$ac_ext
14486 test "$ac_cv_lib_lex" != 'none needed' && break
14487 done
14488 LIBS=$ac_save_LIBS
14489
14490 fi
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
14492 $as_echo "$ac_cv_lib_lex" >&6; }
14493 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
14494 fi
14495
14496
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
14498 $as_echo_n "checking whether yytext is a pointer... " >&6; }
14499 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
14500 $as_echo_n "(cached) " >&6
14501 else
14502 # POSIX says lex can declare yytext either as a pointer or an array; the
14503 # default is implementation-dependent. Figure out which it is, since
14504 # not all implementations provide the %pointer and %array declarations.
14505 ac_cv_prog_lex_yytext_pointer=no
14506 ac_save_LIBS=$LIBS
14507 LIBS="$LEXLIB $ac_save_LIBS"
14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509 /* end confdefs.h. */
14510 #define YYTEXT_POINTER 1
14511 `cat $LEX_OUTPUT_ROOT.c`
14512 _ACEOF
14513 if ac_fn_c_try_link "$LINENO"; then :
14514 ac_cv_prog_lex_yytext_pointer=yes
14515 fi
14516 rm -f core conftest.err conftest.$ac_objext \
14517 conftest$ac_exeext conftest.$ac_ext
14518 LIBS=$ac_save_LIBS
14519
14520 fi
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
14522 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
14523 if test $ac_cv_prog_lex_yytext_pointer = yes; then
14524
14525 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
14526
14527 fi
14528 rm -f conftest.l $LEX_OUTPUT_ROOT.c
14529
14530 fi
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14532 $as_echo_n "checking whether ln -s works... " >&6; }
14533 LN_S=$as_ln_s
14534 if test "$LN_S" = "ln -s"; then
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14536 $as_echo "yes" >&6; }
14537 else
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14539 $as_echo "no, using $LN_S" >&6; }
14540 fi
14541
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14543 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14544 set x ${MAKE-make}
14545 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14546 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
14547 $as_echo_n "(cached) " >&6
14548 else
14549 cat >conftest.make <<\_ACEOF
14550 SHELL = /bin/sh
14551 all:
14552 @echo '@@@%%%=$(MAKE)=@@@%%%'
14553 _ACEOF
14554 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14555 case `${MAKE-make} -f conftest.make 2>/dev/null` in
14556 *@@@%%%=?*=@@@%%%*)
14557 eval ac_cv_prog_make_${ac_make}_set=yes;;
14558 *)
14559 eval ac_cv_prog_make_${ac_make}_set=no;;
14560 esac
14561 rm -f conftest.make
14562 fi
14563 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14565 $as_echo "yes" >&6; }
14566 SET_MAKE=
14567 else
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14569 $as_echo "no" >&6; }
14570 SET_MAKE="MAKE=${MAKE-make}"
14571 fi
14572
14573
14574 # Before making a release, the LTVERSION string should be modified.
14575 # The string is of the form C:R:A.
14576 # - If interfaces have been changed or added, but binary compatibility has
14577 # been preserved, change to C+1:0:A+1
14578 # - If binary compatibility has been broken (eg removed or changed interfaces)
14579 # change to C+1:0:0
14580 # - If the interface is the same as the previous version, change to C:R+1:A
14581 LTVERSION="2:4:0"
14582
14583
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
14585 $as_echo_n "checking for library containing strerror... " >&6; }
14586 if test "${ac_cv_search_strerror+set}" = set; then :
14587 $as_echo_n "(cached) " >&6
14588 else
14589 ac_func_search_save_LIBS=$LIBS
14590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14591 /* end confdefs.h. */
14592
14593 /* Override any GCC internal prototype to avoid an error.
14594 Use char because int might match the return type of a GCC
14595 builtin and then its argument prototype would still apply. */
14596 #ifdef __cplusplus
14597 extern "C"
14598 #endif
14599 char strerror ();
14600 int
14601 main ()
14602 {
14603 return strerror ();
14604 ;
14605 return 0;
14606 }
14607 _ACEOF
14608 for ac_lib in '' cposix; do
14609 if test -z "$ac_lib"; then
14610 ac_res="none required"
14611 else
14612 ac_res=-l$ac_lib
14613 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14614 fi
14615 if ac_fn_c_try_link "$LINENO"; then :
14616 ac_cv_search_strerror=$ac_res
14617 fi
14618 rm -f core conftest.err conftest.$ac_objext \
14619 conftest$ac_exeext
14620 if test "${ac_cv_search_strerror+set}" = set; then :
14621 break
14622 fi
14623 done
14624 if test "${ac_cv_search_strerror+set}" = set; then :
14625
14626 else
14627 ac_cv_search_strerror=no
14628 fi
14629 rm conftest.$ac_ext
14630 LIBS=$ac_func_search_save_LIBS
14631 fi
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
14633 $as_echo "$ac_cv_search_strerror" >&6; }
14634 ac_res=$ac_cv_search_strerror
14635 if test "$ac_res" != no; then :
14636 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14637
14638 fi
14639
14640
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14642 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14643 set x ${MAKE-make}
14644 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14645 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
14646 $as_echo_n "(cached) " >&6
14647 else
14648 cat >conftest.make <<\_ACEOF
14649 SHELL = /bin/sh
14650 all:
14651 @echo '@@@%%%=$(MAKE)=@@@%%%'
14652 _ACEOF
14653 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14654 case `${MAKE-make} -f conftest.make 2>/dev/null` in
14655 *@@@%%%=?*=@@@%%%*)
14656 eval ac_cv_prog_make_${ac_make}_set=yes;;
14657 *)
14658 eval ac_cv_prog_make_${ac_make}_set=no;;
14659 esac
14660 rm -f conftest.make
14661 fi
14662 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14664 $as_echo "yes" >&6; }
14665 SET_MAKE=
14666 else
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14668 $as_echo "no" >&6; }
14669 SET_MAKE="MAKE=${MAKE-make}"
14670 fi
14671
14672
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14674 $as_echo_n "checking for ANSI C header files... " >&6; }
14675 if test "${ac_cv_header_stdc+set}" = set; then :
14676 $as_echo_n "(cached) " >&6
14677 else
14678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14679 /* end confdefs.h. */
14680 #include <stdlib.h>
14681 #include <stdarg.h>
14682 #include <string.h>
14683 #include <float.h>
14684
14685 int
14686 main ()
14687 {
14688
14689 ;
14690 return 0;
14691 }
14692 _ACEOF
14693 if ac_fn_c_try_compile "$LINENO"; then :
14694 ac_cv_header_stdc=yes
14695 else
14696 ac_cv_header_stdc=no
14697 fi
14698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14699
14700 if test $ac_cv_header_stdc = yes; then
14701 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14703 /* end confdefs.h. */
14704 #include <string.h>
14705
14706 _ACEOF
14707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14708 $EGREP "memchr" >/dev/null 2>&1; then :
14709
14710 else
14711 ac_cv_header_stdc=no
14712 fi
14713 rm -f conftest*
14714
14715 fi
14716
14717 if test $ac_cv_header_stdc = yes; then
14718 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720 /* end confdefs.h. */
14721 #include <stdlib.h>
14722
14723 _ACEOF
14724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14725 $EGREP "free" >/dev/null 2>&1; then :
14726
14727 else
14728 ac_cv_header_stdc=no
14729 fi
14730 rm -f conftest*
14731
14732 fi
14733
14734 if test $ac_cv_header_stdc = yes; then
14735 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14736 if test "$cross_compiling" = yes; then :
14737 :
14738 else
14739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14740 /* end confdefs.h. */
14741 #include <ctype.h>
14742 #include <stdlib.h>
14743 #if ((' ' & 0x0FF) == 0x020)
14744 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14745 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14746 #else
14747 # define ISLOWER(c) \
14748 (('a' <= (c) && (c) <= 'i') \
14749 || ('j' <= (c) && (c) <= 'r') \
14750 || ('s' <= (c) && (c) <= 'z'))
14751 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14752 #endif
14753
14754 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14755 int
14756 main ()
14757 {
14758 int i;
14759 for (i = 0; i < 256; i++)
14760 if (XOR (islower (i), ISLOWER (i))
14761 || toupper (i) != TOUPPER (i))
14762 return 2;
14763 return 0;
14764 }
14765 _ACEOF
14766 if ac_fn_c_try_run "$LINENO"; then :
14767
14768 else
14769 ac_cv_header_stdc=no
14770 fi
14771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14772 conftest.$ac_objext conftest.beam conftest.$ac_ext
14773 fi
14774
14775 fi
14776 fi
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14778 $as_echo "$ac_cv_header_stdc" >&6; }
14779 if test $ac_cv_header_stdc = yes; then
14780
14781 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14782
14783 fi
14784
14785 for ac_header in fcntl.h limits.h stdlib.h string.h sys/param.h unistd.h
14786 do :
14787 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14788 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14789 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14790 cat >>confdefs.h <<_ACEOF
14791 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14792 _ACEOF
14793
14794 fi
14795
14796 done
14797
14798 for ac_header in sys/param.h sys/types.h netinet/in.h
14799 do :
14800 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14801 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14802 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14803 cat >>confdefs.h <<_ACEOF
14804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14805 _ACEOF
14806
14807 fi
14808
14809 done
14810
14811 for ac_header in io.h windows.h
14812 do :
14813 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14814 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14815 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14816 cat >>confdefs.h <<_ACEOF
14817 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14818 _ACEOF
14819
14820 fi
14821
14822 done
14823
14824
14825 # Checks for typedefs, structures, and compiler characteristics.
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14827 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14828 if test "${ac_cv_c_const+set}" = set; then :
14829 $as_echo_n "(cached) " >&6
14830 else
14831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14832 /* end confdefs.h. */
14833
14834 int
14835 main ()
14836 {
14837 /* FIXME: Include the comments suggested by Paul. */
14838 #ifndef __cplusplus
14839 /* Ultrix mips cc rejects this. */
14840 typedef int charset[2];
14841 const charset cs;
14842 /* SunOS 4.1.1 cc rejects this. */
14843 char const *const *pcpcc;
14844 char **ppc;
14845 /* NEC SVR4.0.2 mips cc rejects this. */
14846 struct point {int x, y;};
14847 static struct point const zero = {0,0};
14848 /* AIX XL C 1.02.0.0 rejects this.
14849 It does not let you subtract one const X* pointer from another in
14850 an arm of an if-expression whose if-part is not a constant
14851 expression */
14852 const char *g = "string";
14853 pcpcc = &g + (g ? g-g : 0);
14854 /* HPUX 7.0 cc rejects these. */
14855 ++pcpcc;
14856 ppc = (char**) pcpcc;
14857 pcpcc = (char const *const *) ppc;
14858 { /* SCO 3.2v4 cc rejects this. */
14859 char *t;
14860 char const *s = 0 ? (char *) 0 : (char const *) 0;
14861
14862 *t++ = 0;
14863 if (s) return 0;
14864 }
14865 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14866 int x[] = {25, 17};
14867 const int *foo = &x[0];
14868 ++foo;
14869 }
14870 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14871 typedef const int *iptr;
14872 iptr p = 0;
14873 ++p;
14874 }
14875 { /* AIX XL C 1.02.0.0 rejects this saying
14876 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14877 struct s { int j; const int *ap[3]; };
14878 struct s *b; b->j = 5;
14879 }
14880 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14881 const int foo = 10;
14882 if (!foo) return 0;
14883 }
14884 return !cs[0] && !zero.x;
14885 #endif
14886
14887 ;
14888 return 0;
14889 }
14890 _ACEOF
14891 if ac_fn_c_try_compile "$LINENO"; then :
14892 ac_cv_c_const=yes
14893 else
14894 ac_cv_c_const=no
14895 fi
14896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14897 fi
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14899 $as_echo "$ac_cv_c_const" >&6; }
14900 if test $ac_cv_c_const = no; then
14901
14902 $as_echo "#define const /**/" >>confdefs.h
14903
14904 fi
14905
14906 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14907 if test "x$ac_cv_type_off_t" = x""yes; then :
14908
14909 else
14910
14911 cat >>confdefs.h <<_ACEOF
14912 #define off_t long int
14913 _ACEOF
14914
14915 fi
14916
14917 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14918 if test "x$ac_cv_type_size_t" = x""yes; then :
14919
14920 else
14921
14922 cat >>confdefs.h <<_ACEOF
14923 #define size_t unsigned int
14924 _ACEOF
14925
14926 fi
14927
14928
14929 # Checks for library functions.
14930 for ac_header in stdlib.h
14931 do :
14932 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14933 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
14934 cat >>confdefs.h <<_ACEOF
14935 #define HAVE_STDLIB_H 1
14936 _ACEOF
14937
14938 fi
14939
14940 done
14941
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14943 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14944 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
14945 $as_echo_n "(cached) " >&6
14946 else
14947 if test "$cross_compiling" = yes; then :
14948 ac_cv_func_malloc_0_nonnull=no
14949 else
14950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14951 /* end confdefs.h. */
14952 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
14953 # include <stdlib.h>
14954 #else
14955 char *malloc ();
14956 #endif
14957
14958 int
14959 main ()
14960 {
14961 return ! malloc (0);
14962 ;
14963 return 0;
14964 }
14965 _ACEOF
14966 if ac_fn_c_try_run "$LINENO"; then :
14967 ac_cv_func_malloc_0_nonnull=yes
14968 else
14969 ac_cv_func_malloc_0_nonnull=no
14970 fi
14971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14972 conftest.$ac_objext conftest.beam conftest.$ac_ext
14973 fi
14974
14975 fi
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
14977 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14978 if test $ac_cv_func_malloc_0_nonnull = yes; then :
14979
14980 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
14981
14982 else
14983 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
14984
14985 case " $LIBOBJS " in
14986 *" malloc.$ac_objext "* ) ;;
14987 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
14988 ;;
14989 esac
14990
14991
14992 $as_echo "#define malloc rpl_malloc" >>confdefs.h
14993
14994 fi
14995
14996
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
14998 $as_echo_n "checking for working memcmp... " >&6; }
14999 if test "${ac_cv_func_memcmp_working+set}" = set; then :
15000 $as_echo_n "(cached) " >&6
15001 else
15002 if test "$cross_compiling" = yes; then :
15003 ac_cv_func_memcmp_working=no
15004 else
15005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15006 /* end confdefs.h. */
15007 $ac_includes_default
15008 int
15009 main ()
15010 {
15011
15012 /* Some versions of memcmp are not 8-bit clean. */
15013 char c0 = '\100', c1 = '\200', c2 = '\201';
15014 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
15015 return 1;
15016
15017 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
15018 or more and with at least one buffer not starting on a 4-byte boundary.
15019 William Lewis provided this test program. */
15020 {
15021 char foo[21];
15022 char bar[21];
15023 int i;
15024 for (i = 0; i < 4; i++)
15025 {
15026 char *a = foo + i;
15027 char *b = bar + i;
15028 strcpy (a, "--------01111111");
15029 strcpy (b, "--------10000000");
15030 if (memcmp (a, b, 16) >= 0)
15031 return 1;
15032 }
15033 return 0;
15034 }
15035
15036 ;
15037 return 0;
15038 }
15039 _ACEOF
15040 if ac_fn_c_try_run "$LINENO"; then :
15041 ac_cv_func_memcmp_working=yes
15042 else
15043 ac_cv_func_memcmp_working=no
15044 fi
15045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15046 conftest.$ac_objext conftest.beam conftest.$ac_ext
15047 fi
15048
15049 fi
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
15051 $as_echo "$ac_cv_func_memcmp_working" >&6; }
15052 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
15053 *" memcmp.$ac_objext "* ) ;;
15054 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15055 ;;
15056 esac
15057
15058
15059
15060
15061
15062 for ac_header in $ac_header_list
15063 do :
15064 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15065 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15066 "
15067 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15068 cat >>confdefs.h <<_ACEOF
15069 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15070 _ACEOF
15071
15072 fi
15073
15074 done
15075
15076
15077
15078
15079
15080
15081
15082
15083 for ac_func in getpagesize
15084 do :
15085 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15086 if test "x$ac_cv_func_getpagesize" = x""yes; then :
15087 cat >>confdefs.h <<_ACEOF
15088 #define HAVE_GETPAGESIZE 1
15089 _ACEOF
15090
15091 fi
15092 done
15093
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15095 $as_echo_n "checking for working mmap... " >&6; }
15096 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
15097 $as_echo_n "(cached) " >&6
15098 else
15099 if test "$cross_compiling" = yes; then :
15100 ac_cv_func_mmap_fixed_mapped=no
15101 else
15102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15103 /* end confdefs.h. */
15104 $ac_includes_default
15105 /* malloc might have been renamed as rpl_malloc. */
15106 #undef malloc
15107
15108 /* Thanks to Mike Haertel and Jim Avera for this test.
15109 Here is a matrix of mmap possibilities:
15110 mmap private not fixed
15111 mmap private fixed at somewhere currently unmapped
15112 mmap private fixed at somewhere already mapped
15113 mmap shared not fixed
15114 mmap shared fixed at somewhere currently unmapped
15115 mmap shared fixed at somewhere already mapped
15116 For private mappings, we should verify that changes cannot be read()
15117 back from the file, nor mmap's back from the file at a different
15118 address. (There have been systems where private was not correctly
15119 implemented like the infamous i386 svr4.0, and systems where the
15120 VM page cache was not coherent with the file system buffer cache
15121 like early versions of FreeBSD and possibly contemporary NetBSD.)
15122 For shared mappings, we should conversely verify that changes get
15123 propagated back to all the places they're supposed to be.
15124
15125 Grep wants private fixed already mapped.
15126 The main things grep needs to know about mmap are:
15127 * does it exist and is it safe to write into the mmap'd area
15128 * how to use it (BSD variants) */
15129
15130 #include <fcntl.h>
15131 #include <sys/mman.h>
15132
15133 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15134 char *malloc ();
15135 #endif
15136
15137 /* This mess was copied from the GNU getpagesize.h. */
15138 #ifndef HAVE_GETPAGESIZE
15139 # ifdef _SC_PAGESIZE
15140 # define getpagesize() sysconf(_SC_PAGESIZE)
15141 # else /* no _SC_PAGESIZE */
15142 # ifdef HAVE_SYS_PARAM_H
15143 # include <sys/param.h>
15144 # ifdef EXEC_PAGESIZE
15145 # define getpagesize() EXEC_PAGESIZE
15146 # else /* no EXEC_PAGESIZE */
15147 # ifdef NBPG
15148 # define getpagesize() NBPG * CLSIZE
15149 # ifndef CLSIZE
15150 # define CLSIZE 1
15151 # endif /* no CLSIZE */
15152 # else /* no NBPG */
15153 # ifdef NBPC
15154 # define getpagesize() NBPC
15155 # else /* no NBPC */
15156 # ifdef PAGESIZE
15157 # define getpagesize() PAGESIZE
15158 # endif /* PAGESIZE */
15159 # endif /* no NBPC */
15160 # endif /* no NBPG */
15161 # endif /* no EXEC_PAGESIZE */
15162 # else /* no HAVE_SYS_PARAM_H */
15163 # define getpagesize() 8192 /* punt totally */
15164 # endif /* no HAVE_SYS_PARAM_H */
15165 # endif /* no _SC_PAGESIZE */
15166
15167 #endif /* no HAVE_GETPAGESIZE */
15168
15169 int
15170 main ()
15171 {
15172 char *data, *data2, *data3;
15173 const char *cdata2;
15174 int i, pagesize;
15175 int fd, fd2;
15176
15177 pagesize = getpagesize ();
15178
15179 /* First, make a file with some known garbage in it. */
15180 data = (char *) malloc (pagesize);
15181 if (!data)
15182 return 1;
15183 for (i = 0; i < pagesize; ++i)
15184 *(data + i) = rand ();
15185 umask (0);
15186 fd = creat ("conftest.mmap", 0600);
15187 if (fd < 0)
15188 return 2;
15189 if (write (fd, data, pagesize) != pagesize)
15190 return 3;
15191 close (fd);
15192
15193 /* Next, check that the tail of a page is zero-filled. File must have
15194 non-zero length, otherwise we risk SIGBUS for entire page. */
15195 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15196 if (fd2 < 0)
15197 return 4;
15198 cdata2 = "";
15199 if (write (fd2, cdata2, 1) != 1)
15200 return 5;
15201 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15202 if (data2 == MAP_FAILED)
15203 return 6;
15204 for (i = 0; i < pagesize; ++i)
15205 if (*(data2 + i))
15206 return 7;
15207 close (fd2);
15208 if (munmap (data2, pagesize))
15209 return 8;
15210
15211 /* Next, try to mmap the file at a fixed address which already has
15212 something else allocated at it. If we can, also make sure that
15213 we see the same garbage. */
15214 fd = open ("conftest.mmap", O_RDWR);
15215 if (fd < 0)
15216 return 9;
15217 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15218 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15219 return 10;
15220 for (i = 0; i < pagesize; ++i)
15221 if (*(data + i) != *(data2 + i))
15222 return 11;
15223
15224 /* Finally, make sure that changes to the mapped area do not
15225 percolate back to the file as seen by read(). (This is a bug on
15226 some variants of i386 svr4.0.) */
15227 for (i = 0; i < pagesize; ++i)
15228 *(data2 + i) = *(data2 + i) + 1;
15229 data3 = (char *) malloc (pagesize);
15230 if (!data3)
15231 return 12;
15232 if (read (fd, data3, pagesize) != pagesize)
15233 return 13;
15234 for (i = 0; i < pagesize; ++i)
15235 if (*(data + i) != *(data3 + i))
15236 return 14;
15237 close (fd);
15238 return 0;
15239 }
15240 _ACEOF
15241 if ac_fn_c_try_run "$LINENO"; then :
15242 ac_cv_func_mmap_fixed_mapped=yes
15243 else
15244 ac_cv_func_mmap_fixed_mapped=no
15245 fi
15246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15247 conftest.$ac_objext conftest.beam conftest.$ac_ext
15248 fi
15249
15250 fi
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15252 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15253 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15254
15255 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
15256
15257 fi
15258 rm -f conftest.mmap conftest.txt
15259
15260 for ac_header in stdlib.h
15261 do :
15262 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15263 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
15264 cat >>confdefs.h <<_ACEOF
15265 #define HAVE_STDLIB_H 1
15266 _ACEOF
15267
15268 fi
15269
15270 done
15271
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
15273 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
15274 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
15275 $as_echo_n "(cached) " >&6
15276 else
15277 if test "$cross_compiling" = yes; then :
15278 ac_cv_func_realloc_0_nonnull=no
15279 else
15280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15281 /* end confdefs.h. */
15282 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15283 # include <stdlib.h>
15284 #else
15285 char *realloc ();
15286 #endif
15287
15288 int
15289 main ()
15290 {
15291 return ! realloc (0, 0);
15292 ;
15293 return 0;
15294 }
15295 _ACEOF
15296 if ac_fn_c_try_run "$LINENO"; then :
15297 ac_cv_func_realloc_0_nonnull=yes
15298 else
15299 ac_cv_func_realloc_0_nonnull=no
15300 fi
15301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15302 conftest.$ac_objext conftest.beam conftest.$ac_ext
15303 fi
15304
15305 fi
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
15307 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
15308 if test $ac_cv_func_realloc_0_nonnull = yes; then :
15309
15310 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
15311
15312 else
15313 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
15314
15315 case " $LIBOBJS " in
15316 *" realloc.$ac_objext "* ) ;;
15317 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
15318 ;;
15319 esac
15320
15321
15322 $as_echo "#define realloc rpl_realloc" >>confdefs.h
15323
15324 fi
15325
15326
15327 for ac_func in vprintf
15328 do :
15329 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
15330 if test "x$ac_cv_func_vprintf" = x""yes; then :
15331 cat >>confdefs.h <<_ACEOF
15332 #define HAVE_VPRINTF 1
15333 _ACEOF
15334
15335 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
15336 if test "x$ac_cv_func__doprnt" = x""yes; then :
15337
15338 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
15339
15340 fi
15341
15342 fi
15343 done
15344
15345
15346 for ac_func in mblen memset munmap strchr strpbrk strrchr
15347 do :
15348 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15349 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15350 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15351 cat >>confdefs.h <<_ACEOF
15352 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15353 _ACEOF
15354
15355 fi
15356 done
15357
15358
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for darts.h" >&5
15360 $as_echo_n "checking for darts.h... " >&6; }
15361
15362 # Check whether --with-darts was given.
15363 if test "${with_darts+set}" = set; then :
15364 withval=$with_darts; if test "${with_darts}" = yes; then
15365 vi_darts_path="/usr/local/include"
15366 else
15367 vi_darts_path=${with_darts}
15368 fi
15369 CXXFLAGS="${CXXFLAGS} -I${vi_darts_path}"
15370
15371 fi
15372
15373
15374 ac_ext=cpp
15375 ac_cpp='$CXXCPP $CPPFLAGS'
15376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15379
15380
15381 if test "${cl_cv_header_darts+set}" = set; then :
15382 $as_echo_n "(cached) " >&6
15383 else
15384
15385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15386 /* end confdefs.h. */
15387 #include <darts.h>
15388 int
15389 main ()
15390 {
15391 ;
15392 ;
15393 return 0;
15394 }
15395 _ACEOF
15396 if ac_fn_cxx_try_compile "$LINENO"; then :
15397 cl_cv_header_darts=yes
15398 else
15399
15400 as_fn_error $? "no header of Darts. You need to get darts-0.32 or higher from http://chasen.org/~taku/software/darts/." "$LINENO" 5
15401 fi
15402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15403 fi
15404
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_header_darts" >&5
15406 $as_echo "$cl_cv_header_darts" >&6; }
15407 #AC_CACHE_VAL(cl_cv_header_darts_version, [
15408 # AC_TRY_CPP([],cl_cv_header_darts_version=yes,[AC_MSG_ERROR(an old version of darts.h is found. You need to get darts-0.32 or higher from http://chasen.org/~taku/software/darts/.)])])
15409 #AC_MSG_RESULT(checking for darts.h version >= 0.32... $cl_cv_header_darts_version)
15410 ac_ext=c
15411 ac_cpp='$CPP $CPPFLAGS'
15412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15415
15416
15417
15418 # Check whether --with-libiconv was given.
15419 if test "${with_libiconv+set}" = set; then :
15420 withval=$with_libiconv; if test x"${with_libiconv}" != x ; then
15421 ICONV_CFLAGS="-I${with_libiconv}/include"
15422 LIBS="$LIBS -L${with_libiconv}/lib"
15423
15424 fi
15425 fi
15426
15427
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
15429 $as_echo_n "checking for iconv in -liconv... " >&6; }
15430 if test "${ac_cv_lib_iconv_iconv+set}" = set; then :
15431 $as_echo_n "(cached) " >&6
15432 else
15433 ac_check_lib_save_LIBS=$LIBS
15434 LIBS="-liconv $LIBS"
15435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15436 /* end confdefs.h. */
15437
15438 /* Override any GCC internal prototype to avoid an error.
15439 Use char because int might match the return type of a GCC
15440 builtin and then its argument prototype would still apply. */
15441 #ifdef __cplusplus
15442 extern "C"
15443 #endif
15444 char iconv ();
15445 int
15446 main ()
15447 {
15448 return iconv ();
15449 ;
15450 return 0;
15451 }
15452 _ACEOF
15453 if ac_fn_c_try_link "$LINENO"; then :
15454 ac_cv_lib_iconv_iconv=yes
15455 else
15456 ac_cv_lib_iconv_iconv=no
15457 fi
15458 rm -f core conftest.err conftest.$ac_objext \
15459 conftest$ac_exeext conftest.$ac_ext
15460 LIBS=$ac_check_lib_save_LIBS
15461 fi
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv" >&5
15463 $as_echo "$ac_cv_lib_iconv_iconv" >&6; }
15464 if test "x$ac_cv_lib_iconv_iconv" = x""yes; then :
15465 cat >>confdefs.h <<_ACEOF
15466 #define HAVE_LIBICONV 1
15467 _ACEOF
15468
15469 LIBS="-liconv $LIBS"
15470
15471 else
15472
15473 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
15474 if test "x$ac_cv_header_iconv_h" = x""yes; then :
15475
15476 else
15477 as_fn_error $? "ChaSen needs iconv" "$LINENO" 5
15478 fi
15479
15480
15481 fi
15482
15483
15484
15485
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking iconv args" >&5
15487 $as_echo_n "checking iconv args... " >&6; }
15488
15489 for CODE in EUC-JP EUCJP eucJP; do
15490 if (echo | iconv -f ${CODE} -t 'UTF-8' > iconv_test 2>&1); then
15491 vi_iconv_arg_EUCJP=${CODE}; break
15492 fi;
15493 done
15494 rm -f iconv_test
15495 if test x"$vi_iconv_arg_EUCJP" = x; then
15496 as_fn_error $? "cannot use EUC-JP with iconv" "$LINENO" 5
15497 fi
15498 cat >>confdefs.h <<_ACEOF
15499 #define ICONV_EUCJP "$vi_iconv_arg_EUCJP"
15500 _ACEOF
15501
15502
15503
15504 for CODE in SHIFT_JIS SHIFT-JIS SJIS; do
15505 if (echo | iconv -f ${CODE} -t 'UTF-8' > iconv_test 2>&1); then
15506 vi_iconv_arg_SJIS=${CODE}; break
15507 fi;
15508 done
15509 rm -f iconv_test
15510 if test x"$vi_iconv_arg_SJIS" = x; then
15511 as_fn_error $? "cannot use Shift_JIS with iconv" "$LINENO" 5
15512 fi
15513 cat >>confdefs.h <<_ACEOF
15514 #define ICONV_SJIS "$vi_iconv_arg_SJIS"
15515 _ACEOF
15516
15517
15518
15519 for CODE in ISO-8859-1 ISO_8859-1 8859-1 ISO8859-1; do
15520 if (echo | iconv -f ${CODE} -t 'UTF-8' > iconv_test 2>&1); then
15521 vi_iconv_arg_88591=${CODE}; break
15522 fi;
15523 done
15524 rm -f iconv_test
15525 if test x"$vi_iconv_arg_88591" = x; then
15526 as_fn_error $? "cannot use ISO-8859-1 with iconv" "$LINENO" 5
15527 fi
15528 cat >>confdefs.h <<_ACEOF
15529 #define ICONV_88591 "$vi_iconv_arg_88591"
15530 _ACEOF
15531
15532
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_iconv_arg_EUCJP $vi_iconv_arg_SJIS $vi_iconv_arg_88591" >&5
15534 $as_echo "$vi_iconv_arg_EUCJP $vi_iconv_arg_SJIS $vi_iconv_arg_88591" >&6; }
15535
15536 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15537 if test "x$ac_cv_type_off_t" = x""yes; then :
15538
15539 else
15540
15541 cat >>confdefs.h <<_ACEOF
15542 #define off_t long int
15543 _ACEOF
15544
15545 fi
15546
15547 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15548 if test "x$ac_cv_type_size_t" = x""yes; then :
15549
15550 else
15551
15552 cat >>confdefs.h <<_ACEOF
15553 #define size_t unsigned int
15554 _ACEOF
15555
15556 fi
15557
15558
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
15560 $as_echo_n "checking for working memcmp... " >&6; }
15561 if test "${ac_cv_func_memcmp_working+set}" = set; then :
15562 $as_echo_n "(cached) " >&6
15563 else
15564 if test "$cross_compiling" = yes; then :
15565 ac_cv_func_memcmp_working=no
15566 else
15567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15568 /* end confdefs.h. */
15569 $ac_includes_default
15570 int
15571 main ()
15572 {
15573
15574 /* Some versions of memcmp are not 8-bit clean. */
15575 char c0 = '\100', c1 = '\200', c2 = '\201';
15576 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
15577 return 1;
15578
15579 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
15580 or more and with at least one buffer not starting on a 4-byte boundary.
15581 William Lewis provided this test program. */
15582 {
15583 char foo[21];
15584 char bar[21];
15585 int i;
15586 for (i = 0; i < 4; i++)
15587 {
15588 char *a = foo + i;
15589 char *b = bar + i;
15590 strcpy (a, "--------01111111");
15591 strcpy (b, "--------10000000");
15592 if (memcmp (a, b, 16) >= 0)
15593 return 1;
15594 }
15595 return 0;
15596 }
15597
15598 ;
15599 return 0;
15600 }
15601 _ACEOF
15602 if ac_fn_c_try_run "$LINENO"; then :
15603 ac_cv_func_memcmp_working=yes
15604 else
15605 ac_cv_func_memcmp_working=no
15606 fi
15607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15608 conftest.$ac_objext conftest.beam conftest.$ac_ext
15609 fi
15610
15611 fi
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
15613 $as_echo "$ac_cv_func_memcmp_working" >&6; }
15614 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
15615 *" memcmp.$ac_objext "* ) ;;
15616 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15617 ;;
15618 esac
15619
15620
15621
15622 for ac_func in getpagesize
15623 do :
15624 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15625 if test "x$ac_cv_func_getpagesize" = x""yes; then :
15626 cat >>confdefs.h <<_ACEOF
15627 #define HAVE_GETPAGESIZE 1
15628 _ACEOF
15629
15630 fi
15631 done
15632
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15634 $as_echo_n "checking for working mmap... " >&6; }
15635 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
15636 $as_echo_n "(cached) " >&6
15637 else
15638 if test "$cross_compiling" = yes; then :
15639 ac_cv_func_mmap_fixed_mapped=no
15640 else
15641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15642 /* end confdefs.h. */
15643 $ac_includes_default
15644 /* malloc might have been renamed as rpl_malloc. */
15645 #undef malloc
15646
15647 /* Thanks to Mike Haertel and Jim Avera for this test.
15648 Here is a matrix of mmap possibilities:
15649 mmap private not fixed
15650 mmap private fixed at somewhere currently unmapped
15651 mmap private fixed at somewhere already mapped
15652 mmap shared not fixed
15653 mmap shared fixed at somewhere currently unmapped
15654 mmap shared fixed at somewhere already mapped
15655 For private mappings, we should verify that changes cannot be read()
15656 back from the file, nor mmap's back from the file at a different
15657 address. (There have been systems where private was not correctly
15658 implemented like the infamous i386 svr4.0, and systems where the
15659 VM page cache was not coherent with the file system buffer cache
15660 like early versions of FreeBSD and possibly contemporary NetBSD.)
15661 For shared mappings, we should conversely verify that changes get
15662 propagated back to all the places they're supposed to be.
15663
15664 Grep wants private fixed already mapped.
15665 The main things grep needs to know about mmap are:
15666 * does it exist and is it safe to write into the mmap'd area
15667 * how to use it (BSD variants) */
15668
15669 #include <fcntl.h>
15670 #include <sys/mman.h>
15671
15672 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15673 char *malloc ();
15674 #endif
15675
15676 /* This mess was copied from the GNU getpagesize.h. */
15677 #ifndef HAVE_GETPAGESIZE
15678 # ifdef _SC_PAGESIZE
15679 # define getpagesize() sysconf(_SC_PAGESIZE)
15680 # else /* no _SC_PAGESIZE */
15681 # ifdef HAVE_SYS_PARAM_H
15682 # include <sys/param.h>
15683 # ifdef EXEC_PAGESIZE
15684 # define getpagesize() EXEC_PAGESIZE
15685 # else /* no EXEC_PAGESIZE */
15686 # ifdef NBPG
15687 # define getpagesize() NBPG * CLSIZE
15688 # ifndef CLSIZE
15689 # define CLSIZE 1
15690 # endif /* no CLSIZE */
15691 # else /* no NBPG */
15692 # ifdef NBPC
15693 # define getpagesize() NBPC
15694 # else /* no NBPC */
15695 # ifdef PAGESIZE
15696 # define getpagesize() PAGESIZE
15697 # endif /* PAGESIZE */
15698 # endif /* no NBPC */
15699 # endif /* no NBPG */
15700 # endif /* no EXEC_PAGESIZE */
15701 # else /* no HAVE_SYS_PARAM_H */
15702 # define getpagesize() 8192 /* punt totally */
15703 # endif /* no HAVE_SYS_PARAM_H */
15704 # endif /* no _SC_PAGESIZE */
15705
15706 #endif /* no HAVE_GETPAGESIZE */
15707
15708 int
15709 main ()
15710 {
15711 char *data, *data2, *data3;
15712 const char *cdata2;
15713 int i, pagesize;
15714 int fd, fd2;
15715
15716 pagesize = getpagesize ();
15717
15718 /* First, make a file with some known garbage in it. */
15719 data = (char *) malloc (pagesize);
15720 if (!data)
15721 return 1;
15722 for (i = 0; i < pagesize; ++i)
15723 *(data + i) = rand ();
15724 umask (0);
15725 fd = creat ("conftest.mmap", 0600);
15726 if (fd < 0)
15727 return 2;
15728 if (write (fd, data, pagesize) != pagesize)
15729 return 3;
15730 close (fd);
15731
15732 /* Next, check that the tail of a page is zero-filled. File must have
15733 non-zero length, otherwise we risk SIGBUS for entire page. */
15734 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15735 if (fd2 < 0)
15736 return 4;
15737 cdata2 = "";
15738 if (write (fd2, cdata2, 1) != 1)
15739 return 5;
15740 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15741 if (data2 == MAP_FAILED)
15742 return 6;
15743 for (i = 0; i < pagesize; ++i)
15744 if (*(data2 + i))
15745 return 7;
15746 close (fd2);
15747 if (munmap (data2, pagesize))
15748 return 8;
15749
15750 /* Next, try to mmap the file at a fixed address which already has
15751 something else allocated at it. If we can, also make sure that
15752 we see the same garbage. */
15753 fd = open ("conftest.mmap", O_RDWR);
15754 if (fd < 0)
15755 return 9;
15756 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15757 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15758 return 10;
15759 for (i = 0; i < pagesize; ++i)
15760 if (*(data + i) != *(data2 + i))
15761 return 11;
15762
15763 /* Finally, make sure that changes to the mapped area do not
15764 percolate back to the file as seen by read(). (This is a bug on
15765 some variants of i386 svr4.0.) */
15766 for (i = 0; i < pagesize; ++i)
15767 *(data2 + i) = *(data2 + i) + 1;
15768 data3 = (char *) malloc (pagesize);
15769 if (!data3)
15770 return 12;
15771 if (read (fd, data3, pagesize) != pagesize)
15772 return 13;
15773 for (i = 0; i < pagesize; ++i)
15774 if (*(data + i) != *(data3 + i))
15775 return 14;
15776 close (fd);
15777 return 0;
15778 }
15779 _ACEOF
15780 if ac_fn_c_try_run "$LINENO"; then :
15781 ac_cv_func_mmap_fixed_mapped=yes
15782 else
15783 ac_cv_func_mmap_fixed_mapped=no
15784 fi
15785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15786 conftest.$ac_objext conftest.beam conftest.$ac_ext
15787 fi
15788
15789 fi
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15791 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15792 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15793
15794 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
15795
15796 fi
15797 rm -f conftest.mmap conftest.txt
15798
15799
15800 case "$host_os" in
15801 mingw* | os2*)
15802 RCPATH='c:\\\\Program Files\\\\chasen\\\\etc\\\\chasenrc'
15803 ;;
15804 *)
15805 # UNIX like-system
15806 RCPATH="$sysconfdir/chasenrc"
15807 ;;
15808 esac
15809
15810
15811 if test -n "${GCC}"; then
15812 CFLAGS="${CFLAGS} -Wall"
15813 fi
15814
15815
15816 ac_config_files="$ac_config_files Makefile chasen-config chasen/Makefile mkchadic/Makefile doc/Makefile lib/Makefile tests/Makefile chasen.spec"
15817
15818 ac_config_commands="$ac_config_commands default"
15819
15820 cat >confcache <<\_ACEOF
15821 # This file is a shell script that caches the results of configure
15822 # tests run on this system so they can be shared between configure
15823 # scripts and configure runs, see configure's option --config-cache.
15824 # It is not useful on other systems. If it contains results you don't
15825 # want to keep, you may remove or edit it.
15826 #
15827 # config.status only pays attention to the cache file if you give it
15828 # the --recheck option to rerun configure.
15829 #
15830 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15831 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15832 # following values.
15833
15834 _ACEOF
15835
15836 # The following way of writing the cache mishandles newlines in values,
15837 # but we know of no workaround that is simple, portable, and efficient.
15838 # So, we kill variables containing newlines.
15839 # Ultrix sh set writes to stderr and can't be redirected directly,
15840 # and sets the high bit in the cache file unless we assign to the vars.
15841 (
15842 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15843 eval ac_val=\$$ac_var
15844 case $ac_val in #(
15845 *${as_nl}*)
15846 case $ac_var in #(
15847 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15848 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15849 esac
15850 case $ac_var in #(
15851 _ | IFS | as_nl) ;; #(
15852 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15853 *) { eval $ac_var=; unset $ac_var;} ;;
15854 esac ;;
15855 esac
15856 done
15857
15858 (set) 2>&1 |
15859 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15860 *${as_nl}ac_space=\ *)
15861 # `set' does not quote correctly, so add quotes: double-quote
15862 # substitution turns \\\\ into \\, and sed turns \\ into \.
15863 sed -n \
15864 "s/'/'\\\\''/g;
15865 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15866 ;; #(
15867 *)
15868 # `set' quotes correctly as required by POSIX, so do not add quotes.
15869 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15870 ;;
15871 esac |
15872 sort
15873 ) |
15874 sed '
15875 /^ac_cv_env_/b end
15876 t clear
15877 :clear
15878 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15879 t end
15880 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15881 :end' >>confcache
15882 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15883 if test -w "$cache_file"; then
15884 test "x$cache_file" != "x/dev/null" &&
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15886 $as_echo "$as_me: updating cache $cache_file" >&6;}
15887 cat confcache >$cache_file
15888 else
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15890 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15891 fi
15892 fi
15893 rm -f confcache
15894
15895 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15896 # Let make expand exec_prefix.
15897 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15898
15899 DEFS=-DHAVE_CONFIG_H
15900
15901 ac_libobjs=
15902 ac_ltlibobjs=
15903 U=
15904 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15905 # 1. Remove the extension, and $U if already installed.
15906 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15907 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15908 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15909 # will be set to the directory where LIBOBJS objects are built.
15910 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15911 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15912 done
15913 LIBOBJS=$ac_libobjs
15914
15915 LTLIBOBJS=$ac_ltlibobjs
15916
15917
15918 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15919 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15921 fi
15922 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15923 as_fn_error $? "conditional \"AMDEP\" was never defined.
15924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15925 fi
15926 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15927 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15929 fi
15930 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15931 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15933 fi
15934 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15935 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15937 fi
15938
15939 : ${CONFIG_STATUS=./config.status}
15940 ac_write_fail=0
15941 ac_clean_files_save=$ac_clean_files
15942 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15944 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15945 as_write_fail=0
15946 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15947 #! $SHELL
15948 # Generated by $as_me.
15949 # Run this file to recreate the current configuration.
15950 # Compiler output produced by configure, useful for debugging
15951 # configure, is in config.log if it exists.
15952
15953 debug=false
15954 ac_cs_recheck=false
15955 ac_cs_silent=false
15956
15957 SHELL=\${CONFIG_SHELL-$SHELL}
15958 export SHELL
15959 _ASEOF
15960 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15961 ## -------------------- ##
15962 ## M4sh Initialization. ##
15963 ## -------------------- ##
15964
15965 # Be more Bourne compatible
15966 DUALCASE=1; export DUALCASE # for MKS sh
15967 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15968 emulate sh
15969 NULLCMD=:
15970 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15971 # is contrary to our usage. Disable this feature.
15972 alias -g '${1+"$@"}'='"$@"'
15973 setopt NO_GLOB_SUBST
15974 else
15975 case `(set -o) 2>/dev/null` in #(
15976 *posix*) :
15977 set -o posix ;; #(
15978 *) :
15979 ;;
15980 esac
15981 fi
15982
15983
15984 as_nl='
15985 '
15986 export as_nl
15987 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15988 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15989 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15990 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15991 # Prefer a ksh shell builtin over an external printf program on Solaris,
15992 # but without wasting forks for bash or zsh.
15993 if test -z "$BASH_VERSION$ZSH_VERSION" \
15994 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15995 as_echo='print -r --'
15996 as_echo_n='print -rn --'
15997 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15998 as_echo='printf %s\n'
15999 as_echo_n='printf %s'
16000 else
16001 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16002 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16003 as_echo_n='/usr/ucb/echo -n'
16004 else
16005 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16006 as_echo_n_body='eval
16007 arg=$1;
16008 case $arg in #(
16009 *"$as_nl"*)
16010 expr "X$arg" : "X\\(.*\\)$as_nl";
16011 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16012 esac;
16013 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16014 '
16015 export as_echo_n_body
16016 as_echo_n='sh -c $as_echo_n_body as_echo'
16017 fi
16018 export as_echo_body
16019 as_echo='sh -c $as_echo_body as_echo'
16020 fi
16021
16022 # The user is always right.
16023 if test "${PATH_SEPARATOR+set}" != set; then
16024 PATH_SEPARATOR=:
16025 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16026 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16027 PATH_SEPARATOR=';'
16028 }
16029 fi
16030
16031
16032 # IFS
16033 # We need space, tab and new line, in precisely that order. Quoting is
16034 # there to prevent editors from complaining about space-tab.
16035 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16036 # splitting by setting IFS to empty value.)
16037 IFS=" "" $as_nl"
16038
16039 # Find who we are. Look in the path if we contain no directory separator.
16040 case $0 in #((
16041 *[\\/]* ) as_myself=$0 ;;
16042 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16043 for as_dir in $PATH
16044 do
16045 IFS=$as_save_IFS
16046 test -z "$as_dir" && as_dir=.
16047 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16048 done
16049 IFS=$as_save_IFS
16050
16051 ;;
16052 esac
16053 # We did not find ourselves, most probably we were run as `sh COMMAND'
16054 # in which case we are not to be found in the path.
16055 if test "x$as_myself" = x; then
16056 as_myself=$0
16057 fi
16058 if test ! -f "$as_myself"; then
16059 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16060 exit 1
16061 fi
16062
16063 # Unset variables that we do not need and which cause bugs (e.g. in
16064 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16065 # suppresses any "Segmentation fault" message there. '((' could
16066 # trigger a bug in pdksh 5.2.14.
16067 for as_var in BASH_ENV ENV MAIL MAILPATH
16068 do eval test x\${$as_var+set} = xset \
16069 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16070 done
16071 PS1='$ '
16072 PS2='> '
16073 PS4='+ '
16074
16075 # NLS nuisances.
16076 LC_ALL=C
16077 export LC_ALL
16078 LANGUAGE=C
16079 export LANGUAGE
16080
16081 # CDPATH.
16082 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16083
16084
16085 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16086 # ----------------------------------------
16087 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16088 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16089 # script with STATUS, using 1 if that was 0.
16090 as_fn_error ()
16091 {
16092 as_status=$1; test $as_status -eq 0 && as_status=1
16093 if test "$4"; then
16094 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16095 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16096 fi
16097 $as_echo "$as_me: error: $2" >&2
16098 as_fn_exit $as_status
16099 } # as_fn_error
16100
16101
16102 # as_fn_set_status STATUS
16103 # -----------------------
16104 # Set $? to STATUS, without forking.
16105 as_fn_set_status ()
16106 {
16107 return $1
16108 } # as_fn_set_status
16109
16110 # as_fn_exit STATUS
16111 # -----------------
16112 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16113 as_fn_exit ()
16114 {
16115 set +e
16116 as_fn_set_status $1
16117 exit $1
16118 } # as_fn_exit
16119
16120 # as_fn_unset VAR
16121 # ---------------
16122 # Portably unset VAR.
16123 as_fn_unset ()
16124 {
16125 { eval $1=; unset $1;}
16126 }
16127 as_unset=as_fn_unset
16128 # as_fn_append VAR VALUE
16129 # ----------------------
16130 # Append the text in VALUE to the end of the definition contained in VAR. Take
16131 # advantage of any shell optimizations that allow amortized linear growth over
16132 # repeated appends, instead of the typical quadratic growth present in naive
16133 # implementations.
16134 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16135 eval 'as_fn_append ()
16136 {
16137 eval $1+=\$2
16138 }'
16139 else
16140 as_fn_append ()
16141 {
16142 eval $1=\$$1\$2
16143 }
16144 fi # as_fn_append
16145
16146 # as_fn_arith ARG...
16147 # ------------------
16148 # Perform arithmetic evaluation on the ARGs, and store the result in the
16149 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16150 # must be portable across $(()) and expr.
16151 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16152 eval 'as_fn_arith ()
16153 {
16154 as_val=$(( $* ))
16155 }'
16156 else
16157 as_fn_arith ()
16158 {
16159 as_val=`expr "$@" || test $? -eq 1`
16160 }
16161 fi # as_fn_arith
16162
16163
16164 if expr a : '\(a\)' >/dev/null 2>&1 &&
16165 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16166 as_expr=expr
16167 else
16168 as_expr=false
16169 fi
16170
16171 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16172 as_basename=basename
16173 else
16174 as_basename=false
16175 fi
16176
16177 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16178 as_dirname=dirname
16179 else
16180 as_dirname=false
16181 fi
16182
16183 as_me=`$as_basename -- "$0" ||
16184 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16185 X"$0" : 'X\(//\)$' \| \
16186 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16187 $as_echo X/"$0" |
16188 sed '/^.*\/\([^/][^/]*\)\/*$/{
16189 s//\1/
16190 q
16191 }
16192 /^X\/\(\/\/\)$/{
16193 s//\1/
16194 q
16195 }
16196 /^X\/\(\/\).*/{
16197 s//\1/
16198 q
16199 }
16200 s/.*/./; q'`
16201
16202 # Avoid depending upon Character Ranges.
16203 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16204 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16205 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16206 as_cr_digits='0123456789'
16207 as_cr_alnum=$as_cr_Letters$as_cr_digits
16208
16209 ECHO_C= ECHO_N= ECHO_T=
16210 case `echo -n x` in #(((((
16211 -n*)
16212 case `echo 'xy\c'` in
16213 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16214 xy) ECHO_C='\c';;
16215 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16216 ECHO_T=' ';;
16217 esac;;
16218 *)
16219 ECHO_N='-n';;
16220 esac
16221
16222 rm -f conf$$ conf$$.exe conf$$.file
16223 if test -d conf$$.dir; then
16224 rm -f conf$$.dir/conf$$.file
16225 else
16226 rm -f conf$$.dir
16227 mkdir conf$$.dir 2>/dev/null
16228 fi
16229 if (echo >conf$$.file) 2>/dev/null; then
16230 if ln -s conf$$.file conf$$ 2>/dev/null; then
16231 as_ln_s='ln -s'
16232 # ... but there are two gotchas:
16233 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16234 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16235 # In both cases, we have to default to `cp -p'.
16236 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16237 as_ln_s='cp -p'
16238 elif ln conf$$.file conf$$ 2>/dev/null; then
16239 as_ln_s=ln
16240 else
16241 as_ln_s='cp -p'
16242 fi
16243 else
16244 as_ln_s='cp -p'
16245 fi
16246 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16247 rmdir conf$$.dir 2>/dev/null
16248
16249
16250 # as_fn_mkdir_p
16251 # -------------
16252 # Create "$as_dir" as a directory, including parents if necessary.
16253 as_fn_mkdir_p ()
16254 {
16255
16256 case $as_dir in #(
16257 -*) as_dir=./$as_dir;;
16258 esac
16259 test -d "$as_dir" || eval $as_mkdir_p || {
16260 as_dirs=
16261 while :; do
16262 case $as_dir in #(
16263 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16264 *) as_qdir=$as_dir;;
16265 esac
16266 as_dirs="'$as_qdir' $as_dirs"
16267 as_dir=`$as_dirname -- "$as_dir" ||
16268 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16269 X"$as_dir" : 'X\(//\)[^/]' \| \
16270 X"$as_dir" : 'X\(//\)$' \| \
16271 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16272 $as_echo X"$as_dir" |
16273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16274 s//\1/
16275 q
16276 }
16277 /^X\(\/\/\)[^/].*/{
16278 s//\1/
16279 q
16280 }
16281 /^X\(\/\/\)$/{
16282 s//\1/
16283 q
16284 }
16285 /^X\(\/\).*/{
16286 s//\1/
16287 q
16288 }
16289 s/.*/./; q'`
16290 test -d "$as_dir" && break
16291 done
16292 test -z "$as_dirs" || eval "mkdir $as_dirs"
16293 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16294
16295
16296 } # as_fn_mkdir_p
16297 if mkdir -p . 2>/dev/null; then
16298 as_mkdir_p='mkdir -p "$as_dir"'
16299 else
16300 test -d ./-p && rmdir ./-p
16301 as_mkdir_p=false
16302 fi
16303
16304 if test -x / >/dev/null 2>&1; then
16305 as_test_x='test -x'
16306 else
16307 if ls -dL / >/dev/null 2>&1; then
16308 as_ls_L_option=L
16309 else
16310 as_ls_L_option=
16311 fi
16312 as_test_x='
16313 eval sh -c '\''
16314 if test -d "$1"; then
16315 test -d "$1/.";
16316 else
16317 case $1 in #(
16318 -*)set "./$1";;
16319 esac;
16320 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16321 ???[sx]*):;;*)false;;esac;fi
16322 '\'' sh
16323 '
16324 fi
16325 as_executable_p=$as_test_x
16326
16327 # Sed expression to map a string onto a valid CPP name.
16328 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16329
16330 # Sed expression to map a string onto a valid variable name.
16331 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16332
16333
16334 exec 6>&1
16335 ## ----------------------------------- ##
16336 ## Main body of $CONFIG_STATUS script. ##
16337 ## ----------------------------------- ##
16338 _ASEOF
16339 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16340
16341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16342 # Save the log message, to keep $0 and so on meaningful, and to
16343 # report actual input values of CONFIG_FILES etc. instead of their
16344 # values after options handling.
16345 ac_log="
16346 This file was extended by $as_me, which was
16347 generated by GNU Autoconf 2.67. Invocation command line was
16348
16349 CONFIG_FILES = $CONFIG_FILES
16350 CONFIG_HEADERS = $CONFIG_HEADERS
16351 CONFIG_LINKS = $CONFIG_LINKS
16352 CONFIG_COMMANDS = $CONFIG_COMMANDS
16353 $ $0 $@
16354
16355 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16356 "
16357
16358 _ACEOF
16359
16360 case $ac_config_files in *"
16361 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16362 esac
16363
16364 case $ac_config_headers in *"
16365 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16366 esac
16367
16368
16369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16370 # Files that config.status was made for.
16371 config_files="$ac_config_files"
16372 config_headers="$ac_config_headers"
16373 config_commands="$ac_config_commands"
16374
16375 _ACEOF
16376
16377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16378 ac_cs_usage="\
16379 \`$as_me' instantiates files and other configuration actions
16380 from templates according to the current configuration. Unless the files
16381 and actions are specified as TAGs, all are instantiated by default.
16382
16383 Usage: $0 [OPTION]... [TAG]...
16384
16385 -h, --help print this help, then exit
16386 -V, --version print version number and configuration settings, then exit
16387 --config print configuration, then exit
16388 -q, --quiet, --silent
16389 do not print progress messages
16390 -d, --debug don't remove temporary files
16391 --recheck update $as_me by reconfiguring in the same conditions
16392 --file=FILE[:TEMPLATE]
16393 instantiate the configuration file FILE
16394 --header=FILE[:TEMPLATE]
16395 instantiate the configuration header FILE
16396
16397 Configuration files:
16398 $config_files
16399
16400 Configuration headers:
16401 $config_headers
16402
16403 Configuration commands:
16404 $config_commands
16405
16406 Report bugs to the package provider."
16407
16408 _ACEOF
16409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16410 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16411 ac_cs_version="\\
16412 config.status
16413 configured by $0, generated by GNU Autoconf 2.67,
16414 with options \\"\$ac_cs_config\\"
16415
16416 Copyright (C) 2010 Free Software Foundation, Inc.
16417 This config.status script is free software; the Free Software Foundation
16418 gives unlimited permission to copy, distribute and modify it."
16419
16420 ac_pwd='$ac_pwd'
16421 srcdir='$srcdir'
16422 INSTALL='$INSTALL'
16423 AWK='$AWK'
16424 test -n "\$AWK" || AWK=awk
16425 _ACEOF
16426
16427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16428 # The default lists apply if the user does not specify any file.
16429 ac_need_defaults=:
16430 while test $# != 0
16431 do
16432 case $1 in
16433 --*=?*)
16434 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16435 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16436 ac_shift=:
16437 ;;
16438 --*=)
16439 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16440 ac_optarg=
16441 ac_shift=:
16442 ;;
16443 *)
16444 ac_option=$1
16445 ac_optarg=$2
16446 ac_shift=shift
16447 ;;
16448 esac
16449
16450 case $ac_option in
16451 # Handling of the options.
16452 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16453 ac_cs_recheck=: ;;
16454 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16455 $as_echo "$ac_cs_version"; exit ;;
16456 --config | --confi | --conf | --con | --co | --c )
16457 $as_echo "$ac_cs_config"; exit ;;
16458 --debug | --debu | --deb | --de | --d | -d )
16459 debug=: ;;
16460 --file | --fil | --fi | --f )
16461 $ac_shift
16462 case $ac_optarg in
16463 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16464 '') as_fn_error $? "missing file argument" ;;
16465 esac
16466 as_fn_append CONFIG_FILES " '$ac_optarg'"
16467 ac_need_defaults=false;;
16468 --header | --heade | --head | --hea )
16469 $ac_shift
16470 case $ac_optarg in
16471 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16472 esac
16473 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16474 ac_need_defaults=false;;
16475 --he | --h)
16476 # Conflict between --help and --header
16477 as_fn_error $? "ambiguous option: \`$1'
16478 Try \`$0 --help' for more information.";;
16479 --help | --hel | -h )
16480 $as_echo "$ac_cs_usage"; exit ;;
16481 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16482 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16483 ac_cs_silent=: ;;
16484
16485 # This is an error.
16486 -*) as_fn_error $? "unrecognized option: \`$1'
16487 Try \`$0 --help' for more information." ;;
16488
16489 *) as_fn_append ac_config_targets " $1"
16490 ac_need_defaults=false ;;
16491
16492 esac
16493 shift
16494 done
16495
16496 ac_configure_extra_args=
16497
16498 if $ac_cs_silent; then
16499 exec 6>/dev/null
16500 ac_configure_extra_args="$ac_configure_extra_args --silent"
16501 fi
16502
16503 _ACEOF
16504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16505 if \$ac_cs_recheck; then
16506 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16507 shift
16508 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16509 CONFIG_SHELL='$SHELL'
16510 export CONFIG_SHELL
16511 exec "\$@"
16512 fi
16513
16514 _ACEOF
16515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16516 exec 5>>config.log
16517 {
16518 echo
16519 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16520 ## Running $as_me. ##
16521 _ASBOX
16522 $as_echo "$ac_log"
16523 } >&5
16524
16525 _ACEOF
16526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16527 #
16528 # INIT-COMMANDS
16529 #
16530 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16531
16532
16533 # The HP-UX ksh and POSIX shell print the target directory to stdout
16534 # if CDPATH is set.
16535 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16536
16537 sed_quote_subst='$sed_quote_subst'
16538 double_quote_subst='$double_quote_subst'
16539 delay_variable_subst='$delay_variable_subst'
16540 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16541 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16542 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16543 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16544 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16545 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16546 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16547 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16548 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16549 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16550 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16551 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16552 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16553 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16554 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16555 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16556 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16557 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16558 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16559 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16560 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16561 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16562 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16563 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16564 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16565 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16566 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16567 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16568 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16569 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16570 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16571 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16572 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16573 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16574 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16575 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16576 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16577 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16578 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16579 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16580 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16581 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16582 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16583 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16584 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16585 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16586 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16587 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16588 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16589 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16590 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16591 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16592 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16593 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16594 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16595 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16596 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16597 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16598 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16599 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16600 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16601 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16602 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16603 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16604 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16605 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16606 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16607 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16608 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16609 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16610 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16611 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16612 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16613 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16614 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16615 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16616 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16617 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16618 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16619 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16620 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16621 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16622 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16623 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16624 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16625 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16626 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16627 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16628 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16629 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16630 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16631 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16632 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16633 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16634 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16635 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16636 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16637 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16638 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16639 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16640 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16641 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16642 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16643 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16644 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16645 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16646 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16647 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16648 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16649 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16650 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16651 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16652 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16653 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16654 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16655 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16656 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16657 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16658 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16659 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16660 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16661 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16662 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16663 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16664 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16665 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16666 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16667 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16668 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16669 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16670 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16671 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16672 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16673 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16674 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16675 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16676 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16677 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16678 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16679 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16680 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16681 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16682 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16683 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16684 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16685 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16686 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16687 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16688 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16689 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16690 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16691 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16692 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16693 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16694 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16695 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16696 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16697 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16698 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16699 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16700 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16701 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16702 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16703 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16704 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16705 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16706 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16707 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16708 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16709 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16710 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16711
16712 LTCC='$LTCC'
16713 LTCFLAGS='$LTCFLAGS'
16714 compiler='$compiler_DEFAULT'
16715
16716 # Quote evaled strings.
16717 for var in SED \
16718 GREP \
16719 EGREP \
16720 FGREP \
16721 LD \
16722 NM \
16723 LN_S \
16724 lt_SP2NL \
16725 lt_NL2SP \
16726 reload_flag \
16727 OBJDUMP \
16728 deplibs_check_method \
16729 file_magic_cmd \
16730 AR \
16731 AR_FLAGS \
16732 STRIP \
16733 RANLIB \
16734 CC \
16735 CFLAGS \
16736 compiler \
16737 lt_cv_sys_global_symbol_pipe \
16738 lt_cv_sys_global_symbol_to_cdecl \
16739 lt_cv_sys_global_symbol_to_c_name_address \
16740 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16741 SHELL \
16742 ECHO \
16743 lt_prog_compiler_no_builtin_flag \
16744 lt_prog_compiler_wl \
16745 lt_prog_compiler_pic \
16746 lt_prog_compiler_static \
16747 lt_cv_prog_compiler_c_o \
16748 need_locks \
16749 DSYMUTIL \
16750 NMEDIT \
16751 LIPO \
16752 OTOOL \
16753 OTOOL64 \
16754 shrext_cmds \
16755 export_dynamic_flag_spec \
16756 whole_archive_flag_spec \
16757 compiler_needs_object \
16758 with_gnu_ld \
16759 allow_undefined_flag \
16760 no_undefined_flag \
16761 hardcode_libdir_flag_spec \
16762 hardcode_libdir_flag_spec_ld \
16763 hardcode_libdir_separator \
16764 fix_srcfile_path \
16765 exclude_expsyms \
16766 include_expsyms \
16767 file_list_spec \
16768 variables_saved_for_relink \
16769 libname_spec \
16770 library_names_spec \
16771 soname_spec \
16772 finish_eval \
16773 old_striplib \
16774 striplib \
16775 compiler_lib_search_dirs \
16776 predep_objects \
16777 postdep_objects \
16778 predeps \
16779 postdeps \
16780 compiler_lib_search_path \
16781 LD_CXX \
16782 compiler_CXX \
16783 lt_prog_compiler_no_builtin_flag_CXX \
16784 lt_prog_compiler_wl_CXX \
16785 lt_prog_compiler_pic_CXX \
16786 lt_prog_compiler_static_CXX \
16787 lt_cv_prog_compiler_c_o_CXX \
16788 export_dynamic_flag_spec_CXX \
16789 whole_archive_flag_spec_CXX \
16790 compiler_needs_object_CXX \
16791 with_gnu_ld_CXX \
16792 allow_undefined_flag_CXX \
16793 no_undefined_flag_CXX \
16794 hardcode_libdir_flag_spec_CXX \
16795 hardcode_libdir_flag_spec_ld_CXX \
16796 hardcode_libdir_separator_CXX \
16797 fix_srcfile_path_CXX \
16798 exclude_expsyms_CXX \
16799 include_expsyms_CXX \
16800 file_list_spec_CXX \
16801 compiler_lib_search_dirs_CXX \
16802 predep_objects_CXX \
16803 postdep_objects_CXX \
16804 predeps_CXX \
16805 postdeps_CXX \
16806 compiler_lib_search_path_CXX; do
16807 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16808 *[\\\\\\\`\\"\\\$]*)
16809 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16810 ;;
16811 *)
16812 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16813 ;;
16814 esac
16815 done
16816
16817 # Double-quote double-evaled strings.
16818 for var in reload_cmds \
16819 old_postinstall_cmds \
16820 old_postuninstall_cmds \
16821 old_archive_cmds \
16822 extract_expsyms_cmds \
16823 old_archive_from_new_cmds \
16824 old_archive_from_expsyms_cmds \
16825 archive_cmds \
16826 archive_expsym_cmds \
16827 module_cmds \
16828 module_expsym_cmds \
16829 export_symbols_cmds \
16830 prelink_cmds \
16831 postinstall_cmds \
16832 postuninstall_cmds \
16833 finish_cmds \
16834 sys_lib_search_path_spec \
16835 sys_lib_dlsearch_path_spec \
16836 old_archive_cmds_CXX \
16837 old_archive_from_new_cmds_CXX \
16838 old_archive_from_expsyms_cmds_CXX \
16839 archive_cmds_CXX \
16840 archive_expsym_cmds_CXX \
16841 module_cmds_CXX \
16842 module_expsym_cmds_CXX \
16843 export_symbols_cmds_CXX \
16844 prelink_cmds_CXX; do
16845 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16846 *[\\\\\\\`\\"\\\$]*)
16847 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16848 ;;
16849 *)
16850 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16851 ;;
16852 esac
16853 done
16854
16855 # Fix-up fallback echo if it was mangled by the above quoting rules.
16856 case \$lt_ECHO in
16857 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16858 ;;
16859 esac
16860
16861 ac_aux_dir='$ac_aux_dir'
16862 xsi_shell='$xsi_shell'
16863 lt_shell_append='$lt_shell_append'
16864
16865 # See if we are running on zsh, and set the options which allow our
16866 # commands through without removal of \ escapes INIT.
16867 if test -n "\${ZSH_VERSION+set}" ; then
16868 setopt NO_GLOB_SUBST
16869 fi
16870
16871
16872 PACKAGE='$PACKAGE'
16873 VERSION='$VERSION'
16874 TIMESTAMP='$TIMESTAMP'
16875 RM='$RM'
16876 ofile='$ofile'
16877
16878
16879
16880
16881
16882
16883 _ACEOF
16884
16885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16886
16887 # Handling of arguments.
16888 for ac_config_target in $ac_config_targets
16889 do
16890 case $ac_config_target in
16891 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16892 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16893 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16894 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16895 "chasen-config") CONFIG_FILES="$CONFIG_FILES chasen-config" ;;
16896 "chasen/Makefile") CONFIG_FILES="$CONFIG_FILES chasen/Makefile" ;;
16897 "mkchadic/Makefile") CONFIG_FILES="$CONFIG_FILES mkchadic/Makefile" ;;
16898 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16899 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
16900 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16901 "chasen.spec") CONFIG_FILES="$CONFIG_FILES chasen.spec" ;;
16902 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16903
16904 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16905 esac
16906 done
16907
16908
16909 # If the user did not use the arguments to specify the items to instantiate,
16910 # then the envvar interface is used. Set only those that are not.
16911 # We use the long form for the default assignment because of an extremely
16912 # bizarre bug on SunOS 4.1.3.
16913 if $ac_need_defaults; then
16914 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16915 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16916 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16917 fi
16918
16919 # Have a temporary directory for convenience. Make it in the build tree
16920 # simply because there is no reason against having it here, and in addition,
16921 # creating and moving files from /tmp can sometimes cause problems.
16922 # Hook for its removal unless debugging.
16923 # Note that there is a small window in which the directory will not be cleaned:
16924 # after its creation but before its name has been assigned to `$tmp'.
16925 $debug ||
16926 {
16927 tmp=
16928 trap 'exit_status=$?
16929 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16930 ' 0
16931 trap 'as_fn_exit 1' 1 2 13 15
16932 }
16933 # Create a (secure) tmp directory for tmp files.
16934
16935 {
16936 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16937 test -n "$tmp" && test -d "$tmp"
16938 } ||
16939 {
16940 tmp=./conf$$-$RANDOM
16941 (umask 077 && mkdir "$tmp")
16942 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16943
16944 # Set up the scripts for CONFIG_FILES section.
16945 # No need to generate them if there are no CONFIG_FILES.
16946 # This happens for instance with `./config.status config.h'.
16947 if test -n "$CONFIG_FILES"; then
16948
16949
16950 ac_cr=`echo X | tr X '\015'`
16951 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16952 # But we know of no other shell where ac_cr would be empty at this
16953 # point, so we can use a bashism as a fallback.
16954 if test "x$ac_cr" = x; then
16955 eval ac_cr=\$\'\\r\'
16956 fi
16957 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16958 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16959 ac_cs_awk_cr='\\r'
16960 else
16961 ac_cs_awk_cr=$ac_cr
16962 fi
16963
16964 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16965 _ACEOF
16966
16967
16968 {
16969 echo "cat >conf$$subs.awk <<_ACEOF" &&
16970 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16971 echo "_ACEOF"
16972 } >conf$$subs.sh ||
16973 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16974 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16975 ac_delim='%!_!# '
16976 for ac_last_try in false false false false false :; do
16977 . ./conf$$subs.sh ||
16978 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16979
16980 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16981 if test $ac_delim_n = $ac_delim_num; then
16982 break
16983 elif $ac_last_try; then
16984 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16985 else
16986 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16987 fi
16988 done
16989 rm -f conf$$subs.sh
16990
16991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16992 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16993 _ACEOF
16994 sed -n '
16995 h
16996 s/^/S["/; s/!.*/"]=/
16997 p
16998 g
16999 s/^[^!]*!//
17000 :repl
17001 t repl
17002 s/'"$ac_delim"'$//
17003 t delim
17004 :nl
17005 h
17006 s/\(.\{148\}\)..*/\1/
17007 t more1
17008 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17009 p
17010 n
17011 b repl
17012 :more1
17013 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17014 p
17015 g
17016 s/.\{148\}//
17017 t nl
17018 :delim
17019 h
17020 s/\(.\{148\}\)..*/\1/
17021 t more2
17022 s/["\\]/\\&/g; s/^/"/; s/$/"/
17023 p
17024 b
17025 :more2
17026 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17027 p
17028 g
17029 s/.\{148\}//
17030 t delim
17031 ' <conf$$subs.awk | sed '
17032 /^[^""]/{
17033 N
17034 s/\n//
17035 }
17036 ' >>$CONFIG_STATUS || ac_write_fail=1
17037 rm -f conf$$subs.awk
17038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17039 _ACAWK
17040 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17041 for (key in S) S_is_set[key] = 1
17042 FS = ""
17043
17044 }
17045 {
17046 line = $ 0
17047 nfields = split(line, field, "@")
17048 substed = 0
17049 len = length(field[1])
17050 for (i = 2; i < nfields; i++) {
17051 key = field[i]
17052 keylen = length(key)
17053 if (S_is_set[key]) {
17054 value = S[key]
17055 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17056 len += length(value) + length(field[++i])
17057 substed = 1
17058 } else
17059 len += 1 + keylen
17060 }
17061
17062 print line
17063 }
17064
17065 _ACAWK
17066 _ACEOF
17067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17068 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17069 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17070 else
17071 cat
17072 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17073 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17074 _ACEOF
17075
17076 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17077 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17078 # trailing colons and then remove the whole line if VPATH becomes empty
17079 # (actually we leave an empty line to preserve line numbers).
17080 if test "x$srcdir" = x.; then
17081 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17082 h
17083 s///
17084 s/^/:/
17085 s/[ ]*$/:/
17086 s/:\$(srcdir):/:/g
17087 s/:\${srcdir}:/:/g
17088 s/:@srcdir@:/:/g
17089 s/^:*//
17090 s/:*$//
17091 x
17092 s/\(=[ ]*\).*/\1/
17093 G
17094 s/\n//
17095 s/^[^=]*=[ ]*$//
17096 }'
17097 fi
17098
17099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17100 fi # test -n "$CONFIG_FILES"
17101
17102 # Set up the scripts for CONFIG_HEADERS section.
17103 # No need to generate them if there are no CONFIG_HEADERS.
17104 # This happens for instance with `./config.status Makefile'.
17105 if test -n "$CONFIG_HEADERS"; then
17106 cat >"$tmp/defines.awk" <<\_ACAWK ||
17107 BEGIN {
17108 _ACEOF
17109
17110 # Transform confdefs.h into an awk script `defines.awk', embedded as
17111 # here-document in config.status, that substitutes the proper values into
17112 # config.h.in to produce config.h.
17113
17114 # Create a delimiter string that does not exist in confdefs.h, to ease
17115 # handling of long lines.
17116 ac_delim='%!_!# '
17117 for ac_last_try in false false :; do
17118 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17119 if test -z "$ac_t"; then
17120 break
17121 elif $ac_last_try; then
17122 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17123 else
17124 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17125 fi
17126 done
17127
17128 # For the awk script, D is an array of macro values keyed by name,
17129 # likewise P contains macro parameters if any. Preserve backslash
17130 # newline sequences.
17131
17132 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17133 sed -n '
17134 s/.\{148\}/&'"$ac_delim"'/g
17135 t rset
17136 :rset
17137 s/^[ ]*#[ ]*define[ ][ ]*/ /
17138 t def
17139 d
17140 :def
17141 s/\\$//
17142 t bsnl
17143 s/["\\]/\\&/g
17144 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17145 D["\1"]=" \3"/p
17146 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17147 d
17148 :bsnl
17149 s/["\\]/\\&/g
17150 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17151 D["\1"]=" \3\\\\\\n"\\/p
17152 t cont
17153 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17154 t cont
17155 d
17156 :cont
17157 n
17158 s/.\{148\}/&'"$ac_delim"'/g
17159 t clear
17160 :clear
17161 s/\\$//
17162 t bsnlc
17163 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17164 d
17165 :bsnlc
17166 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17167 b cont
17168 ' <confdefs.h | sed '
17169 s/'"$ac_delim"'/"\\\
17170 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17171
17172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17173 for (key in D) D_is_set[key] = 1
17174 FS = ""
17175 }
17176 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17177 line = \$ 0
17178 split(line, arg, " ")
17179 if (arg[1] == "#") {
17180 defundef = arg[2]
17181 mac1 = arg[3]
17182 } else {
17183 defundef = substr(arg[1], 2)
17184 mac1 = arg[2]
17185 }
17186 split(mac1, mac2, "(") #)
17187 macro = mac2[1]
17188 prefix = substr(line, 1, index(line, defundef) - 1)
17189 if (D_is_set[macro]) {
17190 # Preserve the white space surrounding the "#".
17191 print prefix "define", macro P[macro] D[macro]
17192 next
17193 } else {
17194 # Replace #undef with comments. This is necessary, for example,
17195 # in the case of _POSIX_SOURCE, which is predefined and required
17196 # on some systems where configure will not decide to define it.
17197 if (defundef == "undef") {
17198 print "/*", prefix defundef, macro, "*/"
17199 next
17200 }
17201 }
17202 }
17203 { print }
17204 _ACAWK
17205 _ACEOF
17206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17207 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17208 fi # test -n "$CONFIG_HEADERS"
17209
17210
17211 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17212 shift
17213 for ac_tag
17214 do
17215 case $ac_tag in
17216 :[FHLC]) ac_mode=$ac_tag; continue;;
17217 esac
17218 case $ac_mode$ac_tag in
17219 :[FHL]*:*);;
17220 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
17221 :[FH]-) ac_tag=-:-;;
17222 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17223 esac
17224 ac_save_IFS=$IFS
17225 IFS=:
17226 set x $ac_tag
17227 IFS=$ac_save_IFS
17228 shift
17229 ac_file=$1
17230 shift
17231
17232 case $ac_mode in
17233 :L) ac_source=$1;;
17234 :[FH])
17235 ac_file_inputs=
17236 for ac_f
17237 do
17238 case $ac_f in
17239 -) ac_f="$tmp/stdin";;
17240 *) # Look for the file first in the build tree, then in the source tree
17241 # (if the path is not absolute). The absolute path cannot be DOS-style,
17242 # because $ac_f cannot contain `:'.
17243 test -f "$ac_f" ||
17244 case $ac_f in
17245 [\\/$]*) false;;
17246 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17247 esac ||
17248 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
17249 esac
17250 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17251 as_fn_append ac_file_inputs " '$ac_f'"
17252 done
17253
17254 # Let's still pretend it is `configure' which instantiates (i.e., don't
17255 # use $as_me), people would be surprised to read:
17256 # /* config.h. Generated by config.status. */
17257 configure_input='Generated from '`
17258 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17259 `' by configure.'
17260 if test x"$ac_file" != x-; then
17261 configure_input="$ac_file. $configure_input"
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17263 $as_echo "$as_me: creating $ac_file" >&6;}
17264 fi
17265 # Neutralize special characters interpreted by sed in replacement strings.
17266 case $configure_input in #(
17267 *\&* | *\|* | *\\* )
17268 ac_sed_conf_input=`$as_echo "$configure_input" |
17269 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17270 *) ac_sed_conf_input=$configure_input;;
17271 esac
17272
17273 case $ac_tag in
17274 *:-:* | *:-) cat >"$tmp/stdin" \
17275 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17276 esac
17277 ;;
17278 esac
17279
17280 ac_dir=`$as_dirname -- "$ac_file" ||
17281 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17282 X"$ac_file" : 'X\(//\)[^/]' \| \
17283 X"$ac_file" : 'X\(//\)$' \| \
17284 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17285 $as_echo X"$ac_file" |
17286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17287 s//\1/
17288 q
17289 }
17290 /^X\(\/\/\)[^/].*/{
17291 s//\1/
17292 q
17293 }
17294 /^X\(\/\/\)$/{
17295 s//\1/
17296 q
17297 }
17298 /^X\(\/\).*/{
17299 s//\1/
17300 q
17301 }
17302 s/.*/./; q'`
17303 as_dir="$ac_dir"; as_fn_mkdir_p
17304 ac_builddir=.
17305
17306 case "$ac_dir" in
17307 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17308 *)
17309 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17310 # A ".." for each directory in $ac_dir_suffix.
17311 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17312 case $ac_top_builddir_sub in
17313 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17314 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17315 esac ;;
17316 esac
17317 ac_abs_top_builddir=$ac_pwd
17318 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17319 # for backward compatibility:
17320 ac_top_builddir=$ac_top_build_prefix
17321
17322 case $srcdir in
17323 .) # We are building in place.
17324 ac_srcdir=.
17325 ac_top_srcdir=$ac_top_builddir_sub
17326 ac_abs_top_srcdir=$ac_pwd ;;
17327 [\\/]* | ?:[\\/]* ) # Absolute name.
17328 ac_srcdir=$srcdir$ac_dir_suffix;
17329 ac_top_srcdir=$srcdir
17330 ac_abs_top_srcdir=$srcdir ;;
17331 *) # Relative name.
17332 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17333 ac_top_srcdir=$ac_top_build_prefix$srcdir
17334 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17335 esac
17336 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17337
17338
17339 case $ac_mode in
17340 :F)
17341 #
17342 # CONFIG_FILE
17343 #
17344
17345 case $INSTALL in
17346 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17347 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17348 esac
17349 _ACEOF
17350
17351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17352 # If the template does not know about datarootdir, expand it.
17353 # FIXME: This hack should be removed a few years after 2.60.
17354 ac_datarootdir_hack=; ac_datarootdir_seen=
17355 ac_sed_dataroot='
17356 /datarootdir/ {
17357 p
17358 q
17359 }
17360 /@datadir@/p
17361 /@docdir@/p
17362 /@infodir@/p
17363 /@localedir@/p
17364 /@mandir@/p'
17365 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17366 *datarootdir*) ac_datarootdir_seen=yes;;
17367 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17369 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17370 _ACEOF
17371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17372 ac_datarootdir_hack='
17373 s&@datadir@&$datadir&g
17374 s&@docdir@&$docdir&g
17375 s&@infodir@&$infodir&g
17376 s&@localedir@&$localedir&g
17377 s&@mandir@&$mandir&g
17378 s&\\\${datarootdir}&$datarootdir&g' ;;
17379 esac
17380 _ACEOF
17381
17382 # Neutralize VPATH when `$srcdir' = `.'.
17383 # Shell code in configure.ac might set extrasub.
17384 # FIXME: do we really want to maintain this feature?
17385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17386 ac_sed_extra="$ac_vpsub
17387 $extrasub
17388 _ACEOF
17389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17390 :t
17391 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17392 s|@configure_input@|$ac_sed_conf_input|;t t
17393 s&@top_builddir@&$ac_top_builddir_sub&;t t
17394 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17395 s&@srcdir@&$ac_srcdir&;t t
17396 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17397 s&@top_srcdir@&$ac_top_srcdir&;t t
17398 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17399 s&@builddir@&$ac_builddir&;t t
17400 s&@abs_builddir@&$ac_abs_builddir&;t t
17401 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17402 s&@INSTALL@&$ac_INSTALL&;t t
17403 $ac_datarootdir_hack
17404 "
17405 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17406 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17407
17408 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17409 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17410 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17412 which seems to be undefined. Please make sure it is defined" >&5
17413 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17414 which seems to be undefined. Please make sure it is defined" >&2;}
17415
17416 rm -f "$tmp/stdin"
17417 case $ac_file in
17418 -) cat "$tmp/out" && rm -f "$tmp/out";;
17419 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17420 esac \
17421 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17422 ;;
17423 :H)
17424 #
17425 # CONFIG_HEADER
17426 #
17427 if test x"$ac_file" != x-; then
17428 {
17429 $as_echo "/* $configure_input */" \
17430 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17431 } >"$tmp/config.h" \
17432 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17433 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17435 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17436 else
17437 rm -f "$ac_file"
17438 mv "$tmp/config.h" "$ac_file" \
17439 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17440 fi
17441 else
17442 $as_echo "/* $configure_input */" \
17443 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17444 || as_fn_error $? "could not create -" "$LINENO" 5
17445 fi
17446 # Compute "$ac_file"'s index in $config_headers.
17447 _am_stamp_count=1
17448 for _am_header in $config_headers :; do
17449 case $_am_header in
17450 "$ac_file" | "$ac_file":* )
17451 break ;;
17452 * )
17453 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17454 esac
17455 done
17456 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
17457 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17458 X"$ac_file" : 'X\(//\)[^/]' \| \
17459 X"$ac_file" : 'X\(//\)$' \| \
17460 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17461 $as_echo X"$ac_file" |
17462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17463 s//\1/
17464 q
17465 }
17466 /^X\(\/\/\)[^/].*/{
17467 s//\1/
17468 q
17469 }
17470 /^X\(\/\/\)$/{
17471 s//\1/
17472 q
17473 }
17474 /^X\(\/\).*/{
17475 s//\1/
17476 q
17477 }
17478 s/.*/./; q'`/stamp-h$_am_stamp_count
17479 ;;
17480
17481 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17482 $as_echo "$as_me: executing $ac_file commands" >&6;}
17483 ;;
17484 esac
17485
17486
17487 case $ac_file$ac_mode in
17488 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17489 # Strip MF so we end up with the name of the file.
17490 mf=`echo "$mf" | sed -e 's/:.*$//'`
17491 # Check whether this is an Automake generated Makefile or not.
17492 # We used to match only the files named `Makefile.in', but
17493 # some people rename them; so instead we look at the file content.
17494 # Grep'ing the first line is not enough: some people post-process
17495 # each Makefile.in and add a new line on top of each file to say so.
17496 # So let's grep whole file.
17497 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17498 dirpart=`$as_dirname -- "$mf" ||
17499 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17500 X"$mf" : 'X\(//\)[^/]' \| \
17501 X"$mf" : 'X\(//\)$' \| \
17502 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17503 $as_echo X"$mf" |
17504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17505 s//\1/
17506 q
17507 }
17508 /^X\(\/\/\)[^/].*/{
17509 s//\1/
17510 q
17511 }
17512 /^X\(\/\/\)$/{
17513 s//\1/
17514 q
17515 }
17516 /^X\(\/\).*/{
17517 s//\1/
17518 q
17519 }
17520 s/.*/./; q'`
17521 else
17522 continue
17523 fi
17524 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
17525 # Extract the definition of DEP_FILES from the Makefile without
17526 # running `make'.
17527 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
17528 test -z "$DEPDIR" && continue
17529 # When using ansi2knr, U may be empty or an underscore; expand it
17530 U=`sed -n -e '/^U = / s///p' < "$mf"`
17531 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
17532 # We invoke sed twice because it is the simplest approach to
17533 # changing $(DEPDIR) to its actual value in the expansion.
17534 for file in `sed -n -e '
17535 /^DEP_FILES = .*\\\\$/ {
17536 s/^DEP_FILES = //
17537 :loop
17538 s/\\\\$//
17539 p
17540 n
17541 /\\\\$/ b loop
17542 p
17543 }
17544 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
17545 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17546 # Make sure the directory exists.
17547 test -f "$dirpart/$file" && continue
17548 fdir=`$as_dirname -- "$file" ||
17549 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17550 X"$file" : 'X\(//\)[^/]' \| \
17551 X"$file" : 'X\(//\)$' \| \
17552 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17553 $as_echo X"$file" |
17554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17555 s//\1/
17556 q
17557 }
17558 /^X\(\/\/\)[^/].*/{
17559 s//\1/
17560 q
17561 }
17562 /^X\(\/\/\)$/{
17563 s//\1/
17564 q
17565 }
17566 /^X\(\/\).*/{
17567 s//\1/
17568 q
17569 }
17570 s/.*/./; q'`
17571 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17572 # echo "creating $dirpart/$file"
17573 echo '# dummy' > "$dirpart/$file"
17574 done
17575 done
17576 ;;
17577 "libtool":C)
17578
17579 # See if we are running on zsh, and set the options which allow our
17580 # commands through without removal of \ escapes.
17581 if test -n "${ZSH_VERSION+set}" ; then
17582 setopt NO_GLOB_SUBST
17583 fi
17584
17585 cfgfile="${ofile}T"
17586 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17587 $RM "$cfgfile"
17588
17589 cat <<_LT_EOF >> "$cfgfile"
17590 #! $SHELL
17591
17592 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17593 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17594 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17595 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17596 #
17597 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17598 # 2006, 2007, 2008 Free Software Foundation, Inc.
17599 # Written by Gordon Matzigkeit, 1996
17600 #
17601 # This file is part of GNU Libtool.
17602 #
17603 # GNU Libtool is free software; you can redistribute it and/or
17604 # modify it under the terms of the GNU General Public License as
17605 # published by the Free Software Foundation; either version 2 of
17606 # the License, or (at your option) any later version.
17607 #
17608 # As a special exception to the GNU General Public License,
17609 # if you distribute this file as part of a program or library that
17610 # is built using GNU Libtool, you may include this file under the
17611 # same distribution terms that you use for the rest of that program.
17612 #
17613 # GNU Libtool is distributed in the hope that it will be useful,
17614 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17615 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17616 # GNU General Public License for more details.
17617 #
17618 # You should have received a copy of the GNU General Public License
17619 # along with GNU Libtool; see the file COPYING. If not, a copy
17620 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17621 # obtained by writing to the Free Software Foundation, Inc.,
17622 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17623
17624
17625 # The names of the tagged configurations supported by this script.
17626 available_tags="CXX "
17627
17628 # ### BEGIN LIBTOOL CONFIG
17629
17630 # Which release of libtool.m4 was used?
17631 macro_version=$macro_version
17632 macro_revision=$macro_revision
17633
17634 # Whether or not to build shared libraries.
17635 build_libtool_libs=$enable_shared
17636
17637 # Whether or not to build static libraries.
17638 build_old_libs=$enable_static
17639
17640 # What type of objects to build.
17641 pic_mode=$pic_mode
17642
17643 # Whether or not to optimize for fast installation.
17644 fast_install=$enable_fast_install
17645
17646 # The host system.
17647 host_alias=$host_alias
17648 host=$host
17649 host_os=$host_os
17650
17651 # The build system.
17652 build_alias=$build_alias
17653 build=$build
17654 build_os=$build_os
17655
17656 # A sed program that does not truncate output.
17657 SED=$lt_SED
17658
17659 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17660 Xsed="\$SED -e 1s/^X//"
17661
17662 # A grep program that handles long lines.
17663 GREP=$lt_GREP
17664
17665 # An ERE matcher.
17666 EGREP=$lt_EGREP
17667
17668 # A literal string matcher.
17669 FGREP=$lt_FGREP
17670
17671 # A BSD- or MS-compatible name lister.
17672 NM=$lt_NM
17673
17674 # Whether we need soft or hard links.
17675 LN_S=$lt_LN_S
17676
17677 # What is the maximum length of a command?
17678 max_cmd_len=$max_cmd_len
17679
17680 # Object file suffix (normally "o").
17681 objext=$ac_objext
17682
17683 # Executable file suffix (normally "").
17684 exeext=$exeext
17685
17686 # whether the shell understands "unset".
17687 lt_unset=$lt_unset
17688
17689 # turn spaces into newlines.
17690 SP2NL=$lt_lt_SP2NL
17691
17692 # turn newlines into spaces.
17693 NL2SP=$lt_lt_NL2SP
17694
17695 # How to create reloadable object files.
17696 reload_flag=$lt_reload_flag
17697 reload_cmds=$lt_reload_cmds
17698
17699 # An object symbol dumper.
17700 OBJDUMP=$lt_OBJDUMP
17701
17702 # Method to check whether dependent libraries are shared objects.
17703 deplibs_check_method=$lt_deplibs_check_method
17704
17705 # Command to use when deplibs_check_method == "file_magic".
17706 file_magic_cmd=$lt_file_magic_cmd
17707
17708 # The archiver.
17709 AR=$lt_AR
17710 AR_FLAGS=$lt_AR_FLAGS
17711
17712 # A symbol stripping program.
17713 STRIP=$lt_STRIP
17714
17715 # Commands used to install an old-style archive.
17716 RANLIB=$lt_RANLIB
17717 old_postinstall_cmds=$lt_old_postinstall_cmds
17718 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17719
17720 # A C compiler.
17721 LTCC=$lt_CC
17722
17723 # LTCC compiler flags.
17724 LTCFLAGS=$lt_CFLAGS
17725
17726 # Take the output of nm and produce a listing of raw symbols and C names.
17727 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17728
17729 # Transform the output of nm in a proper C declaration.
17730 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17731
17732 # Transform the output of nm in a C name address pair.
17733 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17734
17735 # Transform the output of nm in a C name address pair when lib prefix is needed.
17736 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17737
17738 # The name of the directory that contains temporary libtool files.
17739 objdir=$objdir
17740
17741 # Shell to use when invoking shell scripts.
17742 SHELL=$lt_SHELL
17743
17744 # An echo program that does not interpret backslashes.
17745 ECHO=$lt_ECHO
17746
17747 # Used to examine libraries when file_magic_cmd begins with "file".
17748 MAGIC_CMD=$MAGIC_CMD
17749
17750 # Must we lock files when doing compilation?
17751 need_locks=$lt_need_locks
17752
17753 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17754 DSYMUTIL=$lt_DSYMUTIL
17755
17756 # Tool to change global to local symbols on Mac OS X.
17757 NMEDIT=$lt_NMEDIT
17758
17759 # Tool to manipulate fat objects and archives on Mac OS X.
17760 LIPO=$lt_LIPO
17761
17762 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17763 OTOOL=$lt_OTOOL
17764
17765 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17766 OTOOL64=$lt_OTOOL64
17767
17768 # Old archive suffix (normally "a").
17769 libext=$libext
17770
17771 # Shared library suffix (normally ".so").
17772 shrext_cmds=$lt_shrext_cmds
17773
17774 # The commands to extract the exported symbol list from a shared archive.
17775 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17776
17777 # Variables whose values should be saved in libtool wrapper scripts and
17778 # restored at link time.
17779 variables_saved_for_relink=$lt_variables_saved_for_relink
17780
17781 # Do we need the "lib" prefix for modules?
17782 need_lib_prefix=$need_lib_prefix
17783
17784 # Do we need a version for libraries?
17785 need_version=$need_version
17786
17787 # Library versioning type.
17788 version_type=$version_type
17789
17790 # Shared library runtime path variable.
17791 runpath_var=$runpath_var
17792
17793 # Shared library path variable.
17794 shlibpath_var=$shlibpath_var
17795
17796 # Is shlibpath searched before the hard-coded library search path?
17797 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17798
17799 # Format of library name prefix.
17800 libname_spec=$lt_libname_spec
17801
17802 # List of archive names. First name is the real one, the rest are links.
17803 # The last name is the one that the linker finds with -lNAME
17804 library_names_spec=$lt_library_names_spec
17805
17806 # The coded name of the library, if different from the real name.
17807 soname_spec=$lt_soname_spec
17808
17809 # Command to use after installation of a shared archive.
17810 postinstall_cmds=$lt_postinstall_cmds
17811
17812 # Command to use after uninstallation of a shared archive.
17813 postuninstall_cmds=$lt_postuninstall_cmds
17814
17815 # Commands used to finish a libtool library installation in a directory.
17816 finish_cmds=$lt_finish_cmds
17817
17818 # As "finish_cmds", except a single script fragment to be evaled but
17819 # not shown.
17820 finish_eval=$lt_finish_eval
17821
17822 # Whether we should hardcode library paths into libraries.
17823 hardcode_into_libs=$hardcode_into_libs
17824
17825 # Compile-time system search path for libraries.
17826 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17827
17828 # Run-time system search path for libraries.
17829 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17830
17831 # Whether dlopen is supported.
17832 dlopen_support=$enable_dlopen
17833
17834 # Whether dlopen of programs is supported.
17835 dlopen_self=$enable_dlopen_self
17836
17837 # Whether dlopen of statically linked programs is supported.
17838 dlopen_self_static=$enable_dlopen_self_static
17839
17840 # Commands to strip libraries.
17841 old_striplib=$lt_old_striplib
17842 striplib=$lt_striplib
17843
17844
17845 # The linker used to build libraries.
17846 LD=$lt_LD
17847
17848 # Commands used to build an old-style archive.
17849 old_archive_cmds=$lt_old_archive_cmds
17850
17851 # A language specific compiler.
17852 CC=$lt_compiler
17853
17854 # Is the compiler the GNU compiler?
17855 with_gcc=$GCC
17856
17857 # Compiler flag to turn off builtin functions.
17858 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17859
17860 # How to pass a linker flag through the compiler.
17861 wl=$lt_lt_prog_compiler_wl
17862
17863 # Additional compiler flags for building library objects.
17864 pic_flag=$lt_lt_prog_compiler_pic
17865
17866 # Compiler flag to prevent dynamic linking.
17867 link_static_flag=$lt_lt_prog_compiler_static
17868
17869 # Does compiler simultaneously support -c and -o options?
17870 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17871
17872 # Whether or not to add -lc for building shared libraries.
17873 build_libtool_need_lc=$archive_cmds_need_lc
17874
17875 # Whether or not to disallow shared libs when runtime libs are static.
17876 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17877
17878 # Compiler flag to allow reflexive dlopens.
17879 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17880
17881 # Compiler flag to generate shared objects directly from archives.
17882 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17883
17884 # Whether the compiler copes with passing no objects directly.
17885 compiler_needs_object=$lt_compiler_needs_object
17886
17887 # Create an old-style archive from a shared archive.
17888 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17889
17890 # Create a temporary old-style archive to link instead of a shared archive.
17891 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17892
17893 # Commands used to build a shared archive.
17894 archive_cmds=$lt_archive_cmds
17895 archive_expsym_cmds=$lt_archive_expsym_cmds
17896
17897 # Commands used to build a loadable module if different from building
17898 # a shared archive.
17899 module_cmds=$lt_module_cmds
17900 module_expsym_cmds=$lt_module_expsym_cmds
17901
17902 # Whether we are building with GNU ld or not.
17903 with_gnu_ld=$lt_with_gnu_ld
17904
17905 # Flag that allows shared libraries with undefined symbols to be built.
17906 allow_undefined_flag=$lt_allow_undefined_flag
17907
17908 # Flag that enforces no undefined symbols.
17909 no_undefined_flag=$lt_no_undefined_flag
17910
17911 # Flag to hardcode \$libdir into a binary during linking.
17912 # This must work even if \$libdir does not exist
17913 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17914
17915 # If ld is used when linking, flag to hardcode \$libdir into a binary
17916 # during linking. This must work even if \$libdir does not exist.
17917 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17918
17919 # Whether we need a single "-rpath" flag with a separated argument.
17920 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17921
17922 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17923 # DIR into the resulting binary.
17924 hardcode_direct=$hardcode_direct
17925
17926 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17927 # DIR into the resulting binary and the resulting library dependency is
17928 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17929 # library is relocated.
17930 hardcode_direct_absolute=$hardcode_direct_absolute
17931
17932 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17933 # into the resulting binary.
17934 hardcode_minus_L=$hardcode_minus_L
17935
17936 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17937 # into the resulting binary.
17938 hardcode_shlibpath_var=$hardcode_shlibpath_var
17939
17940 # Set to "yes" if building a shared library automatically hardcodes DIR
17941 # into the library and all subsequent libraries and executables linked
17942 # against it.
17943 hardcode_automatic=$hardcode_automatic
17944
17945 # Set to yes if linker adds runtime paths of dependent libraries
17946 # to runtime path list.
17947 inherit_rpath=$inherit_rpath
17948
17949 # Whether libtool must link a program against all its dependency libraries.
17950 link_all_deplibs=$link_all_deplibs
17951
17952 # Fix the shell variable \$srcfile for the compiler.
17953 fix_srcfile_path=$lt_fix_srcfile_path
17954
17955 # Set to "yes" if exported symbols are required.
17956 always_export_symbols=$always_export_symbols
17957
17958 # The commands to list exported symbols.
17959 export_symbols_cmds=$lt_export_symbols_cmds
17960
17961 # Symbols that should not be listed in the preloaded symbols.
17962 exclude_expsyms=$lt_exclude_expsyms
17963
17964 # Symbols that must always be exported.
17965 include_expsyms=$lt_include_expsyms
17966
17967 # Commands necessary for linking programs (against libraries) with templates.
17968 prelink_cmds=$lt_prelink_cmds
17969
17970 # Specify filename containing input files.
17971 file_list_spec=$lt_file_list_spec
17972
17973 # How to hardcode a shared library path into an executable.
17974 hardcode_action=$hardcode_action
17975
17976 # The directories searched by this compiler when creating a shared library.
17977 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17978
17979 # Dependencies to place before and after the objects being linked to
17980 # create a shared library.
17981 predep_objects=$lt_predep_objects
17982 postdep_objects=$lt_postdep_objects
17983 predeps=$lt_predeps
17984 postdeps=$lt_postdeps
17985
17986 # The library search path used internally by the compiler when linking
17987 # a shared library.
17988 compiler_lib_search_path=$lt_compiler_lib_search_path
17989
17990 # ### END LIBTOOL CONFIG
17991
17992 _LT_EOF
17993
17994 case $host_os in
17995 aix3*)
17996 cat <<\_LT_EOF >> "$cfgfile"
17997 # AIX sometimes has problems with the GCC collect2 program. For some
17998 # reason, if we set the COLLECT_NAMES environment variable, the problems
17999 # vanish in a puff of smoke.
18000 if test "X${COLLECT_NAMES+set}" != Xset; then
18001 COLLECT_NAMES=
18002 export COLLECT_NAMES
18003 fi
18004 _LT_EOF
18005 ;;
18006 esac
18007
18008
18009 ltmain="$ac_aux_dir/ltmain.sh"
18010
18011
18012 # We use sed instead of cat because bash on DJGPP gets confused if
18013 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18014 # text mode, it properly converts lines to CR/LF. This bash problem
18015 # is reportedly fixed, but why not run on old versions too?
18016 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18017 || (rm -f "$cfgfile"; exit 1)
18018
18019 case $xsi_shell in
18020 yes)
18021 cat << \_LT_EOF >> "$cfgfile"
18022
18023 # func_dirname file append nondir_replacement
18024 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18025 # otherwise set result to NONDIR_REPLACEMENT.
18026 func_dirname ()
18027 {
18028 case ${1} in
18029 */*) func_dirname_result="${1%/*}${2}" ;;
18030 * ) func_dirname_result="${3}" ;;
18031 esac
18032 }
18033
18034 # func_basename file
18035 func_basename ()
18036 {
18037 func_basename_result="${1##*/}"
18038 }
18039
18040 # func_dirname_and_basename file append nondir_replacement
18041 # perform func_basename and func_dirname in a single function
18042 # call:
18043 # dirname: Compute the dirname of FILE. If nonempty,
18044 # add APPEND to the result, otherwise set result
18045 # to NONDIR_REPLACEMENT.
18046 # value returned in "$func_dirname_result"
18047 # basename: Compute filename of FILE.
18048 # value retuned in "$func_basename_result"
18049 # Implementation must be kept synchronized with func_dirname
18050 # and func_basename. For efficiency, we do not delegate to
18051 # those functions but instead duplicate the functionality here.
18052 func_dirname_and_basename ()
18053 {
18054 case ${1} in
18055 */*) func_dirname_result="${1%/*}${2}" ;;
18056 * ) func_dirname_result="${3}" ;;
18057 esac
18058 func_basename_result="${1##*/}"
18059 }
18060
18061 # func_stripname prefix suffix name
18062 # strip PREFIX and SUFFIX off of NAME.
18063 # PREFIX and SUFFIX must not contain globbing or regex special
18064 # characters, hashes, percent signs, but SUFFIX may contain a leading
18065 # dot (in which case that matches only a dot).
18066 func_stripname ()
18067 {
18068 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18069 # positional parameters, so assign one to ordinary parameter first.
18070 func_stripname_result=${3}
18071 func_stripname_result=${func_stripname_result#"${1}"}
18072 func_stripname_result=${func_stripname_result%"${2}"}
18073 }
18074
18075 # func_opt_split
18076 func_opt_split ()
18077 {
18078 func_opt_split_opt=${1%%=*}
18079 func_opt_split_arg=${1#*=}
18080 }
18081
18082 # func_lo2o object
18083 func_lo2o ()
18084 {
18085 case ${1} in
18086 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18087 *) func_lo2o_result=${1} ;;
18088 esac
18089 }
18090
18091 # func_xform libobj-or-source
18092 func_xform ()
18093 {
18094 func_xform_result=${1%.*}.lo
18095 }
18096
18097 # func_arith arithmetic-term...
18098 func_arith ()
18099 {
18100 func_arith_result=$(( $* ))
18101 }
18102
18103 # func_len string
18104 # STRING may not start with a hyphen.
18105 func_len ()
18106 {
18107 func_len_result=${#1}
18108 }
18109
18110 _LT_EOF
18111 ;;
18112 *) # Bourne compatible functions.
18113 cat << \_LT_EOF >> "$cfgfile"
18114
18115 # func_dirname file append nondir_replacement
18116 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18117 # otherwise set result to NONDIR_REPLACEMENT.
18118 func_dirname ()
18119 {
18120 # Extract subdirectory from the argument.
18121 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18122 if test "X$func_dirname_result" = "X${1}"; then
18123 func_dirname_result="${3}"
18124 else
18125 func_dirname_result="$func_dirname_result${2}"
18126 fi
18127 }
18128
18129 # func_basename file
18130 func_basename ()
18131 {
18132 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18133 }
18134
18135
18136 # func_stripname prefix suffix name
18137 # strip PREFIX and SUFFIX off of NAME.
18138 # PREFIX and SUFFIX must not contain globbing or regex special
18139 # characters, hashes, percent signs, but SUFFIX may contain a leading
18140 # dot (in which case that matches only a dot).
18141 # func_strip_suffix prefix name
18142 func_stripname ()
18143 {
18144 case ${2} in
18145 .*) func_stripname_result=`$ECHO "X${3}" \
18146 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18147 *) func_stripname_result=`$ECHO "X${3}" \
18148 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18149 esac
18150 }
18151
18152 # sed scripts:
18153 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18154 my_sed_long_arg='1s/^-[^=]*=//'
18155
18156 # func_opt_split
18157 func_opt_split ()
18158 {
18159 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18160 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18161 }
18162
18163 # func_lo2o object
18164 func_lo2o ()
18165 {
18166 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18167 }
18168
18169 # func_xform libobj-or-source
18170 func_xform ()
18171 {
18172 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18173 }
18174
18175 # func_arith arithmetic-term...
18176 func_arith ()
18177 {
18178 func_arith_result=`expr "$@"`
18179 }
18180
18181 # func_len string
18182 # STRING may not start with a hyphen.
18183 func_len ()
18184 {
18185 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18186 }
18187
18188 _LT_EOF
18189 esac
18190
18191 case $lt_shell_append in
18192 yes)
18193 cat << \_LT_EOF >> "$cfgfile"
18194
18195 # func_append var value
18196 # Append VALUE to the end of shell variable VAR.
18197 func_append ()
18198 {
18199 eval "$1+=\$2"
18200 }
18201 _LT_EOF
18202 ;;
18203 *)
18204 cat << \_LT_EOF >> "$cfgfile"
18205
18206 # func_append var value
18207 # Append VALUE to the end of shell variable VAR.
18208 func_append ()
18209 {
18210 eval "$1=\$$1\$2"
18211 }
18212
18213 _LT_EOF
18214 ;;
18215 esac
18216
18217
18218 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18219 || (rm -f "$cfgfile"; exit 1)
18220
18221 mv -f "$cfgfile" "$ofile" ||
18222 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18223 chmod +x "$ofile"
18224
18225
18226 cat <<_LT_EOF >> "$ofile"
18227
18228 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18229
18230 # The linker used to build libraries.
18231 LD=$lt_LD_CXX
18232
18233 # Commands used to build an old-style archive.
18234 old_archive_cmds=$lt_old_archive_cmds_CXX
18235
18236 # A language specific compiler.
18237 CC=$lt_compiler_CXX
18238
18239 # Is the compiler the GNU compiler?
18240 with_gcc=$GCC_CXX
18241
18242 # Compiler flag to turn off builtin functions.
18243 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18244
18245 # How to pass a linker flag through the compiler.
18246 wl=$lt_lt_prog_compiler_wl_CXX
18247
18248 # Additional compiler flags for building library objects.
18249 pic_flag=$lt_lt_prog_compiler_pic_CXX
18250
18251 # Compiler flag to prevent dynamic linking.
18252 link_static_flag=$lt_lt_prog_compiler_static_CXX
18253
18254 # Does compiler simultaneously support -c and -o options?
18255 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18256
18257 # Whether or not to add -lc for building shared libraries.
18258 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18259
18260 # Whether or not to disallow shared libs when runtime libs are static.
18261 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18262
18263 # Compiler flag to allow reflexive dlopens.
18264 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18265
18266 # Compiler flag to generate shared objects directly from archives.
18267 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18268
18269 # Whether the compiler copes with passing no objects directly.
18270 compiler_needs_object=$lt_compiler_needs_object_CXX
18271
18272 # Create an old-style archive from a shared archive.
18273 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18274
18275 # Create a temporary old-style archive to link instead of a shared archive.
18276 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18277
18278 # Commands used to build a shared archive.
18279 archive_cmds=$lt_archive_cmds_CXX
18280 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18281
18282 # Commands used to build a loadable module if different from building
18283 # a shared archive.
18284 module_cmds=$lt_module_cmds_CXX
18285 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18286
18287 # Whether we are building with GNU ld or not.
18288 with_gnu_ld=$lt_with_gnu_ld_CXX
18289
18290 # Flag that allows shared libraries with undefined symbols to be built.
18291 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18292
18293 # Flag that enforces no undefined symbols.
18294 no_undefined_flag=$lt_no_undefined_flag_CXX
18295
18296 # Flag to hardcode \$libdir into a binary during linking.
18297 # This must work even if \$libdir does not exist
18298 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18299
18300 # If ld is used when linking, flag to hardcode \$libdir into a binary
18301 # during linking. This must work even if \$libdir does not exist.
18302 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18303
18304 # Whether we need a single "-rpath" flag with a separated argument.
18305 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18306
18307 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18308 # DIR into the resulting binary.
18309 hardcode_direct=$hardcode_direct_CXX
18310
18311 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18312 # DIR into the resulting binary and the resulting library dependency is
18313 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18314 # library is relocated.
18315 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18316
18317 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18318 # into the resulting binary.
18319 hardcode_minus_L=$hardcode_minus_L_CXX
18320
18321 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18322 # into the resulting binary.
18323 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18324
18325 # Set to "yes" if building a shared library automatically hardcodes DIR
18326 # into the library and all subsequent libraries and executables linked
18327 # against it.
18328 hardcode_automatic=$hardcode_automatic_CXX
18329
18330 # Set to yes if linker adds runtime paths of dependent libraries
18331 # to runtime path list.
18332 inherit_rpath=$inherit_rpath_CXX
18333
18334 # Whether libtool must link a program against all its dependency libraries.
18335 link_all_deplibs=$link_all_deplibs_CXX
18336
18337 # Fix the shell variable \$srcfile for the compiler.
18338 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18339
18340 # Set to "yes" if exported symbols are required.
18341 always_export_symbols=$always_export_symbols_CXX
18342
18343 # The commands to list exported symbols.
18344 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18345
18346 # Symbols that should not be listed in the preloaded symbols.
18347 exclude_expsyms=$lt_exclude_expsyms_CXX
18348
18349 # Symbols that must always be exported.
18350 include_expsyms=$lt_include_expsyms_CXX
18351
18352 # Commands necessary for linking programs (against libraries) with templates.
18353 prelink_cmds=$lt_prelink_cmds_CXX
18354
18355 # Specify filename containing input files.
18356 file_list_spec=$lt_file_list_spec_CXX
18357
18358 # How to hardcode a shared library path into an executable.
18359 hardcode_action=$hardcode_action_CXX
18360
18361 # The directories searched by this compiler when creating a shared library.
18362 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18363
18364 # Dependencies to place before and after the objects being linked to
18365 # create a shared library.
18366 predep_objects=$lt_predep_objects_CXX
18367 postdep_objects=$lt_postdep_objects_CXX
18368 predeps=$lt_predeps_CXX
18369 postdeps=$lt_postdeps_CXX
18370
18371 # The library search path used internally by the compiler when linking
18372 # a shared library.
18373 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18374
18375 # ### END LIBTOOL TAG CONFIG: CXX
18376 _LT_EOF
18377
18378 ;;
18379 "default":C) chmod +x chasen-config ;;
18380
18381 esac
18382 done # for ac_tag
18383
18384
18385 as_fn_exit 0
18386 _ACEOF
18387 ac_clean_files=$ac_clean_files_save
18388
18389 test $ac_write_fail = 0 ||
18390 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18391
18392
18393 # configure is writing to config.log, and then calls config.status.
18394 # config.status does its own redirection, appending to config.log.
18395 # Unfortunately, on DOS this fails, as config.log is still kept open
18396 # by configure, so config.status won't be able to write to it; its
18397 # output is simply discarded. So we exec the FD to /dev/null,
18398 # effectively closing config.log, so it can be properly (re)opened and
18399 # appended to by config.status. When coming back to configure, we
18400 # need to make the FD available again.
18401 if test "$no_create" != yes; then
18402 ac_cs_success=:
18403 ac_config_status_args=
18404 test "$silent" = yes &&
18405 ac_config_status_args="$ac_config_status_args --quiet"
18406 exec 5>/dev/null
18407 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18408 exec 5>>config.log
18409 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18410 # would make configure fail if this is the last instruction.
18411 $ac_cs_success || as_fn_exit 1
18412 fi
18413 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18415 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18416 fi
18417
18418
18419
18420 # removed the following entry from AC_OUTPUT
18421 # lib/Makefile.mingw32
18422
18423 # Local Variables:
18424 # mode:shell-script
18425 # sh-indentation:4
18426 # End: