blob: 8ec68b384f92dff28bf1cf231be2b5cd7f667ab1 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001@%:@! /bin/sh
2@%:@ Guess values for system-dependent variables and create Makefiles.
3@%:@ Generated by GNU Autoconf 2.67 for library 1.0.
4@%:@
5@%:@ Report bugs to <support@itibia.com>.
6@%:@
7@%:@
8@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9@%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10@%:@ Foundation, Inc.
11@%:@
12@%:@
13@%:@ This configure script is free software; the Free Software Foundation
14@%:@ gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
29 case `(set -o) 2>/dev/null` in @%:@(
30 *posix*) :
31 set -o posix ;; @%:@(
32 *) :
33 ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in @%:@(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
94case $0 in @%:@((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in @%:@(
148 *posix*) :
149 set -o posix ;; @%:@(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in @%:@(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and support@itibia.com
234$0: about your system, including any error possibly output
235$0: before this message. Then install a modern shell, or
236$0: manually run the script under such a shell if you do
237$0: have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252@%:@ as_fn_unset VAR
253@%:@ ---------------
254@%:@ Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261@%:@ as_fn_set_status STATUS
262@%:@ -----------------------
263@%:@ Set @S|@? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} @%:@ as_fn_set_status
268
269@%:@ as_fn_exit STATUS
270@%:@ -----------------
271@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} @%:@ as_fn_exit
278
279@%:@ as_fn_mkdir_p
280@%:@ -------------
281@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325} @%:@ as_fn_mkdir_p
326@%:@ as_fn_append VAR VALUE
327@%:@ ----------------------
328@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
329@%:@ advantage of any shell optimizations that allow amortized linear growth over
330@%:@ repeated appends, instead of the typical quadratic growth present in naive
331@%:@ implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344@%:@ as_fn_arith ARG...
345@%:@ ------------------
346@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
347@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
348@%:@ must be portable across @S|@(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
362@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
363@%:@ ----------------------------------------
364@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366@%:@ script with STATUS, using 1 if that was 0.
367as_fn_error ()
368{
369 as_status=$1; test $as_status -eq 0 && as_status=1
370 if test "$4"; then
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373 fi
374 $as_echo "$as_me: error: $2" >&2
375 as_fn_exit $as_status
376} @%:@ as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
396
397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
438 N
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in @%:@(((((
457-n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
464*)
465 ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
488 fi
489else
490 as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in @%:@(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536case X$ECHO in
537X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
540 ;;
541esac
542
543echo=${ECHO-echo}
544if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
550elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $echo works!
552 :
553else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<EOF
562$*
563EOF
564 exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$ECHO"; then
572if test "X${echo_test_string+set}" != Xset; then
573# find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
577 echo_test_string=`eval $cmd` &&
578 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
579 then
580 break
581 fi
582 done
583fi
584
585if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
586 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
587 test "X$echo_testing_string" = "X$echo_test_string"; then
588 :
589else
590 # The Solaris, AIX, and Digital Unix default echo programs unquote
591 # backslashes. This makes it impossible to quote backslashes using
592 # echo "$something" | sed 's/\\/\\\\/g'
593 #
594 # So, first we look for a working echo in the user's PATH.
595
596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597 for dir in $PATH /usr/ucb; do
598 IFS="$lt_save_ifs"
599 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602 test "X$echo_testing_string" = "X$echo_test_string"; then
603 echo="$dir/echo"
604 break
605 fi
606 done
607 IFS="$lt_save_ifs"
608
609 if test "X$echo" = Xecho; then
610 # We didn't find a better echo, so look for alternatives.
611 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
612 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
613 test "X$echo_testing_string" = "X$echo_test_string"; then
614 # This shell has a builtin print -r that does the trick.
615 echo='print -r'
616 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
617 test "X$CONFIG_SHELL" != X/bin/ksh; then
618 # If we have ksh, try running configure again with it.
619 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620 export ORIGINAL_CONFIG_SHELL
621 CONFIG_SHELL=/bin/ksh
622 export CONFIG_SHELL
623 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624 else
625 # Try using printf.
626 echo='printf %s\n'
627 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
628 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 # Cool, printf works
631 :
632 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633 test "X$echo_testing_string" = 'X\t' &&
634 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637 export CONFIG_SHELL
638 SHELL="$CONFIG_SHELL"
639 export SHELL
640 echo="$CONFIG_SHELL $0 --fallback-echo"
641 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 echo="$CONFIG_SHELL $0 --fallback-echo"
646 else
647 # maybe with a smaller string...
648 prev=:
649
650 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
652 then
653 break
654 fi
655 prev="$cmd"
656 done
657
658 if test "$prev" != 'sed 50q "$0"'; then
659 echo_test_string=`eval $prev`
660 export echo_test_string
661 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662 else
663 # Oops. We lost completely, so just stick with echo.
664 echo=echo
665 fi
666 fi
667 fi
668 fi
669fi
670fi
671
672# Copy echo and quote the copy suitably for passing to libtool from
673# the Makefile, instead of quoting the original, which is used later.
674ECHO=$echo
675if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677fi
678
679
680
681
682tagnames=${tagnames+${tagnames},}CXX
683
684tagnames=${tagnames+${tagnames},}F77
685
686test -n "$DJDIR" || exec 7<&0 </dev/null
687exec 6>&1
688
689# Name of the host.
690# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
691# so uname gets run too.
692ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
693
694#
695# Initializations.
696#
697ac_default_prefix=/usr/local
698ac_clean_files=
699ac_config_libobj_dir=.
700LIB@&t@OBJS=
701cross_compiling=no
702subdirs=
703MFLAGS=
704MAKEFLAGS=
705
706# Identity of this package.
707PACKAGE_NAME='library'
708PACKAGE_TARNAME='library'
709PACKAGE_VERSION='1.0'
710PACKAGE_STRING='library 1.0'
711PACKAGE_BUGREPORT='support@itibia.com'
712PACKAGE_URL=''
713
714ac_unique_file=""
715# Factoring default headers for most tests.
716ac_includes_default="\
717#include <stdio.h>
718#ifdef HAVE_SYS_TYPES_H
719# include <sys/types.h>
720#endif
721#ifdef HAVE_SYS_STAT_H
722# include <sys/stat.h>
723#endif
724#ifdef STDC_HEADERS
725# include <stdlib.h>
726# include <stddef.h>
727#else
728# ifdef HAVE_STDLIB_H
729# include <stdlib.h>
730# endif
731#endif
732#ifdef HAVE_STRING_H
733# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734# include <memory.h>
735# endif
736# include <string.h>
737#endif
738#ifdef HAVE_STRINGS_H
739# include <strings.h>
740#endif
741#ifdef HAVE_INTTYPES_H
742# include <inttypes.h>
743#endif
744#ifdef HAVE_STDINT_H
745# include <stdint.h>
746#endif
747#ifdef HAVE_UNISTD_H
748# include <unistd.h>
749#endif"
750
751ac_subst_vars='am__EXEEXT_FALSE
752am__EXEEXT_TRUE
753LTLIBOBJS
754COMPILE_FOR_MIPS_FALSE
755COMPILE_FOR_MIPS_TRUE
756HOST_OS
757HOST_VENDOR
758HOST_CPU
759BUILD_OS
760BUILD_VENDOR
761BUILD_CPU
762OPENSSL_DIR
763LIB@&t@OBJS
764ALLOCA
765LIBTOOL
766ac_ct_F77
767FFLAGS
768F77
769CXXCPP
770NMEDIT
771DSYMUTIL
772RANLIB
773AR
774ECHO
775LN_S
776EGREP
777GREP
778SED
779host_os
780host_vendor
781host_cpu
782host
783build_os
784build_vendor
785build_cpu
786build
787CPP
788am__fastdepCC_FALSE
789am__fastdepCC_TRUE
790CCDEPMODE
791ac_ct_CC
792CFLAGS
793CC
794am__fastdepCXX_FALSE
795am__fastdepCXX_TRUE
796CXXDEPMODE
797AMDEPBACKSLASH
798AMDEP_FALSE
799AMDEP_TRUE
800am__quote
801am__include
802DEPDIR
803OBJEXT
804EXEEXT
805ac_ct_CXX
806CPPFLAGS
807LDFLAGS
808CXXFLAGS
809CXX
810am__untar
811am__tar
812AMTAR
813am__leading_dot
814SET_MAKE
815AWK
816mkdir_p
817MKDIR_P
818INSTALL_STRIP_PROGRAM
819STRIP
820install_sh
821MAKEINFO
822AUTOHEADER
823AUTOMAKE
824AUTOCONF
825ACLOCAL
826VERSION
827PACKAGE
828CYGPATH_W
829am__isrc
830INSTALL_DATA
831INSTALL_SCRIPT
832INSTALL_PROGRAM
833target_alias
834host_alias
835build_alias
836LIBS
837ECHO_T
838ECHO_N
839ECHO_C
840DEFS
841mandir
842localedir
843libdir
844psdir
845pdfdir
846dvidir
847htmldir
848infodir
849docdir
850oldincludedir
851includedir
852localstatedir
853sharedstatedir
854sysconfdir
855datadir
856datarootdir
857libexecdir
858sbindir
859bindir
860program_transform_name
861prefix
862exec_prefix
863PACKAGE_URL
864PACKAGE_BUGREPORT
865PACKAGE_STRING
866PACKAGE_VERSION
867PACKAGE_TARNAME
868PACKAGE_NAME
869PATH_SEPARATOR
870SHELL'
871ac_subst_files=''
872ac_user_opts='
873enable_option_checking
874enable_dependency_tracking
875enable_shared
876enable_static
877enable_fast_install
878with_gnu_ld
879enable_libtool_lock
880with_pic
881with_tags
882with_openssl
883'
884 ac_precious_vars='build_alias
885host_alias
886target_alias
887CXX
888CXXFLAGS
889LDFLAGS
890LIBS
891CPPFLAGS
892CCC
893CC
894CFLAGS
895CPP
896CXXCPP
897F77
898FFLAGS'
899
900
901# Initialize some variables set by options.
902ac_init_help=
903ac_init_version=false
904ac_unrecognized_opts=
905ac_unrecognized_sep=
906# The variables have the same names as the options, with
907# dashes changed to underlines.
908cache_file=/dev/null
909exec_prefix=NONE
910no_create=
911no_recursion=
912prefix=NONE
913program_prefix=NONE
914program_suffix=NONE
915program_transform_name=s,x,x,
916silent=
917site=
918srcdir=
919verbose=
920x_includes=NONE
921x_libraries=NONE
922
923# Installation directory options.
924# These are left unexpanded so users can "make install exec_prefix=/foo"
925# and all the variables that are supposed to be based on exec_prefix
926# by default will actually change.
927# Use braces instead of parens because sh, perl, etc. also accept them.
928# (The list follows the same order as the GNU Coding Standards.)
929bindir='${exec_prefix}/bin'
930sbindir='${exec_prefix}/sbin'
931libexecdir='${exec_prefix}/libexec'
932datarootdir='${prefix}/share'
933datadir='${datarootdir}'
934sysconfdir='${prefix}/etc'
935sharedstatedir='${prefix}/com'
936localstatedir='${prefix}/var'
937includedir='${prefix}/include'
938oldincludedir='/usr/include'
939docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
940infodir='${datarootdir}/info'
941htmldir='${docdir}'
942dvidir='${docdir}'
943pdfdir='${docdir}'
944psdir='${docdir}'
945libdir='${exec_prefix}/lib'
946localedir='${datarootdir}/locale'
947mandir='${datarootdir}/man'
948
949ac_prev=
950ac_dashdash=
951for ac_option
952do
953 # If the previous option needs an argument, assign it.
954 if test -n "$ac_prev"; then
955 eval $ac_prev=\$ac_option
956 ac_prev=
957 continue
958 fi
959
960 case $ac_option in
961 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962 *=) ac_optarg= ;;
963 *) ac_optarg=yes ;;
964 esac
965
966 # Accept the important Cygnus configure options, so we can diagnose typos.
967
968 case $ac_dashdash$ac_option in
969 --)
970 ac_dashdash=yes ;;
971
972 -bindir | --bindir | --bindi | --bind | --bin | --bi)
973 ac_prev=bindir ;;
974 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975 bindir=$ac_optarg ;;
976
977 -build | --build | --buil | --bui | --bu)
978 ac_prev=build_alias ;;
979 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980 build_alias=$ac_optarg ;;
981
982 -cache-file | --cache-file | --cache-fil | --cache-fi \
983 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984 ac_prev=cache_file ;;
985 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987 cache_file=$ac_optarg ;;
988
989 --config-cache | -C)
990 cache_file=config.cache ;;
991
992 -datadir | --datadir | --datadi | --datad)
993 ac_prev=datadir ;;
994 -datadir=* | --datadir=* | --datadi=* | --datad=*)
995 datadir=$ac_optarg ;;
996
997 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998 | --dataroo | --dataro | --datar)
999 ac_prev=datarootdir ;;
1000 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002 datarootdir=$ac_optarg ;;
1003
1004 -disable-* | --disable-*)
1005 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008 as_fn_error $? "invalid feature name: $ac_useropt"
1009 ac_useropt_orig=$ac_useropt
1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1012 *"
1013"enable_$ac_useropt"
1014"*) ;;
1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1016 ac_unrecognized_sep=', ';;
1017 esac
1018 eval enable_$ac_useropt=no ;;
1019
1020 -docdir | --docdir | --docdi | --doc | --do)
1021 ac_prev=docdir ;;
1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023 docdir=$ac_optarg ;;
1024
1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026 ac_prev=dvidir ;;
1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028 dvidir=$ac_optarg ;;
1029
1030 -enable-* | --enable-*)
1031 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034 as_fn_error $? "invalid feature name: $ac_useropt"
1035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1038 *"
1039"enable_$ac_useropt"
1040"*) ;;
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
1043 esac
1044 eval enable_$ac_useropt=\$ac_optarg ;;
1045
1046 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048 | --exec | --exe | --ex)
1049 ac_prev=exec_prefix ;;
1050 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052 | --exec=* | --exe=* | --ex=*)
1053 exec_prefix=$ac_optarg ;;
1054
1055 -gas | --gas | --ga | --g)
1056 # Obsolete; use --with-gas.
1057 with_gas=yes ;;
1058
1059 -help | --help | --hel | --he | -h)
1060 ac_init_help=long ;;
1061 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062 ac_init_help=recursive ;;
1063 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064 ac_init_help=short ;;
1065
1066 -host | --host | --hos | --ho)
1067 ac_prev=host_alias ;;
1068 -host=* | --host=* | --hos=* | --ho=*)
1069 host_alias=$ac_optarg ;;
1070
1071 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072 ac_prev=htmldir ;;
1073 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074 | --ht=*)
1075 htmldir=$ac_optarg ;;
1076
1077 -includedir | --includedir | --includedi | --included | --include \
1078 | --includ | --inclu | --incl | --inc)
1079 ac_prev=includedir ;;
1080 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081 | --includ=* | --inclu=* | --incl=* | --inc=*)
1082 includedir=$ac_optarg ;;
1083
1084 -infodir | --infodir | --infodi | --infod | --info | --inf)
1085 ac_prev=infodir ;;
1086 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087 infodir=$ac_optarg ;;
1088
1089 -libdir | --libdir | --libdi | --libd)
1090 ac_prev=libdir ;;
1091 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092 libdir=$ac_optarg ;;
1093
1094 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095 | --libexe | --libex | --libe)
1096 ac_prev=libexecdir ;;
1097 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098 | --libexe=* | --libex=* | --libe=*)
1099 libexecdir=$ac_optarg ;;
1100
1101 -localedir | --localedir | --localedi | --localed | --locale)
1102 ac_prev=localedir ;;
1103 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104 localedir=$ac_optarg ;;
1105
1106 -localstatedir | --localstatedir | --localstatedi | --localstated \
1107 | --localstate | --localstat | --localsta | --localst | --locals)
1108 ac_prev=localstatedir ;;
1109 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111 localstatedir=$ac_optarg ;;
1112
1113 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114 ac_prev=mandir ;;
1115 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116 mandir=$ac_optarg ;;
1117
1118 -nfp | --nfp | --nf)
1119 # Obsolete; use --without-fp.
1120 with_fp=no ;;
1121
1122 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123 | --no-cr | --no-c | -n)
1124 no_create=yes ;;
1125
1126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128 no_recursion=yes ;;
1129
1130 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132 | --oldin | --oldi | --old | --ol | --o)
1133 ac_prev=oldincludedir ;;
1134 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137 oldincludedir=$ac_optarg ;;
1138
1139 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140 ac_prev=prefix ;;
1141 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142 prefix=$ac_optarg ;;
1143
1144 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145 | --program-pre | --program-pr | --program-p)
1146 ac_prev=program_prefix ;;
1147 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149 program_prefix=$ac_optarg ;;
1150
1151 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152 | --program-suf | --program-su | --program-s)
1153 ac_prev=program_suffix ;;
1154 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156 program_suffix=$ac_optarg ;;
1157
1158 -program-transform-name | --program-transform-name \
1159 | --program-transform-nam | --program-transform-na \
1160 | --program-transform-n | --program-transform- \
1161 | --program-transform | --program-transfor \
1162 | --program-transfo | --program-transf \
1163 | --program-trans | --program-tran \
1164 | --progr-tra | --program-tr | --program-t)
1165 ac_prev=program_transform_name ;;
1166 -program-transform-name=* | --program-transform-name=* \
1167 | --program-transform-nam=* | --program-transform-na=* \
1168 | --program-transform-n=* | --program-transform-=* \
1169 | --program-transform=* | --program-transfor=* \
1170 | --program-transfo=* | --program-transf=* \
1171 | --program-trans=* | --program-tran=* \
1172 | --progr-tra=* | --program-tr=* | --program-t=*)
1173 program_transform_name=$ac_optarg ;;
1174
1175 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176 ac_prev=pdfdir ;;
1177 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178 pdfdir=$ac_optarg ;;
1179
1180 -psdir | --psdir | --psdi | --psd | --ps)
1181 ac_prev=psdir ;;
1182 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183 psdir=$ac_optarg ;;
1184
1185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186 | -silent | --silent | --silen | --sile | --sil)
1187 silent=yes ;;
1188
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 ac_prev=sbindir ;;
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 | --sbi=* | --sb=*)
1193 sbindir=$ac_optarg ;;
1194
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1198 | --sha | --sh)
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 | --sha=* | --sh=*)
1204 sharedstatedir=$ac_optarg ;;
1205
1206 -site | --site | --sit)
1207 ac_prev=site ;;
1208 -site=* | --site=* | --sit=*)
1209 site=$ac_optarg ;;
1210
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 ac_prev=srcdir ;;
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214 srcdir=$ac_optarg ;;
1215
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221 sysconfdir=$ac_optarg ;;
1222
1223 -target | --target | --targe | --targ | --tar | --ta | --t)
1224 ac_prev=target_alias ;;
1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226 target_alias=$ac_optarg ;;
1227
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229 verbose=yes ;;
1230
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
1233
1234 -with-* | --with-*)
1235 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 as_fn_error $? "invalid package name: $ac_useropt"
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1242 *"
1243"with_$ac_useropt"
1244"*) ;;
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1247 esac
1248 eval with_$ac_useropt=\$ac_optarg ;;
1249
1250 -without-* | --without-*)
1251 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 as_fn_error $? "invalid package name: $ac_useropt"
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1258 *"
1259"with_$ac_useropt"
1260"*) ;;
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1263 esac
1264 eval with_$ac_useropt=no ;;
1265
1266 --x)
1267 # Obsolete; use --with-x.
1268 with_x=yes ;;
1269
1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271 | --x-incl | --x-inc | --x-in | --x-i)
1272 ac_prev=x_includes ;;
1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275 x_includes=$ac_optarg ;;
1276
1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279 ac_prev=x_libraries ;;
1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282 x_libraries=$ac_optarg ;;
1283
1284 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1285Try \`$0 --help' for more information"
1286 ;;
1287
1288 *=*)
1289 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290 # Reject names that are not valid shell variable names.
1291 case $ac_envvar in #(
1292 '' | [0-9]* | *[!_$as_cr_alnum]* )
1293 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1294 esac
1295 eval $ac_envvar=\$ac_optarg
1296 export $ac_envvar ;;
1297
1298 *)
1299 # FIXME: should be removed in autoconf 3.0.
1300 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1304 ;;
1305
1306 esac
1307done
1308
1309if test -n "$ac_prev"; then
1310 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311 as_fn_error $? "missing argument to $ac_option"
1312fi
1313
1314if test -n "$ac_unrecognized_opts"; then
1315 case $enable_option_checking in
1316 no) ;;
1317 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1318 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319 esac
1320fi
1321
1322# Check all directory arguments for consistency.
1323for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324 datadir sysconfdir sharedstatedir localstatedir includedir \
1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326 libdir localedir mandir
1327do
1328 eval ac_val=\$$ac_var
1329 # Remove trailing slashes.
1330 case $ac_val in
1331 */ )
1332 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333 eval $ac_var=\$ac_val;;
1334 esac
1335 # Be sure to have absolute directory names.
1336 case $ac_val in
1337 [\\/$]* | ?:[\\/]* ) continue;;
1338 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339 esac
1340 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1341done
1342
1343# There might be people who depend on the old broken behavior: `$host'
1344# used to hold the argument of --host etc.
1345# FIXME: To remove some day.
1346build=$build_alias
1347host=$host_alias
1348target=$target_alias
1349
1350# FIXME: To remove some day.
1351if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
1354 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1355 If a cross compiler is detected then cross compile mode will be used" >&2
1356 elif test "x$build_alias" != "x$host_alias"; then
1357 cross_compiling=yes
1358 fi
1359fi
1360
1361ac_tool_prefix=
1362test -n "$host_alias" && ac_tool_prefix=$host_alias-
1363
1364test "$silent" = yes && exec 6>/dev/null
1365
1366
1367ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368ac_ls_di=`ls -di .` &&
1369ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370 as_fn_error $? "working directory cannot be determined"
1371test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1372 as_fn_error $? "pwd does not report name of working directory"
1373
1374
1375# Find the source files, if location was not specified.
1376if test -z "$srcdir"; then
1377 ac_srcdir_defaulted=yes
1378 # Try the directory containing this script, then the parent directory.
1379 ac_confdir=`$as_dirname -- "$as_myself" ||
1380$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1381 X"$as_myself" : 'X\(//\)[^/]' \| \
1382 X"$as_myself" : 'X\(//\)$' \| \
1383 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1384$as_echo X"$as_myself" |
1385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1386 s//\1/
1387 q
1388 }
1389 /^X\(\/\/\)[^/].*/{
1390 s//\1/
1391 q
1392 }
1393 /^X\(\/\/\)$/{
1394 s//\1/
1395 q
1396 }
1397 /^X\(\/\).*/{
1398 s//\1/
1399 q
1400 }
1401 s/.*/./; q'`
1402 srcdir=$ac_confdir
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404 srcdir=..
1405 fi
1406else
1407 ac_srcdir_defaulted=no
1408fi
1409if test ! -r "$srcdir/$ac_unique_file"; then
1410 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1411 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1412fi
1413ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1414ac_abs_confdir=`(
1415 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1416 pwd)`
1417# When building in place, set srcdir=.
1418if test "$ac_abs_confdir" = "$ac_pwd"; then
1419 srcdir=.
1420fi
1421# Remove unnecessary trailing slashes from srcdir.
1422# Double slashes in file names in object file debugging info
1423# mess up M-x gdb in Emacs.
1424case $srcdir in
1425*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426esac
1427for ac_var in $ac_precious_vars; do
1428 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_env_${ac_var}_value=\$${ac_var}
1430 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1431 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1432done
1433
1434#
1435# Report the --help message.
1436#
1437if test "$ac_init_help" = "long"; then
1438 # Omit some internal or obsolete options to make the list less imposing.
1439 # This message is too long to be a string in the A/UX 3.1 sh.
1440 cat <<_ACEOF
1441\`configure' configures library 1.0 to adapt to many kinds of systems.
1442
1443Usage: $0 [OPTION]... [VAR=VALUE]...
1444
1445To assign environment variables (e.g., CC, CFLAGS...), specify them as
1446VAR=VALUE. See below for descriptions of some of the useful variables.
1447
1448Defaults for the options are specified in brackets.
1449
1450Configuration:
1451 -h, --help display this help and exit
1452 --help=short display options specific to this package
1453 --help=recursive display the short help of all the included packages
1454 -V, --version display version information and exit
1455 -q, --quiet, --silent do not print \`checking ...' messages
1456 --cache-file=FILE cache test results in FILE [disabled]
1457 -C, --config-cache alias for \`--cache-file=config.cache'
1458 -n, --no-create do not create output files
1459 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1460
1461Installation directories:
1462 --prefix=PREFIX install architecture-independent files in PREFIX
1463 @<:@@S|@ac_default_prefix@:>@
1464 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1465 @<:@PREFIX@:>@
1466
1467By default, \`make install' will install all the files in
1468\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1469an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1470for instance \`--prefix=\$HOME'.
1471
1472For better control, use the options below.
1473
1474Fine tuning of the installation directories:
1475 --bindir=DIR user executables [EPREFIX/bin]
1476 --sbindir=DIR system admin executables [EPREFIX/sbin]
1477 --libexecdir=DIR program executables [EPREFIX/libexec]
1478 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1479 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1480 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1481 --libdir=DIR object code libraries [EPREFIX/lib]
1482 --includedir=DIR C header files [PREFIX/include]
1483 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1484 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1485 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1486 --infodir=DIR info documentation [DATAROOTDIR/info]
1487 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1488 --mandir=DIR man documentation [DATAROOTDIR/man]
1489 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/library@:>@
1490 --htmldir=DIR html documentation [DOCDIR]
1491 --dvidir=DIR dvi documentation [DOCDIR]
1492 --pdfdir=DIR pdf documentation [DOCDIR]
1493 --psdir=DIR ps documentation [DOCDIR]
1494_ACEOF
1495
1496 cat <<\_ACEOF
1497
1498Program names:
1499 --program-prefix=PREFIX prepend PREFIX to installed program names
1500 --program-suffix=SUFFIX append SUFFIX to installed program names
1501 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1502
1503System types:
1504 --build=BUILD configure for building on BUILD [guessed]
1505 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1506_ACEOF
1507fi
1508
1509if test -n "$ac_init_help"; then
1510 case $ac_init_help in
1511 short | recursive ) echo "Configuration of library 1.0:";;
1512 esac
1513 cat <<\_ACEOF
1514
1515Optional Features:
1516 --disable-option-checking ignore unrecognized --enable/--with options
1517 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1518 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1519 --disable-dependency-tracking speeds up one-time build
1520 --enable-dependency-tracking do not reject slow dependency extractors
1521 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1522 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1523 --enable-fast-install@<:@=PKGS@:>@
1524 optimize for fast installation @<:@default=yes@:>@
1525 --disable-libtool-lock avoid locking (might break parallel builds)
1526
1527Optional Packages:
1528 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1529 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1530 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1531 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1532 both@:>@
1533 --with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
1534--with-openssl=<path> sets path to temp directory
1535
1536Some influential environment variables:
1537 CXX C++ compiler command
1538 CXXFLAGS C++ compiler flags
1539 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1540 nonstandard directory <lib dir>
1541 LIBS libraries to pass to the linker, e.g. -l<library>
1542 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1543 you have headers in a nonstandard directory <include dir>
1544 CC C compiler command
1545 CFLAGS C compiler flags
1546 CPP C preprocessor
1547 CXXCPP C++ preprocessor
1548 F77 Fortran 77 compiler command
1549 FFLAGS Fortran 77 compiler flags
1550
1551Use these variables to override the choices made by `configure' or to help
1552it to find libraries and programs with nonstandard names/locations.
1553
1554Report bugs to <support@itibia.com>.
1555_ACEOF
1556ac_status=$?
1557fi
1558
1559if test "$ac_init_help" = "recursive"; then
1560 # If there are subdirs, report their specific --help.
1561 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1562 test -d "$ac_dir" ||
1563 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1564 continue
1565 ac_builddir=.
1566
1567case "$ac_dir" in
1568.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569*)
1570 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1571 # A ".." for each directory in $ac_dir_suffix.
1572 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1573 case $ac_top_builddir_sub in
1574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576 esac ;;
1577esac
1578ac_abs_top_builddir=$ac_pwd
1579ac_abs_builddir=$ac_pwd$ac_dir_suffix
1580# for backward compatibility:
1581ac_top_builddir=$ac_top_build_prefix
1582
1583case $srcdir in
1584 .) # We are building in place.
1585 ac_srcdir=.
1586 ac_top_srcdir=$ac_top_builddir_sub
1587 ac_abs_top_srcdir=$ac_pwd ;;
1588 [\\/]* | ?:[\\/]* ) # Absolute name.
1589 ac_srcdir=$srcdir$ac_dir_suffix;
1590 ac_top_srcdir=$srcdir
1591 ac_abs_top_srcdir=$srcdir ;;
1592 *) # Relative name.
1593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1594 ac_top_srcdir=$ac_top_build_prefix$srcdir
1595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1596esac
1597ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1598
1599 cd "$ac_dir" || { ac_status=$?; continue; }
1600 # Check for guested configure.
1601 if test -f "$ac_srcdir/configure.gnu"; then
1602 echo &&
1603 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1604 elif test -f "$ac_srcdir/configure"; then
1605 echo &&
1606 $SHELL "$ac_srcdir/configure" --help=recursive
1607 else
1608 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609 fi || ac_status=$?
1610 cd "$ac_pwd" || { ac_status=$?; break; }
1611 done
1612fi
1613
1614test -n "$ac_init_help" && exit $ac_status
1615if $ac_init_version; then
1616 cat <<\_ACEOF
1617library configure 1.0
1618generated by GNU Autoconf 2.67
1619
1620Copyright (C) 2010 Free Software Foundation, Inc.
1621This configure script is free software; the Free Software Foundation
1622gives unlimited permission to copy, distribute and modify it.
1623_ACEOF
1624 exit
1625fi
1626
1627## ------------------------ ##
1628## Autoconf initialization. ##
1629## ------------------------ ##
1630
1631@%:@ ac_fn_cxx_try_compile LINENO
1632@%:@ ----------------------------
1633@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1634ac_fn_cxx_try_compile ()
1635{
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext
1638 if { { ac_try="$ac_compile"
1639case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642esac
1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644$as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_compile") 2>conftest.err
1646 ac_status=$?
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1651 fi
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_cxx_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest.$ac_objext; then :
1657 ac_retval=0
1658else
1659 $as_echo "$as_me: failed program was:" >&5
1660sed 's/^/| /' conftest.$ac_ext >&5
1661
1662 ac_retval=1
1663fi
1664 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1665 as_fn_set_status $ac_retval
1666
1667} @%:@ ac_fn_cxx_try_compile
1668
1669@%:@ ac_fn_c_try_compile LINENO
1670@%:@ --------------------------
1671@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1672ac_fn_c_try_compile ()
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext
1676 if { { ac_try="$ac_compile"
1677case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_compile") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest.$ac_objext; then :
1695 ac_retval=0
1696else
1697 $as_echo "$as_me: failed program was:" >&5
1698sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=1
1701fi
1702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1703 as_fn_set_status $ac_retval
1704
1705} @%:@ ac_fn_c_try_compile
1706
1707@%:@ ac_fn_c_try_cpp LINENO
1708@%:@ ----------------------
1709@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1710ac_fn_c_try_cpp ()
1711{
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 if { { ac_try="$ac_cpp conftest.$ac_ext"
1714case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719$as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1721 ac_status=$?
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1726 fi
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } > conftest.i && {
1729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 }; then :
1732 ac_retval=0
1733else
1734 $as_echo "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1736
1737 ac_retval=1
1738fi
1739 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740 as_fn_set_status $ac_retval
1741
1742} @%:@ ac_fn_c_try_cpp
1743
1744@%:@ ac_fn_c_try_link LINENO
1745@%:@ -----------------------
1746@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1747ac_fn_c_try_link ()
1748{
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 rm -f conftest.$ac_objext conftest$ac_exeext
1751 if { { ac_try="$ac_link"
1752case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757$as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_link") 2>conftest.err
1759 ac_status=$?
1760 if test -s conftest.err; then
1761 grep -v '^ *+' conftest.err >conftest.er1
1762 cat conftest.er1 >&5
1763 mv -f conftest.er1 conftest.err
1764 fi
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } && {
1767 test -z "$ac_c_werror_flag" ||
1768 test ! -s conftest.err
1769 } && test -s conftest$ac_exeext && {
1770 test "$cross_compiling" = yes ||
1771 $as_test_x conftest$ac_exeext
1772 }; then :
1773 ac_retval=0
1774else
1775 $as_echo "$as_me: failed program was:" >&5
1776sed 's/^/| /' conftest.$ac_ext >&5
1777
1778 ac_retval=1
1779fi
1780 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1781 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1782 # interfere with the next link command; also delete a directory that is
1783 # left behind by Apple's compiler. We do this before executing the actions.
1784 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1786 as_fn_set_status $ac_retval
1787
1788} @%:@ ac_fn_c_try_link
1789
1790@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1791@%:@ -------------------------------------------------------
1792@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1793@%:@ the include files in INCLUDES and setting the cache variable VAR
1794@%:@ accordingly.
1795ac_fn_c_check_header_mongrel ()
1796{
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 if eval "test \"\${$3+set}\"" = set; then :
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800$as_echo_n "checking for $2... " >&6; }
1801if eval "test \"\${$3+set}\"" = set; then :
1802 $as_echo_n "(cached) " >&6
1803fi
1804eval ac_res=\$$3
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806$as_echo "$ac_res" >&6; }
1807else
1808 # Is the header compilable?
1809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1810$as_echo_n "checking $2 usability... " >&6; }
1811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812/* end confdefs.h. */
1813$4
1814@%:@include <$2>
1815_ACEOF
1816if ac_fn_c_try_compile "$LINENO"; then :
1817 ac_header_compiler=yes
1818else
1819 ac_header_compiler=no
1820fi
1821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1823$as_echo "$ac_header_compiler" >&6; }
1824
1825# Is the header present?
1826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1827$as_echo_n "checking $2 presence... " >&6; }
1828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829/* end confdefs.h. */
1830@%:@include <$2>
1831_ACEOF
1832if ac_fn_c_try_cpp "$LINENO"; then :
1833 ac_header_preproc=yes
1834else
1835 ac_header_preproc=no
1836fi
1837rm -f conftest.err conftest.i conftest.$ac_ext
1838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1839$as_echo "$ac_header_preproc" >&6; }
1840
1841# So? What about this header?
1842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1843 yes:no: )
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1845$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1847$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1848 ;;
1849 no:yes:* )
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1851$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1853$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1855$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1857$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1859$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1860( $as_echo "## --------------------------------- ##
1861## Report this to support@itibia.com ##
1862## --------------------------------- ##"
1863 ) | sed "s/^/$as_me: WARNING: /" >&2
1864 ;;
1865esac
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867$as_echo_n "checking for $2... " >&6; }
1868if eval "test \"\${$3+set}\"" = set; then :
1869 $as_echo_n "(cached) " >&6
1870else
1871 eval "$3=\$ac_header_compiler"
1872fi
1873eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875$as_echo "$ac_res" >&6; }
1876fi
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878
1879} @%:@ ac_fn_c_check_header_mongrel
1880
1881@%:@ ac_fn_c_try_run LINENO
1882@%:@ ----------------------
1883@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1884@%:@ that executables *can* be run.
1885ac_fn_c_try_run ()
1886{
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if { { ac_try="$ac_link"
1889case "(($ac_try" in
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1892esac
1893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894$as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_link") 2>&5
1896 ac_status=$?
1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1899 { { case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902esac
1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904$as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_try") 2>&5
1906 ac_status=$?
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; }; }; then :
1909 ac_retval=0
1910else
1911 $as_echo "$as_me: program exited with status $ac_status" >&5
1912 $as_echo "$as_me: failed program was:" >&5
1913sed 's/^/| /' conftest.$ac_ext >&5
1914
1915 ac_retval=$ac_status
1916fi
1917 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1918 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1919 as_fn_set_status $ac_retval
1920
1921} @%:@ ac_fn_c_try_run
1922
1923@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1924@%:@ -------------------------------------------------------
1925@%:@ Tests whether HEADER exists and can be compiled using the include files in
1926@%:@ INCLUDES, setting the cache variable VAR accordingly.
1927ac_fn_c_check_header_compile ()
1928{
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931$as_echo_n "checking for $2... " >&6; }
1932if eval "test \"\${$3+set}\"" = set; then :
1933 $as_echo_n "(cached) " >&6
1934else
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936/* end confdefs.h. */
1937$4
1938@%:@include <$2>
1939_ACEOF
1940if ac_fn_c_try_compile "$LINENO"; then :
1941 eval "$3=yes"
1942else
1943 eval "$3=no"
1944fi
1945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946fi
1947eval ac_res=\$$3
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949$as_echo "$ac_res" >&6; }
1950 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951
1952} @%:@ ac_fn_c_check_header_compile
1953
1954@%:@ ac_fn_c_check_func LINENO FUNC VAR
1955@%:@ ----------------------------------
1956@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1957ac_fn_c_check_func ()
1958{
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961$as_echo_n "checking for $2... " >&6; }
1962if eval "test \"\${$3+set}\"" = set; then :
1963 $as_echo_n "(cached) " >&6
1964else
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966/* end confdefs.h. */
1967/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1969#define $2 innocuous_$2
1970
1971/* System header to define __stub macros and hopefully few prototypes,
1972 which can conflict with char $2 (); below.
1973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1974 <limits.h> exists even on freestanding compilers. */
1975
1976#ifdef __STDC__
1977# include <limits.h>
1978#else
1979# include <assert.h>
1980#endif
1981
1982#undef $2
1983
1984/* Override any GCC internal prototype to avoid an error.
1985 Use char because int might match the return type of a GCC
1986 builtin and then its argument prototype would still apply. */
1987#ifdef __cplusplus
1988extern "C"
1989#endif
1990char $2 ();
1991/* The GNU C library defines this for functions which it implements
1992 to always fail with ENOSYS. Some functions are actually named
1993 something starting with __ and the normal name is an alias. */
1994#if defined __stub_$2 || defined __stub___$2
1995choke me
1996#endif
1997
1998int
1999main ()
2000{
2001return $2 ();
2002 ;
2003 return 0;
2004}
2005_ACEOF
2006if ac_fn_c_try_link "$LINENO"; then :
2007 eval "$3=yes"
2008else
2009 eval "$3=no"
2010fi
2011rm -f core conftest.err conftest.$ac_objext \
2012 conftest$ac_exeext conftest.$ac_ext
2013fi
2014eval ac_res=\$$3
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016$as_echo "$ac_res" >&6; }
2017 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2018
2019} @%:@ ac_fn_c_check_func
2020
2021@%:@ ac_fn_cxx_try_cpp LINENO
2022@%:@ ------------------------
2023@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
2024ac_fn_cxx_try_cpp ()
2025{
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 if { { ac_try="$ac_cpp conftest.$ac_ext"
2028case "(($ac_try" in
2029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2030 *) ac_try_echo=$ac_try;;
2031esac
2032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2033$as_echo "$ac_try_echo"; } >&5
2034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2035 ac_status=$?
2036 if test -s conftest.err; then
2037 grep -v '^ *+' conftest.err >conftest.er1
2038 cat conftest.er1 >&5
2039 mv -f conftest.er1 conftest.err
2040 fi
2041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042 test $ac_status = 0; } > conftest.i && {
2043 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2044 test ! -s conftest.err
2045 }; then :
2046 ac_retval=0
2047else
2048 $as_echo "$as_me: failed program was:" >&5
2049sed 's/^/| /' conftest.$ac_ext >&5
2050
2051 ac_retval=1
2052fi
2053 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054 as_fn_set_status $ac_retval
2055
2056} @%:@ ac_fn_cxx_try_cpp
2057
2058@%:@ ac_fn_cxx_try_link LINENO
2059@%:@ -------------------------
2060@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
2061ac_fn_cxx_try_link ()
2062{
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 rm -f conftest.$ac_objext conftest$ac_exeext
2065 if { { ac_try="$ac_link"
2066case "(($ac_try" in
2067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2068 *) ac_try_echo=$ac_try;;
2069esac
2070eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2071$as_echo "$ac_try_echo"; } >&5
2072 (eval "$ac_link") 2>conftest.err
2073 ac_status=$?
2074 if test -s conftest.err; then
2075 grep -v '^ *+' conftest.err >conftest.er1
2076 cat conftest.er1 >&5
2077 mv -f conftest.er1 conftest.err
2078 fi
2079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2080 test $ac_status = 0; } && {
2081 test -z "$ac_cxx_werror_flag" ||
2082 test ! -s conftest.err
2083 } && test -s conftest$ac_exeext && {
2084 test "$cross_compiling" = yes ||
2085 $as_test_x conftest$ac_exeext
2086 }; then :
2087 ac_retval=0
2088else
2089 $as_echo "$as_me: failed program was:" >&5
2090sed 's/^/| /' conftest.$ac_ext >&5
2091
2092 ac_retval=1
2093fi
2094 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2095 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2096 # interfere with the next link command; also delete a directory that is
2097 # left behind by Apple's compiler. We do this before executing the actions.
2098 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2099 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2100 as_fn_set_status $ac_retval
2101
2102} @%:@ ac_fn_cxx_try_link
2103
2104@%:@ ac_fn_f77_try_compile LINENO
2105@%:@ ----------------------------
2106@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
2107ac_fn_f77_try_compile ()
2108{
2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110 rm -f conftest.$ac_objext
2111 if { { ac_try="$ac_compile"
2112case "(($ac_try" in
2113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114 *) ac_try_echo=$ac_try;;
2115esac
2116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117$as_echo "$ac_try_echo"; } >&5
2118 (eval "$ac_compile") 2>conftest.err
2119 ac_status=$?
2120 if test -s conftest.err; then
2121 grep -v '^ *+' conftest.err >conftest.er1
2122 cat conftest.er1 >&5
2123 mv -f conftest.er1 conftest.err
2124 fi
2125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2126 test $ac_status = 0; } && {
2127 test -z "$ac_f77_werror_flag" ||
2128 test ! -s conftest.err
2129 } && test -s conftest.$ac_objext; then :
2130 ac_retval=0
2131else
2132 $as_echo "$as_me: failed program was:" >&5
2133sed 's/^/| /' conftest.$ac_ext >&5
2134
2135 ac_retval=1
2136fi
2137 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2138 as_fn_set_status $ac_retval
2139
2140} @%:@ ac_fn_f77_try_compile
2141
2142@%:@ ac_fn_f77_try_link LINENO
2143@%:@ -------------------------
2144@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
2145ac_fn_f77_try_link ()
2146{
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 rm -f conftest.$ac_objext conftest$ac_exeext
2149 if { { ac_try="$ac_link"
2150case "(($ac_try" in
2151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2152 *) ac_try_echo=$ac_try;;
2153esac
2154eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2155$as_echo "$ac_try_echo"; } >&5
2156 (eval "$ac_link") 2>conftest.err
2157 ac_status=$?
2158 if test -s conftest.err; then
2159 grep -v '^ *+' conftest.err >conftest.er1
2160 cat conftest.er1 >&5
2161 mv -f conftest.er1 conftest.err
2162 fi
2163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2164 test $ac_status = 0; } && {
2165 test -z "$ac_f77_werror_flag" ||
2166 test ! -s conftest.err
2167 } && test -s conftest$ac_exeext && {
2168 test "$cross_compiling" = yes ||
2169 $as_test_x conftest$ac_exeext
2170 }; then :
2171 ac_retval=0
2172else
2173 $as_echo "$as_me: failed program was:" >&5
2174sed 's/^/| /' conftest.$ac_ext >&5
2175
2176 ac_retval=1
2177fi
2178 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2179 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2180 # interfere with the next link command; also delete a directory that is
2181 # left behind by Apple's compiler. We do this before executing the actions.
2182 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2183 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2184 as_fn_set_status $ac_retval
2185
2186} @%:@ ac_fn_f77_try_link
2187
2188@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2189@%:@ -------------------------------------------
2190@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
2191@%:@ variable VAR accordingly.
2192ac_fn_c_check_type ()
2193{
2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2196$as_echo_n "checking for $2... " >&6; }
2197if eval "test \"\${$3+set}\"" = set; then :
2198 $as_echo_n "(cached) " >&6
2199else
2200 eval "$3=no"
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202/* end confdefs.h. */
2203$4
2204int
2205main ()
2206{
2207if (sizeof ($2))
2208 return 0;
2209 ;
2210 return 0;
2211}
2212_ACEOF
2213if ac_fn_c_try_compile "$LINENO"; then :
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215/* end confdefs.h. */
2216$4
2217int
2218main ()
2219{
2220if (sizeof (($2)))
2221 return 0;
2222 ;
2223 return 0;
2224}
2225_ACEOF
2226if ac_fn_c_try_compile "$LINENO"; then :
2227
2228else
2229 eval "$3=yes"
2230fi
2231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232fi
2233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234fi
2235eval ac_res=\$$3
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2237$as_echo "$ac_res" >&6; }
2238 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2239
2240} @%:@ ac_fn_c_check_type
2241
2242@%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2243@%:@ --------------------------------------------
2244@%:@ Tries to find the compile-time value of EXPR in a program that includes
2245@%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
2246@%:@ computed
2247ac_fn_c_compute_int ()
2248{
2249 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250 if test "$cross_compiling" = yes; then
2251 # Depending upon the size, compute the lo and hi bounds.
2252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253/* end confdefs.h. */
2254$4
2255int
2256main ()
2257{
2258static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
2259test_array @<:@0@:>@ = 0
2260
2261 ;
2262 return 0;
2263}
2264_ACEOF
2265if ac_fn_c_try_compile "$LINENO"; then :
2266 ac_lo=0 ac_mid=0
2267 while :; do
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269/* end confdefs.h. */
2270$4
2271int
2272main ()
2273{
2274static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2275test_array @<:@0@:>@ = 0
2276
2277 ;
2278 return 0;
2279}
2280_ACEOF
2281if ac_fn_c_try_compile "$LINENO"; then :
2282 ac_hi=$ac_mid; break
2283else
2284 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2285 if test $ac_lo -le $ac_mid; then
2286 ac_lo= ac_hi=
2287 break
2288 fi
2289 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2290fi
2291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292 done
2293else
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295/* end confdefs.h. */
2296$4
2297int
2298main ()
2299{
2300static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
2301test_array @<:@0@:>@ = 0
2302
2303 ;
2304 return 0;
2305}
2306_ACEOF
2307if ac_fn_c_try_compile "$LINENO"; then :
2308 ac_hi=-1 ac_mid=-1
2309 while :; do
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311/* end confdefs.h. */
2312$4
2313int
2314main ()
2315{
2316static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
2317test_array @<:@0@:>@ = 0
2318
2319 ;
2320 return 0;
2321}
2322_ACEOF
2323if ac_fn_c_try_compile "$LINENO"; then :
2324 ac_lo=$ac_mid; break
2325else
2326 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2327 if test $ac_mid -le $ac_hi; then
2328 ac_lo= ac_hi=
2329 break
2330 fi
2331 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2332fi
2333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 done
2335else
2336 ac_lo= ac_hi=
2337fi
2338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339fi
2340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2341# Binary search between lo and hi bounds.
2342while test "x$ac_lo" != "x$ac_hi"; do
2343 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345/* end confdefs.h. */
2346$4
2347int
2348main ()
2349{
2350static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2351test_array @<:@0@:>@ = 0
2352
2353 ;
2354 return 0;
2355}
2356_ACEOF
2357if ac_fn_c_try_compile "$LINENO"; then :
2358 ac_hi=$ac_mid
2359else
2360 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2361fi
2362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363done
2364case $ac_lo in @%:@((
2365?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2366'') ac_retval=1 ;;
2367esac
2368 else
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370/* end confdefs.h. */
2371$4
2372static long int longval () { return $2; }
2373static unsigned long int ulongval () { return $2; }
2374@%:@include <stdio.h>
2375@%:@include <stdlib.h>
2376int
2377main ()
2378{
2379
2380 FILE *f = fopen ("conftest.val", "w");
2381 if (! f)
2382 return 1;
2383 if (($2) < 0)
2384 {
2385 long int i = longval ();
2386 if (i != ($2))
2387 return 1;
2388 fprintf (f, "%ld", i);
2389 }
2390 else
2391 {
2392 unsigned long int i = ulongval ();
2393 if (i != ($2))
2394 return 1;
2395 fprintf (f, "%lu", i);
2396 }
2397 /* Do not output a trailing newline, as this causes \r\n confusion
2398 on some platforms. */
2399 return ferror (f) || fclose (f) != 0;
2400
2401 ;
2402 return 0;
2403}
2404_ACEOF
2405if ac_fn_c_try_run "$LINENO"; then :
2406 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2407else
2408 ac_retval=1
2409fi
2410rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2411 conftest.$ac_objext conftest.beam conftest.$ac_ext
2412rm -f conftest.val
2413
2414 fi
2415 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2416 as_fn_set_status $ac_retval
2417
2418} @%:@ ac_fn_c_compute_int
2419cat >config.log <<_ACEOF
2420This file contains any messages produced by compilers while
2421running configure, to aid debugging if configure makes a mistake.
2422
2423It was created by library $as_me 1.0, which was
2424generated by GNU Autoconf 2.67. Invocation command line was
2425
2426 $ $0 $@
2427
2428_ACEOF
2429exec 5>>config.log
2430{
2431cat <<_ASUNAME
2432## --------- ##
2433## Platform. ##
2434## --------- ##
2435
2436hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2437uname -m = `(uname -m) 2>/dev/null || echo unknown`
2438uname -r = `(uname -r) 2>/dev/null || echo unknown`
2439uname -s = `(uname -s) 2>/dev/null || echo unknown`
2440uname -v = `(uname -v) 2>/dev/null || echo unknown`
2441
2442/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2443/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2444
2445/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2446/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2447/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2448/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2449/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2450/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2451/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2452
2453_ASUNAME
2454
2455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456for as_dir in $PATH
2457do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 $as_echo "PATH: $as_dir"
2461 done
2462IFS=$as_save_IFS
2463
2464} >&5
2465
2466cat >&5 <<_ACEOF
2467
2468
2469## ----------- ##
2470## Core tests. ##
2471## ----------- ##
2472
2473_ACEOF
2474
2475
2476# Keep a trace of the command line.
2477# Strip out --no-create and --no-recursion so they do not pile up.
2478# Strip out --silent because we don't want to record it for future runs.
2479# Also quote any args containing shell meta-characters.
2480# Make two passes to allow for proper duplicate-argument suppression.
2481ac_configure_args=
2482ac_configure_args0=
2483ac_configure_args1=
2484ac_must_keep_next=false
2485for ac_pass in 1 2
2486do
2487 for ac_arg
2488 do
2489 case $ac_arg in
2490 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2491 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2492 | -silent | --silent | --silen | --sile | --sil)
2493 continue ;;
2494 *\'*)
2495 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2496 esac
2497 case $ac_pass in
2498 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2499 2)
2500 as_fn_append ac_configure_args1 " '$ac_arg'"
2501 if test $ac_must_keep_next = true; then
2502 ac_must_keep_next=false # Got value, back to normal.
2503 else
2504 case $ac_arg in
2505 *=* | --config-cache | -C | -disable-* | --disable-* \
2506 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2507 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2508 | -with-* | --with-* | -without-* | --without-* | --x)
2509 case "$ac_configure_args0 " in
2510 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2511 esac
2512 ;;
2513 -* ) ac_must_keep_next=true ;;
2514 esac
2515 fi
2516 as_fn_append ac_configure_args " '$ac_arg'"
2517 ;;
2518 esac
2519 done
2520done
2521{ ac_configure_args0=; unset ac_configure_args0;}
2522{ ac_configure_args1=; unset ac_configure_args1;}
2523
2524# When interrupted or exit'd, cleanup temporary files, and complete
2525# config.log. We remove comments because anyway the quotes in there
2526# would cause problems or look ugly.
2527# WARNING: Use '\'' to represent an apostrophe within the trap.
2528# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2529trap 'exit_status=$?
2530 # Save into config.log some information that might help in debugging.
2531 {
2532 echo
2533
2534 $as_echo "## ---------------- ##
2535## Cache variables. ##
2536## ---------------- ##"
2537 echo
2538 # The following way of writing the cache mishandles newlines in values,
2539(
2540 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2541 eval ac_val=\$$ac_var
2542 case $ac_val in #(
2543 *${as_nl}*)
2544 case $ac_var in #(
2545 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2546$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2547 esac
2548 case $ac_var in #(
2549 _ | IFS | as_nl) ;; #(
2550 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2551 *) { eval $ac_var=; unset $ac_var;} ;;
2552 esac ;;
2553 esac
2554 done
2555 (set) 2>&1 |
2556 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2557 *${as_nl}ac_space=\ *)
2558 sed -n \
2559 "s/'\''/'\''\\\\'\'''\''/g;
2560 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2561 ;; #(
2562 *)
2563 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2564 ;;
2565 esac |
2566 sort
2567)
2568 echo
2569
2570 $as_echo "## ----------------- ##
2571## Output variables. ##
2572## ----------------- ##"
2573 echo
2574 for ac_var in $ac_subst_vars
2575 do
2576 eval ac_val=\$$ac_var
2577 case $ac_val in
2578 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2579 esac
2580 $as_echo "$ac_var='\''$ac_val'\''"
2581 done | sort
2582 echo
2583
2584 if test -n "$ac_subst_files"; then
2585 $as_echo "## ------------------- ##
2586## File substitutions. ##
2587## ------------------- ##"
2588 echo
2589 for ac_var in $ac_subst_files
2590 do
2591 eval ac_val=\$$ac_var
2592 case $ac_val in
2593 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2594 esac
2595 $as_echo "$ac_var='\''$ac_val'\''"
2596 done | sort
2597 echo
2598 fi
2599
2600 if test -s confdefs.h; then
2601 $as_echo "## ----------- ##
2602## confdefs.h. ##
2603## ----------- ##"
2604 echo
2605 cat confdefs.h
2606 echo
2607 fi
2608 test "$ac_signal" != 0 &&
2609 $as_echo "$as_me: caught signal $ac_signal"
2610 $as_echo "$as_me: exit $exit_status"
2611 } >&5
2612 rm -f core *.core core.conftest.* &&
2613 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2614 exit $exit_status
2615' 0
2616for ac_signal in 1 2 13 15; do
2617 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2618done
2619ac_signal=0
2620
2621# confdefs.h avoids OS command line length limits that DEFS can exceed.
2622rm -f -r conftest* confdefs.h
2623
2624$as_echo "/* confdefs.h */" > confdefs.h
2625
2626# Predefined preprocessor variables.
2627
2628cat >>confdefs.h <<_ACEOF
2629@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2630_ACEOF
2631
2632cat >>confdefs.h <<_ACEOF
2633@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2634_ACEOF
2635
2636cat >>confdefs.h <<_ACEOF
2637@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2638_ACEOF
2639
2640cat >>confdefs.h <<_ACEOF
2641@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2642_ACEOF
2643
2644cat >>confdefs.h <<_ACEOF
2645@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2646_ACEOF
2647
2648cat >>confdefs.h <<_ACEOF
2649@%:@define PACKAGE_URL "$PACKAGE_URL"
2650_ACEOF
2651
2652
2653# Let the site file select an alternate cache file if it wants to.
2654# Prefer an explicitly selected file to automatically selected ones.
2655ac_site_file1=NONE
2656ac_site_file2=NONE
2657if test -n "$CONFIG_SITE"; then
2658 # We do not want a PATH search for config.site.
2659 case $CONFIG_SITE in @%:@((
2660 -*) ac_site_file1=./$CONFIG_SITE;;
2661 */*) ac_site_file1=$CONFIG_SITE;;
2662 *) ac_site_file1=./$CONFIG_SITE;;
2663 esac
2664elif test "x$prefix" != xNONE; then
2665 ac_site_file1=$prefix/share/config.site
2666 ac_site_file2=$prefix/etc/config.site
2667else
2668 ac_site_file1=$ac_default_prefix/share/config.site
2669 ac_site_file2=$ac_default_prefix/etc/config.site
2670fi
2671for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2672do
2673 test "x$ac_site_file" = xNONE && continue
2674 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2676$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2677 sed 's/^/| /' "$ac_site_file" >&5
2678 . "$ac_site_file" \
2679 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2680$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2681as_fn_error $? "failed to load site script $ac_site_file
2682See \`config.log' for more details" "$LINENO" 5 ; }
2683 fi
2684done
2685
2686if test -r "$cache_file"; then
2687 # Some versions of bash will fail to source /dev/null (special files
2688 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2689 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2691$as_echo "$as_me: loading cache $cache_file" >&6;}
2692 case $cache_file in
2693 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2694 *) . "./$cache_file";;
2695 esac
2696 fi
2697else
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2699$as_echo "$as_me: creating cache $cache_file" >&6;}
2700 >$cache_file
2701fi
2702
2703# Check that the precious variables saved in the cache have kept the same
2704# value.
2705ac_cache_corrupted=false
2706for ac_var in $ac_precious_vars; do
2707 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2708 eval ac_new_set=\$ac_env_${ac_var}_set
2709 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2710 eval ac_new_val=\$ac_env_${ac_var}_value
2711 case $ac_old_set,$ac_new_set in
2712 set,)
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2714$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2715 ac_cache_corrupted=: ;;
2716 ,set)
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2718$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2719 ac_cache_corrupted=: ;;
2720 ,);;
2721 *)
2722 if test "x$ac_old_val" != "x$ac_new_val"; then
2723 # differences in whitespace do not lead to failure.
2724 ac_old_val_w=`echo x $ac_old_val`
2725 ac_new_val_w=`echo x $ac_new_val`
2726 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2728$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2729 ac_cache_corrupted=:
2730 else
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2732$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2733 eval $ac_var=\$ac_old_val
2734 fi
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2736$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2738$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2739 fi;;
2740 esac
2741 # Pass precious variables to config.status.
2742 if test "$ac_new_set" = set; then
2743 case $ac_new_val in
2744 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2745 *) ac_arg=$ac_var=$ac_new_val ;;
2746 esac
2747 case " $ac_configure_args " in
2748 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2749 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2750 esac
2751 fi
2752done
2753if $ac_cache_corrupted; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2755$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2757$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2758 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2759fi
2760## -------------------- ##
2761## Main body of script. ##
2762## -------------------- ##
2763
2764ac_ext=c
2765ac_cpp='$CPP $CPPFLAGS'
2766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2768ac_compiler_gnu=$ac_cv_c_compiler_gnu
2769
2770
2771ac_aux_dir=
2772for ac_dir in build "$srcdir"/build; do
2773 if test -f "$ac_dir/install-sh"; then
2774 ac_aux_dir=$ac_dir
2775 ac_install_sh="$ac_aux_dir/install-sh -c"
2776 break
2777 elif test -f "$ac_dir/install.sh"; then
2778 ac_aux_dir=$ac_dir
2779 ac_install_sh="$ac_aux_dir/install.sh -c"
2780 break
2781 elif test -f "$ac_dir/shtool"; then
2782 ac_aux_dir=$ac_dir
2783 ac_install_sh="$ac_aux_dir/shtool install -c"
2784 break
2785 fi
2786done
2787if test -z "$ac_aux_dir"; then
2788 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2789fi
2790
2791# These three variables are undocumented and unsupported,
2792# and are intended to be withdrawn in a future Autoconf release.
2793# They can cause serious problems if a builder's source tree is in a directory
2794# whose full name contains unusual characters.
2795ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2796ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2797ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2798
2799
2800am__api_version='1.11'
2801
2802# Find a good install program. We prefer a C program (faster),
2803# so one script is as good as another. But avoid the broken or
2804# incompatible versions:
2805# SysV /etc/install, /usr/sbin/install
2806# SunOS /usr/etc/install
2807# IRIX /sbin/install
2808# AIX /bin/install
2809# AmigaOS /C/install, which installs bootblocks on floppy discs
2810# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2811# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2812# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2813# OS/2's system install, which has a completely different semantic
2814# ./install, which can be erroneously created by make from ./install.sh.
2815# Reject install programs that cannot install multiple files.
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2817$as_echo_n "checking for a BSD-compatible install... " >&6; }
2818if test -z "$INSTALL"; then
2819if test "${ac_cv_path_install+set}" = set; then :
2820 $as_echo_n "(cached) " >&6
2821else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823for as_dir in $PATH
2824do
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 # Account for people who put trailing slashes in PATH elements.
2828case $as_dir/ in @%:@((
2829 ./ | .// | /[cC]/* | \
2830 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2831 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2832 /usr/ucb/* ) ;;
2833 *)
2834 # OSF1 and SCO ODT 3.0 have their own names for install.
2835 # Don't use installbsd from OSF since it installs stuff as root
2836 # by default.
2837 for ac_prog in ginstall scoinst install; do
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2840 if test $ac_prog = install &&
2841 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2842 # AIX install. It has an incompatible calling convention.
2843 :
2844 elif test $ac_prog = install &&
2845 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2846 # program-specific install script used by HP pwplus--don't use.
2847 :
2848 else
2849 rm -rf conftest.one conftest.two conftest.dir
2850 echo one > conftest.one
2851 echo two > conftest.two
2852 mkdir conftest.dir
2853 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2854 test -s conftest.one && test -s conftest.two &&
2855 test -s conftest.dir/conftest.one &&
2856 test -s conftest.dir/conftest.two
2857 then
2858 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2859 break 3
2860 fi
2861 fi
2862 fi
2863 done
2864 done
2865 ;;
2866esac
2867
2868 done
2869IFS=$as_save_IFS
2870
2871rm -rf conftest.one conftest.two conftest.dir
2872
2873fi
2874 if test "${ac_cv_path_install+set}" = set; then
2875 INSTALL=$ac_cv_path_install
2876 else
2877 # As a last resort, use the slow shell script. Don't cache a
2878 # value for INSTALL within a source directory, because that will
2879 # break other packages using the cache if that directory is
2880 # removed, or if the value is a relative name.
2881 INSTALL=$ac_install_sh
2882 fi
2883fi
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2885$as_echo "$INSTALL" >&6; }
2886
2887# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2888# It thinks the first close brace ends the variable substitution.
2889test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2890
2891test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2892
2893test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2894
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2896$as_echo_n "checking whether build environment is sane... " >&6; }
2897# Just in case
2898sleep 1
2899echo timestamp > conftest.file
2900# Reject unsafe characters in $srcdir or the absolute working directory
2901# name. Accept space and tab only in the latter.
2902am_lf='
2903'
2904case `pwd` in
2905 *[\\\"\#\$\&\'\`$am_lf]*)
2906 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2907esac
2908case $srcdir in
2909 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2910 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2911esac
2912
2913# Do `set' in a subshell so we don't clobber the current shell's
2914# arguments. Must try -L first in case configure is actually a
2915# symlink; some systems play weird games with the mod time of symlinks
2916# (eg FreeBSD returns the mod time of the symlink's containing
2917# directory).
2918if (
2919 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2920 if test "$*" = "X"; then
2921 # -L didn't work.
2922 set X `ls -t "$srcdir/configure" conftest.file`
2923 fi
2924 rm -f conftest.file
2925 if test "$*" != "X $srcdir/configure conftest.file" \
2926 && test "$*" != "X conftest.file $srcdir/configure"; then
2927
2928 # If neither matched, then we have a broken ls. This can happen
2929 # if, for instance, CONFIG_SHELL is bash and it inherits a
2930 # broken ls alias from the environment. This has actually
2931 # happened. Such a system could not be considered "sane".
2932 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2933alias in your environment" "$LINENO" 5
2934 fi
2935
2936 test "$2" = conftest.file
2937 )
2938then
2939 # Ok.
2940 :
2941else
2942 as_fn_error $? "newly created file is older than distributed files!
2943Check your system clock" "$LINENO" 5
2944fi
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2946$as_echo "yes" >&6; }
2947test "$program_prefix" != NONE &&
2948 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2949# Use a double $ so make ignores it.
2950test "$program_suffix" != NONE &&
2951 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2952# Double any \ or $.
2953# By default was `s,x,x', remove it if useless.
2954ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2955program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2956
2957# expand $ac_aux_dir to an absolute path
2958am_aux_dir=`cd $ac_aux_dir && pwd`
2959
2960if test x"${MISSING+set}" != xset; then
2961 case $am_aux_dir in
2962 *\ * | *\ *)
2963 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2964 *)
2965 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2966 esac
2967fi
2968# Use eval to expand $SHELL
2969if eval "$MISSING --run true"; then
2970 am_missing_run="$MISSING --run "
2971else
2972 am_missing_run=
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2974$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2975fi
2976
2977if test x"${install_sh}" != xset; then
2978 case $am_aux_dir in
2979 *\ * | *\ *)
2980 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2981 *)
2982 install_sh="\${SHELL} $am_aux_dir/install-sh"
2983 esac
2984fi
2985
2986# Installed binaries are usually stripped using `strip' when the user
2987# run `make install-strip'. However `strip' might not be the right
2988# tool to use in cross-compilation environments, therefore Automake
2989# will honor the `STRIP' environment variable to overrule this program.
2990if test "$cross_compiling" != no; then
2991 if test -n "$ac_tool_prefix"; then
2992 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2993set dummy ${ac_tool_prefix}strip; ac_word=$2
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2995$as_echo_n "checking for $ac_word... " >&6; }
2996if test "${ac_cv_prog_STRIP+set}" = set; then :
2997 $as_echo_n "(cached) " >&6
2998else
2999 if test -n "$STRIP"; then
3000 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3001else
3002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003for as_dir in $PATH
3004do
3005 IFS=$as_save_IFS
3006 test -z "$as_dir" && as_dir=.
3007 for ac_exec_ext in '' $ac_executable_extensions; do
3008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3009 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 break 2
3012 fi
3013done
3014 done
3015IFS=$as_save_IFS
3016
3017fi
3018fi
3019STRIP=$ac_cv_prog_STRIP
3020if test -n "$STRIP"; then
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3022$as_echo "$STRIP" >&6; }
3023else
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025$as_echo "no" >&6; }
3026fi
3027
3028
3029fi
3030if test -z "$ac_cv_prog_STRIP"; then
3031 ac_ct_STRIP=$STRIP
3032 # Extract the first word of "strip", so it can be a program name with args.
3033set dummy strip; ac_word=$2
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035$as_echo_n "checking for $ac_word... " >&6; }
3036if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3037 $as_echo_n "(cached) " >&6
3038else
3039 if test -n "$ac_ct_STRIP"; then
3040 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3041else
3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049 ac_cv_prog_ac_ct_STRIP="strip"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3052 fi
3053done
3054 done
3055IFS=$as_save_IFS
3056
3057fi
3058fi
3059ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3060if test -n "$ac_ct_STRIP"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3062$as_echo "$ac_ct_STRIP" >&6; }
3063else
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065$as_echo "no" >&6; }
3066fi
3067
3068 if test "x$ac_ct_STRIP" = x; then
3069 STRIP=":"
3070 else
3071 case $cross_compiling:$ac_tool_warned in
3072yes:)
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3075ac_tool_warned=yes ;;
3076esac
3077 STRIP=$ac_ct_STRIP
3078 fi
3079else
3080 STRIP="$ac_cv_prog_STRIP"
3081fi
3082
3083fi
3084INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3085
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3087$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3088if test -z "$MKDIR_P"; then
3089 if test "${ac_cv_path_mkdir+set}" = set; then :
3090 $as_echo_n "(cached) " >&6
3091else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3094do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_prog in mkdir gmkdir; do
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3100 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3101 'mkdir (GNU coreutils) '* | \
3102 'mkdir (coreutils) '* | \
3103 'mkdir (fileutils) '4.1*)
3104 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3105 break 3;;
3106 esac
3107 done
3108 done
3109 done
3110IFS=$as_save_IFS
3111
3112fi
3113
3114 test -d ./--version && rmdir ./--version
3115 if test "${ac_cv_path_mkdir+set}" = set; then
3116 MKDIR_P="$ac_cv_path_mkdir -p"
3117 else
3118 # As a last resort, use the slow shell script. Don't cache a
3119 # value for MKDIR_P within a source directory, because that will
3120 # break other packages using the cache if that directory is
3121 # removed, or if the value is a relative name.
3122 MKDIR_P="$ac_install_sh -d"
3123 fi
3124fi
3125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3126$as_echo "$MKDIR_P" >&6; }
3127
3128mkdir_p="$MKDIR_P"
3129case $mkdir_p in
3130 [\\/$]* | ?:[\\/]*) ;;
3131 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3132esac
3133
3134for ac_prog in gawk mawk nawk awk
3135do
3136 # Extract the first word of "$ac_prog", so it can be a program name with args.
3137set dummy $ac_prog; ac_word=$2
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3139$as_echo_n "checking for $ac_word... " >&6; }
3140if test "${ac_cv_prog_AWK+set}" = set; then :
3141 $as_echo_n "(cached) " >&6
3142else
3143 if test -n "$AWK"; then
3144 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3145else
3146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147for as_dir in $PATH
3148do
3149 IFS=$as_save_IFS
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153 ac_cv_prog_AWK="$ac_prog"
3154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3155 break 2
3156 fi
3157done
3158 done
3159IFS=$as_save_IFS
3160
3161fi
3162fi
3163AWK=$ac_cv_prog_AWK
3164if test -n "$AWK"; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3166$as_echo "$AWK" >&6; }
3167else
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169$as_echo "no" >&6; }
3170fi
3171
3172
3173 test -n "$AWK" && break
3174done
3175
3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3177$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3178set x ${MAKE-make}
3179ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3180if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3181 $as_echo_n "(cached) " >&6
3182else
3183 cat >conftest.make <<\_ACEOF
3184SHELL = /bin/sh
3185all:
3186 @echo '@@@%%%=$(MAKE)=@@@%%%'
3187_ACEOF
3188# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3189case `${MAKE-make} -f conftest.make 2>/dev/null` in
3190 *@@@%%%=?*=@@@%%%*)
3191 eval ac_cv_prog_make_${ac_make}_set=yes;;
3192 *)
3193 eval ac_cv_prog_make_${ac_make}_set=no;;
3194esac
3195rm -f conftest.make
3196fi
3197if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3199$as_echo "yes" >&6; }
3200 SET_MAKE=
3201else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203$as_echo "no" >&6; }
3204 SET_MAKE="MAKE=${MAKE-make}"
3205fi
3206
3207rm -rf .tst 2>/dev/null
3208mkdir .tst 2>/dev/null
3209if test -d .tst; then
3210 am__leading_dot=.
3211else
3212 am__leading_dot=_
3213fi
3214rmdir .tst 2>/dev/null
3215
3216if test "`cd $srcdir && pwd`" != "`pwd`"; then
3217 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3218 # is not polluted with repeated "-I."
3219 am__isrc=' -I$(srcdir)'
3220 # test to see if srcdir already configured
3221 if test -f $srcdir/config.status; then
3222 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3223 fi
3224fi
3225
3226# test whether we have cygpath
3227if test -z "$CYGPATH_W"; then
3228 if (cygpath --version) >/dev/null 2>/dev/null; then
3229 CYGPATH_W='cygpath -w'
3230 else
3231 CYGPATH_W=echo
3232 fi
3233fi
3234
3235
3236# Define the identity of the package.
3237 PACKAGE='library'
3238 VERSION='1.0'
3239
3240
3241cat >>confdefs.h <<_ACEOF
3242@%:@define PACKAGE "$PACKAGE"
3243_ACEOF
3244
3245
3246cat >>confdefs.h <<_ACEOF
3247@%:@define VERSION "$VERSION"
3248_ACEOF
3249
3250# Some tools Automake needs.
3251
3252ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3253
3254
3255AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3256
3257
3258AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3259
3260
3261AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3262
3263
3264MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3265
3266# We need awk for the "check" target. The system "awk" is bad on
3267# some platforms.
3268# Always define AMTAR for backward compatibility.
3269
3270AMTAR=${AMTAR-"${am_missing_run}tar"}
3271
3272am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3273
3274
3275
3276
3277
3278
3279ac_config_headers="$ac_config_headers config.h"
3280
3281
3282#AC_PREFIX_DEFAULT([])
3283
3284# Checks for programs.
3285ac_ext=cpp
3286ac_cpp='$CXXCPP $CPPFLAGS'
3287ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3288ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3289ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3290if test -z "$CXX"; then
3291 if test -n "$CCC"; then
3292 CXX=$CCC
3293 else
3294 if test -n "$ac_tool_prefix"; then
3295 for ac_prog in g++
3296 do
3297 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3298set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300$as_echo_n "checking for $ac_word... " >&6; }
3301if test "${ac_cv_prog_CXX+set}" = set; then :
3302 $as_echo_n "(cached) " >&6
3303else
3304 if test -n "$CXX"; then
3305 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3306else
3307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308for as_dir in $PATH
3309do
3310 IFS=$as_save_IFS
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3314 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 break 2
3317 fi
3318done
3319 done
3320IFS=$as_save_IFS
3321
3322fi
3323fi
3324CXX=$ac_cv_prog_CXX
3325if test -n "$CXX"; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3327$as_echo "$CXX" >&6; }
3328else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330$as_echo "no" >&6; }
3331fi
3332
3333
3334 test -n "$CXX" && break
3335 done
3336fi
3337if test -z "$CXX"; then
3338 ac_ct_CXX=$CXX
3339 for ac_prog in g++
3340do
3341 # Extract the first word of "$ac_prog", so it can be a program name with args.
3342set dummy $ac_prog; ac_word=$2
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3344$as_echo_n "checking for $ac_word... " >&6; }
3345if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3346 $as_echo_n "(cached) " >&6
3347else
3348 if test -n "$ac_ct_CXX"; then
3349 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3350else
3351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352for as_dir in $PATH
3353do
3354 IFS=$as_save_IFS
3355 test -z "$as_dir" && as_dir=.
3356 for ac_exec_ext in '' $ac_executable_extensions; do
3357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3358 ac_cv_prog_ac_ct_CXX="$ac_prog"
3359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 break 2
3361 fi
3362done
3363 done
3364IFS=$as_save_IFS
3365
3366fi
3367fi
3368ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3369if test -n "$ac_ct_CXX"; then
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3371$as_echo "$ac_ct_CXX" >&6; }
3372else
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374$as_echo "no" >&6; }
3375fi
3376
3377
3378 test -n "$ac_ct_CXX" && break
3379done
3380
3381 if test "x$ac_ct_CXX" = x; then
3382 CXX="g++"
3383 else
3384 case $cross_compiling:$ac_tool_warned in
3385yes:)
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3387$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3388ac_tool_warned=yes ;;
3389esac
3390 CXX=$ac_ct_CXX
3391 fi
3392fi
3393
3394 fi
3395fi
3396# Provide some information about the compiler.
3397$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3398set X $ac_compile
3399ac_compiler=$2
3400for ac_option in --version -v -V -qversion; do
3401 { { ac_try="$ac_compiler $ac_option >&5"
3402case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3405esac
3406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407$as_echo "$ac_try_echo"; } >&5
3408 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3409 ac_status=$?
3410 if test -s conftest.err; then
3411 sed '10a\
3412... rest of stderr output deleted ...
3413 10q' conftest.err >conftest.er1
3414 cat conftest.er1 >&5
3415 fi
3416 rm -f conftest.er1 conftest.err
3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418 test $ac_status = 0; }
3419done
3420
3421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422/* end confdefs.h. */
3423
3424int
3425main ()
3426{
3427
3428 ;
3429 return 0;
3430}
3431_ACEOF
3432ac_clean_files_save=$ac_clean_files
3433ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3434# Try to create an executable without -o first, disregard a.out.
3435# It will help us diagnose broken compilers, and finding out an intuition
3436# of exeext.
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3438$as_echo_n "checking whether the C++ compiler works... " >&6; }
3439ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3440
3441# The possible output files:
3442ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3443
3444ac_rmfiles=
3445for ac_file in $ac_files
3446do
3447 case $ac_file in
3448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3449 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3450 esac
3451done
3452rm -f $ac_rmfiles
3453
3454if { { ac_try="$ac_link_default"
3455case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458esac
3459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460$as_echo "$ac_try_echo"; } >&5
3461 (eval "$ac_link_default") 2>&5
3462 ac_status=$?
3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464 test $ac_status = 0; }; then :
3465 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3466# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3467# in a Makefile. We should not override ac_cv_exeext if it was cached,
3468# so that the user can short-circuit this test for compilers unknown to
3469# Autoconf.
3470for ac_file in $ac_files ''
3471do
3472 test -f "$ac_file" || continue
3473 case $ac_file in
3474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3475 ;;
3476 [ab].out )
3477 # We found the default executable, but exeext='' is most
3478 # certainly right.
3479 break;;
3480 *.* )
3481 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3482 then :; else
3483 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3484 fi
3485 # We set ac_cv_exeext here because the later test for it is not
3486 # safe: cross compilers may not add the suffix if given an `-o'
3487 # argument, so we may need to know it at that point already.
3488 # Even if this section looks crufty: it has the advantage of
3489 # actually working.
3490 break;;
3491 * )
3492 break;;
3493 esac
3494done
3495test "$ac_cv_exeext" = no && ac_cv_exeext=
3496
3497else
3498 ac_file=''
3499fi
3500if test -z "$ac_file"; then :
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502$as_echo "no" >&6; }
3503$as_echo "$as_me: failed program was:" >&5
3504sed 's/^/| /' conftest.$ac_ext >&5
3505
3506{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508as_fn_error 77 "C++ compiler cannot create executables
3509See \`config.log' for more details" "$LINENO" 5 ; }
3510else
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3512$as_echo "yes" >&6; }
3513fi
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3515$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3517$as_echo "$ac_file" >&6; }
3518ac_exeext=$ac_cv_exeext
3519
3520rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3521ac_clean_files=$ac_clean_files_save
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3523$as_echo_n "checking for suffix of executables... " >&6; }
3524if { { ac_try="$ac_link"
3525case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528esac
3529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530$as_echo "$ac_try_echo"; } >&5
3531 (eval "$ac_link") 2>&5
3532 ac_status=$?
3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }; then :
3535 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3536# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3537# work properly (i.e., refer to `conftest.exe'), while it won't with
3538# `rm'.
3539for ac_file in conftest.exe conftest conftest.*; do
3540 test -f "$ac_file" || continue
3541 case $ac_file in
3542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3543 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3544 break;;
3545 * ) break;;
3546 esac
3547done
3548else
3549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3552See \`config.log' for more details" "$LINENO" 5 ; }
3553fi
3554rm -f conftest conftest$ac_cv_exeext
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3556$as_echo "$ac_cv_exeext" >&6; }
3557
3558rm -f conftest.$ac_ext
3559EXEEXT=$ac_cv_exeext
3560ac_exeext=$EXEEXT
3561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562/* end confdefs.h. */
3563@%:@include <stdio.h>
3564int
3565main ()
3566{
3567FILE *f = fopen ("conftest.out", "w");
3568 return ferror (f) || fclose (f) != 0;
3569
3570 ;
3571 return 0;
3572}
3573_ACEOF
3574ac_clean_files="$ac_clean_files conftest.out"
3575# Check that the compiler produces executables we can run. If not, either
3576# the compiler is broken, or we cross compile.
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3578$as_echo_n "checking whether we are cross compiling... " >&6; }
3579if test "$cross_compiling" != yes; then
3580 { { ac_try="$ac_link"
3581case "(($ac_try" in
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3584esac
3585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586$as_echo "$ac_try_echo"; } >&5
3587 (eval "$ac_link") 2>&5
3588 ac_status=$?
3589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590 test $ac_status = 0; }
3591 if { ac_try='./conftest$ac_cv_exeext'
3592 { { case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595esac
3596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3597$as_echo "$ac_try_echo"; } >&5
3598 (eval "$ac_try") 2>&5
3599 ac_status=$?
3600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601 test $ac_status = 0; }; }; then
3602 cross_compiling=no
3603 else
3604 if test "$cross_compiling" = maybe; then
3605 cross_compiling=yes
3606 else
3607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609as_fn_error $? "cannot run C++ compiled programs.
3610If you meant to cross compile, use \`--host'.
3611See \`config.log' for more details" "$LINENO" 5 ; }
3612 fi
3613 fi
3614fi
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3616$as_echo "$cross_compiling" >&6; }
3617
3618rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3619ac_clean_files=$ac_clean_files_save
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3621$as_echo_n "checking for suffix of object files... " >&6; }
3622if test "${ac_cv_objext+set}" = set; then :
3623 $as_echo_n "(cached) " >&6
3624else
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626/* end confdefs.h. */
3627
3628int
3629main ()
3630{
3631
3632 ;
3633 return 0;
3634}
3635_ACEOF
3636rm -f conftest.o conftest.obj
3637if { { ac_try="$ac_compile"
3638case "(($ac_try" in
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3641esac
3642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3643$as_echo "$ac_try_echo"; } >&5
3644 (eval "$ac_compile") 2>&5
3645 ac_status=$?
3646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647 test $ac_status = 0; }; then :
3648 for ac_file in conftest.o conftest.obj conftest.*; do
3649 test -f "$ac_file" || continue;
3650 case $ac_file in
3651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3652 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3653 break;;
3654 esac
3655done
3656else
3657 $as_echo "$as_me: failed program was:" >&5
3658sed 's/^/| /' conftest.$ac_ext >&5
3659
3660{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662as_fn_error $? "cannot compute suffix of object files: cannot compile
3663See \`config.log' for more details" "$LINENO" 5 ; }
3664fi
3665rm -f conftest.$ac_cv_objext conftest.$ac_ext
3666fi
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3668$as_echo "$ac_cv_objext" >&6; }
3669OBJEXT=$ac_cv_objext
3670ac_objext=$OBJEXT
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3672$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3673if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3674 $as_echo_n "(cached) " >&6
3675else
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677/* end confdefs.h. */
3678
3679int
3680main ()
3681{
3682#ifndef __GNUC__
3683 choke me
3684#endif
3685
3686 ;
3687 return 0;
3688}
3689_ACEOF
3690if ac_fn_cxx_try_compile "$LINENO"; then :
3691 ac_compiler_gnu=yes
3692else
3693 ac_compiler_gnu=no
3694fi
3695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3697
3698fi
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3700$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3701if test $ac_compiler_gnu = yes; then
3702 GXX=yes
3703else
3704 GXX=
3705fi
3706ac_test_CXXFLAGS=${CXXFLAGS+set}
3707ac_save_CXXFLAGS=$CXXFLAGS
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3709$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3710if test "${ac_cv_prog_cxx_g+set}" = set; then :
3711 $as_echo_n "(cached) " >&6
3712else
3713 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3714 ac_cxx_werror_flag=yes
3715 ac_cv_prog_cxx_g=no
3716 CXXFLAGS="-g"
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718/* end confdefs.h. */
3719
3720int
3721main ()
3722{
3723
3724 ;
3725 return 0;
3726}
3727_ACEOF
3728if ac_fn_cxx_try_compile "$LINENO"; then :
3729 ac_cv_prog_cxx_g=yes
3730else
3731 CXXFLAGS=""
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733/* end confdefs.h. */
3734
3735int
3736main ()
3737{
3738
3739 ;
3740 return 0;
3741}
3742_ACEOF
3743if ac_fn_cxx_try_compile "$LINENO"; then :
3744
3745else
3746 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3747 CXXFLAGS="-g"
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749/* end confdefs.h. */
3750
3751int
3752main ()
3753{
3754
3755 ;
3756 return 0;
3757}
3758_ACEOF
3759if ac_fn_cxx_try_compile "$LINENO"; then :
3760 ac_cv_prog_cxx_g=yes
3761fi
3762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763fi
3764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765fi
3766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3768fi
3769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3770$as_echo "$ac_cv_prog_cxx_g" >&6; }
3771if test "$ac_test_CXXFLAGS" = set; then
3772 CXXFLAGS=$ac_save_CXXFLAGS
3773elif test $ac_cv_prog_cxx_g = yes; then
3774 if test "$GXX" = yes; then
3775 CXXFLAGS="-g -O2"
3776 else
3777 CXXFLAGS="-g"
3778 fi
3779else
3780 if test "$GXX" = yes; then
3781 CXXFLAGS="-O2"
3782 else
3783 CXXFLAGS=
3784 fi
3785fi
3786ac_ext=c
3787ac_cpp='$CPP $CPPFLAGS'
3788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791DEPDIR="${am__leading_dot}deps"
3792
3793ac_config_commands="$ac_config_commands depfiles"
3794
3795
3796am_make=${MAKE-make}
3797cat > confinc << 'END'
3798am__doit:
3799 @echo this is the am__doit target
3800.PHONY: am__doit
3801END
3802# If we don't find an include directive, just comment out the code.
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3804$as_echo_n "checking for style of include used by $am_make... " >&6; }
3805am__include="#"
3806am__quote=
3807_am_result=none
3808# First try GNU make style include.
3809echo "include confinc" > confmf
3810# Ignore all kinds of additional output from `make'.
3811case `$am_make -s -f confmf 2> /dev/null` in #(
3812*the\ am__doit\ target*)
3813 am__include=include
3814 am__quote=
3815 _am_result=GNU
3816 ;;
3817esac
3818# Now try BSD make style include.
3819if test "$am__include" = "#"; then
3820 echo '.include "confinc"' > confmf
3821 case `$am_make -s -f confmf 2> /dev/null` in #(
3822 *the\ am__doit\ target*)
3823 am__include=.include
3824 am__quote="\""
3825 _am_result=BSD
3826 ;;
3827 esac
3828fi
3829
3830
3831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3832$as_echo "$_am_result" >&6; }
3833rm -f confinc confmf
3834
3835@%:@ Check whether --enable-dependency-tracking was given.
3836if test "${enable_dependency_tracking+set}" = set; then :
3837 enableval=$enable_dependency_tracking;
3838fi
3839
3840if test "x$enable_dependency_tracking" != xno; then
3841 am_depcomp="$ac_aux_dir/depcomp"
3842 AMDEPBACKSLASH='\'
3843fi
3844 if test "x$enable_dependency_tracking" != xno; then
3845 AMDEP_TRUE=
3846 AMDEP_FALSE='#'
3847else
3848 AMDEP_TRUE='#'
3849 AMDEP_FALSE=
3850fi
3851
3852
3853
3854depcc="$CXX" am_compiler_list=
3855
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3857$as_echo_n "checking dependency style of $depcc... " >&6; }
3858if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3859 $as_echo_n "(cached) " >&6
3860else
3861 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3862 # We make a subdir and do the tests there. Otherwise we can end up
3863 # making bogus files that we don't know about and never remove. For
3864 # instance it was reported that on HP-UX the gcc test will end up
3865 # making a dummy file named `D' -- because `-MD' means `put the output
3866 # in D'.
3867 mkdir conftest.dir
3868 # Copy depcomp to subdir because otherwise we won't find it if we're
3869 # using a relative directory.
3870 cp "$am_depcomp" conftest.dir
3871 cd conftest.dir
3872 # We will build objects and dependencies in a subdirectory because
3873 # it helps to detect inapplicable dependency modes. For instance
3874 # both Tru64's cc and ICC support -MD to output dependencies as a
3875 # side effect of compilation, but ICC will put the dependencies in
3876 # the current directory while Tru64 will put them in the object
3877 # directory.
3878 mkdir sub
3879
3880 am_cv_CXX_dependencies_compiler_type=none
3881 if test "$am_compiler_list" = ""; then
3882 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3883 fi
3884 am__universal=false
3885 case " $depcc " in #(
3886 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3887 esac
3888
3889 for depmode in $am_compiler_list; do
3890 # Setup a source with many dependencies, because some compilers
3891 # like to wrap large dependency lists on column 80 (with \), and
3892 # we should not choose a depcomp mode which is confused by this.
3893 #
3894 # We need to recreate these files for each test, as the compiler may
3895 # overwrite some of them when testing with obscure command lines.
3896 # This happens at least with the AIX C compiler.
3897 : > sub/conftest.c
3898 for i in 1 2 3 4 5 6; do
3899 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3900 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3901 # Solaris 8's {/usr,}/bin/sh.
3902 touch sub/conftst$i.h
3903 done
3904 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3905
3906 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3907 # mode. It turns out that the SunPro C++ compiler does not properly
3908 # handle `-M -o', and we need to detect this. Also, some Intel
3909 # versions had trouble with output in subdirs
3910 am__obj=sub/conftest.${OBJEXT-o}
3911 am__minus_obj="-o $am__obj"
3912 case $depmode in
3913 gcc)
3914 # This depmode causes a compiler race in universal mode.
3915 test "$am__universal" = false || continue
3916 ;;
3917 nosideeffect)
3918 # after this tag, mechanisms are not by side-effect, so they'll
3919 # only be used when explicitly requested
3920 if test "x$enable_dependency_tracking" = xyes; then
3921 continue
3922 else
3923 break
3924 fi
3925 ;;
3926 msvisualcpp | msvcmsys)
3927 # This compiler won't grok `-c -o', but also, the minuso test has
3928 # not run yet. These depmodes are late enough in the game, and
3929 # so weak that their functioning should not be impacted.
3930 am__obj=conftest.${OBJEXT-o}
3931 am__minus_obj=
3932 ;;
3933 none) break ;;
3934 esac
3935 if depmode=$depmode \
3936 source=sub/conftest.c object=$am__obj \
3937 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3938 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3939 >/dev/null 2>conftest.err &&
3940 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3941 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3942 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3943 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3944 # icc doesn't choke on unknown options, it will just issue warnings
3945 # or remarks (even with -Werror). So we grep stderr for any message
3946 # that says an option was ignored or not supported.
3947 # When given -MP, icc 7.0 and 7.1 complain thusly:
3948 # icc: Command line warning: ignoring option '-M'; no argument required
3949 # The diagnosis changed in icc 8.0:
3950 # icc: Command line remark: option '-MP' not supported
3951 if (grep 'ignoring option' conftest.err ||
3952 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3953 am_cv_CXX_dependencies_compiler_type=$depmode
3954 break
3955 fi
3956 fi
3957 done
3958
3959 cd ..
3960 rm -rf conftest.dir
3961else
3962 am_cv_CXX_dependencies_compiler_type=none
3963fi
3964
3965fi
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3967$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3968CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3969
3970 if
3971 test "x$enable_dependency_tracking" != xno \
3972 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3973 am__fastdepCXX_TRUE=
3974 am__fastdepCXX_FALSE='#'
3975else
3976 am__fastdepCXX_TRUE='#'
3977 am__fastdepCXX_FALSE=
3978fi
3979
3980
3981ac_ext=c
3982ac_cpp='$CPP $CPPFLAGS'
3983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986if test -n "$ac_tool_prefix"; then
3987 for ac_prog in gcc g++
3988 do
3989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3990set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3992$as_echo_n "checking for $ac_word... " >&6; }
3993if test "${ac_cv_prog_CC+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3995else
3996 if test -n "$CC"; then
3997 ac_cv_prog_CC="$CC" # Let the user override the test.
3998else
3999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000for as_dir in $PATH
4001do
4002 IFS=$as_save_IFS
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 break 2
4009 fi
4010done
4011 done
4012IFS=$as_save_IFS
4013
4014fi
4015fi
4016CC=$ac_cv_prog_CC
4017if test -n "$CC"; then
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4019$as_echo "$CC" >&6; }
4020else
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022$as_echo "no" >&6; }
4023fi
4024
4025
4026 test -n "$CC" && break
4027 done
4028fi
4029if test -z "$CC"; then
4030 ac_ct_CC=$CC
4031 for ac_prog in gcc g++
4032do
4033 # Extract the first word of "$ac_prog", so it can be a program name with args.
4034set dummy $ac_prog; ac_word=$2
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4036$as_echo_n "checking for $ac_word... " >&6; }
4037if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4038 $as_echo_n "(cached) " >&6
4039else
4040 if test -n "$ac_ct_CC"; then
4041 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4042else
4043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044for as_dir in $PATH
4045do
4046 IFS=$as_save_IFS
4047 test -z "$as_dir" && as_dir=.
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4050 ac_cv_prog_ac_ct_CC="$ac_prog"
4051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4052 break 2
4053 fi
4054done
4055 done
4056IFS=$as_save_IFS
4057
4058fi
4059fi
4060ac_ct_CC=$ac_cv_prog_ac_ct_CC
4061if test -n "$ac_ct_CC"; then
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4063$as_echo "$ac_ct_CC" >&6; }
4064else
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066$as_echo "no" >&6; }
4067fi
4068
4069
4070 test -n "$ac_ct_CC" && break
4071done
4072
4073 if test "x$ac_ct_CC" = x; then
4074 CC=""
4075 else
4076 case $cross_compiling:$ac_tool_warned in
4077yes:)
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4080ac_tool_warned=yes ;;
4081esac
4082 CC=$ac_ct_CC
4083 fi
4084fi
4085
4086
4087test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4089as_fn_error $? "no acceptable C compiler found in \$PATH
4090See \`config.log' for more details" "$LINENO" 5 ; }
4091
4092# Provide some information about the compiler.
4093$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4094set X $ac_compile
4095ac_compiler=$2
4096for ac_option in --version -v -V -qversion; do
4097 { { ac_try="$ac_compiler $ac_option >&5"
4098case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101esac
4102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4103$as_echo "$ac_try_echo"; } >&5
4104 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4105 ac_status=$?
4106 if test -s conftest.err; then
4107 sed '10a\
4108... rest of stderr output deleted ...
4109 10q' conftest.err >conftest.er1
4110 cat conftest.er1 >&5
4111 fi
4112 rm -f conftest.er1 conftest.err
4113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4114 test $ac_status = 0; }
4115done
4116
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4118$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4119if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4120 $as_echo_n "(cached) " >&6
4121else
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123/* end confdefs.h. */
4124
4125int
4126main ()
4127{
4128#ifndef __GNUC__
4129 choke me
4130#endif
4131
4132 ;
4133 return 0;
4134}
4135_ACEOF
4136if ac_fn_c_try_compile "$LINENO"; then :
4137 ac_compiler_gnu=yes
4138else
4139 ac_compiler_gnu=no
4140fi
4141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142ac_cv_c_compiler_gnu=$ac_compiler_gnu
4143
4144fi
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4146$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4147if test $ac_compiler_gnu = yes; then
4148 GCC=yes
4149else
4150 GCC=
4151fi
4152ac_test_CFLAGS=${CFLAGS+set}
4153ac_save_CFLAGS=$CFLAGS
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4155$as_echo_n "checking whether $CC accepts -g... " >&6; }
4156if test "${ac_cv_prog_cc_g+set}" = set; then :
4157 $as_echo_n "(cached) " >&6
4158else
4159 ac_save_c_werror_flag=$ac_c_werror_flag
4160 ac_c_werror_flag=yes
4161 ac_cv_prog_cc_g=no
4162 CFLAGS="-g"
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164/* end confdefs.h. */
4165
4166int
4167main ()
4168{
4169
4170 ;
4171 return 0;
4172}
4173_ACEOF
4174if ac_fn_c_try_compile "$LINENO"; then :
4175 ac_cv_prog_cc_g=yes
4176else
4177 CFLAGS=""
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179/* end confdefs.h. */
4180
4181int
4182main ()
4183{
4184
4185 ;
4186 return 0;
4187}
4188_ACEOF
4189if ac_fn_c_try_compile "$LINENO"; then :
4190
4191else
4192 ac_c_werror_flag=$ac_save_c_werror_flag
4193 CFLAGS="-g"
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195/* end confdefs.h. */
4196
4197int
4198main ()
4199{
4200
4201 ;
4202 return 0;
4203}
4204_ACEOF
4205if ac_fn_c_try_compile "$LINENO"; then :
4206 ac_cv_prog_cc_g=yes
4207fi
4208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209fi
4210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211fi
4212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213 ac_c_werror_flag=$ac_save_c_werror_flag
4214fi
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4216$as_echo "$ac_cv_prog_cc_g" >&6; }
4217if test "$ac_test_CFLAGS" = set; then
4218 CFLAGS=$ac_save_CFLAGS
4219elif test $ac_cv_prog_cc_g = yes; then
4220 if test "$GCC" = yes; then
4221 CFLAGS="-g -O2"
4222 else
4223 CFLAGS="-g"
4224 fi
4225else
4226 if test "$GCC" = yes; then
4227 CFLAGS="-O2"
4228 else
4229 CFLAGS=
4230 fi
4231fi
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4233$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4234if test "${ac_cv_prog_cc_c89+set}" = set; then :
4235 $as_echo_n "(cached) " >&6
4236else
4237 ac_cv_prog_cc_c89=no
4238ac_save_CC=$CC
4239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240/* end confdefs.h. */
4241#include <stdarg.h>
4242#include <stdio.h>
4243#include <sys/types.h>
4244#include <sys/stat.h>
4245/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4246struct buf { int x; };
4247FILE * (*rcsopen) (struct buf *, struct stat *, int);
4248static char *e (p, i)
4249 char **p;
4250 int i;
4251{
4252 return p[i];
4253}
4254static char *f (char * (*g) (char **, int), char **p, ...)
4255{
4256 char *s;
4257 va_list v;
4258 va_start (v,p);
4259 s = g (p, va_arg (v,int));
4260 va_end (v);
4261 return s;
4262}
4263
4264/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4265 function prototypes and stuff, but not '\xHH' hex character constants.
4266 These don't provoke an error unfortunately, instead are silently treated
4267 as 'x'. The following induces an error, until -std is added to get
4268 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4269 array size at least. It's necessary to write '\x00'==0 to get something
4270 that's true only with -std. */
4271int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4272
4273/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4274 inside strings and character constants. */
4275#define FOO(x) 'x'
4276int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4277
4278int test (int i, double x);
4279struct s1 {int (*f) (int a);};
4280struct s2 {int (*f) (double a);};
4281int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4282int argc;
4283char **argv;
4284int
4285main ()
4286{
4287return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4288 ;
4289 return 0;
4290}
4291_ACEOF
4292for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4293 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4294do
4295 CC="$ac_save_CC $ac_arg"
4296 if ac_fn_c_try_compile "$LINENO"; then :
4297 ac_cv_prog_cc_c89=$ac_arg
4298fi
4299rm -f core conftest.err conftest.$ac_objext
4300 test "x$ac_cv_prog_cc_c89" != "xno" && break
4301done
4302rm -f conftest.$ac_ext
4303CC=$ac_save_CC
4304
4305fi
4306# AC_CACHE_VAL
4307case "x$ac_cv_prog_cc_c89" in
4308 x)
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4310$as_echo "none needed" >&6; } ;;
4311 xno)
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4313$as_echo "unsupported" >&6; } ;;
4314 *)
4315 CC="$CC $ac_cv_prog_cc_c89"
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4317$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4318esac
4319if test "x$ac_cv_prog_cc_c89" != xno; then :
4320
4321fi
4322
4323ac_ext=c
4324ac_cpp='$CPP $CPPFLAGS'
4325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327ac_compiler_gnu=$ac_cv_c_compiler_gnu
4328
4329depcc="$CC" am_compiler_list=
4330
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4332$as_echo_n "checking dependency style of $depcc... " >&6; }
4333if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4334 $as_echo_n "(cached) " >&6
4335else
4336 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4337 # We make a subdir and do the tests there. Otherwise we can end up
4338 # making bogus files that we don't know about and never remove. For
4339 # instance it was reported that on HP-UX the gcc test will end up
4340 # making a dummy file named `D' -- because `-MD' means `put the output
4341 # in D'.
4342 mkdir conftest.dir
4343 # Copy depcomp to subdir because otherwise we won't find it if we're
4344 # using a relative directory.
4345 cp "$am_depcomp" conftest.dir
4346 cd conftest.dir
4347 # We will build objects and dependencies in a subdirectory because
4348 # it helps to detect inapplicable dependency modes. For instance
4349 # both Tru64's cc and ICC support -MD to output dependencies as a
4350 # side effect of compilation, but ICC will put the dependencies in
4351 # the current directory while Tru64 will put them in the object
4352 # directory.
4353 mkdir sub
4354
4355 am_cv_CC_dependencies_compiler_type=none
4356 if test "$am_compiler_list" = ""; then
4357 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4358 fi
4359 am__universal=false
4360 case " $depcc " in #(
4361 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4362 esac
4363
4364 for depmode in $am_compiler_list; do
4365 # Setup a source with many dependencies, because some compilers
4366 # like to wrap large dependency lists on column 80 (with \), and
4367 # we should not choose a depcomp mode which is confused by this.
4368 #
4369 # We need to recreate these files for each test, as the compiler may
4370 # overwrite some of them when testing with obscure command lines.
4371 # This happens at least with the AIX C compiler.
4372 : > sub/conftest.c
4373 for i in 1 2 3 4 5 6; do
4374 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4375 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4376 # Solaris 8's {/usr,}/bin/sh.
4377 touch sub/conftst$i.h
4378 done
4379 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4380
4381 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4382 # mode. It turns out that the SunPro C++ compiler does not properly
4383 # handle `-M -o', and we need to detect this. Also, some Intel
4384 # versions had trouble with output in subdirs
4385 am__obj=sub/conftest.${OBJEXT-o}
4386 am__minus_obj="-o $am__obj"
4387 case $depmode in
4388 gcc)
4389 # This depmode causes a compiler race in universal mode.
4390 test "$am__universal" = false || continue
4391 ;;
4392 nosideeffect)
4393 # after this tag, mechanisms are not by side-effect, so they'll
4394 # only be used when explicitly requested
4395 if test "x$enable_dependency_tracking" = xyes; then
4396 continue
4397 else
4398 break
4399 fi
4400 ;;
4401 msvisualcpp | msvcmsys)
4402 # This compiler won't grok `-c -o', but also, the minuso test has
4403 # not run yet. These depmodes are late enough in the game, and
4404 # so weak that their functioning should not be impacted.
4405 am__obj=conftest.${OBJEXT-o}
4406 am__minus_obj=
4407 ;;
4408 none) break ;;
4409 esac
4410 if depmode=$depmode \
4411 source=sub/conftest.c object=$am__obj \
4412 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4413 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4414 >/dev/null 2>conftest.err &&
4415 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4416 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4417 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4418 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4419 # icc doesn't choke on unknown options, it will just issue warnings
4420 # or remarks (even with -Werror). So we grep stderr for any message
4421 # that says an option was ignored or not supported.
4422 # When given -MP, icc 7.0 and 7.1 complain thusly:
4423 # icc: Command line warning: ignoring option '-M'; no argument required
4424 # The diagnosis changed in icc 8.0:
4425 # icc: Command line remark: option '-MP' not supported
4426 if (grep 'ignoring option' conftest.err ||
4427 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4428 am_cv_CC_dependencies_compiler_type=$depmode
4429 break
4430 fi
4431 fi
4432 done
4433
4434 cd ..
4435 rm -rf conftest.dir
4436else
4437 am_cv_CC_dependencies_compiler_type=none
4438fi
4439
4440fi
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4442$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4443CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4444
4445 if
4446 test "x$enable_dependency_tracking" != xno \
4447 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4448 am__fastdepCC_TRUE=
4449 am__fastdepCC_FALSE='#'
4450else
4451 am__fastdepCC_TRUE='#'
4452 am__fastdepCC_FALSE=
4453fi
4454
4455
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4457$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4458set x ${MAKE-make}
4459ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4460if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4461 $as_echo_n "(cached) " >&6
4462else
4463 cat >conftest.make <<\_ACEOF
4464SHELL = /bin/sh
4465all:
4466 @echo '@@@%%%=$(MAKE)=@@@%%%'
4467_ACEOF
4468# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4469case `${MAKE-make} -f conftest.make 2>/dev/null` in
4470 *@@@%%%=?*=@@@%%%*)
4471 eval ac_cv_prog_make_${ac_make}_set=yes;;
4472 *)
4473 eval ac_cv_prog_make_${ac_make}_set=no;;
4474esac
4475rm -f conftest.make
4476fi
4477if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4479$as_echo "yes" >&6; }
4480 SET_MAKE=
4481else
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483$as_echo "no" >&6; }
4484 SET_MAKE="MAKE=${MAKE-make}"
4485fi
4486
4487ac_ext=c
4488ac_cpp='$CPP $CPPFLAGS'
4489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4491ac_compiler_gnu=$ac_cv_c_compiler_gnu
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4493$as_echo_n "checking how to run the C preprocessor... " >&6; }
4494# On Suns, sometimes $CPP names a directory.
4495if test -n "$CPP" && test -d "$CPP"; then
4496 CPP=
4497fi
4498if test -z "$CPP"; then
4499 if test "${ac_cv_prog_CPP+set}" = set; then :
4500 $as_echo_n "(cached) " >&6
4501else
4502 # Double quotes because CPP needs to be expanded
4503 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4504 do
4505 ac_preproc_ok=false
4506for ac_c_preproc_warn_flag in '' yes
4507do
4508 # Use a header file that comes with gcc, so configuring glibc
4509 # with a fresh cross-compiler works.
4510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4511 # <limits.h> exists even on freestanding compilers.
4512 # On the NeXT, cc -E runs the code through the compiler's parser,
4513 # not just through cpp. "Syntax error" is here to catch this case.
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515/* end confdefs.h. */
4516@%:@ifdef __STDC__
4517@%:@ include <limits.h>
4518@%:@else
4519@%:@ include <assert.h>
4520@%:@endif
4521 Syntax error
4522_ACEOF
4523if ac_fn_c_try_cpp "$LINENO"; then :
4524
4525else
4526 # Broken: fails on valid input.
4527continue
4528fi
4529rm -f conftest.err conftest.i conftest.$ac_ext
4530
4531 # OK, works on sane cases. Now check whether nonexistent headers
4532 # can be detected and how.
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534/* end confdefs.h. */
4535@%:@include <ac_nonexistent.h>
4536_ACEOF
4537if ac_fn_c_try_cpp "$LINENO"; then :
4538 # Broken: success on invalid input.
4539continue
4540else
4541 # Passes both tests.
4542ac_preproc_ok=:
4543break
4544fi
4545rm -f conftest.err conftest.i conftest.$ac_ext
4546
4547done
4548# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4549rm -f conftest.i conftest.err conftest.$ac_ext
4550if $ac_preproc_ok; then :
4551 break
4552fi
4553
4554 done
4555 ac_cv_prog_CPP=$CPP
4556
4557fi
4558 CPP=$ac_cv_prog_CPP
4559else
4560 ac_cv_prog_CPP=$CPP
4561fi
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4563$as_echo "$CPP" >&6; }
4564ac_preproc_ok=false
4565for ac_c_preproc_warn_flag in '' yes
4566do
4567 # Use a header file that comes with gcc, so configuring glibc
4568 # with a fresh cross-compiler works.
4569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4570 # <limits.h> exists even on freestanding compilers.
4571 # On the NeXT, cc -E runs the code through the compiler's parser,
4572 # not just through cpp. "Syntax error" is here to catch this case.
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574/* end confdefs.h. */
4575@%:@ifdef __STDC__
4576@%:@ include <limits.h>
4577@%:@else
4578@%:@ include <assert.h>
4579@%:@endif
4580 Syntax error
4581_ACEOF
4582if ac_fn_c_try_cpp "$LINENO"; then :
4583
4584else
4585 # Broken: fails on valid input.
4586continue
4587fi
4588rm -f conftest.err conftest.i conftest.$ac_ext
4589
4590 # OK, works on sane cases. Now check whether nonexistent headers
4591 # can be detected and how.
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593/* end confdefs.h. */
4594@%:@include <ac_nonexistent.h>
4595_ACEOF
4596if ac_fn_c_try_cpp "$LINENO"; then :
4597 # Broken: success on invalid input.
4598continue
4599else
4600 # Passes both tests.
4601ac_preproc_ok=:
4602break
4603fi
4604rm -f conftest.err conftest.i conftest.$ac_ext
4605
4606done
4607# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4608rm -f conftest.i conftest.err conftest.$ac_ext
4609if $ac_preproc_ok; then :
4610
4611else
4612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4614as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4615See \`config.log' for more details" "$LINENO" 5 ; }
4616fi
4617
4618ac_ext=c
4619ac_cpp='$CPP $CPPFLAGS'
4620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4622ac_compiler_gnu=$ac_cv_c_compiler_gnu
4623
4624@%:@ Check whether --enable-shared was given.
4625if test "${enable_shared+set}" = set; then :
4626 enableval=$enable_shared; p=${PACKAGE-default}
4627 case $enableval in
4628 yes) enable_shared=yes ;;
4629 no) enable_shared=no ;;
4630 *)
4631 enable_shared=no
4632 # Look at the argument we got. We use all the common list separators.
4633 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4634 for pkg in $enableval; do
4635 IFS="$lt_save_ifs"
4636 if test "X$pkg" = "X$p"; then
4637 enable_shared=yes
4638 fi
4639 done
4640 IFS="$lt_save_ifs"
4641 ;;
4642 esac
4643else
4644 enable_shared=yes
4645fi
4646
4647
4648@%:@ Check whether --enable-static was given.
4649if test "${enable_static+set}" = set; then :
4650 enableval=$enable_static; p=${PACKAGE-default}
4651 case $enableval in
4652 yes) enable_static=yes ;;
4653 no) enable_static=no ;;
4654 *)
4655 enable_static=no
4656 # Look at the argument we got. We use all the common list separators.
4657 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4658 for pkg in $enableval; do
4659 IFS="$lt_save_ifs"
4660 if test "X$pkg" = "X$p"; then
4661 enable_static=yes
4662 fi
4663 done
4664 IFS="$lt_save_ifs"
4665 ;;
4666 esac
4667else
4668 enable_static=yes
4669fi
4670
4671
4672@%:@ Check whether --enable-fast-install was given.
4673if test "${enable_fast_install+set}" = set; then :
4674 enableval=$enable_fast_install; p=${PACKAGE-default}
4675 case $enableval in
4676 yes) enable_fast_install=yes ;;
4677 no) enable_fast_install=no ;;
4678 *)
4679 enable_fast_install=no
4680 # Look at the argument we got. We use all the common list separators.
4681 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4682 for pkg in $enableval; do
4683 IFS="$lt_save_ifs"
4684 if test "X$pkg" = "X$p"; then
4685 enable_fast_install=yes
4686 fi
4687 done
4688 IFS="$lt_save_ifs"
4689 ;;
4690 esac
4691else
4692 enable_fast_install=yes
4693fi
4694
4695
4696# Make sure we can run config.sub.
4697$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4698 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4699
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4701$as_echo_n "checking build system type... " >&6; }
4702if test "${ac_cv_build+set}" = set; then :
4703 $as_echo_n "(cached) " >&6
4704else
4705 ac_build_alias=$build_alias
4706test "x$ac_build_alias" = x &&
4707 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4708test "x$ac_build_alias" = x &&
4709 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4710ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4711 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4712
4713fi
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4715$as_echo "$ac_cv_build" >&6; }
4716case $ac_cv_build in
4717*-*-*) ;;
4718*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
4719esac
4720build=$ac_cv_build
4721ac_save_IFS=$IFS; IFS='-'
4722set x $ac_cv_build
4723shift
4724build_cpu=$1
4725build_vendor=$2
4726shift; shift
4727# Remember, the first character of IFS is used to create $*,
4728# except with old shells:
4729build_os=$*
4730IFS=$ac_save_IFS
4731case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4732
4733
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4735$as_echo_n "checking host system type... " >&6; }
4736if test "${ac_cv_host+set}" = set; then :
4737 $as_echo_n "(cached) " >&6
4738else
4739 if test "x$host_alias" = x; then
4740 ac_cv_host=$ac_cv_build
4741else
4742 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4743 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4744fi
4745
4746fi
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4748$as_echo "$ac_cv_host" >&6; }
4749case $ac_cv_host in
4750*-*-*) ;;
4751*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4752esac
4753host=$ac_cv_host
4754ac_save_IFS=$IFS; IFS='-'
4755set x $ac_cv_host
4756shift
4757host_cpu=$1
4758host_vendor=$2
4759shift; shift
4760# Remember, the first character of IFS is used to create $*,
4761# except with old shells:
4762host_os=$*
4763IFS=$ac_save_IFS
4764case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4765
4766
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4768$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4769if test "${lt_cv_path_SED+set}" = set; then :
4770 $as_echo_n "(cached) " >&6
4771else
4772 # Loop through the user's path and test for sed and gsed.
4773# Then use that list of sed's as ones to test for truncation.
4774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775for as_dir in $PATH
4776do
4777 IFS=$as_save_IFS
4778 test -z "$as_dir" && as_dir=.
4779 for lt_ac_prog in sed gsed; do
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4782 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4783 fi
4784 done
4785 done
4786done
4787IFS=$as_save_IFS
4788lt_ac_max=0
4789lt_ac_count=0
4790# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4791# along with /bin/sed that truncates output.
4792for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4793 test ! -f $lt_ac_sed && continue
4794 cat /dev/null > conftest.in
4795 lt_ac_count=0
4796 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4797 # Check for GNU sed and select it if it is found.
4798 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4799 lt_cv_path_SED=$lt_ac_sed
4800 break
4801 fi
4802 while true; do
4803 cat conftest.in conftest.in >conftest.tmp
4804 mv conftest.tmp conftest.in
4805 cp conftest.in conftest.nl
4806 echo >>conftest.nl
4807 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4808 cmp -s conftest.out conftest.nl || break
4809 # 10000 chars as input seems more than enough
4810 test $lt_ac_count -gt 10 && break
4811 lt_ac_count=`expr $lt_ac_count + 1`
4812 if test $lt_ac_count -gt $lt_ac_max; then
4813 lt_ac_max=$lt_ac_count
4814 lt_cv_path_SED=$lt_ac_sed
4815 fi
4816 done
4817done
4818
4819fi
4820
4821SED=$lt_cv_path_SED
4822
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4824$as_echo "$SED" >&6; }
4825
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4827$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4828if test "${ac_cv_path_GREP+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4830else
4831 if test -z "$GREP"; then
4832 ac_path_GREP_found=false
4833 # Loop through the user's path and test for each of PROGNAME-LIST
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4836do
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
4839 for ac_prog in grep ggrep; do
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4842 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4843# Check for GNU ac_path_GREP and select it if it is found.
4844 # Check for GNU $ac_path_GREP
4845case `"$ac_path_GREP" --version 2>&1` in
4846*GNU*)
4847 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4848*)
4849 ac_count=0
4850 $as_echo_n 0123456789 >"conftest.in"
4851 while :
4852 do
4853 cat "conftest.in" "conftest.in" >"conftest.tmp"
4854 mv "conftest.tmp" "conftest.in"
4855 cp "conftest.in" "conftest.nl"
4856 $as_echo 'GREP' >> "conftest.nl"
4857 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4858 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4859 as_fn_arith $ac_count + 1 && ac_count=$as_val
4860 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4861 # Best one so far, save it but keep looking for a better one
4862 ac_cv_path_GREP="$ac_path_GREP"
4863 ac_path_GREP_max=$ac_count
4864 fi
4865 # 10*(2^10) chars as input seems more than enough
4866 test $ac_count -gt 10 && break
4867 done
4868 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4869esac
4870
4871 $ac_path_GREP_found && break 3
4872 done
4873 done
4874 done
4875IFS=$as_save_IFS
4876 if test -z "$ac_cv_path_GREP"; then
4877 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4878 fi
4879else
4880 ac_cv_path_GREP=$GREP
4881fi
4882
4883fi
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4885$as_echo "$ac_cv_path_GREP" >&6; }
4886 GREP="$ac_cv_path_GREP"
4887
4888
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4890$as_echo_n "checking for egrep... " >&6; }
4891if test "${ac_cv_path_EGREP+set}" = set; then :
4892 $as_echo_n "(cached) " >&6
4893else
4894 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4895 then ac_cv_path_EGREP="$GREP -E"
4896 else
4897 if test -z "$EGREP"; then
4898 ac_path_EGREP_found=false
4899 # Loop through the user's path and test for each of PROGNAME-LIST
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4902do
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
4905 for ac_prog in egrep; do
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4908 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4909# Check for GNU ac_path_EGREP and select it if it is found.
4910 # Check for GNU $ac_path_EGREP
4911case `"$ac_path_EGREP" --version 2>&1` in
4912*GNU*)
4913 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4914*)
4915 ac_count=0
4916 $as_echo_n 0123456789 >"conftest.in"
4917 while :
4918 do
4919 cat "conftest.in" "conftest.in" >"conftest.tmp"
4920 mv "conftest.tmp" "conftest.in"
4921 cp "conftest.in" "conftest.nl"
4922 $as_echo 'EGREP' >> "conftest.nl"
4923 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4925 as_fn_arith $ac_count + 1 && ac_count=$as_val
4926 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4927 # Best one so far, save it but keep looking for a better one
4928 ac_cv_path_EGREP="$ac_path_EGREP"
4929 ac_path_EGREP_max=$ac_count
4930 fi
4931 # 10*(2^10) chars as input seems more than enough
4932 test $ac_count -gt 10 && break
4933 done
4934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4935esac
4936
4937 $ac_path_EGREP_found && break 3
4938 done
4939 done
4940 done
4941IFS=$as_save_IFS
4942 if test -z "$ac_cv_path_EGREP"; then
4943 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4944 fi
4945else
4946 ac_cv_path_EGREP=$EGREP
4947fi
4948
4949 fi
4950fi
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4952$as_echo "$ac_cv_path_EGREP" >&6; }
4953 EGREP="$ac_cv_path_EGREP"
4954
4955
4956
4957@%:@ Check whether --with-gnu-ld was given.
4958if test "${with_gnu_ld+set}" = set; then :
4959 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4960else
4961 with_gnu_ld=no
4962fi
4963
4964ac_prog=ld
4965if test "$GCC" = yes; then
4966 # Check if gcc -print-prog-name=ld gives a path.
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4968$as_echo_n "checking for ld used by $CC... " >&6; }
4969 case $host in
4970 *-*-mingw*)
4971 # gcc leaves a trailing carriage return which upsets mingw
4972 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4973 *)
4974 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4975 esac
4976 case $ac_prog in
4977 # Accept absolute paths.
4978 [\\/]* | ?:[\\/]*)
4979 re_direlt='/[^/][^/]*/\.\./'
4980 # Canonicalize the pathname of ld
4981 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4982 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4983 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4984 done
4985 test -z "$LD" && LD="$ac_prog"
4986 ;;
4987 "")
4988 # If it fails, then pretend we aren't using GCC.
4989 ac_prog=ld
4990 ;;
4991 *)
4992 # If it is relative, then search for the first ld in PATH.
4993 with_gnu_ld=unknown
4994 ;;
4995 esac
4996elif test "$with_gnu_ld" = yes; then
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4998$as_echo_n "checking for GNU ld... " >&6; }
4999else
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5001$as_echo_n "checking for non-GNU ld... " >&6; }
5002fi
5003if test "${lt_cv_path_LD+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
5005else
5006 if test -z "$LD"; then
5007 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5008 for ac_dir in $PATH; do
5009 IFS="$lt_save_ifs"
5010 test -z "$ac_dir" && ac_dir=.
5011 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5012 lt_cv_path_LD="$ac_dir/$ac_prog"
5013 # Check to see if the program is GNU ld. I'd rather use --version,
5014 # but apparently some variants of GNU ld only accept -v.
5015 # Break only if it was the GNU/non-GNU ld that we prefer.
5016 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5017 *GNU* | *'with BFD'*)
5018 test "$with_gnu_ld" != no && break
5019 ;;
5020 *)
5021 test "$with_gnu_ld" != yes && break
5022 ;;
5023 esac
5024 fi
5025 done
5026 IFS="$lt_save_ifs"
5027else
5028 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5029fi
5030fi
5031
5032LD="$lt_cv_path_LD"
5033if test -n "$LD"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5035$as_echo "$LD" >&6; }
5036else
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038$as_echo "no" >&6; }
5039fi
5040test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5042$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5043if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5044 $as_echo_n "(cached) " >&6
5045else
5046 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5047case `$LD -v 2>&1 </dev/null` in
5048*GNU* | *'with BFD'*)
5049 lt_cv_prog_gnu_ld=yes
5050 ;;
5051*)
5052 lt_cv_prog_gnu_ld=no
5053 ;;
5054esac
5055fi
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5057$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5058with_gnu_ld=$lt_cv_prog_gnu_ld
5059
5060
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5062$as_echo_n "checking for $LD option to reload object files... " >&6; }
5063if test "${lt_cv_ld_reload_flag+set}" = set; then :
5064 $as_echo_n "(cached) " >&6
5065else
5066 lt_cv_ld_reload_flag='-r'
5067fi
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5069$as_echo "$lt_cv_ld_reload_flag" >&6; }
5070reload_flag=$lt_cv_ld_reload_flag
5071case $reload_flag in
5072"" | " "*) ;;
5073*) reload_flag=" $reload_flag" ;;
5074esac
5075reload_cmds='$LD$reload_flag -o $output$reload_objs'
5076case $host_os in
5077 darwin*)
5078 if test "$GCC" = yes; then
5079 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5080 else
5081 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5082 fi
5083 ;;
5084esac
5085
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5087$as_echo_n "checking for BSD-compatible nm... " >&6; }
5088if test "${lt_cv_path_NM+set}" = set; then :
5089 $as_echo_n "(cached) " >&6
5090else
5091 if test -n "$NM"; then
5092 # Let the user override the test.
5093 lt_cv_path_NM="$NM"
5094else
5095 lt_nm_to_check="${ac_tool_prefix}nm"
5096 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5097 lt_nm_to_check="$lt_nm_to_check nm"
5098 fi
5099 for lt_tmp_nm in $lt_nm_to_check; do
5100 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5101 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5102 IFS="$lt_save_ifs"
5103 test -z "$ac_dir" && ac_dir=.
5104 tmp_nm="$ac_dir/$lt_tmp_nm"
5105 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5106 # Check to see if the nm accepts a BSD-compat flag.
5107 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5108 # nm: unknown option "B" ignored
5109 # Tru64's nm complains that /dev/null is an invalid object file
5110 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5111 */dev/null* | *'Invalid file or object type'*)
5112 lt_cv_path_NM="$tmp_nm -B"
5113 break
5114 ;;
5115 *)
5116 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5117 */dev/null*)
5118 lt_cv_path_NM="$tmp_nm -p"
5119 break
5120 ;;
5121 *)
5122 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5123 continue # so that we can try to find one that supports BSD flags
5124 ;;
5125 esac
5126 ;;
5127 esac
5128 fi
5129 done
5130 IFS="$lt_save_ifs"
5131 done
5132 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5133fi
5134fi
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5136$as_echo "$lt_cv_path_NM" >&6; }
5137NM="$lt_cv_path_NM"
5138
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5140$as_echo_n "checking whether ln -s works... " >&6; }
5141LN_S=$as_ln_s
5142if test "$LN_S" = "ln -s"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5144$as_echo "yes" >&6; }
5145else
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5147$as_echo "no, using $LN_S" >&6; }
5148fi
5149
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5151$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5152if test "${lt_cv_deplibs_check_method+set}" = set; then :
5153 $as_echo_n "(cached) " >&6
5154else
5155 lt_cv_file_magic_cmd='$MAGIC_CMD'
5156lt_cv_file_magic_test_file=
5157lt_cv_deplibs_check_method='unknown'
5158# Need to set the preceding variable on all platforms that support
5159# interlibrary dependencies.
5160# 'none' -- dependencies not supported.
5161# `unknown' -- same as none, but documents that we really don't know.
5162# 'pass_all' -- all dependencies passed with no checks.
5163# 'test_compile' -- check by making test program.
5164# 'file_magic [[regex]]' -- check by looking for files in library path
5165# which responds to the $file_magic_cmd with a given extended regex.
5166# If you have `file' or equivalent on your system and you're not sure
5167# whether `pass_all' will *always* work, you probably want this one.
5168
5169case $host_os in
5170aix[4-9]*)
5171 lt_cv_deplibs_check_method=pass_all
5172 ;;
5173
5174beos*)
5175 lt_cv_deplibs_check_method=pass_all
5176 ;;
5177
5178bsdi[45]*)
5179 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5180 lt_cv_file_magic_cmd='/usr/bin/file -L'
5181 lt_cv_file_magic_test_file=/shlib/libc.so
5182 ;;
5183
5184cygwin*)
5185 # func_win32_libid is a shell function defined in ltmain.sh
5186 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5187 lt_cv_file_magic_cmd='func_win32_libid'
5188 ;;
5189
5190mingw* | pw32*)
5191 # Base MSYS/MinGW do not provide the 'file' command needed by
5192 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5193 # unless we find 'file', for example because we are cross-compiling.
5194 if ( file / ) >/dev/null 2>&1; then
5195 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5196 lt_cv_file_magic_cmd='func_win32_libid'
5197 else
5198 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5199 lt_cv_file_magic_cmd='$OBJDUMP -f'
5200 fi
5201 ;;
5202
5203darwin* | rhapsody*)
5204 lt_cv_deplibs_check_method=pass_all
5205 ;;
5206
5207freebsd* | dragonfly*)
5208 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5209 case $host_cpu in
5210 i*86 )
5211 # Not sure whether the presence of OpenBSD here was a mistake.
5212 # Let's accept both of them until this is cleared up.
5213 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5214 lt_cv_file_magic_cmd=/usr/bin/file
5215 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5216 ;;
5217 esac
5218 else
5219 lt_cv_deplibs_check_method=pass_all
5220 fi
5221 ;;
5222
5223gnu*)
5224 lt_cv_deplibs_check_method=pass_all
5225 ;;
5226
5227hpux10.20* | hpux11*)
5228 lt_cv_file_magic_cmd=/usr/bin/file
5229 case $host_cpu in
5230 ia64*)
5231 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5232 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5233 ;;
5234 hppa*64*)
5235 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]'
5236 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5237 ;;
5238 *)
5239 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5240 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5241 ;;
5242 esac
5243 ;;
5244
5245interix[3-9]*)
5246 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5247 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5248 ;;
5249
5250irix5* | irix6* | nonstopux*)
5251 case $LD in
5252 *-32|*"-32 ") libmagic=32-bit;;
5253 *-n32|*"-n32 ") libmagic=N32;;
5254 *-64|*"-64 ") libmagic=64-bit;;
5255 *) libmagic=never-match;;
5256 esac
5257 lt_cv_deplibs_check_method=pass_all
5258 ;;
5259
5260# This must be Linux ELF.
5261linux* | k*bsd*-gnu)
5262 lt_cv_deplibs_check_method=pass_all
5263 ;;
5264
5265netbsd* | netbsdelf*-gnu)
5266 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5267 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5268 else
5269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5270 fi
5271 ;;
5272
5273newos6*)
5274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5275 lt_cv_file_magic_cmd=/usr/bin/file
5276 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5277 ;;
5278
5279nto-qnx*)
5280 lt_cv_deplibs_check_method=unknown
5281 ;;
5282
5283openbsd*)
5284 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5285 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5286 else
5287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5288 fi
5289 ;;
5290
5291osf3* | osf4* | osf5*)
5292 lt_cv_deplibs_check_method=pass_all
5293 ;;
5294
5295rdos*)
5296 lt_cv_deplibs_check_method=pass_all
5297 ;;
5298
5299solaris*)
5300 lt_cv_deplibs_check_method=pass_all
5301 ;;
5302
5303sysv4 | sysv4.3*)
5304 case $host_vendor in
5305 motorola)
5306 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]'
5307 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5308 ;;
5309 ncr)
5310 lt_cv_deplibs_check_method=pass_all
5311 ;;
5312 sequent)
5313 lt_cv_file_magic_cmd='/bin/file'
5314 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5315 ;;
5316 sni)
5317 lt_cv_file_magic_cmd='/bin/file'
5318 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5319 lt_cv_file_magic_test_file=/lib/libc.so
5320 ;;
5321 siemens)
5322 lt_cv_deplibs_check_method=pass_all
5323 ;;
5324 pc)
5325 lt_cv_deplibs_check_method=pass_all
5326 ;;
5327 esac
5328 ;;
5329
5330sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5331 lt_cv_deplibs_check_method=pass_all
5332 ;;
5333esac
5334
5335fi
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5337$as_echo "$lt_cv_deplibs_check_method" >&6; }
5338file_magic_cmd=$lt_cv_file_magic_cmd
5339deplibs_check_method=$lt_cv_deplibs_check_method
5340test -z "$deplibs_check_method" && deplibs_check_method=unknown
5341
5342
5343
5344
5345# If no C compiler was specified, use CC.
5346LTCC=${LTCC-"$CC"}
5347
5348# If no C compiler flags were specified, use CFLAGS.
5349LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5350
5351# Allow CC to be a program name with arguments.
5352compiler=$CC
5353
5354
5355@%:@ Check whether --enable-libtool-lock was given.
5356if test "${enable_libtool_lock+set}" = set; then :
5357 enableval=$enable_libtool_lock;
5358fi
5359
5360test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5361
5362# Some flags need to be propagated to the compiler or linker for good
5363# libtool support.
5364case $host in
5365ia64-*-hpux*)
5366 # Find out which ABI we are using.
5367 echo 'int i;' > conftest.$ac_ext
5368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5369 (eval $ac_compile) 2>&5
5370 ac_status=$?
5371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5372 test $ac_status = 0; }; then
5373 case `/usr/bin/file conftest.$ac_objext` in
5374 *ELF-32*)
5375 HPUX_IA64_MODE="32"
5376 ;;
5377 *ELF-64*)
5378 HPUX_IA64_MODE="64"
5379 ;;
5380 esac
5381 fi
5382 rm -rf conftest*
5383 ;;
5384*-*-irix6*)
5385 # Find out which ABI we are using.
5386 echo '#line __oline__ "configure"' > conftest.$ac_ext
5387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5388 (eval $ac_compile) 2>&5
5389 ac_status=$?
5390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5391 test $ac_status = 0; }; then
5392 if test "$lt_cv_prog_gnu_ld" = yes; then
5393 case `/usr/bin/file conftest.$ac_objext` in
5394 *32-bit*)
5395 LD="${LD-ld} -melf32bsmip"
5396 ;;
5397 *N32*)
5398 LD="${LD-ld} -melf32bmipn32"
5399 ;;
5400 *64-bit*)
5401 LD="${LD-ld} -melf64bmip"
5402 ;;
5403 esac
5404 else
5405 case `/usr/bin/file conftest.$ac_objext` in
5406 *32-bit*)
5407 LD="${LD-ld} -32"
5408 ;;
5409 *N32*)
5410 LD="${LD-ld} -n32"
5411 ;;
5412 *64-bit*)
5413 LD="${LD-ld} -64"
5414 ;;
5415 esac
5416 fi
5417 fi
5418 rm -rf conftest*
5419 ;;
5420
5421x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5422s390*-*linux*|sparc*-*linux*)
5423 # Find out which ABI we are using.
5424 echo 'int i;' > conftest.$ac_ext
5425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5426 (eval $ac_compile) 2>&5
5427 ac_status=$?
5428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5429 test $ac_status = 0; }; then
5430 case `/usr/bin/file conftest.o` in
5431 *32-bit*)
5432 case $host in
5433 x86_64-*kfreebsd*-gnu)
5434 LD="${LD-ld} -m elf_i386_fbsd"
5435 ;;
5436 x86_64-*linux*)
5437 LD="${LD-ld} -m elf_i386"
5438 ;;
5439 ppc64-*linux*|powerpc64-*linux*)
5440 LD="${LD-ld} -m elf32ppclinux"
5441 ;;
5442 s390x-*linux*)
5443 LD="${LD-ld} -m elf_s390"
5444 ;;
5445 sparc64-*linux*)
5446 LD="${LD-ld} -m elf32_sparc"
5447 ;;
5448 esac
5449 ;;
5450 *64-bit*)
5451 case $host in
5452 x86_64-*kfreebsd*-gnu)
5453 LD="${LD-ld} -m elf_x86_64_fbsd"
5454 ;;
5455 x86_64-*linux*)
5456 LD="${LD-ld} -m elf_x86_64"
5457 ;;
5458 ppc*-*linux*|powerpc*-*linux*)
5459 LD="${LD-ld} -m elf64ppc"
5460 ;;
5461 s390*-*linux*)
5462 LD="${LD-ld} -m elf64_s390"
5463 ;;
5464 sparc*-*linux*)
5465 LD="${LD-ld} -m elf64_sparc"
5466 ;;
5467 esac
5468 ;;
5469 esac
5470 fi
5471 rm -rf conftest*
5472 ;;
5473
5474*-*-sco3.2v5*)
5475 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5476 SAVE_CFLAGS="$CFLAGS"
5477 CFLAGS="$CFLAGS -belf"
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5479$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5480if test "${lt_cv_cc_needs_belf+set}" = set; then :
5481 $as_echo_n "(cached) " >&6
5482else
5483 ac_ext=c
5484ac_cpp='$CPP $CPPFLAGS'
5485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5487ac_compiler_gnu=$ac_cv_c_compiler_gnu
5488
5489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490/* end confdefs.h. */
5491
5492int
5493main ()
5494{
5495
5496 ;
5497 return 0;
5498}
5499_ACEOF
5500if ac_fn_c_try_link "$LINENO"; then :
5501 lt_cv_cc_needs_belf=yes
5502else
5503 lt_cv_cc_needs_belf=no
5504fi
5505rm -f core conftest.err conftest.$ac_objext \
5506 conftest$ac_exeext conftest.$ac_ext
5507 ac_ext=c
5508ac_cpp='$CPP $CPPFLAGS'
5509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5511ac_compiler_gnu=$ac_cv_c_compiler_gnu
5512
5513fi
5514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5515$as_echo "$lt_cv_cc_needs_belf" >&6; }
5516 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5517 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5518 CFLAGS="$SAVE_CFLAGS"
5519 fi
5520 ;;
5521sparc*-*solaris*)
5522 # Find out which ABI we are using.
5523 echo 'int i;' > conftest.$ac_ext
5524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5525 (eval $ac_compile) 2>&5
5526 ac_status=$?
5527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5528 test $ac_status = 0; }; then
5529 case `/usr/bin/file conftest.o` in
5530 *64-bit*)
5531 case $lt_cv_prog_gnu_ld in
5532 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5533 *)
5534 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5535 LD="${LD-ld} -64"
5536 fi
5537 ;;
5538 esac
5539 ;;
5540 esac
5541 fi
5542 rm -rf conftest*
5543 ;;
5544
5545
5546esac
5547
5548need_locks="$enable_libtool_lock"
5549
5550
5551
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5553$as_echo_n "checking for ANSI C header files... " >&6; }
5554if test "${ac_cv_header_stdc+set}" = set; then :
5555 $as_echo_n "(cached) " >&6
5556else
5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558/* end confdefs.h. */
5559#include <stdlib.h>
5560#include <stdarg.h>
5561#include <string.h>
5562#include <float.h>
5563
5564int
5565main ()
5566{
5567
5568 ;
5569 return 0;
5570}
5571_ACEOF
5572if ac_fn_c_try_compile "$LINENO"; then :
5573 ac_cv_header_stdc=yes
5574else
5575 ac_cv_header_stdc=no
5576fi
5577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578
5579if test $ac_cv_header_stdc = yes; then
5580 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582/* end confdefs.h. */
5583#include <string.h>
5584
5585_ACEOF
5586if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5587 $EGREP "memchr" >/dev/null 2>&1; then :
5588
5589else
5590 ac_cv_header_stdc=no
5591fi
5592rm -f conftest*
5593
5594fi
5595
5596if test $ac_cv_header_stdc = yes; then
5597 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599/* end confdefs.h. */
5600#include <stdlib.h>
5601
5602_ACEOF
5603if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5604 $EGREP "free" >/dev/null 2>&1; then :
5605
5606else
5607 ac_cv_header_stdc=no
5608fi
5609rm -f conftest*
5610
5611fi
5612
5613if test $ac_cv_header_stdc = yes; then
5614 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5615 if test "$cross_compiling" = yes; then :
5616 :
5617else
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619/* end confdefs.h. */
5620#include <ctype.h>
5621#include <stdlib.h>
5622#if ((' ' & 0x0FF) == 0x020)
5623# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5624# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5625#else
5626# define ISLOWER(c) \
5627 (('a' <= (c) && (c) <= 'i') \
5628 || ('j' <= (c) && (c) <= 'r') \
5629 || ('s' <= (c) && (c) <= 'z'))
5630# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5631#endif
5632
5633#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5634int
5635main ()
5636{
5637 int i;
5638 for (i = 0; i < 256; i++)
5639 if (XOR (islower (i), ISLOWER (i))
5640 || toupper (i) != TOUPPER (i))
5641 return 2;
5642 return 0;
5643}
5644_ACEOF
5645if ac_fn_c_try_run "$LINENO"; then :
5646
5647else
5648 ac_cv_header_stdc=no
5649fi
5650rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5651 conftest.$ac_objext conftest.beam conftest.$ac_ext
5652fi
5653
5654fi
5655fi
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5657$as_echo "$ac_cv_header_stdc" >&6; }
5658if test $ac_cv_header_stdc = yes; then
5659
5660$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
5661
5662fi
5663
5664# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5665for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5666 inttypes.h stdint.h unistd.h
5667do :
5668 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5669ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5670"
5671if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5672 cat >>confdefs.h <<_ACEOF
5673@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5674_ACEOF
5675
5676fi
5677
5678done
5679
5680
5681for ac_header in dlfcn.h
5682do :
5683 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5684if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
5685 cat >>confdefs.h <<_ACEOF
5686@%:@define HAVE_DLFCN_H 1
5687_ACEOF
5688
5689fi
5690
5691done
5692
5693
5694
5695if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5696 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5697 (test "X$CXX" != "Xg++"))) ; then
5698 ac_ext=cpp
5699ac_cpp='$CXXCPP $CPPFLAGS'
5700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5704$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5705if test -z "$CXXCPP"; then
5706 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5707 $as_echo_n "(cached) " >&6
5708else
5709 # Double quotes because CXXCPP needs to be expanded
5710 for CXXCPP in "$CXX -E" "/lib/cpp"
5711 do
5712 ac_preproc_ok=false
5713for ac_cxx_preproc_warn_flag in '' yes
5714do
5715 # Use a header file that comes with gcc, so configuring glibc
5716 # with a fresh cross-compiler works.
5717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5718 # <limits.h> exists even on freestanding compilers.
5719 # On the NeXT, cc -E runs the code through the compiler's parser,
5720 # not just through cpp. "Syntax error" is here to catch this case.
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722/* end confdefs.h. */
5723@%:@ifdef __STDC__
5724@%:@ include <limits.h>
5725@%:@else
5726@%:@ include <assert.h>
5727@%:@endif
5728 Syntax error
5729_ACEOF
5730if ac_fn_cxx_try_cpp "$LINENO"; then :
5731
5732else
5733 # Broken: fails on valid input.
5734continue
5735fi
5736rm -f conftest.err conftest.i conftest.$ac_ext
5737
5738 # OK, works on sane cases. Now check whether nonexistent headers
5739 # can be detected and how.
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741/* end confdefs.h. */
5742@%:@include <ac_nonexistent.h>
5743_ACEOF
5744if ac_fn_cxx_try_cpp "$LINENO"; then :
5745 # Broken: success on invalid input.
5746continue
5747else
5748 # Passes both tests.
5749ac_preproc_ok=:
5750break
5751fi
5752rm -f conftest.err conftest.i conftest.$ac_ext
5753
5754done
5755# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5756rm -f conftest.i conftest.err conftest.$ac_ext
5757if $ac_preproc_ok; then :
5758 break
5759fi
5760
5761 done
5762 ac_cv_prog_CXXCPP=$CXXCPP
5763
5764fi
5765 CXXCPP=$ac_cv_prog_CXXCPP
5766else
5767 ac_cv_prog_CXXCPP=$CXXCPP
5768fi
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5770$as_echo "$CXXCPP" >&6; }
5771ac_preproc_ok=false
5772for ac_cxx_preproc_warn_flag in '' yes
5773do
5774 # Use a header file that comes with gcc, so configuring glibc
5775 # with a fresh cross-compiler works.
5776 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5777 # <limits.h> exists even on freestanding compilers.
5778 # On the NeXT, cc -E runs the code through the compiler's parser,
5779 # not just through cpp. "Syntax error" is here to catch this case.
5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781/* end confdefs.h. */
5782@%:@ifdef __STDC__
5783@%:@ include <limits.h>
5784@%:@else
5785@%:@ include <assert.h>
5786@%:@endif
5787 Syntax error
5788_ACEOF
5789if ac_fn_cxx_try_cpp "$LINENO"; then :
5790
5791else
5792 # Broken: fails on valid input.
5793continue
5794fi
5795rm -f conftest.err conftest.i conftest.$ac_ext
5796
5797 # OK, works on sane cases. Now check whether nonexistent headers
5798 # can be detected and how.
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800/* end confdefs.h. */
5801@%:@include <ac_nonexistent.h>
5802_ACEOF
5803if ac_fn_cxx_try_cpp "$LINENO"; then :
5804 # Broken: success on invalid input.
5805continue
5806else
5807 # Passes both tests.
5808ac_preproc_ok=:
5809break
5810fi
5811rm -f conftest.err conftest.i conftest.$ac_ext
5812
5813done
5814# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5815rm -f conftest.i conftest.err conftest.$ac_ext
5816if $ac_preproc_ok; then :
5817
5818else
5819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5821as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5822See \`config.log' for more details" "$LINENO" 5 ; }
5823fi
5824
5825ac_ext=cpp
5826ac_cpp='$CXXCPP $CPPFLAGS'
5827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5830
5831fi
5832
5833
5834ac_ext=f
5835ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5836ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5837ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5838if test -n "$ac_tool_prefix"; then
5839 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
5840 do
5841 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5842set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844$as_echo_n "checking for $ac_word... " >&6; }
5845if test "${ac_cv_prog_F77+set}" = set; then :
5846 $as_echo_n "(cached) " >&6
5847else
5848 if test -n "$F77"; then
5849 ac_cv_prog_F77="$F77" # Let the user override the test.
5850else
5851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852for as_dir in $PATH
5853do
5854 IFS=$as_save_IFS
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 break 2
5861 fi
5862done
5863 done
5864IFS=$as_save_IFS
5865
5866fi
5867fi
5868F77=$ac_cv_prog_F77
5869if test -n "$F77"; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5871$as_echo "$F77" >&6; }
5872else
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874$as_echo "no" >&6; }
5875fi
5876
5877
5878 test -n "$F77" && break
5879 done
5880fi
5881if test -z "$F77"; then
5882 ac_ct_F77=$F77
5883 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
5884do
5885 # Extract the first word of "$ac_prog", so it can be a program name with args.
5886set dummy $ac_prog; ac_word=$2
5887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888$as_echo_n "checking for $ac_word... " >&6; }
5889if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
5890 $as_echo_n "(cached) " >&6
5891else
5892 if test -n "$ac_ct_F77"; then
5893 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5894else
5895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896for as_dir in $PATH
5897do
5898 IFS=$as_save_IFS
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902 ac_cv_prog_ac_ct_F77="$ac_prog"
5903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 break 2
5905 fi
5906done
5907 done
5908IFS=$as_save_IFS
5909
5910fi
5911fi
5912ac_ct_F77=$ac_cv_prog_ac_ct_F77
5913if test -n "$ac_ct_F77"; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5915$as_echo "$ac_ct_F77" >&6; }
5916else
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918$as_echo "no" >&6; }
5919fi
5920
5921
5922 test -n "$ac_ct_F77" && break
5923done
5924
5925 if test "x$ac_ct_F77" = x; then
5926 F77=""
5927 else
5928 case $cross_compiling:$ac_tool_warned in
5929yes:)
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5932ac_tool_warned=yes ;;
5933esac
5934 F77=$ac_ct_F77
5935 fi
5936fi
5937
5938
5939# Provide some information about the compiler.
5940$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5941set X $ac_compile
5942ac_compiler=$2
5943for ac_option in --version -v -V -qversion; do
5944 { { ac_try="$ac_compiler $ac_option >&5"
5945case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5948esac
5949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5950$as_echo "$ac_try_echo"; } >&5
5951 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5952 ac_status=$?
5953 if test -s conftest.err; then
5954 sed '10a\
5955... rest of stderr output deleted ...
5956 10q' conftest.err >conftest.er1
5957 cat conftest.er1 >&5
5958 fi
5959 rm -f conftest.er1 conftest.err
5960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5961 test $ac_status = 0; }
5962done
5963rm -f a.out
5964
5965# If we don't use `.F' as extension, the preprocessor is not run on the
5966# input file. (Note that this only needs to work for GNU compilers.)
5967ac_save_ext=$ac_ext
5968ac_ext=F
5969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
5970$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5971if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
5972 $as_echo_n "(cached) " >&6
5973else
5974 cat > conftest.$ac_ext <<_ACEOF
5975 program main
5976#ifndef __GNUC__
5977 choke me
5978#endif
5979
5980 end
5981_ACEOF
5982if ac_fn_f77_try_compile "$LINENO"; then :
5983 ac_compiler_gnu=yes
5984else
5985 ac_compiler_gnu=no
5986fi
5987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5988ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5989
5990fi
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
5992$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5993ac_ext=$ac_save_ext
5994ac_test_FFLAGS=${FFLAGS+set}
5995ac_save_FFLAGS=$FFLAGS
5996FFLAGS=
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
5998$as_echo_n "checking whether $F77 accepts -g... " >&6; }
5999if test "${ac_cv_prog_f77_g+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6001else
6002 FFLAGS=-g
6003cat > conftest.$ac_ext <<_ACEOF
6004 program main
6005
6006 end
6007_ACEOF
6008if ac_fn_f77_try_compile "$LINENO"; then :
6009 ac_cv_prog_f77_g=yes
6010else
6011 ac_cv_prog_f77_g=no
6012fi
6013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6014
6015fi
6016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6017$as_echo "$ac_cv_prog_f77_g" >&6; }
6018if test "$ac_test_FFLAGS" = set; then
6019 FFLAGS=$ac_save_FFLAGS
6020elif test $ac_cv_prog_f77_g = yes; then
6021 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6022 FFLAGS="-g -O2"
6023 else
6024 FFLAGS="-g"
6025 fi
6026else
6027 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6028 FFLAGS="-O2"
6029 else
6030 FFLAGS=
6031 fi
6032fi
6033
6034if test $ac_compiler_gnu = yes; then
6035 G77=yes
6036else
6037 G77=
6038fi
6039ac_ext=c
6040ac_cpp='$CPP $CPPFLAGS'
6041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6043ac_compiler_gnu=$ac_cv_c_compiler_gnu
6044
6045
6046
6047# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6048# find the maximum length of command line arguments
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6050$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6051if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6052 $as_echo_n "(cached) " >&6
6053else
6054 i=0
6055 teststring="ABCD"
6056
6057 case $build_os in
6058 msdosdjgpp*)
6059 # On DJGPP, this test can blow up pretty badly due to problems in libc
6060 # (any single argument exceeding 2000 bytes causes a buffer overrun
6061 # during glob expansion). Even if it were fixed, the result of this
6062 # check would be larger than it should be.
6063 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6064 ;;
6065
6066 gnu*)
6067 # Under GNU Hurd, this test is not required because there is
6068 # no limit to the length of command line arguments.
6069 # Libtool will interpret -1 as no limit whatsoever
6070 lt_cv_sys_max_cmd_len=-1;
6071 ;;
6072
6073 cygwin* | mingw*)
6074 # On Win9x/ME, this test blows up -- it succeeds, but takes
6075 # about 5 minutes as the teststring grows exponentially.
6076 # Worse, since 9x/ME are not pre-emptively multitasking,
6077 # you end up with a "frozen" computer, even though with patience
6078 # the test eventually succeeds (with a max line length of 256k).
6079 # Instead, let's just punt: use the minimum linelength reported by
6080 # all of the supported platforms: 8192 (on NT/2K/XP).
6081 lt_cv_sys_max_cmd_len=8192;
6082 ;;
6083
6084 amigaos*)
6085 # On AmigaOS with pdksh, this test takes hours, literally.
6086 # So we just punt and use a minimum line length of 8192.
6087 lt_cv_sys_max_cmd_len=8192;
6088 ;;
6089
6090 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6091 # This has been around since 386BSD, at least. Likely further.
6092 if test -x /sbin/sysctl; then
6093 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6094 elif test -x /usr/sbin/sysctl; then
6095 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6096 else
6097 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6098 fi
6099 # And add a safety zone
6100 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6101 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6102 ;;
6103
6104 interix*)
6105 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6106 lt_cv_sys_max_cmd_len=196608
6107 ;;
6108
6109 osf*)
6110 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6111 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6112 # nice to cause kernel panics so lets avoid the loop below.
6113 # First set a reasonable default.
6114 lt_cv_sys_max_cmd_len=16384
6115 #
6116 if test -x /sbin/sysconfig; then
6117 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6118 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6119 esac
6120 fi
6121 ;;
6122 sco3.2v5*)
6123 lt_cv_sys_max_cmd_len=102400
6124 ;;
6125 sysv5* | sco5v6* | sysv4.2uw2*)
6126 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6127 if test -n "$kargmax"; then
6128 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6129 else
6130 lt_cv_sys_max_cmd_len=32768
6131 fi
6132 ;;
6133 *)
6134 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6135 if test -n "$lt_cv_sys_max_cmd_len"; then
6136 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6137 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6138 else
6139 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6140 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6141 = "XX$teststring") >/dev/null 2>&1 &&
6142 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6143 lt_cv_sys_max_cmd_len=$new_result &&
6144 test $i != 17 # 1/2 MB should be enough
6145 do
6146 i=`expr $i + 1`
6147 teststring=$teststring$teststring
6148 done
6149 teststring=
6150 # Add a significant safety factor because C++ compilers can tack on massive
6151 # amounts of additional arguments before passing them to the linker.
6152 # It appears as though 1/2 is a usable value.
6153 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6154 fi
6155 ;;
6156 esac
6157
6158fi
6159
6160if test -n $lt_cv_sys_max_cmd_len ; then
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6162$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6163else
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6165$as_echo "none" >&6; }
6166fi
6167
6168
6169
6170
6171
6172# Check for command to grab the raw symbol name followed by C symbol from nm.
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6174$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6175if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6176 $as_echo_n "(cached) " >&6
6177else
6178
6179# These are sane defaults that work on at least a few old systems.
6180# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6181
6182# Character class describing NM global symbol codes.
6183symcode='[BCDEGRST]'
6184
6185# Regexp to match symbols that can be accessed directly from C.
6186sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6187
6188# Transform an extracted symbol line into a proper C declaration
6189lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6190
6191# Transform an extracted symbol line into symbol name and symbol address
6192lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6193
6194# Define system-specific variables.
6195case $host_os in
6196aix*)
6197 symcode='[BCDT]'
6198 ;;
6199cygwin* | mingw* | pw32*)
6200 symcode='[ABCDGISTW]'
6201 ;;
6202hpux*) # Its linker distinguishes data from code symbols
6203 if test "$host_cpu" = ia64; then
6204 symcode='[ABCDEGRST]'
6205 fi
6206 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6207 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6208 ;;
6209linux* | k*bsd*-gnu)
6210 if test "$host_cpu" = ia64; then
6211 symcode='[ABCDGIRSTW]'
6212 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6213 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6214 fi
6215 ;;
6216irix* | nonstopux*)
6217 symcode='[BCDEGRST]'
6218 ;;
6219osf*)
6220 symcode='[BCDEGQRST]'
6221 ;;
6222solaris*)
6223 symcode='[BDRT]'
6224 ;;
6225sco3.2v5*)
6226 symcode='[DT]'
6227 ;;
6228sysv4.2uw2*)
6229 symcode='[DT]'
6230 ;;
6231sysv5* | sco5v6* | unixware* | OpenUNIX*)
6232 symcode='[ABDT]'
6233 ;;
6234sysv4)
6235 symcode='[DFNSTU]'
6236 ;;
6237esac
6238
6239# Handle CRLF in mingw tool chain
6240opt_cr=
6241case $build_os in
6242mingw*)
6243 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6244 ;;
6245esac
6246
6247# If we're using GNU nm, then use its standard symbol codes.
6248case `$NM -V 2>&1` in
6249*GNU* | *'with BFD'*)
6250 symcode='[ABCDGIRSTW]' ;;
6251esac
6252
6253# Try without a prefix undercore, then with it.
6254for ac_symprfx in "" "_"; do
6255
6256 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6257 symxfrm="\\1 $ac_symprfx\\2 \\2"
6258
6259 # Write the raw and C identifiers.
6260 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6261
6262 # Check to see that the pipe works correctly.
6263 pipe_works=no
6264
6265 rm -f conftest*
6266 cat > conftest.$ac_ext <<EOF
6267#ifdef __cplusplus
6268extern "C" {
6269#endif
6270char nm_test_var;
6271void nm_test_func(){}
6272#ifdef __cplusplus
6273}
6274#endif
6275int main(){nm_test_var='a';nm_test_func();return(0);}
6276EOF
6277
6278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6279 (eval $ac_compile) 2>&5
6280 ac_status=$?
6281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6282 test $ac_status = 0; }; then
6283 # Now try to grab the symbols.
6284 nlist=conftest.nm
6285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6286 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6287 ac_status=$?
6288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6289 test $ac_status = 0; } && test -s "$nlist"; then
6290 # Try sorting and uniquifying the output.
6291 if sort "$nlist" | uniq > "$nlist"T; then
6292 mv -f "$nlist"T "$nlist"
6293 else
6294 rm -f "$nlist"T
6295 fi
6296
6297 # Make sure that we snagged all the symbols we need.
6298 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6299 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6300 cat <<EOF > conftest.$ac_ext
6301#ifdef __cplusplus
6302extern "C" {
6303#endif
6304
6305EOF
6306 # Now generate the symbol file.
6307 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6308
6309 cat <<EOF >> conftest.$ac_ext
6310#if defined (__STDC__) && __STDC__
6311# define lt_ptr_t void *
6312#else
6313# define lt_ptr_t char *
6314# define const
6315#endif
6316
6317/* The mapping between symbol names and symbols. */
6318const struct {
6319 const char *name;
6320 lt_ptr_t address;
6321}
6322lt_preloaded_symbols[] =
6323{
6324EOF
6325 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6326 cat <<\EOF >> conftest.$ac_ext
6327 {0, (lt_ptr_t) 0}
6328};
6329
6330#ifdef __cplusplus
6331}
6332#endif
6333EOF
6334 # Now try linking the two files.
6335 mv conftest.$ac_objext conftstm.$ac_objext
6336 lt_save_LIBS="$LIBS"
6337 lt_save_CFLAGS="$CFLAGS"
6338 LIBS="conftstm.$ac_objext"
6339 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6341 (eval $ac_link) 2>&5
6342 ac_status=$?
6343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6344 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6345 pipe_works=yes
6346 fi
6347 LIBS="$lt_save_LIBS"
6348 CFLAGS="$lt_save_CFLAGS"
6349 else
6350 echo "cannot find nm_test_func in $nlist" >&5
6351 fi
6352 else
6353 echo "cannot find nm_test_var in $nlist" >&5
6354 fi
6355 else
6356 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6357 fi
6358 else
6359 echo "$progname: failed program was:" >&5
6360 cat conftest.$ac_ext >&5
6361 fi
6362 rm -rf conftest* conftst*
6363
6364 # Do not use the global_symbol_pipe unless it works.
6365 if test "$pipe_works" = yes; then
6366 break
6367 else
6368 lt_cv_sys_global_symbol_pipe=
6369 fi
6370done
6371
6372fi
6373
6374if test -z "$lt_cv_sys_global_symbol_pipe"; then
6375 lt_cv_sys_global_symbol_to_cdecl=
6376fi
6377if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6379$as_echo "failed" >&6; }
6380else
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6382$as_echo "ok" >&6; }
6383fi
6384
6385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6386$as_echo_n "checking for objdir... " >&6; }
6387if test "${lt_cv_objdir+set}" = set; then :
6388 $as_echo_n "(cached) " >&6
6389else
6390 rm -f .libs 2>/dev/null
6391mkdir .libs 2>/dev/null
6392if test -d .libs; then
6393 lt_cv_objdir=.libs
6394else
6395 # MS-DOS does not allow filenames that begin with a dot.
6396 lt_cv_objdir=_libs
6397fi
6398rmdir .libs 2>/dev/null
6399fi
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6401$as_echo "$lt_cv_objdir" >&6; }
6402objdir=$lt_cv_objdir
6403
6404
6405
6406
6407
6408case $host_os in
6409aix3*)
6410 # AIX sometimes has problems with the GCC collect2 program. For some
6411 # reason, if we set the COLLECT_NAMES environment variable, the problems
6412 # vanish in a puff of smoke.
6413 if test "X${COLLECT_NAMES+set}" != Xset; then
6414 COLLECT_NAMES=
6415 export COLLECT_NAMES
6416 fi
6417 ;;
6418esac
6419
6420# Sed substitution that helps us do robust quoting. It backslashifies
6421# metacharacters that are still active within double-quoted strings.
6422Xsed='sed -e 1s/^X//'
6423sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6424
6425# Same as above, but do not quote variable references.
6426double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6427
6428# Sed substitution to delay expansion of an escaped shell variable in a
6429# double_quote_subst'ed string.
6430delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6431
6432# Sed substitution to avoid accidental globbing in evaled expressions
6433no_glob_subst='s/\*/\\\*/g'
6434
6435# Constants:
6436rm="rm -f"
6437
6438# Global variables:
6439default_ofile=libtool
6440can_build_shared=yes
6441
6442# All known linkers require a `.a' archive for static linking (except MSVC,
6443# which needs '.lib').
6444libext=a
6445ltmain="$ac_aux_dir/ltmain.sh"
6446ofile="$default_ofile"
6447with_gnu_ld="$lt_cv_prog_gnu_ld"
6448
6449if test -n "$ac_tool_prefix"; then
6450 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6451set dummy ${ac_tool_prefix}ar; ac_word=$2
6452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6453$as_echo_n "checking for $ac_word... " >&6; }
6454if test "${ac_cv_prog_AR+set}" = set; then :
6455 $as_echo_n "(cached) " >&6
6456else
6457 if test -n "$AR"; then
6458 ac_cv_prog_AR="$AR" # Let the user override the test.
6459else
6460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461for as_dir in $PATH
6462do
6463 IFS=$as_save_IFS
6464 test -z "$as_dir" && as_dir=.
6465 for ac_exec_ext in '' $ac_executable_extensions; do
6466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6467 ac_cv_prog_AR="${ac_tool_prefix}ar"
6468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6469 break 2
6470 fi
6471done
6472 done
6473IFS=$as_save_IFS
6474
6475fi
6476fi
6477AR=$ac_cv_prog_AR
6478if test -n "$AR"; then
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6480$as_echo "$AR" >&6; }
6481else
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483$as_echo "no" >&6; }
6484fi
6485
6486
6487fi
6488if test -z "$ac_cv_prog_AR"; then
6489 ac_ct_AR=$AR
6490 # Extract the first word of "ar", so it can be a program name with args.
6491set dummy ar; ac_word=$2
6492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493$as_echo_n "checking for $ac_word... " >&6; }
6494if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6495 $as_echo_n "(cached) " >&6
6496else
6497 if test -n "$ac_ct_AR"; then
6498 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6499else
6500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501for as_dir in $PATH
6502do
6503 IFS=$as_save_IFS
6504 test -z "$as_dir" && as_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6507 ac_cv_prog_ac_ct_AR="ar"
6508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 break 2
6510 fi
6511done
6512 done
6513IFS=$as_save_IFS
6514
6515fi
6516fi
6517ac_ct_AR=$ac_cv_prog_ac_ct_AR
6518if test -n "$ac_ct_AR"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6520$as_echo "$ac_ct_AR" >&6; }
6521else
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523$as_echo "no" >&6; }
6524fi
6525
6526 if test "x$ac_ct_AR" = x; then
6527 AR="false"
6528 else
6529 case $cross_compiling:$ac_tool_warned in
6530yes:)
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6532$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6533ac_tool_warned=yes ;;
6534esac
6535 AR=$ac_ct_AR
6536 fi
6537else
6538 AR="$ac_cv_prog_AR"
6539fi
6540
6541if test -n "$ac_tool_prefix"; then
6542 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6543set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545$as_echo_n "checking for $ac_word... " >&6; }
6546if test "${ac_cv_prog_RANLIB+set}" = set; then :
6547 $as_echo_n "(cached) " >&6
6548else
6549 if test -n "$RANLIB"; then
6550 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6551else
6552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553for as_dir in $PATH
6554do
6555 IFS=$as_save_IFS
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6559 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 break 2
6562 fi
6563done
6564 done
6565IFS=$as_save_IFS
6566
6567fi
6568fi
6569RANLIB=$ac_cv_prog_RANLIB
6570if test -n "$RANLIB"; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6572$as_echo "$RANLIB" >&6; }
6573else
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575$as_echo "no" >&6; }
6576fi
6577
6578
6579fi
6580if test -z "$ac_cv_prog_RANLIB"; then
6581 ac_ct_RANLIB=$RANLIB
6582 # Extract the first word of "ranlib", so it can be a program name with args.
6583set dummy ranlib; ac_word=$2
6584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6585$as_echo_n "checking for $ac_word... " >&6; }
6586if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6587 $as_echo_n "(cached) " >&6
6588else
6589 if test -n "$ac_ct_RANLIB"; then
6590 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6591else
6592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593for as_dir in $PATH
6594do
6595 IFS=$as_save_IFS
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6599 ac_cv_prog_ac_ct_RANLIB="ranlib"
6600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 break 2
6602 fi
6603done
6604 done
6605IFS=$as_save_IFS
6606
6607fi
6608fi
6609ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6610if test -n "$ac_ct_RANLIB"; then
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6612$as_echo "$ac_ct_RANLIB" >&6; }
6613else
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6615$as_echo "no" >&6; }
6616fi
6617
6618 if test "x$ac_ct_RANLIB" = x; then
6619 RANLIB=":"
6620 else
6621 case $cross_compiling:$ac_tool_warned in
6622yes:)
6623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6625ac_tool_warned=yes ;;
6626esac
6627 RANLIB=$ac_ct_RANLIB
6628 fi
6629else
6630 RANLIB="$ac_cv_prog_RANLIB"
6631fi
6632
6633if test -n "$ac_tool_prefix"; then
6634 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6635set dummy ${ac_tool_prefix}strip; ac_word=$2
6636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637$as_echo_n "checking for $ac_word... " >&6; }
6638if test "${ac_cv_prog_STRIP+set}" = set; then :
6639 $as_echo_n "(cached) " >&6
6640else
6641 if test -n "$STRIP"; then
6642 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6643else
6644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645for as_dir in $PATH
6646do
6647 IFS=$as_save_IFS
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 break 2
6654 fi
6655done
6656 done
6657IFS=$as_save_IFS
6658
6659fi
6660fi
6661STRIP=$ac_cv_prog_STRIP
6662if test -n "$STRIP"; then
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6664$as_echo "$STRIP" >&6; }
6665else
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667$as_echo "no" >&6; }
6668fi
6669
6670
6671fi
6672if test -z "$ac_cv_prog_STRIP"; then
6673 ac_ct_STRIP=$STRIP
6674 # Extract the first word of "strip", so it can be a program name with args.
6675set dummy strip; ac_word=$2
6676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677$as_echo_n "checking for $ac_word... " >&6; }
6678if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6679 $as_echo_n "(cached) " >&6
6680else
6681 if test -n "$ac_ct_STRIP"; then
6682 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6683else
6684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685for as_dir in $PATH
6686do
6687 IFS=$as_save_IFS
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6691 ac_cv_prog_ac_ct_STRIP="strip"
6692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 break 2
6694 fi
6695done
6696 done
6697IFS=$as_save_IFS
6698
6699fi
6700fi
6701ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6702if test -n "$ac_ct_STRIP"; then
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6704$as_echo "$ac_ct_STRIP" >&6; }
6705else
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707$as_echo "no" >&6; }
6708fi
6709
6710 if test "x$ac_ct_STRIP" = x; then
6711 STRIP=":"
6712 else
6713 case $cross_compiling:$ac_tool_warned in
6714yes:)
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6716$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6717ac_tool_warned=yes ;;
6718esac
6719 STRIP=$ac_ct_STRIP
6720 fi
6721else
6722 STRIP="$ac_cv_prog_STRIP"
6723fi
6724
6725
6726old_CC="$CC"
6727old_CFLAGS="$CFLAGS"
6728
6729# Set sane defaults for various variables
6730test -z "$AR" && AR=ar
6731test -z "$AR_FLAGS" && AR_FLAGS=cru
6732test -z "$AS" && AS=as
6733test -z "$CC" && CC=cc
6734test -z "$LTCC" && LTCC=$CC
6735test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6736test -z "$DLLTOOL" && DLLTOOL=dlltool
6737test -z "$LD" && LD=ld
6738test -z "$LN_S" && LN_S="ln -s"
6739test -z "$MAGIC_CMD" && MAGIC_CMD=file
6740test -z "$NM" && NM=nm
6741test -z "$SED" && SED=sed
6742test -z "$OBJDUMP" && OBJDUMP=objdump
6743test -z "$RANLIB" && RANLIB=:
6744test -z "$STRIP" && STRIP=:
6745test -z "$ac_objext" && ac_objext=o
6746
6747# Determine commands to create old-style static archives.
6748old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6749old_postinstall_cmds='chmod 644 $oldlib'
6750old_postuninstall_cmds=
6751
6752if test -n "$RANLIB"; then
6753 case $host_os in
6754 openbsd*)
6755 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6756 ;;
6757 *)
6758 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6759 ;;
6760 esac
6761 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6762fi
6763
6764for cc_temp in $compiler""; do
6765 case $cc_temp in
6766 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6767 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6768 \-*) ;;
6769 *) break;;
6770 esac
6771done
6772cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6773
6774
6775# Only perform the check for file, if the check method requires it
6776case $deplibs_check_method in
6777file_magic*)
6778 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6780$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6781if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6782 $as_echo_n "(cached) " >&6
6783else
6784 case $MAGIC_CMD in
6785[\\/*] | ?:[\\/]*)
6786 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6787 ;;
6788*)
6789 lt_save_MAGIC_CMD="$MAGIC_CMD"
6790 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6791 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6792 for ac_dir in $ac_dummy; do
6793 IFS="$lt_save_ifs"
6794 test -z "$ac_dir" && ac_dir=.
6795 if test -f $ac_dir/${ac_tool_prefix}file; then
6796 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6797 if test -n "$file_magic_test_file"; then
6798 case $deplibs_check_method in
6799 "file_magic "*)
6800 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6801 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6802 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6803 $EGREP "$file_magic_regex" > /dev/null; then
6804 :
6805 else
6806 cat <<EOF 1>&2
6807
6808*** Warning: the command libtool uses to detect shared libraries,
6809*** $file_magic_cmd, produces output that libtool cannot recognize.
6810*** The result is that libtool may fail to recognize shared libraries
6811*** as such. This will affect the creation of libtool libraries that
6812*** depend on shared libraries, but programs linked with such libtool
6813*** libraries will work regardless of this problem. Nevertheless, you
6814*** may want to report the problem to your system manager and/or to
6815*** bug-libtool@gnu.org
6816
6817EOF
6818 fi ;;
6819 esac
6820 fi
6821 break
6822 fi
6823 done
6824 IFS="$lt_save_ifs"
6825 MAGIC_CMD="$lt_save_MAGIC_CMD"
6826 ;;
6827esac
6828fi
6829
6830MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6831if test -n "$MAGIC_CMD"; then
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6833$as_echo "$MAGIC_CMD" >&6; }
6834else
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836$as_echo "no" >&6; }
6837fi
6838
6839if test -z "$lt_cv_path_MAGIC_CMD"; then
6840 if test -n "$ac_tool_prefix"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6842$as_echo_n "checking for file... " >&6; }
6843if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6844 $as_echo_n "(cached) " >&6
6845else
6846 case $MAGIC_CMD in
6847[\\/*] | ?:[\\/]*)
6848 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6849 ;;
6850*)
6851 lt_save_MAGIC_CMD="$MAGIC_CMD"
6852 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6853 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6854 for ac_dir in $ac_dummy; do
6855 IFS="$lt_save_ifs"
6856 test -z "$ac_dir" && ac_dir=.
6857 if test -f $ac_dir/file; then
6858 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6859 if test -n "$file_magic_test_file"; then
6860 case $deplibs_check_method in
6861 "file_magic "*)
6862 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6863 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6864 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6865 $EGREP "$file_magic_regex" > /dev/null; then
6866 :
6867 else
6868 cat <<EOF 1>&2
6869
6870*** Warning: the command libtool uses to detect shared libraries,
6871*** $file_magic_cmd, produces output that libtool cannot recognize.
6872*** The result is that libtool may fail to recognize shared libraries
6873*** as such. This will affect the creation of libtool libraries that
6874*** depend on shared libraries, but programs linked with such libtool
6875*** libraries will work regardless of this problem. Nevertheless, you
6876*** may want to report the problem to your system manager and/or to
6877*** bug-libtool@gnu.org
6878
6879EOF
6880 fi ;;
6881 esac
6882 fi
6883 break
6884 fi
6885 done
6886 IFS="$lt_save_ifs"
6887 MAGIC_CMD="$lt_save_MAGIC_CMD"
6888 ;;
6889esac
6890fi
6891
6892MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6893if test -n "$MAGIC_CMD"; then
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6895$as_echo "$MAGIC_CMD" >&6; }
6896else
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6898$as_echo "no" >&6; }
6899fi
6900
6901 else
6902 MAGIC_CMD=:
6903 fi
6904fi
6905
6906 fi
6907 ;;
6908esac
6909
6910
6911 case $host_os in
6912 rhapsody* | darwin*)
6913 if test -n "$ac_tool_prefix"; then
6914 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6915set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917$as_echo_n "checking for $ac_word... " >&6; }
6918if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6919 $as_echo_n "(cached) " >&6
6920else
6921 if test -n "$DSYMUTIL"; then
6922 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6923else
6924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925for as_dir in $PATH
6926do
6927 IFS=$as_save_IFS
6928 test -z "$as_dir" && as_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6931 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6933 break 2
6934 fi
6935done
6936 done
6937IFS=$as_save_IFS
6938
6939fi
6940fi
6941DSYMUTIL=$ac_cv_prog_DSYMUTIL
6942if test -n "$DSYMUTIL"; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6944$as_echo "$DSYMUTIL" >&6; }
6945else
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947$as_echo "no" >&6; }
6948fi
6949
6950
6951fi
6952if test -z "$ac_cv_prog_DSYMUTIL"; then
6953 ac_ct_DSYMUTIL=$DSYMUTIL
6954 # Extract the first word of "dsymutil", so it can be a program name with args.
6955set dummy dsymutil; ac_word=$2
6956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6957$as_echo_n "checking for $ac_word... " >&6; }
6958if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6959 $as_echo_n "(cached) " >&6
6960else
6961 if test -n "$ac_ct_DSYMUTIL"; then
6962 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6963else
6964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965for as_dir in $PATH
6966do
6967 IFS=$as_save_IFS
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6971 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 break 2
6974 fi
6975done
6976 done
6977IFS=$as_save_IFS
6978
6979fi
6980fi
6981ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6982if test -n "$ac_ct_DSYMUTIL"; then
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6984$as_echo "$ac_ct_DSYMUTIL" >&6; }
6985else
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6987$as_echo "no" >&6; }
6988fi
6989
6990 if test "x$ac_ct_DSYMUTIL" = x; then
6991 DSYMUTIL=":"
6992 else
6993 case $cross_compiling:$ac_tool_warned in
6994yes:)
6995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6997ac_tool_warned=yes ;;
6998esac
6999 DSYMUTIL=$ac_ct_DSYMUTIL
7000 fi
7001else
7002 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7003fi
7004
7005 if test -n "$ac_tool_prefix"; then
7006 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7007set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009$as_echo_n "checking for $ac_word... " >&6; }
7010if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7011 $as_echo_n "(cached) " >&6
7012else
7013 if test -n "$NMEDIT"; then
7014 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7015else
7016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017for as_dir in $PATH
7018do
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7023 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7026 fi
7027done
7028 done
7029IFS=$as_save_IFS
7030
7031fi
7032fi
7033NMEDIT=$ac_cv_prog_NMEDIT
7034if test -n "$NMEDIT"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7036$as_echo "$NMEDIT" >&6; }
7037else
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039$as_echo "no" >&6; }
7040fi
7041
7042
7043fi
7044if test -z "$ac_cv_prog_NMEDIT"; then
7045 ac_ct_NMEDIT=$NMEDIT
7046 # Extract the first word of "nmedit", so it can be a program name with args.
7047set dummy nmedit; ac_word=$2
7048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049$as_echo_n "checking for $ac_word... " >&6; }
7050if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7051 $as_echo_n "(cached) " >&6
7052else
7053 if test -n "$ac_ct_NMEDIT"; then
7054 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7055else
7056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057for as_dir in $PATH
7058do
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7063 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 break 2
7066 fi
7067done
7068 done
7069IFS=$as_save_IFS
7070
7071fi
7072fi
7073ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7074if test -n "$ac_ct_NMEDIT"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7076$as_echo "$ac_ct_NMEDIT" >&6; }
7077else
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079$as_echo "no" >&6; }
7080fi
7081
7082 if test "x$ac_ct_NMEDIT" = x; then
7083 NMEDIT=":"
7084 else
7085 case $cross_compiling:$ac_tool_warned in
7086yes:)
7087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7089ac_tool_warned=yes ;;
7090esac
7091 NMEDIT=$ac_ct_NMEDIT
7092 fi
7093else
7094 NMEDIT="$ac_cv_prog_NMEDIT"
7095fi
7096
7097
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7099$as_echo_n "checking for -single_module linker flag... " >&6; }
7100if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7101 $as_echo_n "(cached) " >&6
7102else
7103 lt_cv_apple_cc_single_mod=no
7104 if test -z "${LT_MULTI_MODULE}"; then
7105 # By default we will add the -single_module flag. You can override
7106 # by either setting the environment variable LT_MULTI_MODULE
7107 # non-empty at configure time, or by adding -multi_module to the
7108 # link flags.
7109 echo "int foo(void){return 1;}" > conftest.c
7110 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7111 -dynamiclib ${wl}-single_module conftest.c
7112 if test -f libconftest.dylib; then
7113 lt_cv_apple_cc_single_mod=yes
7114 rm -rf libconftest.dylib*
7115 fi
7116 rm conftest.c
7117 fi
7118fi
7119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7120$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7122$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7123if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7124 $as_echo_n "(cached) " >&6
7125else
7126 lt_cv_ld_exported_symbols_list=no
7127 save_LDFLAGS=$LDFLAGS
7128 echo "_main" > conftest.sym
7129 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7131/* end confdefs.h. */
7132
7133int
7134main ()
7135{
7136
7137 ;
7138 return 0;
7139}
7140_ACEOF
7141if ac_fn_c_try_link "$LINENO"; then :
7142 lt_cv_ld_exported_symbols_list=yes
7143else
7144 lt_cv_ld_exported_symbols_list=no
7145fi
7146rm -f core conftest.err conftest.$ac_objext \
7147 conftest$ac_exeext conftest.$ac_ext
7148 LDFLAGS="$save_LDFLAGS"
7149
7150fi
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7152$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7153 case $host_os in
7154 rhapsody* | darwin1.[0123])
7155 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7156 darwin1.*)
7157 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7158 darwin*)
7159 # if running on 10.5 or later, the deployment target defaults
7160 # to the OS version, if on x86, and 10.4, the deployment
7161 # target defaults to 10.4. Don't you love it?
7162 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7163 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7164 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7165 10.[012]*)
7166 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7167 10.*)
7168 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7169 esac
7170 ;;
7171 esac
7172 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7173 _lt_dar_single_mod='$single_module'
7174 fi
7175 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7176 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7177 else
7178 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7179 fi
7180 if test "$DSYMUTIL" != ":"; then
7181 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7182 else
7183 _lt_dsymutil=
7184 fi
7185 ;;
7186 esac
7187
7188
7189enable_dlopen=no
7190enable_win32_dll=no
7191
7192@%:@ Check whether --enable-libtool-lock was given.
7193if test "${enable_libtool_lock+set}" = set; then :
7194 enableval=$enable_libtool_lock;
7195fi
7196
7197test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7198
7199
7200@%:@ Check whether --with-pic was given.
7201if test "${with_pic+set}" = set; then :
7202 withval=$with_pic; pic_mode="$withval"
7203else
7204 pic_mode=default
7205fi
7206
7207test -z "$pic_mode" && pic_mode=default
7208
7209# Use C for the default configuration in the libtool script
7210tagname=
7211lt_save_CC="$CC"
7212ac_ext=c
7213ac_cpp='$CPP $CPPFLAGS'
7214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7216ac_compiler_gnu=$ac_cv_c_compiler_gnu
7217
7218
7219# Source file extension for C test sources.
7220ac_ext=c
7221
7222# Object file extension for compiled C test sources.
7223objext=o
7224objext=$objext
7225
7226# Code to be used in simple compile tests
7227lt_simple_compile_test_code="int some_variable = 0;"
7228
7229# Code to be used in simple link tests
7230lt_simple_link_test_code='int main(){return(0);}'
7231
7232
7233# If no C compiler was specified, use CC.
7234LTCC=${LTCC-"$CC"}
7235
7236# If no C compiler flags were specified, use CFLAGS.
7237LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7238
7239# Allow CC to be a program name with arguments.
7240compiler=$CC
7241
7242
7243# save warnings/boilerplate of simple test code
7244ac_outfile=conftest.$ac_objext
7245echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7246eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7247_lt_compiler_boilerplate=`cat conftest.err`
7248$rm conftest*
7249
7250ac_outfile=conftest.$ac_objext
7251echo "$lt_simple_link_test_code" >conftest.$ac_ext
7252eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7253_lt_linker_boilerplate=`cat conftest.err`
7254$rm -r conftest*
7255
7256
7257## CAVEAT EMPTOR:
7258## There is no encapsulation within the following macros, do not change
7259## the running order or otherwise move them around unless you know exactly
7260## what you are doing...
7261
7262lt_prog_compiler_no_builtin_flag=
7263
7264if test "$GCC" = yes; then
7265 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7266
7267
7268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7269$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7270if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7271 $as_echo_n "(cached) " >&6
7272else
7273 lt_cv_prog_compiler_rtti_exceptions=no
7274 ac_outfile=conftest.$ac_objext
7275 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7276 lt_compiler_flag="-fno-rtti -fno-exceptions"
7277 # Insert the option either (1) after the last *FLAGS variable, or
7278 # (2) before a word containing "conftest.", or (3) at the end.
7279 # Note that $ac_compile itself does not contain backslashes and begins
7280 # with a dollar sign (not a hyphen), so the echo should work correctly.
7281 # The option is referenced via a variable to avoid confusing sed.
7282 lt_compile=`echo "$ac_compile" | $SED \
7283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7285 -e 's:$: $lt_compiler_flag:'`
7286 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7287 (eval "$lt_compile" 2>conftest.err)
7288 ac_status=$?
7289 cat conftest.err >&5
7290 echo "$as_me:__oline__: \$? = $ac_status" >&5
7291 if (exit $ac_status) && test -s "$ac_outfile"; then
7292 # The compiler can only warn and ignore the option if not recognized
7293 # So say no if there are warnings other than the usual output.
7294 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7296 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7297 lt_cv_prog_compiler_rtti_exceptions=yes
7298 fi
7299 fi
7300 $rm conftest*
7301
7302fi
7303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7304$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7305
7306if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7307 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7308else
7309 :
7310fi
7311
7312fi
7313
7314lt_prog_compiler_wl=
7315lt_prog_compiler_pic=
7316lt_prog_compiler_static=
7317
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7319$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7320
7321 if test "$GCC" = yes; then
7322 lt_prog_compiler_wl='-Wl,'
7323 lt_prog_compiler_static='-static'
7324
7325 case $host_os in
7326 aix*)
7327 # All AIX code is PIC.
7328 if test "$host_cpu" = ia64; then
7329 # AIX 5 now supports IA64 processor
7330 lt_prog_compiler_static='-Bstatic'
7331 fi
7332 ;;
7333
7334 amigaos*)
7335 # FIXME: we need at least 68020 code to build shared libraries, but
7336 # adding the `-m68020' flag to GCC prevents building anything better,
7337 # like `-m68040'.
7338 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7339 ;;
7340
7341 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7342 # PIC is the default for these OSes.
7343 ;;
7344
7345 mingw* | cygwin* | pw32* | os2*)
7346 # This hack is so that the source file can tell whether it is being
7347 # built for inclusion in a dll (and should export symbols for example).
7348 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7349 # (--disable-auto-import) libraries
7350 lt_prog_compiler_pic='-DDLL_EXPORT'
7351 ;;
7352
7353 darwin* | rhapsody*)
7354 # PIC is the default on this platform
7355 # Common symbols not allowed in MH_DYLIB files
7356 lt_prog_compiler_pic='-fno-common'
7357 ;;
7358
7359 interix[3-9]*)
7360 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7361 # Instead, we relocate shared libraries at runtime.
7362 ;;
7363
7364 msdosdjgpp*)
7365 # Just because we use GCC doesn't mean we suddenly get shared libraries
7366 # on systems that don't support them.
7367 lt_prog_compiler_can_build_shared=no
7368 enable_shared=no
7369 ;;
7370
7371 sysv4*MP*)
7372 if test -d /usr/nec; then
7373 lt_prog_compiler_pic=-Kconform_pic
7374 fi
7375 ;;
7376
7377 hpux*)
7378 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7379 # not for PA HP-UX.
7380 case $host_cpu in
7381 hppa*64*|ia64*)
7382 # +Z the default
7383 ;;
7384 *)
7385 lt_prog_compiler_pic='-fPIC'
7386 ;;
7387 esac
7388 ;;
7389
7390 *)
7391 lt_prog_compiler_pic='-fPIC'
7392 ;;
7393 esac
7394 else
7395 # PORTME Check for flag to pass linker flags through the system compiler.
7396 case $host_os in
7397 aix*)
7398 lt_prog_compiler_wl='-Wl,'
7399 if test "$host_cpu" = ia64; then
7400 # AIX 5 now supports IA64 processor
7401 lt_prog_compiler_static='-Bstatic'
7402 else
7403 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7404 fi
7405 ;;
7406 darwin*)
7407 # PIC is the default on this platform
7408 # Common symbols not allowed in MH_DYLIB files
7409 case $cc_basename in
7410 xlc*)
7411 lt_prog_compiler_pic='-qnocommon'
7412 lt_prog_compiler_wl='-Wl,'
7413 ;;
7414 esac
7415 ;;
7416
7417 mingw* | cygwin* | pw32* | os2*)
7418 # This hack is so that the source file can tell whether it is being
7419 # built for inclusion in a dll (and should export symbols for example).
7420 lt_prog_compiler_pic='-DDLL_EXPORT'
7421 ;;
7422
7423 hpux9* | hpux10* | hpux11*)
7424 lt_prog_compiler_wl='-Wl,'
7425 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7426 # not for PA HP-UX.
7427 case $host_cpu in
7428 hppa*64*|ia64*)
7429 # +Z the default
7430 ;;
7431 *)
7432 lt_prog_compiler_pic='+Z'
7433 ;;
7434 esac
7435 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7436 lt_prog_compiler_static='${wl}-a ${wl}archive'
7437 ;;
7438
7439 irix5* | irix6* | nonstopux*)
7440 lt_prog_compiler_wl='-Wl,'
7441 # PIC (with -KPIC) is the default.
7442 lt_prog_compiler_static='-non_shared'
7443 ;;
7444
7445 newsos6)
7446 lt_prog_compiler_pic='-KPIC'
7447 lt_prog_compiler_static='-Bstatic'
7448 ;;
7449
7450 linux* | k*bsd*-gnu)
7451 case $cc_basename in
7452 icc* | ecc*)
7453 lt_prog_compiler_wl='-Wl,'
7454 lt_prog_compiler_pic='-KPIC'
7455 lt_prog_compiler_static='-static'
7456 ;;
7457 pgcc* | pgf77* | pgf90* | pgf95*)
7458 # Portland Group compilers (*not* the Pentium gcc compiler,
7459 # which looks to be a dead project)
7460 lt_prog_compiler_wl='-Wl,'
7461 lt_prog_compiler_pic='-fpic'
7462 lt_prog_compiler_static='-Bstatic'
7463 ;;
7464 ccc*)
7465 lt_prog_compiler_wl='-Wl,'
7466 # All Alpha code is PIC.
7467 lt_prog_compiler_static='-non_shared'
7468 ;;
7469 *)
7470 case `$CC -V 2>&1 | sed 5q` in
7471 *Sun\ C*)
7472 # Sun C 5.9
7473 lt_prog_compiler_pic='-KPIC'
7474 lt_prog_compiler_static='-Bstatic'
7475 lt_prog_compiler_wl='-Wl,'
7476 ;;
7477 *Sun\ F*)
7478 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7479 lt_prog_compiler_pic='-KPIC'
7480 lt_prog_compiler_static='-Bstatic'
7481 lt_prog_compiler_wl=''
7482 ;;
7483 esac
7484 ;;
7485 esac
7486 ;;
7487
7488 osf3* | osf4* | osf5*)
7489 lt_prog_compiler_wl='-Wl,'
7490 # All OSF/1 code is PIC.
7491 lt_prog_compiler_static='-non_shared'
7492 ;;
7493
7494 rdos*)
7495 lt_prog_compiler_static='-non_shared'
7496 ;;
7497
7498 solaris*)
7499 lt_prog_compiler_pic='-KPIC'
7500 lt_prog_compiler_static='-Bstatic'
7501 case $cc_basename in
7502 f77* | f90* | f95*)
7503 lt_prog_compiler_wl='-Qoption ld ';;
7504 *)
7505 lt_prog_compiler_wl='-Wl,';;
7506 esac
7507 ;;
7508
7509 sunos4*)
7510 lt_prog_compiler_wl='-Qoption ld '
7511 lt_prog_compiler_pic='-PIC'
7512 lt_prog_compiler_static='-Bstatic'
7513 ;;
7514
7515 sysv4 | sysv4.2uw2* | sysv4.3*)
7516 lt_prog_compiler_wl='-Wl,'
7517 lt_prog_compiler_pic='-KPIC'
7518 lt_prog_compiler_static='-Bstatic'
7519 ;;
7520
7521 sysv4*MP*)
7522 if test -d /usr/nec ;then
7523 lt_prog_compiler_pic='-Kconform_pic'
7524 lt_prog_compiler_static='-Bstatic'
7525 fi
7526 ;;
7527
7528 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7529 lt_prog_compiler_wl='-Wl,'
7530 lt_prog_compiler_pic='-KPIC'
7531 lt_prog_compiler_static='-Bstatic'
7532 ;;
7533
7534 unicos*)
7535 lt_prog_compiler_wl='-Wl,'
7536 lt_prog_compiler_can_build_shared=no
7537 ;;
7538
7539 uts4*)
7540 lt_prog_compiler_pic='-pic'
7541 lt_prog_compiler_static='-Bstatic'
7542 ;;
7543
7544 *)
7545 lt_prog_compiler_can_build_shared=no
7546 ;;
7547 esac
7548 fi
7549
7550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7551$as_echo "$lt_prog_compiler_pic" >&6; }
7552
7553#
7554# Check to make sure the PIC flag actually works.
7555#
7556if test -n "$lt_prog_compiler_pic"; then
7557
7558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7559$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7560if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7561 $as_echo_n "(cached) " >&6
7562else
7563 lt_cv_prog_compiler_pic_works=no
7564 ac_outfile=conftest.$ac_objext
7565 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7566 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7567 # Insert the option either (1) after the last *FLAGS variable, or
7568 # (2) before a word containing "conftest.", or (3) at the end.
7569 # Note that $ac_compile itself does not contain backslashes and begins
7570 # with a dollar sign (not a hyphen), so the echo should work correctly.
7571 # The option is referenced via a variable to avoid confusing sed.
7572 lt_compile=`echo "$ac_compile" | $SED \
7573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7575 -e 's:$: $lt_compiler_flag:'`
7576 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7577 (eval "$lt_compile" 2>conftest.err)
7578 ac_status=$?
7579 cat conftest.err >&5
7580 echo "$as_me:__oline__: \$? = $ac_status" >&5
7581 if (exit $ac_status) && test -s "$ac_outfile"; then
7582 # The compiler can only warn and ignore the option if not recognized
7583 # So say no if there are warnings other than the usual output.
7584 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7585 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7586 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7587 lt_cv_prog_compiler_pic_works=yes
7588 fi
7589 fi
7590 $rm conftest*
7591
7592fi
7593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7594$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7595
7596if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7597 case $lt_prog_compiler_pic in
7598 "" | " "*) ;;
7599 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7600 esac
7601else
7602 lt_prog_compiler_pic=
7603 lt_prog_compiler_can_build_shared=no
7604fi
7605
7606fi
7607case $host_os in
7608 # For platforms which do not support PIC, -DPIC is meaningless:
7609 *djgpp*)
7610 lt_prog_compiler_pic=
7611 ;;
7612 *)
7613 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7614 ;;
7615esac
7616
7617#
7618# Check to make sure the static flag actually works.
7619#
7620wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7622$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7623if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7624 $as_echo_n "(cached) " >&6
7625else
7626 lt_cv_prog_compiler_static_works=no
7627 save_LDFLAGS="$LDFLAGS"
7628 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7629 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7630 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7631 # The linker can only warn and ignore the option if not recognized
7632 # So say no if there are warnings
7633 if test -s conftest.err; then
7634 # Append any errors to the config.log.
7635 cat conftest.err 1>&5
7636 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7637 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7638 if diff conftest.exp conftest.er2 >/dev/null; then
7639 lt_cv_prog_compiler_static_works=yes
7640 fi
7641 else
7642 lt_cv_prog_compiler_static_works=yes
7643 fi
7644 fi
7645 $rm -r conftest*
7646 LDFLAGS="$save_LDFLAGS"
7647
7648fi
7649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7650$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7651
7652if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7653 :
7654else
7655 lt_prog_compiler_static=
7656fi
7657
7658
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7660$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7661if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7662 $as_echo_n "(cached) " >&6
7663else
7664 lt_cv_prog_compiler_c_o=no
7665 $rm -r conftest 2>/dev/null
7666 mkdir conftest
7667 cd conftest
7668 mkdir out
7669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7670
7671 lt_compiler_flag="-o out/conftest2.$ac_objext"
7672 # Insert the option either (1) after the last *FLAGS variable, or
7673 # (2) before a word containing "conftest.", or (3) at the end.
7674 # Note that $ac_compile itself does not contain backslashes and begins
7675 # with a dollar sign (not a hyphen), so the echo should work correctly.
7676 lt_compile=`echo "$ac_compile" | $SED \
7677 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7679 -e 's:$: $lt_compiler_flag:'`
7680 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7681 (eval "$lt_compile" 2>out/conftest.err)
7682 ac_status=$?
7683 cat out/conftest.err >&5
7684 echo "$as_me:__oline__: \$? = $ac_status" >&5
7685 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7686 then
7687 # The compiler can only warn and ignore the option if not recognized
7688 # So say no if there are warnings
7689 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7690 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7691 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7692 lt_cv_prog_compiler_c_o=yes
7693 fi
7694 fi
7695 chmod u+w . 2>&5
7696 $rm conftest*
7697 # SGI C++ compiler will create directory out/ii_files/ for
7698 # template instantiation
7699 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7700 $rm out/* && rmdir out
7701 cd ..
7702 rmdir conftest
7703 $rm conftest*
7704
7705fi
7706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7707$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7708
7709
7710hard_links="nottested"
7711if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7712 # do not overwrite the value of need_locks provided by the user
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7714$as_echo_n "checking if we can lock with hard links... " >&6; }
7715 hard_links=yes
7716 $rm conftest*
7717 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7718 touch conftest.a
7719 ln conftest.a conftest.b 2>&5 || hard_links=no
7720 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7722$as_echo "$hard_links" >&6; }
7723 if test "$hard_links" = no; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7725$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7726 need_locks=warn
7727 fi
7728else
7729 need_locks=no
7730fi
7731
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7733$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7734
7735 runpath_var=
7736 allow_undefined_flag=
7737 enable_shared_with_static_runtimes=no
7738 archive_cmds=
7739 archive_expsym_cmds=
7740 old_archive_From_new_cmds=
7741 old_archive_from_expsyms_cmds=
7742 export_dynamic_flag_spec=
7743 whole_archive_flag_spec=
7744 thread_safe_flag_spec=
7745 hardcode_libdir_flag_spec=
7746 hardcode_libdir_flag_spec_ld=
7747 hardcode_libdir_separator=
7748 hardcode_direct=no
7749 hardcode_minus_L=no
7750 hardcode_shlibpath_var=unsupported
7751 link_all_deplibs=unknown
7752 hardcode_automatic=no
7753 module_cmds=
7754 module_expsym_cmds=
7755 always_export_symbols=no
7756 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7757 # include_expsyms should be a list of space-separated symbols to be *always*
7758 # included in the symbol list
7759 include_expsyms=
7760 # exclude_expsyms can be an extended regexp of symbols to exclude
7761 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7762 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7763 # as well as any symbol that contains `d'.
7764 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7765 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7766 # platforms (ab)use it in PIC code, but their linkers get confused if
7767 # the symbol is explicitly referenced. Since portable code cannot
7768 # rely on this symbol name, it's probably fine to never include it in
7769 # preloaded symbol tables.
7770 # Exclude shared library initialization/finalization symbols.
7771 extract_expsyms_cmds=
7772 # Just being paranoid about ensuring that cc_basename is set.
7773 for cc_temp in $compiler""; do
7774 case $cc_temp in
7775 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7776 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7777 \-*) ;;
7778 *) break;;
7779 esac
7780done
7781cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7782
7783 case $host_os in
7784 cygwin* | mingw* | pw32*)
7785 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7786 # When not using gcc, we currently assume that we are using
7787 # Microsoft Visual C++.
7788 if test "$GCC" != yes; then
7789 with_gnu_ld=no
7790 fi
7791 ;;
7792 interix*)
7793 # we just hope/assume this is gcc and not c89 (= MSVC++)
7794 with_gnu_ld=yes
7795 ;;
7796 openbsd*)
7797 with_gnu_ld=no
7798 ;;
7799 esac
7800
7801 ld_shlibs=yes
7802 if test "$with_gnu_ld" = yes; then
7803 # If archive_cmds runs LD, not CC, wlarc should be empty
7804 wlarc='${wl}'
7805
7806 # Set some defaults for GNU ld with shared library support. These
7807 # are reset later if shared libraries are not supported. Putting them
7808 # here allows them to be overridden if necessary.
7809 runpath_var=LD_RUN_PATH
7810 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7811 export_dynamic_flag_spec='${wl}--export-dynamic'
7812 # ancient GNU ld didn't support --whole-archive et. al.
7813 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7814 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7815 else
7816 whole_archive_flag_spec=
7817 fi
7818 supports_anon_versioning=no
7819 case `$LD -v 2>/dev/null` in
7820 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7821 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7822 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7823 *\ 2.11.*) ;; # other 2.11 versions
7824 *) supports_anon_versioning=yes ;;
7825 esac
7826
7827 # See if GNU ld supports shared libraries.
7828 case $host_os in
7829 aix[3-9]*)
7830 # On AIX/PPC, the GNU linker is very broken
7831 if test "$host_cpu" != ia64; then
7832 ld_shlibs=no
7833 cat <<EOF 1>&2
7834
7835*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7836*** to be unable to reliably create shared libraries on AIX.
7837*** Therefore, libtool is disabling shared libraries support. If you
7838*** really care for shared libraries, you may want to modify your PATH
7839*** so that a non-GNU linker is found, and then restart.
7840
7841EOF
7842 fi
7843 ;;
7844
7845 amigaos*)
7846 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)'
7847 hardcode_libdir_flag_spec='-L$libdir'
7848 hardcode_minus_L=yes
7849
7850 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7851 # that the semantics of dynamic libraries on AmigaOS, at least up
7852 # to version 4, is to share data among multiple programs linked
7853 # with the same dynamic library. Since this doesn't match the
7854 # behavior of shared libraries on other platforms, we can't use
7855 # them.
7856 ld_shlibs=no
7857 ;;
7858
7859 beos*)
7860 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7861 allow_undefined_flag=unsupported
7862 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7863 # support --undefined. This deserves some investigation. FIXME
7864 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7865 else
7866 ld_shlibs=no
7867 fi
7868 ;;
7869
7870 cygwin* | mingw* | pw32*)
7871 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7872 # as there is no search path for DLLs.
7873 hardcode_libdir_flag_spec='-L$libdir'
7874 allow_undefined_flag=unsupported
7875 always_export_symbols=no
7876 enable_shared_with_static_runtimes=yes
7877 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7878
7879 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7881 # If the export-symbols file already is a .def file (1st line
7882 # is EXPORTS), use it as is; otherwise, prepend...
7883 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7884 cp $export_symbols $output_objdir/$soname.def;
7885 else
7886 echo EXPORTS > $output_objdir/$soname.def;
7887 cat $export_symbols >> $output_objdir/$soname.def;
7888 fi~
7889 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7890 else
7891 ld_shlibs=no
7892 fi
7893 ;;
7894
7895 interix[3-9]*)
7896 hardcode_direct=no
7897 hardcode_shlibpath_var=no
7898 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7899 export_dynamic_flag_spec='${wl}-E'
7900 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7901 # Instead, shared libraries are loaded at an image base (0x10000000 by
7902 # default) and relocated if they conflict, which is a slow very memory
7903 # consuming and fragmenting process. To avoid this, we pick a random,
7904 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7905 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7906 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7907 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'
7908 ;;
7909
7910 gnu* | linux* | k*bsd*-gnu)
7911 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7912 tmp_addflag=
7913 case $cc_basename,$host_cpu in
7914 pgcc*) # Portland Group C compiler
7915 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'
7916 tmp_addflag=' $pic_flag'
7917 ;;
7918 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7919 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'
7920 tmp_addflag=' $pic_flag -Mnomain' ;;
7921 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7922 tmp_addflag=' -i_dynamic' ;;
7923 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7924 tmp_addflag=' -i_dynamic -nofor_main' ;;
7925 ifc* | ifort*) # Intel Fortran compiler
7926 tmp_addflag=' -nofor_main' ;;
7927 esac
7928 case `$CC -V 2>&1 | sed 5q` in
7929 *Sun\ C*) # Sun C 5.9
7930 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'
7931 tmp_sharedflag='-G' ;;
7932 *Sun\ F*) # Sun Fortran 8.3
7933 tmp_sharedflag='-G' ;;
7934 *)
7935 tmp_sharedflag='-shared' ;;
7936 esac
7937 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7938
7939 if test $supports_anon_versioning = yes; then
7940 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7941 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7942 $echo "local: *; };" >> $output_objdir/$libname.ver~
7943 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7944 fi
7945 link_all_deplibs=no
7946 else
7947 ld_shlibs=no
7948 fi
7949 ;;
7950
7951 netbsd* | netbsdelf*-gnu)
7952 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7953 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7954 wlarc=
7955 else
7956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7957 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7958 fi
7959 ;;
7960
7961 solaris*)
7962 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7963 ld_shlibs=no
7964 cat <<EOF 1>&2
7965
7966*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7967*** create shared libraries on Solaris systems. Therefore, libtool
7968*** is disabling shared libraries support. We urge you to upgrade GNU
7969*** binutils to release 2.9.1 or newer. Another option is to modify
7970*** your PATH or compiler configuration so that the native linker is
7971*** used, and then restart.
7972
7973EOF
7974 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7976 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7977 else
7978 ld_shlibs=no
7979 fi
7980 ;;
7981
7982 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7983 case `$LD -v 2>&1` in
7984 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7985 ld_shlibs=no
7986 cat <<_LT_EOF 1>&2
7987
7988*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7989*** reliably create shared libraries on SCO systems. Therefore, libtool
7990*** is disabling shared libraries support. We urge you to upgrade GNU
7991*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7992*** your PATH or compiler configuration so that the native linker is
7993*** used, and then restart.
7994
7995_LT_EOF
7996 ;;
7997 *)
7998 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7999 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8001 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8002 else
8003 ld_shlibs=no
8004 fi
8005 ;;
8006 esac
8007 ;;
8008
8009 sunos4*)
8010 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8011 wlarc=
8012 hardcode_direct=yes
8013 hardcode_shlibpath_var=no
8014 ;;
8015
8016 *)
8017 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8019 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8020 else
8021 ld_shlibs=no
8022 fi
8023 ;;
8024 esac
8025
8026 if test "$ld_shlibs" = no; then
8027 runpath_var=
8028 hardcode_libdir_flag_spec=
8029 export_dynamic_flag_spec=
8030 whole_archive_flag_spec=
8031 fi
8032 else
8033 # PORTME fill in a description of your system's linker (not GNU ld)
8034 case $host_os in
8035 aix3*)
8036 allow_undefined_flag=unsupported
8037 always_export_symbols=yes
8038 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'
8039 # Note: this linker hardcodes the directories in LIBPATH if there
8040 # are no directories specified by -L.
8041 hardcode_minus_L=yes
8042 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8043 # Neither direct hardcoding nor static linking is supported with a
8044 # broken collect2.
8045 hardcode_direct=unsupported
8046 fi
8047 ;;
8048
8049 aix[4-9]*)
8050 if test "$host_cpu" = ia64; then
8051 # On IA64, the linker does run time linking by default, so we don't
8052 # have to do anything special.
8053 aix_use_runtimelinking=no
8054 exp_sym_flag='-Bexport'
8055 no_entry_flag=""
8056 else
8057 # If we're using GNU nm, then we don't want the "-C" option.
8058 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8059 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8060 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'
8061 else
8062 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'
8063 fi
8064 aix_use_runtimelinking=no
8065
8066 # Test if we are trying to use run time linking or normal
8067 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8068 # need to do runtime linking.
8069 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8070 for ld_flag in $LDFLAGS; do
8071 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8072 aix_use_runtimelinking=yes
8073 break
8074 fi
8075 done
8076 ;;
8077 esac
8078
8079 exp_sym_flag='-bexport'
8080 no_entry_flag='-bnoentry'
8081 fi
8082
8083 # When large executables or shared objects are built, AIX ld can
8084 # have problems creating the table of contents. If linking a library
8085 # or program results in "error TOC overflow" add -mminimal-toc to
8086 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8087 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8088
8089 archive_cmds=''
8090 hardcode_direct=yes
8091 hardcode_libdir_separator=':'
8092 link_all_deplibs=yes
8093
8094 if test "$GCC" = yes; then
8095 case $host_os in aix4.[012]|aix4.[012].*)
8096 # We only want to do this on AIX 4.2 and lower, the check
8097 # below for broken collect2 doesn't work under 4.3+
8098 collect2name=`${CC} -print-prog-name=collect2`
8099 if test -f "$collect2name" && \
8100 strings "$collect2name" | grep resolve_lib_name >/dev/null
8101 then
8102 # We have reworked collect2
8103 :
8104 else
8105 # We have old collect2
8106 hardcode_direct=unsupported
8107 # It fails to find uninstalled libraries when the uninstalled
8108 # path is not listed in the libpath. Setting hardcode_minus_L
8109 # to unsupported forces relinking
8110 hardcode_minus_L=yes
8111 hardcode_libdir_flag_spec='-L$libdir'
8112 hardcode_libdir_separator=
8113 fi
8114 ;;
8115 esac
8116 shared_flag='-shared'
8117 if test "$aix_use_runtimelinking" = yes; then
8118 shared_flag="$shared_flag "'${wl}-G'
8119 fi
8120 else
8121 # not using gcc
8122 if test "$host_cpu" = ia64; then
8123 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8124 # chokes on -Wl,-G. The following line is correct:
8125 shared_flag='-G'
8126 else
8127 if test "$aix_use_runtimelinking" = yes; then
8128 shared_flag='${wl}-G'
8129 else
8130 shared_flag='${wl}-bM:SRE'
8131 fi
8132 fi
8133 fi
8134
8135 # It seems that -bexpall does not export symbols beginning with
8136 # underscore (_), so it is better to generate a list of symbols to export.
8137 always_export_symbols=yes
8138 if test "$aix_use_runtimelinking" = yes; then
8139 # Warning - without using the other runtime loading flags (-brtl),
8140 # -berok will link without error, but may produce a broken library.
8141 allow_undefined_flag='-berok'
8142 # Determine the default libpath from the value encoded in an empty executable.
8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144/* end confdefs.h. */
8145
8146int
8147main ()
8148{
8149
8150 ;
8151 return 0;
8152}
8153_ACEOF
8154if ac_fn_c_try_link "$LINENO"; then :
8155
8156lt_aix_libpath_sed='
8157 /Import File Strings/,/^$/ {
8158 /^0/ {
8159 s/^0 *\(.*\)$/\1/
8160 p
8161 }
8162 }'
8163aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8164# Check for a 64-bit object if we didn't find anything.
8165if test -z "$aix_libpath"; then
8166 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8167fi
8168fi
8169rm -f core conftest.err conftest.$ac_objext \
8170 conftest$ac_exeext conftest.$ac_ext
8171if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8172
8173 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8174 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8175 else
8176 if test "$host_cpu" = ia64; then
8177 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8178 allow_undefined_flag="-z nodefs"
8179 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"
8180 else
8181 # Determine the default libpath from the value encoded in an empty executable.
8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183/* end confdefs.h. */
8184
8185int
8186main ()
8187{
8188
8189 ;
8190 return 0;
8191}
8192_ACEOF
8193if ac_fn_c_try_link "$LINENO"; then :
8194
8195lt_aix_libpath_sed='
8196 /Import File Strings/,/^$/ {
8197 /^0/ {
8198 s/^0 *\(.*\)$/\1/
8199 p
8200 }
8201 }'
8202aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8203# Check for a 64-bit object if we didn't find anything.
8204if test -z "$aix_libpath"; then
8205 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8206fi
8207fi
8208rm -f core conftest.err conftest.$ac_objext \
8209 conftest$ac_exeext conftest.$ac_ext
8210if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8211
8212 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8213 # Warning - without using the other run time loading flags,
8214 # -berok will link without error, but may produce a broken library.
8215 no_undefined_flag=' ${wl}-bernotok'
8216 allow_undefined_flag=' ${wl}-berok'
8217 # Exported symbols can be pulled into shared objects from archives
8218 whole_archive_flag_spec='$convenience'
8219 archive_cmds_need_lc=yes
8220 # This is similar to how AIX traditionally builds its shared libraries.
8221 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'
8222 fi
8223 fi
8224 ;;
8225
8226 amigaos*)
8227 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)'
8228 hardcode_libdir_flag_spec='-L$libdir'
8229 hardcode_minus_L=yes
8230 # see comment about different semantics on the GNU ld section
8231 ld_shlibs=no
8232 ;;
8233
8234 bsdi[45]*)
8235 export_dynamic_flag_spec=-rdynamic
8236 ;;
8237
8238 cygwin* | mingw* | pw32*)
8239 # When not using gcc, we currently assume that we are using
8240 # Microsoft Visual C++.
8241 # hardcode_libdir_flag_spec is actually meaningless, as there is
8242 # no search path for DLLs.
8243 hardcode_libdir_flag_spec=' '
8244 allow_undefined_flag=unsupported
8245 # Tell ltmain to make .lib files, not .a files.
8246 libext=lib
8247 # Tell ltmain to make .dll files, not .so files.
8248 shrext_cmds=".dll"
8249 # FIXME: Setting linknames here is a bad hack.
8250 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8251 # The linker will automatically build a .lib file if we build a DLL.
8252 old_archive_From_new_cmds='true'
8253 # FIXME: Should let the user specify the lib program.
8254 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8255 fix_srcfile_path='`cygpath -w "$srcfile"`'
8256 enable_shared_with_static_runtimes=yes
8257 ;;
8258
8259 darwin* | rhapsody*)
8260 case $host_os in
8261 rhapsody* | darwin1.[012])
8262 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8263 ;;
8264 *) # Darwin 1.3 on
8265 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8266 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8267 else
8268 case ${MACOSX_DEPLOYMENT_TARGET} in
8269 10.[012])
8270 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8271 ;;
8272 10.*)
8273 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8274 ;;
8275 esac
8276 fi
8277 ;;
8278 esac
8279 archive_cmds_need_lc=no
8280 hardcode_direct=no
8281 hardcode_automatic=yes
8282 hardcode_shlibpath_var=unsupported
8283 whole_archive_flag_spec=''
8284 link_all_deplibs=yes
8285 if test "$GCC" = yes ; then
8286 output_verbose_link_cmd='echo'
8287 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8288 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8289 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}"
8290 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}"
8291 else
8292 case $cc_basename in
8293 xlc*)
8294 output_verbose_link_cmd='echo'
8295 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8296 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8297 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8298 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8299 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8300 ;;
8301 *)
8302 ld_shlibs=no
8303 ;;
8304 esac
8305 fi
8306 ;;
8307
8308 dgux*)
8309 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8310 hardcode_libdir_flag_spec='-L$libdir'
8311 hardcode_shlibpath_var=no
8312 ;;
8313
8314 freebsd1*)
8315 ld_shlibs=no
8316 ;;
8317
8318 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8319 # support. Future versions do this automatically, but an explicit c++rt0.o
8320 # does not break anything, and helps significantly (at the cost of a little
8321 # extra space).
8322 freebsd2.2*)
8323 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8324 hardcode_libdir_flag_spec='-R$libdir'
8325 hardcode_direct=yes
8326 hardcode_shlibpath_var=no
8327 ;;
8328
8329 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8330 freebsd2*)
8331 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8332 hardcode_direct=yes
8333 hardcode_minus_L=yes
8334 hardcode_shlibpath_var=no
8335 ;;
8336
8337 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8338 freebsd* | dragonfly*)
8339 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8340 hardcode_libdir_flag_spec='-R$libdir'
8341 hardcode_direct=yes
8342 hardcode_shlibpath_var=no
8343 ;;
8344
8345 hpux9*)
8346 if test "$GCC" = yes; then
8347 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'
8348 else
8349 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'
8350 fi
8351 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8352 hardcode_libdir_separator=:
8353 hardcode_direct=yes
8354
8355 # hardcode_minus_L: Not really in the search PATH,
8356 # but as the default location of the library.
8357 hardcode_minus_L=yes
8358 export_dynamic_flag_spec='${wl}-E'
8359 ;;
8360
8361 hpux10*)
8362 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8363 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8364 else
8365 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8366 fi
8367 if test "$with_gnu_ld" = no; then
8368 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8369 hardcode_libdir_separator=:
8370
8371 hardcode_direct=yes
8372 export_dynamic_flag_spec='${wl}-E'
8373
8374 # hardcode_minus_L: Not really in the search PATH,
8375 # but as the default location of the library.
8376 hardcode_minus_L=yes
8377 fi
8378 ;;
8379
8380 hpux11*)
8381 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8382 case $host_cpu in
8383 hppa*64*)
8384 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8385 ;;
8386 ia64*)
8387 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8388 ;;
8389 *)
8390 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8391 ;;
8392 esac
8393 else
8394 case $host_cpu in
8395 hppa*64*)
8396 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8397 ;;
8398 ia64*)
8399 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8400 ;;
8401 *)
8402 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8403 ;;
8404 esac
8405 fi
8406 if test "$with_gnu_ld" = no; then
8407 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8408 hardcode_libdir_separator=:
8409
8410 case $host_cpu in
8411 hppa*64*|ia64*)
8412 hardcode_libdir_flag_spec_ld='+b $libdir'
8413 hardcode_direct=no
8414 hardcode_shlibpath_var=no
8415 ;;
8416 *)
8417 hardcode_direct=yes
8418 export_dynamic_flag_spec='${wl}-E'
8419
8420 # hardcode_minus_L: Not really in the search PATH,
8421 # but as the default location of the library.
8422 hardcode_minus_L=yes
8423 ;;
8424 esac
8425 fi
8426 ;;
8427
8428 irix5* | irix6* | nonstopux*)
8429 if test "$GCC" = yes; then
8430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8431 else
8432 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8433 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8434 fi
8435 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8436 hardcode_libdir_separator=:
8437 link_all_deplibs=yes
8438 ;;
8439
8440 netbsd* | netbsdelf*-gnu)
8441 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8443 else
8444 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8445 fi
8446 hardcode_libdir_flag_spec='-R$libdir'
8447 hardcode_direct=yes
8448 hardcode_shlibpath_var=no
8449 ;;
8450
8451 newsos6)
8452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8453 hardcode_direct=yes
8454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8455 hardcode_libdir_separator=:
8456 hardcode_shlibpath_var=no
8457 ;;
8458
8459 openbsd*)
8460 if test -f /usr/libexec/ld.so; then
8461 hardcode_direct=yes
8462 hardcode_shlibpath_var=no
8463 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8464 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8465 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8466 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8467 export_dynamic_flag_spec='${wl}-E'
8468 else
8469 case $host_os in
8470 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8471 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8472 hardcode_libdir_flag_spec='-R$libdir'
8473 ;;
8474 *)
8475 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8476 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8477 ;;
8478 esac
8479 fi
8480 else
8481 ld_shlibs=no
8482 fi
8483 ;;
8484
8485 os2*)
8486 hardcode_libdir_flag_spec='-L$libdir'
8487 hardcode_minus_L=yes
8488 allow_undefined_flag=unsupported
8489 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'
8490 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8491 ;;
8492
8493 osf3*)
8494 if test "$GCC" = yes; then
8495 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8496 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8497 else
8498 allow_undefined_flag=' -expect_unresolved \*'
8499 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8500 fi
8501 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8502 hardcode_libdir_separator=:
8503 ;;
8504
8505 osf4* | osf5*) # as osf3* with the addition of -msym flag
8506 if test "$GCC" = yes; then
8507 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8508 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8509 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8510 else
8511 allow_undefined_flag=' -expect_unresolved \*'
8512 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8513 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8514 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8515
8516 # Both c and cxx compiler support -rpath directly
8517 hardcode_libdir_flag_spec='-rpath $libdir'
8518 fi
8519 hardcode_libdir_separator=:
8520 ;;
8521
8522 solaris*)
8523 no_undefined_flag=' -z text'
8524 if test "$GCC" = yes; then
8525 wlarc='${wl}'
8526 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8527 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8528 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8529 else
8530 wlarc=''
8531 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8532 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8533 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8534 fi
8535 hardcode_libdir_flag_spec='-R$libdir'
8536 hardcode_shlibpath_var=no
8537 case $host_os in
8538 solaris2.[0-5] | solaris2.[0-5].*) ;;
8539 *)
8540 # The compiler driver will combine and reorder linker options,
8541 # but understands `-z linker_flag'. GCC discards it without `$wl',
8542 # but is careful enough not to reorder.
8543 # Supported since Solaris 2.6 (maybe 2.5.1?)
8544 if test "$GCC" = yes; then
8545 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8546 else
8547 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8548 fi
8549 ;;
8550 esac
8551 link_all_deplibs=yes
8552 ;;
8553
8554 sunos4*)
8555 if test "x$host_vendor" = xsequent; then
8556 # Use $CC to link under sequent, because it throws in some extra .o
8557 # files that make .init and .fini sections work.
8558 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8559 else
8560 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8561 fi
8562 hardcode_libdir_flag_spec='-L$libdir'
8563 hardcode_direct=yes
8564 hardcode_minus_L=yes
8565 hardcode_shlibpath_var=no
8566 ;;
8567
8568 sysv4)
8569 case $host_vendor in
8570 sni)
8571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8572 hardcode_direct=yes # is this really true???
8573 ;;
8574 siemens)
8575 ## LD is ld it makes a PLAMLIB
8576 ## CC just makes a GrossModule.
8577 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8578 reload_cmds='$CC -r -o $output$reload_objs'
8579 hardcode_direct=no
8580 ;;
8581 motorola)
8582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8583 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8584 ;;
8585 esac
8586 runpath_var='LD_RUN_PATH'
8587 hardcode_shlibpath_var=no
8588 ;;
8589
8590 sysv4.3*)
8591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8592 hardcode_shlibpath_var=no
8593 export_dynamic_flag_spec='-Bexport'
8594 ;;
8595
8596 sysv4*MP*)
8597 if test -d /usr/nec; then
8598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8599 hardcode_shlibpath_var=no
8600 runpath_var=LD_RUN_PATH
8601 hardcode_runpath_var=yes
8602 ld_shlibs=yes
8603 fi
8604 ;;
8605
8606 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8607 no_undefined_flag='${wl}-z,text'
8608 archive_cmds_need_lc=no
8609 hardcode_shlibpath_var=no
8610 runpath_var='LD_RUN_PATH'
8611
8612 if test "$GCC" = yes; then
8613 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8614 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8615 else
8616 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8617 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8618 fi
8619 ;;
8620
8621 sysv5* | sco3.2v5* | sco5v6*)
8622 # Note: We can NOT use -z defs as we might desire, because we do not
8623 # link with -lc, and that would cause any symbols used from libc to
8624 # always be unresolved, which means just about no library would
8625 # ever link correctly. If we're not using GNU ld we use -z text
8626 # though, which does catch some bad symbols but isn't as heavy-handed
8627 # as -z defs.
8628 no_undefined_flag='${wl}-z,text'
8629 allow_undefined_flag='${wl}-z,nodefs'
8630 archive_cmds_need_lc=no
8631 hardcode_shlibpath_var=no
8632 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8633 hardcode_libdir_separator=':'
8634 link_all_deplibs=yes
8635 export_dynamic_flag_spec='${wl}-Bexport'
8636 runpath_var='LD_RUN_PATH'
8637
8638 if test "$GCC" = yes; then
8639 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8640 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8641 else
8642 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8643 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8644 fi
8645 ;;
8646
8647 uts4*)
8648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8649 hardcode_libdir_flag_spec='-L$libdir'
8650 hardcode_shlibpath_var=no
8651 ;;
8652
8653 *)
8654 ld_shlibs=no
8655 ;;
8656 esac
8657 fi
8658
8659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8660$as_echo "$ld_shlibs" >&6; }
8661test "$ld_shlibs" = no && can_build_shared=no
8662
8663#
8664# Do we need to explicitly link libc?
8665#
8666case "x$archive_cmds_need_lc" in
8667x|xyes)
8668 # Assume -lc should be added
8669 archive_cmds_need_lc=yes
8670
8671 if test "$enable_shared" = yes && test "$GCC" = yes; then
8672 case $archive_cmds in
8673 *'~'*)
8674 # FIXME: we may have to deal with multi-command sequences.
8675 ;;
8676 '$CC '*)
8677 # Test whether the compiler implicitly links with -lc since on some
8678 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8679 # to ld, don't add -lc before -lgcc.
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8681$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8682 $rm conftest*
8683 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8684
8685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8686 (eval $ac_compile) 2>&5
8687 ac_status=$?
8688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8689 test $ac_status = 0; } 2>conftest.err; then
8690 soname=conftest
8691 lib=conftest
8692 libobjs=conftest.$ac_objext
8693 deplibs=
8694 wl=$lt_prog_compiler_wl
8695 pic_flag=$lt_prog_compiler_pic
8696 compiler_flags=-v
8697 linker_flags=-v
8698 verstring=
8699 output_objdir=.
8700 libname=conftest
8701 lt_save_allow_undefined_flag=$allow_undefined_flag
8702 allow_undefined_flag=
8703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8704 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8705 ac_status=$?
8706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8707 test $ac_status = 0; }
8708 then
8709 archive_cmds_need_lc=no
8710 else
8711 archive_cmds_need_lc=yes
8712 fi
8713 allow_undefined_flag=$lt_save_allow_undefined_flag
8714 else
8715 cat conftest.err 1>&5
8716 fi
8717 $rm conftest*
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8719$as_echo "$archive_cmds_need_lc" >&6; }
8720 ;;
8721 esac
8722 fi
8723 ;;
8724esac
8725
8726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8727$as_echo_n "checking dynamic linker characteristics... " >&6; }
8728library_names_spec=
8729libname_spec='lib$name'
8730soname_spec=
8731shrext_cmds=".so"
8732postinstall_cmds=
8733postuninstall_cmds=
8734finish_cmds=
8735finish_eval=
8736shlibpath_var=
8737shlibpath_overrides_runpath=unknown
8738version_type=none
8739dynamic_linker="$host_os ld.so"
8740sys_lib_dlsearch_path_spec="/lib /usr/lib"
8741
8742if test "$GCC" = yes; then
8743 case $host_os in
8744 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8745 *) lt_awk_arg="/^libraries:/" ;;
8746 esac
8747 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8748 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8749 # if the path contains ";" then we assume it to be the separator
8750 # otherwise default to the standard path separator (i.e. ":") - it is
8751 # assumed that no part of a normal pathname contains ";" but that should
8752 # okay in the real world where ";" in dirpaths is itself problematic.
8753 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8754 else
8755 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8756 fi
8757 # Ok, now we have the path, separated by spaces, we can step through it
8758 # and add multilib dir if necessary.
8759 lt_tmp_lt_search_path_spec=
8760 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8761 for lt_sys_path in $lt_search_path_spec; do
8762 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8763 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8764 else
8765 test -d "$lt_sys_path" && \
8766 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8767 fi
8768 done
8769 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8770BEGIN {RS=" "; FS="/|\n";} {
8771 lt_foo="";
8772 lt_count=0;
8773 for (lt_i = NF; lt_i > 0; lt_i--) {
8774 if ($lt_i != "" && $lt_i != ".") {
8775 if ($lt_i == "..") {
8776 lt_count++;
8777 } else {
8778 if (lt_count == 0) {
8779 lt_foo="/" $lt_i lt_foo;
8780 } else {
8781 lt_count--;
8782 }
8783 }
8784 }
8785 }
8786 if (lt_foo != "") { lt_freq[lt_foo]++; }
8787 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8788}'`
8789 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8790else
8791 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8792fi
8793need_lib_prefix=unknown
8794hardcode_into_libs=no
8795
8796# when you set need_version to no, make sure it does not cause -set_version
8797# flags to be left without arguments
8798need_version=unknown
8799
8800case $host_os in
8801aix3*)
8802 version_type=linux
8803 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8804 shlibpath_var=LIBPATH
8805
8806 # AIX 3 has no versioning support, so we append a major version to the name.
8807 soname_spec='${libname}${release}${shared_ext}$major'
8808 ;;
8809
8810aix[4-9]*)
8811 version_type=linux
8812 need_lib_prefix=no
8813 need_version=no
8814 hardcode_into_libs=yes
8815 if test "$host_cpu" = ia64; then
8816 # AIX 5 supports IA64
8817 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8818 shlibpath_var=LD_LIBRARY_PATH
8819 else
8820 # With GCC up to 2.95.x, collect2 would create an import file
8821 # for dependence libraries. The import file would start with
8822 # the line `#! .'. This would cause the generated library to
8823 # depend on `.', always an invalid library. This was fixed in
8824 # development snapshots of GCC prior to 3.0.
8825 case $host_os in
8826 aix4 | aix4.[01] | aix4.[01].*)
8827 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8828 echo ' yes '
8829 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8830 :
8831 else
8832 can_build_shared=no
8833 fi
8834 ;;
8835 esac
8836 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8837 # soname into executable. Probably we can add versioning support to
8838 # collect2, so additional links can be useful in future.
8839 if test "$aix_use_runtimelinking" = yes; then
8840 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8841 # instead of lib<name>.a to let people know that these are not
8842 # typical AIX shared libraries.
8843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8844 else
8845 # We preserve .a as extension for shared libraries through AIX4.2
8846 # and later when we are not doing run time linking.
8847 library_names_spec='${libname}${release}.a $libname.a'
8848 soname_spec='${libname}${release}${shared_ext}$major'
8849 fi
8850 shlibpath_var=LIBPATH
8851 fi
8852 ;;
8853
8854amigaos*)
8855 library_names_spec='$libname.ixlibrary $libname.a'
8856 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8857 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'
8858 ;;
8859
8860beos*)
8861 library_names_spec='${libname}${shared_ext}'
8862 dynamic_linker="$host_os ld.so"
8863 shlibpath_var=LIBRARY_PATH
8864 ;;
8865
8866bsdi[45]*)
8867 version_type=linux
8868 need_version=no
8869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8870 soname_spec='${libname}${release}${shared_ext}$major'
8871 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8872 shlibpath_var=LD_LIBRARY_PATH
8873 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8874 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8875 # the default ld.so.conf also contains /usr/contrib/lib and
8876 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8877 # libtool to hard-code these into programs
8878 ;;
8879
8880cygwin* | mingw* | pw32*)
8881 version_type=windows
8882 shrext_cmds=".dll"
8883 need_version=no
8884 need_lib_prefix=no
8885
8886 case $GCC,$host_os in
8887 yes,cygwin* | yes,mingw* | yes,pw32*)
8888 library_names_spec='$libname.dll.a'
8889 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8890 postinstall_cmds='base_file=`basename \${file}`~
8891 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8892 dldir=$destdir/`dirname \$dlpath`~
8893 test -d \$dldir || mkdir -p \$dldir~
8894 $install_prog $dir/$dlname \$dldir/$dlname~
8895 chmod a+x \$dldir/$dlname'
8896 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8897 dlpath=$dir/\$dldll~
8898 $rm \$dlpath'
8899 shlibpath_overrides_runpath=yes
8900
8901 case $host_os in
8902 cygwin*)
8903 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8904 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8905 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8906 ;;
8907 mingw*)
8908 # MinGW DLLs use traditional 'lib' prefix
8909 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8910 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8911 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8912 # It is most probably a Windows format PATH printed by
8913 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8914 # path with ; separators, and with drive letters. We can handle the
8915 # drive letters (cygwin fileutils understands them), so leave them,
8916 # especially as we might pass files found there to a mingw objdump,
8917 # which wouldn't understand a cygwinified path. Ahh.
8918 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8919 else
8920 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8921 fi
8922 ;;
8923 pw32*)
8924 # pw32 DLLs use 'pw' prefix rather than 'lib'
8925 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8926 ;;
8927 esac
8928 ;;
8929
8930 *)
8931 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8932 ;;
8933 esac
8934 dynamic_linker='Win32 ld.exe'
8935 # FIXME: first we should search . and the directory the executable is in
8936 shlibpath_var=PATH
8937 ;;
8938
8939darwin* | rhapsody*)
8940 dynamic_linker="$host_os dyld"
8941 version_type=darwin
8942 need_lib_prefix=no
8943 need_version=no
8944 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8945 soname_spec='${libname}${release}${major}$shared_ext'
8946 shlibpath_overrides_runpath=yes
8947 shlibpath_var=DYLD_LIBRARY_PATH
8948 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8949
8950 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8951 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8952 ;;
8953
8954dgux*)
8955 version_type=linux
8956 need_lib_prefix=no
8957 need_version=no
8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8959 soname_spec='${libname}${release}${shared_ext}$major'
8960 shlibpath_var=LD_LIBRARY_PATH
8961 ;;
8962
8963freebsd1*)
8964 dynamic_linker=no
8965 ;;
8966
8967freebsd* | dragonfly*)
8968 # DragonFly does not have aout. When/if they implement a new
8969 # versioning mechanism, adjust this.
8970 if test -x /usr/bin/objformat; then
8971 objformat=`/usr/bin/objformat`
8972 else
8973 case $host_os in
8974 freebsd[123]*) objformat=aout ;;
8975 *) objformat=elf ;;
8976 esac
8977 fi
8978 version_type=freebsd-$objformat
8979 case $version_type in
8980 freebsd-elf*)
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8982 need_version=no
8983 need_lib_prefix=no
8984 ;;
8985 freebsd-*)
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8987 need_version=yes
8988 ;;
8989 esac
8990 shlibpath_var=LD_LIBRARY_PATH
8991 case $host_os in
8992 freebsd2*)
8993 shlibpath_overrides_runpath=yes
8994 ;;
8995 freebsd3.[01]* | freebsdelf3.[01]*)
8996 shlibpath_overrides_runpath=yes
8997 hardcode_into_libs=yes
8998 ;;
8999 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9000 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9001 shlibpath_overrides_runpath=no
9002 hardcode_into_libs=yes
9003 ;;
9004 *) # from 4.6 on, and DragonFly
9005 shlibpath_overrides_runpath=yes
9006 hardcode_into_libs=yes
9007 ;;
9008 esac
9009 ;;
9010
9011gnu*)
9012 version_type=linux
9013 need_lib_prefix=no
9014 need_version=no
9015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9016 soname_spec='${libname}${release}${shared_ext}$major'
9017 shlibpath_var=LD_LIBRARY_PATH
9018 hardcode_into_libs=yes
9019 ;;
9020
9021hpux9* | hpux10* | hpux11*)
9022 # Give a soname corresponding to the major version so that dld.sl refuses to
9023 # link against other versions.
9024 version_type=sunos
9025 need_lib_prefix=no
9026 need_version=no
9027 case $host_cpu in
9028 ia64*)
9029 shrext_cmds='.so'
9030 hardcode_into_libs=yes
9031 dynamic_linker="$host_os dld.so"
9032 shlibpath_var=LD_LIBRARY_PATH
9033 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9035 soname_spec='${libname}${release}${shared_ext}$major'
9036 if test "X$HPUX_IA64_MODE" = X32; then
9037 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9038 else
9039 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9040 fi
9041 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9042 ;;
9043 hppa*64*)
9044 shrext_cmds='.sl'
9045 hardcode_into_libs=yes
9046 dynamic_linker="$host_os dld.sl"
9047 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9048 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9050 soname_spec='${libname}${release}${shared_ext}$major'
9051 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9052 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9053 ;;
9054 *)
9055 shrext_cmds='.sl'
9056 dynamic_linker="$host_os dld.sl"
9057 shlibpath_var=SHLIB_PATH
9058 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9060 soname_spec='${libname}${release}${shared_ext}$major'
9061 ;;
9062 esac
9063 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9064 postinstall_cmds='chmod 555 $lib'
9065 ;;
9066
9067interix[3-9]*)
9068 version_type=linux
9069 need_lib_prefix=no
9070 need_version=no
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9072 soname_spec='${libname}${release}${shared_ext}$major'
9073 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9074 shlibpath_var=LD_LIBRARY_PATH
9075 shlibpath_overrides_runpath=no
9076 hardcode_into_libs=yes
9077 ;;
9078
9079irix5* | irix6* | nonstopux*)
9080 case $host_os in
9081 nonstopux*) version_type=nonstopux ;;
9082 *)
9083 if test "$lt_cv_prog_gnu_ld" = yes; then
9084 version_type=linux
9085 else
9086 version_type=irix
9087 fi ;;
9088 esac
9089 need_lib_prefix=no
9090 need_version=no
9091 soname_spec='${libname}${release}${shared_ext}$major'
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9093 case $host_os in
9094 irix5* | nonstopux*)
9095 libsuff= shlibsuff=
9096 ;;
9097 *)
9098 case $LD in # libtool.m4 will add one of these switches to LD
9099 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9100 libsuff= shlibsuff= libmagic=32-bit;;
9101 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9102 libsuff=32 shlibsuff=N32 libmagic=N32;;
9103 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9104 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9105 *) libsuff= shlibsuff= libmagic=never-match;;
9106 esac
9107 ;;
9108 esac
9109 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9110 shlibpath_overrides_runpath=no
9111 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9112 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9113 hardcode_into_libs=yes
9114 ;;
9115
9116# No shared lib support for Linux oldld, aout, or coff.
9117linux*oldld* | linux*aout* | linux*coff*)
9118 dynamic_linker=no
9119 ;;
9120
9121# This must be Linux ELF.
9122linux* | k*bsd*-gnu)
9123 version_type=linux
9124 need_lib_prefix=no
9125 need_version=no
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9127 soname_spec='${libname}${release}${shared_ext}$major'
9128 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9129 shlibpath_var=LD_LIBRARY_PATH
9130 shlibpath_overrides_runpath=no
9131 # This implies no fast_install, which is unacceptable.
9132 # Some rework will be needed to allow for fast_install
9133 # before this can be enabled.
9134 hardcode_into_libs=yes
9135
9136 # Append ld.so.conf contents to the search path
9137 if test -f /etc/ld.so.conf; then
9138 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' ' '`
9139 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9140 fi
9141
9142 # We used to test for /lib/ld.so.1 and disable shared libraries on
9143 # powerpc, because MkLinux only supported shared libraries with the
9144 # GNU dynamic linker. Since this was broken with cross compilers,
9145 # most powerpc-linux boxes support dynamic linking these days and
9146 # people can always --disable-shared, the test was removed, and we
9147 # assume the GNU/Linux dynamic linker is in use.
9148 dynamic_linker='GNU/Linux ld.so'
9149 ;;
9150
9151netbsdelf*-gnu)
9152 version_type=linux
9153 need_lib_prefix=no
9154 need_version=no
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9156 soname_spec='${libname}${release}${shared_ext}$major'
9157 shlibpath_var=LD_LIBRARY_PATH
9158 shlibpath_overrides_runpath=no
9159 hardcode_into_libs=yes
9160 dynamic_linker='NetBSD ld.elf_so'
9161 ;;
9162
9163netbsd*)
9164 version_type=sunos
9165 need_lib_prefix=no
9166 need_version=no
9167 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9170 dynamic_linker='NetBSD (a.out) ld.so'
9171 else
9172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9173 soname_spec='${libname}${release}${shared_ext}$major'
9174 dynamic_linker='NetBSD ld.elf_so'
9175 fi
9176 shlibpath_var=LD_LIBRARY_PATH
9177 shlibpath_overrides_runpath=yes
9178 hardcode_into_libs=yes
9179 ;;
9180
9181newsos6)
9182 version_type=linux
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9184 shlibpath_var=LD_LIBRARY_PATH
9185 shlibpath_overrides_runpath=yes
9186 ;;
9187
9188nto-qnx*)
9189 version_type=linux
9190 need_lib_prefix=no
9191 need_version=no
9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9193 soname_spec='${libname}${release}${shared_ext}$major'
9194 shlibpath_var=LD_LIBRARY_PATH
9195 shlibpath_overrides_runpath=yes
9196 ;;
9197
9198openbsd*)
9199 version_type=sunos
9200 sys_lib_dlsearch_path_spec="/usr/lib"
9201 need_lib_prefix=no
9202 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9203 case $host_os in
9204 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9205 *) need_version=no ;;
9206 esac
9207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9209 shlibpath_var=LD_LIBRARY_PATH
9210 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9211 case $host_os in
9212 openbsd2.[89] | openbsd2.[89].*)
9213 shlibpath_overrides_runpath=no
9214 ;;
9215 *)
9216 shlibpath_overrides_runpath=yes
9217 ;;
9218 esac
9219 else
9220 shlibpath_overrides_runpath=yes
9221 fi
9222 ;;
9223
9224os2*)
9225 libname_spec='$name'
9226 shrext_cmds=".dll"
9227 need_lib_prefix=no
9228 library_names_spec='$libname${shared_ext} $libname.a'
9229 dynamic_linker='OS/2 ld.exe'
9230 shlibpath_var=LIBPATH
9231 ;;
9232
9233osf3* | osf4* | osf5*)
9234 version_type=osf
9235 need_lib_prefix=no
9236 need_version=no
9237 soname_spec='${libname}${release}${shared_ext}$major'
9238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9239 shlibpath_var=LD_LIBRARY_PATH
9240 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9241 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9242 ;;
9243
9244rdos*)
9245 dynamic_linker=no
9246 ;;
9247
9248solaris*)
9249 version_type=linux
9250 need_lib_prefix=no
9251 need_version=no
9252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253 soname_spec='${libname}${release}${shared_ext}$major'
9254 shlibpath_var=LD_LIBRARY_PATH
9255 shlibpath_overrides_runpath=yes
9256 hardcode_into_libs=yes
9257 # ldd complains unless libraries are executable
9258 postinstall_cmds='chmod +x $lib'
9259 ;;
9260
9261sunos4*)
9262 version_type=sunos
9263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9264 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9265 shlibpath_var=LD_LIBRARY_PATH
9266 shlibpath_overrides_runpath=yes
9267 if test "$with_gnu_ld" = yes; then
9268 need_lib_prefix=no
9269 fi
9270 need_version=yes
9271 ;;
9272
9273sysv4 | sysv4.3*)
9274 version_type=linux
9275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9276 soname_spec='${libname}${release}${shared_ext}$major'
9277 shlibpath_var=LD_LIBRARY_PATH
9278 case $host_vendor in
9279 sni)
9280 shlibpath_overrides_runpath=no
9281 need_lib_prefix=no
9282 export_dynamic_flag_spec='${wl}-Blargedynsym'
9283 runpath_var=LD_RUN_PATH
9284 ;;
9285 siemens)
9286 need_lib_prefix=no
9287 ;;
9288 motorola)
9289 need_lib_prefix=no
9290 need_version=no
9291 shlibpath_overrides_runpath=no
9292 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9293 ;;
9294 esac
9295 ;;
9296
9297sysv4*MP*)
9298 if test -d /usr/nec ;then
9299 version_type=linux
9300 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9301 soname_spec='$libname${shared_ext}.$major'
9302 shlibpath_var=LD_LIBRARY_PATH
9303 fi
9304 ;;
9305
9306sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9307 version_type=freebsd-elf
9308 need_lib_prefix=no
9309 need_version=no
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9311 soname_spec='${libname}${release}${shared_ext}$major'
9312 shlibpath_var=LD_LIBRARY_PATH
9313 hardcode_into_libs=yes
9314 if test "$with_gnu_ld" = yes; then
9315 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9316 shlibpath_overrides_runpath=no
9317 else
9318 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9319 shlibpath_overrides_runpath=yes
9320 case $host_os in
9321 sco3.2v5*)
9322 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9323 ;;
9324 esac
9325 fi
9326 sys_lib_dlsearch_path_spec='/usr/lib'
9327 ;;
9328
9329uts4*)
9330 version_type=linux
9331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9332 soname_spec='${libname}${release}${shared_ext}$major'
9333 shlibpath_var=LD_LIBRARY_PATH
9334 ;;
9335
9336*)
9337 dynamic_linker=no
9338 ;;
9339esac
9340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9341$as_echo "$dynamic_linker" >&6; }
9342test "$dynamic_linker" = no && can_build_shared=no
9343
9344if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
9345 $as_echo_n "(cached) " >&6
9346else
9347 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9348fi
9349
9350sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9351if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
9352 $as_echo_n "(cached) " >&6
9353else
9354 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9355fi
9356
9357sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9358
9359variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9360if test "$GCC" = yes; then
9361 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9362fi
9363
9364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9365$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9366hardcode_action=
9367if test -n "$hardcode_libdir_flag_spec" || \
9368 test -n "$runpath_var" || \
9369 test "X$hardcode_automatic" = "Xyes" ; then
9370
9371 # We can hardcode non-existant directories.
9372 if test "$hardcode_direct" != no &&
9373 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9374 # have to relink, otherwise we might link with an installed library
9375 # when we should be linking with a yet-to-be-installed one
9376 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9377 test "$hardcode_minus_L" != no; then
9378 # Linking always hardcodes the temporary library directory.
9379 hardcode_action=relink
9380 else
9381 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9382 hardcode_action=immediate
9383 fi
9384else
9385 # We cannot hardcode anything, or else we can only hardcode existing
9386 # directories.
9387 hardcode_action=unsupported
9388fi
9389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9390$as_echo "$hardcode_action" >&6; }
9391
9392if test "$hardcode_action" = relink; then
9393 # Fast installation is not supported
9394 enable_fast_install=no
9395elif test "$shlibpath_overrides_runpath" = yes ||
9396 test "$enable_shared" = no; then
9397 # Fast installation is not necessary
9398 enable_fast_install=needless
9399fi
9400
9401striplib=
9402old_striplib=
9403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9404$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9405if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9406 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9407 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9409$as_echo "yes" >&6; }
9410else
9411# FIXME - insert some real tests, host_os isn't really good enough
9412 case $host_os in
9413 darwin*)
9414 if test -n "$STRIP" ; then
9415 striplib="$STRIP -x"
9416 old_striplib="$STRIP -S"
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9418$as_echo "yes" >&6; }
9419 else
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9421$as_echo "no" >&6; }
9422fi
9423 ;;
9424 *)
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9426$as_echo "no" >&6; }
9427 ;;
9428 esac
9429fi
9430
9431if test "x$enable_dlopen" != xyes; then
9432 enable_dlopen=unknown
9433 enable_dlopen_self=unknown
9434 enable_dlopen_self_static=unknown
9435else
9436 lt_cv_dlopen=no
9437 lt_cv_dlopen_libs=
9438
9439 case $host_os in
9440 beos*)
9441 lt_cv_dlopen="load_add_on"
9442 lt_cv_dlopen_libs=
9443 lt_cv_dlopen_self=yes
9444 ;;
9445
9446 mingw* | pw32*)
9447 lt_cv_dlopen="LoadLibrary"
9448 lt_cv_dlopen_libs=
9449 ;;
9450
9451 cygwin*)
9452 lt_cv_dlopen="dlopen"
9453 lt_cv_dlopen_libs=
9454 ;;
9455
9456 darwin*)
9457 # if libdl is installed we need to link against it
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9459$as_echo_n "checking for dlopen in -ldl... " >&6; }
9460if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9461 $as_echo_n "(cached) " >&6
9462else
9463 ac_check_lib_save_LIBS=$LIBS
9464LIBS="-ldl $LIBS"
9465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9466/* end confdefs.h. */
9467
9468/* Override any GCC internal prototype to avoid an error.
9469 Use char because int might match the return type of a GCC
9470 builtin and then its argument prototype would still apply. */
9471#ifdef __cplusplus
9472extern "C"
9473#endif
9474char dlopen ();
9475int
9476main ()
9477{
9478return dlopen ();
9479 ;
9480 return 0;
9481}
9482_ACEOF
9483if ac_fn_c_try_link "$LINENO"; then :
9484 ac_cv_lib_dl_dlopen=yes
9485else
9486 ac_cv_lib_dl_dlopen=no
9487fi
9488rm -f core conftest.err conftest.$ac_objext \
9489 conftest$ac_exeext conftest.$ac_ext
9490LIBS=$ac_check_lib_save_LIBS
9491fi
9492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9493$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9494if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9495 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9496else
9497
9498 lt_cv_dlopen="dyld"
9499 lt_cv_dlopen_libs=
9500 lt_cv_dlopen_self=yes
9501
9502fi
9503
9504 ;;
9505
9506 *)
9507 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9508if test "x$ac_cv_func_shl_load" = x""yes; then :
9509 lt_cv_dlopen="shl_load"
9510else
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9512$as_echo_n "checking for shl_load in -ldld... " >&6; }
9513if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9514 $as_echo_n "(cached) " >&6
9515else
9516 ac_check_lib_save_LIBS=$LIBS
9517LIBS="-ldld $LIBS"
9518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9519/* end confdefs.h. */
9520
9521/* Override any GCC internal prototype to avoid an error.
9522 Use char because int might match the return type of a GCC
9523 builtin and then its argument prototype would still apply. */
9524#ifdef __cplusplus
9525extern "C"
9526#endif
9527char shl_load ();
9528int
9529main ()
9530{
9531return shl_load ();
9532 ;
9533 return 0;
9534}
9535_ACEOF
9536if ac_fn_c_try_link "$LINENO"; then :
9537 ac_cv_lib_dld_shl_load=yes
9538else
9539 ac_cv_lib_dld_shl_load=no
9540fi
9541rm -f core conftest.err conftest.$ac_objext \
9542 conftest$ac_exeext conftest.$ac_ext
9543LIBS=$ac_check_lib_save_LIBS
9544fi
9545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9546$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9547if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9548 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9549else
9550 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9551if test "x$ac_cv_func_dlopen" = x""yes; then :
9552 lt_cv_dlopen="dlopen"
9553else
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9555$as_echo_n "checking for dlopen in -ldl... " >&6; }
9556if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9557 $as_echo_n "(cached) " >&6
9558else
9559 ac_check_lib_save_LIBS=$LIBS
9560LIBS="-ldl $LIBS"
9561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9562/* end confdefs.h. */
9563
9564/* Override any GCC internal prototype to avoid an error.
9565 Use char because int might match the return type of a GCC
9566 builtin and then its argument prototype would still apply. */
9567#ifdef __cplusplus
9568extern "C"
9569#endif
9570char dlopen ();
9571int
9572main ()
9573{
9574return dlopen ();
9575 ;
9576 return 0;
9577}
9578_ACEOF
9579if ac_fn_c_try_link "$LINENO"; then :
9580 ac_cv_lib_dl_dlopen=yes
9581else
9582 ac_cv_lib_dl_dlopen=no
9583fi
9584rm -f core conftest.err conftest.$ac_objext \
9585 conftest$ac_exeext conftest.$ac_ext
9586LIBS=$ac_check_lib_save_LIBS
9587fi
9588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9589$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9590if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9591 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9592else
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9594$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9595if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9596 $as_echo_n "(cached) " >&6
9597else
9598 ac_check_lib_save_LIBS=$LIBS
9599LIBS="-lsvld $LIBS"
9600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601/* end confdefs.h. */
9602
9603/* Override any GCC internal prototype to avoid an error.
9604 Use char because int might match the return type of a GCC
9605 builtin and then its argument prototype would still apply. */
9606#ifdef __cplusplus
9607extern "C"
9608#endif
9609char dlopen ();
9610int
9611main ()
9612{
9613return dlopen ();
9614 ;
9615 return 0;
9616}
9617_ACEOF
9618if ac_fn_c_try_link "$LINENO"; then :
9619 ac_cv_lib_svld_dlopen=yes
9620else
9621 ac_cv_lib_svld_dlopen=no
9622fi
9623rm -f core conftest.err conftest.$ac_objext \
9624 conftest$ac_exeext conftest.$ac_ext
9625LIBS=$ac_check_lib_save_LIBS
9626fi
9627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9628$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9629if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9630 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9631else
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9633$as_echo_n "checking for dld_link in -ldld... " >&6; }
9634if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9635 $as_echo_n "(cached) " >&6
9636else
9637 ac_check_lib_save_LIBS=$LIBS
9638LIBS="-ldld $LIBS"
9639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640/* end confdefs.h. */
9641
9642/* Override any GCC internal prototype to avoid an error.
9643 Use char because int might match the return type of a GCC
9644 builtin and then its argument prototype would still apply. */
9645#ifdef __cplusplus
9646extern "C"
9647#endif
9648char dld_link ();
9649int
9650main ()
9651{
9652return dld_link ();
9653 ;
9654 return 0;
9655}
9656_ACEOF
9657if ac_fn_c_try_link "$LINENO"; then :
9658 ac_cv_lib_dld_dld_link=yes
9659else
9660 ac_cv_lib_dld_dld_link=no
9661fi
9662rm -f core conftest.err conftest.$ac_objext \
9663 conftest$ac_exeext conftest.$ac_ext
9664LIBS=$ac_check_lib_save_LIBS
9665fi
9666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9667$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9668if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9669 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9670fi
9671
9672
9673fi
9674
9675
9676fi
9677
9678
9679fi
9680
9681
9682fi
9683
9684
9685fi
9686
9687 ;;
9688 esac
9689
9690 if test "x$lt_cv_dlopen" != xno; then
9691 enable_dlopen=yes
9692 else
9693 enable_dlopen=no
9694 fi
9695
9696 case $lt_cv_dlopen in
9697 dlopen)
9698 save_CPPFLAGS="$CPPFLAGS"
9699 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9700
9701 save_LDFLAGS="$LDFLAGS"
9702 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9703
9704 save_LIBS="$LIBS"
9705 LIBS="$lt_cv_dlopen_libs $LIBS"
9706
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9708$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9709if test "${lt_cv_dlopen_self+set}" = set; then :
9710 $as_echo_n "(cached) " >&6
9711else
9712 if test "$cross_compiling" = yes; then :
9713 lt_cv_dlopen_self=cross
9714else
9715 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9716 lt_status=$lt_dlunknown
9717 cat > conftest.$ac_ext <<EOF
9718#line __oline__ "configure"
9719#include "confdefs.h"
9720
9721#if HAVE_DLFCN_H
9722#include <dlfcn.h>
9723#endif
9724
9725#include <stdio.h>
9726
9727#ifdef RTLD_GLOBAL
9728# define LT_DLGLOBAL RTLD_GLOBAL
9729#else
9730# ifdef DL_GLOBAL
9731# define LT_DLGLOBAL DL_GLOBAL
9732# else
9733# define LT_DLGLOBAL 0
9734# endif
9735#endif
9736
9737/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9738 find out it does not work in some platform. */
9739#ifndef LT_DLLAZY_OR_NOW
9740# ifdef RTLD_LAZY
9741# define LT_DLLAZY_OR_NOW RTLD_LAZY
9742# else
9743# ifdef DL_LAZY
9744# define LT_DLLAZY_OR_NOW DL_LAZY
9745# else
9746# ifdef RTLD_NOW
9747# define LT_DLLAZY_OR_NOW RTLD_NOW
9748# else
9749# ifdef DL_NOW
9750# define LT_DLLAZY_OR_NOW DL_NOW
9751# else
9752# define LT_DLLAZY_OR_NOW 0
9753# endif
9754# endif
9755# endif
9756# endif
9757#endif
9758
9759#ifdef __cplusplus
9760extern "C" void exit (int);
9761#endif
9762
9763void fnord() { int i=42;}
9764int main ()
9765{
9766 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9767 int status = $lt_dlunknown;
9768
9769 if (self)
9770 {
9771 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9772 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9773 /* dlclose (self); */
9774 }
9775 else
9776 puts (dlerror ());
9777
9778 exit (status);
9779}
9780EOF
9781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9782 (eval $ac_link) 2>&5
9783 ac_status=$?
9784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9785 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9786 (./conftest; exit; ) >&5 2>/dev/null
9787 lt_status=$?
9788 case x$lt_status in
9789 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9790 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9791 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9792 esac
9793 else :
9794 # compilation failed
9795 lt_cv_dlopen_self=no
9796 fi
9797fi
9798rm -fr conftest*
9799
9800
9801fi
9802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9803$as_echo "$lt_cv_dlopen_self" >&6; }
9804
9805 if test "x$lt_cv_dlopen_self" = xyes; then
9806 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9808$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9809if test "${lt_cv_dlopen_self_static+set}" = set; then :
9810 $as_echo_n "(cached) " >&6
9811else
9812 if test "$cross_compiling" = yes; then :
9813 lt_cv_dlopen_self_static=cross
9814else
9815 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9816 lt_status=$lt_dlunknown
9817 cat > conftest.$ac_ext <<EOF
9818#line __oline__ "configure"
9819#include "confdefs.h"
9820
9821#if HAVE_DLFCN_H
9822#include <dlfcn.h>
9823#endif
9824
9825#include <stdio.h>
9826
9827#ifdef RTLD_GLOBAL
9828# define LT_DLGLOBAL RTLD_GLOBAL
9829#else
9830# ifdef DL_GLOBAL
9831# define LT_DLGLOBAL DL_GLOBAL
9832# else
9833# define LT_DLGLOBAL 0
9834# endif
9835#endif
9836
9837/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9838 find out it does not work in some platform. */
9839#ifndef LT_DLLAZY_OR_NOW
9840# ifdef RTLD_LAZY
9841# define LT_DLLAZY_OR_NOW RTLD_LAZY
9842# else
9843# ifdef DL_LAZY
9844# define LT_DLLAZY_OR_NOW DL_LAZY
9845# else
9846# ifdef RTLD_NOW
9847# define LT_DLLAZY_OR_NOW RTLD_NOW
9848# else
9849# ifdef DL_NOW
9850# define LT_DLLAZY_OR_NOW DL_NOW
9851# else
9852# define LT_DLLAZY_OR_NOW 0
9853# endif
9854# endif
9855# endif
9856# endif
9857#endif
9858
9859#ifdef __cplusplus
9860extern "C" void exit (int);
9861#endif
9862
9863void fnord() { int i=42;}
9864int main ()
9865{
9866 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9867 int status = $lt_dlunknown;
9868
9869 if (self)
9870 {
9871 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9872 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9873 /* dlclose (self); */
9874 }
9875 else
9876 puts (dlerror ());
9877
9878 exit (status);
9879}
9880EOF
9881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9882 (eval $ac_link) 2>&5
9883 ac_status=$?
9884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9885 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9886 (./conftest; exit; ) >&5 2>/dev/null
9887 lt_status=$?
9888 case x$lt_status in
9889 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9890 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9891 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9892 esac
9893 else :
9894 # compilation failed
9895 lt_cv_dlopen_self_static=no
9896 fi
9897fi
9898rm -fr conftest*
9899
9900
9901fi
9902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9903$as_echo "$lt_cv_dlopen_self_static" >&6; }
9904 fi
9905
9906 CPPFLAGS="$save_CPPFLAGS"
9907 LDFLAGS="$save_LDFLAGS"
9908 LIBS="$save_LIBS"
9909 ;;
9910 esac
9911
9912 case $lt_cv_dlopen_self in
9913 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9914 *) enable_dlopen_self=unknown ;;
9915 esac
9916
9917 case $lt_cv_dlopen_self_static in
9918 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9919 *) enable_dlopen_self_static=unknown ;;
9920 esac
9921fi
9922
9923
9924# Report which library types will actually be built
9925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9926$as_echo_n "checking if libtool supports shared libraries... " >&6; }
9927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9928$as_echo "$can_build_shared" >&6; }
9929
9930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9931$as_echo_n "checking whether to build shared libraries... " >&6; }
9932test "$can_build_shared" = "no" && enable_shared=no
9933
9934# On AIX, shared libraries and static libraries use the same namespace, and
9935# are all built from PIC.
9936case $host_os in
9937aix3*)
9938 test "$enable_shared" = yes && enable_static=no
9939 if test -n "$RANLIB"; then
9940 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9941 postinstall_cmds='$RANLIB $lib'
9942 fi
9943 ;;
9944
9945aix[4-9]*)
9946 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9947 test "$enable_shared" = yes && enable_static=no
9948 fi
9949 ;;
9950esac
9951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9952$as_echo "$enable_shared" >&6; }
9953
9954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9955$as_echo_n "checking whether to build static libraries... " >&6; }
9956# Make sure either enable_shared or enable_static is yes.
9957test "$enable_shared" = yes || enable_static=yes
9958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9959$as_echo "$enable_static" >&6; }
9960
9961# The else clause should only fire when bootstrapping the
9962# libtool distribution, otherwise you forgot to ship ltmain.sh
9963# with your package, and you will get complaints that there are
9964# no rules to generate ltmain.sh.
9965if test -f "$ltmain"; then
9966 # See if we are running on zsh, and set the options which allow our commands through
9967 # without removal of \ escapes.
9968 if test -n "${ZSH_VERSION+set}" ; then
9969 setopt NO_GLOB_SUBST
9970 fi
9971 # Now quote all the things that may contain metacharacters while being
9972 # careful not to overquote the AC_SUBSTed values. We take copies of the
9973 # variables and quote the copies for generation of the libtool script.
9974 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9975 SED SHELL STRIP \
9976 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9977 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9978 deplibs_check_method reload_flag reload_cmds need_locks \
9979 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9980 lt_cv_sys_global_symbol_to_c_name_address \
9981 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9982 old_postinstall_cmds old_postuninstall_cmds \
9983 compiler \
9984 CC \
9985 LD \
9986 lt_prog_compiler_wl \
9987 lt_prog_compiler_pic \
9988 lt_prog_compiler_static \
9989 lt_prog_compiler_no_builtin_flag \
9990 export_dynamic_flag_spec \
9991 thread_safe_flag_spec \
9992 whole_archive_flag_spec \
9993 enable_shared_with_static_runtimes \
9994 old_archive_cmds \
9995 old_archive_from_new_cmds \
9996 predep_objects \
9997 postdep_objects \
9998 predeps \
9999 postdeps \
10000 compiler_lib_search_path \
10001 compiler_lib_search_dirs \
10002 archive_cmds \
10003 archive_expsym_cmds \
10004 postinstall_cmds \
10005 postuninstall_cmds \
10006 old_archive_from_expsyms_cmds \
10007 allow_undefined_flag \
10008 no_undefined_flag \
10009 export_symbols_cmds \
10010 hardcode_libdir_flag_spec \
10011 hardcode_libdir_flag_spec_ld \
10012 hardcode_libdir_separator \
10013 hardcode_automatic \
10014 module_cmds \
10015 module_expsym_cmds \
10016 lt_cv_prog_compiler_c_o \
10017 fix_srcfile_path \
10018 exclude_expsyms \
10019 include_expsyms; do
10020
10021 case $var in
10022 old_archive_cmds | \
10023 old_archive_from_new_cmds | \
10024 archive_cmds | \
10025 archive_expsym_cmds | \
10026 module_cmds | \
10027 module_expsym_cmds | \
10028 old_archive_from_expsyms_cmds | \
10029 export_symbols_cmds | \
10030 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10031 postinstall_cmds | postuninstall_cmds | \
10032 old_postinstall_cmds | old_postuninstall_cmds | \
10033 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10034 # Double-quote double-evaled strings.
10035 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10036 ;;
10037 *)
10038 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10039 ;;
10040 esac
10041 done
10042
10043 case $lt_echo in
10044 *'\$0 --fallback-echo"')
10045 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10046 ;;
10047 esac
10048
10049cfgfile="${ofile}T"
10050 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10051 $rm -f "$cfgfile"
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10053$as_echo "$as_me: creating $ofile" >&6;}
10054
10055 cat <<__EOF__ >> "$cfgfile"
10056#! $SHELL
10057
10058# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10059# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10060# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10061#
10062# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10063# Free Software Foundation, Inc.
10064#
10065# This file is part of GNU Libtool:
10066# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10067#
10068# This program is free software; you can redistribute it and/or modify
10069# it under the terms of the GNU General Public License as published by
10070# the Free Software Foundation; either version 2 of the License, or
10071# (at your option) any later version.
10072#
10073# This program is distributed in the hope that it will be useful, but
10074# WITHOUT ANY WARRANTY; without even the implied warranty of
10075# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10076# General Public License for more details.
10077#
10078# You should have received a copy of the GNU General Public License
10079# along with this program; if not, write to the Free Software
10080# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10081#
10082# As a special exception to the GNU General Public License, if you
10083# distribute this file as part of a program that contains a
10084# configuration script generated by Autoconf, you may include it under
10085# the same distribution terms that you use for the rest of that program.
10086
10087# A sed program that does not truncate output.
10088SED=$lt_SED
10089
10090# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10091Xsed="$SED -e 1s/^X//"
10092
10093# The HP-UX ksh and POSIX shell print the target directory to stdout
10094# if CDPATH is set.
10095(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10096
10097# The names of the tagged configurations supported by this script.
10098available_tags=
10099
10100# ### BEGIN LIBTOOL CONFIG
10101
10102# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10103
10104# Shell to use when invoking shell scripts.
10105SHELL=$lt_SHELL
10106
10107# Whether or not to build shared libraries.
10108build_libtool_libs=$enable_shared
10109
10110# Whether or not to build static libraries.
10111build_old_libs=$enable_static
10112
10113# Whether or not to add -lc for building shared libraries.
10114build_libtool_need_lc=$archive_cmds_need_lc
10115
10116# Whether or not to disallow shared libs when runtime libs are static
10117allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10118
10119# Whether or not to optimize for fast installation.
10120fast_install=$enable_fast_install
10121
10122# The host system.
10123host_alias=$host_alias
10124host=$host
10125host_os=$host_os
10126
10127# The build system.
10128build_alias=$build_alias
10129build=$build
10130build_os=$build_os
10131
10132# An echo program that does not interpret backslashes.
10133echo=$lt_echo
10134
10135# The archiver.
10136AR=$lt_AR
10137AR_FLAGS=$lt_AR_FLAGS
10138
10139# A C compiler.
10140LTCC=$lt_LTCC
10141
10142# LTCC compiler flags.
10143LTCFLAGS=$lt_LTCFLAGS
10144
10145# A language-specific compiler.
10146CC=$lt_compiler
10147
10148# Is the compiler the GNU C compiler?
10149with_gcc=$GCC
10150
10151# An ERE matcher.
10152EGREP=$lt_EGREP
10153
10154# The linker used to build libraries.
10155LD=$lt_LD
10156
10157# Whether we need hard or soft links.
10158LN_S=$lt_LN_S
10159
10160# A BSD-compatible nm program.
10161NM=$lt_NM
10162
10163# A symbol stripping program
10164STRIP=$lt_STRIP
10165
10166# Used to examine libraries when file_magic_cmd begins "file"
10167MAGIC_CMD=$MAGIC_CMD
10168
10169# Used on cygwin: DLL creation program.
10170DLLTOOL="$DLLTOOL"
10171
10172# Used on cygwin: object dumper.
10173OBJDUMP="$OBJDUMP"
10174
10175# Used on cygwin: assembler.
10176AS="$AS"
10177
10178# The name of the directory that contains temporary libtool files.
10179objdir=$objdir
10180
10181# How to create reloadable object files.
10182reload_flag=$lt_reload_flag
10183reload_cmds=$lt_reload_cmds
10184
10185# How to pass a linker flag through the compiler.
10186wl=$lt_lt_prog_compiler_wl
10187
10188# Object file suffix (normally "o").
10189objext="$ac_objext"
10190
10191# Old archive suffix (normally "a").
10192libext="$libext"
10193
10194# Shared library suffix (normally ".so").
10195shrext_cmds='$shrext_cmds'
10196
10197# Executable file suffix (normally "").
10198exeext="$exeext"
10199
10200# Additional compiler flags for building library objects.
10201pic_flag=$lt_lt_prog_compiler_pic
10202pic_mode=$pic_mode
10203
10204# What is the maximum length of a command?
10205max_cmd_len=$lt_cv_sys_max_cmd_len
10206
10207# Does compiler simultaneously support -c and -o options?
10208compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10209
10210# Must we lock files when doing compilation?
10211need_locks=$lt_need_locks
10212
10213# Do we need the lib prefix for modules?
10214need_lib_prefix=$need_lib_prefix
10215
10216# Do we need a version for libraries?
10217need_version=$need_version
10218
10219# Whether dlopen is supported.
10220dlopen_support=$enable_dlopen
10221
10222# Whether dlopen of programs is supported.
10223dlopen_self=$enable_dlopen_self
10224
10225# Whether dlopen of statically linked programs is supported.
10226dlopen_self_static=$enable_dlopen_self_static
10227
10228# Compiler flag to prevent dynamic linking.
10229link_static_flag=$lt_lt_prog_compiler_static
10230
10231# Compiler flag to turn off builtin functions.
10232no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10233
10234# Compiler flag to allow reflexive dlopens.
10235export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10236
10237# Compiler flag to generate shared objects directly from archives.
10238whole_archive_flag_spec=$lt_whole_archive_flag_spec
10239
10240# Compiler flag to generate thread-safe objects.
10241thread_safe_flag_spec=$lt_thread_safe_flag_spec
10242
10243# Library versioning type.
10244version_type=$version_type
10245
10246# Format of library name prefix.
10247libname_spec=$lt_libname_spec
10248
10249# List of archive names. First name is the real one, the rest are links.
10250# The last name is the one that the linker finds with -lNAME.
10251library_names_spec=$lt_library_names_spec
10252
10253# The coded name of the library, if different from the real name.
10254soname_spec=$lt_soname_spec
10255
10256# Commands used to build and install an old-style archive.
10257RANLIB=$lt_RANLIB
10258old_archive_cmds=$lt_old_archive_cmds
10259old_postinstall_cmds=$lt_old_postinstall_cmds
10260old_postuninstall_cmds=$lt_old_postuninstall_cmds
10261
10262# Create an old-style archive from a shared archive.
10263old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10264
10265# Create a temporary old-style archive to link instead of a shared archive.
10266old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10267
10268# Commands used to build and install a shared archive.
10269archive_cmds=$lt_archive_cmds
10270archive_expsym_cmds=$lt_archive_expsym_cmds
10271postinstall_cmds=$lt_postinstall_cmds
10272postuninstall_cmds=$lt_postuninstall_cmds
10273
10274# Commands used to build a loadable module (assumed same as above if empty)
10275module_cmds=$lt_module_cmds
10276module_expsym_cmds=$lt_module_expsym_cmds
10277
10278# Commands to strip libraries.
10279old_striplib=$lt_old_striplib
10280striplib=$lt_striplib
10281
10282# Dependencies to place before the objects being linked to create a
10283# shared library.
10284predep_objects=$lt_predep_objects
10285
10286# Dependencies to place after the objects being linked to create a
10287# shared library.
10288postdep_objects=$lt_postdep_objects
10289
10290# Dependencies to place before the objects being linked to create a
10291# shared library.
10292predeps=$lt_predeps
10293
10294# Dependencies to place after the objects being linked to create a
10295# shared library.
10296postdeps=$lt_postdeps
10297
10298# The directories searched by this compiler when creating a shared
10299# library
10300compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10301
10302# The library search path used internally by the compiler when linking
10303# a shared library.
10304compiler_lib_search_path=$lt_compiler_lib_search_path
10305
10306# Method to check whether dependent libraries are shared objects.
10307deplibs_check_method=$lt_deplibs_check_method
10308
10309# Command to use when deplibs_check_method == file_magic.
10310file_magic_cmd=$lt_file_magic_cmd
10311
10312# Flag that allows shared libraries with undefined symbols to be built.
10313allow_undefined_flag=$lt_allow_undefined_flag
10314
10315# Flag that forces no undefined symbols.
10316no_undefined_flag=$lt_no_undefined_flag
10317
10318# Commands used to finish a libtool library installation in a directory.
10319finish_cmds=$lt_finish_cmds
10320
10321# Same as above, but a single script fragment to be evaled but not shown.
10322finish_eval=$lt_finish_eval
10323
10324# Take the output of nm and produce a listing of raw symbols and C names.
10325global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10326
10327# Transform the output of nm in a proper C declaration
10328global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10329
10330# Transform the output of nm in a C name address pair
10331global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10332
10333# This is the shared library runtime path variable.
10334runpath_var=$runpath_var
10335
10336# This is the shared library path variable.
10337shlibpath_var=$shlibpath_var
10338
10339# Is shlibpath searched before the hard-coded library search path?
10340shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10341
10342# How to hardcode a shared library path into an executable.
10343hardcode_action=$hardcode_action
10344
10345# Whether we should hardcode library paths into libraries.
10346hardcode_into_libs=$hardcode_into_libs
10347
10348# Flag to hardcode \$libdir into a binary during linking.
10349# This must work even if \$libdir does not exist.
10350hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10351
10352# If ld is used when linking, flag to hardcode \$libdir into
10353# a binary during linking. This must work even if \$libdir does
10354# not exist.
10355hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10356
10357# Whether we need a single -rpath flag with a separated argument.
10358hardcode_libdir_separator=$lt_hardcode_libdir_separator
10359
10360# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10361# resulting binary.
10362hardcode_direct=$hardcode_direct
10363
10364# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10365# resulting binary.
10366hardcode_minus_L=$hardcode_minus_L
10367
10368# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10369# the resulting binary.
10370hardcode_shlibpath_var=$hardcode_shlibpath_var
10371
10372# Set to yes if building a shared library automatically hardcodes DIR into the library
10373# and all subsequent libraries and executables linked against it.
10374hardcode_automatic=$hardcode_automatic
10375
10376# Variables whose values should be saved in libtool wrapper scripts and
10377# restored at relink time.
10378variables_saved_for_relink="$variables_saved_for_relink"
10379
10380# Whether libtool must link a program against all its dependency libraries.
10381link_all_deplibs=$link_all_deplibs
10382
10383# Compile-time system search path for libraries
10384sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10385
10386# Run-time system search path for libraries
10387sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10388
10389# Fix the shell variable \$srcfile for the compiler.
10390fix_srcfile_path=$lt_fix_srcfile_path
10391
10392# Set to yes if exported symbols are required.
10393always_export_symbols=$always_export_symbols
10394
10395# The commands to list exported symbols.
10396export_symbols_cmds=$lt_export_symbols_cmds
10397
10398# The commands to extract the exported symbol list from a shared archive.
10399extract_expsyms_cmds=$lt_extract_expsyms_cmds
10400
10401# Symbols that should not be listed in the preloaded symbols.
10402exclude_expsyms=$lt_exclude_expsyms
10403
10404# Symbols that must always be exported.
10405include_expsyms=$lt_include_expsyms
10406
10407# ### END LIBTOOL CONFIG
10408
10409__EOF__
10410
10411
10412 case $host_os in
10413 aix3*)
10414 cat <<\EOF >> "$cfgfile"
10415
10416# AIX sometimes has problems with the GCC collect2 program. For some
10417# reason, if we set the COLLECT_NAMES environment variable, the problems
10418# vanish in a puff of smoke.
10419if test "X${COLLECT_NAMES+set}" != Xset; then
10420 COLLECT_NAMES=
10421 export COLLECT_NAMES
10422fi
10423EOF
10424 ;;
10425 esac
10426
10427 # We use sed instead of cat because bash on DJGPP gets confused if
10428 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10429 # text mode, it properly converts lines to CR/LF. This bash problem
10430 # is reportedly fixed, but why not run on old versions too?
10431 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10432
10433 mv -f "$cfgfile" "$ofile" || \
10434 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10435 chmod +x "$ofile"
10436
10437else
10438 # If there is no Makefile yet, we rely on a make rule to execute
10439 # `config.status --recheck' to rerun these tests and create the
10440 # libtool script then.
10441 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10442 if test -f "$ltmain_in"; then
10443 test -f Makefile && make "$ltmain"
10444 fi
10445fi
10446
10447
10448ac_ext=c
10449ac_cpp='$CPP $CPPFLAGS'
10450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10452ac_compiler_gnu=$ac_cv_c_compiler_gnu
10453
10454CC="$lt_save_CC"
10455
10456
10457@%:@ Check whether --with-tags was given.
10458if test "${with_tags+set}" = set; then :
10459 withval=$with_tags; tagnames="$withval"
10460fi
10461
10462
10463if test -f "$ltmain" && test -n "$tagnames"; then
10464 if test ! -f "${ofile}"; then
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10466$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10467 fi
10468
10469 if test -z "$LTCC"; then
10470 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10471 if test -z "$LTCC"; then
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10473$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10474 else
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10476$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10477 fi
10478 fi
10479 if test -z "$LTCFLAGS"; then
10480 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10481 fi
10482
10483 # Extract list of available tagged configurations in $ofile.
10484 # Note that this assumes the entire list is on one line.
10485 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10486
10487 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10488 for tagname in $tagnames; do
10489 IFS="$lt_save_ifs"
10490 # Check whether tagname contains only valid characters
10491 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10492 "") ;;
10493 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10494 ;;
10495 esac
10496
10497 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10498 then
10499 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10500 fi
10501
10502 # Update the list of available tags.
10503 if test -n "$tagname"; then
10504 echo appending configuration tag \"$tagname\" to $ofile
10505
10506 case $tagname in
10507 CXX)
10508 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10509 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10510 (test "X$CXX" != "Xg++"))) ; then
10511 ac_ext=cpp
10512ac_cpp='$CXXCPP $CPPFLAGS'
10513ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10514ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10515ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10516
10517
10518
10519
10520archive_cmds_need_lc_CXX=no
10521allow_undefined_flag_CXX=
10522always_export_symbols_CXX=no
10523archive_expsym_cmds_CXX=
10524export_dynamic_flag_spec_CXX=
10525hardcode_direct_CXX=no
10526hardcode_libdir_flag_spec_CXX=
10527hardcode_libdir_flag_spec_ld_CXX=
10528hardcode_libdir_separator_CXX=
10529hardcode_minus_L_CXX=no
10530hardcode_shlibpath_var_CXX=unsupported
10531hardcode_automatic_CXX=no
10532module_cmds_CXX=
10533module_expsym_cmds_CXX=
10534link_all_deplibs_CXX=unknown
10535old_archive_cmds_CXX=$old_archive_cmds
10536no_undefined_flag_CXX=
10537whole_archive_flag_spec_CXX=
10538enable_shared_with_static_runtimes_CXX=no
10539
10540# Dependencies to place before and after the object being linked:
10541predep_objects_CXX=
10542postdep_objects_CXX=
10543predeps_CXX=
10544postdeps_CXX=
10545compiler_lib_search_path_CXX=
10546compiler_lib_search_dirs_CXX=
10547
10548# Source file extension for C++ test sources.
10549ac_ext=cpp
10550
10551# Object file extension for compiled C++ test sources.
10552objext=o
10553objext_CXX=$objext
10554
10555# Code to be used in simple compile tests
10556lt_simple_compile_test_code="int some_variable = 0;"
10557
10558# Code to be used in simple link tests
10559lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10560
10561# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10562
10563# If no C compiler was specified, use CC.
10564LTCC=${LTCC-"$CC"}
10565
10566# If no C compiler flags were specified, use CFLAGS.
10567LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10568
10569# Allow CC to be a program name with arguments.
10570compiler=$CC
10571
10572
10573# save warnings/boilerplate of simple test code
10574ac_outfile=conftest.$ac_objext
10575echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10576eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10577_lt_compiler_boilerplate=`cat conftest.err`
10578$rm conftest*
10579
10580ac_outfile=conftest.$ac_objext
10581echo "$lt_simple_link_test_code" >conftest.$ac_ext
10582eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10583_lt_linker_boilerplate=`cat conftest.err`
10584$rm -r conftest*
10585
10586
10587# Allow CC to be a program name with arguments.
10588lt_save_CC=$CC
10589lt_save_LD=$LD
10590lt_save_GCC=$GCC
10591GCC=$GXX
10592lt_save_with_gnu_ld=$with_gnu_ld
10593lt_save_path_LD=$lt_cv_path_LD
10594if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10595 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10596else
10597 $as_unset lt_cv_prog_gnu_ld
10598fi
10599if test -n "${lt_cv_path_LDCXX+set}"; then
10600 lt_cv_path_LD=$lt_cv_path_LDCXX
10601else
10602 $as_unset lt_cv_path_LD
10603fi
10604test -z "${LDCXX+set}" || LD=$LDCXX
10605CC=${CXX-"c++"}
10606compiler=$CC
10607compiler_CXX=$CC
10608for cc_temp in $compiler""; do
10609 case $cc_temp in
10610 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10611 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10612 \-*) ;;
10613 *) break;;
10614 esac
10615done
10616cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10617
10618
10619# We don't want -fno-exception wen compiling C++ code, so set the
10620# no_builtin_flag separately
10621if test "$GXX" = yes; then
10622 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10623else
10624 lt_prog_compiler_no_builtin_flag_CXX=
10625fi
10626
10627if test "$GXX" = yes; then
10628 # Set up default GNU C++ configuration
10629
10630
10631@%:@ Check whether --with-gnu-ld was given.
10632if test "${with_gnu_ld+set}" = set; then :
10633 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10634else
10635 with_gnu_ld=no
10636fi
10637
10638ac_prog=ld
10639if test "$GCC" = yes; then
10640 # Check if gcc -print-prog-name=ld gives a path.
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10642$as_echo_n "checking for ld used by $CC... " >&6; }
10643 case $host in
10644 *-*-mingw*)
10645 # gcc leaves a trailing carriage return which upsets mingw
10646 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10647 *)
10648 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10649 esac
10650 case $ac_prog in
10651 # Accept absolute paths.
10652 [\\/]* | ?:[\\/]*)
10653 re_direlt='/[^/][^/]*/\.\./'
10654 # Canonicalize the pathname of ld
10655 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10656 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10657 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10658 done
10659 test -z "$LD" && LD="$ac_prog"
10660 ;;
10661 "")
10662 # If it fails, then pretend we aren't using GCC.
10663 ac_prog=ld
10664 ;;
10665 *)
10666 # If it is relative, then search for the first ld in PATH.
10667 with_gnu_ld=unknown
10668 ;;
10669 esac
10670elif test "$with_gnu_ld" = yes; then
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10672$as_echo_n "checking for GNU ld... " >&6; }
10673else
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10675$as_echo_n "checking for non-GNU ld... " >&6; }
10676fi
10677if test "${lt_cv_path_LD+set}" = set; then :
10678 $as_echo_n "(cached) " >&6
10679else
10680 if test -z "$LD"; then
10681 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10682 for ac_dir in $PATH; do
10683 IFS="$lt_save_ifs"
10684 test -z "$ac_dir" && ac_dir=.
10685 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10686 lt_cv_path_LD="$ac_dir/$ac_prog"
10687 # Check to see if the program is GNU ld. I'd rather use --version,
10688 # but apparently some variants of GNU ld only accept -v.
10689 # Break only if it was the GNU/non-GNU ld that we prefer.
10690 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10691 *GNU* | *'with BFD'*)
10692 test "$with_gnu_ld" != no && break
10693 ;;
10694 *)
10695 test "$with_gnu_ld" != yes && break
10696 ;;
10697 esac
10698 fi
10699 done
10700 IFS="$lt_save_ifs"
10701else
10702 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10703fi
10704fi
10705
10706LD="$lt_cv_path_LD"
10707if test -n "$LD"; then
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10709$as_echo "$LD" >&6; }
10710else
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10712$as_echo "no" >&6; }
10713fi
10714test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10716$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10717if test "${lt_cv_prog_gnu_ld+set}" = set; then :
10718 $as_echo_n "(cached) " >&6
10719else
10720 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10721case `$LD -v 2>&1 </dev/null` in
10722*GNU* | *'with BFD'*)
10723 lt_cv_prog_gnu_ld=yes
10724 ;;
10725*)
10726 lt_cv_prog_gnu_ld=no
10727 ;;
10728esac
10729fi
10730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10731$as_echo "$lt_cv_prog_gnu_ld" >&6; }
10732with_gnu_ld=$lt_cv_prog_gnu_ld
10733
10734
10735
10736 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10737 # archiving commands below assume that GNU ld is being used.
10738 if test "$with_gnu_ld" = yes; then
10739 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10740 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'
10741
10742 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10743 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10744
10745 # If archive_cmds runs LD, not CC, wlarc should be empty
10746 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10747 # investigate it a little bit more. (MM)
10748 wlarc='${wl}'
10749
10750 # ancient GNU ld didn't support --whole-archive et. al.
10751 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10752 grep 'no-whole-archive' > /dev/null; then
10753 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10754 else
10755 whole_archive_flag_spec_CXX=
10756 fi
10757 else
10758 with_gnu_ld=no
10759 wlarc=
10760
10761 # A generic and very simple default shared library creation
10762 # command for GNU C++ for the case where it uses the native
10763 # linker, instead of GNU ld. If possible, this setting should
10764 # overridden to take advantage of the native linker features on
10765 # the platform it is being used on.
10766 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10767 fi
10768
10769 # Commands to make compiler produce verbose output that lists
10770 # what "hidden" libraries, object files and flags are used when
10771 # linking a shared library.
10772 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10773
10774else
10775 GXX=no
10776 with_gnu_ld=no
10777 wlarc=
10778fi
10779
10780# PORTME: fill in a description of your system's C++ link characteristics
10781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10782$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10783ld_shlibs_CXX=yes
10784case $host_os in
10785 aix3*)
10786 # FIXME: insert proper C++ library support
10787 ld_shlibs_CXX=no
10788 ;;
10789 aix[4-9]*)
10790 if test "$host_cpu" = ia64; then
10791 # On IA64, the linker does run time linking by default, so we don't
10792 # have to do anything special.
10793 aix_use_runtimelinking=no
10794 exp_sym_flag='-Bexport'
10795 no_entry_flag=""
10796 else
10797 aix_use_runtimelinking=no
10798
10799 # Test if we are trying to use run time linking or normal
10800 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10801 # need to do runtime linking.
10802 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10803 for ld_flag in $LDFLAGS; do
10804 case $ld_flag in
10805 *-brtl*)
10806 aix_use_runtimelinking=yes
10807 break
10808 ;;
10809 esac
10810 done
10811 ;;
10812 esac
10813
10814 exp_sym_flag='-bexport'
10815 no_entry_flag='-bnoentry'
10816 fi
10817
10818 # When large executables or shared objects are built, AIX ld can
10819 # have problems creating the table of contents. If linking a library
10820 # or program results in "error TOC overflow" add -mminimal-toc to
10821 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10822 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10823
10824 archive_cmds_CXX=''
10825 hardcode_direct_CXX=yes
10826 hardcode_libdir_separator_CXX=':'
10827 link_all_deplibs_CXX=yes
10828
10829 if test "$GXX" = yes; then
10830 case $host_os in aix4.[012]|aix4.[012].*)
10831 # We only want to do this on AIX 4.2 and lower, the check
10832 # below for broken collect2 doesn't work under 4.3+
10833 collect2name=`${CC} -print-prog-name=collect2`
10834 if test -f "$collect2name" && \
10835 strings "$collect2name" | grep resolve_lib_name >/dev/null
10836 then
10837 # We have reworked collect2
10838 :
10839 else
10840 # We have old collect2
10841 hardcode_direct_CXX=unsupported
10842 # It fails to find uninstalled libraries when the uninstalled
10843 # path is not listed in the libpath. Setting hardcode_minus_L
10844 # to unsupported forces relinking
10845 hardcode_minus_L_CXX=yes
10846 hardcode_libdir_flag_spec_CXX='-L$libdir'
10847 hardcode_libdir_separator_CXX=
10848 fi
10849 ;;
10850 esac
10851 shared_flag='-shared'
10852 if test "$aix_use_runtimelinking" = yes; then
10853 shared_flag="$shared_flag "'${wl}-G'
10854 fi
10855 else
10856 # not using gcc
10857 if test "$host_cpu" = ia64; then
10858 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10859 # chokes on -Wl,-G. The following line is correct:
10860 shared_flag='-G'
10861 else
10862 if test "$aix_use_runtimelinking" = yes; then
10863 shared_flag='${wl}-G'
10864 else
10865 shared_flag='${wl}-bM:SRE'
10866 fi
10867 fi
10868 fi
10869
10870 # It seems that -bexpall does not export symbols beginning with
10871 # underscore (_), so it is better to generate a list of symbols to export.
10872 always_export_symbols_CXX=yes
10873 if test "$aix_use_runtimelinking" = yes; then
10874 # Warning - without using the other runtime loading flags (-brtl),
10875 # -berok will link without error, but may produce a broken library.
10876 allow_undefined_flag_CXX='-berok'
10877 # Determine the default libpath from the value encoded in an empty executable.
10878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10879/* end confdefs.h. */
10880
10881int
10882main ()
10883{
10884
10885 ;
10886 return 0;
10887}
10888_ACEOF
10889if ac_fn_cxx_try_link "$LINENO"; then :
10890
10891lt_aix_libpath_sed='
10892 /Import File Strings/,/^$/ {
10893 /^0/ {
10894 s/^0 *\(.*\)$/\1/
10895 p
10896 }
10897 }'
10898aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10899# Check for a 64-bit object if we didn't find anything.
10900if test -z "$aix_libpath"; then
10901 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10902fi
10903fi
10904rm -f core conftest.err conftest.$ac_objext \
10905 conftest$ac_exeext conftest.$ac_ext
10906if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10907
10908 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10909
10910 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10911 else
10912 if test "$host_cpu" = ia64; then
10913 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10914 allow_undefined_flag_CXX="-z nodefs"
10915 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"
10916 else
10917 # Determine the default libpath from the value encoded in an empty executable.
10918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10919/* end confdefs.h. */
10920
10921int
10922main ()
10923{
10924
10925 ;
10926 return 0;
10927}
10928_ACEOF
10929if ac_fn_cxx_try_link "$LINENO"; then :
10930
10931lt_aix_libpath_sed='
10932 /Import File Strings/,/^$/ {
10933 /^0/ {
10934 s/^0 *\(.*\)$/\1/
10935 p
10936 }
10937 }'
10938aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10939# Check for a 64-bit object if we didn't find anything.
10940if test -z "$aix_libpath"; then
10941 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10942fi
10943fi
10944rm -f core conftest.err conftest.$ac_objext \
10945 conftest$ac_exeext conftest.$ac_ext
10946if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10947
10948 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10949 # Warning - without using the other run time loading flags,
10950 # -berok will link without error, but may produce a broken library.
10951 no_undefined_flag_CXX=' ${wl}-bernotok'
10952 allow_undefined_flag_CXX=' ${wl}-berok'
10953 # Exported symbols can be pulled into shared objects from archives
10954 whole_archive_flag_spec_CXX='$convenience'
10955 archive_cmds_need_lc_CXX=yes
10956 # This is similar to how AIX traditionally builds its shared libraries.
10957 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'
10958 fi
10959 fi
10960 ;;
10961
10962 beos*)
10963 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10964 allow_undefined_flag_CXX=unsupported
10965 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10966 # support --undefined. This deserves some investigation. FIXME
10967 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10968 else
10969 ld_shlibs_CXX=no
10970 fi
10971 ;;
10972
10973 chorus*)
10974 case $cc_basename in
10975 *)
10976 # FIXME: insert proper C++ library support
10977 ld_shlibs_CXX=no
10978 ;;
10979 esac
10980 ;;
10981
10982 cygwin* | mingw* | pw32*)
10983 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10984 # as there is no search path for DLLs.
10985 hardcode_libdir_flag_spec_CXX='-L$libdir'
10986 allow_undefined_flag_CXX=unsupported
10987 always_export_symbols_CXX=no
10988 enable_shared_with_static_runtimes_CXX=yes
10989
10990 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10991 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'
10992 # If the export-symbols file already is a .def file (1st line
10993 # is EXPORTS), use it as is; otherwise, prepend...
10994 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10995 cp $export_symbols $output_objdir/$soname.def;
10996 else
10997 echo EXPORTS > $output_objdir/$soname.def;
10998 cat $export_symbols >> $output_objdir/$soname.def;
10999 fi~
11000 $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'
11001 else
11002 ld_shlibs_CXX=no
11003 fi
11004 ;;
11005 darwin* | rhapsody*)
11006 archive_cmds_need_lc_CXX=no
11007 hardcode_direct_CXX=no
11008 hardcode_automatic_CXX=yes
11009 hardcode_shlibpath_var_CXX=unsupported
11010 whole_archive_flag_spec_CXX=''
11011 link_all_deplibs_CXX=yes
11012 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11013 if test "$GXX" = yes ; then
11014 output_verbose_link_cmd='echo'
11015 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}"
11016 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11017 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}"
11018 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}"
11019 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11020 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}"
11021 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}"
11022 fi
11023 else
11024 case $cc_basename in
11025 xlc*)
11026 output_verbose_link_cmd='echo'
11027 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11028 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11029 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11030 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11031 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11032 ;;
11033 *)
11034 ld_shlibs_CXX=no
11035 ;;
11036 esac
11037 fi
11038 ;;
11039
11040 dgux*)
11041 case $cc_basename in
11042 ec++*)
11043 # FIXME: insert proper C++ library support
11044 ld_shlibs_CXX=no
11045 ;;
11046 ghcx*)
11047 # Green Hills C++ Compiler
11048 # FIXME: insert proper C++ library support
11049 ld_shlibs_CXX=no
11050 ;;
11051 *)
11052 # FIXME: insert proper C++ library support
11053 ld_shlibs_CXX=no
11054 ;;
11055 esac
11056 ;;
11057 freebsd[12]*)
11058 # C++ shared libraries reported to be fairly broken before switch to ELF
11059 ld_shlibs_CXX=no
11060 ;;
11061 freebsd-elf*)
11062 archive_cmds_need_lc_CXX=no
11063 ;;
11064 freebsd* | dragonfly*)
11065 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11066 # conventions
11067 ld_shlibs_CXX=yes
11068 ;;
11069 gnu*)
11070 ;;
11071 hpux9*)
11072 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11073 hardcode_libdir_separator_CXX=:
11074 export_dynamic_flag_spec_CXX='${wl}-E'
11075 hardcode_direct_CXX=yes
11076 hardcode_minus_L_CXX=yes # Not in the search PATH,
11077 # but as the default
11078 # location of the library.
11079
11080 case $cc_basename in
11081 CC*)
11082 # FIXME: insert proper C++ library support
11083 ld_shlibs_CXX=no
11084 ;;
11085 aCC*)
11086 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'
11087 # Commands to make compiler produce verbose output that lists
11088 # what "hidden" libraries, object files and flags are used when
11089 # linking a shared library.
11090 #
11091 # There doesn't appear to be a way to prevent this compiler from
11092 # explicitly linking system object files so we need to strip them
11093 # from the output so that they don't get included in the library
11094 # dependencies.
11095 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11096 ;;
11097 *)
11098 if test "$GXX" = yes; then
11099 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'
11100 else
11101 # FIXME: insert proper C++ library support
11102 ld_shlibs_CXX=no
11103 fi
11104 ;;
11105 esac
11106 ;;
11107 hpux10*|hpux11*)
11108 if test $with_gnu_ld = no; then
11109 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11110 hardcode_libdir_separator_CXX=:
11111
11112 case $host_cpu in
11113 hppa*64*|ia64*) ;;
11114 *)
11115 export_dynamic_flag_spec_CXX='${wl}-E'
11116 ;;
11117 esac
11118 fi
11119 case $host_cpu in
11120 hppa*64*|ia64*)
11121 hardcode_direct_CXX=no
11122 hardcode_shlibpath_var_CXX=no
11123 ;;
11124 *)
11125 hardcode_direct_CXX=yes
11126 hardcode_minus_L_CXX=yes # Not in the search PATH,
11127 # but as the default
11128 # location of the library.
11129 ;;
11130 esac
11131
11132 case $cc_basename in
11133 CC*)
11134 # FIXME: insert proper C++ library support
11135 ld_shlibs_CXX=no
11136 ;;
11137 aCC*)
11138 case $host_cpu in
11139 hppa*64*)
11140 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11141 ;;
11142 ia64*)
11143 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11144 ;;
11145 *)
11146 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11147 ;;
11148 esac
11149 # Commands to make compiler produce verbose output that lists
11150 # what "hidden" libraries, object files and flags are used when
11151 # linking a shared library.
11152 #
11153 # There doesn't appear to be a way to prevent this compiler from
11154 # explicitly linking system object files so we need to strip them
11155 # from the output so that they don't get included in the library
11156 # dependencies.
11157 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11158 ;;
11159 *)
11160 if test "$GXX" = yes; then
11161 if test $with_gnu_ld = no; then
11162 case $host_cpu in
11163 hppa*64*)
11164 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11165 ;;
11166 ia64*)
11167 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11168 ;;
11169 *)
11170 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'
11171 ;;
11172 esac
11173 fi
11174 else
11175 # FIXME: insert proper C++ library support
11176 ld_shlibs_CXX=no
11177 fi
11178 ;;
11179 esac
11180 ;;
11181 interix[3-9]*)
11182 hardcode_direct_CXX=no
11183 hardcode_shlibpath_var_CXX=no
11184 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11185 export_dynamic_flag_spec_CXX='${wl}-E'
11186 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11187 # Instead, shared libraries are loaded at an image base (0x10000000 by
11188 # default) and relocated if they conflict, which is a slow very memory
11189 # consuming and fragmenting process. To avoid this, we pick a random,
11190 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11191 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11192 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'
11193 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'
11194 ;;
11195 irix5* | irix6*)
11196 case $cc_basename in
11197 CC*)
11198 # SGI C++
11199 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11200
11201 # Archives containing C++ object files must be created using
11202 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11203 # necessary to make sure instantiated templates are included
11204 # in the archive.
11205 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11206 ;;
11207 *)
11208 if test "$GXX" = yes; then
11209 if test "$with_gnu_ld" = no; then
11210 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11211 else
11212 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11213 fi
11214 fi
11215 link_all_deplibs_CXX=yes
11216 ;;
11217 esac
11218 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11219 hardcode_libdir_separator_CXX=:
11220 ;;
11221 linux* | k*bsd*-gnu)
11222 case $cc_basename in
11223 KCC*)
11224 # Kuck and Associates, Inc. (KAI) C++ Compiler
11225
11226 # KCC will only create a shared library if the output file
11227 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11228 # to its proper name (with version) after linking.
11229 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'
11230 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'
11231 # Commands to make compiler produce verbose output that lists
11232 # what "hidden" libraries, object files and flags are used when
11233 # linking a shared library.
11234 #
11235 # There doesn't appear to be a way to prevent this compiler from
11236 # explicitly linking system object files so we need to strip them
11237 # from the output so that they don't get included in the library
11238 # dependencies.
11239 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11240
11241 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11242 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11243
11244 # Archives containing C++ object files must be created using
11245 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11246 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11247 ;;
11248 icpc*)
11249 # Intel C++
11250 with_gnu_ld=yes
11251 # version 8.0 and above of icpc choke on multiply defined symbols
11252 # if we add $predep_objects and $postdep_objects, however 7.1 and
11253 # earlier do not add the objects themselves.
11254 case `$CC -V 2>&1` in
11255 *"Version 7."*)
11256 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11257 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'
11258 ;;
11259 *) # Version 8.0 or newer
11260 tmp_idyn=
11261 case $host_cpu in
11262 ia64*) tmp_idyn=' -i_dynamic';;
11263 esac
11264 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11265 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'
11266 ;;
11267 esac
11268 archive_cmds_need_lc_CXX=no
11269 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11270 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11271 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11272 ;;
11273 pgCC* | pgcpp*)
11274 # Portland Group C++ compiler
11275 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11276 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'
11277
11278 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11279 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11280 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'
11281 ;;
11282 cxx*)
11283 # Compaq C++
11284 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11285 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'
11286
11287 runpath_var=LD_RUN_PATH
11288 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11289 hardcode_libdir_separator_CXX=:
11290
11291 # Commands to make compiler produce verbose output that lists
11292 # what "hidden" libraries, object files and flags are used when
11293 # linking a shared library.
11294 #
11295 # There doesn't appear to be a way to prevent this compiler from
11296 # explicitly linking system object files so we need to strip them
11297 # from the output so that they don't get included in the library
11298 # dependencies.
11299 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11300 ;;
11301 *)
11302 case `$CC -V 2>&1 | sed 5q` in
11303 *Sun\ C*)
11304 # Sun C++ 5.9
11305 no_undefined_flag_CXX=' -zdefs'
11306 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11307 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'
11308 hardcode_libdir_flag_spec_CXX='-R$libdir'
11309 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'
11310
11311 # Not sure whether something based on
11312 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11313 # would be better.
11314 output_verbose_link_cmd='echo'
11315
11316 # Archives containing C++ object files must be created using
11317 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11318 # necessary to make sure instantiated templates are included
11319 # in the archive.
11320 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11321 ;;
11322 esac
11323 ;;
11324 esac
11325 ;;
11326 lynxos*)
11327 # FIXME: insert proper C++ library support
11328 ld_shlibs_CXX=no
11329 ;;
11330 m88k*)
11331 # FIXME: insert proper C++ library support
11332 ld_shlibs_CXX=no
11333 ;;
11334 mvs*)
11335 case $cc_basename in
11336 cxx*)
11337 # FIXME: insert proper C++ library support
11338 ld_shlibs_CXX=no
11339 ;;
11340 *)
11341 # FIXME: insert proper C++ library support
11342 ld_shlibs_CXX=no
11343 ;;
11344 esac
11345 ;;
11346 netbsd* | netbsdelf*-gnu)
11347 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11348 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11349 wlarc=
11350 hardcode_libdir_flag_spec_CXX='-R$libdir'
11351 hardcode_direct_CXX=yes
11352 hardcode_shlibpath_var_CXX=no
11353 fi
11354 # Workaround some broken pre-1.5 toolchains
11355 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11356 ;;
11357 openbsd2*)
11358 # C++ shared libraries are fairly broken
11359 ld_shlibs_CXX=no
11360 ;;
11361 openbsd*)
11362 if test -f /usr/libexec/ld.so; then
11363 hardcode_direct_CXX=yes
11364 hardcode_shlibpath_var_CXX=no
11365 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11366 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11367 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11368 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11369 export_dynamic_flag_spec_CXX='${wl}-E'
11370 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11371 fi
11372 output_verbose_link_cmd='echo'
11373 else
11374 ld_shlibs_CXX=no
11375 fi
11376 ;;
11377 osf3*)
11378 case $cc_basename in
11379 KCC*)
11380 # Kuck and Associates, Inc. (KAI) C++ Compiler
11381
11382 # KCC will only create a shared library if the output file
11383 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11384 # to its proper name (with version) after linking.
11385 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'
11386
11387 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11388 hardcode_libdir_separator_CXX=:
11389
11390 # Archives containing C++ object files must be created using
11391 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11392 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11393
11394 ;;
11395 RCC*)
11396 # Rational C++ 2.4.1
11397 # FIXME: insert proper C++ library support
11398 ld_shlibs_CXX=no
11399 ;;
11400 cxx*)
11401 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11402 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11403
11404 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11405 hardcode_libdir_separator_CXX=:
11406
11407 # Commands to make compiler produce verbose output that lists
11408 # what "hidden" libraries, object files and flags are used when
11409 # linking a shared library.
11410 #
11411 # There doesn't appear to be a way to prevent this compiler from
11412 # explicitly linking system object files so we need to strip them
11413 # from the output so that they don't get included in the library
11414 # dependencies.
11415 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11416 ;;
11417 *)
11418 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11419 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11420 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11421
11422 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11423 hardcode_libdir_separator_CXX=:
11424
11425 # Commands to make compiler produce verbose output that lists
11426 # what "hidden" libraries, object files and flags are used when
11427 # linking a shared library.
11428 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11429
11430 else
11431 # FIXME: insert proper C++ library support
11432 ld_shlibs_CXX=no
11433 fi
11434 ;;
11435 esac
11436 ;;
11437 osf4* | osf5*)
11438 case $cc_basename in
11439 KCC*)
11440 # Kuck and Associates, Inc. (KAI) C++ Compiler
11441
11442 # KCC will only create a shared library if the output file
11443 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11444 # to its proper name (with version) after linking.
11445 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'
11446
11447 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11448 hardcode_libdir_separator_CXX=:
11449
11450 # Archives containing C++ object files must be created using
11451 # the KAI C++ compiler.
11452 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11453 ;;
11454 RCC*)
11455 # Rational C++ 2.4.1
11456 # FIXME: insert proper C++ library support
11457 ld_shlibs_CXX=no
11458 ;;
11459 cxx*)
11460 allow_undefined_flag_CXX=' -expect_unresolved \*'
11461 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11462 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11463 echo "-hidden">> $lib.exp~
11464 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11465 $rm $lib.exp'
11466
11467 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11468 hardcode_libdir_separator_CXX=:
11469
11470 # Commands to make compiler produce verbose output that lists
11471 # what "hidden" libraries, object files and flags are used when
11472 # linking a shared library.
11473 #
11474 # There doesn't appear to be a way to prevent this compiler from
11475 # explicitly linking system object files so we need to strip them
11476 # from the output so that they don't get included in the library
11477 # dependencies.
11478 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11479 ;;
11480 *)
11481 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11482 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11483 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11484
11485 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11486 hardcode_libdir_separator_CXX=:
11487
11488 # Commands to make compiler produce verbose output that lists
11489 # what "hidden" libraries, object files and flags are used when
11490 # linking a shared library.
11491 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11492
11493 else
11494 # FIXME: insert proper C++ library support
11495 ld_shlibs_CXX=no
11496 fi
11497 ;;
11498 esac
11499 ;;
11500 psos*)
11501 # FIXME: insert proper C++ library support
11502 ld_shlibs_CXX=no
11503 ;;
11504 sunos4*)
11505 case $cc_basename in
11506 CC*)
11507 # Sun C++ 4.x
11508 # FIXME: insert proper C++ library support
11509 ld_shlibs_CXX=no
11510 ;;
11511 lcc*)
11512 # Lucid
11513 # FIXME: insert proper C++ library support
11514 ld_shlibs_CXX=no
11515 ;;
11516 *)
11517 # FIXME: insert proper C++ library support
11518 ld_shlibs_CXX=no
11519 ;;
11520 esac
11521 ;;
11522 solaris*)
11523 case $cc_basename in
11524 CC*)
11525 # Sun C++ 4.2, 5.x and Centerline C++
11526 archive_cmds_need_lc_CXX=yes
11527 no_undefined_flag_CXX=' -zdefs'
11528 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11529 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11530 $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'
11531
11532 hardcode_libdir_flag_spec_CXX='-R$libdir'
11533 hardcode_shlibpath_var_CXX=no
11534 case $host_os in
11535 solaris2.[0-5] | solaris2.[0-5].*) ;;
11536 *)
11537 # The compiler driver will combine and reorder linker options,
11538 # but understands `-z linker_flag'.
11539 # Supported since Solaris 2.6 (maybe 2.5.1?)
11540 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11541 ;;
11542 esac
11543 link_all_deplibs_CXX=yes
11544
11545 output_verbose_link_cmd='echo'
11546
11547 # Archives containing C++ object files must be created using
11548 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11549 # necessary to make sure instantiated templates are included
11550 # in the archive.
11551 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11552 ;;
11553 gcx*)
11554 # Green Hills C++ Compiler
11555 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11556
11557 # The C++ compiler must be used to create the archive.
11558 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11559 ;;
11560 *)
11561 # GNU C++ compiler with Solaris linker
11562 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11563 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11564 if $CC --version | grep -v '^2\.7' > /dev/null; then
11565 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11566 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11567 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11568
11569 # Commands to make compiler produce verbose output that lists
11570 # what "hidden" libraries, object files and flags are used when
11571 # linking a shared library.
11572 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11573 else
11574 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11575 # platform.
11576 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11577 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11578 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11579
11580 # Commands to make compiler produce verbose output that lists
11581 # what "hidden" libraries, object files and flags are used when
11582 # linking a shared library.
11583 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11584 fi
11585
11586 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11587 case $host_os in
11588 solaris2.[0-5] | solaris2.[0-5].*) ;;
11589 *)
11590 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11591 ;;
11592 esac
11593 fi
11594 ;;
11595 esac
11596 ;;
11597 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11598 no_undefined_flag_CXX='${wl}-z,text'
11599 archive_cmds_need_lc_CXX=no
11600 hardcode_shlibpath_var_CXX=no
11601 runpath_var='LD_RUN_PATH'
11602
11603 case $cc_basename in
11604 CC*)
11605 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11606 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11607 ;;
11608 *)
11609 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11610 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11611 ;;
11612 esac
11613 ;;
11614 sysv5* | sco3.2v5* | sco5v6*)
11615 # Note: We can NOT use -z defs as we might desire, because we do not
11616 # link with -lc, and that would cause any symbols used from libc to
11617 # always be unresolved, which means just about no library would
11618 # ever link correctly. If we're not using GNU ld we use -z text
11619 # though, which does catch some bad symbols but isn't as heavy-handed
11620 # as -z defs.
11621 # For security reasons, it is highly recommended that you always
11622 # use absolute paths for naming shared libraries, and exclude the
11623 # DT_RUNPATH tag from executables and libraries. But doing so
11624 # requires that you compile everything twice, which is a pain.
11625 # So that behaviour is only enabled if SCOABSPATH is set to a
11626 # non-empty value in the environment. Most likely only useful for
11627 # creating official distributions of packages.
11628 # This is a hack until libtool officially supports absolute path
11629 # names for shared libraries.
11630 no_undefined_flag_CXX='${wl}-z,text'
11631 allow_undefined_flag_CXX='${wl}-z,nodefs'
11632 archive_cmds_need_lc_CXX=no
11633 hardcode_shlibpath_var_CXX=no
11634 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11635 hardcode_libdir_separator_CXX=':'
11636 link_all_deplibs_CXX=yes
11637 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11638 runpath_var='LD_RUN_PATH'
11639
11640 case $cc_basename in
11641 CC*)
11642 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11643 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11644 ;;
11645 *)
11646 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11647 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11648 ;;
11649 esac
11650 ;;
11651 tandem*)
11652 case $cc_basename in
11653 NCC*)
11654 # NonStop-UX NCC 3.20
11655 # FIXME: insert proper C++ library support
11656 ld_shlibs_CXX=no
11657 ;;
11658 *)
11659 # FIXME: insert proper C++ library support
11660 ld_shlibs_CXX=no
11661 ;;
11662 esac
11663 ;;
11664 vxworks*)
11665 # FIXME: insert proper C++ library support
11666 ld_shlibs_CXX=no
11667 ;;
11668 *)
11669 # FIXME: insert proper C++ library support
11670 ld_shlibs_CXX=no
11671 ;;
11672esac
11673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11674$as_echo "$ld_shlibs_CXX" >&6; }
11675test "$ld_shlibs_CXX" = no && can_build_shared=no
11676
11677GCC_CXX="$GXX"
11678LD_CXX="$LD"
11679
11680## CAVEAT EMPTOR:
11681## There is no encapsulation within the following macros, do not change
11682## the running order or otherwise move them around unless you know exactly
11683## what you are doing...
11684cat > conftest.$ac_ext <<EOF
11685class Foo
11686{
11687public:
11688 Foo (void) { a = 0; }
11689private:
11690 int a;
11691};
11692EOF
11693
11694if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11695 (eval $ac_compile) 2>&5
11696 ac_status=$?
11697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11698 test $ac_status = 0; }; then
11699 # Parse the compiler output and extract the necessary
11700 # objects, libraries and library flags.
11701
11702 # Sentinel used to keep track of whether or not we are before
11703 # the conftest object file.
11704 pre_test_object_deps_done=no
11705
11706 # The `*' in the case matches for architectures that use `case' in
11707 # $output_verbose_cmd can trigger glob expansion during the loop
11708 # eval without this substitution.
11709 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11710
11711 for p in `eval $output_verbose_link_cmd`; do
11712 case $p in
11713
11714 -L* | -R* | -l*)
11715 # Some compilers place space between "-{L,R}" and the path.
11716 # Remove the space.
11717 if test $p = "-L" \
11718 || test $p = "-R"; then
11719 prev=$p
11720 continue
11721 else
11722 prev=
11723 fi
11724
11725 if test "$pre_test_object_deps_done" = no; then
11726 case $p in
11727 -L* | -R*)
11728 # Internal compiler library paths should come after those
11729 # provided the user. The postdeps already come after the
11730 # user supplied libs so there is no need to process them.
11731 if test -z "$compiler_lib_search_path_CXX"; then
11732 compiler_lib_search_path_CXX="${prev}${p}"
11733 else
11734 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11735 fi
11736 ;;
11737 # The "-l" case would never come before the object being
11738 # linked, so don't bother handling this case.
11739 esac
11740 else
11741 if test -z "$postdeps_CXX"; then
11742 postdeps_CXX="${prev}${p}"
11743 else
11744 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11745 fi
11746 fi
11747 ;;
11748
11749 *.$objext)
11750 # This assumes that the test object file only shows up
11751 # once in the compiler output.
11752 if test "$p" = "conftest.$objext"; then
11753 pre_test_object_deps_done=yes
11754 continue
11755 fi
11756
11757 if test "$pre_test_object_deps_done" = no; then
11758 if test -z "$predep_objects_CXX"; then
11759 predep_objects_CXX="$p"
11760 else
11761 predep_objects_CXX="$predep_objects_CXX $p"
11762 fi
11763 else
11764 if test -z "$postdep_objects_CXX"; then
11765 postdep_objects_CXX="$p"
11766 else
11767 postdep_objects_CXX="$postdep_objects_CXX $p"
11768 fi
11769 fi
11770 ;;
11771
11772 *) ;; # Ignore the rest.
11773
11774 esac
11775 done
11776
11777 # Clean up.
11778 rm -f a.out a.exe
11779else
11780 echo "libtool.m4: error: problem compiling CXX test program"
11781fi
11782
11783$rm -f confest.$objext
11784
11785compiler_lib_search_dirs_CXX=
11786if test -n "$compiler_lib_search_path_CXX"; then
11787 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11788fi
11789
11790# PORTME: override above test on systems where it is broken
11791case $host_os in
11792interix[3-9]*)
11793 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11794 # hack all around it, let's just trust "g++" to DTRT.
11795 predep_objects_CXX=
11796 postdep_objects_CXX=
11797 postdeps_CXX=
11798 ;;
11799
11800linux*)
11801 case `$CC -V 2>&1 | sed 5q` in
11802 *Sun\ C*)
11803 # Sun C++ 5.9
11804 #
11805 # The more standards-conforming stlport4 library is
11806 # incompatible with the Cstd library. Avoid specifying
11807 # it if it's in CXXFLAGS. Ignore libCrun as
11808 # -library=stlport4 depends on it.
11809 case " $CXX $CXXFLAGS " in
11810 *" -library=stlport4 "*)
11811 solaris_use_stlport4=yes
11812 ;;
11813 esac
11814 if test "$solaris_use_stlport4" != yes; then
11815 postdeps_CXX='-library=Cstd -library=Crun'
11816 fi
11817 ;;
11818 esac
11819 ;;
11820
11821solaris*)
11822 case $cc_basename in
11823 CC*)
11824 # The more standards-conforming stlport4 library is
11825 # incompatible with the Cstd library. Avoid specifying
11826 # it if it's in CXXFLAGS. Ignore libCrun as
11827 # -library=stlport4 depends on it.
11828 case " $CXX $CXXFLAGS " in
11829 *" -library=stlport4 "*)
11830 solaris_use_stlport4=yes
11831 ;;
11832 esac
11833
11834 # Adding this requires a known-good setup of shared libraries for
11835 # Sun compiler versions before 5.6, else PIC objects from an old
11836 # archive will be linked into the output, leading to subtle bugs.
11837 if test "$solaris_use_stlport4" != yes; then
11838 postdeps_CXX='-library=Cstd -library=Crun'
11839 fi
11840 ;;
11841 esac
11842 ;;
11843esac
11844
11845case " $postdeps_CXX " in
11846*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11847esac
11848
11849lt_prog_compiler_wl_CXX=
11850lt_prog_compiler_pic_CXX=
11851lt_prog_compiler_static_CXX=
11852
11853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11854$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11855
11856 # C++ specific cases for pic, static, wl, etc.
11857 if test "$GXX" = yes; then
11858 lt_prog_compiler_wl_CXX='-Wl,'
11859 lt_prog_compiler_static_CXX='-static'
11860
11861 case $host_os in
11862 aix*)
11863 # All AIX code is PIC.
11864 if test "$host_cpu" = ia64; then
11865 # AIX 5 now supports IA64 processor
11866 lt_prog_compiler_static_CXX='-Bstatic'
11867 fi
11868 ;;
11869 amigaos*)
11870 # FIXME: we need at least 68020 code to build shared libraries, but
11871 # adding the `-m68020' flag to GCC prevents building anything better,
11872 # like `-m68040'.
11873 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11874 ;;
11875 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11876 # PIC is the default for these OSes.
11877 ;;
11878 mingw* | cygwin* | os2* | pw32*)
11879 # This hack is so that the source file can tell whether it is being
11880 # built for inclusion in a dll (and should export symbols for example).
11881 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11882 # (--disable-auto-import) libraries
11883 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11884 ;;
11885 darwin* | rhapsody*)
11886 # PIC is the default on this platform
11887 # Common symbols not allowed in MH_DYLIB files
11888 lt_prog_compiler_pic_CXX='-fno-common'
11889 ;;
11890 *djgpp*)
11891 # DJGPP does not support shared libraries at all
11892 lt_prog_compiler_pic_CXX=
11893 ;;
11894 interix[3-9]*)
11895 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11896 # Instead, we relocate shared libraries at runtime.
11897 ;;
11898 sysv4*MP*)
11899 if test -d /usr/nec; then
11900 lt_prog_compiler_pic_CXX=-Kconform_pic
11901 fi
11902 ;;
11903 hpux*)
11904 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11905 # not for PA HP-UX.
11906 case $host_cpu in
11907 hppa*64*|ia64*)
11908 ;;
11909 *)
11910 lt_prog_compiler_pic_CXX='-fPIC'
11911 ;;
11912 esac
11913 ;;
11914 *)
11915 lt_prog_compiler_pic_CXX='-fPIC'
11916 ;;
11917 esac
11918 else
11919 case $host_os in
11920 aix[4-9]*)
11921 # All AIX code is PIC.
11922 if test "$host_cpu" = ia64; then
11923 # AIX 5 now supports IA64 processor
11924 lt_prog_compiler_static_CXX='-Bstatic'
11925 else
11926 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11927 fi
11928 ;;
11929 chorus*)
11930 case $cc_basename in
11931 cxch68*)
11932 # Green Hills C++ Compiler
11933 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11934 ;;
11935 esac
11936 ;;
11937 darwin*)
11938 # PIC is the default on this platform
11939 # Common symbols not allowed in MH_DYLIB files
11940 case $cc_basename in
11941 xlc*)
11942 lt_prog_compiler_pic_CXX='-qnocommon'
11943 lt_prog_compiler_wl_CXX='-Wl,'
11944 ;;
11945 esac
11946 ;;
11947 dgux*)
11948 case $cc_basename in
11949 ec++*)
11950 lt_prog_compiler_pic_CXX='-KPIC'
11951 ;;
11952 ghcx*)
11953 # Green Hills C++ Compiler
11954 lt_prog_compiler_pic_CXX='-pic'
11955 ;;
11956 *)
11957 ;;
11958 esac
11959 ;;
11960 freebsd* | dragonfly*)
11961 # FreeBSD uses GNU C++
11962 ;;
11963 hpux9* | hpux10* | hpux11*)
11964 case $cc_basename in
11965 CC*)
11966 lt_prog_compiler_wl_CXX='-Wl,'
11967 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11968 if test "$host_cpu" != ia64; then
11969 lt_prog_compiler_pic_CXX='+Z'
11970 fi
11971 ;;
11972 aCC*)
11973 lt_prog_compiler_wl_CXX='-Wl,'
11974 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11975 case $host_cpu in
11976 hppa*64*|ia64*)
11977 # +Z the default
11978 ;;
11979 *)
11980 lt_prog_compiler_pic_CXX='+Z'
11981 ;;
11982 esac
11983 ;;
11984 *)
11985 ;;
11986 esac
11987 ;;
11988 interix*)
11989 # This is c89, which is MS Visual C++ (no shared libs)
11990 # Anyone wants to do a port?
11991 ;;
11992 irix5* | irix6* | nonstopux*)
11993 case $cc_basename in
11994 CC*)
11995 lt_prog_compiler_wl_CXX='-Wl,'
11996 lt_prog_compiler_static_CXX='-non_shared'
11997 # CC pic flag -KPIC is the default.
11998 ;;
11999 *)
12000 ;;
12001 esac
12002 ;;
12003 linux* | k*bsd*-gnu)
12004 case $cc_basename in
12005 KCC*)
12006 # KAI C++ Compiler
12007 lt_prog_compiler_wl_CXX='--backend -Wl,'
12008 lt_prog_compiler_pic_CXX='-fPIC'
12009 ;;
12010 icpc* | ecpc*)
12011 # Intel C++
12012 lt_prog_compiler_wl_CXX='-Wl,'
12013 lt_prog_compiler_pic_CXX='-KPIC'
12014 lt_prog_compiler_static_CXX='-static'
12015 ;;
12016 pgCC* | pgcpp*)
12017 # Portland Group C++ compiler.
12018 lt_prog_compiler_wl_CXX='-Wl,'
12019 lt_prog_compiler_pic_CXX='-fpic'
12020 lt_prog_compiler_static_CXX='-Bstatic'
12021 ;;
12022 cxx*)
12023 # Compaq C++
12024 # Make sure the PIC flag is empty. It appears that all Alpha
12025 # Linux and Compaq Tru64 Unix objects are PIC.
12026 lt_prog_compiler_pic_CXX=
12027 lt_prog_compiler_static_CXX='-non_shared'
12028 ;;
12029 *)
12030 case `$CC -V 2>&1 | sed 5q` in
12031 *Sun\ C*)
12032 # Sun C++ 5.9
12033 lt_prog_compiler_pic_CXX='-KPIC'
12034 lt_prog_compiler_static_CXX='-Bstatic'
12035 lt_prog_compiler_wl_CXX='-Qoption ld '
12036 ;;
12037 esac
12038 ;;
12039 esac
12040 ;;
12041 lynxos*)
12042 ;;
12043 m88k*)
12044 ;;
12045 mvs*)
12046 case $cc_basename in
12047 cxx*)
12048 lt_prog_compiler_pic_CXX='-W c,exportall'
12049 ;;
12050 *)
12051 ;;
12052 esac
12053 ;;
12054 netbsd* | netbsdelf*-gnu)
12055 ;;
12056 osf3* | osf4* | osf5*)
12057 case $cc_basename in
12058 KCC*)
12059 lt_prog_compiler_wl_CXX='--backend -Wl,'
12060 ;;
12061 RCC*)
12062 # Rational C++ 2.4.1
12063 lt_prog_compiler_pic_CXX='-pic'
12064 ;;
12065 cxx*)
12066 # Digital/Compaq C++
12067 lt_prog_compiler_wl_CXX='-Wl,'
12068 # Make sure the PIC flag is empty. It appears that all Alpha
12069 # Linux and Compaq Tru64 Unix objects are PIC.
12070 lt_prog_compiler_pic_CXX=
12071 lt_prog_compiler_static_CXX='-non_shared'
12072 ;;
12073 *)
12074 ;;
12075 esac
12076 ;;
12077 psos*)
12078 ;;
12079 solaris*)
12080 case $cc_basename in
12081 CC*)
12082 # Sun C++ 4.2, 5.x and Centerline C++
12083 lt_prog_compiler_pic_CXX='-KPIC'
12084 lt_prog_compiler_static_CXX='-Bstatic'
12085 lt_prog_compiler_wl_CXX='-Qoption ld '
12086 ;;
12087 gcx*)
12088 # Green Hills C++ Compiler
12089 lt_prog_compiler_pic_CXX='-PIC'
12090 ;;
12091 *)
12092 ;;
12093 esac
12094 ;;
12095 sunos4*)
12096 case $cc_basename in
12097 CC*)
12098 # Sun C++ 4.x
12099 lt_prog_compiler_pic_CXX='-pic'
12100 lt_prog_compiler_static_CXX='-Bstatic'
12101 ;;
12102 lcc*)
12103 # Lucid
12104 lt_prog_compiler_pic_CXX='-pic'
12105 ;;
12106 *)
12107 ;;
12108 esac
12109 ;;
12110 tandem*)
12111 case $cc_basename in
12112 NCC*)
12113 # NonStop-UX NCC 3.20
12114 lt_prog_compiler_pic_CXX='-KPIC'
12115 ;;
12116 *)
12117 ;;
12118 esac
12119 ;;
12120 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12121 case $cc_basename in
12122 CC*)
12123 lt_prog_compiler_wl_CXX='-Wl,'
12124 lt_prog_compiler_pic_CXX='-KPIC'
12125 lt_prog_compiler_static_CXX='-Bstatic'
12126 ;;
12127 esac
12128 ;;
12129 vxworks*)
12130 ;;
12131 *)
12132 lt_prog_compiler_can_build_shared_CXX=no
12133 ;;
12134 esac
12135 fi
12136
12137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12138$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12139
12140#
12141# Check to make sure the PIC flag actually works.
12142#
12143if test -n "$lt_prog_compiler_pic_CXX"; then
12144
12145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12146$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12147if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
12148 $as_echo_n "(cached) " >&6
12149else
12150 lt_cv_prog_compiler_pic_works_CXX=no
12151 ac_outfile=conftest.$ac_objext
12152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12153 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12154 # Insert the option either (1) after the last *FLAGS variable, or
12155 # (2) before a word containing "conftest.", or (3) at the end.
12156 # Note that $ac_compile itself does not contain backslashes and begins
12157 # with a dollar sign (not a hyphen), so the echo should work correctly.
12158 # The option is referenced via a variable to avoid confusing sed.
12159 lt_compile=`echo "$ac_compile" | $SED \
12160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12162 -e 's:$: $lt_compiler_flag:'`
12163 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12164 (eval "$lt_compile" 2>conftest.err)
12165 ac_status=$?
12166 cat conftest.err >&5
12167 echo "$as_me:__oline__: \$? = $ac_status" >&5
12168 if (exit $ac_status) && test -s "$ac_outfile"; then
12169 # The compiler can only warn and ignore the option if not recognized
12170 # So say no if there are warnings other than the usual output.
12171 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12173 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12174 lt_cv_prog_compiler_pic_works_CXX=yes
12175 fi
12176 fi
12177 $rm conftest*
12178
12179fi
12180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12181$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12182
12183if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12184 case $lt_prog_compiler_pic_CXX in
12185 "" | " "*) ;;
12186 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12187 esac
12188else
12189 lt_prog_compiler_pic_CXX=
12190 lt_prog_compiler_can_build_shared_CXX=no
12191fi
12192
12193fi
12194case $host_os in
12195 # For platforms which do not support PIC, -DPIC is meaningless:
12196 *djgpp*)
12197 lt_prog_compiler_pic_CXX=
12198 ;;
12199 *)
12200 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12201 ;;
12202esac
12203
12204#
12205# Check to make sure the static flag actually works.
12206#
12207wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12209$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12210if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
12211 $as_echo_n "(cached) " >&6
12212else
12213 lt_cv_prog_compiler_static_works_CXX=no
12214 save_LDFLAGS="$LDFLAGS"
12215 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12216 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12217 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12218 # The linker can only warn and ignore the option if not recognized
12219 # So say no if there are warnings
12220 if test -s conftest.err; then
12221 # Append any errors to the config.log.
12222 cat conftest.err 1>&5
12223 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12224 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12225 if diff conftest.exp conftest.er2 >/dev/null; then
12226 lt_cv_prog_compiler_static_works_CXX=yes
12227 fi
12228 else
12229 lt_cv_prog_compiler_static_works_CXX=yes
12230 fi
12231 fi
12232 $rm -r conftest*
12233 LDFLAGS="$save_LDFLAGS"
12234
12235fi
12236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12237$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12238
12239if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12240 :
12241else
12242 lt_prog_compiler_static_CXX=
12243fi
12244
12245
12246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12247$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12248if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12249 $as_echo_n "(cached) " >&6
12250else
12251 lt_cv_prog_compiler_c_o_CXX=no
12252 $rm -r conftest 2>/dev/null
12253 mkdir conftest
12254 cd conftest
12255 mkdir out
12256 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12257
12258 lt_compiler_flag="-o out/conftest2.$ac_objext"
12259 # Insert the option either (1) after the last *FLAGS variable, or
12260 # (2) before a word containing "conftest.", or (3) at the end.
12261 # Note that $ac_compile itself does not contain backslashes and begins
12262 # with a dollar sign (not a hyphen), so the echo should work correctly.
12263 lt_compile=`echo "$ac_compile" | $SED \
12264 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12265 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12266 -e 's:$: $lt_compiler_flag:'`
12267 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12268 (eval "$lt_compile" 2>out/conftest.err)
12269 ac_status=$?
12270 cat out/conftest.err >&5
12271 echo "$as_me:__oline__: \$? = $ac_status" >&5
12272 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12273 then
12274 # The compiler can only warn and ignore the option if not recognized
12275 # So say no if there are warnings
12276 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12277 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12278 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12279 lt_cv_prog_compiler_c_o_CXX=yes
12280 fi
12281 fi
12282 chmod u+w . 2>&5
12283 $rm conftest*
12284 # SGI C++ compiler will create directory out/ii_files/ for
12285 # template instantiation
12286 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12287 $rm out/* && rmdir out
12288 cd ..
12289 rmdir conftest
12290 $rm conftest*
12291
12292fi
12293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12294$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12295
12296
12297hard_links="nottested"
12298if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12299 # do not overwrite the value of need_locks provided by the user
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12301$as_echo_n "checking if we can lock with hard links... " >&6; }
12302 hard_links=yes
12303 $rm conftest*
12304 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12305 touch conftest.a
12306 ln conftest.a conftest.b 2>&5 || hard_links=no
12307 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12309$as_echo "$hard_links" >&6; }
12310 if test "$hard_links" = no; then
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12312$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12313 need_locks=warn
12314 fi
12315else
12316 need_locks=no
12317fi
12318
12319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12320$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12321
12322 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12323 case $host_os in
12324 aix[4-9]*)
12325 # If we're using GNU nm, then we don't want the "-C" option.
12326 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12327 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12328 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'
12329 else
12330 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'
12331 fi
12332 ;;
12333 pw32*)
12334 export_symbols_cmds_CXX="$ltdll_cmds"
12335 ;;
12336 cygwin* | mingw*)
12337 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'
12338 ;;
12339 linux* | k*bsd*-gnu)
12340 link_all_deplibs_CXX=no
12341 ;;
12342 *)
12343 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12344 ;;
12345 esac
12346 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12347
12348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12349$as_echo "$ld_shlibs_CXX" >&6; }
12350test "$ld_shlibs_CXX" = no && can_build_shared=no
12351
12352#
12353# Do we need to explicitly link libc?
12354#
12355case "x$archive_cmds_need_lc_CXX" in
12356x|xyes)
12357 # Assume -lc should be added
12358 archive_cmds_need_lc_CXX=yes
12359
12360 if test "$enable_shared" = yes && test "$GCC" = yes; then
12361 case $archive_cmds_CXX in
12362 *'~'*)
12363 # FIXME: we may have to deal with multi-command sequences.
12364 ;;
12365 '$CC '*)
12366 # Test whether the compiler implicitly links with -lc since on some
12367 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12368 # to ld, don't add -lc before -lgcc.
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12370$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12371 $rm conftest*
12372 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12373
12374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12375 (eval $ac_compile) 2>&5
12376 ac_status=$?
12377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12378 test $ac_status = 0; } 2>conftest.err; then
12379 soname=conftest
12380 lib=conftest
12381 libobjs=conftest.$ac_objext
12382 deplibs=
12383 wl=$lt_prog_compiler_wl_CXX
12384 pic_flag=$lt_prog_compiler_pic_CXX
12385 compiler_flags=-v
12386 linker_flags=-v
12387 verstring=
12388 output_objdir=.
12389 libname=conftest
12390 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12391 allow_undefined_flag_CXX=
12392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12393 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12394 ac_status=$?
12395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12396 test $ac_status = 0; }
12397 then
12398 archive_cmds_need_lc_CXX=no
12399 else
12400 archive_cmds_need_lc_CXX=yes
12401 fi
12402 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12403 else
12404 cat conftest.err 1>&5
12405 fi
12406 $rm conftest*
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12408$as_echo "$archive_cmds_need_lc_CXX" >&6; }
12409 ;;
12410 esac
12411 fi
12412 ;;
12413esac
12414
12415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12416$as_echo_n "checking dynamic linker characteristics... " >&6; }
12417library_names_spec=
12418libname_spec='lib$name'
12419soname_spec=
12420shrext_cmds=".so"
12421postinstall_cmds=
12422postuninstall_cmds=
12423finish_cmds=
12424finish_eval=
12425shlibpath_var=
12426shlibpath_overrides_runpath=unknown
12427version_type=none
12428dynamic_linker="$host_os ld.so"
12429sys_lib_dlsearch_path_spec="/lib /usr/lib"
12430
12431need_lib_prefix=unknown
12432hardcode_into_libs=no
12433
12434# when you set need_version to no, make sure it does not cause -set_version
12435# flags to be left without arguments
12436need_version=unknown
12437
12438case $host_os in
12439aix3*)
12440 version_type=linux
12441 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12442 shlibpath_var=LIBPATH
12443
12444 # AIX 3 has no versioning support, so we append a major version to the name.
12445 soname_spec='${libname}${release}${shared_ext}$major'
12446 ;;
12447
12448aix[4-9]*)
12449 version_type=linux
12450 need_lib_prefix=no
12451 need_version=no
12452 hardcode_into_libs=yes
12453 if test "$host_cpu" = ia64; then
12454 # AIX 5 supports IA64
12455 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12456 shlibpath_var=LD_LIBRARY_PATH
12457 else
12458 # With GCC up to 2.95.x, collect2 would create an import file
12459 # for dependence libraries. The import file would start with
12460 # the line `#! .'. This would cause the generated library to
12461 # depend on `.', always an invalid library. This was fixed in
12462 # development snapshots of GCC prior to 3.0.
12463 case $host_os in
12464 aix4 | aix4.[01] | aix4.[01].*)
12465 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12466 echo ' yes '
12467 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12468 :
12469 else
12470 can_build_shared=no
12471 fi
12472 ;;
12473 esac
12474 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12475 # soname into executable. Probably we can add versioning support to
12476 # collect2, so additional links can be useful in future.
12477 if test "$aix_use_runtimelinking" = yes; then
12478 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12479 # instead of lib<name>.a to let people know that these are not
12480 # typical AIX shared libraries.
12481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12482 else
12483 # We preserve .a as extension for shared libraries through AIX4.2
12484 # and later when we are not doing run time linking.
12485 library_names_spec='${libname}${release}.a $libname.a'
12486 soname_spec='${libname}${release}${shared_ext}$major'
12487 fi
12488 shlibpath_var=LIBPATH
12489 fi
12490 ;;
12491
12492amigaos*)
12493 library_names_spec='$libname.ixlibrary $libname.a'
12494 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12495 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'
12496 ;;
12497
12498beos*)
12499 library_names_spec='${libname}${shared_ext}'
12500 dynamic_linker="$host_os ld.so"
12501 shlibpath_var=LIBRARY_PATH
12502 ;;
12503
12504bsdi[45]*)
12505 version_type=linux
12506 need_version=no
12507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12508 soname_spec='${libname}${release}${shared_ext}$major'
12509 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12510 shlibpath_var=LD_LIBRARY_PATH
12511 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12512 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12513 # the default ld.so.conf also contains /usr/contrib/lib and
12514 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12515 # libtool to hard-code these into programs
12516 ;;
12517
12518cygwin* | mingw* | pw32*)
12519 version_type=windows
12520 shrext_cmds=".dll"
12521 need_version=no
12522 need_lib_prefix=no
12523
12524 case $GCC,$host_os in
12525 yes,cygwin* | yes,mingw* | yes,pw32*)
12526 library_names_spec='$libname.dll.a'
12527 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12528 postinstall_cmds='base_file=`basename \${file}`~
12529 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12530 dldir=$destdir/`dirname \$dlpath`~
12531 test -d \$dldir || mkdir -p \$dldir~
12532 $install_prog $dir/$dlname \$dldir/$dlname~
12533 chmod a+x \$dldir/$dlname'
12534 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12535 dlpath=$dir/\$dldll~
12536 $rm \$dlpath'
12537 shlibpath_overrides_runpath=yes
12538
12539 case $host_os in
12540 cygwin*)
12541 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12542 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12543 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12544 ;;
12545 mingw*)
12546 # MinGW DLLs use traditional 'lib' prefix
12547 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12548 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12549 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12550 # It is most probably a Windows format PATH printed by
12551 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12552 # path with ; separators, and with drive letters. We can handle the
12553 # drive letters (cygwin fileutils understands them), so leave them,
12554 # especially as we might pass files found there to a mingw objdump,
12555 # which wouldn't understand a cygwinified path. Ahh.
12556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12557 else
12558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12559 fi
12560 ;;
12561 pw32*)
12562 # pw32 DLLs use 'pw' prefix rather than 'lib'
12563 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12564 ;;
12565 esac
12566 ;;
12567
12568 *)
12569 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12570 ;;
12571 esac
12572 dynamic_linker='Win32 ld.exe'
12573 # FIXME: first we should search . and the directory the executable is in
12574 shlibpath_var=PATH
12575 ;;
12576
12577darwin* | rhapsody*)
12578 dynamic_linker="$host_os dyld"
12579 version_type=darwin
12580 need_lib_prefix=no
12581 need_version=no
12582 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12583 soname_spec='${libname}${release}${major}$shared_ext'
12584 shlibpath_overrides_runpath=yes
12585 shlibpath_var=DYLD_LIBRARY_PATH
12586 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12587
12588 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12589 ;;
12590
12591dgux*)
12592 version_type=linux
12593 need_lib_prefix=no
12594 need_version=no
12595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12596 soname_spec='${libname}${release}${shared_ext}$major'
12597 shlibpath_var=LD_LIBRARY_PATH
12598 ;;
12599
12600freebsd1*)
12601 dynamic_linker=no
12602 ;;
12603
12604freebsd* | dragonfly*)
12605 # DragonFly does not have aout. When/if they implement a new
12606 # versioning mechanism, adjust this.
12607 if test -x /usr/bin/objformat; then
12608 objformat=`/usr/bin/objformat`
12609 else
12610 case $host_os in
12611 freebsd[123]*) objformat=aout ;;
12612 *) objformat=elf ;;
12613 esac
12614 fi
12615 version_type=freebsd-$objformat
12616 case $version_type in
12617 freebsd-elf*)
12618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12619 need_version=no
12620 need_lib_prefix=no
12621 ;;
12622 freebsd-*)
12623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12624 need_version=yes
12625 ;;
12626 esac
12627 shlibpath_var=LD_LIBRARY_PATH
12628 case $host_os in
12629 freebsd2*)
12630 shlibpath_overrides_runpath=yes
12631 ;;
12632 freebsd3.[01]* | freebsdelf3.[01]*)
12633 shlibpath_overrides_runpath=yes
12634 hardcode_into_libs=yes
12635 ;;
12636 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12637 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12638 shlibpath_overrides_runpath=no
12639 hardcode_into_libs=yes
12640 ;;
12641 *) # from 4.6 on, and DragonFly
12642 shlibpath_overrides_runpath=yes
12643 hardcode_into_libs=yes
12644 ;;
12645 esac
12646 ;;
12647
12648gnu*)
12649 version_type=linux
12650 need_lib_prefix=no
12651 need_version=no
12652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12653 soname_spec='${libname}${release}${shared_ext}$major'
12654 shlibpath_var=LD_LIBRARY_PATH
12655 hardcode_into_libs=yes
12656 ;;
12657
12658hpux9* | hpux10* | hpux11*)
12659 # Give a soname corresponding to the major version so that dld.sl refuses to
12660 # link against other versions.
12661 version_type=sunos
12662 need_lib_prefix=no
12663 need_version=no
12664 case $host_cpu in
12665 ia64*)
12666 shrext_cmds='.so'
12667 hardcode_into_libs=yes
12668 dynamic_linker="$host_os dld.so"
12669 shlibpath_var=LD_LIBRARY_PATH
12670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12672 soname_spec='${libname}${release}${shared_ext}$major'
12673 if test "X$HPUX_IA64_MODE" = X32; then
12674 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12675 else
12676 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12677 fi
12678 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12679 ;;
12680 hppa*64*)
12681 shrext_cmds='.sl'
12682 hardcode_into_libs=yes
12683 dynamic_linker="$host_os dld.sl"
12684 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12685 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12687 soname_spec='${libname}${release}${shared_ext}$major'
12688 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12689 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12690 ;;
12691 *)
12692 shrext_cmds='.sl'
12693 dynamic_linker="$host_os dld.sl"
12694 shlibpath_var=SHLIB_PATH
12695 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12697 soname_spec='${libname}${release}${shared_ext}$major'
12698 ;;
12699 esac
12700 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12701 postinstall_cmds='chmod 555 $lib'
12702 ;;
12703
12704interix[3-9]*)
12705 version_type=linux
12706 need_lib_prefix=no
12707 need_version=no
12708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12709 soname_spec='${libname}${release}${shared_ext}$major'
12710 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12711 shlibpath_var=LD_LIBRARY_PATH
12712 shlibpath_overrides_runpath=no
12713 hardcode_into_libs=yes
12714 ;;
12715
12716irix5* | irix6* | nonstopux*)
12717 case $host_os in
12718 nonstopux*) version_type=nonstopux ;;
12719 *)
12720 if test "$lt_cv_prog_gnu_ld" = yes; then
12721 version_type=linux
12722 else
12723 version_type=irix
12724 fi ;;
12725 esac
12726 need_lib_prefix=no
12727 need_version=no
12728 soname_spec='${libname}${release}${shared_ext}$major'
12729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12730 case $host_os in
12731 irix5* | nonstopux*)
12732 libsuff= shlibsuff=
12733 ;;
12734 *)
12735 case $LD in # libtool.m4 will add one of these switches to LD
12736 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12737 libsuff= shlibsuff= libmagic=32-bit;;
12738 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12739 libsuff=32 shlibsuff=N32 libmagic=N32;;
12740 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12741 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12742 *) libsuff= shlibsuff= libmagic=never-match;;
12743 esac
12744 ;;
12745 esac
12746 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12747 shlibpath_overrides_runpath=no
12748 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12749 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12750 hardcode_into_libs=yes
12751 ;;
12752
12753# No shared lib support for Linux oldld, aout, or coff.
12754linux*oldld* | linux*aout* | linux*coff*)
12755 dynamic_linker=no
12756 ;;
12757
12758# This must be Linux ELF.
12759linux* | k*bsd*-gnu)
12760 version_type=linux
12761 need_lib_prefix=no
12762 need_version=no
12763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12764 soname_spec='${libname}${release}${shared_ext}$major'
12765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12766 shlibpath_var=LD_LIBRARY_PATH
12767 shlibpath_overrides_runpath=no
12768 # This implies no fast_install, which is unacceptable.
12769 # Some rework will be needed to allow for fast_install
12770 # before this can be enabled.
12771 hardcode_into_libs=yes
12772
12773 # Append ld.so.conf contents to the search path
12774 if test -f /etc/ld.so.conf; then
12775 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' ' '`
12776 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12777 fi
12778
12779 # We used to test for /lib/ld.so.1 and disable shared libraries on
12780 # powerpc, because MkLinux only supported shared libraries with the
12781 # GNU dynamic linker. Since this was broken with cross compilers,
12782 # most powerpc-linux boxes support dynamic linking these days and
12783 # people can always --disable-shared, the test was removed, and we
12784 # assume the GNU/Linux dynamic linker is in use.
12785 dynamic_linker='GNU/Linux ld.so'
12786 ;;
12787
12788netbsdelf*-gnu)
12789 version_type=linux
12790 need_lib_prefix=no
12791 need_version=no
12792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12793 soname_spec='${libname}${release}${shared_ext}$major'
12794 shlibpath_var=LD_LIBRARY_PATH
12795 shlibpath_overrides_runpath=no
12796 hardcode_into_libs=yes
12797 dynamic_linker='NetBSD ld.elf_so'
12798 ;;
12799
12800netbsd*)
12801 version_type=sunos
12802 need_lib_prefix=no
12803 need_version=no
12804 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12807 dynamic_linker='NetBSD (a.out) ld.so'
12808 else
12809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12810 soname_spec='${libname}${release}${shared_ext}$major'
12811 dynamic_linker='NetBSD ld.elf_so'
12812 fi
12813 shlibpath_var=LD_LIBRARY_PATH
12814 shlibpath_overrides_runpath=yes
12815 hardcode_into_libs=yes
12816 ;;
12817
12818newsos6)
12819 version_type=linux
12820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12821 shlibpath_var=LD_LIBRARY_PATH
12822 shlibpath_overrides_runpath=yes
12823 ;;
12824
12825nto-qnx*)
12826 version_type=linux
12827 need_lib_prefix=no
12828 need_version=no
12829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12830 soname_spec='${libname}${release}${shared_ext}$major'
12831 shlibpath_var=LD_LIBRARY_PATH
12832 shlibpath_overrides_runpath=yes
12833 ;;
12834
12835openbsd*)
12836 version_type=sunos
12837 sys_lib_dlsearch_path_spec="/usr/lib"
12838 need_lib_prefix=no
12839 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12840 case $host_os in
12841 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12842 *) need_version=no ;;
12843 esac
12844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12846 shlibpath_var=LD_LIBRARY_PATH
12847 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12848 case $host_os in
12849 openbsd2.[89] | openbsd2.[89].*)
12850 shlibpath_overrides_runpath=no
12851 ;;
12852 *)
12853 shlibpath_overrides_runpath=yes
12854 ;;
12855 esac
12856 else
12857 shlibpath_overrides_runpath=yes
12858 fi
12859 ;;
12860
12861os2*)
12862 libname_spec='$name'
12863 shrext_cmds=".dll"
12864 need_lib_prefix=no
12865 library_names_spec='$libname${shared_ext} $libname.a'
12866 dynamic_linker='OS/2 ld.exe'
12867 shlibpath_var=LIBPATH
12868 ;;
12869
12870osf3* | osf4* | osf5*)
12871 version_type=osf
12872 need_lib_prefix=no
12873 need_version=no
12874 soname_spec='${libname}${release}${shared_ext}$major'
12875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12876 shlibpath_var=LD_LIBRARY_PATH
12877 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12878 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12879 ;;
12880
12881rdos*)
12882 dynamic_linker=no
12883 ;;
12884
12885solaris*)
12886 version_type=linux
12887 need_lib_prefix=no
12888 need_version=no
12889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12890 soname_spec='${libname}${release}${shared_ext}$major'
12891 shlibpath_var=LD_LIBRARY_PATH
12892 shlibpath_overrides_runpath=yes
12893 hardcode_into_libs=yes
12894 # ldd complains unless libraries are executable
12895 postinstall_cmds='chmod +x $lib'
12896 ;;
12897
12898sunos4*)
12899 version_type=sunos
12900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12901 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12902 shlibpath_var=LD_LIBRARY_PATH
12903 shlibpath_overrides_runpath=yes
12904 if test "$with_gnu_ld" = yes; then
12905 need_lib_prefix=no
12906 fi
12907 need_version=yes
12908 ;;
12909
12910sysv4 | sysv4.3*)
12911 version_type=linux
12912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12913 soname_spec='${libname}${release}${shared_ext}$major'
12914 shlibpath_var=LD_LIBRARY_PATH
12915 case $host_vendor in
12916 sni)
12917 shlibpath_overrides_runpath=no
12918 need_lib_prefix=no
12919 export_dynamic_flag_spec='${wl}-Blargedynsym'
12920 runpath_var=LD_RUN_PATH
12921 ;;
12922 siemens)
12923 need_lib_prefix=no
12924 ;;
12925 motorola)
12926 need_lib_prefix=no
12927 need_version=no
12928 shlibpath_overrides_runpath=no
12929 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12930 ;;
12931 esac
12932 ;;
12933
12934sysv4*MP*)
12935 if test -d /usr/nec ;then
12936 version_type=linux
12937 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12938 soname_spec='$libname${shared_ext}.$major'
12939 shlibpath_var=LD_LIBRARY_PATH
12940 fi
12941 ;;
12942
12943sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12944 version_type=freebsd-elf
12945 need_lib_prefix=no
12946 need_version=no
12947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12948 soname_spec='${libname}${release}${shared_ext}$major'
12949 shlibpath_var=LD_LIBRARY_PATH
12950 hardcode_into_libs=yes
12951 if test "$with_gnu_ld" = yes; then
12952 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12953 shlibpath_overrides_runpath=no
12954 else
12955 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12956 shlibpath_overrides_runpath=yes
12957 case $host_os in
12958 sco3.2v5*)
12959 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12960 ;;
12961 esac
12962 fi
12963 sys_lib_dlsearch_path_spec='/usr/lib'
12964 ;;
12965
12966uts4*)
12967 version_type=linux
12968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12969 soname_spec='${libname}${release}${shared_ext}$major'
12970 shlibpath_var=LD_LIBRARY_PATH
12971 ;;
12972
12973*)
12974 dynamic_linker=no
12975 ;;
12976esac
12977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12978$as_echo "$dynamic_linker" >&6; }
12979test "$dynamic_linker" = no && can_build_shared=no
12980
12981if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
12982 $as_echo_n "(cached) " >&6
12983else
12984 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
12985fi
12986
12987sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12988if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
12989 $as_echo_n "(cached) " >&6
12990else
12991 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
12992fi
12993
12994sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12995
12996variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12997if test "$GCC" = yes; then
12998 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12999fi
13000
13001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13002$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13003hardcode_action_CXX=
13004if test -n "$hardcode_libdir_flag_spec_CXX" || \
13005 test -n "$runpath_var_CXX" || \
13006 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13007
13008 # We can hardcode non-existant directories.
13009 if test "$hardcode_direct_CXX" != no &&
13010 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13011 # have to relink, otherwise we might link with an installed library
13012 # when we should be linking with a yet-to-be-installed one
13013 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13014 test "$hardcode_minus_L_CXX" != no; then
13015 # Linking always hardcodes the temporary library directory.
13016 hardcode_action_CXX=relink
13017 else
13018 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13019 hardcode_action_CXX=immediate
13020 fi
13021else
13022 # We cannot hardcode anything, or else we can only hardcode existing
13023 # directories.
13024 hardcode_action_CXX=unsupported
13025fi
13026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13027$as_echo "$hardcode_action_CXX" >&6; }
13028
13029if test "$hardcode_action_CXX" = relink; then
13030 # Fast installation is not supported
13031 enable_fast_install=no
13032elif test "$shlibpath_overrides_runpath" = yes ||
13033 test "$enable_shared" = no; then
13034 # Fast installation is not necessary
13035 enable_fast_install=needless
13036fi
13037
13038
13039# The else clause should only fire when bootstrapping the
13040# libtool distribution, otherwise you forgot to ship ltmain.sh
13041# with your package, and you will get complaints that there are
13042# no rules to generate ltmain.sh.
13043if test -f "$ltmain"; then
13044 # See if we are running on zsh, and set the options which allow our commands through
13045 # without removal of \ escapes.
13046 if test -n "${ZSH_VERSION+set}" ; then
13047 setopt NO_GLOB_SUBST
13048 fi
13049 # Now quote all the things that may contain metacharacters while being
13050 # careful not to overquote the AC_SUBSTed values. We take copies of the
13051 # variables and quote the copies for generation of the libtool script.
13052 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13053 SED SHELL STRIP \
13054 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13055 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13056 deplibs_check_method reload_flag reload_cmds need_locks \
13057 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13058 lt_cv_sys_global_symbol_to_c_name_address \
13059 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13060 old_postinstall_cmds old_postuninstall_cmds \
13061 compiler_CXX \
13062 CC_CXX \
13063 LD_CXX \
13064 lt_prog_compiler_wl_CXX \
13065 lt_prog_compiler_pic_CXX \
13066 lt_prog_compiler_static_CXX \
13067 lt_prog_compiler_no_builtin_flag_CXX \
13068 export_dynamic_flag_spec_CXX \
13069 thread_safe_flag_spec_CXX \
13070 whole_archive_flag_spec_CXX \
13071 enable_shared_with_static_runtimes_CXX \
13072 old_archive_cmds_CXX \
13073 old_archive_from_new_cmds_CXX \
13074 predep_objects_CXX \
13075 postdep_objects_CXX \
13076 predeps_CXX \
13077 postdeps_CXX \
13078 compiler_lib_search_path_CXX \
13079 compiler_lib_search_dirs_CXX \
13080 archive_cmds_CXX \
13081 archive_expsym_cmds_CXX \
13082 postinstall_cmds_CXX \
13083 postuninstall_cmds_CXX \
13084 old_archive_from_expsyms_cmds_CXX \
13085 allow_undefined_flag_CXX \
13086 no_undefined_flag_CXX \
13087 export_symbols_cmds_CXX \
13088 hardcode_libdir_flag_spec_CXX \
13089 hardcode_libdir_flag_spec_ld_CXX \
13090 hardcode_libdir_separator_CXX \
13091 hardcode_automatic_CXX \
13092 module_cmds_CXX \
13093 module_expsym_cmds_CXX \
13094 lt_cv_prog_compiler_c_o_CXX \
13095 fix_srcfile_path_CXX \
13096 exclude_expsyms_CXX \
13097 include_expsyms_CXX; do
13098
13099 case $var in
13100 old_archive_cmds_CXX | \
13101 old_archive_from_new_cmds_CXX | \
13102 archive_cmds_CXX | \
13103 archive_expsym_cmds_CXX | \
13104 module_cmds_CXX | \
13105 module_expsym_cmds_CXX | \
13106 old_archive_from_expsyms_cmds_CXX | \
13107 export_symbols_cmds_CXX | \
13108 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13109 postinstall_cmds | postuninstall_cmds | \
13110 old_postinstall_cmds | old_postuninstall_cmds | \
13111 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13112 # Double-quote double-evaled strings.
13113 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13114 ;;
13115 *)
13116 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13117 ;;
13118 esac
13119 done
13120
13121 case $lt_echo in
13122 *'\$0 --fallback-echo"')
13123 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13124 ;;
13125 esac
13126
13127cfgfile="$ofile"
13128
13129 cat <<__EOF__ >> "$cfgfile"
13130# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13131
13132# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13133
13134# Shell to use when invoking shell scripts.
13135SHELL=$lt_SHELL
13136
13137# Whether or not to build shared libraries.
13138build_libtool_libs=$enable_shared
13139
13140# Whether or not to build static libraries.
13141build_old_libs=$enable_static
13142
13143# Whether or not to add -lc for building shared libraries.
13144build_libtool_need_lc=$archive_cmds_need_lc_CXX
13145
13146# Whether or not to disallow shared libs when runtime libs are static
13147allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13148
13149# Whether or not to optimize for fast installation.
13150fast_install=$enable_fast_install
13151
13152# The host system.
13153host_alias=$host_alias
13154host=$host
13155host_os=$host_os
13156
13157# The build system.
13158build_alias=$build_alias
13159build=$build
13160build_os=$build_os
13161
13162# An echo program that does not interpret backslashes.
13163echo=$lt_echo
13164
13165# The archiver.
13166AR=$lt_AR
13167AR_FLAGS=$lt_AR_FLAGS
13168
13169# A C compiler.
13170LTCC=$lt_LTCC
13171
13172# LTCC compiler flags.
13173LTCFLAGS=$lt_LTCFLAGS
13174
13175# A language-specific compiler.
13176CC=$lt_compiler_CXX
13177
13178# Is the compiler the GNU C compiler?
13179with_gcc=$GCC_CXX
13180
13181# An ERE matcher.
13182EGREP=$lt_EGREP
13183
13184# The linker used to build libraries.
13185LD=$lt_LD_CXX
13186
13187# Whether we need hard or soft links.
13188LN_S=$lt_LN_S
13189
13190# A BSD-compatible nm program.
13191NM=$lt_NM
13192
13193# A symbol stripping program
13194STRIP=$lt_STRIP
13195
13196# Used to examine libraries when file_magic_cmd begins "file"
13197MAGIC_CMD=$MAGIC_CMD
13198
13199# Used on cygwin: DLL creation program.
13200DLLTOOL="$DLLTOOL"
13201
13202# Used on cygwin: object dumper.
13203OBJDUMP="$OBJDUMP"
13204
13205# Used on cygwin: assembler.
13206AS="$AS"
13207
13208# The name of the directory that contains temporary libtool files.
13209objdir=$objdir
13210
13211# How to create reloadable object files.
13212reload_flag=$lt_reload_flag
13213reload_cmds=$lt_reload_cmds
13214
13215# How to pass a linker flag through the compiler.
13216wl=$lt_lt_prog_compiler_wl_CXX
13217
13218# Object file suffix (normally "o").
13219objext="$ac_objext"
13220
13221# Old archive suffix (normally "a").
13222libext="$libext"
13223
13224# Shared library suffix (normally ".so").
13225shrext_cmds='$shrext_cmds'
13226
13227# Executable file suffix (normally "").
13228exeext="$exeext"
13229
13230# Additional compiler flags for building library objects.
13231pic_flag=$lt_lt_prog_compiler_pic_CXX
13232pic_mode=$pic_mode
13233
13234# What is the maximum length of a command?
13235max_cmd_len=$lt_cv_sys_max_cmd_len
13236
13237# Does compiler simultaneously support -c and -o options?
13238compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13239
13240# Must we lock files when doing compilation?
13241need_locks=$lt_need_locks
13242
13243# Do we need the lib prefix for modules?
13244need_lib_prefix=$need_lib_prefix
13245
13246# Do we need a version for libraries?
13247need_version=$need_version
13248
13249# Whether dlopen is supported.
13250dlopen_support=$enable_dlopen
13251
13252# Whether dlopen of programs is supported.
13253dlopen_self=$enable_dlopen_self
13254
13255# Whether dlopen of statically linked programs is supported.
13256dlopen_self_static=$enable_dlopen_self_static
13257
13258# Compiler flag to prevent dynamic linking.
13259link_static_flag=$lt_lt_prog_compiler_static_CXX
13260
13261# Compiler flag to turn off builtin functions.
13262no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13263
13264# Compiler flag to allow reflexive dlopens.
13265export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13266
13267# Compiler flag to generate shared objects directly from archives.
13268whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13269
13270# Compiler flag to generate thread-safe objects.
13271thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13272
13273# Library versioning type.
13274version_type=$version_type
13275
13276# Format of library name prefix.
13277libname_spec=$lt_libname_spec
13278
13279# List of archive names. First name is the real one, the rest are links.
13280# The last name is the one that the linker finds with -lNAME.
13281library_names_spec=$lt_library_names_spec
13282
13283# The coded name of the library, if different from the real name.
13284soname_spec=$lt_soname_spec
13285
13286# Commands used to build and install an old-style archive.
13287RANLIB=$lt_RANLIB
13288old_archive_cmds=$lt_old_archive_cmds_CXX
13289old_postinstall_cmds=$lt_old_postinstall_cmds
13290old_postuninstall_cmds=$lt_old_postuninstall_cmds
13291
13292# Create an old-style archive from a shared archive.
13293old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13294
13295# Create a temporary old-style archive to link instead of a shared archive.
13296old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13297
13298# Commands used to build and install a shared archive.
13299archive_cmds=$lt_archive_cmds_CXX
13300archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13301postinstall_cmds=$lt_postinstall_cmds
13302postuninstall_cmds=$lt_postuninstall_cmds
13303
13304# Commands used to build a loadable module (assumed same as above if empty)
13305module_cmds=$lt_module_cmds_CXX
13306module_expsym_cmds=$lt_module_expsym_cmds_CXX
13307
13308# Commands to strip libraries.
13309old_striplib=$lt_old_striplib
13310striplib=$lt_striplib
13311
13312# Dependencies to place before the objects being linked to create a
13313# shared library.
13314predep_objects=$lt_predep_objects_CXX
13315
13316# Dependencies to place after the objects being linked to create a
13317# shared library.
13318postdep_objects=$lt_postdep_objects_CXX
13319
13320# Dependencies to place before the objects being linked to create a
13321# shared library.
13322predeps=$lt_predeps_CXX
13323
13324# Dependencies to place after the objects being linked to create a
13325# shared library.
13326postdeps=$lt_postdeps_CXX
13327
13328# The directories searched by this compiler when creating a shared
13329# library
13330compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13331
13332# The library search path used internally by the compiler when linking
13333# a shared library.
13334compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13335
13336# Method to check whether dependent libraries are shared objects.
13337deplibs_check_method=$lt_deplibs_check_method
13338
13339# Command to use when deplibs_check_method == file_magic.
13340file_magic_cmd=$lt_file_magic_cmd
13341
13342# Flag that allows shared libraries with undefined symbols to be built.
13343allow_undefined_flag=$lt_allow_undefined_flag_CXX
13344
13345# Flag that forces no undefined symbols.
13346no_undefined_flag=$lt_no_undefined_flag_CXX
13347
13348# Commands used to finish a libtool library installation in a directory.
13349finish_cmds=$lt_finish_cmds
13350
13351# Same as above, but a single script fragment to be evaled but not shown.
13352finish_eval=$lt_finish_eval
13353
13354# Take the output of nm and produce a listing of raw symbols and C names.
13355global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13356
13357# Transform the output of nm in a proper C declaration
13358global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13359
13360# Transform the output of nm in a C name address pair
13361global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13362
13363# This is the shared library runtime path variable.
13364runpath_var=$runpath_var
13365
13366# This is the shared library path variable.
13367shlibpath_var=$shlibpath_var
13368
13369# Is shlibpath searched before the hard-coded library search path?
13370shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13371
13372# How to hardcode a shared library path into an executable.
13373hardcode_action=$hardcode_action_CXX
13374
13375# Whether we should hardcode library paths into libraries.
13376hardcode_into_libs=$hardcode_into_libs
13377
13378# Flag to hardcode \$libdir into a binary during linking.
13379# This must work even if \$libdir does not exist.
13380hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13381
13382# If ld is used when linking, flag to hardcode \$libdir into
13383# a binary during linking. This must work even if \$libdir does
13384# not exist.
13385hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13386
13387# Whether we need a single -rpath flag with a separated argument.
13388hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13389
13390# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13391# resulting binary.
13392hardcode_direct=$hardcode_direct_CXX
13393
13394# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13395# resulting binary.
13396hardcode_minus_L=$hardcode_minus_L_CXX
13397
13398# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13399# the resulting binary.
13400hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13401
13402# Set to yes if building a shared library automatically hardcodes DIR into the library
13403# and all subsequent libraries and executables linked against it.
13404hardcode_automatic=$hardcode_automatic_CXX
13405
13406# Variables whose values should be saved in libtool wrapper scripts and
13407# restored at relink time.
13408variables_saved_for_relink="$variables_saved_for_relink"
13409
13410# Whether libtool must link a program against all its dependency libraries.
13411link_all_deplibs=$link_all_deplibs_CXX
13412
13413# Compile-time system search path for libraries
13414sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13415
13416# Run-time system search path for libraries
13417sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13418
13419# Fix the shell variable \$srcfile for the compiler.
13420fix_srcfile_path=$lt_fix_srcfile_path
13421
13422# Set to yes if exported symbols are required.
13423always_export_symbols=$always_export_symbols_CXX
13424
13425# The commands to list exported symbols.
13426export_symbols_cmds=$lt_export_symbols_cmds_CXX
13427
13428# The commands to extract the exported symbol list from a shared archive.
13429extract_expsyms_cmds=$lt_extract_expsyms_cmds
13430
13431# Symbols that should not be listed in the preloaded symbols.
13432exclude_expsyms=$lt_exclude_expsyms_CXX
13433
13434# Symbols that must always be exported.
13435include_expsyms=$lt_include_expsyms_CXX
13436
13437# ### END LIBTOOL TAG CONFIG: $tagname
13438
13439__EOF__
13440
13441
13442else
13443 # If there is no Makefile yet, we rely on a make rule to execute
13444 # `config.status --recheck' to rerun these tests and create the
13445 # libtool script then.
13446 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13447 if test -f "$ltmain_in"; then
13448 test -f Makefile && make "$ltmain"
13449 fi
13450fi
13451
13452
13453ac_ext=c
13454ac_cpp='$CPP $CPPFLAGS'
13455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13457ac_compiler_gnu=$ac_cv_c_compiler_gnu
13458
13459CC=$lt_save_CC
13460LDCXX=$LD
13461LD=$lt_save_LD
13462GCC=$lt_save_GCC
13463with_gnu_ldcxx=$with_gnu_ld
13464with_gnu_ld=$lt_save_with_gnu_ld
13465lt_cv_path_LDCXX=$lt_cv_path_LD
13466lt_cv_path_LD=$lt_save_path_LD
13467lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13468lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13469
13470 else
13471 tagname=""
13472 fi
13473 ;;
13474
13475 F77)
13476 if test -n "$F77" && test "X$F77" != "Xno"; then
13477
13478ac_ext=f
13479ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13480ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13481ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13482
13483
13484archive_cmds_need_lc_F77=no
13485allow_undefined_flag_F77=
13486always_export_symbols_F77=no
13487archive_expsym_cmds_F77=
13488export_dynamic_flag_spec_F77=
13489hardcode_direct_F77=no
13490hardcode_libdir_flag_spec_F77=
13491hardcode_libdir_flag_spec_ld_F77=
13492hardcode_libdir_separator_F77=
13493hardcode_minus_L_F77=no
13494hardcode_automatic_F77=no
13495module_cmds_F77=
13496module_expsym_cmds_F77=
13497link_all_deplibs_F77=unknown
13498old_archive_cmds_F77=$old_archive_cmds
13499no_undefined_flag_F77=
13500whole_archive_flag_spec_F77=
13501enable_shared_with_static_runtimes_F77=no
13502
13503# Source file extension for f77 test sources.
13504ac_ext=f
13505
13506# Object file extension for compiled f77 test sources.
13507objext=o
13508objext_F77=$objext
13509
13510# Code to be used in simple compile tests
13511lt_simple_compile_test_code="\
13512 subroutine t
13513 return
13514 end
13515"
13516
13517# Code to be used in simple link tests
13518lt_simple_link_test_code="\
13519 program t
13520 end
13521"
13522
13523# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13524
13525# If no C compiler was specified, use CC.
13526LTCC=${LTCC-"$CC"}
13527
13528# If no C compiler flags were specified, use CFLAGS.
13529LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13530
13531# Allow CC to be a program name with arguments.
13532compiler=$CC
13533
13534
13535# save warnings/boilerplate of simple test code
13536ac_outfile=conftest.$ac_objext
13537echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13538eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13539_lt_compiler_boilerplate=`cat conftest.err`
13540$rm conftest*
13541
13542ac_outfile=conftest.$ac_objext
13543echo "$lt_simple_link_test_code" >conftest.$ac_ext
13544eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13545_lt_linker_boilerplate=`cat conftest.err`
13546$rm -r conftest*
13547
13548
13549# Allow CC to be a program name with arguments.
13550lt_save_CC="$CC"
13551CC=${F77-"f77"}
13552compiler=$CC
13553compiler_F77=$CC
13554for cc_temp in $compiler""; do
13555 case $cc_temp in
13556 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13557 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13558 \-*) ;;
13559 *) break;;
13560 esac
13561done
13562cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13563
13564
13565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13566$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13568$as_echo "$can_build_shared" >&6; }
13569
13570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13571$as_echo_n "checking whether to build shared libraries... " >&6; }
13572test "$can_build_shared" = "no" && enable_shared=no
13573
13574# On AIX, shared libraries and static libraries use the same namespace, and
13575# are all built from PIC.
13576case $host_os in
13577aix3*)
13578 test "$enable_shared" = yes && enable_static=no
13579 if test -n "$RANLIB"; then
13580 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13581 postinstall_cmds='$RANLIB $lib'
13582 fi
13583 ;;
13584aix[4-9]*)
13585 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13586 test "$enable_shared" = yes && enable_static=no
13587 fi
13588 ;;
13589esac
13590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13591$as_echo "$enable_shared" >&6; }
13592
13593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13594$as_echo_n "checking whether to build static libraries... " >&6; }
13595# Make sure either enable_shared or enable_static is yes.
13596test "$enable_shared" = yes || enable_static=yes
13597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13598$as_echo "$enable_static" >&6; }
13599
13600GCC_F77="$G77"
13601LD_F77="$LD"
13602
13603lt_prog_compiler_wl_F77=
13604lt_prog_compiler_pic_F77=
13605lt_prog_compiler_static_F77=
13606
13607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13608$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13609
13610 if test "$GCC" = yes; then
13611 lt_prog_compiler_wl_F77='-Wl,'
13612 lt_prog_compiler_static_F77='-static'
13613
13614 case $host_os in
13615 aix*)
13616 # All AIX code is PIC.
13617 if test "$host_cpu" = ia64; then
13618 # AIX 5 now supports IA64 processor
13619 lt_prog_compiler_static_F77='-Bstatic'
13620 fi
13621 ;;
13622
13623 amigaos*)
13624 # FIXME: we need at least 68020 code to build shared libraries, but
13625 # adding the `-m68020' flag to GCC prevents building anything better,
13626 # like `-m68040'.
13627 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13628 ;;
13629
13630 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13631 # PIC is the default for these OSes.
13632 ;;
13633
13634 mingw* | cygwin* | pw32* | os2*)
13635 # This hack is so that the source file can tell whether it is being
13636 # built for inclusion in a dll (and should export symbols for example).
13637 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13638 # (--disable-auto-import) libraries
13639 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13640 ;;
13641
13642 darwin* | rhapsody*)
13643 # PIC is the default on this platform
13644 # Common symbols not allowed in MH_DYLIB files
13645 lt_prog_compiler_pic_F77='-fno-common'
13646 ;;
13647
13648 interix[3-9]*)
13649 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13650 # Instead, we relocate shared libraries at runtime.
13651 ;;
13652
13653 msdosdjgpp*)
13654 # Just because we use GCC doesn't mean we suddenly get shared libraries
13655 # on systems that don't support them.
13656 lt_prog_compiler_can_build_shared_F77=no
13657 enable_shared=no
13658 ;;
13659
13660 sysv4*MP*)
13661 if test -d /usr/nec; then
13662 lt_prog_compiler_pic_F77=-Kconform_pic
13663 fi
13664 ;;
13665
13666 hpux*)
13667 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13668 # not for PA HP-UX.
13669 case $host_cpu in
13670 hppa*64*|ia64*)
13671 # +Z the default
13672 ;;
13673 *)
13674 lt_prog_compiler_pic_F77='-fPIC'
13675 ;;
13676 esac
13677 ;;
13678
13679 *)
13680 lt_prog_compiler_pic_F77='-fPIC'
13681 ;;
13682 esac
13683 else
13684 # PORTME Check for flag to pass linker flags through the system compiler.
13685 case $host_os in
13686 aix*)
13687 lt_prog_compiler_wl_F77='-Wl,'
13688 if test "$host_cpu" = ia64; then
13689 # AIX 5 now supports IA64 processor
13690 lt_prog_compiler_static_F77='-Bstatic'
13691 else
13692 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13693 fi
13694 ;;
13695 darwin*)
13696 # PIC is the default on this platform
13697 # Common symbols not allowed in MH_DYLIB files
13698 case $cc_basename in
13699 xlc*)
13700 lt_prog_compiler_pic_F77='-qnocommon'
13701 lt_prog_compiler_wl_F77='-Wl,'
13702 ;;
13703 esac
13704 ;;
13705
13706 mingw* | cygwin* | pw32* | os2*)
13707 # This hack is so that the source file can tell whether it is being
13708 # built for inclusion in a dll (and should export symbols for example).
13709 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13710 ;;
13711
13712 hpux9* | hpux10* | hpux11*)
13713 lt_prog_compiler_wl_F77='-Wl,'
13714 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13715 # not for PA HP-UX.
13716 case $host_cpu in
13717 hppa*64*|ia64*)
13718 # +Z the default
13719 ;;
13720 *)
13721 lt_prog_compiler_pic_F77='+Z'
13722 ;;
13723 esac
13724 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13725 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13726 ;;
13727
13728 irix5* | irix6* | nonstopux*)
13729 lt_prog_compiler_wl_F77='-Wl,'
13730 # PIC (with -KPIC) is the default.
13731 lt_prog_compiler_static_F77='-non_shared'
13732 ;;
13733
13734 newsos6)
13735 lt_prog_compiler_pic_F77='-KPIC'
13736 lt_prog_compiler_static_F77='-Bstatic'
13737 ;;
13738
13739 linux* | k*bsd*-gnu)
13740 case $cc_basename in
13741 icc* | ecc*)
13742 lt_prog_compiler_wl_F77='-Wl,'
13743 lt_prog_compiler_pic_F77='-KPIC'
13744 lt_prog_compiler_static_F77='-static'
13745 ;;
13746 pgcc* | pgf77* | pgf90* | pgf95*)
13747 # Portland Group compilers (*not* the Pentium gcc compiler,
13748 # which looks to be a dead project)
13749 lt_prog_compiler_wl_F77='-Wl,'
13750 lt_prog_compiler_pic_F77='-fpic'
13751 lt_prog_compiler_static_F77='-Bstatic'
13752 ;;
13753 ccc*)
13754 lt_prog_compiler_wl_F77='-Wl,'
13755 # All Alpha code is PIC.
13756 lt_prog_compiler_static_F77='-non_shared'
13757 ;;
13758 *)
13759 case `$CC -V 2>&1 | sed 5q` in
13760 *Sun\ C*)
13761 # Sun C 5.9
13762 lt_prog_compiler_pic_F77='-KPIC'
13763 lt_prog_compiler_static_F77='-Bstatic'
13764 lt_prog_compiler_wl_F77='-Wl,'
13765 ;;
13766 *Sun\ F*)
13767 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13768 lt_prog_compiler_pic_F77='-KPIC'
13769 lt_prog_compiler_static_F77='-Bstatic'
13770 lt_prog_compiler_wl_F77=''
13771 ;;
13772 esac
13773 ;;
13774 esac
13775 ;;
13776
13777 osf3* | osf4* | osf5*)
13778 lt_prog_compiler_wl_F77='-Wl,'
13779 # All OSF/1 code is PIC.
13780 lt_prog_compiler_static_F77='-non_shared'
13781 ;;
13782
13783 rdos*)
13784 lt_prog_compiler_static_F77='-non_shared'
13785 ;;
13786
13787 solaris*)
13788 lt_prog_compiler_pic_F77='-KPIC'
13789 lt_prog_compiler_static_F77='-Bstatic'
13790 case $cc_basename in
13791 f77* | f90* | f95*)
13792 lt_prog_compiler_wl_F77='-Qoption ld ';;
13793 *)
13794 lt_prog_compiler_wl_F77='-Wl,';;
13795 esac
13796 ;;
13797
13798 sunos4*)
13799 lt_prog_compiler_wl_F77='-Qoption ld '
13800 lt_prog_compiler_pic_F77='-PIC'
13801 lt_prog_compiler_static_F77='-Bstatic'
13802 ;;
13803
13804 sysv4 | sysv4.2uw2* | sysv4.3*)
13805 lt_prog_compiler_wl_F77='-Wl,'
13806 lt_prog_compiler_pic_F77='-KPIC'
13807 lt_prog_compiler_static_F77='-Bstatic'
13808 ;;
13809
13810 sysv4*MP*)
13811 if test -d /usr/nec ;then
13812 lt_prog_compiler_pic_F77='-Kconform_pic'
13813 lt_prog_compiler_static_F77='-Bstatic'
13814 fi
13815 ;;
13816
13817 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13818 lt_prog_compiler_wl_F77='-Wl,'
13819 lt_prog_compiler_pic_F77='-KPIC'
13820 lt_prog_compiler_static_F77='-Bstatic'
13821 ;;
13822
13823 unicos*)
13824 lt_prog_compiler_wl_F77='-Wl,'
13825 lt_prog_compiler_can_build_shared_F77=no
13826 ;;
13827
13828 uts4*)
13829 lt_prog_compiler_pic_F77='-pic'
13830 lt_prog_compiler_static_F77='-Bstatic'
13831 ;;
13832
13833 *)
13834 lt_prog_compiler_can_build_shared_F77=no
13835 ;;
13836 esac
13837 fi
13838
13839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13840$as_echo "$lt_prog_compiler_pic_F77" >&6; }
13841
13842#
13843# Check to make sure the PIC flag actually works.
13844#
13845if test -n "$lt_prog_compiler_pic_F77"; then
13846
13847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13848$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13849if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then :
13850 $as_echo_n "(cached) " >&6
13851else
13852 lt_cv_prog_compiler_pic_works_F77=no
13853 ac_outfile=conftest.$ac_objext
13854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13855 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13856 # Insert the option either (1) after the last *FLAGS variable, or
13857 # (2) before a word containing "conftest.", or (3) at the end.
13858 # Note that $ac_compile itself does not contain backslashes and begins
13859 # with a dollar sign (not a hyphen), so the echo should work correctly.
13860 # The option is referenced via a variable to avoid confusing sed.
13861 lt_compile=`echo "$ac_compile" | $SED \
13862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13864 -e 's:$: $lt_compiler_flag:'`
13865 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13866 (eval "$lt_compile" 2>conftest.err)
13867 ac_status=$?
13868 cat conftest.err >&5
13869 echo "$as_me:__oline__: \$? = $ac_status" >&5
13870 if (exit $ac_status) && test -s "$ac_outfile"; then
13871 # The compiler can only warn and ignore the option if not recognized
13872 # So say no if there are warnings other than the usual output.
13873 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13874 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13875 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13876 lt_cv_prog_compiler_pic_works_F77=yes
13877 fi
13878 fi
13879 $rm conftest*
13880
13881fi
13882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
13883$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
13884
13885if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
13886 case $lt_prog_compiler_pic_F77 in
13887 "" | " "*) ;;
13888 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13889 esac
13890else
13891 lt_prog_compiler_pic_F77=
13892 lt_prog_compiler_can_build_shared_F77=no
13893fi
13894
13895fi
13896case $host_os in
13897 # For platforms which do not support PIC, -DPIC is meaningless:
13898 *djgpp*)
13899 lt_prog_compiler_pic_F77=
13900 ;;
13901 *)
13902 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13903 ;;
13904esac
13905
13906#
13907# Check to make sure the static flag actually works.
13908#
13909wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13911$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13912if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then :
13913 $as_echo_n "(cached) " >&6
13914else
13915 lt_cv_prog_compiler_static_works_F77=no
13916 save_LDFLAGS="$LDFLAGS"
13917 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13918 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13919 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13920 # The linker can only warn and ignore the option if not recognized
13921 # So say no if there are warnings
13922 if test -s conftest.err; then
13923 # Append any errors to the config.log.
13924 cat conftest.err 1>&5
13925 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13926 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13927 if diff conftest.exp conftest.er2 >/dev/null; then
13928 lt_cv_prog_compiler_static_works_F77=yes
13929 fi
13930 else
13931 lt_cv_prog_compiler_static_works_F77=yes
13932 fi
13933 fi
13934 $rm -r conftest*
13935 LDFLAGS="$save_LDFLAGS"
13936
13937fi
13938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
13939$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
13940
13941if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
13942 :
13943else
13944 lt_prog_compiler_static_F77=
13945fi
13946
13947
13948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13949$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13950if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
13951 $as_echo_n "(cached) " >&6
13952else
13953 lt_cv_prog_compiler_c_o_F77=no
13954 $rm -r conftest 2>/dev/null
13955 mkdir conftest
13956 cd conftest
13957 mkdir out
13958 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13959
13960 lt_compiler_flag="-o out/conftest2.$ac_objext"
13961 # Insert the option either (1) after the last *FLAGS variable, or
13962 # (2) before a word containing "conftest.", or (3) at the end.
13963 # Note that $ac_compile itself does not contain backslashes and begins
13964 # with a dollar sign (not a hyphen), so the echo should work correctly.
13965 lt_compile=`echo "$ac_compile" | $SED \
13966 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13967 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13968 -e 's:$: $lt_compiler_flag:'`
13969 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13970 (eval "$lt_compile" 2>out/conftest.err)
13971 ac_status=$?
13972 cat out/conftest.err >&5
13973 echo "$as_me:__oline__: \$? = $ac_status" >&5
13974 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13975 then
13976 # The compiler can only warn and ignore the option if not recognized
13977 # So say no if there are warnings
13978 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13979 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13980 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13981 lt_cv_prog_compiler_c_o_F77=yes
13982 fi
13983 fi
13984 chmod u+w . 2>&5
13985 $rm conftest*
13986 # SGI C++ compiler will create directory out/ii_files/ for
13987 # template instantiation
13988 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13989 $rm out/* && rmdir out
13990 cd ..
13991 rmdir conftest
13992 $rm conftest*
13993
13994fi
13995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13996$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13997
13998
13999hard_links="nottested"
14000if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14001 # do not overwrite the value of need_locks provided by the user
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14003$as_echo_n "checking if we can lock with hard links... " >&6; }
14004 hard_links=yes
14005 $rm conftest*
14006 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14007 touch conftest.a
14008 ln conftest.a conftest.b 2>&5 || hard_links=no
14009 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14011$as_echo "$hard_links" >&6; }
14012 if test "$hard_links" = no; then
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14014$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14015 need_locks=warn
14016 fi
14017else
14018 need_locks=no
14019fi
14020
14021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14022$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14023
14024 runpath_var=
14025 allow_undefined_flag_F77=
14026 enable_shared_with_static_runtimes_F77=no
14027 archive_cmds_F77=
14028 archive_expsym_cmds_F77=
14029 old_archive_From_new_cmds_F77=
14030 old_archive_from_expsyms_cmds_F77=
14031 export_dynamic_flag_spec_F77=
14032 whole_archive_flag_spec_F77=
14033 thread_safe_flag_spec_F77=
14034 hardcode_libdir_flag_spec_F77=
14035 hardcode_libdir_flag_spec_ld_F77=
14036 hardcode_libdir_separator_F77=
14037 hardcode_direct_F77=no
14038 hardcode_minus_L_F77=no
14039 hardcode_shlibpath_var_F77=unsupported
14040 link_all_deplibs_F77=unknown
14041 hardcode_automatic_F77=no
14042 module_cmds_F77=
14043 module_expsym_cmds_F77=
14044 always_export_symbols_F77=no
14045 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14046 # include_expsyms should be a list of space-separated symbols to be *always*
14047 # included in the symbol list
14048 include_expsyms_F77=
14049 # exclude_expsyms can be an extended regexp of symbols to exclude
14050 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14051 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14052 # as well as any symbol that contains `d'.
14053 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14054 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14055 # platforms (ab)use it in PIC code, but their linkers get confused if
14056 # the symbol is explicitly referenced. Since portable code cannot
14057 # rely on this symbol name, it's probably fine to never include it in
14058 # preloaded symbol tables.
14059 # Exclude shared library initialization/finalization symbols.
14060 extract_expsyms_cmds=
14061 # Just being paranoid about ensuring that cc_basename is set.
14062 for cc_temp in $compiler""; do
14063 case $cc_temp in
14064 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14065 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14066 \-*) ;;
14067 *) break;;
14068 esac
14069done
14070cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14071
14072 case $host_os in
14073 cygwin* | mingw* | pw32*)
14074 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14075 # When not using gcc, we currently assume that we are using
14076 # Microsoft Visual C++.
14077 if test "$GCC" != yes; then
14078 with_gnu_ld=no
14079 fi
14080 ;;
14081 interix*)
14082 # we just hope/assume this is gcc and not c89 (= MSVC++)
14083 with_gnu_ld=yes
14084 ;;
14085 openbsd*)
14086 with_gnu_ld=no
14087 ;;
14088 esac
14089
14090 ld_shlibs_F77=yes
14091 if test "$with_gnu_ld" = yes; then
14092 # If archive_cmds runs LD, not CC, wlarc should be empty
14093 wlarc='${wl}'
14094
14095 # Set some defaults for GNU ld with shared library support. These
14096 # are reset later if shared libraries are not supported. Putting them
14097 # here allows them to be overridden if necessary.
14098 runpath_var=LD_RUN_PATH
14099 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14100 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14101 # ancient GNU ld didn't support --whole-archive et. al.
14102 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14103 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14104 else
14105 whole_archive_flag_spec_F77=
14106 fi
14107 supports_anon_versioning=no
14108 case `$LD -v 2>/dev/null` in
14109 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14110 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14111 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14112 *\ 2.11.*) ;; # other 2.11 versions
14113 *) supports_anon_versioning=yes ;;
14114 esac
14115
14116 # See if GNU ld supports shared libraries.
14117 case $host_os in
14118 aix[3-9]*)
14119 # On AIX/PPC, the GNU linker is very broken
14120 if test "$host_cpu" != ia64; then
14121 ld_shlibs_F77=no
14122 cat <<EOF 1>&2
14123
14124*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14125*** to be unable to reliably create shared libraries on AIX.
14126*** Therefore, libtool is disabling shared libraries support. If you
14127*** really care for shared libraries, you may want to modify your PATH
14128*** so that a non-GNU linker is found, and then restart.
14129
14130EOF
14131 fi
14132 ;;
14133
14134 amigaos*)
14135 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14136 hardcode_libdir_flag_spec_F77='-L$libdir'
14137 hardcode_minus_L_F77=yes
14138
14139 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14140 # that the semantics of dynamic libraries on AmigaOS, at least up
14141 # to version 4, is to share data among multiple programs linked
14142 # with the same dynamic library. Since this doesn't match the
14143 # behavior of shared libraries on other platforms, we can't use
14144 # them.
14145 ld_shlibs_F77=no
14146 ;;
14147
14148 beos*)
14149 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14150 allow_undefined_flag_F77=unsupported
14151 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14152 # support --undefined. This deserves some investigation. FIXME
14153 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14154 else
14155 ld_shlibs_F77=no
14156 fi
14157 ;;
14158
14159 cygwin* | mingw* | pw32*)
14160 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14161 # as there is no search path for DLLs.
14162 hardcode_libdir_flag_spec_F77='-L$libdir'
14163 allow_undefined_flag_F77=unsupported
14164 always_export_symbols_F77=no
14165 enable_shared_with_static_runtimes_F77=yes
14166 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14167
14168 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14169 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14170 # If the export-symbols file already is a .def file (1st line
14171 # is EXPORTS), use it as is; otherwise, prepend...
14172 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14173 cp $export_symbols $output_objdir/$soname.def;
14174 else
14175 echo EXPORTS > $output_objdir/$soname.def;
14176 cat $export_symbols >> $output_objdir/$soname.def;
14177 fi~
14178 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14179 else
14180 ld_shlibs_F77=no
14181 fi
14182 ;;
14183
14184 interix[3-9]*)
14185 hardcode_direct_F77=no
14186 hardcode_shlibpath_var_F77=no
14187 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14188 export_dynamic_flag_spec_F77='${wl}-E'
14189 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14190 # Instead, shared libraries are loaded at an image base (0x10000000 by
14191 # default) and relocated if they conflict, which is a slow very memory
14192 # consuming and fragmenting process. To avoid this, we pick a random,
14193 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14194 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14195 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14196 archive_expsym_cmds_F77='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'
14197 ;;
14198
14199 gnu* | linux* | k*bsd*-gnu)
14200 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14201 tmp_addflag=
14202 case $cc_basename,$host_cpu in
14203 pgcc*) # Portland Group C compiler
14204 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14205 tmp_addflag=' $pic_flag'
14206 ;;
14207 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14208 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14209 tmp_addflag=' $pic_flag -Mnomain' ;;
14210 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14211 tmp_addflag=' -i_dynamic' ;;
14212 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14213 tmp_addflag=' -i_dynamic -nofor_main' ;;
14214 ifc* | ifort*) # Intel Fortran compiler
14215 tmp_addflag=' -nofor_main' ;;
14216 esac
14217 case `$CC -V 2>&1 | sed 5q` in
14218 *Sun\ C*) # Sun C 5.9
14219 whole_archive_flag_spec_F77='${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'
14220 tmp_sharedflag='-G' ;;
14221 *Sun\ F*) # Sun Fortran 8.3
14222 tmp_sharedflag='-G' ;;
14223 *)
14224 tmp_sharedflag='-shared' ;;
14225 esac
14226 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14227
14228 if test $supports_anon_versioning = yes; then
14229 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14230 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14231 $echo "local: *; };" >> $output_objdir/$libname.ver~
14232 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14233 fi
14234 link_all_deplibs_F77=no
14235 else
14236 ld_shlibs_F77=no
14237 fi
14238 ;;
14239
14240 netbsd* | netbsdelf*-gnu)
14241 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14242 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14243 wlarc=
14244 else
14245 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14246 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14247 fi
14248 ;;
14249
14250 solaris*)
14251 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14252 ld_shlibs_F77=no
14253 cat <<EOF 1>&2
14254
14255*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14256*** create shared libraries on Solaris systems. Therefore, libtool
14257*** is disabling shared libraries support. We urge you to upgrade GNU
14258*** binutils to release 2.9.1 or newer. Another option is to modify
14259*** your PATH or compiler configuration so that the native linker is
14260*** used, and then restart.
14261
14262EOF
14263 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14264 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14265 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14266 else
14267 ld_shlibs_F77=no
14268 fi
14269 ;;
14270
14271 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14272 case `$LD -v 2>&1` in
14273 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14274 ld_shlibs_F77=no
14275 cat <<_LT_EOF 1>&2
14276
14277*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14278*** reliably create shared libraries on SCO systems. Therefore, libtool
14279*** is disabling shared libraries support. We urge you to upgrade GNU
14280*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14281*** your PATH or compiler configuration so that the native linker is
14282*** used, and then restart.
14283
14284_LT_EOF
14285 ;;
14286 *)
14287 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14288 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14289 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14290 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14291 else
14292 ld_shlibs_F77=no
14293 fi
14294 ;;
14295 esac
14296 ;;
14297
14298 sunos4*)
14299 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14300 wlarc=
14301 hardcode_direct_F77=yes
14302 hardcode_shlibpath_var_F77=no
14303 ;;
14304
14305 *)
14306 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14307 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14308 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14309 else
14310 ld_shlibs_F77=no
14311 fi
14312 ;;
14313 esac
14314
14315 if test "$ld_shlibs_F77" = no; then
14316 runpath_var=
14317 hardcode_libdir_flag_spec_F77=
14318 export_dynamic_flag_spec_F77=
14319 whole_archive_flag_spec_F77=
14320 fi
14321 else
14322 # PORTME fill in a description of your system's linker (not GNU ld)
14323 case $host_os in
14324 aix3*)
14325 allow_undefined_flag_F77=unsupported
14326 always_export_symbols_F77=yes
14327 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14328 # Note: this linker hardcodes the directories in LIBPATH if there
14329 # are no directories specified by -L.
14330 hardcode_minus_L_F77=yes
14331 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14332 # Neither direct hardcoding nor static linking is supported with a
14333 # broken collect2.
14334 hardcode_direct_F77=unsupported
14335 fi
14336 ;;
14337
14338 aix[4-9]*)
14339 if test "$host_cpu" = ia64; then
14340 # On IA64, the linker does run time linking by default, so we don't
14341 # have to do anything special.
14342 aix_use_runtimelinking=no
14343 exp_sym_flag='-Bexport'
14344 no_entry_flag=""
14345 else
14346 # If we're using GNU nm, then we don't want the "-C" option.
14347 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14348 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14349 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14350 else
14351 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14352 fi
14353 aix_use_runtimelinking=no
14354
14355 # Test if we are trying to use run time linking or normal
14356 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14357 # need to do runtime linking.
14358 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14359 for ld_flag in $LDFLAGS; do
14360 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14361 aix_use_runtimelinking=yes
14362 break
14363 fi
14364 done
14365 ;;
14366 esac
14367
14368 exp_sym_flag='-bexport'
14369 no_entry_flag='-bnoentry'
14370 fi
14371
14372 # When large executables or shared objects are built, AIX ld can
14373 # have problems creating the table of contents. If linking a library
14374 # or program results in "error TOC overflow" add -mminimal-toc to
14375 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14376 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14377
14378 archive_cmds_F77=''
14379 hardcode_direct_F77=yes
14380 hardcode_libdir_separator_F77=':'
14381 link_all_deplibs_F77=yes
14382
14383 if test "$GCC" = yes; then
14384 case $host_os in aix4.[012]|aix4.[012].*)
14385 # We only want to do this on AIX 4.2 and lower, the check
14386 # below for broken collect2 doesn't work under 4.3+
14387 collect2name=`${CC} -print-prog-name=collect2`
14388 if test -f "$collect2name" && \
14389 strings "$collect2name" | grep resolve_lib_name >/dev/null
14390 then
14391 # We have reworked collect2
14392 :
14393 else
14394 # We have old collect2
14395 hardcode_direct_F77=unsupported
14396 # It fails to find uninstalled libraries when the uninstalled
14397 # path is not listed in the libpath. Setting hardcode_minus_L
14398 # to unsupported forces relinking
14399 hardcode_minus_L_F77=yes
14400 hardcode_libdir_flag_spec_F77='-L$libdir'
14401 hardcode_libdir_separator_F77=
14402 fi
14403 ;;
14404 esac
14405 shared_flag='-shared'
14406 if test "$aix_use_runtimelinking" = yes; then
14407 shared_flag="$shared_flag "'${wl}-G'
14408 fi
14409 else
14410 # not using gcc
14411 if test "$host_cpu" = ia64; then
14412 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14413 # chokes on -Wl,-G. The following line is correct:
14414 shared_flag='-G'
14415 else
14416 if test "$aix_use_runtimelinking" = yes; then
14417 shared_flag='${wl}-G'
14418 else
14419 shared_flag='${wl}-bM:SRE'
14420 fi
14421 fi
14422 fi
14423
14424 # It seems that -bexpall does not export symbols beginning with
14425 # underscore (_), so it is better to generate a list of symbols to export.
14426 always_export_symbols_F77=yes
14427 if test "$aix_use_runtimelinking" = yes; then
14428 # Warning - without using the other runtime loading flags (-brtl),
14429 # -berok will link without error, but may produce a broken library.
14430 allow_undefined_flag_F77='-berok'
14431 # Determine the default libpath from the value encoded in an empty executable.
14432 cat > conftest.$ac_ext <<_ACEOF
14433 program main
14434
14435 end
14436_ACEOF
14437if ac_fn_f77_try_link "$LINENO"; then :
14438
14439lt_aix_libpath_sed='
14440 /Import File Strings/,/^$/ {
14441 /^0/ {
14442 s/^0 *\(.*\)$/\1/
14443 p
14444 }
14445 }'
14446aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14447# Check for a 64-bit object if we didn't find anything.
14448if test -z "$aix_libpath"; then
14449 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14450fi
14451fi
14452rm -f core conftest.err conftest.$ac_objext \
14453 conftest$ac_exeext conftest.$ac_ext
14454if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14455
14456 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14457 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14458 else
14459 if test "$host_cpu" = ia64; then
14460 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14461 allow_undefined_flag_F77="-z nodefs"
14462 archive_expsym_cmds_F77="\$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"
14463 else
14464 # Determine the default libpath from the value encoded in an empty executable.
14465 cat > conftest.$ac_ext <<_ACEOF
14466 program main
14467
14468 end
14469_ACEOF
14470if ac_fn_f77_try_link "$LINENO"; then :
14471
14472lt_aix_libpath_sed='
14473 /Import File Strings/,/^$/ {
14474 /^0/ {
14475 s/^0 *\(.*\)$/\1/
14476 p
14477 }
14478 }'
14479aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14480# Check for a 64-bit object if we didn't find anything.
14481if test -z "$aix_libpath"; then
14482 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14483fi
14484fi
14485rm -f core conftest.err conftest.$ac_objext \
14486 conftest$ac_exeext conftest.$ac_ext
14487if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14488
14489 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14490 # Warning - without using the other run time loading flags,
14491 # -berok will link without error, but may produce a broken library.
14492 no_undefined_flag_F77=' ${wl}-bernotok'
14493 allow_undefined_flag_F77=' ${wl}-berok'
14494 # Exported symbols can be pulled into shared objects from archives
14495 whole_archive_flag_spec_F77='$convenience'
14496 archive_cmds_need_lc_F77=yes
14497 # This is similar to how AIX traditionally builds its shared libraries.
14498 archive_expsym_cmds_F77="\$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'
14499 fi
14500 fi
14501 ;;
14502
14503 amigaos*)
14504 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14505 hardcode_libdir_flag_spec_F77='-L$libdir'
14506 hardcode_minus_L_F77=yes
14507 # see comment about different semantics on the GNU ld section
14508 ld_shlibs_F77=no
14509 ;;
14510
14511 bsdi[45]*)
14512 export_dynamic_flag_spec_F77=-rdynamic
14513 ;;
14514
14515 cygwin* | mingw* | pw32*)
14516 # When not using gcc, we currently assume that we are using
14517 # Microsoft Visual C++.
14518 # hardcode_libdir_flag_spec is actually meaningless, as there is
14519 # no search path for DLLs.
14520 hardcode_libdir_flag_spec_F77=' '
14521 allow_undefined_flag_F77=unsupported
14522 # Tell ltmain to make .lib files, not .a files.
14523 libext=lib
14524 # Tell ltmain to make .dll files, not .so files.
14525 shrext_cmds=".dll"
14526 # FIXME: Setting linknames here is a bad hack.
14527 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14528 # The linker will automatically build a .lib file if we build a DLL.
14529 old_archive_From_new_cmds_F77='true'
14530 # FIXME: Should let the user specify the lib program.
14531 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14532 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14533 enable_shared_with_static_runtimes_F77=yes
14534 ;;
14535
14536 darwin* | rhapsody*)
14537 case $host_os in
14538 rhapsody* | darwin1.[012])
14539 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14540 ;;
14541 *) # Darwin 1.3 on
14542 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14543 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14544 else
14545 case ${MACOSX_DEPLOYMENT_TARGET} in
14546 10.[012])
14547 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14548 ;;
14549 10.*)
14550 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14551 ;;
14552 esac
14553 fi
14554 ;;
14555 esac
14556 archive_cmds_need_lc_F77=no
14557 hardcode_direct_F77=no
14558 hardcode_automatic_F77=yes
14559 hardcode_shlibpath_var_F77=unsupported
14560 whole_archive_flag_spec_F77=''
14561 link_all_deplibs_F77=yes
14562 if test "$GCC" = yes ; then
14563 output_verbose_link_cmd='echo'
14564 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14565 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14566 archive_expsym_cmds_F77="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}"
14567 module_expsym_cmds_F77="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}"
14568 else
14569 case $cc_basename in
14570 xlc*)
14571 output_verbose_link_cmd='echo'
14572 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14573 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14574 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14575 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14576 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14577 ;;
14578 *)
14579 ld_shlibs_F77=no
14580 ;;
14581 esac
14582 fi
14583 ;;
14584
14585 dgux*)
14586 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14587 hardcode_libdir_flag_spec_F77='-L$libdir'
14588 hardcode_shlibpath_var_F77=no
14589 ;;
14590
14591 freebsd1*)
14592 ld_shlibs_F77=no
14593 ;;
14594
14595 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14596 # support. Future versions do this automatically, but an explicit c++rt0.o
14597 # does not break anything, and helps significantly (at the cost of a little
14598 # extra space).
14599 freebsd2.2*)
14600 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14601 hardcode_libdir_flag_spec_F77='-R$libdir'
14602 hardcode_direct_F77=yes
14603 hardcode_shlibpath_var_F77=no
14604 ;;
14605
14606 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14607 freebsd2*)
14608 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14609 hardcode_direct_F77=yes
14610 hardcode_minus_L_F77=yes
14611 hardcode_shlibpath_var_F77=no
14612 ;;
14613
14614 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14615 freebsd* | dragonfly*)
14616 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14617 hardcode_libdir_flag_spec_F77='-R$libdir'
14618 hardcode_direct_F77=yes
14619 hardcode_shlibpath_var_F77=no
14620 ;;
14621
14622 hpux9*)
14623 if test "$GCC" = yes; then
14624 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14625 else
14626 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14627 fi
14628 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14629 hardcode_libdir_separator_F77=:
14630 hardcode_direct_F77=yes
14631
14632 # hardcode_minus_L: Not really in the search PATH,
14633 # but as the default location of the library.
14634 hardcode_minus_L_F77=yes
14635 export_dynamic_flag_spec_F77='${wl}-E'
14636 ;;
14637
14638 hpux10*)
14639 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14640 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14641 else
14642 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14643 fi
14644 if test "$with_gnu_ld" = no; then
14645 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14646 hardcode_libdir_separator_F77=:
14647
14648 hardcode_direct_F77=yes
14649 export_dynamic_flag_spec_F77='${wl}-E'
14650
14651 # hardcode_minus_L: Not really in the search PATH,
14652 # but as the default location of the library.
14653 hardcode_minus_L_F77=yes
14654 fi
14655 ;;
14656
14657 hpux11*)
14658 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14659 case $host_cpu in
14660 hppa*64*)
14661 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14662 ;;
14663 ia64*)
14664 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14665 ;;
14666 *)
14667 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14668 ;;
14669 esac
14670 else
14671 case $host_cpu in
14672 hppa*64*)
14673 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14674 ;;
14675 ia64*)
14676 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14677 ;;
14678 *)
14679 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14680 ;;
14681 esac
14682 fi
14683 if test "$with_gnu_ld" = no; then
14684 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14685 hardcode_libdir_separator_F77=:
14686
14687 case $host_cpu in
14688 hppa*64*|ia64*)
14689 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14690 hardcode_direct_F77=no
14691 hardcode_shlibpath_var_F77=no
14692 ;;
14693 *)
14694 hardcode_direct_F77=yes
14695 export_dynamic_flag_spec_F77='${wl}-E'
14696
14697 # hardcode_minus_L: Not really in the search PATH,
14698 # but as the default location of the library.
14699 hardcode_minus_L_F77=yes
14700 ;;
14701 esac
14702 fi
14703 ;;
14704
14705 irix5* | irix6* | nonstopux*)
14706 if test "$GCC" = yes; then
14707 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14708 else
14709 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14710 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14711 fi
14712 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14713 hardcode_libdir_separator_F77=:
14714 link_all_deplibs_F77=yes
14715 ;;
14716
14717 netbsd* | netbsdelf*-gnu)
14718 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14719 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14720 else
14721 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14722 fi
14723 hardcode_libdir_flag_spec_F77='-R$libdir'
14724 hardcode_direct_F77=yes
14725 hardcode_shlibpath_var_F77=no
14726 ;;
14727
14728 newsos6)
14729 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14730 hardcode_direct_F77=yes
14731 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14732 hardcode_libdir_separator_F77=:
14733 hardcode_shlibpath_var_F77=no
14734 ;;
14735
14736 openbsd*)
14737 if test -f /usr/libexec/ld.so; then
14738 hardcode_direct_F77=yes
14739 hardcode_shlibpath_var_F77=no
14740 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14741 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14742 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14743 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14744 export_dynamic_flag_spec_F77='${wl}-E'
14745 else
14746 case $host_os in
14747 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14748 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14749 hardcode_libdir_flag_spec_F77='-R$libdir'
14750 ;;
14751 *)
14752 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14753 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14754 ;;
14755 esac
14756 fi
14757 else
14758 ld_shlibs_F77=no
14759 fi
14760 ;;
14761
14762 os2*)
14763 hardcode_libdir_flag_spec_F77='-L$libdir'
14764 hardcode_minus_L_F77=yes
14765 allow_undefined_flag_F77=unsupported
14766 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14767 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14768 ;;
14769
14770 osf3*)
14771 if test "$GCC" = yes; then
14772 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14773 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14774 else
14775 allow_undefined_flag_F77=' -expect_unresolved \*'
14776 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14777 fi
14778 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14779 hardcode_libdir_separator_F77=:
14780 ;;
14781
14782 osf4* | osf5*) # as osf3* with the addition of -msym flag
14783 if test "$GCC" = yes; then
14784 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14785 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14786 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14787 else
14788 allow_undefined_flag_F77=' -expect_unresolved \*'
14789 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14790 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14791 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14792
14793 # Both c and cxx compiler support -rpath directly
14794 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14795 fi
14796 hardcode_libdir_separator_F77=:
14797 ;;
14798
14799 solaris*)
14800 no_undefined_flag_F77=' -z text'
14801 if test "$GCC" = yes; then
14802 wlarc='${wl}'
14803 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14804 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14805 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14806 else
14807 wlarc=''
14808 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14809 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14810 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14811 fi
14812 hardcode_libdir_flag_spec_F77='-R$libdir'
14813 hardcode_shlibpath_var_F77=no
14814 case $host_os in
14815 solaris2.[0-5] | solaris2.[0-5].*) ;;
14816 *)
14817 # The compiler driver will combine and reorder linker options,
14818 # but understands `-z linker_flag'. GCC discards it without `$wl',
14819 # but is careful enough not to reorder.
14820 # Supported since Solaris 2.6 (maybe 2.5.1?)
14821 if test "$GCC" = yes; then
14822 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14823 else
14824 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14825 fi
14826 ;;
14827 esac
14828 link_all_deplibs_F77=yes
14829 ;;
14830
14831 sunos4*)
14832 if test "x$host_vendor" = xsequent; then
14833 # Use $CC to link under sequent, because it throws in some extra .o
14834 # files that make .init and .fini sections work.
14835 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14836 else
14837 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14838 fi
14839 hardcode_libdir_flag_spec_F77='-L$libdir'
14840 hardcode_direct_F77=yes
14841 hardcode_minus_L_F77=yes
14842 hardcode_shlibpath_var_F77=no
14843 ;;
14844
14845 sysv4)
14846 case $host_vendor in
14847 sni)
14848 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14849 hardcode_direct_F77=yes # is this really true???
14850 ;;
14851 siemens)
14852 ## LD is ld it makes a PLAMLIB
14853 ## CC just makes a GrossModule.
14854 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14855 reload_cmds_F77='$CC -r -o $output$reload_objs'
14856 hardcode_direct_F77=no
14857 ;;
14858 motorola)
14859 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14860 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14861 ;;
14862 esac
14863 runpath_var='LD_RUN_PATH'
14864 hardcode_shlibpath_var_F77=no
14865 ;;
14866
14867 sysv4.3*)
14868 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14869 hardcode_shlibpath_var_F77=no
14870 export_dynamic_flag_spec_F77='-Bexport'
14871 ;;
14872
14873 sysv4*MP*)
14874 if test -d /usr/nec; then
14875 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14876 hardcode_shlibpath_var_F77=no
14877 runpath_var=LD_RUN_PATH
14878 hardcode_runpath_var=yes
14879 ld_shlibs_F77=yes
14880 fi
14881 ;;
14882
14883 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14884 no_undefined_flag_F77='${wl}-z,text'
14885 archive_cmds_need_lc_F77=no
14886 hardcode_shlibpath_var_F77=no
14887 runpath_var='LD_RUN_PATH'
14888
14889 if test "$GCC" = yes; then
14890 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14891 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14892 else
14893 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14894 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14895 fi
14896 ;;
14897
14898 sysv5* | sco3.2v5* | sco5v6*)
14899 # Note: We can NOT use -z defs as we might desire, because we do not
14900 # link with -lc, and that would cause any symbols used from libc to
14901 # always be unresolved, which means just about no library would
14902 # ever link correctly. If we're not using GNU ld we use -z text
14903 # though, which does catch some bad symbols but isn't as heavy-handed
14904 # as -z defs.
14905 no_undefined_flag_F77='${wl}-z,text'
14906 allow_undefined_flag_F77='${wl}-z,nodefs'
14907 archive_cmds_need_lc_F77=no
14908 hardcode_shlibpath_var_F77=no
14909 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14910 hardcode_libdir_separator_F77=':'
14911 link_all_deplibs_F77=yes
14912 export_dynamic_flag_spec_F77='${wl}-Bexport'
14913 runpath_var='LD_RUN_PATH'
14914
14915 if test "$GCC" = yes; then
14916 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14917 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14918 else
14919 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14920 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14921 fi
14922 ;;
14923
14924 uts4*)
14925 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14926 hardcode_libdir_flag_spec_F77='-L$libdir'
14927 hardcode_shlibpath_var_F77=no
14928 ;;
14929
14930 *)
14931 ld_shlibs_F77=no
14932 ;;
14933 esac
14934 fi
14935
14936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14937$as_echo "$ld_shlibs_F77" >&6; }
14938test "$ld_shlibs_F77" = no && can_build_shared=no
14939
14940#
14941# Do we need to explicitly link libc?
14942#
14943case "x$archive_cmds_need_lc_F77" in
14944x|xyes)
14945 # Assume -lc should be added
14946 archive_cmds_need_lc_F77=yes
14947
14948 if test "$enable_shared" = yes && test "$GCC" = yes; then
14949 case $archive_cmds_F77 in
14950 *'~'*)
14951 # FIXME: we may have to deal with multi-command sequences.
14952 ;;
14953 '$CC '*)
14954 # Test whether the compiler implicitly links with -lc since on some
14955 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14956 # to ld, don't add -lc before -lgcc.
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14958$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14959 $rm conftest*
14960 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14961
14962 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14963 (eval $ac_compile) 2>&5
14964 ac_status=$?
14965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14966 test $ac_status = 0; } 2>conftest.err; then
14967 soname=conftest
14968 lib=conftest
14969 libobjs=conftest.$ac_objext
14970 deplibs=
14971 wl=$lt_prog_compiler_wl_F77
14972 pic_flag=$lt_prog_compiler_pic_F77
14973 compiler_flags=-v
14974 linker_flags=-v
14975 verstring=
14976 output_objdir=.
14977 libname=conftest
14978 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14979 allow_undefined_flag_F77=
14980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14981 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14982 ac_status=$?
14983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14984 test $ac_status = 0; }
14985 then
14986 archive_cmds_need_lc_F77=no
14987 else
14988 archive_cmds_need_lc_F77=yes
14989 fi
14990 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14991 else
14992 cat conftest.err 1>&5
14993 fi
14994 $rm conftest*
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14996$as_echo "$archive_cmds_need_lc_F77" >&6; }
14997 ;;
14998 esac
14999 fi
15000 ;;
15001esac
15002
15003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15004$as_echo_n "checking dynamic linker characteristics... " >&6; }
15005library_names_spec=
15006libname_spec='lib$name'
15007soname_spec=
15008shrext_cmds=".so"
15009postinstall_cmds=
15010postuninstall_cmds=
15011finish_cmds=
15012finish_eval=
15013shlibpath_var=
15014shlibpath_overrides_runpath=unknown
15015version_type=none
15016dynamic_linker="$host_os ld.so"
15017sys_lib_dlsearch_path_spec="/lib /usr/lib"
15018
15019need_lib_prefix=unknown
15020hardcode_into_libs=no
15021
15022# when you set need_version to no, make sure it does not cause -set_version
15023# flags to be left without arguments
15024need_version=unknown
15025
15026case $host_os in
15027aix3*)
15028 version_type=linux
15029 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15030 shlibpath_var=LIBPATH
15031
15032 # AIX 3 has no versioning support, so we append a major version to the name.
15033 soname_spec='${libname}${release}${shared_ext}$major'
15034 ;;
15035
15036aix[4-9]*)
15037 version_type=linux
15038 need_lib_prefix=no
15039 need_version=no
15040 hardcode_into_libs=yes
15041 if test "$host_cpu" = ia64; then
15042 # AIX 5 supports IA64
15043 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15044 shlibpath_var=LD_LIBRARY_PATH
15045 else
15046 # With GCC up to 2.95.x, collect2 would create an import file
15047 # for dependence libraries. The import file would start with
15048 # the line `#! .'. This would cause the generated library to
15049 # depend on `.', always an invalid library. This was fixed in
15050 # development snapshots of GCC prior to 3.0.
15051 case $host_os in
15052 aix4 | aix4.[01] | aix4.[01].*)
15053 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15054 echo ' yes '
15055 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15056 :
15057 else
15058 can_build_shared=no
15059 fi
15060 ;;
15061 esac
15062 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15063 # soname into executable. Probably we can add versioning support to
15064 # collect2, so additional links can be useful in future.
15065 if test "$aix_use_runtimelinking" = yes; then
15066 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15067 # instead of lib<name>.a to let people know that these are not
15068 # typical AIX shared libraries.
15069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15070 else
15071 # We preserve .a as extension for shared libraries through AIX4.2
15072 # and later when we are not doing run time linking.
15073 library_names_spec='${libname}${release}.a $libname.a'
15074 soname_spec='${libname}${release}${shared_ext}$major'
15075 fi
15076 shlibpath_var=LIBPATH
15077 fi
15078 ;;
15079
15080amigaos*)
15081 library_names_spec='$libname.ixlibrary $libname.a'
15082 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15083 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'
15084 ;;
15085
15086beos*)
15087 library_names_spec='${libname}${shared_ext}'
15088 dynamic_linker="$host_os ld.so"
15089 shlibpath_var=LIBRARY_PATH
15090 ;;
15091
15092bsdi[45]*)
15093 version_type=linux
15094 need_version=no
15095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15096 soname_spec='${libname}${release}${shared_ext}$major'
15097 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15098 shlibpath_var=LD_LIBRARY_PATH
15099 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15100 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15101 # the default ld.so.conf also contains /usr/contrib/lib and
15102 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15103 # libtool to hard-code these into programs
15104 ;;
15105
15106cygwin* | mingw* | pw32*)
15107 version_type=windows
15108 shrext_cmds=".dll"
15109 need_version=no
15110 need_lib_prefix=no
15111
15112 case $GCC,$host_os in
15113 yes,cygwin* | yes,mingw* | yes,pw32*)
15114 library_names_spec='$libname.dll.a'
15115 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15116 postinstall_cmds='base_file=`basename \${file}`~
15117 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15118 dldir=$destdir/`dirname \$dlpath`~
15119 test -d \$dldir || mkdir -p \$dldir~
15120 $install_prog $dir/$dlname \$dldir/$dlname~
15121 chmod a+x \$dldir/$dlname'
15122 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15123 dlpath=$dir/\$dldll~
15124 $rm \$dlpath'
15125 shlibpath_overrides_runpath=yes
15126
15127 case $host_os in
15128 cygwin*)
15129 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15130 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15131 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15132 ;;
15133 mingw*)
15134 # MinGW DLLs use traditional 'lib' prefix
15135 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15136 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15137 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15138 # It is most probably a Windows format PATH printed by
15139 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15140 # path with ; separators, and with drive letters. We can handle the
15141 # drive letters (cygwin fileutils understands them), so leave them,
15142 # especially as we might pass files found there to a mingw objdump,
15143 # which wouldn't understand a cygwinified path. Ahh.
15144 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15145 else
15146 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15147 fi
15148 ;;
15149 pw32*)
15150 # pw32 DLLs use 'pw' prefix rather than 'lib'
15151 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15152 ;;
15153 esac
15154 ;;
15155
15156 *)
15157 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15158 ;;
15159 esac
15160 dynamic_linker='Win32 ld.exe'
15161 # FIXME: first we should search . and the directory the executable is in
15162 shlibpath_var=PATH
15163 ;;
15164
15165darwin* | rhapsody*)
15166 dynamic_linker="$host_os dyld"
15167 version_type=darwin
15168 need_lib_prefix=no
15169 need_version=no
15170 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15171 soname_spec='${libname}${release}${major}$shared_ext'
15172 shlibpath_overrides_runpath=yes
15173 shlibpath_var=DYLD_LIBRARY_PATH
15174 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15175
15176 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15177 ;;
15178
15179dgux*)
15180 version_type=linux
15181 need_lib_prefix=no
15182 need_version=no
15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15184 soname_spec='${libname}${release}${shared_ext}$major'
15185 shlibpath_var=LD_LIBRARY_PATH
15186 ;;
15187
15188freebsd1*)
15189 dynamic_linker=no
15190 ;;
15191
15192freebsd* | dragonfly*)
15193 # DragonFly does not have aout. When/if they implement a new
15194 # versioning mechanism, adjust this.
15195 if test -x /usr/bin/objformat; then
15196 objformat=`/usr/bin/objformat`
15197 else
15198 case $host_os in
15199 freebsd[123]*) objformat=aout ;;
15200 *) objformat=elf ;;
15201 esac
15202 fi
15203 version_type=freebsd-$objformat
15204 case $version_type in
15205 freebsd-elf*)
15206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15207 need_version=no
15208 need_lib_prefix=no
15209 ;;
15210 freebsd-*)
15211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15212 need_version=yes
15213 ;;
15214 esac
15215 shlibpath_var=LD_LIBRARY_PATH
15216 case $host_os in
15217 freebsd2*)
15218 shlibpath_overrides_runpath=yes
15219 ;;
15220 freebsd3.[01]* | freebsdelf3.[01]*)
15221 shlibpath_overrides_runpath=yes
15222 hardcode_into_libs=yes
15223 ;;
15224 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15225 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15226 shlibpath_overrides_runpath=no
15227 hardcode_into_libs=yes
15228 ;;
15229 *) # from 4.6 on, and DragonFly
15230 shlibpath_overrides_runpath=yes
15231 hardcode_into_libs=yes
15232 ;;
15233 esac
15234 ;;
15235
15236gnu*)
15237 version_type=linux
15238 need_lib_prefix=no
15239 need_version=no
15240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15241 soname_spec='${libname}${release}${shared_ext}$major'
15242 shlibpath_var=LD_LIBRARY_PATH
15243 hardcode_into_libs=yes
15244 ;;
15245
15246hpux9* | hpux10* | hpux11*)
15247 # Give a soname corresponding to the major version so that dld.sl refuses to
15248 # link against other versions.
15249 version_type=sunos
15250 need_lib_prefix=no
15251 need_version=no
15252 case $host_cpu in
15253 ia64*)
15254 shrext_cmds='.so'
15255 hardcode_into_libs=yes
15256 dynamic_linker="$host_os dld.so"
15257 shlibpath_var=LD_LIBRARY_PATH
15258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15260 soname_spec='${libname}${release}${shared_ext}$major'
15261 if test "X$HPUX_IA64_MODE" = X32; then
15262 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15263 else
15264 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15265 fi
15266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15267 ;;
15268 hppa*64*)
15269 shrext_cmds='.sl'
15270 hardcode_into_libs=yes
15271 dynamic_linker="$host_os dld.sl"
15272 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15275 soname_spec='${libname}${release}${shared_ext}$major'
15276 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15278 ;;
15279 *)
15280 shrext_cmds='.sl'
15281 dynamic_linker="$host_os dld.sl"
15282 shlibpath_var=SHLIB_PATH
15283 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15285 soname_spec='${libname}${release}${shared_ext}$major'
15286 ;;
15287 esac
15288 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15289 postinstall_cmds='chmod 555 $lib'
15290 ;;
15291
15292interix[3-9]*)
15293 version_type=linux
15294 need_lib_prefix=no
15295 need_version=no
15296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15297 soname_spec='${libname}${release}${shared_ext}$major'
15298 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15299 shlibpath_var=LD_LIBRARY_PATH
15300 shlibpath_overrides_runpath=no
15301 hardcode_into_libs=yes
15302 ;;
15303
15304irix5* | irix6* | nonstopux*)
15305 case $host_os in
15306 nonstopux*) version_type=nonstopux ;;
15307 *)
15308 if test "$lt_cv_prog_gnu_ld" = yes; then
15309 version_type=linux
15310 else
15311 version_type=irix
15312 fi ;;
15313 esac
15314 need_lib_prefix=no
15315 need_version=no
15316 soname_spec='${libname}${release}${shared_ext}$major'
15317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15318 case $host_os in
15319 irix5* | nonstopux*)
15320 libsuff= shlibsuff=
15321 ;;
15322 *)
15323 case $LD in # libtool.m4 will add one of these switches to LD
15324 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15325 libsuff= shlibsuff= libmagic=32-bit;;
15326 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15327 libsuff=32 shlibsuff=N32 libmagic=N32;;
15328 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15329 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15330 *) libsuff= shlibsuff= libmagic=never-match;;
15331 esac
15332 ;;
15333 esac
15334 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15335 shlibpath_overrides_runpath=no
15336 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15337 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15338 hardcode_into_libs=yes
15339 ;;
15340
15341# No shared lib support for Linux oldld, aout, or coff.
15342linux*oldld* | linux*aout* | linux*coff*)
15343 dynamic_linker=no
15344 ;;
15345
15346# This must be Linux ELF.
15347linux* | k*bsd*-gnu)
15348 version_type=linux
15349 need_lib_prefix=no
15350 need_version=no
15351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15352 soname_spec='${libname}${release}${shared_ext}$major'
15353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15354 shlibpath_var=LD_LIBRARY_PATH
15355 shlibpath_overrides_runpath=no
15356 # This implies no fast_install, which is unacceptable.
15357 # Some rework will be needed to allow for fast_install
15358 # before this can be enabled.
15359 hardcode_into_libs=yes
15360
15361 # Append ld.so.conf contents to the search path
15362 if test -f /etc/ld.so.conf; then
15363 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' ' '`
15364 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15365 fi
15366
15367 # We used to test for /lib/ld.so.1 and disable shared libraries on
15368 # powerpc, because MkLinux only supported shared libraries with the
15369 # GNU dynamic linker. Since this was broken with cross compilers,
15370 # most powerpc-linux boxes support dynamic linking these days and
15371 # people can always --disable-shared, the test was removed, and we
15372 # assume the GNU/Linux dynamic linker is in use.
15373 dynamic_linker='GNU/Linux ld.so'
15374 ;;
15375
15376netbsdelf*-gnu)
15377 version_type=linux
15378 need_lib_prefix=no
15379 need_version=no
15380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15381 soname_spec='${libname}${release}${shared_ext}$major'
15382 shlibpath_var=LD_LIBRARY_PATH
15383 shlibpath_overrides_runpath=no
15384 hardcode_into_libs=yes
15385 dynamic_linker='NetBSD ld.elf_so'
15386 ;;
15387
15388netbsd*)
15389 version_type=sunos
15390 need_lib_prefix=no
15391 need_version=no
15392 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15395 dynamic_linker='NetBSD (a.out) ld.so'
15396 else
15397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15398 soname_spec='${libname}${release}${shared_ext}$major'
15399 dynamic_linker='NetBSD ld.elf_so'
15400 fi
15401 shlibpath_var=LD_LIBRARY_PATH
15402 shlibpath_overrides_runpath=yes
15403 hardcode_into_libs=yes
15404 ;;
15405
15406newsos6)
15407 version_type=linux
15408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15409 shlibpath_var=LD_LIBRARY_PATH
15410 shlibpath_overrides_runpath=yes
15411 ;;
15412
15413nto-qnx*)
15414 version_type=linux
15415 need_lib_prefix=no
15416 need_version=no
15417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15418 soname_spec='${libname}${release}${shared_ext}$major'
15419 shlibpath_var=LD_LIBRARY_PATH
15420 shlibpath_overrides_runpath=yes
15421 ;;
15422
15423openbsd*)
15424 version_type=sunos
15425 sys_lib_dlsearch_path_spec="/usr/lib"
15426 need_lib_prefix=no
15427 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15428 case $host_os in
15429 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15430 *) need_version=no ;;
15431 esac
15432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15434 shlibpath_var=LD_LIBRARY_PATH
15435 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15436 case $host_os in
15437 openbsd2.[89] | openbsd2.[89].*)
15438 shlibpath_overrides_runpath=no
15439 ;;
15440 *)
15441 shlibpath_overrides_runpath=yes
15442 ;;
15443 esac
15444 else
15445 shlibpath_overrides_runpath=yes
15446 fi
15447 ;;
15448
15449os2*)
15450 libname_spec='$name'
15451 shrext_cmds=".dll"
15452 need_lib_prefix=no
15453 library_names_spec='$libname${shared_ext} $libname.a'
15454 dynamic_linker='OS/2 ld.exe'
15455 shlibpath_var=LIBPATH
15456 ;;
15457
15458osf3* | osf4* | osf5*)
15459 version_type=osf
15460 need_lib_prefix=no
15461 need_version=no
15462 soname_spec='${libname}${release}${shared_ext}$major'
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15464 shlibpath_var=LD_LIBRARY_PATH
15465 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15466 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15467 ;;
15468
15469rdos*)
15470 dynamic_linker=no
15471 ;;
15472
15473solaris*)
15474 version_type=linux
15475 need_lib_prefix=no
15476 need_version=no
15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15478 soname_spec='${libname}${release}${shared_ext}$major'
15479 shlibpath_var=LD_LIBRARY_PATH
15480 shlibpath_overrides_runpath=yes
15481 hardcode_into_libs=yes
15482 # ldd complains unless libraries are executable
15483 postinstall_cmds='chmod +x $lib'
15484 ;;
15485
15486sunos4*)
15487 version_type=sunos
15488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15489 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15490 shlibpath_var=LD_LIBRARY_PATH
15491 shlibpath_overrides_runpath=yes
15492 if test "$with_gnu_ld" = yes; then
15493 need_lib_prefix=no
15494 fi
15495 need_version=yes
15496 ;;
15497
15498sysv4 | sysv4.3*)
15499 version_type=linux
15500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15501 soname_spec='${libname}${release}${shared_ext}$major'
15502 shlibpath_var=LD_LIBRARY_PATH
15503 case $host_vendor in
15504 sni)
15505 shlibpath_overrides_runpath=no
15506 need_lib_prefix=no
15507 export_dynamic_flag_spec='${wl}-Blargedynsym'
15508 runpath_var=LD_RUN_PATH
15509 ;;
15510 siemens)
15511 need_lib_prefix=no
15512 ;;
15513 motorola)
15514 need_lib_prefix=no
15515 need_version=no
15516 shlibpath_overrides_runpath=no
15517 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15518 ;;
15519 esac
15520 ;;
15521
15522sysv4*MP*)
15523 if test -d /usr/nec ;then
15524 version_type=linux
15525 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15526 soname_spec='$libname${shared_ext}.$major'
15527 shlibpath_var=LD_LIBRARY_PATH
15528 fi
15529 ;;
15530
15531sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15532 version_type=freebsd-elf
15533 need_lib_prefix=no
15534 need_version=no
15535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15536 soname_spec='${libname}${release}${shared_ext}$major'
15537 shlibpath_var=LD_LIBRARY_PATH
15538 hardcode_into_libs=yes
15539 if test "$with_gnu_ld" = yes; then
15540 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15541 shlibpath_overrides_runpath=no
15542 else
15543 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15544 shlibpath_overrides_runpath=yes
15545 case $host_os in
15546 sco3.2v5*)
15547 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15548 ;;
15549 esac
15550 fi
15551 sys_lib_dlsearch_path_spec='/usr/lib'
15552 ;;
15553
15554uts4*)
15555 version_type=linux
15556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15557 soname_spec='${libname}${release}${shared_ext}$major'
15558 shlibpath_var=LD_LIBRARY_PATH
15559 ;;
15560
15561*)
15562 dynamic_linker=no
15563 ;;
15564esac
15565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15566$as_echo "$dynamic_linker" >&6; }
15567test "$dynamic_linker" = no && can_build_shared=no
15568
15569if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
15570 $as_echo_n "(cached) " >&6
15571else
15572 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15573fi
15574
15575sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15576if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
15577 $as_echo_n "(cached) " >&6
15578else
15579 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15580fi
15581
15582sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15583
15584variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15585if test "$GCC" = yes; then
15586 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15587fi
15588
15589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15590$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15591hardcode_action_F77=
15592if test -n "$hardcode_libdir_flag_spec_F77" || \
15593 test -n "$runpath_var_F77" || \
15594 test "X$hardcode_automatic_F77" = "Xyes" ; then
15595
15596 # We can hardcode non-existant directories.
15597 if test "$hardcode_direct_F77" != no &&
15598 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15599 # have to relink, otherwise we might link with an installed library
15600 # when we should be linking with a yet-to-be-installed one
15601 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15602 test "$hardcode_minus_L_F77" != no; then
15603 # Linking always hardcodes the temporary library directory.
15604 hardcode_action_F77=relink
15605 else
15606 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15607 hardcode_action_F77=immediate
15608 fi
15609else
15610 # We cannot hardcode anything, or else we can only hardcode existing
15611 # directories.
15612 hardcode_action_F77=unsupported
15613fi
15614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15615$as_echo "$hardcode_action_F77" >&6; }
15616
15617if test "$hardcode_action_F77" = relink; then
15618 # Fast installation is not supported
15619 enable_fast_install=no
15620elif test "$shlibpath_overrides_runpath" = yes ||
15621 test "$enable_shared" = no; then
15622 # Fast installation is not necessary
15623 enable_fast_install=needless
15624fi
15625
15626
15627# The else clause should only fire when bootstrapping the
15628# libtool distribution, otherwise you forgot to ship ltmain.sh
15629# with your package, and you will get complaints that there are
15630# no rules to generate ltmain.sh.
15631if test -f "$ltmain"; then
15632 # See if we are running on zsh, and set the options which allow our commands through
15633 # without removal of \ escapes.
15634 if test -n "${ZSH_VERSION+set}" ; then
15635 setopt NO_GLOB_SUBST
15636 fi
15637 # Now quote all the things that may contain metacharacters while being
15638 # careful not to overquote the AC_SUBSTed values. We take copies of the
15639 # variables and quote the copies for generation of the libtool script.
15640 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15641 SED SHELL STRIP \
15642 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15643 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15644 deplibs_check_method reload_flag reload_cmds need_locks \
15645 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15646 lt_cv_sys_global_symbol_to_c_name_address \
15647 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15648 old_postinstall_cmds old_postuninstall_cmds \
15649 compiler_F77 \
15650 CC_F77 \
15651 LD_F77 \
15652 lt_prog_compiler_wl_F77 \
15653 lt_prog_compiler_pic_F77 \
15654 lt_prog_compiler_static_F77 \
15655 lt_prog_compiler_no_builtin_flag_F77 \
15656 export_dynamic_flag_spec_F77 \
15657 thread_safe_flag_spec_F77 \
15658 whole_archive_flag_spec_F77 \
15659 enable_shared_with_static_runtimes_F77 \
15660 old_archive_cmds_F77 \
15661 old_archive_from_new_cmds_F77 \
15662 predep_objects_F77 \
15663 postdep_objects_F77 \
15664 predeps_F77 \
15665 postdeps_F77 \
15666 compiler_lib_search_path_F77 \
15667 compiler_lib_search_dirs_F77 \
15668 archive_cmds_F77 \
15669 archive_expsym_cmds_F77 \
15670 postinstall_cmds_F77 \
15671 postuninstall_cmds_F77 \
15672 old_archive_from_expsyms_cmds_F77 \
15673 allow_undefined_flag_F77 \
15674 no_undefined_flag_F77 \
15675 export_symbols_cmds_F77 \
15676 hardcode_libdir_flag_spec_F77 \
15677 hardcode_libdir_flag_spec_ld_F77 \
15678 hardcode_libdir_separator_F77 \
15679 hardcode_automatic_F77 \
15680 module_cmds_F77 \
15681 module_expsym_cmds_F77 \
15682 lt_cv_prog_compiler_c_o_F77 \
15683 fix_srcfile_path_F77 \
15684 exclude_expsyms_F77 \
15685 include_expsyms_F77; do
15686
15687 case $var in
15688 old_archive_cmds_F77 | \
15689 old_archive_from_new_cmds_F77 | \
15690 archive_cmds_F77 | \
15691 archive_expsym_cmds_F77 | \
15692 module_cmds_F77 | \
15693 module_expsym_cmds_F77 | \
15694 old_archive_from_expsyms_cmds_F77 | \
15695 export_symbols_cmds_F77 | \
15696 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15697 postinstall_cmds | postuninstall_cmds | \
15698 old_postinstall_cmds | old_postuninstall_cmds | \
15699 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15700 # Double-quote double-evaled strings.
15701 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15702 ;;
15703 *)
15704 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15705 ;;
15706 esac
15707 done
15708
15709 case $lt_echo in
15710 *'\$0 --fallback-echo"')
15711 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15712 ;;
15713 esac
15714
15715cfgfile="$ofile"
15716
15717 cat <<__EOF__ >> "$cfgfile"
15718# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15719
15720# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15721
15722# Shell to use when invoking shell scripts.
15723SHELL=$lt_SHELL
15724
15725# Whether or not to build shared libraries.
15726build_libtool_libs=$enable_shared
15727
15728# Whether or not to build static libraries.
15729build_old_libs=$enable_static
15730
15731# Whether or not to add -lc for building shared libraries.
15732build_libtool_need_lc=$archive_cmds_need_lc_F77
15733
15734# Whether or not to disallow shared libs when runtime libs are static
15735allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15736
15737# Whether or not to optimize for fast installation.
15738fast_install=$enable_fast_install
15739
15740# The host system.
15741host_alias=$host_alias
15742host=$host
15743host_os=$host_os
15744
15745# The build system.
15746build_alias=$build_alias
15747build=$build
15748build_os=$build_os
15749
15750# An echo program that does not interpret backslashes.
15751echo=$lt_echo
15752
15753# The archiver.
15754AR=$lt_AR
15755AR_FLAGS=$lt_AR_FLAGS
15756
15757# A C compiler.
15758LTCC=$lt_LTCC
15759
15760# LTCC compiler flags.
15761LTCFLAGS=$lt_LTCFLAGS
15762
15763# A language-specific compiler.
15764CC=$lt_compiler_F77
15765
15766# Is the compiler the GNU C compiler?
15767with_gcc=$GCC_F77
15768
15769# An ERE matcher.
15770EGREP=$lt_EGREP
15771
15772# The linker used to build libraries.
15773LD=$lt_LD_F77
15774
15775# Whether we need hard or soft links.
15776LN_S=$lt_LN_S
15777
15778# A BSD-compatible nm program.
15779NM=$lt_NM
15780
15781# A symbol stripping program
15782STRIP=$lt_STRIP
15783
15784# Used to examine libraries when file_magic_cmd begins "file"
15785MAGIC_CMD=$MAGIC_CMD
15786
15787# Used on cygwin: DLL creation program.
15788DLLTOOL="$DLLTOOL"
15789
15790# Used on cygwin: object dumper.
15791OBJDUMP="$OBJDUMP"
15792
15793# Used on cygwin: assembler.
15794AS="$AS"
15795
15796# The name of the directory that contains temporary libtool files.
15797objdir=$objdir
15798
15799# How to create reloadable object files.
15800reload_flag=$lt_reload_flag
15801reload_cmds=$lt_reload_cmds
15802
15803# How to pass a linker flag through the compiler.
15804wl=$lt_lt_prog_compiler_wl_F77
15805
15806# Object file suffix (normally "o").
15807objext="$ac_objext"
15808
15809# Old archive suffix (normally "a").
15810libext="$libext"
15811
15812# Shared library suffix (normally ".so").
15813shrext_cmds='$shrext_cmds'
15814
15815# Executable file suffix (normally "").
15816exeext="$exeext"
15817
15818# Additional compiler flags for building library objects.
15819pic_flag=$lt_lt_prog_compiler_pic_F77
15820pic_mode=$pic_mode
15821
15822# What is the maximum length of a command?
15823max_cmd_len=$lt_cv_sys_max_cmd_len
15824
15825# Does compiler simultaneously support -c and -o options?
15826compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15827
15828# Must we lock files when doing compilation?
15829need_locks=$lt_need_locks
15830
15831# Do we need the lib prefix for modules?
15832need_lib_prefix=$need_lib_prefix
15833
15834# Do we need a version for libraries?
15835need_version=$need_version
15836
15837# Whether dlopen is supported.
15838dlopen_support=$enable_dlopen
15839
15840# Whether dlopen of programs is supported.
15841dlopen_self=$enable_dlopen_self
15842
15843# Whether dlopen of statically linked programs is supported.
15844dlopen_self_static=$enable_dlopen_self_static
15845
15846# Compiler flag to prevent dynamic linking.
15847link_static_flag=$lt_lt_prog_compiler_static_F77
15848
15849# Compiler flag to turn off builtin functions.
15850no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15851
15852# Compiler flag to allow reflexive dlopens.
15853export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15854
15855# Compiler flag to generate shared objects directly from archives.
15856whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15857
15858# Compiler flag to generate thread-safe objects.
15859thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15860
15861# Library versioning type.
15862version_type=$version_type
15863
15864# Format of library name prefix.
15865libname_spec=$lt_libname_spec
15866
15867# List of archive names. First name is the real one, the rest are links.
15868# The last name is the one that the linker finds with -lNAME.
15869library_names_spec=$lt_library_names_spec
15870
15871# The coded name of the library, if different from the real name.
15872soname_spec=$lt_soname_spec
15873
15874# Commands used to build and install an old-style archive.
15875RANLIB=$lt_RANLIB
15876old_archive_cmds=$lt_old_archive_cmds_F77
15877old_postinstall_cmds=$lt_old_postinstall_cmds
15878old_postuninstall_cmds=$lt_old_postuninstall_cmds
15879
15880# Create an old-style archive from a shared archive.
15881old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15882
15883# Create a temporary old-style archive to link instead of a shared archive.
15884old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15885
15886# Commands used to build and install a shared archive.
15887archive_cmds=$lt_archive_cmds_F77
15888archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15889postinstall_cmds=$lt_postinstall_cmds
15890postuninstall_cmds=$lt_postuninstall_cmds
15891
15892# Commands used to build a loadable module (assumed same as above if empty)
15893module_cmds=$lt_module_cmds_F77
15894module_expsym_cmds=$lt_module_expsym_cmds_F77
15895
15896# Commands to strip libraries.
15897old_striplib=$lt_old_striplib
15898striplib=$lt_striplib
15899
15900# Dependencies to place before the objects being linked to create a
15901# shared library.
15902predep_objects=$lt_predep_objects_F77
15903
15904# Dependencies to place after the objects being linked to create a
15905# shared library.
15906postdep_objects=$lt_postdep_objects_F77
15907
15908# Dependencies to place before the objects being linked to create a
15909# shared library.
15910predeps=$lt_predeps_F77
15911
15912# Dependencies to place after the objects being linked to create a
15913# shared library.
15914postdeps=$lt_postdeps_F77
15915
15916# The directories searched by this compiler when creating a shared
15917# library
15918compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
15919
15920# The library search path used internally by the compiler when linking
15921# a shared library.
15922compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15923
15924# Method to check whether dependent libraries are shared objects.
15925deplibs_check_method=$lt_deplibs_check_method
15926
15927# Command to use when deplibs_check_method == file_magic.
15928file_magic_cmd=$lt_file_magic_cmd
15929
15930# Flag that allows shared libraries with undefined symbols to be built.
15931allow_undefined_flag=$lt_allow_undefined_flag_F77
15932
15933# Flag that forces no undefined symbols.
15934no_undefined_flag=$lt_no_undefined_flag_F77
15935
15936# Commands used to finish a libtool library installation in a directory.
15937finish_cmds=$lt_finish_cmds
15938
15939# Same as above, but a single script fragment to be evaled but not shown.
15940finish_eval=$lt_finish_eval
15941
15942# Take the output of nm and produce a listing of raw symbols and C names.
15943global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15944
15945# Transform the output of nm in a proper C declaration
15946global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15947
15948# Transform the output of nm in a C name address pair
15949global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15950
15951# This is the shared library runtime path variable.
15952runpath_var=$runpath_var
15953
15954# This is the shared library path variable.
15955shlibpath_var=$shlibpath_var
15956
15957# Is shlibpath searched before the hard-coded library search path?
15958shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15959
15960# How to hardcode a shared library path into an executable.
15961hardcode_action=$hardcode_action_F77
15962
15963# Whether we should hardcode library paths into libraries.
15964hardcode_into_libs=$hardcode_into_libs
15965
15966# Flag to hardcode \$libdir into a binary during linking.
15967# This must work even if \$libdir does not exist.
15968hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15969
15970# If ld is used when linking, flag to hardcode \$libdir into
15971# a binary during linking. This must work even if \$libdir does
15972# not exist.
15973hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15974
15975# Whether we need a single -rpath flag with a separated argument.
15976hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15977
15978# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15979# resulting binary.
15980hardcode_direct=$hardcode_direct_F77
15981
15982# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15983# resulting binary.
15984hardcode_minus_L=$hardcode_minus_L_F77
15985
15986# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15987# the resulting binary.
15988hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15989
15990# Set to yes if building a shared library automatically hardcodes DIR into the library
15991# and all subsequent libraries and executables linked against it.
15992hardcode_automatic=$hardcode_automatic_F77
15993
15994# Variables whose values should be saved in libtool wrapper scripts and
15995# restored at relink time.
15996variables_saved_for_relink="$variables_saved_for_relink"
15997
15998# Whether libtool must link a program against all its dependency libraries.
15999link_all_deplibs=$link_all_deplibs_F77
16000
16001# Compile-time system search path for libraries
16002sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16003
16004# Run-time system search path for libraries
16005sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16006
16007# Fix the shell variable \$srcfile for the compiler.
16008fix_srcfile_path=$lt_fix_srcfile_path
16009
16010# Set to yes if exported symbols are required.
16011always_export_symbols=$always_export_symbols_F77
16012
16013# The commands to list exported symbols.
16014export_symbols_cmds=$lt_export_symbols_cmds_F77
16015
16016# The commands to extract the exported symbol list from a shared archive.
16017extract_expsyms_cmds=$lt_extract_expsyms_cmds
16018
16019# Symbols that should not be listed in the preloaded symbols.
16020exclude_expsyms=$lt_exclude_expsyms_F77
16021
16022# Symbols that must always be exported.
16023include_expsyms=$lt_include_expsyms_F77
16024
16025# ### END LIBTOOL TAG CONFIG: $tagname
16026
16027__EOF__
16028
16029
16030else
16031 # If there is no Makefile yet, we rely on a make rule to execute
16032 # `config.status --recheck' to rerun these tests and create the
16033 # libtool script then.
16034 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16035 if test -f "$ltmain_in"; then
16036 test -f Makefile && make "$ltmain"
16037 fi
16038fi
16039
16040
16041ac_ext=c
16042ac_cpp='$CPP $CPPFLAGS'
16043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16045ac_compiler_gnu=$ac_cv_c_compiler_gnu
16046
16047CC="$lt_save_CC"
16048
16049 else
16050 tagname=""
16051 fi
16052 ;;
16053
16054 GCJ)
16055 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16056
16057
16058# Source file extension for Java test sources.
16059ac_ext=java
16060
16061# Object file extension for compiled Java test sources.
16062objext=o
16063objext_GCJ=$objext
16064
16065# Code to be used in simple compile tests
16066lt_simple_compile_test_code="class foo {}"
16067
16068# Code to be used in simple link tests
16069lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16070
16071# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16072
16073# If no C compiler was specified, use CC.
16074LTCC=${LTCC-"$CC"}
16075
16076# If no C compiler flags were specified, use CFLAGS.
16077LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16078
16079# Allow CC to be a program name with arguments.
16080compiler=$CC
16081
16082
16083# save warnings/boilerplate of simple test code
16084ac_outfile=conftest.$ac_objext
16085echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16086eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16087_lt_compiler_boilerplate=`cat conftest.err`
16088$rm conftest*
16089
16090ac_outfile=conftest.$ac_objext
16091echo "$lt_simple_link_test_code" >conftest.$ac_ext
16092eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16093_lt_linker_boilerplate=`cat conftest.err`
16094$rm -r conftest*
16095
16096
16097# Allow CC to be a program name with arguments.
16098lt_save_CC="$CC"
16099CC=${GCJ-"gcj"}
16100compiler=$CC
16101compiler_GCJ=$CC
16102for cc_temp in $compiler""; do
16103 case $cc_temp in
16104 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16105 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16106 \-*) ;;
16107 *) break;;
16108 esac
16109done
16110cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16111
16112
16113# GCJ did not exist at the time GCC didn't implicitly link libc in.
16114archive_cmds_need_lc_GCJ=no
16115
16116old_archive_cmds_GCJ=$old_archive_cmds
16117
16118## CAVEAT EMPTOR:
16119## There is no encapsulation within the following macros, do not change
16120## the running order or otherwise move them around unless you know exactly
16121## what you are doing...
16122
16123lt_prog_compiler_no_builtin_flag_GCJ=
16124
16125if test "$GCC" = yes; then
16126 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16127
16128
16129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16130$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16131if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
16132 $as_echo_n "(cached) " >&6
16133else
16134 lt_cv_prog_compiler_rtti_exceptions=no
16135 ac_outfile=conftest.$ac_objext
16136 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16137 lt_compiler_flag="-fno-rtti -fno-exceptions"
16138 # Insert the option either (1) after the last *FLAGS variable, or
16139 # (2) before a word containing "conftest.", or (3) at the end.
16140 # Note that $ac_compile itself does not contain backslashes and begins
16141 # with a dollar sign (not a hyphen), so the echo should work correctly.
16142 # The option is referenced via a variable to avoid confusing sed.
16143 lt_compile=`echo "$ac_compile" | $SED \
16144 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16145 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16146 -e 's:$: $lt_compiler_flag:'`
16147 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16148 (eval "$lt_compile" 2>conftest.err)
16149 ac_status=$?
16150 cat conftest.err >&5
16151 echo "$as_me:__oline__: \$? = $ac_status" >&5
16152 if (exit $ac_status) && test -s "$ac_outfile"; then
16153 # The compiler can only warn and ignore the option if not recognized
16154 # So say no if there are warnings other than the usual output.
16155 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16156 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16157 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16158 lt_cv_prog_compiler_rtti_exceptions=yes
16159 fi
16160 fi
16161 $rm conftest*
16162
16163fi
16164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16165$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16166
16167if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16168 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16169else
16170 :
16171fi
16172
16173fi
16174
16175lt_prog_compiler_wl_GCJ=
16176lt_prog_compiler_pic_GCJ=
16177lt_prog_compiler_static_GCJ=
16178
16179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16180$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16181
16182 if test "$GCC" = yes; then
16183 lt_prog_compiler_wl_GCJ='-Wl,'
16184 lt_prog_compiler_static_GCJ='-static'
16185
16186 case $host_os in
16187 aix*)
16188 # All AIX code is PIC.
16189 if test "$host_cpu" = ia64; then
16190 # AIX 5 now supports IA64 processor
16191 lt_prog_compiler_static_GCJ='-Bstatic'
16192 fi
16193 ;;
16194
16195 amigaos*)
16196 # FIXME: we need at least 68020 code to build shared libraries, but
16197 # adding the `-m68020' flag to GCC prevents building anything better,
16198 # like `-m68040'.
16199 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16200 ;;
16201
16202 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16203 # PIC is the default for these OSes.
16204 ;;
16205
16206 mingw* | cygwin* | pw32* | os2*)
16207 # This hack is so that the source file can tell whether it is being
16208 # built for inclusion in a dll (and should export symbols for example).
16209 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16210 # (--disable-auto-import) libraries
16211
16212 ;;
16213
16214 darwin* | rhapsody*)
16215 # PIC is the default on this platform
16216 # Common symbols not allowed in MH_DYLIB files
16217 lt_prog_compiler_pic_GCJ='-fno-common'
16218 ;;
16219
16220 interix[3-9]*)
16221 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16222 # Instead, we relocate shared libraries at runtime.
16223 ;;
16224
16225 msdosdjgpp*)
16226 # Just because we use GCC doesn't mean we suddenly get shared libraries
16227 # on systems that don't support them.
16228 lt_prog_compiler_can_build_shared_GCJ=no
16229 enable_shared=no
16230 ;;
16231
16232 sysv4*MP*)
16233 if test -d /usr/nec; then
16234 lt_prog_compiler_pic_GCJ=-Kconform_pic
16235 fi
16236 ;;
16237
16238 hpux*)
16239 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16240 # not for PA HP-UX.
16241 case $host_cpu in
16242 hppa*64*|ia64*)
16243 # +Z the default
16244 ;;
16245 *)
16246 lt_prog_compiler_pic_GCJ='-fPIC'
16247 ;;
16248 esac
16249 ;;
16250
16251 *)
16252 lt_prog_compiler_pic_GCJ='-fPIC'
16253 ;;
16254 esac
16255 else
16256 # PORTME Check for flag to pass linker flags through the system compiler.
16257 case $host_os in
16258 aix*)
16259 lt_prog_compiler_wl_GCJ='-Wl,'
16260 if test "$host_cpu" = ia64; then
16261 # AIX 5 now supports IA64 processor
16262 lt_prog_compiler_static_GCJ='-Bstatic'
16263 else
16264 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16265 fi
16266 ;;
16267 darwin*)
16268 # PIC is the default on this platform
16269 # Common symbols not allowed in MH_DYLIB files
16270 case $cc_basename in
16271 xlc*)
16272 lt_prog_compiler_pic_GCJ='-qnocommon'
16273 lt_prog_compiler_wl_GCJ='-Wl,'
16274 ;;
16275 esac
16276 ;;
16277
16278 mingw* | cygwin* | pw32* | os2*)
16279 # This hack is so that the source file can tell whether it is being
16280 # built for inclusion in a dll (and should export symbols for example).
16281
16282 ;;
16283
16284 hpux9* | hpux10* | hpux11*)
16285 lt_prog_compiler_wl_GCJ='-Wl,'
16286 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16287 # not for PA HP-UX.
16288 case $host_cpu in
16289 hppa*64*|ia64*)
16290 # +Z the default
16291 ;;
16292 *)
16293 lt_prog_compiler_pic_GCJ='+Z'
16294 ;;
16295 esac
16296 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16297 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16298 ;;
16299
16300 irix5* | irix6* | nonstopux*)
16301 lt_prog_compiler_wl_GCJ='-Wl,'
16302 # PIC (with -KPIC) is the default.
16303 lt_prog_compiler_static_GCJ='-non_shared'
16304 ;;
16305
16306 newsos6)
16307 lt_prog_compiler_pic_GCJ='-KPIC'
16308 lt_prog_compiler_static_GCJ='-Bstatic'
16309 ;;
16310
16311 linux* | k*bsd*-gnu)
16312 case $cc_basename in
16313 icc* | ecc*)
16314 lt_prog_compiler_wl_GCJ='-Wl,'
16315 lt_prog_compiler_pic_GCJ='-KPIC'
16316 lt_prog_compiler_static_GCJ='-static'
16317 ;;
16318 pgcc* | pgf77* | pgf90* | pgf95*)
16319 # Portland Group compilers (*not* the Pentium gcc compiler,
16320 # which looks to be a dead project)
16321 lt_prog_compiler_wl_GCJ='-Wl,'
16322 lt_prog_compiler_pic_GCJ='-fpic'
16323 lt_prog_compiler_static_GCJ='-Bstatic'
16324 ;;
16325 ccc*)
16326 lt_prog_compiler_wl_GCJ='-Wl,'
16327 # All Alpha code is PIC.
16328 lt_prog_compiler_static_GCJ='-non_shared'
16329 ;;
16330 *)
16331 case `$CC -V 2>&1 | sed 5q` in
16332 *Sun\ C*)
16333 # Sun C 5.9
16334 lt_prog_compiler_pic_GCJ='-KPIC'
16335 lt_prog_compiler_static_GCJ='-Bstatic'
16336 lt_prog_compiler_wl_GCJ='-Wl,'
16337 ;;
16338 *Sun\ F*)
16339 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16340 lt_prog_compiler_pic_GCJ='-KPIC'
16341 lt_prog_compiler_static_GCJ='-Bstatic'
16342 lt_prog_compiler_wl_GCJ=''
16343 ;;
16344 esac
16345 ;;
16346 esac
16347 ;;
16348
16349 osf3* | osf4* | osf5*)
16350 lt_prog_compiler_wl_GCJ='-Wl,'
16351 # All OSF/1 code is PIC.
16352 lt_prog_compiler_static_GCJ='-non_shared'
16353 ;;
16354
16355 rdos*)
16356 lt_prog_compiler_static_GCJ='-non_shared'
16357 ;;
16358
16359 solaris*)
16360 lt_prog_compiler_pic_GCJ='-KPIC'
16361 lt_prog_compiler_static_GCJ='-Bstatic'
16362 case $cc_basename in
16363 f77* | f90* | f95*)
16364 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16365 *)
16366 lt_prog_compiler_wl_GCJ='-Wl,';;
16367 esac
16368 ;;
16369
16370 sunos4*)
16371 lt_prog_compiler_wl_GCJ='-Qoption ld '
16372 lt_prog_compiler_pic_GCJ='-PIC'
16373 lt_prog_compiler_static_GCJ='-Bstatic'
16374 ;;
16375
16376 sysv4 | sysv4.2uw2* | sysv4.3*)
16377 lt_prog_compiler_wl_GCJ='-Wl,'
16378 lt_prog_compiler_pic_GCJ='-KPIC'
16379 lt_prog_compiler_static_GCJ='-Bstatic'
16380 ;;
16381
16382 sysv4*MP*)
16383 if test -d /usr/nec ;then
16384 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16385 lt_prog_compiler_static_GCJ='-Bstatic'
16386 fi
16387 ;;
16388
16389 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16390 lt_prog_compiler_wl_GCJ='-Wl,'
16391 lt_prog_compiler_pic_GCJ='-KPIC'
16392 lt_prog_compiler_static_GCJ='-Bstatic'
16393 ;;
16394
16395 unicos*)
16396 lt_prog_compiler_wl_GCJ='-Wl,'
16397 lt_prog_compiler_can_build_shared_GCJ=no
16398 ;;
16399
16400 uts4*)
16401 lt_prog_compiler_pic_GCJ='-pic'
16402 lt_prog_compiler_static_GCJ='-Bstatic'
16403 ;;
16404
16405 *)
16406 lt_prog_compiler_can_build_shared_GCJ=no
16407 ;;
16408 esac
16409 fi
16410
16411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16412$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16413
16414#
16415# Check to make sure the PIC flag actually works.
16416#
16417if test -n "$lt_prog_compiler_pic_GCJ"; then
16418
16419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16420$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16421if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
16422 $as_echo_n "(cached) " >&6
16423else
16424 lt_cv_prog_compiler_pic_works_GCJ=no
16425 ac_outfile=conftest.$ac_objext
16426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16427 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16428 # Insert the option either (1) after the last *FLAGS variable, or
16429 # (2) before a word containing "conftest.", or (3) at the end.
16430 # Note that $ac_compile itself does not contain backslashes and begins
16431 # with a dollar sign (not a hyphen), so the echo should work correctly.
16432 # The option is referenced via a variable to avoid confusing sed.
16433 lt_compile=`echo "$ac_compile" | $SED \
16434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16436 -e 's:$: $lt_compiler_flag:'`
16437 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16438 (eval "$lt_compile" 2>conftest.err)
16439 ac_status=$?
16440 cat conftest.err >&5
16441 echo "$as_me:__oline__: \$? = $ac_status" >&5
16442 if (exit $ac_status) && test -s "$ac_outfile"; then
16443 # The compiler can only warn and ignore the option if not recognized
16444 # So say no if there are warnings other than the usual output.
16445 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16447 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16448 lt_cv_prog_compiler_pic_works_GCJ=yes
16449 fi
16450 fi
16451 $rm conftest*
16452
16453fi
16454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16455$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16456
16457if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16458 case $lt_prog_compiler_pic_GCJ in
16459 "" | " "*) ;;
16460 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16461 esac
16462else
16463 lt_prog_compiler_pic_GCJ=
16464 lt_prog_compiler_can_build_shared_GCJ=no
16465fi
16466
16467fi
16468case $host_os in
16469 # For platforms which do not support PIC, -DPIC is meaningless:
16470 *djgpp*)
16471 lt_prog_compiler_pic_GCJ=
16472 ;;
16473 *)
16474 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16475 ;;
16476esac
16477
16478#
16479# Check to make sure the static flag actually works.
16480#
16481wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16483$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16484if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
16485 $as_echo_n "(cached) " >&6
16486else
16487 lt_cv_prog_compiler_static_works_GCJ=no
16488 save_LDFLAGS="$LDFLAGS"
16489 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16490 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16491 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16492 # The linker can only warn and ignore the option if not recognized
16493 # So say no if there are warnings
16494 if test -s conftest.err; then
16495 # Append any errors to the config.log.
16496 cat conftest.err 1>&5
16497 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16499 if diff conftest.exp conftest.er2 >/dev/null; then
16500 lt_cv_prog_compiler_static_works_GCJ=yes
16501 fi
16502 else
16503 lt_cv_prog_compiler_static_works_GCJ=yes
16504 fi
16505 fi
16506 $rm -r conftest*
16507 LDFLAGS="$save_LDFLAGS"
16508
16509fi
16510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16511$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16512
16513if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16514 :
16515else
16516 lt_prog_compiler_static_GCJ=
16517fi
16518
16519
16520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16521$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16522if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
16523 $as_echo_n "(cached) " >&6
16524else
16525 lt_cv_prog_compiler_c_o_GCJ=no
16526 $rm -r conftest 2>/dev/null
16527 mkdir conftest
16528 cd conftest
16529 mkdir out
16530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16531
16532 lt_compiler_flag="-o out/conftest2.$ac_objext"
16533 # Insert the option either (1) after the last *FLAGS variable, or
16534 # (2) before a word containing "conftest.", or (3) at the end.
16535 # Note that $ac_compile itself does not contain backslashes and begins
16536 # with a dollar sign (not a hyphen), so the echo should work correctly.
16537 lt_compile=`echo "$ac_compile" | $SED \
16538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16540 -e 's:$: $lt_compiler_flag:'`
16541 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16542 (eval "$lt_compile" 2>out/conftest.err)
16543 ac_status=$?
16544 cat out/conftest.err >&5
16545 echo "$as_me:__oline__: \$? = $ac_status" >&5
16546 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16547 then
16548 # The compiler can only warn and ignore the option if not recognized
16549 # So say no if there are warnings
16550 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16551 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16552 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16553 lt_cv_prog_compiler_c_o_GCJ=yes
16554 fi
16555 fi
16556 chmod u+w . 2>&5
16557 $rm conftest*
16558 # SGI C++ compiler will create directory out/ii_files/ for
16559 # template instantiation
16560 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16561 $rm out/* && rmdir out
16562 cd ..
16563 rmdir conftest
16564 $rm conftest*
16565
16566fi
16567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16568$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16569
16570
16571hard_links="nottested"
16572if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16573 # do not overwrite the value of need_locks provided by the user
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16575$as_echo_n "checking if we can lock with hard links... " >&6; }
16576 hard_links=yes
16577 $rm conftest*
16578 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16579 touch conftest.a
16580 ln conftest.a conftest.b 2>&5 || hard_links=no
16581 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16583$as_echo "$hard_links" >&6; }
16584 if test "$hard_links" = no; then
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16586$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16587 need_locks=warn
16588 fi
16589else
16590 need_locks=no
16591fi
16592
16593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16594$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16595
16596 runpath_var=
16597 allow_undefined_flag_GCJ=
16598 enable_shared_with_static_runtimes_GCJ=no
16599 archive_cmds_GCJ=
16600 archive_expsym_cmds_GCJ=
16601 old_archive_From_new_cmds_GCJ=
16602 old_archive_from_expsyms_cmds_GCJ=
16603 export_dynamic_flag_spec_GCJ=
16604 whole_archive_flag_spec_GCJ=
16605 thread_safe_flag_spec_GCJ=
16606 hardcode_libdir_flag_spec_GCJ=
16607 hardcode_libdir_flag_spec_ld_GCJ=
16608 hardcode_libdir_separator_GCJ=
16609 hardcode_direct_GCJ=no
16610 hardcode_minus_L_GCJ=no
16611 hardcode_shlibpath_var_GCJ=unsupported
16612 link_all_deplibs_GCJ=unknown
16613 hardcode_automatic_GCJ=no
16614 module_cmds_GCJ=
16615 module_expsym_cmds_GCJ=
16616 always_export_symbols_GCJ=no
16617 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16618 # include_expsyms should be a list of space-separated symbols to be *always*
16619 # included in the symbol list
16620 include_expsyms_GCJ=
16621 # exclude_expsyms can be an extended regexp of symbols to exclude
16622 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16623 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16624 # as well as any symbol that contains `d'.
16625 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16626 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16627 # platforms (ab)use it in PIC code, but their linkers get confused if
16628 # the symbol is explicitly referenced. Since portable code cannot
16629 # rely on this symbol name, it's probably fine to never include it in
16630 # preloaded symbol tables.
16631 # Exclude shared library initialization/finalization symbols.
16632 extract_expsyms_cmds=
16633 # Just being paranoid about ensuring that cc_basename is set.
16634 for cc_temp in $compiler""; do
16635 case $cc_temp in
16636 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16637 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16638 \-*) ;;
16639 *) break;;
16640 esac
16641done
16642cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16643
16644 case $host_os in
16645 cygwin* | mingw* | pw32*)
16646 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16647 # When not using gcc, we currently assume that we are using
16648 # Microsoft Visual C++.
16649 if test "$GCC" != yes; then
16650 with_gnu_ld=no
16651 fi
16652 ;;
16653 interix*)
16654 # we just hope/assume this is gcc and not c89 (= MSVC++)
16655 with_gnu_ld=yes
16656 ;;
16657 openbsd*)
16658 with_gnu_ld=no
16659 ;;
16660 esac
16661
16662 ld_shlibs_GCJ=yes
16663 if test "$with_gnu_ld" = yes; then
16664 # If archive_cmds runs LD, not CC, wlarc should be empty
16665 wlarc='${wl}'
16666
16667 # Set some defaults for GNU ld with shared library support. These
16668 # are reset later if shared libraries are not supported. Putting them
16669 # here allows them to be overridden if necessary.
16670 runpath_var=LD_RUN_PATH
16671 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16672 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16673 # ancient GNU ld didn't support --whole-archive et. al.
16674 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16675 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16676 else
16677 whole_archive_flag_spec_GCJ=
16678 fi
16679 supports_anon_versioning=no
16680 case `$LD -v 2>/dev/null` in
16681 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16682 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16683 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16684 *\ 2.11.*) ;; # other 2.11 versions
16685 *) supports_anon_versioning=yes ;;
16686 esac
16687
16688 # See if GNU ld supports shared libraries.
16689 case $host_os in
16690 aix[3-9]*)
16691 # On AIX/PPC, the GNU linker is very broken
16692 if test "$host_cpu" != ia64; then
16693 ld_shlibs_GCJ=no
16694 cat <<EOF 1>&2
16695
16696*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16697*** to be unable to reliably create shared libraries on AIX.
16698*** Therefore, libtool is disabling shared libraries support. If you
16699*** really care for shared libraries, you may want to modify your PATH
16700*** so that a non-GNU linker is found, and then restart.
16701
16702EOF
16703 fi
16704 ;;
16705
16706 amigaos*)
16707 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16708 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16709 hardcode_minus_L_GCJ=yes
16710
16711 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16712 # that the semantics of dynamic libraries on AmigaOS, at least up
16713 # to version 4, is to share data among multiple programs linked
16714 # with the same dynamic library. Since this doesn't match the
16715 # behavior of shared libraries on other platforms, we can't use
16716 # them.
16717 ld_shlibs_GCJ=no
16718 ;;
16719
16720 beos*)
16721 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16722 allow_undefined_flag_GCJ=unsupported
16723 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16724 # support --undefined. This deserves some investigation. FIXME
16725 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16726 else
16727 ld_shlibs_GCJ=no
16728 fi
16729 ;;
16730
16731 cygwin* | mingw* | pw32*)
16732 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16733 # as there is no search path for DLLs.
16734 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16735 allow_undefined_flag_GCJ=unsupported
16736 always_export_symbols_GCJ=no
16737 enable_shared_with_static_runtimes_GCJ=yes
16738 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16739
16740 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16741 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16742 # If the export-symbols file already is a .def file (1st line
16743 # is EXPORTS), use it as is; otherwise, prepend...
16744 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16745 cp $export_symbols $output_objdir/$soname.def;
16746 else
16747 echo EXPORTS > $output_objdir/$soname.def;
16748 cat $export_symbols >> $output_objdir/$soname.def;
16749 fi~
16750 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16751 else
16752 ld_shlibs_GCJ=no
16753 fi
16754 ;;
16755
16756 interix[3-9]*)
16757 hardcode_direct_GCJ=no
16758 hardcode_shlibpath_var_GCJ=no
16759 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16760 export_dynamic_flag_spec_GCJ='${wl}-E'
16761 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16762 # Instead, shared libraries are loaded at an image base (0x10000000 by
16763 # default) and relocated if they conflict, which is a slow very memory
16764 # consuming and fragmenting process. To avoid this, we pick a random,
16765 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16766 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16767 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16768 archive_expsym_cmds_GCJ='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'
16769 ;;
16770
16771 gnu* | linux* | k*bsd*-gnu)
16772 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16773 tmp_addflag=
16774 case $cc_basename,$host_cpu in
16775 pgcc*) # Portland Group C compiler
16776 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16777 tmp_addflag=' $pic_flag'
16778 ;;
16779 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16780 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16781 tmp_addflag=' $pic_flag -Mnomain' ;;
16782 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16783 tmp_addflag=' -i_dynamic' ;;
16784 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16785 tmp_addflag=' -i_dynamic -nofor_main' ;;
16786 ifc* | ifort*) # Intel Fortran compiler
16787 tmp_addflag=' -nofor_main' ;;
16788 esac
16789 case `$CC -V 2>&1 | sed 5q` in
16790 *Sun\ C*) # Sun C 5.9
16791 whole_archive_flag_spec_GCJ='${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'
16792 tmp_sharedflag='-G' ;;
16793 *Sun\ F*) # Sun Fortran 8.3
16794 tmp_sharedflag='-G' ;;
16795 *)
16796 tmp_sharedflag='-shared' ;;
16797 esac
16798 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16799
16800 if test $supports_anon_versioning = yes; then
16801 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16802 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16803 $echo "local: *; };" >> $output_objdir/$libname.ver~
16804 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16805 fi
16806 link_all_deplibs_GCJ=no
16807 else
16808 ld_shlibs_GCJ=no
16809 fi
16810 ;;
16811
16812 netbsd* | netbsdelf*-gnu)
16813 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16814 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16815 wlarc=
16816 else
16817 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16818 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16819 fi
16820 ;;
16821
16822 solaris*)
16823 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16824 ld_shlibs_GCJ=no
16825 cat <<EOF 1>&2
16826
16827*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16828*** create shared libraries on Solaris systems. Therefore, libtool
16829*** is disabling shared libraries support. We urge you to upgrade GNU
16830*** binutils to release 2.9.1 or newer. Another option is to modify
16831*** your PATH or compiler configuration so that the native linker is
16832*** used, and then restart.
16833
16834EOF
16835 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16836 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16837 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16838 else
16839 ld_shlibs_GCJ=no
16840 fi
16841 ;;
16842
16843 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16844 case `$LD -v 2>&1` in
16845 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16846 ld_shlibs_GCJ=no
16847 cat <<_LT_EOF 1>&2
16848
16849*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16850*** reliably create shared libraries on SCO systems. Therefore, libtool
16851*** is disabling shared libraries support. We urge you to upgrade GNU
16852*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16853*** your PATH or compiler configuration so that the native linker is
16854*** used, and then restart.
16855
16856_LT_EOF
16857 ;;
16858 *)
16859 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16860 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16861 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16862 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16863 else
16864 ld_shlibs_GCJ=no
16865 fi
16866 ;;
16867 esac
16868 ;;
16869
16870 sunos4*)
16871 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16872 wlarc=
16873 hardcode_direct_GCJ=yes
16874 hardcode_shlibpath_var_GCJ=no
16875 ;;
16876
16877 *)
16878 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16879 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16880 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16881 else
16882 ld_shlibs_GCJ=no
16883 fi
16884 ;;
16885 esac
16886
16887 if test "$ld_shlibs_GCJ" = no; then
16888 runpath_var=
16889 hardcode_libdir_flag_spec_GCJ=
16890 export_dynamic_flag_spec_GCJ=
16891 whole_archive_flag_spec_GCJ=
16892 fi
16893 else
16894 # PORTME fill in a description of your system's linker (not GNU ld)
16895 case $host_os in
16896 aix3*)
16897 allow_undefined_flag_GCJ=unsupported
16898 always_export_symbols_GCJ=yes
16899 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16900 # Note: this linker hardcodes the directories in LIBPATH if there
16901 # are no directories specified by -L.
16902 hardcode_minus_L_GCJ=yes
16903 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16904 # Neither direct hardcoding nor static linking is supported with a
16905 # broken collect2.
16906 hardcode_direct_GCJ=unsupported
16907 fi
16908 ;;
16909
16910 aix[4-9]*)
16911 if test "$host_cpu" = ia64; then
16912 # On IA64, the linker does run time linking by default, so we don't
16913 # have to do anything special.
16914 aix_use_runtimelinking=no
16915 exp_sym_flag='-Bexport'
16916 no_entry_flag=""
16917 else
16918 # If we're using GNU nm, then we don't want the "-C" option.
16919 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16920 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16921 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16922 else
16923 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16924 fi
16925 aix_use_runtimelinking=no
16926
16927 # Test if we are trying to use run time linking or normal
16928 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16929 # need to do runtime linking.
16930 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16931 for ld_flag in $LDFLAGS; do
16932 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16933 aix_use_runtimelinking=yes
16934 break
16935 fi
16936 done
16937 ;;
16938 esac
16939
16940 exp_sym_flag='-bexport'
16941 no_entry_flag='-bnoentry'
16942 fi
16943
16944 # When large executables or shared objects are built, AIX ld can
16945 # have problems creating the table of contents. If linking a library
16946 # or program results in "error TOC overflow" add -mminimal-toc to
16947 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16948 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16949
16950 archive_cmds_GCJ=''
16951 hardcode_direct_GCJ=yes
16952 hardcode_libdir_separator_GCJ=':'
16953 link_all_deplibs_GCJ=yes
16954
16955 if test "$GCC" = yes; then
16956 case $host_os in aix4.[012]|aix4.[012].*)
16957 # We only want to do this on AIX 4.2 and lower, the check
16958 # below for broken collect2 doesn't work under 4.3+
16959 collect2name=`${CC} -print-prog-name=collect2`
16960 if test -f "$collect2name" && \
16961 strings "$collect2name" | grep resolve_lib_name >/dev/null
16962 then
16963 # We have reworked collect2
16964 :
16965 else
16966 # We have old collect2
16967 hardcode_direct_GCJ=unsupported
16968 # It fails to find uninstalled libraries when the uninstalled
16969 # path is not listed in the libpath. Setting hardcode_minus_L
16970 # to unsupported forces relinking
16971 hardcode_minus_L_GCJ=yes
16972 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16973 hardcode_libdir_separator_GCJ=
16974 fi
16975 ;;
16976 esac
16977 shared_flag='-shared'
16978 if test "$aix_use_runtimelinking" = yes; then
16979 shared_flag="$shared_flag "'${wl}-G'
16980 fi
16981 else
16982 # not using gcc
16983 if test "$host_cpu" = ia64; then
16984 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16985 # chokes on -Wl,-G. The following line is correct:
16986 shared_flag='-G'
16987 else
16988 if test "$aix_use_runtimelinking" = yes; then
16989 shared_flag='${wl}-G'
16990 else
16991 shared_flag='${wl}-bM:SRE'
16992 fi
16993 fi
16994 fi
16995
16996 # It seems that -bexpall does not export symbols beginning with
16997 # underscore (_), so it is better to generate a list of symbols to export.
16998 always_export_symbols_GCJ=yes
16999 if test "$aix_use_runtimelinking" = yes; then
17000 # Warning - without using the other runtime loading flags (-brtl),
17001 # -berok will link without error, but may produce a broken library.
17002 allow_undefined_flag_GCJ='-berok'
17003 # Determine the default libpath from the value encoded in an empty executable.
17004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17005/* end confdefs.h. */
17006
17007int
17008main ()
17009{
17010
17011 ;
17012 return 0;
17013}
17014_ACEOF
17015if ac_fn_c_try_link "$LINENO"; then :
17016
17017lt_aix_libpath_sed='
17018 /Import File Strings/,/^$/ {
17019 /^0/ {
17020 s/^0 *\(.*\)$/\1/
17021 p
17022 }
17023 }'
17024aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17025# Check for a 64-bit object if we didn't find anything.
17026if test -z "$aix_libpath"; then
17027 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17028fi
17029fi
17030rm -f core conftest.err conftest.$ac_objext \
17031 conftest$ac_exeext conftest.$ac_ext
17032if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17033
17034 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17035 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17036 else
17037 if test "$host_cpu" = ia64; then
17038 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17039 allow_undefined_flag_GCJ="-z nodefs"
17040 archive_expsym_cmds_GCJ="\$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"
17041 else
17042 # Determine the default libpath from the value encoded in an empty executable.
17043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17044/* end confdefs.h. */
17045
17046int
17047main ()
17048{
17049
17050 ;
17051 return 0;
17052}
17053_ACEOF
17054if ac_fn_c_try_link "$LINENO"; then :
17055
17056lt_aix_libpath_sed='
17057 /Import File Strings/,/^$/ {
17058 /^0/ {
17059 s/^0 *\(.*\)$/\1/
17060 p
17061 }
17062 }'
17063aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17064# Check for a 64-bit object if we didn't find anything.
17065if test -z "$aix_libpath"; then
17066 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17067fi
17068fi
17069rm -f core conftest.err conftest.$ac_objext \
17070 conftest$ac_exeext conftest.$ac_ext
17071if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17072
17073 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17074 # Warning - without using the other run time loading flags,
17075 # -berok will link without error, but may produce a broken library.
17076 no_undefined_flag_GCJ=' ${wl}-bernotok'
17077 allow_undefined_flag_GCJ=' ${wl}-berok'
17078 # Exported symbols can be pulled into shared objects from archives
17079 whole_archive_flag_spec_GCJ='$convenience'
17080 archive_cmds_need_lc_GCJ=yes
17081 # This is similar to how AIX traditionally builds its shared libraries.
17082 archive_expsym_cmds_GCJ="\$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'
17083 fi
17084 fi
17085 ;;
17086
17087 amigaos*)
17088 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17089 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17090 hardcode_minus_L_GCJ=yes
17091 # see comment about different semantics on the GNU ld section
17092 ld_shlibs_GCJ=no
17093 ;;
17094
17095 bsdi[45]*)
17096 export_dynamic_flag_spec_GCJ=-rdynamic
17097 ;;
17098
17099 cygwin* | mingw* | pw32*)
17100 # When not using gcc, we currently assume that we are using
17101 # Microsoft Visual C++.
17102 # hardcode_libdir_flag_spec is actually meaningless, as there is
17103 # no search path for DLLs.
17104 hardcode_libdir_flag_spec_GCJ=' '
17105 allow_undefined_flag_GCJ=unsupported
17106 # Tell ltmain to make .lib files, not .a files.
17107 libext=lib
17108 # Tell ltmain to make .dll files, not .so files.
17109 shrext_cmds=".dll"
17110 # FIXME: Setting linknames here is a bad hack.
17111 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17112 # The linker will automatically build a .lib file if we build a DLL.
17113 old_archive_From_new_cmds_GCJ='true'
17114 # FIXME: Should let the user specify the lib program.
17115 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17116 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17117 enable_shared_with_static_runtimes_GCJ=yes
17118 ;;
17119
17120 darwin* | rhapsody*)
17121 case $host_os in
17122 rhapsody* | darwin1.[012])
17123 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17124 ;;
17125 *) # Darwin 1.3 on
17126 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17127 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17128 else
17129 case ${MACOSX_DEPLOYMENT_TARGET} in
17130 10.[012])
17131 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17132 ;;
17133 10.*)
17134 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17135 ;;
17136 esac
17137 fi
17138 ;;
17139 esac
17140 archive_cmds_need_lc_GCJ=no
17141 hardcode_direct_GCJ=no
17142 hardcode_automatic_GCJ=yes
17143 hardcode_shlibpath_var_GCJ=unsupported
17144 whole_archive_flag_spec_GCJ=''
17145 link_all_deplibs_GCJ=yes
17146 if test "$GCC" = yes ; then
17147 output_verbose_link_cmd='echo'
17148 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17149 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17150 archive_expsym_cmds_GCJ="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}"
17151 module_expsym_cmds_GCJ="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}"
17152 else
17153 case $cc_basename in
17154 xlc*)
17155 output_verbose_link_cmd='echo'
17156 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17157 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17158 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17159 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17160 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17161 ;;
17162 *)
17163 ld_shlibs_GCJ=no
17164 ;;
17165 esac
17166 fi
17167 ;;
17168
17169 dgux*)
17170 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17171 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17172 hardcode_shlibpath_var_GCJ=no
17173 ;;
17174
17175 freebsd1*)
17176 ld_shlibs_GCJ=no
17177 ;;
17178
17179 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17180 # support. Future versions do this automatically, but an explicit c++rt0.o
17181 # does not break anything, and helps significantly (at the cost of a little
17182 # extra space).
17183 freebsd2.2*)
17184 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17185 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17186 hardcode_direct_GCJ=yes
17187 hardcode_shlibpath_var_GCJ=no
17188 ;;
17189
17190 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17191 freebsd2*)
17192 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17193 hardcode_direct_GCJ=yes
17194 hardcode_minus_L_GCJ=yes
17195 hardcode_shlibpath_var_GCJ=no
17196 ;;
17197
17198 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17199 freebsd* | dragonfly*)
17200 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17201 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17202 hardcode_direct_GCJ=yes
17203 hardcode_shlibpath_var_GCJ=no
17204 ;;
17205
17206 hpux9*)
17207 if test "$GCC" = yes; then
17208 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17209 else
17210 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17211 fi
17212 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17213 hardcode_libdir_separator_GCJ=:
17214 hardcode_direct_GCJ=yes
17215
17216 # hardcode_minus_L: Not really in the search PATH,
17217 # but as the default location of the library.
17218 hardcode_minus_L_GCJ=yes
17219 export_dynamic_flag_spec_GCJ='${wl}-E'
17220 ;;
17221
17222 hpux10*)
17223 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17224 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17225 else
17226 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17227 fi
17228 if test "$with_gnu_ld" = no; then
17229 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17230 hardcode_libdir_separator_GCJ=:
17231
17232 hardcode_direct_GCJ=yes
17233 export_dynamic_flag_spec_GCJ='${wl}-E'
17234
17235 # hardcode_minus_L: Not really in the search PATH,
17236 # but as the default location of the library.
17237 hardcode_minus_L_GCJ=yes
17238 fi
17239 ;;
17240
17241 hpux11*)
17242 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17243 case $host_cpu in
17244 hppa*64*)
17245 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17246 ;;
17247 ia64*)
17248 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17249 ;;
17250 *)
17251 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17252 ;;
17253 esac
17254 else
17255 case $host_cpu in
17256 hppa*64*)
17257 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17258 ;;
17259 ia64*)
17260 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17261 ;;
17262 *)
17263 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17264 ;;
17265 esac
17266 fi
17267 if test "$with_gnu_ld" = no; then
17268 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17269 hardcode_libdir_separator_GCJ=:
17270
17271 case $host_cpu in
17272 hppa*64*|ia64*)
17273 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17274 hardcode_direct_GCJ=no
17275 hardcode_shlibpath_var_GCJ=no
17276 ;;
17277 *)
17278 hardcode_direct_GCJ=yes
17279 export_dynamic_flag_spec_GCJ='${wl}-E'
17280
17281 # hardcode_minus_L: Not really in the search PATH,
17282 # but as the default location of the library.
17283 hardcode_minus_L_GCJ=yes
17284 ;;
17285 esac
17286 fi
17287 ;;
17288
17289 irix5* | irix6* | nonstopux*)
17290 if test "$GCC" = yes; then
17291 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17292 else
17293 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17294 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17295 fi
17296 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17297 hardcode_libdir_separator_GCJ=:
17298 link_all_deplibs_GCJ=yes
17299 ;;
17300
17301 netbsd* | netbsdelf*-gnu)
17302 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17303 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17304 else
17305 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17306 fi
17307 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17308 hardcode_direct_GCJ=yes
17309 hardcode_shlibpath_var_GCJ=no
17310 ;;
17311
17312 newsos6)
17313 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17314 hardcode_direct_GCJ=yes
17315 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17316 hardcode_libdir_separator_GCJ=:
17317 hardcode_shlibpath_var_GCJ=no
17318 ;;
17319
17320 openbsd*)
17321 if test -f /usr/libexec/ld.so; then
17322 hardcode_direct_GCJ=yes
17323 hardcode_shlibpath_var_GCJ=no
17324 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17325 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17326 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17327 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17328 export_dynamic_flag_spec_GCJ='${wl}-E'
17329 else
17330 case $host_os in
17331 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17332 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17333 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17334 ;;
17335 *)
17336 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17337 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17338 ;;
17339 esac
17340 fi
17341 else
17342 ld_shlibs_GCJ=no
17343 fi
17344 ;;
17345
17346 os2*)
17347 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17348 hardcode_minus_L_GCJ=yes
17349 allow_undefined_flag_GCJ=unsupported
17350 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17351 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17352 ;;
17353
17354 osf3*)
17355 if test "$GCC" = yes; then
17356 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17357 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17358 else
17359 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17360 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17361 fi
17362 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17363 hardcode_libdir_separator_GCJ=:
17364 ;;
17365
17366 osf4* | osf5*) # as osf3* with the addition of -msym flag
17367 if test "$GCC" = yes; then
17368 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17369 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17370 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17371 else
17372 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17373 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17374 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17375 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17376
17377 # Both c and cxx compiler support -rpath directly
17378 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17379 fi
17380 hardcode_libdir_separator_GCJ=:
17381 ;;
17382
17383 solaris*)
17384 no_undefined_flag_GCJ=' -z text'
17385 if test "$GCC" = yes; then
17386 wlarc='${wl}'
17387 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17388 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17389 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17390 else
17391 wlarc=''
17392 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17393 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17394 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17395 fi
17396 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17397 hardcode_shlibpath_var_GCJ=no
17398 case $host_os in
17399 solaris2.[0-5] | solaris2.[0-5].*) ;;
17400 *)
17401 # The compiler driver will combine and reorder linker options,
17402 # but understands `-z linker_flag'. GCC discards it without `$wl',
17403 # but is careful enough not to reorder.
17404 # Supported since Solaris 2.6 (maybe 2.5.1?)
17405 if test "$GCC" = yes; then
17406 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17407 else
17408 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17409 fi
17410 ;;
17411 esac
17412 link_all_deplibs_GCJ=yes
17413 ;;
17414
17415 sunos4*)
17416 if test "x$host_vendor" = xsequent; then
17417 # Use $CC to link under sequent, because it throws in some extra .o
17418 # files that make .init and .fini sections work.
17419 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17420 else
17421 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17422 fi
17423 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17424 hardcode_direct_GCJ=yes
17425 hardcode_minus_L_GCJ=yes
17426 hardcode_shlibpath_var_GCJ=no
17427 ;;
17428
17429 sysv4)
17430 case $host_vendor in
17431 sni)
17432 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17433 hardcode_direct_GCJ=yes # is this really true???
17434 ;;
17435 siemens)
17436 ## LD is ld it makes a PLAMLIB
17437 ## CC just makes a GrossModule.
17438 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17439 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17440 hardcode_direct_GCJ=no
17441 ;;
17442 motorola)
17443 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17444 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17445 ;;
17446 esac
17447 runpath_var='LD_RUN_PATH'
17448 hardcode_shlibpath_var_GCJ=no
17449 ;;
17450
17451 sysv4.3*)
17452 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17453 hardcode_shlibpath_var_GCJ=no
17454 export_dynamic_flag_spec_GCJ='-Bexport'
17455 ;;
17456
17457 sysv4*MP*)
17458 if test -d /usr/nec; then
17459 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17460 hardcode_shlibpath_var_GCJ=no
17461 runpath_var=LD_RUN_PATH
17462 hardcode_runpath_var=yes
17463 ld_shlibs_GCJ=yes
17464 fi
17465 ;;
17466
17467 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17468 no_undefined_flag_GCJ='${wl}-z,text'
17469 archive_cmds_need_lc_GCJ=no
17470 hardcode_shlibpath_var_GCJ=no
17471 runpath_var='LD_RUN_PATH'
17472
17473 if test "$GCC" = yes; then
17474 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17475 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17476 else
17477 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17478 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17479 fi
17480 ;;
17481
17482 sysv5* | sco3.2v5* | sco5v6*)
17483 # Note: We can NOT use -z defs as we might desire, because we do not
17484 # link with -lc, and that would cause any symbols used from libc to
17485 # always be unresolved, which means just about no library would
17486 # ever link correctly. If we're not using GNU ld we use -z text
17487 # though, which does catch some bad symbols but isn't as heavy-handed
17488 # as -z defs.
17489 no_undefined_flag_GCJ='${wl}-z,text'
17490 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17491 archive_cmds_need_lc_GCJ=no
17492 hardcode_shlibpath_var_GCJ=no
17493 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17494 hardcode_libdir_separator_GCJ=':'
17495 link_all_deplibs_GCJ=yes
17496 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17497 runpath_var='LD_RUN_PATH'
17498
17499 if test "$GCC" = yes; then
17500 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17501 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17502 else
17503 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17504 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17505 fi
17506 ;;
17507
17508 uts4*)
17509 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17510 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17511 hardcode_shlibpath_var_GCJ=no
17512 ;;
17513
17514 *)
17515 ld_shlibs_GCJ=no
17516 ;;
17517 esac
17518 fi
17519
17520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17521$as_echo "$ld_shlibs_GCJ" >&6; }
17522test "$ld_shlibs_GCJ" = no && can_build_shared=no
17523
17524#
17525# Do we need to explicitly link libc?
17526#
17527case "x$archive_cmds_need_lc_GCJ" in
17528x|xyes)
17529 # Assume -lc should be added
17530 archive_cmds_need_lc_GCJ=yes
17531
17532 if test "$enable_shared" = yes && test "$GCC" = yes; then
17533 case $archive_cmds_GCJ in
17534 *'~'*)
17535 # FIXME: we may have to deal with multi-command sequences.
17536 ;;
17537 '$CC '*)
17538 # Test whether the compiler implicitly links with -lc since on some
17539 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17540 # to ld, don't add -lc before -lgcc.
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17542$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17543 $rm conftest*
17544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17545
17546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17547 (eval $ac_compile) 2>&5
17548 ac_status=$?
17549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17550 test $ac_status = 0; } 2>conftest.err; then
17551 soname=conftest
17552 lib=conftest
17553 libobjs=conftest.$ac_objext
17554 deplibs=
17555 wl=$lt_prog_compiler_wl_GCJ
17556 pic_flag=$lt_prog_compiler_pic_GCJ
17557 compiler_flags=-v
17558 linker_flags=-v
17559 verstring=
17560 output_objdir=.
17561 libname=conftest
17562 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17563 allow_undefined_flag_GCJ=
17564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17565 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17566 ac_status=$?
17567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17568 test $ac_status = 0; }
17569 then
17570 archive_cmds_need_lc_GCJ=no
17571 else
17572 archive_cmds_need_lc_GCJ=yes
17573 fi
17574 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17575 else
17576 cat conftest.err 1>&5
17577 fi
17578 $rm conftest*
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17580$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17581 ;;
17582 esac
17583 fi
17584 ;;
17585esac
17586
17587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17588$as_echo_n "checking dynamic linker characteristics... " >&6; }
17589library_names_spec=
17590libname_spec='lib$name'
17591soname_spec=
17592shrext_cmds=".so"
17593postinstall_cmds=
17594postuninstall_cmds=
17595finish_cmds=
17596finish_eval=
17597shlibpath_var=
17598shlibpath_overrides_runpath=unknown
17599version_type=none
17600dynamic_linker="$host_os ld.so"
17601sys_lib_dlsearch_path_spec="/lib /usr/lib"
17602
17603need_lib_prefix=unknown
17604hardcode_into_libs=no
17605
17606# when you set need_version to no, make sure it does not cause -set_version
17607# flags to be left without arguments
17608need_version=unknown
17609
17610case $host_os in
17611aix3*)
17612 version_type=linux
17613 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17614 shlibpath_var=LIBPATH
17615
17616 # AIX 3 has no versioning support, so we append a major version to the name.
17617 soname_spec='${libname}${release}${shared_ext}$major'
17618 ;;
17619
17620aix[4-9]*)
17621 version_type=linux
17622 need_lib_prefix=no
17623 need_version=no
17624 hardcode_into_libs=yes
17625 if test "$host_cpu" = ia64; then
17626 # AIX 5 supports IA64
17627 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17628 shlibpath_var=LD_LIBRARY_PATH
17629 else
17630 # With GCC up to 2.95.x, collect2 would create an import file
17631 # for dependence libraries. The import file would start with
17632 # the line `#! .'. This would cause the generated library to
17633 # depend on `.', always an invalid library. This was fixed in
17634 # development snapshots of GCC prior to 3.0.
17635 case $host_os in
17636 aix4 | aix4.[01] | aix4.[01].*)
17637 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17638 echo ' yes '
17639 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17640 :
17641 else
17642 can_build_shared=no
17643 fi
17644 ;;
17645 esac
17646 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17647 # soname into executable. Probably we can add versioning support to
17648 # collect2, so additional links can be useful in future.
17649 if test "$aix_use_runtimelinking" = yes; then
17650 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17651 # instead of lib<name>.a to let people know that these are not
17652 # typical AIX shared libraries.
17653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17654 else
17655 # We preserve .a as extension for shared libraries through AIX4.2
17656 # and later when we are not doing run time linking.
17657 library_names_spec='${libname}${release}.a $libname.a'
17658 soname_spec='${libname}${release}${shared_ext}$major'
17659 fi
17660 shlibpath_var=LIBPATH
17661 fi
17662 ;;
17663
17664amigaos*)
17665 library_names_spec='$libname.ixlibrary $libname.a'
17666 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17667 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'
17668 ;;
17669
17670beos*)
17671 library_names_spec='${libname}${shared_ext}'
17672 dynamic_linker="$host_os ld.so"
17673 shlibpath_var=LIBRARY_PATH
17674 ;;
17675
17676bsdi[45]*)
17677 version_type=linux
17678 need_version=no
17679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17680 soname_spec='${libname}${release}${shared_ext}$major'
17681 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17682 shlibpath_var=LD_LIBRARY_PATH
17683 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17684 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17685 # the default ld.so.conf also contains /usr/contrib/lib and
17686 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17687 # libtool to hard-code these into programs
17688 ;;
17689
17690cygwin* | mingw* | pw32*)
17691 version_type=windows
17692 shrext_cmds=".dll"
17693 need_version=no
17694 need_lib_prefix=no
17695
17696 case $GCC,$host_os in
17697 yes,cygwin* | yes,mingw* | yes,pw32*)
17698 library_names_spec='$libname.dll.a'
17699 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17700 postinstall_cmds='base_file=`basename \${file}`~
17701 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17702 dldir=$destdir/`dirname \$dlpath`~
17703 test -d \$dldir || mkdir -p \$dldir~
17704 $install_prog $dir/$dlname \$dldir/$dlname~
17705 chmod a+x \$dldir/$dlname'
17706 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17707 dlpath=$dir/\$dldll~
17708 $rm \$dlpath'
17709 shlibpath_overrides_runpath=yes
17710
17711 case $host_os in
17712 cygwin*)
17713 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17714 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17715 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17716 ;;
17717 mingw*)
17718 # MinGW DLLs use traditional 'lib' prefix
17719 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17720 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17721 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17722 # It is most probably a Windows format PATH printed by
17723 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17724 # path with ; separators, and with drive letters. We can handle the
17725 # drive letters (cygwin fileutils understands them), so leave them,
17726 # especially as we might pass files found there to a mingw objdump,
17727 # which wouldn't understand a cygwinified path. Ahh.
17728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17729 else
17730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17731 fi
17732 ;;
17733 pw32*)
17734 # pw32 DLLs use 'pw' prefix rather than 'lib'
17735 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17736 ;;
17737 esac
17738 ;;
17739
17740 *)
17741 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17742 ;;
17743 esac
17744 dynamic_linker='Win32 ld.exe'
17745 # FIXME: first we should search . and the directory the executable is in
17746 shlibpath_var=PATH
17747 ;;
17748
17749darwin* | rhapsody*)
17750 dynamic_linker="$host_os dyld"
17751 version_type=darwin
17752 need_lib_prefix=no
17753 need_version=no
17754 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17755 soname_spec='${libname}${release}${major}$shared_ext'
17756 shlibpath_overrides_runpath=yes
17757 shlibpath_var=DYLD_LIBRARY_PATH
17758 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17759
17760 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17761 ;;
17762
17763dgux*)
17764 version_type=linux
17765 need_lib_prefix=no
17766 need_version=no
17767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17768 soname_spec='${libname}${release}${shared_ext}$major'
17769 shlibpath_var=LD_LIBRARY_PATH
17770 ;;
17771
17772freebsd1*)
17773 dynamic_linker=no
17774 ;;
17775
17776freebsd* | dragonfly*)
17777 # DragonFly does not have aout. When/if they implement a new
17778 # versioning mechanism, adjust this.
17779 if test -x /usr/bin/objformat; then
17780 objformat=`/usr/bin/objformat`
17781 else
17782 case $host_os in
17783 freebsd[123]*) objformat=aout ;;
17784 *) objformat=elf ;;
17785 esac
17786 fi
17787 version_type=freebsd-$objformat
17788 case $version_type in
17789 freebsd-elf*)
17790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17791 need_version=no
17792 need_lib_prefix=no
17793 ;;
17794 freebsd-*)
17795 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17796 need_version=yes
17797 ;;
17798 esac
17799 shlibpath_var=LD_LIBRARY_PATH
17800 case $host_os in
17801 freebsd2*)
17802 shlibpath_overrides_runpath=yes
17803 ;;
17804 freebsd3.[01]* | freebsdelf3.[01]*)
17805 shlibpath_overrides_runpath=yes
17806 hardcode_into_libs=yes
17807 ;;
17808 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17809 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17810 shlibpath_overrides_runpath=no
17811 hardcode_into_libs=yes
17812 ;;
17813 *) # from 4.6 on, and DragonFly
17814 shlibpath_overrides_runpath=yes
17815 hardcode_into_libs=yes
17816 ;;
17817 esac
17818 ;;
17819
17820gnu*)
17821 version_type=linux
17822 need_lib_prefix=no
17823 need_version=no
17824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17825 soname_spec='${libname}${release}${shared_ext}$major'
17826 shlibpath_var=LD_LIBRARY_PATH
17827 hardcode_into_libs=yes
17828 ;;
17829
17830hpux9* | hpux10* | hpux11*)
17831 # Give a soname corresponding to the major version so that dld.sl refuses to
17832 # link against other versions.
17833 version_type=sunos
17834 need_lib_prefix=no
17835 need_version=no
17836 case $host_cpu in
17837 ia64*)
17838 shrext_cmds='.so'
17839 hardcode_into_libs=yes
17840 dynamic_linker="$host_os dld.so"
17841 shlibpath_var=LD_LIBRARY_PATH
17842 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17844 soname_spec='${libname}${release}${shared_ext}$major'
17845 if test "X$HPUX_IA64_MODE" = X32; then
17846 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17847 else
17848 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17849 fi
17850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17851 ;;
17852 hppa*64*)
17853 shrext_cmds='.sl'
17854 hardcode_into_libs=yes
17855 dynamic_linker="$host_os dld.sl"
17856 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17859 soname_spec='${libname}${release}${shared_ext}$major'
17860 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17862 ;;
17863 *)
17864 shrext_cmds='.sl'
17865 dynamic_linker="$host_os dld.sl"
17866 shlibpath_var=SHLIB_PATH
17867 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17869 soname_spec='${libname}${release}${shared_ext}$major'
17870 ;;
17871 esac
17872 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17873 postinstall_cmds='chmod 555 $lib'
17874 ;;
17875
17876interix[3-9]*)
17877 version_type=linux
17878 need_lib_prefix=no
17879 need_version=no
17880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17881 soname_spec='${libname}${release}${shared_ext}$major'
17882 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17883 shlibpath_var=LD_LIBRARY_PATH
17884 shlibpath_overrides_runpath=no
17885 hardcode_into_libs=yes
17886 ;;
17887
17888irix5* | irix6* | nonstopux*)
17889 case $host_os in
17890 nonstopux*) version_type=nonstopux ;;
17891 *)
17892 if test "$lt_cv_prog_gnu_ld" = yes; then
17893 version_type=linux
17894 else
17895 version_type=irix
17896 fi ;;
17897 esac
17898 need_lib_prefix=no
17899 need_version=no
17900 soname_spec='${libname}${release}${shared_ext}$major'
17901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17902 case $host_os in
17903 irix5* | nonstopux*)
17904 libsuff= shlibsuff=
17905 ;;
17906 *)
17907 case $LD in # libtool.m4 will add one of these switches to LD
17908 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17909 libsuff= shlibsuff= libmagic=32-bit;;
17910 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17911 libsuff=32 shlibsuff=N32 libmagic=N32;;
17912 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17913 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17914 *) libsuff= shlibsuff= libmagic=never-match;;
17915 esac
17916 ;;
17917 esac
17918 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17919 shlibpath_overrides_runpath=no
17920 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17921 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17922 hardcode_into_libs=yes
17923 ;;
17924
17925# No shared lib support for Linux oldld, aout, or coff.
17926linux*oldld* | linux*aout* | linux*coff*)
17927 dynamic_linker=no
17928 ;;
17929
17930# This must be Linux ELF.
17931linux* | k*bsd*-gnu)
17932 version_type=linux
17933 need_lib_prefix=no
17934 need_version=no
17935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17936 soname_spec='${libname}${release}${shared_ext}$major'
17937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17938 shlibpath_var=LD_LIBRARY_PATH
17939 shlibpath_overrides_runpath=no
17940 # This implies no fast_install, which is unacceptable.
17941 # Some rework will be needed to allow for fast_install
17942 # before this can be enabled.
17943 hardcode_into_libs=yes
17944
17945 # Append ld.so.conf contents to the search path
17946 if test -f /etc/ld.so.conf; then
17947 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' ' '`
17948 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17949 fi
17950
17951 # We used to test for /lib/ld.so.1 and disable shared libraries on
17952 # powerpc, because MkLinux only supported shared libraries with the
17953 # GNU dynamic linker. Since this was broken with cross compilers,
17954 # most powerpc-linux boxes support dynamic linking these days and
17955 # people can always --disable-shared, the test was removed, and we
17956 # assume the GNU/Linux dynamic linker is in use.
17957 dynamic_linker='GNU/Linux ld.so'
17958 ;;
17959
17960netbsdelf*-gnu)
17961 version_type=linux
17962 need_lib_prefix=no
17963 need_version=no
17964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17965 soname_spec='${libname}${release}${shared_ext}$major'
17966 shlibpath_var=LD_LIBRARY_PATH
17967 shlibpath_overrides_runpath=no
17968 hardcode_into_libs=yes
17969 dynamic_linker='NetBSD ld.elf_so'
17970 ;;
17971
17972netbsd*)
17973 version_type=sunos
17974 need_lib_prefix=no
17975 need_version=no
17976 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17979 dynamic_linker='NetBSD (a.out) ld.so'
17980 else
17981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17982 soname_spec='${libname}${release}${shared_ext}$major'
17983 dynamic_linker='NetBSD ld.elf_so'
17984 fi
17985 shlibpath_var=LD_LIBRARY_PATH
17986 shlibpath_overrides_runpath=yes
17987 hardcode_into_libs=yes
17988 ;;
17989
17990newsos6)
17991 version_type=linux
17992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17993 shlibpath_var=LD_LIBRARY_PATH
17994 shlibpath_overrides_runpath=yes
17995 ;;
17996
17997nto-qnx*)
17998 version_type=linux
17999 need_lib_prefix=no
18000 need_version=no
18001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18002 soname_spec='${libname}${release}${shared_ext}$major'
18003 shlibpath_var=LD_LIBRARY_PATH
18004 shlibpath_overrides_runpath=yes
18005 ;;
18006
18007openbsd*)
18008 version_type=sunos
18009 sys_lib_dlsearch_path_spec="/usr/lib"
18010 need_lib_prefix=no
18011 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18012 case $host_os in
18013 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18014 *) need_version=no ;;
18015 esac
18016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18018 shlibpath_var=LD_LIBRARY_PATH
18019 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18020 case $host_os in
18021 openbsd2.[89] | openbsd2.[89].*)
18022 shlibpath_overrides_runpath=no
18023 ;;
18024 *)
18025 shlibpath_overrides_runpath=yes
18026 ;;
18027 esac
18028 else
18029 shlibpath_overrides_runpath=yes
18030 fi
18031 ;;
18032
18033os2*)
18034 libname_spec='$name'
18035 shrext_cmds=".dll"
18036 need_lib_prefix=no
18037 library_names_spec='$libname${shared_ext} $libname.a'
18038 dynamic_linker='OS/2 ld.exe'
18039 shlibpath_var=LIBPATH
18040 ;;
18041
18042osf3* | osf4* | osf5*)
18043 version_type=osf
18044 need_lib_prefix=no
18045 need_version=no
18046 soname_spec='${libname}${release}${shared_ext}$major'
18047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18048 shlibpath_var=LD_LIBRARY_PATH
18049 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18050 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18051 ;;
18052
18053rdos*)
18054 dynamic_linker=no
18055 ;;
18056
18057solaris*)
18058 version_type=linux
18059 need_lib_prefix=no
18060 need_version=no
18061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18062 soname_spec='${libname}${release}${shared_ext}$major'
18063 shlibpath_var=LD_LIBRARY_PATH
18064 shlibpath_overrides_runpath=yes
18065 hardcode_into_libs=yes
18066 # ldd complains unless libraries are executable
18067 postinstall_cmds='chmod +x $lib'
18068 ;;
18069
18070sunos4*)
18071 version_type=sunos
18072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18073 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18074 shlibpath_var=LD_LIBRARY_PATH
18075 shlibpath_overrides_runpath=yes
18076 if test "$with_gnu_ld" = yes; then
18077 need_lib_prefix=no
18078 fi
18079 need_version=yes
18080 ;;
18081
18082sysv4 | sysv4.3*)
18083 version_type=linux
18084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18085 soname_spec='${libname}${release}${shared_ext}$major'
18086 shlibpath_var=LD_LIBRARY_PATH
18087 case $host_vendor in
18088 sni)
18089 shlibpath_overrides_runpath=no
18090 need_lib_prefix=no
18091 export_dynamic_flag_spec='${wl}-Blargedynsym'
18092 runpath_var=LD_RUN_PATH
18093 ;;
18094 siemens)
18095 need_lib_prefix=no
18096 ;;
18097 motorola)
18098 need_lib_prefix=no
18099 need_version=no
18100 shlibpath_overrides_runpath=no
18101 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18102 ;;
18103 esac
18104 ;;
18105
18106sysv4*MP*)
18107 if test -d /usr/nec ;then
18108 version_type=linux
18109 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18110 soname_spec='$libname${shared_ext}.$major'
18111 shlibpath_var=LD_LIBRARY_PATH
18112 fi
18113 ;;
18114
18115sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18116 version_type=freebsd-elf
18117 need_lib_prefix=no
18118 need_version=no
18119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18120 soname_spec='${libname}${release}${shared_ext}$major'
18121 shlibpath_var=LD_LIBRARY_PATH
18122 hardcode_into_libs=yes
18123 if test "$with_gnu_ld" = yes; then
18124 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18125 shlibpath_overrides_runpath=no
18126 else
18127 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18128 shlibpath_overrides_runpath=yes
18129 case $host_os in
18130 sco3.2v5*)
18131 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18132 ;;
18133 esac
18134 fi
18135 sys_lib_dlsearch_path_spec='/usr/lib'
18136 ;;
18137
18138uts4*)
18139 version_type=linux
18140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18141 soname_spec='${libname}${release}${shared_ext}$major'
18142 shlibpath_var=LD_LIBRARY_PATH
18143 ;;
18144
18145*)
18146 dynamic_linker=no
18147 ;;
18148esac
18149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18150$as_echo "$dynamic_linker" >&6; }
18151test "$dynamic_linker" = no && can_build_shared=no
18152
18153if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
18154 $as_echo_n "(cached) " >&6
18155else
18156 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18157fi
18158
18159sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18160if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
18161 $as_echo_n "(cached) " >&6
18162else
18163 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18164fi
18165
18166sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18167
18168variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18169if test "$GCC" = yes; then
18170 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18171fi
18172
18173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18174$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18175hardcode_action_GCJ=
18176if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18177 test -n "$runpath_var_GCJ" || \
18178 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18179
18180 # We can hardcode non-existant directories.
18181 if test "$hardcode_direct_GCJ" != no &&
18182 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18183 # have to relink, otherwise we might link with an installed library
18184 # when we should be linking with a yet-to-be-installed one
18185 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18186 test "$hardcode_minus_L_GCJ" != no; then
18187 # Linking always hardcodes the temporary library directory.
18188 hardcode_action_GCJ=relink
18189 else
18190 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18191 hardcode_action_GCJ=immediate
18192 fi
18193else
18194 # We cannot hardcode anything, or else we can only hardcode existing
18195 # directories.
18196 hardcode_action_GCJ=unsupported
18197fi
18198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18199$as_echo "$hardcode_action_GCJ" >&6; }
18200
18201if test "$hardcode_action_GCJ" = relink; then
18202 # Fast installation is not supported
18203 enable_fast_install=no
18204elif test "$shlibpath_overrides_runpath" = yes ||
18205 test "$enable_shared" = no; then
18206 # Fast installation is not necessary
18207 enable_fast_install=needless
18208fi
18209
18210
18211# The else clause should only fire when bootstrapping the
18212# libtool distribution, otherwise you forgot to ship ltmain.sh
18213# with your package, and you will get complaints that there are
18214# no rules to generate ltmain.sh.
18215if test -f "$ltmain"; then
18216 # See if we are running on zsh, and set the options which allow our commands through
18217 # without removal of \ escapes.
18218 if test -n "${ZSH_VERSION+set}" ; then
18219 setopt NO_GLOB_SUBST
18220 fi
18221 # Now quote all the things that may contain metacharacters while being
18222 # careful not to overquote the AC_SUBSTed values. We take copies of the
18223 # variables and quote the copies for generation of the libtool script.
18224 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18225 SED SHELL STRIP \
18226 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18227 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18228 deplibs_check_method reload_flag reload_cmds need_locks \
18229 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18230 lt_cv_sys_global_symbol_to_c_name_address \
18231 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18232 old_postinstall_cmds old_postuninstall_cmds \
18233 compiler_GCJ \
18234 CC_GCJ \
18235 LD_GCJ \
18236 lt_prog_compiler_wl_GCJ \
18237 lt_prog_compiler_pic_GCJ \
18238 lt_prog_compiler_static_GCJ \
18239 lt_prog_compiler_no_builtin_flag_GCJ \
18240 export_dynamic_flag_spec_GCJ \
18241 thread_safe_flag_spec_GCJ \
18242 whole_archive_flag_spec_GCJ \
18243 enable_shared_with_static_runtimes_GCJ \
18244 old_archive_cmds_GCJ \
18245 old_archive_from_new_cmds_GCJ \
18246 predep_objects_GCJ \
18247 postdep_objects_GCJ \
18248 predeps_GCJ \
18249 postdeps_GCJ \
18250 compiler_lib_search_path_GCJ \
18251 compiler_lib_search_dirs_GCJ \
18252 archive_cmds_GCJ \
18253 archive_expsym_cmds_GCJ \
18254 postinstall_cmds_GCJ \
18255 postuninstall_cmds_GCJ \
18256 old_archive_from_expsyms_cmds_GCJ \
18257 allow_undefined_flag_GCJ \
18258 no_undefined_flag_GCJ \
18259 export_symbols_cmds_GCJ \
18260 hardcode_libdir_flag_spec_GCJ \
18261 hardcode_libdir_flag_spec_ld_GCJ \
18262 hardcode_libdir_separator_GCJ \
18263 hardcode_automatic_GCJ \
18264 module_cmds_GCJ \
18265 module_expsym_cmds_GCJ \
18266 lt_cv_prog_compiler_c_o_GCJ \
18267 fix_srcfile_path_GCJ \
18268 exclude_expsyms_GCJ \
18269 include_expsyms_GCJ; do
18270
18271 case $var in
18272 old_archive_cmds_GCJ | \
18273 old_archive_from_new_cmds_GCJ | \
18274 archive_cmds_GCJ | \
18275 archive_expsym_cmds_GCJ | \
18276 module_cmds_GCJ | \
18277 module_expsym_cmds_GCJ | \
18278 old_archive_from_expsyms_cmds_GCJ | \
18279 export_symbols_cmds_GCJ | \
18280 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18281 postinstall_cmds | postuninstall_cmds | \
18282 old_postinstall_cmds | old_postuninstall_cmds | \
18283 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18284 # Double-quote double-evaled strings.
18285 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18286 ;;
18287 *)
18288 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18289 ;;
18290 esac
18291 done
18292
18293 case $lt_echo in
18294 *'\$0 --fallback-echo"')
18295 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18296 ;;
18297 esac
18298
18299cfgfile="$ofile"
18300
18301 cat <<__EOF__ >> "$cfgfile"
18302# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18303
18304# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18305
18306# Shell to use when invoking shell scripts.
18307SHELL=$lt_SHELL
18308
18309# Whether or not to build shared libraries.
18310build_libtool_libs=$enable_shared
18311
18312# Whether or not to build static libraries.
18313build_old_libs=$enable_static
18314
18315# Whether or not to add -lc for building shared libraries.
18316build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18317
18318# Whether or not to disallow shared libs when runtime libs are static
18319allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18320
18321# Whether or not to optimize for fast installation.
18322fast_install=$enable_fast_install
18323
18324# The host system.
18325host_alias=$host_alias
18326host=$host
18327host_os=$host_os
18328
18329# The build system.
18330build_alias=$build_alias
18331build=$build
18332build_os=$build_os
18333
18334# An echo program that does not interpret backslashes.
18335echo=$lt_echo
18336
18337# The archiver.
18338AR=$lt_AR
18339AR_FLAGS=$lt_AR_FLAGS
18340
18341# A C compiler.
18342LTCC=$lt_LTCC
18343
18344# LTCC compiler flags.
18345LTCFLAGS=$lt_LTCFLAGS
18346
18347# A language-specific compiler.
18348CC=$lt_compiler_GCJ
18349
18350# Is the compiler the GNU C compiler?
18351with_gcc=$GCC_GCJ
18352
18353# An ERE matcher.
18354EGREP=$lt_EGREP
18355
18356# The linker used to build libraries.
18357LD=$lt_LD_GCJ
18358
18359# Whether we need hard or soft links.
18360LN_S=$lt_LN_S
18361
18362# A BSD-compatible nm program.
18363NM=$lt_NM
18364
18365# A symbol stripping program
18366STRIP=$lt_STRIP
18367
18368# Used to examine libraries when file_magic_cmd begins "file"
18369MAGIC_CMD=$MAGIC_CMD
18370
18371# Used on cygwin: DLL creation program.
18372DLLTOOL="$DLLTOOL"
18373
18374# Used on cygwin: object dumper.
18375OBJDUMP="$OBJDUMP"
18376
18377# Used on cygwin: assembler.
18378AS="$AS"
18379
18380# The name of the directory that contains temporary libtool files.
18381objdir=$objdir
18382
18383# How to create reloadable object files.
18384reload_flag=$lt_reload_flag
18385reload_cmds=$lt_reload_cmds
18386
18387# How to pass a linker flag through the compiler.
18388wl=$lt_lt_prog_compiler_wl_GCJ
18389
18390# Object file suffix (normally "o").
18391objext="$ac_objext"
18392
18393# Old archive suffix (normally "a").
18394libext="$libext"
18395
18396# Shared library suffix (normally ".so").
18397shrext_cmds='$shrext_cmds'
18398
18399# Executable file suffix (normally "").
18400exeext="$exeext"
18401
18402# Additional compiler flags for building library objects.
18403pic_flag=$lt_lt_prog_compiler_pic_GCJ
18404pic_mode=$pic_mode
18405
18406# What is the maximum length of a command?
18407max_cmd_len=$lt_cv_sys_max_cmd_len
18408
18409# Does compiler simultaneously support -c and -o options?
18410compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18411
18412# Must we lock files when doing compilation?
18413need_locks=$lt_need_locks
18414
18415# Do we need the lib prefix for modules?
18416need_lib_prefix=$need_lib_prefix
18417
18418# Do we need a version for libraries?
18419need_version=$need_version
18420
18421# Whether dlopen is supported.
18422dlopen_support=$enable_dlopen
18423
18424# Whether dlopen of programs is supported.
18425dlopen_self=$enable_dlopen_self
18426
18427# Whether dlopen of statically linked programs is supported.
18428dlopen_self_static=$enable_dlopen_self_static
18429
18430# Compiler flag to prevent dynamic linking.
18431link_static_flag=$lt_lt_prog_compiler_static_GCJ
18432
18433# Compiler flag to turn off builtin functions.
18434no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18435
18436# Compiler flag to allow reflexive dlopens.
18437export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18438
18439# Compiler flag to generate shared objects directly from archives.
18440whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18441
18442# Compiler flag to generate thread-safe objects.
18443thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18444
18445# Library versioning type.
18446version_type=$version_type
18447
18448# Format of library name prefix.
18449libname_spec=$lt_libname_spec
18450
18451# List of archive names. First name is the real one, the rest are links.
18452# The last name is the one that the linker finds with -lNAME.
18453library_names_spec=$lt_library_names_spec
18454
18455# The coded name of the library, if different from the real name.
18456soname_spec=$lt_soname_spec
18457
18458# Commands used to build and install an old-style archive.
18459RANLIB=$lt_RANLIB
18460old_archive_cmds=$lt_old_archive_cmds_GCJ
18461old_postinstall_cmds=$lt_old_postinstall_cmds
18462old_postuninstall_cmds=$lt_old_postuninstall_cmds
18463
18464# Create an old-style archive from a shared archive.
18465old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18466
18467# Create a temporary old-style archive to link instead of a shared archive.
18468old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18469
18470# Commands used to build and install a shared archive.
18471archive_cmds=$lt_archive_cmds_GCJ
18472archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18473postinstall_cmds=$lt_postinstall_cmds
18474postuninstall_cmds=$lt_postuninstall_cmds
18475
18476# Commands used to build a loadable module (assumed same as above if empty)
18477module_cmds=$lt_module_cmds_GCJ
18478module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18479
18480# Commands to strip libraries.
18481old_striplib=$lt_old_striplib
18482striplib=$lt_striplib
18483
18484# Dependencies to place before the objects being linked to create a
18485# shared library.
18486predep_objects=$lt_predep_objects_GCJ
18487
18488# Dependencies to place after the objects being linked to create a
18489# shared library.
18490postdep_objects=$lt_postdep_objects_GCJ
18491
18492# Dependencies to place before the objects being linked to create a
18493# shared library.
18494predeps=$lt_predeps_GCJ
18495
18496# Dependencies to place after the objects being linked to create a
18497# shared library.
18498postdeps=$lt_postdeps_GCJ
18499
18500# The directories searched by this compiler when creating a shared
18501# library
18502compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18503
18504# The library search path used internally by the compiler when linking
18505# a shared library.
18506compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18507
18508# Method to check whether dependent libraries are shared objects.
18509deplibs_check_method=$lt_deplibs_check_method
18510
18511# Command to use when deplibs_check_method == file_magic.
18512file_magic_cmd=$lt_file_magic_cmd
18513
18514# Flag that allows shared libraries with undefined symbols to be built.
18515allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18516
18517# Flag that forces no undefined symbols.
18518no_undefined_flag=$lt_no_undefined_flag_GCJ
18519
18520# Commands used to finish a libtool library installation in a directory.
18521finish_cmds=$lt_finish_cmds
18522
18523# Same as above, but a single script fragment to be evaled but not shown.
18524finish_eval=$lt_finish_eval
18525
18526# Take the output of nm and produce a listing of raw symbols and C names.
18527global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18528
18529# Transform the output of nm in a proper C declaration
18530global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18531
18532# Transform the output of nm in a C name address pair
18533global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18534
18535# This is the shared library runtime path variable.
18536runpath_var=$runpath_var
18537
18538# This is the shared library path variable.
18539shlibpath_var=$shlibpath_var
18540
18541# Is shlibpath searched before the hard-coded library search path?
18542shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18543
18544# How to hardcode a shared library path into an executable.
18545hardcode_action=$hardcode_action_GCJ
18546
18547# Whether we should hardcode library paths into libraries.
18548hardcode_into_libs=$hardcode_into_libs
18549
18550# Flag to hardcode \$libdir into a binary during linking.
18551# This must work even if \$libdir does not exist.
18552hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18553
18554# If ld is used when linking, flag to hardcode \$libdir into
18555# a binary during linking. This must work even if \$libdir does
18556# not exist.
18557hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18558
18559# Whether we need a single -rpath flag with a separated argument.
18560hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18561
18562# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18563# resulting binary.
18564hardcode_direct=$hardcode_direct_GCJ
18565
18566# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18567# resulting binary.
18568hardcode_minus_L=$hardcode_minus_L_GCJ
18569
18570# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18571# the resulting binary.
18572hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18573
18574# Set to yes if building a shared library automatically hardcodes DIR into the library
18575# and all subsequent libraries and executables linked against it.
18576hardcode_automatic=$hardcode_automatic_GCJ
18577
18578# Variables whose values should be saved in libtool wrapper scripts and
18579# restored at relink time.
18580variables_saved_for_relink="$variables_saved_for_relink"
18581
18582# Whether libtool must link a program against all its dependency libraries.
18583link_all_deplibs=$link_all_deplibs_GCJ
18584
18585# Compile-time system search path for libraries
18586sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18587
18588# Run-time system search path for libraries
18589sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18590
18591# Fix the shell variable \$srcfile for the compiler.
18592fix_srcfile_path=$lt_fix_srcfile_path
18593
18594# Set to yes if exported symbols are required.
18595always_export_symbols=$always_export_symbols_GCJ
18596
18597# The commands to list exported symbols.
18598export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18599
18600# The commands to extract the exported symbol list from a shared archive.
18601extract_expsyms_cmds=$lt_extract_expsyms_cmds
18602
18603# Symbols that should not be listed in the preloaded symbols.
18604exclude_expsyms=$lt_exclude_expsyms_GCJ
18605
18606# Symbols that must always be exported.
18607include_expsyms=$lt_include_expsyms_GCJ
18608
18609# ### END LIBTOOL TAG CONFIG: $tagname
18610
18611__EOF__
18612
18613
18614else
18615 # If there is no Makefile yet, we rely on a make rule to execute
18616 # `config.status --recheck' to rerun these tests and create the
18617 # libtool script then.
18618 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18619 if test -f "$ltmain_in"; then
18620 test -f Makefile && make "$ltmain"
18621 fi
18622fi
18623
18624
18625ac_ext=c
18626ac_cpp='$CPP $CPPFLAGS'
18627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18629ac_compiler_gnu=$ac_cv_c_compiler_gnu
18630
18631CC="$lt_save_CC"
18632
18633 else
18634 tagname=""
18635 fi
18636 ;;
18637
18638 RC)
18639
18640
18641# Source file extension for RC test sources.
18642ac_ext=rc
18643
18644# Object file extension for compiled RC test sources.
18645objext=o
18646objext_RC=$objext
18647
18648# Code to be used in simple compile tests
18649lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18650
18651# Code to be used in simple link tests
18652lt_simple_link_test_code="$lt_simple_compile_test_code"
18653
18654# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18655
18656# If no C compiler was specified, use CC.
18657LTCC=${LTCC-"$CC"}
18658
18659# If no C compiler flags were specified, use CFLAGS.
18660LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18661
18662# Allow CC to be a program name with arguments.
18663compiler=$CC
18664
18665
18666# save warnings/boilerplate of simple test code
18667ac_outfile=conftest.$ac_objext
18668echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18669eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18670_lt_compiler_boilerplate=`cat conftest.err`
18671$rm conftest*
18672
18673ac_outfile=conftest.$ac_objext
18674echo "$lt_simple_link_test_code" >conftest.$ac_ext
18675eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18676_lt_linker_boilerplate=`cat conftest.err`
18677$rm -r conftest*
18678
18679
18680# Allow CC to be a program name with arguments.
18681lt_save_CC="$CC"
18682CC=${RC-"windres"}
18683compiler=$CC
18684compiler_RC=$CC
18685for cc_temp in $compiler""; do
18686 case $cc_temp in
18687 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18688 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18689 \-*) ;;
18690 *) break;;
18691 esac
18692done
18693cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18694
18695lt_cv_prog_compiler_c_o_RC=yes
18696
18697# The else clause should only fire when bootstrapping the
18698# libtool distribution, otherwise you forgot to ship ltmain.sh
18699# with your package, and you will get complaints that there are
18700# no rules to generate ltmain.sh.
18701if test -f "$ltmain"; then
18702 # See if we are running on zsh, and set the options which allow our commands through
18703 # without removal of \ escapes.
18704 if test -n "${ZSH_VERSION+set}" ; then
18705 setopt NO_GLOB_SUBST
18706 fi
18707 # Now quote all the things that may contain metacharacters while being
18708 # careful not to overquote the AC_SUBSTed values. We take copies of the
18709 # variables and quote the copies for generation of the libtool script.
18710 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18711 SED SHELL STRIP \
18712 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18713 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18714 deplibs_check_method reload_flag reload_cmds need_locks \
18715 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18716 lt_cv_sys_global_symbol_to_c_name_address \
18717 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18718 old_postinstall_cmds old_postuninstall_cmds \
18719 compiler_RC \
18720 CC_RC \
18721 LD_RC \
18722 lt_prog_compiler_wl_RC \
18723 lt_prog_compiler_pic_RC \
18724 lt_prog_compiler_static_RC \
18725 lt_prog_compiler_no_builtin_flag_RC \
18726 export_dynamic_flag_spec_RC \
18727 thread_safe_flag_spec_RC \
18728 whole_archive_flag_spec_RC \
18729 enable_shared_with_static_runtimes_RC \
18730 old_archive_cmds_RC \
18731 old_archive_from_new_cmds_RC \
18732 predep_objects_RC \
18733 postdep_objects_RC \
18734 predeps_RC \
18735 postdeps_RC \
18736 compiler_lib_search_path_RC \
18737 compiler_lib_search_dirs_RC \
18738 archive_cmds_RC \
18739 archive_expsym_cmds_RC \
18740 postinstall_cmds_RC \
18741 postuninstall_cmds_RC \
18742 old_archive_from_expsyms_cmds_RC \
18743 allow_undefined_flag_RC \
18744 no_undefined_flag_RC \
18745 export_symbols_cmds_RC \
18746 hardcode_libdir_flag_spec_RC \
18747 hardcode_libdir_flag_spec_ld_RC \
18748 hardcode_libdir_separator_RC \
18749 hardcode_automatic_RC \
18750 module_cmds_RC \
18751 module_expsym_cmds_RC \
18752 lt_cv_prog_compiler_c_o_RC \
18753 fix_srcfile_path_RC \
18754 exclude_expsyms_RC \
18755 include_expsyms_RC; do
18756
18757 case $var in
18758 old_archive_cmds_RC | \
18759 old_archive_from_new_cmds_RC | \
18760 archive_cmds_RC | \
18761 archive_expsym_cmds_RC | \
18762 module_cmds_RC | \
18763 module_expsym_cmds_RC | \
18764 old_archive_from_expsyms_cmds_RC | \
18765 export_symbols_cmds_RC | \
18766 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18767 postinstall_cmds | postuninstall_cmds | \
18768 old_postinstall_cmds | old_postuninstall_cmds | \
18769 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18770 # Double-quote double-evaled strings.
18771 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18772 ;;
18773 *)
18774 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18775 ;;
18776 esac
18777 done
18778
18779 case $lt_echo in
18780 *'\$0 --fallback-echo"')
18781 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18782 ;;
18783 esac
18784
18785cfgfile="$ofile"
18786
18787 cat <<__EOF__ >> "$cfgfile"
18788# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18789
18790# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18791
18792# Shell to use when invoking shell scripts.
18793SHELL=$lt_SHELL
18794
18795# Whether or not to build shared libraries.
18796build_libtool_libs=$enable_shared
18797
18798# Whether or not to build static libraries.
18799build_old_libs=$enable_static
18800
18801# Whether or not to add -lc for building shared libraries.
18802build_libtool_need_lc=$archive_cmds_need_lc_RC
18803
18804# Whether or not to disallow shared libs when runtime libs are static
18805allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18806
18807# Whether or not to optimize for fast installation.
18808fast_install=$enable_fast_install
18809
18810# The host system.
18811host_alias=$host_alias
18812host=$host
18813host_os=$host_os
18814
18815# The build system.
18816build_alias=$build_alias
18817build=$build
18818build_os=$build_os
18819
18820# An echo program that does not interpret backslashes.
18821echo=$lt_echo
18822
18823# The archiver.
18824AR=$lt_AR
18825AR_FLAGS=$lt_AR_FLAGS
18826
18827# A C compiler.
18828LTCC=$lt_LTCC
18829
18830# LTCC compiler flags.
18831LTCFLAGS=$lt_LTCFLAGS
18832
18833# A language-specific compiler.
18834CC=$lt_compiler_RC
18835
18836# Is the compiler the GNU C compiler?
18837with_gcc=$GCC_RC
18838
18839# An ERE matcher.
18840EGREP=$lt_EGREP
18841
18842# The linker used to build libraries.
18843LD=$lt_LD_RC
18844
18845# Whether we need hard or soft links.
18846LN_S=$lt_LN_S
18847
18848# A BSD-compatible nm program.
18849NM=$lt_NM
18850
18851# A symbol stripping program
18852STRIP=$lt_STRIP
18853
18854# Used to examine libraries when file_magic_cmd begins "file"
18855MAGIC_CMD=$MAGIC_CMD
18856
18857# Used on cygwin: DLL creation program.
18858DLLTOOL="$DLLTOOL"
18859
18860# Used on cygwin: object dumper.
18861OBJDUMP="$OBJDUMP"
18862
18863# Used on cygwin: assembler.
18864AS="$AS"
18865
18866# The name of the directory that contains temporary libtool files.
18867objdir=$objdir
18868
18869# How to create reloadable object files.
18870reload_flag=$lt_reload_flag
18871reload_cmds=$lt_reload_cmds
18872
18873# How to pass a linker flag through the compiler.
18874wl=$lt_lt_prog_compiler_wl_RC
18875
18876# Object file suffix (normally "o").
18877objext="$ac_objext"
18878
18879# Old archive suffix (normally "a").
18880libext="$libext"
18881
18882# Shared library suffix (normally ".so").
18883shrext_cmds='$shrext_cmds'
18884
18885# Executable file suffix (normally "").
18886exeext="$exeext"
18887
18888# Additional compiler flags for building library objects.
18889pic_flag=$lt_lt_prog_compiler_pic_RC
18890pic_mode=$pic_mode
18891
18892# What is the maximum length of a command?
18893max_cmd_len=$lt_cv_sys_max_cmd_len
18894
18895# Does compiler simultaneously support -c and -o options?
18896compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18897
18898# Must we lock files when doing compilation?
18899need_locks=$lt_need_locks
18900
18901# Do we need the lib prefix for modules?
18902need_lib_prefix=$need_lib_prefix
18903
18904# Do we need a version for libraries?
18905need_version=$need_version
18906
18907# Whether dlopen is supported.
18908dlopen_support=$enable_dlopen
18909
18910# Whether dlopen of programs is supported.
18911dlopen_self=$enable_dlopen_self
18912
18913# Whether dlopen of statically linked programs is supported.
18914dlopen_self_static=$enable_dlopen_self_static
18915
18916# Compiler flag to prevent dynamic linking.
18917link_static_flag=$lt_lt_prog_compiler_static_RC
18918
18919# Compiler flag to turn off builtin functions.
18920no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18921
18922# Compiler flag to allow reflexive dlopens.
18923export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18924
18925# Compiler flag to generate shared objects directly from archives.
18926whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18927
18928# Compiler flag to generate thread-safe objects.
18929thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18930
18931# Library versioning type.
18932version_type=$version_type
18933
18934# Format of library name prefix.
18935libname_spec=$lt_libname_spec
18936
18937# List of archive names. First name is the real one, the rest are links.
18938# The last name is the one that the linker finds with -lNAME.
18939library_names_spec=$lt_library_names_spec
18940
18941# The coded name of the library, if different from the real name.
18942soname_spec=$lt_soname_spec
18943
18944# Commands used to build and install an old-style archive.
18945RANLIB=$lt_RANLIB
18946old_archive_cmds=$lt_old_archive_cmds_RC
18947old_postinstall_cmds=$lt_old_postinstall_cmds
18948old_postuninstall_cmds=$lt_old_postuninstall_cmds
18949
18950# Create an old-style archive from a shared archive.
18951old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18952
18953# Create a temporary old-style archive to link instead of a shared archive.
18954old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18955
18956# Commands used to build and install a shared archive.
18957archive_cmds=$lt_archive_cmds_RC
18958archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18959postinstall_cmds=$lt_postinstall_cmds
18960postuninstall_cmds=$lt_postuninstall_cmds
18961
18962# Commands used to build a loadable module (assumed same as above if empty)
18963module_cmds=$lt_module_cmds_RC
18964module_expsym_cmds=$lt_module_expsym_cmds_RC
18965
18966# Commands to strip libraries.
18967old_striplib=$lt_old_striplib
18968striplib=$lt_striplib
18969
18970# Dependencies to place before the objects being linked to create a
18971# shared library.
18972predep_objects=$lt_predep_objects_RC
18973
18974# Dependencies to place after the objects being linked to create a
18975# shared library.
18976postdep_objects=$lt_postdep_objects_RC
18977
18978# Dependencies to place before the objects being linked to create a
18979# shared library.
18980predeps=$lt_predeps_RC
18981
18982# Dependencies to place after the objects being linked to create a
18983# shared library.
18984postdeps=$lt_postdeps_RC
18985
18986# The directories searched by this compiler when creating a shared
18987# library
18988compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
18989
18990# The library search path used internally by the compiler when linking
18991# a shared library.
18992compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18993
18994# Method to check whether dependent libraries are shared objects.
18995deplibs_check_method=$lt_deplibs_check_method
18996
18997# Command to use when deplibs_check_method == file_magic.
18998file_magic_cmd=$lt_file_magic_cmd
18999
19000# Flag that allows shared libraries with undefined symbols to be built.
19001allow_undefined_flag=$lt_allow_undefined_flag_RC
19002
19003# Flag that forces no undefined symbols.
19004no_undefined_flag=$lt_no_undefined_flag_RC
19005
19006# Commands used to finish a libtool library installation in a directory.
19007finish_cmds=$lt_finish_cmds
19008
19009# Same as above, but a single script fragment to be evaled but not shown.
19010finish_eval=$lt_finish_eval
19011
19012# Take the output of nm and produce a listing of raw symbols and C names.
19013global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19014
19015# Transform the output of nm in a proper C declaration
19016global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19017
19018# Transform the output of nm in a C name address pair
19019global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19020
19021# This is the shared library runtime path variable.
19022runpath_var=$runpath_var
19023
19024# This is the shared library path variable.
19025shlibpath_var=$shlibpath_var
19026
19027# Is shlibpath searched before the hard-coded library search path?
19028shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19029
19030# How to hardcode a shared library path into an executable.
19031hardcode_action=$hardcode_action_RC
19032
19033# Whether we should hardcode library paths into libraries.
19034hardcode_into_libs=$hardcode_into_libs
19035
19036# Flag to hardcode \$libdir into a binary during linking.
19037# This must work even if \$libdir does not exist.
19038hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19039
19040# If ld is used when linking, flag to hardcode \$libdir into
19041# a binary during linking. This must work even if \$libdir does
19042# not exist.
19043hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19044
19045# Whether we need a single -rpath flag with a separated argument.
19046hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19047
19048# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19049# resulting binary.
19050hardcode_direct=$hardcode_direct_RC
19051
19052# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19053# resulting binary.
19054hardcode_minus_L=$hardcode_minus_L_RC
19055
19056# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19057# the resulting binary.
19058hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19059
19060# Set to yes if building a shared library automatically hardcodes DIR into the library
19061# and all subsequent libraries and executables linked against it.
19062hardcode_automatic=$hardcode_automatic_RC
19063
19064# Variables whose values should be saved in libtool wrapper scripts and
19065# restored at relink time.
19066variables_saved_for_relink="$variables_saved_for_relink"
19067
19068# Whether libtool must link a program against all its dependency libraries.
19069link_all_deplibs=$link_all_deplibs_RC
19070
19071# Compile-time system search path for libraries
19072sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19073
19074# Run-time system search path for libraries
19075sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19076
19077# Fix the shell variable \$srcfile for the compiler.
19078fix_srcfile_path=$lt_fix_srcfile_path
19079
19080# Set to yes if exported symbols are required.
19081always_export_symbols=$always_export_symbols_RC
19082
19083# The commands to list exported symbols.
19084export_symbols_cmds=$lt_export_symbols_cmds_RC
19085
19086# The commands to extract the exported symbol list from a shared archive.
19087extract_expsyms_cmds=$lt_extract_expsyms_cmds
19088
19089# Symbols that should not be listed in the preloaded symbols.
19090exclude_expsyms=$lt_exclude_expsyms_RC
19091
19092# Symbols that must always be exported.
19093include_expsyms=$lt_include_expsyms_RC
19094
19095# ### END LIBTOOL TAG CONFIG: $tagname
19096
19097__EOF__
19098
19099
19100else
19101 # If there is no Makefile yet, we rely on a make rule to execute
19102 # `config.status --recheck' to rerun these tests and create the
19103 # libtool script then.
19104 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19105 if test -f "$ltmain_in"; then
19106 test -f Makefile && make "$ltmain"
19107 fi
19108fi
19109
19110
19111ac_ext=c
19112ac_cpp='$CPP $CPPFLAGS'
19113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19115ac_compiler_gnu=$ac_cv_c_compiler_gnu
19116
19117CC="$lt_save_CC"
19118
19119 ;;
19120
19121 *)
19122 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19123 ;;
19124 esac
19125
19126 # Append the new tag name to the list of available tags.
19127 if test -n "$tagname" ; then
19128 available_tags="$available_tags $tagname"
19129 fi
19130 fi
19131 done
19132 IFS="$lt_save_ifs"
19133
19134 # Now substitute the updated list of available tags.
19135 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19136 mv "${ofile}T" "$ofile"
19137 chmod +x "$ofile"
19138 else
19139 rm -f "${ofile}T"
19140 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19141 fi
19142fi
19143
19144
19145
19146# This can be used to rebuild libtool when needed
19147LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19148
19149# Always use our own libtool.
19150LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19151
19152# Prevent multiple expansion
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173if test -n "$ac_tool_prefix"; then
19174 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19175set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19177$as_echo_n "checking for $ac_word... " >&6; }
19178if test "${ac_cv_prog_RANLIB+set}" = set; then :
19179 $as_echo_n "(cached) " >&6
19180else
19181 if test -n "$RANLIB"; then
19182 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19183else
19184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19185for as_dir in $PATH
19186do
19187 IFS=$as_save_IFS
19188 test -z "$as_dir" && as_dir=.
19189 for ac_exec_ext in '' $ac_executable_extensions; do
19190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19191 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19193 break 2
19194 fi
19195done
19196 done
19197IFS=$as_save_IFS
19198
19199fi
19200fi
19201RANLIB=$ac_cv_prog_RANLIB
19202if test -n "$RANLIB"; then
19203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19204$as_echo "$RANLIB" >&6; }
19205else
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19207$as_echo "no" >&6; }
19208fi
19209
19210
19211fi
19212if test -z "$ac_cv_prog_RANLIB"; then
19213 ac_ct_RANLIB=$RANLIB
19214 # Extract the first word of "ranlib", so it can be a program name with args.
19215set dummy ranlib; ac_word=$2
19216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19217$as_echo_n "checking for $ac_word... " >&6; }
19218if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
19219 $as_echo_n "(cached) " >&6
19220else
19221 if test -n "$ac_ct_RANLIB"; then
19222 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19223else
19224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19225for as_dir in $PATH
19226do
19227 IFS=$as_save_IFS
19228 test -z "$as_dir" && as_dir=.
19229 for ac_exec_ext in '' $ac_executable_extensions; do
19230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19231 ac_cv_prog_ac_ct_RANLIB="ranlib"
19232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19233 break 2
19234 fi
19235done
19236 done
19237IFS=$as_save_IFS
19238
19239fi
19240fi
19241ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19242if test -n "$ac_ct_RANLIB"; then
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19244$as_echo "$ac_ct_RANLIB" >&6; }
19245else
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19247$as_echo "no" >&6; }
19248fi
19249
19250 if test "x$ac_ct_RANLIB" = x; then
19251 RANLIB=":"
19252 else
19253 case $cross_compiling:$ac_tool_warned in
19254yes:)
19255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19257ac_tool_warned=yes ;;
19258esac
19259 RANLIB=$ac_ct_RANLIB
19260 fi
19261else
19262 RANLIB="$ac_cv_prog_RANLIB"
19263fi
19264
19265
19266# Checks for libraries.
19267#AC_CHECK_LIB([rt], [mq_open])
19268
19269# Checks for header files.
19270ac_header_dirent=no
19271for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19272 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19274$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
19275if eval "test \"\${$as_ac_Header+set}\"" = set; then :
19276 $as_echo_n "(cached) " >&6
19277else
19278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19279/* end confdefs.h. */
19280#include <sys/types.h>
19281#include <$ac_hdr>
19282
19283int
19284main ()
19285{
19286if ((DIR *) 0)
19287return 0;
19288 ;
19289 return 0;
19290}
19291_ACEOF
19292if ac_fn_c_try_compile "$LINENO"; then :
19293 eval "$as_ac_Header=yes"
19294else
19295 eval "$as_ac_Header=no"
19296fi
19297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19298fi
19299eval ac_res=\$$as_ac_Header
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19301$as_echo "$ac_res" >&6; }
19302if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19303 cat >>confdefs.h <<_ACEOF
19304@%:@define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19305_ACEOF
19306
19307ac_header_dirent=$ac_hdr; break
19308fi
19309
19310done
19311# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19312if test $ac_header_dirent = dirent.h; then
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19314$as_echo_n "checking for library containing opendir... " >&6; }
19315if test "${ac_cv_search_opendir+set}" = set; then :
19316 $as_echo_n "(cached) " >&6
19317else
19318 ac_func_search_save_LIBS=$LIBS
19319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19320/* end confdefs.h. */
19321
19322/* Override any GCC internal prototype to avoid an error.
19323 Use char because int might match the return type of a GCC
19324 builtin and then its argument prototype would still apply. */
19325#ifdef __cplusplus
19326extern "C"
19327#endif
19328char opendir ();
19329int
19330main ()
19331{
19332return opendir ();
19333 ;
19334 return 0;
19335}
19336_ACEOF
19337for ac_lib in '' dir; do
19338 if test -z "$ac_lib"; then
19339 ac_res="none required"
19340 else
19341 ac_res=-l$ac_lib
19342 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19343 fi
19344 if ac_fn_c_try_link "$LINENO"; then :
19345 ac_cv_search_opendir=$ac_res
19346fi
19347rm -f core conftest.err conftest.$ac_objext \
19348 conftest$ac_exeext
19349 if test "${ac_cv_search_opendir+set}" = set; then :
19350 break
19351fi
19352done
19353if test "${ac_cv_search_opendir+set}" = set; then :
19354
19355else
19356 ac_cv_search_opendir=no
19357fi
19358rm conftest.$ac_ext
19359LIBS=$ac_func_search_save_LIBS
19360fi
19361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19362$as_echo "$ac_cv_search_opendir" >&6; }
19363ac_res=$ac_cv_search_opendir
19364if test "$ac_res" != no; then :
19365 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19366
19367fi
19368
19369else
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19371$as_echo_n "checking for library containing opendir... " >&6; }
19372if test "${ac_cv_search_opendir+set}" = set; then :
19373 $as_echo_n "(cached) " >&6
19374else
19375 ac_func_search_save_LIBS=$LIBS
19376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19377/* end confdefs.h. */
19378
19379/* Override any GCC internal prototype to avoid an error.
19380 Use char because int might match the return type of a GCC
19381 builtin and then its argument prototype would still apply. */
19382#ifdef __cplusplus
19383extern "C"
19384#endif
19385char opendir ();
19386int
19387main ()
19388{
19389return opendir ();
19390 ;
19391 return 0;
19392}
19393_ACEOF
19394for ac_lib in '' x; do
19395 if test -z "$ac_lib"; then
19396 ac_res="none required"
19397 else
19398 ac_res=-l$ac_lib
19399 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19400 fi
19401 if ac_fn_c_try_link "$LINENO"; then :
19402 ac_cv_search_opendir=$ac_res
19403fi
19404rm -f core conftest.err conftest.$ac_objext \
19405 conftest$ac_exeext
19406 if test "${ac_cv_search_opendir+set}" = set; then :
19407 break
19408fi
19409done
19410if test "${ac_cv_search_opendir+set}" = set; then :
19411
19412else
19413 ac_cv_search_opendir=no
19414fi
19415rm conftest.$ac_ext
19416LIBS=$ac_func_search_save_LIBS
19417fi
19418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19419$as_echo "$ac_cv_search_opendir" >&6; }
19420ac_res=$ac_cv_search_opendir
19421if test "$ac_res" != no; then :
19422 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19423
19424fi
19425
19426fi
19427
19428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19429$as_echo_n "checking for ANSI C header files... " >&6; }
19430if test "${ac_cv_header_stdc+set}" = set; then :
19431 $as_echo_n "(cached) " >&6
19432else
19433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19434/* end confdefs.h. */
19435#include <stdlib.h>
19436#include <stdarg.h>
19437#include <string.h>
19438#include <float.h>
19439
19440int
19441main ()
19442{
19443
19444 ;
19445 return 0;
19446}
19447_ACEOF
19448if ac_fn_c_try_compile "$LINENO"; then :
19449 ac_cv_header_stdc=yes
19450else
19451 ac_cv_header_stdc=no
19452fi
19453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19454
19455if test $ac_cv_header_stdc = yes; then
19456 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19458/* end confdefs.h. */
19459#include <string.h>
19460
19461_ACEOF
19462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19463 $EGREP "memchr" >/dev/null 2>&1; then :
19464
19465else
19466 ac_cv_header_stdc=no
19467fi
19468rm -f conftest*
19469
19470fi
19471
19472if test $ac_cv_header_stdc = yes; then
19473 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19475/* end confdefs.h. */
19476#include <stdlib.h>
19477
19478_ACEOF
19479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19480 $EGREP "free" >/dev/null 2>&1; then :
19481
19482else
19483 ac_cv_header_stdc=no
19484fi
19485rm -f conftest*
19486
19487fi
19488
19489if test $ac_cv_header_stdc = yes; then
19490 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19491 if test "$cross_compiling" = yes; then :
19492 :
19493else
19494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19495/* end confdefs.h. */
19496#include <ctype.h>
19497#include <stdlib.h>
19498#if ((' ' & 0x0FF) == 0x020)
19499# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19500# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19501#else
19502# define ISLOWER(c) \
19503 (('a' <= (c) && (c) <= 'i') \
19504 || ('j' <= (c) && (c) <= 'r') \
19505 || ('s' <= (c) && (c) <= 'z'))
19506# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19507#endif
19508
19509#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19510int
19511main ()
19512{
19513 int i;
19514 for (i = 0; i < 256; i++)
19515 if (XOR (islower (i), ISLOWER (i))
19516 || toupper (i) != TOUPPER (i))
19517 return 2;
19518 return 0;
19519}
19520_ACEOF
19521if ac_fn_c_try_run "$LINENO"; then :
19522
19523else
19524 ac_cv_header_stdc=no
19525fi
19526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19527 conftest.$ac_objext conftest.beam conftest.$ac_ext
19528fi
19529
19530fi
19531fi
19532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19533$as_echo "$ac_cv_header_stdc" >&6; }
19534if test $ac_cv_header_stdc = yes; then
19535
19536$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
19537
19538fi
19539
19540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
19541$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
19542if test "${ac_cv_header_sys_wait_h+set}" = set; then :
19543 $as_echo_n "(cached) " >&6
19544else
19545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19546/* end confdefs.h. */
19547#include <sys/types.h>
19548#include <sys/wait.h>
19549#ifndef WEXITSTATUS
19550# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
19551#endif
19552#ifndef WIFEXITED
19553# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19554#endif
19555
19556int
19557main ()
19558{
19559 int s;
19560 wait (&s);
19561 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19562 ;
19563 return 0;
19564}
19565_ACEOF
19566if ac_fn_c_try_compile "$LINENO"; then :
19567 ac_cv_header_sys_wait_h=yes
19568else
19569 ac_cv_header_sys_wait_h=no
19570fi
19571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19572fi
19573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
19574$as_echo "$ac_cv_header_sys_wait_h" >&6; }
19575if test $ac_cv_header_sys_wait_h = yes; then
19576
19577$as_echo "@%:@define HAVE_SYS_WAIT_H 1" >>confdefs.h
19578
19579fi
19580
19581for ac_header in arpa/inet.h fcntl.h inttypes.h malloc.h netdb.h netinet/in.h stdint.h stdlib.h string.h strings.h sys/ioctl.h sys/socket.h sys/time.h syslog.h unistd.h
19582do :
19583 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19584ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19585if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19586 cat >>confdefs.h <<_ACEOF
19587@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19588_ACEOF
19589
19590fi
19591
19592done
19593
19594
19595
19596# Checks for typedefs, structures, and compiler characteristics.
19597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19598$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19599if test "${ac_cv_header_stdbool_h+set}" = set; then :
19600 $as_echo_n "(cached) " >&6
19601else
19602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19603/* end confdefs.h. */
19604
19605#include <stdbool.h>
19606#ifndef bool
19607 "error: bool is not defined"
19608#endif
19609#ifndef false
19610 "error: false is not defined"
19611#endif
19612#if false
19613 "error: false is not 0"
19614#endif
19615#ifndef true
19616 "error: true is not defined"
19617#endif
19618#if true != 1
19619 "error: true is not 1"
19620#endif
19621#ifndef __bool_true_false_are_defined
19622 "error: __bool_true_false_are_defined is not defined"
19623#endif
19624
19625 struct s { _Bool s: 1; _Bool t; } s;
19626
19627 char a[true == 1 ? 1 : -1];
19628 char b[false == 0 ? 1 : -1];
19629 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19630 char d[(bool) 0.5 == true ? 1 : -1];
19631 bool e = &s;
19632 char f[(_Bool) 0.0 == false ? 1 : -1];
19633 char g[true];
19634 char h[sizeof (_Bool)];
19635 char i[sizeof s.t];
19636 enum { j = false, k = true, l = false * true, m = true * 256 };
19637 /* The following fails for
19638 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19639 _Bool n[m];
19640 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19641 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19642# if defined __xlc__ || defined __GNUC__
19643 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
19644 reported by James Lemley on 2005-10-05; see
19645 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
19646 This test is not quite right, since xlc is allowed to
19647 reject this program, as the initializer for xlcbug is
19648 not one of the forms that C requires support for.
19649 However, doing the test right would require a runtime
19650 test, and that would make cross-compilation harder.
19651 Let us hope that IBM fixes the xlc bug, and also adds
19652 support for this kind of constant expression. In the
19653 meantime, this test will reject xlc, which is OK, since
19654 our stdbool.h substitute should suffice. We also test
19655 this with GCC, where it should work, to detect more
19656 quickly whether someone messes up the test in the
19657 future. */
19658 char digs[] = "0123456789";
19659 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
19660# endif
19661 /* Catch a bug in an HP-UX C compiler. See
19662 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19663 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19664 */
19665 _Bool q = true;
19666 _Bool *pq = &q;
19667
19668int
19669main ()
19670{
19671
19672 *pq |= q;
19673 *pq |= ! q;
19674 /* Refer to every declared value, to avoid compiler optimizations. */
19675 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19676 + !m + !n + !o + !p + !q + !pq);
19677
19678 ;
19679 return 0;
19680}
19681_ACEOF
19682if ac_fn_c_try_compile "$LINENO"; then :
19683 ac_cv_header_stdbool_h=yes
19684else
19685 ac_cv_header_stdbool_h=no
19686fi
19687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19688fi
19689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19690$as_echo "$ac_cv_header_stdbool_h" >&6; }
19691ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19692if test "x$ac_cv_type__Bool" = x""yes; then :
19693
19694cat >>confdefs.h <<_ACEOF
19695@%:@define HAVE__BOOL 1
19696_ACEOF
19697
19698
19699fi
19700
19701if test $ac_cv_header_stdbool_h = yes; then
19702
19703$as_echo "@%:@define HAVE_STDBOOL_H 1" >>confdefs.h
19704
19705fi
19706
19707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19708$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19709if test "${ac_cv_c_const+set}" = set; then :
19710 $as_echo_n "(cached) " >&6
19711else
19712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19713/* end confdefs.h. */
19714
19715int
19716main ()
19717{
19718/* FIXME: Include the comments suggested by Paul. */
19719#ifndef __cplusplus
19720 /* Ultrix mips cc rejects this. */
19721 typedef int charset[2];
19722 const charset cs;
19723 /* SunOS 4.1.1 cc rejects this. */
19724 char const *const *pcpcc;
19725 char **ppc;
19726 /* NEC SVR4.0.2 mips cc rejects this. */
19727 struct point {int x, y;};
19728 static struct point const zero = {0,0};
19729 /* AIX XL C 1.02.0.0 rejects this.
19730 It does not let you subtract one const X* pointer from another in
19731 an arm of an if-expression whose if-part is not a constant
19732 expression */
19733 const char *g = "string";
19734 pcpcc = &g + (g ? g-g : 0);
19735 /* HPUX 7.0 cc rejects these. */
19736 ++pcpcc;
19737 ppc = (char**) pcpcc;
19738 pcpcc = (char const *const *) ppc;
19739 { /* SCO 3.2v4 cc rejects this. */
19740 char *t;
19741 char const *s = 0 ? (char *) 0 : (char const *) 0;
19742
19743 *t++ = 0;
19744 if (s) return 0;
19745 }
19746 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19747 int x[] = {25, 17};
19748 const int *foo = &x[0];
19749 ++foo;
19750 }
19751 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19752 typedef const int *iptr;
19753 iptr p = 0;
19754 ++p;
19755 }
19756 { /* AIX XL C 1.02.0.0 rejects this saying
19757 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19758 struct s { int j; const int *ap[3]; };
19759 struct s *b; b->j = 5;
19760 }
19761 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19762 const int foo = 10;
19763 if (!foo) return 0;
19764 }
19765 return !cs[0] && !zero.x;
19766#endif
19767
19768 ;
19769 return 0;
19770}
19771_ACEOF
19772if ac_fn_c_try_compile "$LINENO"; then :
19773 ac_cv_c_const=yes
19774else
19775 ac_cv_c_const=no
19776fi
19777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19778fi
19779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19780$as_echo "$ac_cv_c_const" >&6; }
19781if test $ac_cv_c_const = no; then
19782
19783$as_echo "@%:@define const /**/" >>confdefs.h
19784
19785fi
19786
19787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
19788$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19789if test "${ac_cv_type_uid_t+set}" = set; then :
19790 $as_echo_n "(cached) " >&6
19791else
19792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19793/* end confdefs.h. */
19794#include <sys/types.h>
19795
19796_ACEOF
19797if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19798 $EGREP "uid_t" >/dev/null 2>&1; then :
19799 ac_cv_type_uid_t=yes
19800else
19801 ac_cv_type_uid_t=no
19802fi
19803rm -f conftest*
19804
19805fi
19806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
19807$as_echo "$ac_cv_type_uid_t" >&6; }
19808if test $ac_cv_type_uid_t = no; then
19809
19810$as_echo "@%:@define uid_t int" >>confdefs.h
19811
19812
19813$as_echo "@%:@define gid_t int" >>confdefs.h
19814
19815fi
19816
19817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19818$as_echo_n "checking for inline... " >&6; }
19819if test "${ac_cv_c_inline+set}" = set; then :
19820 $as_echo_n "(cached) " >&6
19821else
19822 ac_cv_c_inline=no
19823for ac_kw in inline __inline__ __inline; do
19824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19825/* end confdefs.h. */
19826#ifndef __cplusplus
19827typedef int foo_t;
19828static $ac_kw foo_t static_foo () {return 0; }
19829$ac_kw foo_t foo () {return 0; }
19830#endif
19831
19832_ACEOF
19833if ac_fn_c_try_compile "$LINENO"; then :
19834 ac_cv_c_inline=$ac_kw
19835fi
19836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19837 test "$ac_cv_c_inline" != no && break
19838done
19839
19840fi
19841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19842$as_echo "$ac_cv_c_inline" >&6; }
19843
19844case $ac_cv_c_inline in
19845 inline | yes) ;;
19846 *)
19847 case $ac_cv_c_inline in
19848 no) ac_val=;;
19849 *) ac_val=$ac_cv_c_inline;;
19850 esac
19851 cat >>confdefs.h <<_ACEOF
19852#ifndef __cplusplus
19853#define inline $ac_val
19854#endif
19855_ACEOF
19856 ;;
19857esac
19858
19859ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19860if test "x$ac_cv_type_pid_t" = x""yes; then :
19861
19862else
19863
19864cat >>confdefs.h <<_ACEOF
19865@%:@define pid_t int
19866_ACEOF
19867
19868fi
19869
19870ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19871if test "x$ac_cv_type_size_t" = x""yes; then :
19872
19873else
19874
19875cat >>confdefs.h <<_ACEOF
19876@%:@define size_t unsigned int
19877_ACEOF
19878
19879fi
19880
19881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19882$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19883if test "${ac_cv_struct_tm+set}" = set; then :
19884 $as_echo_n "(cached) " >&6
19885else
19886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19887/* end confdefs.h. */
19888#include <sys/types.h>
19889#include <time.h>
19890
19891int
19892main ()
19893{
19894struct tm tm;
19895 int *p = &tm.tm_sec;
19896 return !p;
19897 ;
19898 return 0;
19899}
19900_ACEOF
19901if ac_fn_c_try_compile "$LINENO"; then :
19902 ac_cv_struct_tm=time.h
19903else
19904 ac_cv_struct_tm=sys/time.h
19905fi
19906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19907fi
19908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19909$as_echo "$ac_cv_struct_tm" >&6; }
19910if test $ac_cv_struct_tm = sys/time.h; then
19911
19912$as_echo "@%:@define TM_IN_SYS_TIME 1" >>confdefs.h
19913
19914fi
19915
19916
19917# Checks for library functions.
19918# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19919# for constant arguments. Useless!
19920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19921$as_echo_n "checking for working alloca.h... " >&6; }
19922if test "${ac_cv_working_alloca_h+set}" = set; then :
19923 $as_echo_n "(cached) " >&6
19924else
19925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19926/* end confdefs.h. */
19927@%:@include <alloca.h>
19928int
19929main ()
19930{
19931char *p = (char *) alloca (2 * sizeof (int));
19932 if (p) return 0;
19933 ;
19934 return 0;
19935}
19936_ACEOF
19937if ac_fn_c_try_link "$LINENO"; then :
19938 ac_cv_working_alloca_h=yes
19939else
19940 ac_cv_working_alloca_h=no
19941fi
19942rm -f core conftest.err conftest.$ac_objext \
19943 conftest$ac_exeext conftest.$ac_ext
19944fi
19945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19946$as_echo "$ac_cv_working_alloca_h" >&6; }
19947if test $ac_cv_working_alloca_h = yes; then
19948
19949$as_echo "@%:@define HAVE_ALLOCA_H 1" >>confdefs.h
19950
19951fi
19952
19953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19954$as_echo_n "checking for alloca... " >&6; }
19955if test "${ac_cv_func_alloca_works+set}" = set; then :
19956 $as_echo_n "(cached) " >&6
19957else
19958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19959/* end confdefs.h. */
19960#ifdef __GNUC__
19961# define alloca __builtin_alloca
19962#else
19963# ifdef _MSC_VER
19964# include <malloc.h>
19965# define alloca _alloca
19966# else
19967# ifdef HAVE_ALLOCA_H
19968# include <alloca.h>
19969# else
19970# ifdef _AIX
19971 #pragma alloca
19972# else
19973# ifndef alloca /* predefined by HP cc +Olibcalls */
19974char *alloca ();
19975# endif
19976# endif
19977# endif
19978# endif
19979#endif
19980
19981int
19982main ()
19983{
19984char *p = (char *) alloca (1);
19985 if (p) return 0;
19986 ;
19987 return 0;
19988}
19989_ACEOF
19990if ac_fn_c_try_link "$LINENO"; then :
19991 ac_cv_func_alloca_works=yes
19992else
19993 ac_cv_func_alloca_works=no
19994fi
19995rm -f core conftest.err conftest.$ac_objext \
19996 conftest$ac_exeext conftest.$ac_ext
19997fi
19998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19999$as_echo "$ac_cv_func_alloca_works" >&6; }
20000
20001if test $ac_cv_func_alloca_works = yes; then
20002
20003$as_echo "@%:@define HAVE_ALLOCA 1" >>confdefs.h
20004
20005else
20006 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20007# that cause trouble. Some versions do not even contain alloca or
20008# contain a buggy version. If you still want to use their alloca,
20009# use ar to extract alloca.o from them instead of compiling alloca.c.
20010
20011ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20012
20013$as_echo "@%:@define C_ALLOCA 1" >>confdefs.h
20014
20015
20016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
20017$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
20018if test "${ac_cv_os_cray+set}" = set; then :
20019 $as_echo_n "(cached) " >&6
20020else
20021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20022/* end confdefs.h. */
20023#if defined CRAY && ! defined CRAY2
20024webecray
20025#else
20026wenotbecray
20027#endif
20028
20029_ACEOF
20030if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20031 $EGREP "webecray" >/dev/null 2>&1; then :
20032 ac_cv_os_cray=yes
20033else
20034 ac_cv_os_cray=no
20035fi
20036rm -f conftest*
20037
20038fi
20039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
20040$as_echo "$ac_cv_os_cray" >&6; }
20041if test $ac_cv_os_cray = yes; then
20042 for ac_func in _getb67 GETB67 getb67; do
20043 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20044ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20045if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20046
20047cat >>confdefs.h <<_ACEOF
20048@%:@define CRAY_STACKSEG_END $ac_func
20049_ACEOF
20050
20051 break
20052fi
20053
20054 done
20055fi
20056
20057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
20058$as_echo_n "checking stack direction for C alloca... " >&6; }
20059if test "${ac_cv_c_stack_direction+set}" = set; then :
20060 $as_echo_n "(cached) " >&6
20061else
20062 if test "$cross_compiling" = yes; then :
20063 ac_cv_c_stack_direction=0
20064else
20065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20066/* end confdefs.h. */
20067$ac_includes_default
20068int
20069find_stack_direction ()
20070{
20071 static char *addr = 0;
20072 auto char dummy;
20073 if (addr == 0)
20074 {
20075 addr = &dummy;
20076 return find_stack_direction ();
20077 }
20078 else
20079 return (&dummy > addr) ? 1 : -1;
20080}
20081
20082int
20083main ()
20084{
20085 return find_stack_direction () < 0;
20086}
20087_ACEOF
20088if ac_fn_c_try_run "$LINENO"; then :
20089 ac_cv_c_stack_direction=1
20090else
20091 ac_cv_c_stack_direction=-1
20092fi
20093rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20094 conftest.$ac_objext conftest.beam conftest.$ac_ext
20095fi
20096
20097fi
20098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
20099$as_echo "$ac_cv_c_stack_direction" >&6; }
20100cat >>confdefs.h <<_ACEOF
20101@%:@define STACK_DIRECTION $ac_cv_c_stack_direction
20102_ACEOF
20103
20104
20105fi
20106
20107for ac_header in unistd.h
20108do :
20109 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
20110if test "x$ac_cv_header_unistd_h" = x""yes; then :
20111 cat >>confdefs.h <<_ACEOF
20112@%:@define HAVE_UNISTD_H 1
20113_ACEOF
20114
20115fi
20116
20117done
20118
20119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
20120$as_echo_n "checking for working chown... " >&6; }
20121if test "${ac_cv_func_chown_works+set}" = set; then :
20122 $as_echo_n "(cached) " >&6
20123else
20124 if test "$cross_compiling" = yes; then :
20125 ac_cv_func_chown_works=no
20126else
20127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20128/* end confdefs.h. */
20129$ac_includes_default
20130#include <fcntl.h>
20131
20132int
20133main ()
20134{
20135 char *f = "conftest.chown";
20136 struct stat before, after;
20137
20138 if (creat (f, 0600) < 0)
20139 return 1;
20140 if (stat (f, &before) < 0)
20141 return 1;
20142 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
20143 return 1;
20144 if (stat (f, &after) < 0)
20145 return 1;
20146 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
20147
20148 ;
20149 return 0;
20150}
20151_ACEOF
20152if ac_fn_c_try_run "$LINENO"; then :
20153 ac_cv_func_chown_works=yes
20154else
20155 ac_cv_func_chown_works=no
20156fi
20157rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20158 conftest.$ac_objext conftest.beam conftest.$ac_ext
20159fi
20160
20161rm -f conftest.chown
20162
20163fi
20164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
20165$as_echo "$ac_cv_func_chown_works" >&6; }
20166if test $ac_cv_func_chown_works = yes; then
20167
20168$as_echo "@%:@define HAVE_CHOWN 1" >>confdefs.h
20169
20170fi
20171
20172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
20173$as_echo_n "checking whether closedir returns void... " >&6; }
20174if test "${ac_cv_func_closedir_void+set}" = set; then :
20175 $as_echo_n "(cached) " >&6
20176else
20177 if test "$cross_compiling" = yes; then :
20178 ac_cv_func_closedir_void=yes
20179else
20180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20181/* end confdefs.h. */
20182$ac_includes_default
20183#include <$ac_header_dirent>
20184#ifndef __cplusplus
20185int closedir ();
20186#endif
20187
20188int
20189main ()
20190{
20191return closedir (opendir (".")) != 0;
20192 ;
20193 return 0;
20194}
20195_ACEOF
20196if ac_fn_c_try_run "$LINENO"; then :
20197 ac_cv_func_closedir_void=no
20198else
20199 ac_cv_func_closedir_void=yes
20200fi
20201rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20202 conftest.$ac_objext conftest.beam conftest.$ac_ext
20203fi
20204
20205fi
20206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
20207$as_echo "$ac_cv_func_closedir_void" >&6; }
20208if test $ac_cv_func_closedir_void = yes; then
20209
20210$as_echo "@%:@define CLOSEDIR_VOID 1" >>confdefs.h
20211
20212fi
20213
20214for ac_header in vfork.h
20215do :
20216 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
20217if test "x$ac_cv_header_vfork_h" = x""yes; then :
20218 cat >>confdefs.h <<_ACEOF
20219@%:@define HAVE_VFORK_H 1
20220_ACEOF
20221
20222fi
20223
20224done
20225
20226for ac_func in fork vfork
20227do :
20228 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20229ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20230if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20231 cat >>confdefs.h <<_ACEOF
20232@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20233_ACEOF
20234
20235fi
20236done
20237
20238if test "x$ac_cv_func_fork" = xyes; then
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
20240$as_echo_n "checking for working fork... " >&6; }
20241if test "${ac_cv_func_fork_works+set}" = set; then :
20242 $as_echo_n "(cached) " >&6
20243else
20244 if test "$cross_compiling" = yes; then :
20245 ac_cv_func_fork_works=cross
20246else
20247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20248/* end confdefs.h. */
20249$ac_includes_default
20250int
20251main ()
20252{
20253
20254 /* By Ruediger Kuhlmann. */
20255 return fork () < 0;
20256
20257 ;
20258 return 0;
20259}
20260_ACEOF
20261if ac_fn_c_try_run "$LINENO"; then :
20262 ac_cv_func_fork_works=yes
20263else
20264 ac_cv_func_fork_works=no
20265fi
20266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20267 conftest.$ac_objext conftest.beam conftest.$ac_ext
20268fi
20269
20270fi
20271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
20272$as_echo "$ac_cv_func_fork_works" >&6; }
20273
20274else
20275 ac_cv_func_fork_works=$ac_cv_func_fork
20276fi
20277if test "x$ac_cv_func_fork_works" = xcross; then
20278 case $host in
20279 *-*-amigaos* | *-*-msdosdjgpp*)
20280 # Override, as these systems have only a dummy fork() stub
20281 ac_cv_func_fork_works=no
20282 ;;
20283 *)
20284 ac_cv_func_fork_works=yes
20285 ;;
20286 esac
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20288$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20289fi
20290ac_cv_func_vfork_works=$ac_cv_func_vfork
20291if test "x$ac_cv_func_vfork" = xyes; then
20292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
20293$as_echo_n "checking for working vfork... " >&6; }
20294if test "${ac_cv_func_vfork_works+set}" = set; then :
20295 $as_echo_n "(cached) " >&6
20296else
20297 if test "$cross_compiling" = yes; then :
20298 ac_cv_func_vfork_works=cross
20299else
20300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20301/* end confdefs.h. */
20302/* Thanks to Paul Eggert for this test. */
20303$ac_includes_default
20304#include <sys/wait.h>
20305#ifdef HAVE_VFORK_H
20306# include <vfork.h>
20307#endif
20308/* On some sparc systems, changes by the child to local and incoming
20309 argument registers are propagated back to the parent. The compiler
20310 is told about this with #include <vfork.h>, but some compilers
20311 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20312 static variable whose address is put into a register that is
20313 clobbered by the vfork. */
20314static void
20315#ifdef __cplusplus
20316sparc_address_test (int arg)
20317# else
20318sparc_address_test (arg) int arg;
20319#endif
20320{
20321 static pid_t child;
20322 if (!child) {
20323 child = vfork ();
20324 if (child < 0) {
20325 perror ("vfork");
20326 _exit(2);
20327 }
20328 if (!child) {
20329 arg = getpid();
20330 write(-1, "", 0);
20331 _exit (arg);
20332 }
20333 }
20334}
20335
20336int
20337main ()
20338{
20339 pid_t parent = getpid ();
20340 pid_t child;
20341
20342 sparc_address_test (0);
20343
20344 child = vfork ();
20345
20346 if (child == 0) {
20347 /* Here is another test for sparc vfork register problems. This
20348 test uses lots of local variables, at least as many local
20349 variables as main has allocated so far including compiler
20350 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20351 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20352 reuse the register of parent for one of the local variables,
20353 since it will think that parent can't possibly be used any more
20354 in this routine. Assigning to the local variable will thus
20355 munge parent in the parent process. */
20356 pid_t
20357 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20358 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20359 /* Convince the compiler that p..p7 are live; otherwise, it might
20360 use the same hardware register for all 8 local variables. */
20361 if (p != p1 || p != p2 || p != p3 || p != p4
20362 || p != p5 || p != p6 || p != p7)
20363 _exit(1);
20364
20365 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20366 from child file descriptors. If the child closes a descriptor
20367 before it execs or exits, this munges the parent's descriptor
20368 as well. Test for this by closing stdout in the child. */
20369 _exit(close(fileno(stdout)) != 0);
20370 } else {
20371 int status;
20372 struct stat st;
20373
20374 while (wait(&status) != child)
20375 ;
20376 return (
20377 /* Was there some problem with vforking? */
20378 child < 0
20379
20380 /* Did the child fail? (This shouldn't happen.) */
20381 || status
20382
20383 /* Did the vfork/compiler bug occur? */
20384 || parent != getpid()
20385
20386 /* Did the file descriptor bug occur? */
20387 || fstat(fileno(stdout), &st) != 0
20388 );
20389 }
20390}
20391_ACEOF
20392if ac_fn_c_try_run "$LINENO"; then :
20393 ac_cv_func_vfork_works=yes
20394else
20395 ac_cv_func_vfork_works=no
20396fi
20397rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20398 conftest.$ac_objext conftest.beam conftest.$ac_ext
20399fi
20400
20401fi
20402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
20403$as_echo "$ac_cv_func_vfork_works" >&6; }
20404
20405fi;
20406if test "x$ac_cv_func_fork_works" = xcross; then
20407 ac_cv_func_vfork_works=$ac_cv_func_vfork
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20409$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20410fi
20411
20412if test "x$ac_cv_func_vfork_works" = xyes; then
20413
20414$as_echo "@%:@define HAVE_WORKING_VFORK 1" >>confdefs.h
20415
20416else
20417
20418$as_echo "@%:@define vfork fork" >>confdefs.h
20419
20420fi
20421if test "x$ac_cv_func_fork_works" = xyes; then
20422
20423$as_echo "@%:@define HAVE_WORKING_FORK 1" >>confdefs.h
20424
20425fi
20426
20427if test $ac_cv_c_compiler_gnu = yes; then
20428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
20429$as_echo_n "checking whether $CC needs -traditional... " >&6; }
20430if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
20431 $as_echo_n "(cached) " >&6
20432else
20433 ac_pattern="Autoconf.*'x'"
20434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20435/* end confdefs.h. */
20436#include <sgtty.h>
20437Autoconf TIOCGETP
20438_ACEOF
20439if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20440 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20441 ac_cv_prog_gcc_traditional=yes
20442else
20443 ac_cv_prog_gcc_traditional=no
20444fi
20445rm -f conftest*
20446
20447
20448 if test $ac_cv_prog_gcc_traditional = no; then
20449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20450/* end confdefs.h. */
20451#include <termio.h>
20452Autoconf TCGETA
20453_ACEOF
20454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20455 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20456 ac_cv_prog_gcc_traditional=yes
20457fi
20458rm -f conftest*
20459
20460 fi
20461fi
20462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
20463$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20464 if test $ac_cv_prog_gcc_traditional = yes; then
20465 CC="$CC -traditional"
20466 fi
20467fi
20468
20469#comment it to prevent autoconf #define HAVE_MALLOC to 0 and #define malloc to rpl_malloc
20470#AC_FUNC_MALLOC
20471#AC_FUNC_MKTIME
20472#AC_FUNC_REALLOC
20473for ac_header in sys/select.h sys/socket.h
20474do :
20475 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20476ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20477if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20478 cat >>confdefs.h <<_ACEOF
20479@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20480_ACEOF
20481
20482fi
20483
20484done
20485
20486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
20487$as_echo_n "checking types of arguments for select... " >&6; }
20488if test "${ac_cv_func_select_args+set}" = set; then :
20489 $as_echo_n "(cached) " >&6
20490else
20491 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
20492 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
20493 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
20494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20495/* end confdefs.h. */
20496$ac_includes_default
20497#ifdef HAVE_SYS_SELECT_H
20498# include <sys/select.h>
20499#endif
20500#ifdef HAVE_SYS_SOCKET_H
20501# include <sys/socket.h>
20502#endif
20503
20504int
20505main ()
20506{
20507extern int select ($ac_arg1,
20508 $ac_arg234, $ac_arg234, $ac_arg234,
20509 $ac_arg5);
20510 ;
20511 return 0;
20512}
20513_ACEOF
20514if ac_fn_c_try_compile "$LINENO"; then :
20515 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
20516fi
20517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20518 done
20519 done
20520done
20521# Provide a safe default value.
20522: ${ac_cv_func_select_args='int,int *,struct timeval *'}
20523
20524fi
20525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
20526$as_echo "$ac_cv_func_select_args" >&6; }
20527ac_save_IFS=$IFS; IFS=','
20528set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
20529IFS=$ac_save_IFS
20530shift
20531
20532cat >>confdefs.h <<_ACEOF
20533@%:@define SELECT_TYPE_ARG1 $1
20534_ACEOF
20535
20536
20537cat >>confdefs.h <<_ACEOF
20538@%:@define SELECT_TYPE_ARG234 ($2)
20539_ACEOF
20540
20541
20542cat >>confdefs.h <<_ACEOF
20543@%:@define SELECT_TYPE_ARG5 ($3)
20544_ACEOF
20545
20546rm -f conftest*
20547
20548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
20549$as_echo_n "checking return type of signal handlers... " >&6; }
20550if test "${ac_cv_type_signal+set}" = set; then :
20551 $as_echo_n "(cached) " >&6
20552else
20553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20554/* end confdefs.h. */
20555#include <sys/types.h>
20556#include <signal.h>
20557
20558int
20559main ()
20560{
20561return *(signal (0, 0)) (0) == 1;
20562 ;
20563 return 0;
20564}
20565_ACEOF
20566if ac_fn_c_try_compile "$LINENO"; then :
20567 ac_cv_type_signal=int
20568else
20569 ac_cv_type_signal=void
20570fi
20571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20572fi
20573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
20574$as_echo "$ac_cv_type_signal" >&6; }
20575
20576cat >>confdefs.h <<_ACEOF
20577@%:@define RETSIGTYPE $ac_cv_type_signal
20578_ACEOF
20579
20580
20581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
20582$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
20583if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
20584 $as_echo_n "(cached) " >&6
20585else
20586 rm -f conftest.sym conftest.file
20587echo >conftest.file
20588if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
20589 if test "$cross_compiling" = yes; then :
20590 ac_cv_func_lstat_dereferences_slashed_symlink=no
20591else
20592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20593/* end confdefs.h. */
20594$ac_includes_default
20595int
20596main ()
20597{
20598struct stat sbuf;
20599 /* Linux will dereference the symlink and fail, as required by POSIX.
20600 That is better in the sense that it means we will not
20601 have to compile and use the lstat wrapper. */
20602 return lstat ("conftest.sym/", &sbuf) == 0;
20603 ;
20604 return 0;
20605}
20606_ACEOF
20607if ac_fn_c_try_run "$LINENO"; then :
20608 ac_cv_func_lstat_dereferences_slashed_symlink=yes
20609else
20610 ac_cv_func_lstat_dereferences_slashed_symlink=no
20611fi
20612rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20613 conftest.$ac_objext conftest.beam conftest.$ac_ext
20614fi
20615
20616else
20617 # If the `ln -s' command failed, then we probably don't even
20618 # have an lstat function.
20619 ac_cv_func_lstat_dereferences_slashed_symlink=no
20620fi
20621rm -f conftest.sym conftest.file
20622
20623fi
20624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
20625$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
20626
20627test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
20628
20629cat >>confdefs.h <<_ACEOF
20630@%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
20631_ACEOF
20632
20633
20634if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
20635 case " $LIB@&t@OBJS " in
20636 *" lstat.$ac_objext "* ) ;;
20637 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
20638 ;;
20639esac
20640
20641fi
20642
20643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
20644$as_echo_n "checking whether stat accepts an empty string... " >&6; }
20645if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
20646 $as_echo_n "(cached) " >&6
20647else
20648 if test "$cross_compiling" = yes; then :
20649 ac_cv_func_stat_empty_string_bug=yes
20650else
20651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20652/* end confdefs.h. */
20653$ac_includes_default
20654int
20655main ()
20656{
20657struct stat sbuf;
20658 return stat ("", &sbuf) == 0;
20659 ;
20660 return 0;
20661}
20662_ACEOF
20663if ac_fn_c_try_run "$LINENO"; then :
20664 ac_cv_func_stat_empty_string_bug=no
20665else
20666 ac_cv_func_stat_empty_string_bug=yes
20667fi
20668rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20669 conftest.$ac_objext conftest.beam conftest.$ac_ext
20670fi
20671
20672fi
20673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
20674$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
20675if test $ac_cv_func_stat_empty_string_bug = yes; then
20676 case " $LIB@&t@OBJS " in
20677 *" stat.$ac_objext "* ) ;;
20678 *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
20679 ;;
20680esac
20681
20682
20683cat >>confdefs.h <<_ACEOF
20684@%:@define HAVE_STAT_EMPTY_STRING_BUG 1
20685_ACEOF
20686
20687fi
20688
20689for ac_func in strftime
20690do :
20691 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
20692if test "x$ac_cv_func_strftime" = x""yes; then :
20693 cat >>confdefs.h <<_ACEOF
20694@%:@define HAVE_STRFTIME 1
20695_ACEOF
20696
20697else
20698 # strftime is in -lintl on SCO UNIX.
20699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
20700$as_echo_n "checking for strftime in -lintl... " >&6; }
20701if test "${ac_cv_lib_intl_strftime+set}" = set; then :
20702 $as_echo_n "(cached) " >&6
20703else
20704 ac_check_lib_save_LIBS=$LIBS
20705LIBS="-lintl $LIBS"
20706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20707/* end confdefs.h. */
20708
20709/* Override any GCC internal prototype to avoid an error.
20710 Use char because int might match the return type of a GCC
20711 builtin and then its argument prototype would still apply. */
20712#ifdef __cplusplus
20713extern "C"
20714#endif
20715char strftime ();
20716int
20717main ()
20718{
20719return strftime ();
20720 ;
20721 return 0;
20722}
20723_ACEOF
20724if ac_fn_c_try_link "$LINENO"; then :
20725 ac_cv_lib_intl_strftime=yes
20726else
20727 ac_cv_lib_intl_strftime=no
20728fi
20729rm -f core conftest.err conftest.$ac_objext \
20730 conftest$ac_exeext conftest.$ac_ext
20731LIBS=$ac_check_lib_save_LIBS
20732fi
20733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
20734$as_echo "$ac_cv_lib_intl_strftime" >&6; }
20735if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
20736 $as_echo "@%:@define HAVE_STRFTIME 1" >>confdefs.h
20737
20738LIBS="-lintl $LIBS"
20739fi
20740
20741fi
20742done
20743
20744#check machine endian
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
20746$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
20747if test "${ac_cv_c_bigendian+set}" = set; then :
20748 $as_echo_n "(cached) " >&6
20749else
20750 ac_cv_c_bigendian=unknown
20751 # See if we're dealing with a universal compiler.
20752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20753/* end confdefs.h. */
20754#ifndef __APPLE_CC__
20755 not a universal capable compiler
20756 #endif
20757 typedef int dummy;
20758
20759_ACEOF
20760if ac_fn_c_try_compile "$LINENO"; then :
20761
20762 # Check for potential -arch flags. It is not universal unless
20763 # there are at least two -arch flags with different values.
20764 ac_arch=
20765 ac_prev=
20766 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20767 if test -n "$ac_prev"; then
20768 case $ac_word in
20769 i?86 | x86_64 | ppc | ppc64)
20770 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20771 ac_arch=$ac_word
20772 else
20773 ac_cv_c_bigendian=universal
20774 break
20775 fi
20776 ;;
20777 esac
20778 ac_prev=
20779 elif test "x$ac_word" = "x-arch"; then
20780 ac_prev=arch
20781 fi
20782 done
20783fi
20784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20785 if test $ac_cv_c_bigendian = unknown; then
20786 # See if sys/param.h defines the BYTE_ORDER macro.
20787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20788/* end confdefs.h. */
20789#include <sys/types.h>
20790 #include <sys/param.h>
20791
20792int
20793main ()
20794{
20795#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20796 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20797 && LITTLE_ENDIAN)
20798 bogus endian macros
20799 #endif
20800
20801 ;
20802 return 0;
20803}
20804_ACEOF
20805if ac_fn_c_try_compile "$LINENO"; then :
20806 # It does; now see whether it defined to BIG_ENDIAN or not.
20807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20808/* end confdefs.h. */
20809#include <sys/types.h>
20810 #include <sys/param.h>
20811
20812int
20813main ()
20814{
20815#if BYTE_ORDER != BIG_ENDIAN
20816 not big endian
20817 #endif
20818
20819 ;
20820 return 0;
20821}
20822_ACEOF
20823if ac_fn_c_try_compile "$LINENO"; then :
20824 ac_cv_c_bigendian=yes
20825else
20826 ac_cv_c_bigendian=no
20827fi
20828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20829fi
20830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20831 fi
20832 if test $ac_cv_c_bigendian = unknown; then
20833 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20835/* end confdefs.h. */
20836#include <limits.h>
20837
20838int
20839main ()
20840{
20841#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20842 bogus endian macros
20843 #endif
20844
20845 ;
20846 return 0;
20847}
20848_ACEOF
20849if ac_fn_c_try_compile "$LINENO"; then :
20850 # It does; now see whether it defined to _BIG_ENDIAN or not.
20851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20852/* end confdefs.h. */
20853#include <limits.h>
20854
20855int
20856main ()
20857{
20858#ifndef _BIG_ENDIAN
20859 not big endian
20860 #endif
20861
20862 ;
20863 return 0;
20864}
20865_ACEOF
20866if ac_fn_c_try_compile "$LINENO"; then :
20867 ac_cv_c_bigendian=yes
20868else
20869 ac_cv_c_bigendian=no
20870fi
20871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20872fi
20873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20874 fi
20875 if test $ac_cv_c_bigendian = unknown; then
20876 # Compile a test program.
20877 if test "$cross_compiling" = yes; then :
20878 # Try to guess by grepping values from an object file.
20879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20880/* end confdefs.h. */
20881short int ascii_mm[] =
20882 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20883 short int ascii_ii[] =
20884 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20885 int use_ascii (int i) {
20886 return ascii_mm[i] + ascii_ii[i];
20887 }
20888 short int ebcdic_ii[] =
20889 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20890 short int ebcdic_mm[] =
20891 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20892 int use_ebcdic (int i) {
20893 return ebcdic_mm[i] + ebcdic_ii[i];
20894 }
20895 extern int foo;
20896
20897int
20898main ()
20899{
20900return use_ascii (foo) == use_ebcdic (foo);
20901 ;
20902 return 0;
20903}
20904_ACEOF
20905if ac_fn_c_try_compile "$LINENO"; then :
20906 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20907 ac_cv_c_bigendian=yes
20908 fi
20909 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20910 if test "$ac_cv_c_bigendian" = unknown; then
20911 ac_cv_c_bigendian=no
20912 else
20913 # finding both strings is unlikely to happen, but who knows?
20914 ac_cv_c_bigendian=unknown
20915 fi
20916 fi
20917fi
20918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20919else
20920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20921/* end confdefs.h. */
20922$ac_includes_default
20923int
20924main ()
20925{
20926
20927 /* Are we little or big endian? From Harbison&Steele. */
20928 union
20929 {
20930 long int l;
20931 char c[sizeof (long int)];
20932 } u;
20933 u.l = 1;
20934 return u.c[sizeof (long int) - 1] == 1;
20935
20936 ;
20937 return 0;
20938}
20939_ACEOF
20940if ac_fn_c_try_run "$LINENO"; then :
20941 ac_cv_c_bigendian=no
20942else
20943 ac_cv_c_bigendian=yes
20944fi
20945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20946 conftest.$ac_objext conftest.beam conftest.$ac_ext
20947fi
20948
20949 fi
20950fi
20951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
20952$as_echo "$ac_cv_c_bigendian" >&6; }
20953 case $ac_cv_c_bigendian in #(
20954 yes)
20955 $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
20956;; #(
20957 no)
20958 ;; #(
20959 universal)
20960
20961$as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20962
20963 ;; #(
20964 *)
20965 as_fn_error $? "unknown endianness
20966 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
20967 esac
20968
20969
20970# The cast to long int works around a bug in the HP C Compiler
20971# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20972# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20973# This bug is HP SR number 8606223364.
20974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
20975$as_echo_n "checking size of int... " >&6; }
20976if test "${ac_cv_sizeof_int+set}" = set; then :
20977 $as_echo_n "(cached) " >&6
20978else
20979 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
20980
20981else
20982 if test "$ac_cv_type_int" = yes; then
20983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20984$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20985as_fn_error 77 "cannot compute sizeof (int)
20986See \`config.log' for more details" "$LINENO" 5 ; }
20987 else
20988 ac_cv_sizeof_int=0
20989 fi
20990fi
20991
20992fi
20993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
20994$as_echo "$ac_cv_sizeof_int" >&6; }
20995
20996
20997
20998cat >>confdefs.h <<_ACEOF
20999@%:@define SIZEOF_INT $ac_cv_sizeof_int
21000_ACEOF
21001
21002
21003# The cast to long int works around a bug in the HP C Compiler
21004# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21005# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21006# This bug is HP SR number 8606223364.
21007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
21008$as_echo_n "checking size of short... " >&6; }
21009if test "${ac_cv_sizeof_short+set}" = set; then :
21010 $as_echo_n "(cached) " >&6
21011else
21012 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
21013
21014else
21015 if test "$ac_cv_type_short" = yes; then
21016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21017$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21018as_fn_error 77 "cannot compute sizeof (short)
21019See \`config.log' for more details" "$LINENO" 5 ; }
21020 else
21021 ac_cv_sizeof_short=0
21022 fi
21023fi
21024
21025fi
21026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
21027$as_echo "$ac_cv_sizeof_short" >&6; }
21028
21029
21030
21031cat >>confdefs.h <<_ACEOF
21032@%:@define SIZEOF_SHORT $ac_cv_sizeof_short
21033_ACEOF
21034
21035
21036# The cast to long int works around a bug in the HP C Compiler
21037# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21038# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21039# This bug is HP SR number 8606223364.
21040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
21041$as_echo_n "checking size of long... " >&6; }
21042if test "${ac_cv_sizeof_long+set}" = set; then :
21043 $as_echo_n "(cached) " >&6
21044else
21045 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
21046
21047else
21048 if test "$ac_cv_type_long" = yes; then
21049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21051as_fn_error 77 "cannot compute sizeof (long)
21052See \`config.log' for more details" "$LINENO" 5 ; }
21053 else
21054 ac_cv_sizeof_long=0
21055 fi
21056fi
21057
21058fi
21059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
21060$as_echo "$ac_cv_sizeof_long" >&6; }
21061
21062
21063
21064cat >>confdefs.h <<_ACEOF
21065@%:@define SIZEOF_LONG $ac_cv_sizeof_long
21066_ACEOF
21067
21068
21069# The cast to long int works around a bug in the HP C Compiler
21070# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21071# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21072# This bug is HP SR number 8606223364.
21073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
21074$as_echo_n "checking size of float... " >&6; }
21075if test "${ac_cv_sizeof_float+set}" = set; then :
21076 $as_echo_n "(cached) " >&6
21077else
21078 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
21079
21080else
21081 if test "$ac_cv_type_float" = yes; then
21082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21084as_fn_error 77 "cannot compute sizeof (float)
21085See \`config.log' for more details" "$LINENO" 5 ; }
21086 else
21087 ac_cv_sizeof_float=0
21088 fi
21089fi
21090
21091fi
21092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
21093$as_echo "$ac_cv_sizeof_float" >&6; }
21094
21095
21096
21097cat >>confdefs.h <<_ACEOF
21098@%:@define SIZEOF_FLOAT $ac_cv_sizeof_float
21099_ACEOF
21100
21101
21102# The cast to long int works around a bug in the HP C Compiler
21103# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21104# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21105# This bug is HP SR number 8606223364.
21106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
21107$as_echo_n "checking size of double... " >&6; }
21108if test "${ac_cv_sizeof_double+set}" = set; then :
21109 $as_echo_n "(cached) " >&6
21110else
21111 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
21112
21113else
21114 if test "$ac_cv_type_double" = yes; then
21115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21117as_fn_error 77 "cannot compute sizeof (double)
21118See \`config.log' for more details" "$LINENO" 5 ; }
21119 else
21120 ac_cv_sizeof_double=0
21121 fi
21122fi
21123
21124fi
21125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
21126$as_echo "$ac_cv_sizeof_double" >&6; }
21127
21128
21129
21130cat >>confdefs.h <<_ACEOF
21131@%:@define SIZEOF_DOUBLE $ac_cv_sizeof_double
21132_ACEOF
21133
21134
21135
21136ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21137if test "x$ac_cv_type_pid_t" = x""yes; then :
21138
21139else
21140
21141cat >>confdefs.h <<_ACEOF
21142@%:@define pid_t int
21143_ACEOF
21144
21145fi
21146
21147ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21148if test "x$ac_cv_type_size_t" = x""yes; then :
21149
21150else
21151
21152cat >>confdefs.h <<_ACEOF
21153@%:@define size_t unsigned int
21154_ACEOF
21155
21156fi
21157
21158
21159for ac_func in alarm bzero endgrent endpwent getcwd gethostbyname inet_ntoa isascii localtime_r memmove memset mkdir regcomp select socket strcasecmp strchr strcspn strdup strerror strncasecmp strrchr strspn strstr
21160do :
21161 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21162ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21163if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21164 cat >>confdefs.h <<_ACEOF
21165@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21166_ACEOF
21167
21168fi
21169done
21170
21171
21172ac_config_files="$ac_config_files Makefile libpool/src/Makefile libxmlet/src/Makefile libcwmp/src/Makefile cwmpd/src/Makefile tests/src/Makefile"
21173
21174
21175
21176
21177#save user-provided flags
21178save_CXXFLAGS="$CXXFLAGS"
21179save_CFLAGS="-Wall -g"
21180save_LDFALGS="$LDFLAGS"
21181save_CPPFLAGS="-Wall -g"
21182
21183#restore user-provided flags
21184CXXFLAGS="$save_CXXFLAGS"
21185CFLAGS="$save_CFLAGS "
21186#Note that sysconfdir is expaned in Makefile other than here, check generated configure script, u can see
21187#sysconfdir is surrounded by single quotas to prevent expansion.
21188CPPFLAGS="-D_GNU_SOURCE $save_CPPFLAGS"
21189
21190LDFLAGS="$save_LDFALGS"
21191
21192#CPPFLAGS="$CPPFLAGS -DUSE_CWMP_OPENSSL"
21193OPENSSL_DIR=no
21194
21195
21196@%:@ Check whether --with-openssl was given.
21197if test "${with_openssl+set}" = set; then :
21198 withval=$with_openssl; OPENSSL_DIR=$withval
21199else
21200 OPENSSL_DIR=no
21201fi
21202
21203
21204if test x"$OPENSSL_DIR" != "xno"; then
21205 CPPFLAGS="$CPPFLAGS -DUSE_CWMP_OPENSSL -I$OPENSSL_DIR/include"
21206 LDFLAGS="$LDFLAGS -L$OPENSSL_DIR/lib -lssl"
21207fi
21208
21209
21210#LIBS will be appended to gcc command, so it must be cleared to prevent unnecessary linking
21211#LIBS=""
21212
21213
21214
21215
21216#AC_CANONICAL_BUILD
21217#AC_CANONICAL_HOST
21218
21219
21220if test "x$build_cpu" != "x"; then
21221 BUILD_CPU="$build_cpu"
21222
21223 cat >>confdefs.h <<_ACEOF
21224@%:@define BUILD_CPU $build_cpu
21225_ACEOF
21226
21227fi
21228
21229if test "x$build_vendor" != "x"; then
21230 BUILD_VENDOR="$build_vendor"
21231
21232 cat >>confdefs.h <<_ACEOF
21233@%:@define BUILD_VENDOR $build_vendor
21234_ACEOF
21235
21236fi
21237
21238if test "x$build_os" != "x"; then
21239 BUILD_OS="$build_os"
21240
21241 cat >>confdefs.h <<_ACEOF
21242@%:@define BUILD_OS $build_os
21243_ACEOF
21244
21245fi
21246
21247
21248if test "x$host_cpu" != "x"; then
21249 HOST_CPU="$host_cpu"
21250
21251 cat >>confdefs.h <<_ACEOF
21252@%:@define HOST_CPU $host_cpu
21253_ACEOF
21254
21255fi
21256
21257if test "x$host_vendor" != "x"; then
21258 HOST_VENDOR="$host_vendor"
21259
21260 cat >>confdefs.h <<_ACEOF
21261@%:@define HOST_VENDOR $host_vendor
21262_ACEOF
21263
21264fi
21265
21266if test "x$host_os" != "x"; then
21267 HOST_OS="$host_os"
21268
21269 cat >>confdefs.h <<_ACEOF
21270@%:@define HOST_OS $host_os
21271_ACEOF
21272
21273fi
21274
21275 if test "$target" = "mips64-octeon-linux-gnu" ; then
21276 COMPILE_FOR_MIPS_TRUE=
21277 COMPILE_FOR_MIPS_FALSE='#'
21278else
21279 COMPILE_FOR_MIPS_TRUE='#'
21280 COMPILE_FOR_MIPS_FALSE=
21281fi
21282
21283cat >confcache <<\_ACEOF
21284# This file is a shell script that caches the results of configure
21285# tests run on this system so they can be shared between configure
21286# scripts and configure runs, see configure's option --config-cache.
21287# It is not useful on other systems. If it contains results you don't
21288# want to keep, you may remove or edit it.
21289#
21290# config.status only pays attention to the cache file if you give it
21291# the --recheck option to rerun configure.
21292#
21293# `ac_cv_env_foo' variables (set or unset) will be overridden when
21294# loading this file, other *unset* `ac_cv_foo' will be assigned the
21295# following values.
21296
21297_ACEOF
21298
21299# The following way of writing the cache mishandles newlines in values,
21300# but we know of no workaround that is simple, portable, and efficient.
21301# So, we kill variables containing newlines.
21302# Ultrix sh set writes to stderr and can't be redirected directly,
21303# and sets the high bit in the cache file unless we assign to the vars.
21304(
21305 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21306 eval ac_val=\$$ac_var
21307 case $ac_val in #(
21308 *${as_nl}*)
21309 case $ac_var in #(
21310 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21311$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21312 esac
21313 case $ac_var in #(
21314 _ | IFS | as_nl) ;; #(
21315 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21316 *) { eval $ac_var=; unset $ac_var;} ;;
21317 esac ;;
21318 esac
21319 done
21320
21321 (set) 2>&1 |
21322 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21323 *${as_nl}ac_space=\ *)
21324 # `set' does not quote correctly, so add quotes: double-quote
21325 # substitution turns \\\\ into \\, and sed turns \\ into \.
21326 sed -n \
21327 "s/'/'\\\\''/g;
21328 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21329 ;; #(
21330 *)
21331 # `set' quotes correctly as required by POSIX, so do not add quotes.
21332 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21333 ;;
21334 esac |
21335 sort
21336) |
21337 sed '
21338 /^ac_cv_env_/b end
21339 t clear
21340 :clear
21341 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21342 t end
21343 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21344 :end' >>confcache
21345if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21346 if test -w "$cache_file"; then
21347 test "x$cache_file" != "x/dev/null" &&
21348 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21349$as_echo "$as_me: updating cache $cache_file" >&6;}
21350 cat confcache >$cache_file
21351 else
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21353$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21354 fi
21355fi
21356rm -f confcache
21357
21358test "x$prefix" = xNONE && prefix=$ac_default_prefix
21359# Let make expand exec_prefix.
21360test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21361
21362DEFS=-DHAVE_CONFIG_H
21363
21364ac_libobjs=
21365ac_ltlibobjs=
21366U=
21367for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
21368 # 1. Remove the extension, and $U if already installed.
21369 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21370 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21371 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21372 # will be set to the directory where LIBOBJS objects are built.
21373 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21374 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21375done
21376LIB@&t@OBJS=$ac_libobjs
21377
21378LTLIBOBJS=$ac_ltlibobjs
21379
21380
21381 if test -n "$EXEEXT"; then
21382 am__EXEEXT_TRUE=
21383 am__EXEEXT_FALSE='#'
21384else
21385 am__EXEEXT_TRUE='#'
21386 am__EXEEXT_FALSE=
21387fi
21388
21389if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21390 as_fn_error $? "conditional \"AMDEP\" was never defined.
21391Usually this means the macro was only invoked conditionally." "$LINENO" 5
21392fi
21393if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21394 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21395Usually this means the macro was only invoked conditionally." "$LINENO" 5
21396fi
21397if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21398 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21399Usually this means the macro was only invoked conditionally." "$LINENO" 5
21400fi
21401
21402if test -z "${COMPILE_FOR_MIPS_TRUE}" && test -z "${COMPILE_FOR_MIPS_FALSE}"; then
21403 as_fn_error $? "conditional \"COMPILE_FOR_MIPS\" was never defined.
21404Usually this means the macro was only invoked conditionally." "$LINENO" 5
21405fi
21406
21407: ${CONFIG_STATUS=./config.status}
21408ac_write_fail=0
21409ac_clean_files_save=$ac_clean_files
21410ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21411{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21412$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21413as_write_fail=0
21414cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21415#! $SHELL
21416# Generated by $as_me.
21417# Run this file to recreate the current configuration.
21418# Compiler output produced by configure, useful for debugging
21419# configure, is in config.log if it exists.
21420
21421debug=false
21422ac_cs_recheck=false
21423ac_cs_silent=false
21424
21425SHELL=\${CONFIG_SHELL-$SHELL}
21426export SHELL
21427_ASEOF
21428cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21429## -------------------- ##
21430## M4sh Initialization. ##
21431## -------------------- ##
21432
21433# Be more Bourne compatible
21434DUALCASE=1; export DUALCASE # for MKS sh
21435if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21436 emulate sh
21437 NULLCMD=:
21438 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21439 # is contrary to our usage. Disable this feature.
21440 alias -g '${1+"$@"}'='"$@"'
21441 setopt NO_GLOB_SUBST
21442else
21443 case `(set -o) 2>/dev/null` in @%:@(
21444 *posix*) :
21445 set -o posix ;; @%:@(
21446 *) :
21447 ;;
21448esac
21449fi
21450
21451
21452as_nl='
21453'
21454export as_nl
21455# Printing a long string crashes Solaris 7 /usr/bin/printf.
21456as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21457as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21458as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21459# Prefer a ksh shell builtin over an external printf program on Solaris,
21460# but without wasting forks for bash or zsh.
21461if test -z "$BASH_VERSION$ZSH_VERSION" \
21462 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21463 as_echo='print -r --'
21464 as_echo_n='print -rn --'
21465elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21466 as_echo='printf %s\n'
21467 as_echo_n='printf %s'
21468else
21469 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21470 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21471 as_echo_n='/usr/ucb/echo -n'
21472 else
21473 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21474 as_echo_n_body='eval
21475 arg=$1;
21476 case $arg in @%:@(
21477 *"$as_nl"*)
21478 expr "X$arg" : "X\\(.*\\)$as_nl";
21479 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21480 esac;
21481 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21482 '
21483 export as_echo_n_body
21484 as_echo_n='sh -c $as_echo_n_body as_echo'
21485 fi
21486 export as_echo_body
21487 as_echo='sh -c $as_echo_body as_echo'
21488fi
21489
21490# The user is always right.
21491if test "${PATH_SEPARATOR+set}" != set; then
21492 PATH_SEPARATOR=:
21493 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21494 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21495 PATH_SEPARATOR=';'
21496 }
21497fi
21498
21499
21500# IFS
21501# We need space, tab and new line, in precisely that order. Quoting is
21502# there to prevent editors from complaining about space-tab.
21503# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21504# splitting by setting IFS to empty value.)
21505IFS=" "" $as_nl"
21506
21507# Find who we are. Look in the path if we contain no directory separator.
21508case $0 in @%:@((
21509 *[\\/]* ) as_myself=$0 ;;
21510 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21511for as_dir in $PATH
21512do
21513 IFS=$as_save_IFS
21514 test -z "$as_dir" && as_dir=.
21515 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21516 done
21517IFS=$as_save_IFS
21518
21519 ;;
21520esac
21521# We did not find ourselves, most probably we were run as `sh COMMAND'
21522# in which case we are not to be found in the path.
21523if test "x$as_myself" = x; then
21524 as_myself=$0
21525fi
21526if test ! -f "$as_myself"; then
21527 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21528 exit 1
21529fi
21530
21531# Unset variables that we do not need and which cause bugs (e.g. in
21532# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21533# suppresses any "Segmentation fault" message there. '((' could
21534# trigger a bug in pdksh 5.2.14.
21535for as_var in BASH_ENV ENV MAIL MAILPATH
21536do eval test x\${$as_var+set} = xset \
21537 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21538done
21539PS1='$ '
21540PS2='> '
21541PS4='+ '
21542
21543# NLS nuisances.
21544LC_ALL=C
21545export LC_ALL
21546LANGUAGE=C
21547export LANGUAGE
21548
21549# CDPATH.
21550(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21551
21552
21553@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
21554@%:@ ----------------------------------------
21555@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21556@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21557@%:@ script with STATUS, using 1 if that was 0.
21558as_fn_error ()
21559{
21560 as_status=$1; test $as_status -eq 0 && as_status=1
21561 if test "$4"; then
21562 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21563 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21564 fi
21565 $as_echo "$as_me: error: $2" >&2
21566 as_fn_exit $as_status
21567} @%:@ as_fn_error
21568
21569
21570@%:@ as_fn_set_status STATUS
21571@%:@ -----------------------
21572@%:@ Set @S|@? to STATUS, without forking.
21573as_fn_set_status ()
21574{
21575 return $1
21576} @%:@ as_fn_set_status
21577
21578@%:@ as_fn_exit STATUS
21579@%:@ -----------------
21580@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21581as_fn_exit ()
21582{
21583 set +e
21584 as_fn_set_status $1
21585 exit $1
21586} @%:@ as_fn_exit
21587
21588@%:@ as_fn_unset VAR
21589@%:@ ---------------
21590@%:@ Portably unset VAR.
21591as_fn_unset ()
21592{
21593 { eval $1=; unset $1;}
21594}
21595as_unset=as_fn_unset
21596@%:@ as_fn_append VAR VALUE
21597@%:@ ----------------------
21598@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
21599@%:@ advantage of any shell optimizations that allow amortized linear growth over
21600@%:@ repeated appends, instead of the typical quadratic growth present in naive
21601@%:@ implementations.
21602if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21603 eval 'as_fn_append ()
21604 {
21605 eval $1+=\$2
21606 }'
21607else
21608 as_fn_append ()
21609 {
21610 eval $1=\$$1\$2
21611 }
21612fi # as_fn_append
21613
21614@%:@ as_fn_arith ARG...
21615@%:@ ------------------
21616@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
21617@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
21618@%:@ must be portable across @S|@(()) and expr.
21619if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21620 eval 'as_fn_arith ()
21621 {
21622 as_val=$(( $* ))
21623 }'
21624else
21625 as_fn_arith ()
21626 {
21627 as_val=`expr "$@" || test $? -eq 1`
21628 }
21629fi # as_fn_arith
21630
21631
21632if expr a : '\(a\)' >/dev/null 2>&1 &&
21633 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21634 as_expr=expr
21635else
21636 as_expr=false
21637fi
21638
21639if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21640 as_basename=basename
21641else
21642 as_basename=false
21643fi
21644
21645if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21646 as_dirname=dirname
21647else
21648 as_dirname=false
21649fi
21650
21651as_me=`$as_basename -- "$0" ||
21652$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21653 X"$0" : 'X\(//\)$' \| \
21654 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21655$as_echo X/"$0" |
21656 sed '/^.*\/\([^/][^/]*\)\/*$/{
21657 s//\1/
21658 q
21659 }
21660 /^X\/\(\/\/\)$/{
21661 s//\1/
21662 q
21663 }
21664 /^X\/\(\/\).*/{
21665 s//\1/
21666 q
21667 }
21668 s/.*/./; q'`
21669
21670# Avoid depending upon Character Ranges.
21671as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21672as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21673as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21674as_cr_digits='0123456789'
21675as_cr_alnum=$as_cr_Letters$as_cr_digits
21676
21677ECHO_C= ECHO_N= ECHO_T=
21678case `echo -n x` in @%:@(((((
21679-n*)
21680 case `echo 'xy\c'` in
21681 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21682 xy) ECHO_C='\c';;
21683 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21684 ECHO_T=' ';;
21685 esac;;
21686*)
21687 ECHO_N='-n';;
21688esac
21689
21690rm -f conf$$ conf$$.exe conf$$.file
21691if test -d conf$$.dir; then
21692 rm -f conf$$.dir/conf$$.file
21693else
21694 rm -f conf$$.dir
21695 mkdir conf$$.dir 2>/dev/null
21696fi
21697if (echo >conf$$.file) 2>/dev/null; then
21698 if ln -s conf$$.file conf$$ 2>/dev/null; then
21699 as_ln_s='ln -s'
21700 # ... but there are two gotchas:
21701 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21702 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21703 # In both cases, we have to default to `cp -p'.
21704 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21705 as_ln_s='cp -p'
21706 elif ln conf$$.file conf$$ 2>/dev/null; then
21707 as_ln_s=ln
21708 else
21709 as_ln_s='cp -p'
21710 fi
21711else
21712 as_ln_s='cp -p'
21713fi
21714rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21715rmdir conf$$.dir 2>/dev/null
21716
21717
21718@%:@ as_fn_mkdir_p
21719@%:@ -------------
21720@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
21721as_fn_mkdir_p ()
21722{
21723
21724 case $as_dir in #(
21725 -*) as_dir=./$as_dir;;
21726 esac
21727 test -d "$as_dir" || eval $as_mkdir_p || {
21728 as_dirs=
21729 while :; do
21730 case $as_dir in #(
21731 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21732 *) as_qdir=$as_dir;;
21733 esac
21734 as_dirs="'$as_qdir' $as_dirs"
21735 as_dir=`$as_dirname -- "$as_dir" ||
21736$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21737 X"$as_dir" : 'X\(//\)[^/]' \| \
21738 X"$as_dir" : 'X\(//\)$' \| \
21739 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21740$as_echo X"$as_dir" |
21741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21742 s//\1/
21743 q
21744 }
21745 /^X\(\/\/\)[^/].*/{
21746 s//\1/
21747 q
21748 }
21749 /^X\(\/\/\)$/{
21750 s//\1/
21751 q
21752 }
21753 /^X\(\/\).*/{
21754 s//\1/
21755 q
21756 }
21757 s/.*/./; q'`
21758 test -d "$as_dir" && break
21759 done
21760 test -z "$as_dirs" || eval "mkdir $as_dirs"
21761 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21762
21763
21764} @%:@ as_fn_mkdir_p
21765if mkdir -p . 2>/dev/null; then
21766 as_mkdir_p='mkdir -p "$as_dir"'
21767else
21768 test -d ./-p && rmdir ./-p
21769 as_mkdir_p=false
21770fi
21771
21772if test -x / >/dev/null 2>&1; then
21773 as_test_x='test -x'
21774else
21775 if ls -dL / >/dev/null 2>&1; then
21776 as_ls_L_option=L
21777 else
21778 as_ls_L_option=
21779 fi
21780 as_test_x='
21781 eval sh -c '\''
21782 if test -d "$1"; then
21783 test -d "$1/.";
21784 else
21785 case $1 in @%:@(
21786 -*)set "./$1";;
21787 esac;
21788 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
21789 ???[sx]*):;;*)false;;esac;fi
21790 '\'' sh
21791 '
21792fi
21793as_executable_p=$as_test_x
21794
21795# Sed expression to map a string onto a valid CPP name.
21796as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21797
21798# Sed expression to map a string onto a valid variable name.
21799as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21800
21801
21802exec 6>&1
21803## ----------------------------------- ##
21804## Main body of $CONFIG_STATUS script. ##
21805## ----------------------------------- ##
21806_ASEOF
21807test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21808
21809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21810# Save the log message, to keep $0 and so on meaningful, and to
21811# report actual input values of CONFIG_FILES etc. instead of their
21812# values after options handling.
21813ac_log="
21814This file was extended by library $as_me 1.0, which was
21815generated by GNU Autoconf 2.67. Invocation command line was
21816
21817 CONFIG_FILES = $CONFIG_FILES
21818 CONFIG_HEADERS = $CONFIG_HEADERS
21819 CONFIG_LINKS = $CONFIG_LINKS
21820 CONFIG_COMMANDS = $CONFIG_COMMANDS
21821 $ $0 $@
21822
21823on `(hostname || uname -n) 2>/dev/null | sed 1q`
21824"
21825
21826_ACEOF
21827
21828case $ac_config_files in *"
21829"*) set x $ac_config_files; shift; ac_config_files=$*;;
21830esac
21831
21832case $ac_config_headers in *"
21833"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21834esac
21835
21836
21837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21838# Files that config.status was made for.
21839config_files="$ac_config_files"
21840config_headers="$ac_config_headers"
21841config_commands="$ac_config_commands"
21842
21843_ACEOF
21844
21845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21846ac_cs_usage="\
21847\`$as_me' instantiates files and other configuration actions
21848from templates according to the current configuration. Unless the files
21849and actions are specified as TAGs, all are instantiated by default.
21850
21851Usage: $0 [OPTION]... [TAG]...
21852
21853 -h, --help print this help, then exit
21854 -V, --version print version number and configuration settings, then exit
21855 --config print configuration, then exit
21856 -q, --quiet, --silent
21857 do not print progress messages
21858 -d, --debug don't remove temporary files
21859 --recheck update $as_me by reconfiguring in the same conditions
21860 --file=FILE[:TEMPLATE]
21861 instantiate the configuration file FILE
21862 --header=FILE[:TEMPLATE]
21863 instantiate the configuration header FILE
21864
21865Configuration files:
21866$config_files
21867
21868Configuration headers:
21869$config_headers
21870
21871Configuration commands:
21872$config_commands
21873
21874Report bugs to <support@itibia.com>."
21875
21876_ACEOF
21877cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21878ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21879ac_cs_version="\\
21880library config.status 1.0
21881configured by $0, generated by GNU Autoconf 2.67,
21882 with options \\"\$ac_cs_config\\"
21883
21884Copyright (C) 2010 Free Software Foundation, Inc.
21885This config.status script is free software; the Free Software Foundation
21886gives unlimited permission to copy, distribute and modify it."
21887
21888ac_pwd='$ac_pwd'
21889srcdir='$srcdir'
21890INSTALL='$INSTALL'
21891MKDIR_P='$MKDIR_P'
21892AWK='$AWK'
21893test -n "\$AWK" || AWK=awk
21894_ACEOF
21895
21896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21897# The default lists apply if the user does not specify any file.
21898ac_need_defaults=:
21899while test $# != 0
21900do
21901 case $1 in
21902 --*=?*)
21903 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21904 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21905 ac_shift=:
21906 ;;
21907 --*=)
21908 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21909 ac_optarg=
21910 ac_shift=:
21911 ;;
21912 *)
21913 ac_option=$1
21914 ac_optarg=$2
21915 ac_shift=shift
21916 ;;
21917 esac
21918
21919 case $ac_option in
21920 # Handling of the options.
21921 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21922 ac_cs_recheck=: ;;
21923 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21924 $as_echo "$ac_cs_version"; exit ;;
21925 --config | --confi | --conf | --con | --co | --c )
21926 $as_echo "$ac_cs_config"; exit ;;
21927 --debug | --debu | --deb | --de | --d | -d )
21928 debug=: ;;
21929 --file | --fil | --fi | --f )
21930 $ac_shift
21931 case $ac_optarg in
21932 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21933 '') as_fn_error $? "missing file argument" ;;
21934 esac
21935 as_fn_append CONFIG_FILES " '$ac_optarg'"
21936 ac_need_defaults=false;;
21937 --header | --heade | --head | --hea )
21938 $ac_shift
21939 case $ac_optarg in
21940 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21941 esac
21942 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21943 ac_need_defaults=false;;
21944 --he | --h)
21945 # Conflict between --help and --header
21946 as_fn_error $? "ambiguous option: \`$1'
21947Try \`$0 --help' for more information.";;
21948 --help | --hel | -h )
21949 $as_echo "$ac_cs_usage"; exit ;;
21950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21951 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21952 ac_cs_silent=: ;;
21953
21954 # This is an error.
21955 -*) as_fn_error $? "unrecognized option: \`$1'
21956Try \`$0 --help' for more information." ;;
21957
21958 *) as_fn_append ac_config_targets " $1"
21959 ac_need_defaults=false ;;
21960
21961 esac
21962 shift
21963done
21964
21965ac_configure_extra_args=
21966
21967if $ac_cs_silent; then
21968 exec 6>/dev/null
21969 ac_configure_extra_args="$ac_configure_extra_args --silent"
21970fi
21971
21972_ACEOF
21973cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21974if \$ac_cs_recheck; then
21975 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21976 shift
21977 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21978 CONFIG_SHELL='$SHELL'
21979 export CONFIG_SHELL
21980 exec "\$@"
21981fi
21982
21983_ACEOF
21984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21985exec 5>>config.log
21986{
21987 echo
21988 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
21989@%:@@%:@ Running $as_me. @%:@@%:@
21990_ASBOX
21991 $as_echo "$ac_log"
21992} >&5
21993
21994_ACEOF
21995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21996#
21997# INIT-COMMANDS
21998#
21999AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22000
22001_ACEOF
22002
22003cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22004
22005# Handling of arguments.
22006for ac_config_target in $ac_config_targets
22007do
22008 case $ac_config_target in
22009 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22010 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22011 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22012 "libpool/src/Makefile") CONFIG_FILES="$CONFIG_FILES libpool/src/Makefile" ;;
22013 "libxmlet/src/Makefile") CONFIG_FILES="$CONFIG_FILES libxmlet/src/Makefile" ;;
22014 "libcwmp/src/Makefile") CONFIG_FILES="$CONFIG_FILES libcwmp/src/Makefile" ;;
22015 "cwmpd/src/Makefile") CONFIG_FILES="$CONFIG_FILES cwmpd/src/Makefile" ;;
22016 "tests/src/Makefile") CONFIG_FILES="$CONFIG_FILES tests/src/Makefile" ;;
22017
22018 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
22019 esac
22020done
22021
22022
22023# If the user did not use the arguments to specify the items to instantiate,
22024# then the envvar interface is used. Set only those that are not.
22025# We use the long form for the default assignment because of an extremely
22026# bizarre bug on SunOS 4.1.3.
22027if $ac_need_defaults; then
22028 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22029 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22030 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22031fi
22032
22033# Have a temporary directory for convenience. Make it in the build tree
22034# simply because there is no reason against having it here, and in addition,
22035# creating and moving files from /tmp can sometimes cause problems.
22036# Hook for its removal unless debugging.
22037# Note that there is a small window in which the directory will not be cleaned:
22038# after its creation but before its name has been assigned to `$tmp'.
22039$debug ||
22040{
22041 tmp=
22042 trap 'exit_status=$?
22043 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22044' 0
22045 trap 'as_fn_exit 1' 1 2 13 15
22046}
22047# Create a (secure) tmp directory for tmp files.
22048
22049{
22050 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22051 test -n "$tmp" && test -d "$tmp"
22052} ||
22053{
22054 tmp=./conf$$-$RANDOM
22055 (umask 077 && mkdir "$tmp")
22056} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22057
22058# Set up the scripts for CONFIG_FILES section.
22059# No need to generate them if there are no CONFIG_FILES.
22060# This happens for instance with `./config.status config.h'.
22061if test -n "$CONFIG_FILES"; then
22062
22063
22064ac_cr=`echo X | tr X '\015'`
22065# On cygwin, bash can eat \r inside `` if the user requested igncr.
22066# But we know of no other shell where ac_cr would be empty at this
22067# point, so we can use a bashism as a fallback.
22068if test "x$ac_cr" = x; then
22069 eval ac_cr=\$\'\\r\'
22070fi
22071ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22072if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22073 ac_cs_awk_cr='\\r'
22074else
22075 ac_cs_awk_cr=$ac_cr
22076fi
22077
22078echo 'BEGIN {' >"$tmp/subs1.awk" &&
22079_ACEOF
22080
22081
22082{
22083 echo "cat >conf$$subs.awk <<_ACEOF" &&
22084 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22085 echo "_ACEOF"
22086} >conf$$subs.sh ||
22087 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22088ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22089ac_delim='%!_!# '
22090for ac_last_try in false false false false false :; do
22091 . ./conf$$subs.sh ||
22092 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22093
22094 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22095 if test $ac_delim_n = $ac_delim_num; then
22096 break
22097 elif $ac_last_try; then
22098 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22099 else
22100 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22101 fi
22102done
22103rm -f conf$$subs.sh
22104
22105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22106cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22107_ACEOF
22108sed -n '
22109h
22110s/^/S["/; s/!.*/"]=/
22111p
22112g
22113s/^[^!]*!//
22114:repl
22115t repl
22116s/'"$ac_delim"'$//
22117t delim
22118:nl
22119h
22120s/\(.\{148\}\)..*/\1/
22121t more1
22122s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22123p
22124n
22125b repl
22126:more1
22127s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22128p
22129g
22130s/.\{148\}//
22131t nl
22132:delim
22133h
22134s/\(.\{148\}\)..*/\1/
22135t more2
22136s/["\\]/\\&/g; s/^/"/; s/$/"/
22137p
22138b
22139:more2
22140s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22141p
22142g
22143s/.\{148\}//
22144t delim
22145' <conf$$subs.awk | sed '
22146/^[^""]/{
22147 N
22148 s/\n//
22149}
22150' >>$CONFIG_STATUS || ac_write_fail=1
22151rm -f conf$$subs.awk
22152cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22153_ACAWK
22154cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22155 for (key in S) S_is_set[key] = 1
22156 FS = ""
22157
22158}
22159{
22160 line = $ 0
22161 nfields = split(line, field, "@")
22162 substed = 0
22163 len = length(field[1])
22164 for (i = 2; i < nfields; i++) {
22165 key = field[i]
22166 keylen = length(key)
22167 if (S_is_set[key]) {
22168 value = S[key]
22169 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22170 len += length(value) + length(field[++i])
22171 substed = 1
22172 } else
22173 len += 1 + keylen
22174 }
22175
22176 print line
22177}
22178
22179_ACAWK
22180_ACEOF
22181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22182if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22183 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22184else
22185 cat
22186fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22187 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22188_ACEOF
22189
22190# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22191# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22192# trailing colons and then remove the whole line if VPATH becomes empty
22193# (actually we leave an empty line to preserve line numbers).
22194if test "x$srcdir" = x.; then
22195 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22196h
22197s///
22198s/^/:/
22199s/[ ]*$/:/
22200s/:\$(srcdir):/:/g
22201s/:\${srcdir}:/:/g
22202s/:@srcdir@:/:/g
22203s/^:*//
22204s/:*$//
22205x
22206s/\(=[ ]*\).*/\1/
22207G
22208s/\n//
22209s/^[^=]*=[ ]*$//
22210}'
22211fi
22212
22213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22214fi # test -n "$CONFIG_FILES"
22215
22216# Set up the scripts for CONFIG_HEADERS section.
22217# No need to generate them if there are no CONFIG_HEADERS.
22218# This happens for instance with `./config.status Makefile'.
22219if test -n "$CONFIG_HEADERS"; then
22220cat >"$tmp/defines.awk" <<\_ACAWK ||
22221BEGIN {
22222_ACEOF
22223
22224# Transform confdefs.h into an awk script `defines.awk', embedded as
22225# here-document in config.status, that substitutes the proper values into
22226# config.h.in to produce config.h.
22227
22228# Create a delimiter string that does not exist in confdefs.h, to ease
22229# handling of long lines.
22230ac_delim='%!_!# '
22231for ac_last_try in false false :; do
22232 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22233 if test -z "$ac_t"; then
22234 break
22235 elif $ac_last_try; then
22236 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22237 else
22238 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22239 fi
22240done
22241
22242# For the awk script, D is an array of macro values keyed by name,
22243# likewise P contains macro parameters if any. Preserve backslash
22244# newline sequences.
22245
22246ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22247sed -n '
22248s/.\{148\}/&'"$ac_delim"'/g
22249t rset
22250:rset
22251s/^[ ]*#[ ]*define[ ][ ]*/ /
22252t def
22253d
22254:def
22255s/\\$//
22256t bsnl
22257s/["\\]/\\&/g
22258s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22259D["\1"]=" \3"/p
22260s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22261d
22262:bsnl
22263s/["\\]/\\&/g
22264s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22265D["\1"]=" \3\\\\\\n"\\/p
22266t cont
22267s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22268t cont
22269d
22270:cont
22271n
22272s/.\{148\}/&'"$ac_delim"'/g
22273t clear
22274:clear
22275s/\\$//
22276t bsnlc
22277s/["\\]/\\&/g; s/^/"/; s/$/"/p
22278d
22279:bsnlc
22280s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22281b cont
22282' <confdefs.h | sed '
22283s/'"$ac_delim"'/"\\\
22284"/g' >>$CONFIG_STATUS || ac_write_fail=1
22285
22286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22287 for (key in D) D_is_set[key] = 1
22288 FS = ""
22289}
22290/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22291 line = \$ 0
22292 split(line, arg, " ")
22293 if (arg[1] == "#") {
22294 defundef = arg[2]
22295 mac1 = arg[3]
22296 } else {
22297 defundef = substr(arg[1], 2)
22298 mac1 = arg[2]
22299 }
22300 split(mac1, mac2, "(") #)
22301 macro = mac2[1]
22302 prefix = substr(line, 1, index(line, defundef) - 1)
22303 if (D_is_set[macro]) {
22304 # Preserve the white space surrounding the "#".
22305 print prefix "define", macro P[macro] D[macro]
22306 next
22307 } else {
22308 # Replace #undef with comments. This is necessary, for example,
22309 # in the case of _POSIX_SOURCE, which is predefined and required
22310 # on some systems where configure will not decide to define it.
22311 if (defundef == "undef") {
22312 print "/*", prefix defundef, macro, "*/"
22313 next
22314 }
22315 }
22316}
22317{ print }
22318_ACAWK
22319_ACEOF
22320cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22321 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22322fi # test -n "$CONFIG_HEADERS"
22323
22324
22325eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22326shift
22327for ac_tag
22328do
22329 case $ac_tag in
22330 :[FHLC]) ac_mode=$ac_tag; continue;;
22331 esac
22332 case $ac_mode$ac_tag in
22333 :[FHL]*:*);;
22334 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
22335 :[FH]-) ac_tag=-:-;;
22336 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22337 esac
22338 ac_save_IFS=$IFS
22339 IFS=:
22340 set x $ac_tag
22341 IFS=$ac_save_IFS
22342 shift
22343 ac_file=$1
22344 shift
22345
22346 case $ac_mode in
22347 :L) ac_source=$1;;
22348 :[FH])
22349 ac_file_inputs=
22350 for ac_f
22351 do
22352 case $ac_f in
22353 -) ac_f="$tmp/stdin";;
22354 *) # Look for the file first in the build tree, then in the source tree
22355 # (if the path is not absolute). The absolute path cannot be DOS-style,
22356 # because $ac_f cannot contain `:'.
22357 test -f "$ac_f" ||
22358 case $ac_f in
22359 [\\/$]*) false;;
22360 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22361 esac ||
22362 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
22363 esac
22364 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22365 as_fn_append ac_file_inputs " '$ac_f'"
22366 done
22367
22368 # Let's still pretend it is `configure' which instantiates (i.e., don't
22369 # use $as_me), people would be surprised to read:
22370 # /* config.h. Generated by config.status. */
22371 configure_input='Generated from '`
22372 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22373 `' by configure.'
22374 if test x"$ac_file" != x-; then
22375 configure_input="$ac_file. $configure_input"
22376 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22377$as_echo "$as_me: creating $ac_file" >&6;}
22378 fi
22379 # Neutralize special characters interpreted by sed in replacement strings.
22380 case $configure_input in #(
22381 *\&* | *\|* | *\\* )
22382 ac_sed_conf_input=`$as_echo "$configure_input" |
22383 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22384 *) ac_sed_conf_input=$configure_input;;
22385 esac
22386
22387 case $ac_tag in
22388 *:-:* | *:-) cat >"$tmp/stdin" \
22389 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22390 esac
22391 ;;
22392 esac
22393
22394 ac_dir=`$as_dirname -- "$ac_file" ||
22395$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22396 X"$ac_file" : 'X\(//\)[^/]' \| \
22397 X"$ac_file" : 'X\(//\)$' \| \
22398 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22399$as_echo X"$ac_file" |
22400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22401 s//\1/
22402 q
22403 }
22404 /^X\(\/\/\)[^/].*/{
22405 s//\1/
22406 q
22407 }
22408 /^X\(\/\/\)$/{
22409 s//\1/
22410 q
22411 }
22412 /^X\(\/\).*/{
22413 s//\1/
22414 q
22415 }
22416 s/.*/./; q'`
22417 as_dir="$ac_dir"; as_fn_mkdir_p
22418 ac_builddir=.
22419
22420case "$ac_dir" in
22421.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22422*)
22423 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22424 # A ".." for each directory in $ac_dir_suffix.
22425 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22426 case $ac_top_builddir_sub in
22427 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22428 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22429 esac ;;
22430esac
22431ac_abs_top_builddir=$ac_pwd
22432ac_abs_builddir=$ac_pwd$ac_dir_suffix
22433# for backward compatibility:
22434ac_top_builddir=$ac_top_build_prefix
22435
22436case $srcdir in
22437 .) # We are building in place.
22438 ac_srcdir=.
22439 ac_top_srcdir=$ac_top_builddir_sub
22440 ac_abs_top_srcdir=$ac_pwd ;;
22441 [\\/]* | ?:[\\/]* ) # Absolute name.
22442 ac_srcdir=$srcdir$ac_dir_suffix;
22443 ac_top_srcdir=$srcdir
22444 ac_abs_top_srcdir=$srcdir ;;
22445 *) # Relative name.
22446 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22447 ac_top_srcdir=$ac_top_build_prefix$srcdir
22448 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22449esac
22450ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22451
22452
22453 case $ac_mode in
22454 :F)
22455 #
22456 # CONFIG_FILE
22457 #
22458
22459 case $INSTALL in
22460 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22461 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22462 esac
22463 ac_MKDIR_P=$MKDIR_P
22464 case $MKDIR_P in
22465 [\\/$]* | ?:[\\/]* ) ;;
22466 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22467 esac
22468_ACEOF
22469
22470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22471# If the template does not know about datarootdir, expand it.
22472# FIXME: This hack should be removed a few years after 2.60.
22473ac_datarootdir_hack=; ac_datarootdir_seen=
22474ac_sed_dataroot='
22475/datarootdir/ {
22476 p
22477 q
22478}
22479/@datadir@/p
22480/@docdir@/p
22481/@infodir@/p
22482/@localedir@/p
22483/@mandir@/p'
22484case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22485*datarootdir*) ac_datarootdir_seen=yes;;
22486*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22488$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22489_ACEOF
22490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22491 ac_datarootdir_hack='
22492 s&@datadir@&$datadir&g
22493 s&@docdir@&$docdir&g
22494 s&@infodir@&$infodir&g
22495 s&@localedir@&$localedir&g
22496 s&@mandir@&$mandir&g
22497 s&\\\${datarootdir}&$datarootdir&g' ;;
22498esac
22499_ACEOF
22500
22501# Neutralize VPATH when `$srcdir' = `.'.
22502# Shell code in configure.ac might set extrasub.
22503# FIXME: do we really want to maintain this feature?
22504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22505ac_sed_extra="$ac_vpsub
22506$extrasub
22507_ACEOF
22508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22509:t
22510/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22511s|@configure_input@|$ac_sed_conf_input|;t t
22512s&@top_builddir@&$ac_top_builddir_sub&;t t
22513s&@top_build_prefix@&$ac_top_build_prefix&;t t
22514s&@srcdir@&$ac_srcdir&;t t
22515s&@abs_srcdir@&$ac_abs_srcdir&;t t
22516s&@top_srcdir@&$ac_top_srcdir&;t t
22517s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22518s&@builddir@&$ac_builddir&;t t
22519s&@abs_builddir@&$ac_abs_builddir&;t t
22520s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22521s&@INSTALL@&$ac_INSTALL&;t t
22522s&@MKDIR_P@&$ac_MKDIR_P&;t t
22523$ac_datarootdir_hack
22524"
22525eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22526 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22527
22528test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22529 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22530 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22532which seems to be undefined. Please make sure it is defined" >&5
22533$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22534which seems to be undefined. Please make sure it is defined" >&2;}
22535
22536 rm -f "$tmp/stdin"
22537 case $ac_file in
22538 -) cat "$tmp/out" && rm -f "$tmp/out";;
22539 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22540 esac \
22541 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22542 ;;
22543 :H)
22544 #
22545 # CONFIG_HEADER
22546 #
22547 if test x"$ac_file" != x-; then
22548 {
22549 $as_echo "/* $configure_input */" \
22550 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22551 } >"$tmp/config.h" \
22552 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22553 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22554 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22555$as_echo "$as_me: $ac_file is unchanged" >&6;}
22556 else
22557 rm -f "$ac_file"
22558 mv "$tmp/config.h" "$ac_file" \
22559 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22560 fi
22561 else
22562 $as_echo "/* $configure_input */" \
22563 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22564 || as_fn_error $? "could not create -" "$LINENO" 5
22565 fi
22566# Compute "$ac_file"'s index in $config_headers.
22567_am_arg="$ac_file"
22568_am_stamp_count=1
22569for _am_header in $config_headers :; do
22570 case $_am_header in
22571 $_am_arg | $_am_arg:* )
22572 break ;;
22573 * )
22574 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22575 esac
22576done
22577echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22578$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22579 X"$_am_arg" : 'X\(//\)[^/]' \| \
22580 X"$_am_arg" : 'X\(//\)$' \| \
22581 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22582$as_echo X"$_am_arg" |
22583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22584 s//\1/
22585 q
22586 }
22587 /^X\(\/\/\)[^/].*/{
22588 s//\1/
22589 q
22590 }
22591 /^X\(\/\/\)$/{
22592 s//\1/
22593 q
22594 }
22595 /^X\(\/\).*/{
22596 s//\1/
22597 q
22598 }
22599 s/.*/./; q'`/stamp-h$_am_stamp_count
22600 ;;
22601
22602 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22603$as_echo "$as_me: executing $ac_file commands" >&6;}
22604 ;;
22605 esac
22606
22607
22608 case $ac_file$ac_mode in
22609 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22610 # Autoconf 2.62 quotes --file arguments for eval, but not when files
22611 # are listed without --file. Let's play safe and only enable the eval
22612 # if we detect the quoting.
22613 case $CONFIG_FILES in
22614 *\'*) eval set x "$CONFIG_FILES" ;;
22615 *) set x $CONFIG_FILES ;;
22616 esac
22617 shift
22618 for mf
22619 do
22620 # Strip MF so we end up with the name of the file.
22621 mf=`echo "$mf" | sed -e 's/:.*$//'`
22622 # Check whether this is an Automake generated Makefile or not.
22623 # We used to match only the files named `Makefile.in', but
22624 # some people rename them; so instead we look at the file content.
22625 # Grep'ing the first line is not enough: some people post-process
22626 # each Makefile.in and add a new line on top of each file to say so.
22627 # Grep'ing the whole file is not good either: AIX grep has a line
22628 # limit of 2048, but all sed's we know have understand at least 4000.
22629 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22630 dirpart=`$as_dirname -- "$mf" ||
22631$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22632 X"$mf" : 'X\(//\)[^/]' \| \
22633 X"$mf" : 'X\(//\)$' \| \
22634 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22635$as_echo X"$mf" |
22636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22637 s//\1/
22638 q
22639 }
22640 /^X\(\/\/\)[^/].*/{
22641 s//\1/
22642 q
22643 }
22644 /^X\(\/\/\)$/{
22645 s//\1/
22646 q
22647 }
22648 /^X\(\/\).*/{
22649 s//\1/
22650 q
22651 }
22652 s/.*/./; q'`
22653 else
22654 continue
22655 fi
22656 # Extract the definition of DEPDIR, am__include, and am__quote
22657 # from the Makefile without running `make'.
22658 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22659 test -z "$DEPDIR" && continue
22660 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22661 test -z "am__include" && continue
22662 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22663 # When using ansi2knr, U may be empty or an underscore; expand it
22664 U=`sed -n 's/^U = //p' < "$mf"`
22665 # Find all dependency output files, they are included files with
22666 # $(DEPDIR) in their names. We invoke sed twice because it is the
22667 # simplest approach to changing $(DEPDIR) to its actual value in the
22668 # expansion.
22669 for file in `sed -n "
22670 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22671 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22672 # Make sure the directory exists.
22673 test -f "$dirpart/$file" && continue
22674 fdir=`$as_dirname -- "$file" ||
22675$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22676 X"$file" : 'X\(//\)[^/]' \| \
22677 X"$file" : 'X\(//\)$' \| \
22678 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22679$as_echo X"$file" |
22680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22681 s//\1/
22682 q
22683 }
22684 /^X\(\/\/\)[^/].*/{
22685 s//\1/
22686 q
22687 }
22688 /^X\(\/\/\)$/{
22689 s//\1/
22690 q
22691 }
22692 /^X\(\/\).*/{
22693 s//\1/
22694 q
22695 }
22696 s/.*/./; q'`
22697 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22698 # echo "creating $dirpart/$file"
22699 echo '# dummy' > "$dirpart/$file"
22700 done
22701 done
22702}
22703 ;;
22704
22705 esac
22706done # for ac_tag
22707
22708
22709as_fn_exit 0
22710_ACEOF
22711ac_clean_files=$ac_clean_files_save
22712
22713test $ac_write_fail = 0 ||
22714 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22715
22716
22717# configure is writing to config.log, and then calls config.status.
22718# config.status does its own redirection, appending to config.log.
22719# Unfortunately, on DOS this fails, as config.log is still kept open
22720# by configure, so config.status won't be able to write to it; its
22721# output is simply discarded. So we exec the FD to /dev/null,
22722# effectively closing config.log, so it can be properly (re)opened and
22723# appended to by config.status. When coming back to configure, we
22724# need to make the FD available again.
22725if test "$no_create" != yes; then
22726 ac_cs_success=:
22727 ac_config_status_args=
22728 test "$silent" = yes &&
22729 ac_config_status_args="$ac_config_status_args --quiet"
22730 exec 5>/dev/null
22731 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22732 exec 5>>config.log
22733 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22734 # would make configure fail if this is the last instruction.
22735 $ac_cs_success || as_fn_exit 1
22736fi
22737if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22739$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22740fi
22741