Debian Codegraph @

configure

raw ◀ ▶
1 Debian patch touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for dime 0.9.1.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # 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
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if 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
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_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.
47 if 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 --'
51 elif (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'
54 else
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'
74 fi
75
76 # The user is always right.
77 if 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 }
83 fi
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.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
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
103 IFS=$as_save_IFS
104
105 ;;
106 esac
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.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
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.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if 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
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152 esac
153 fi
154 "
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169 exitcode=1; echo positional parameters were not saved.
170 fi
171 test 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
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
181 fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
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
202 fi
203 fi
204 done;;
205 esac
206 as_found=false
207 done
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
211 fi; }
212 IFS=$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+"$@"}
224 fi
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 [email protected] and
234 $0: [email protected] about your system, including
235 $0: any error possibly output before this message. Then
236 $0: install a modern shell, or manually run the script
237 $0: under such a shell if you do have one."
238 fi
239 exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257 { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_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.
272 as_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 "$as_dir" as a directory, including parents if necessary.
282 as_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.
332 if (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 }'
337 else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342 fi # 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 $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354 else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359 fi # as_fn_arith
360
361
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $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.
367 as_fn_error ()
368 {
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
395 fi
396
397 as_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.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_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
455 ECHO_C= ECHO_N= ECHO_T=
456 case `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';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
474 fi
475 if (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
489 else
490 as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
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 '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_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.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$ECHO in
537 X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
540 ;;
541 esac
542
543 echo=${ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547 elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
550 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $echo works!
552 :
553 else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<EOF
562 $*
563 EOF
564 exit 0
565 fi
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
571 if test -z "$ECHO"; then
572 if 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
583 fi
584
585 if 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 :
589 else
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
669 fi
670 fi
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.
674 ECHO=$echo
675 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677 fi
678
679
680
681
682 tagnames=${tagnames+${tagnames},}CXX
683
684 tagnames=${tagnames+${tagnames},}F77
685
686 test -n "$DJDIR" || exec 7<&0 </dev/null
687 exec 6>&1
688
689 # Name of the host.
690 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
691 # so uname gets run too.
692 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
693
694 #
695 # Initializations.
696 #
697 ac_default_prefix=/usr/local
698 ac_clean_files=
699 ac_config_libobj_dir=.
700 LIBOBJS=
701 cross_compiling=no
702 subdirs=
703 MFLAGS=
704 MAKEFLAGS=
705
706 # Identity of this package.
707 PACKAGE_NAME='dime'
708 PACKAGE_TARNAME='dime'
709 PACKAGE_VERSION='0.9.1'
710 PACKAGE_STRING='dime 0.9.1'
711 PACKAGE_BUGREPORT='[email protected]'
712 PACKAGE_URL=''
713
714 ac_unique_file="include/dime/Base.h"
715 # Factoring default headers for most tests.
716 ac_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
751 ac_subst_vars='LTLIBOBJS
752 LIBOBJS
753 DIME_LIB_DSP_DEFS
754 DIME_DSP_DEFS
755 DIME_DSP_INCS
756 DIME_DSP_LIBS
757 DIME_COMPILER
758 BUILD_WITH_MSVC_FALSE
759 BUILD_WITH_MSVC_TRUE
760 LIBFLAGS
761 DSUFFIX
762 path_tag
763 sim_ac_perl_exe
764 sim_ac_doxygen_exe
765 BUILD_HTMLPAGES_FALSE
766 BUILD_HTMLPAGES_TRUE
767 dime_html_dir
768 DIME_DOC_HTML
769 BUILD_LIBRARY_FALSE
770 BUILD_LIBRARY_TRUE
771 dime_src_dir
772 dime_build_dir
773 LIBTOOL
774 ac_ct_F77
775 FFLAGS
776 F77
777 NMEDIT
778 DSYMUTIL
779 RANLIB
780 AR
781 ECHO
782 LN_S
783 EGREP
784 GREP
785 SED
786 MAINT
787 MAINTAINER_MODE_FALSE
788 MAINTAINER_MODE_TRUE
789 am__fastdepCXX_FALSE
790 am__fastdepCXX_TRUE
791 CXXDEPMODE
792 am__fastdepCC_FALSE
793 am__fastdepCC_TRUE
794 CCDEPMODE
795 AMDEPBACKSLASH
796 AMDEP_FALSE
797 AMDEP_TRUE
798 am__quote
799 am__include
800 DEPDIR
801 am__leading_dot
802 SET_MAKE
803 AWK
804 mkdir_p
805 INSTALL_STRIP_PROGRAM
806 STRIP
807 install_sh
808 AMTAR
809 MAKEINFO
810 AUTOHEADER
811 AUTOMAKE
812 AUTOCONF
813 ACLOCAL
814 VERSION
815 PACKAGE
816 CYGPATH_W
817 INSTALL_DATA
818 INSTALL_SCRIPT
819 INSTALL_PROGRAM
820 DIME_EXTRA_LIBS
821 DIME_EXTRA_LDFLAGS
822 DIME_EXTRA_CXXFLAGS
823 DIME_EXTRA_CFLAGS
824 DIME_EXTRA_CPPFLAGS
825 SUFFIX
826 LT_AGE
827 LT_REVISION
828 LT_CURRENT
829 LT_RELEASE
830 CXXCPP
831 ac_ct_CXX
832 CXXFLAGS
833 CXX
834 CPP
835 OBJEXT
836 EXEEXT
837 ac_ct_CC
838 CPPFLAGS
839 LDFLAGS
840 CFLAGS
841 CC
842 DIME_MSVC_LIBC
843 BUILD_WITH_MSVC
844 DIME_BINARY_AGE
845 DIME_INTERFACE_AGE
846 DIME_VERSION
847 DIME_BETA_VERSION
848 DIME_MICRO_VERSION
849 DIME_MINOR_VERSION
850 DIME_MAJOR_VERSION
851 target_os
852 target_vendor
853 target_cpu
854 target
855 host_os
856 host_vendor
857 host_cpu
858 host
859 build_os
860 build_vendor
861 build_cpu
862 build
863 target_alias
864 host_alias
865 build_alias
866 LIBS
867 ECHO_T
868 ECHO_N
869 ECHO_C
870 DEFS
871 mandir
872 localedir
873 libdir
874 psdir
875 pdfdir
876 dvidir
877 htmldir
878 infodir
879 docdir
880 oldincludedir
881 includedir
882 localstatedir
883 sharedstatedir
884 sysconfdir
885 datadir
886 datarootdir
887 libexecdir
888 sbindir
889 bindir
890 program_transform_name
891 prefix
892 exec_prefix
893 PACKAGE_URL
894 PACKAGE_BUGREPORT
895 PACKAGE_STRING
896 PACKAGE_VERSION
897 PACKAGE_TARNAME
898 PACKAGE_NAME
899 PATH_SEPARATOR
900 SHELL'
901 ac_subst_files=''
902 ac_user_opts='
903 enable_option_checking
904 enable_msvcdsp
905 enable_msvc
906 with_msvcrt
907 enable_dependency_tracking
908 enable_static
909 enable_maintainer_mode
910 enable_shared
911 enable_fast_install
912 with_gnu_ld
913 enable_libtool_lock
914 with_pic
915 with_tags
916 enable_build
917 enable_html
918 with_doxygen
919 enable_optimization
920 enable_debug
921 enable_symbols
922 enable_profile
923 enable_warnings
924 '
925 ac_precious_vars='build_alias
926 host_alias
927 target_alias
928 CC
929 CFLAGS
930 LDFLAGS
931 LIBS
932 CPPFLAGS
933 CPP
934 CXX
935 CXXFLAGS
936 CCC
937 CXXCPP
938 F77
939 FFLAGS'
940
941
942 # Initialize some variables set by options.
943 ac_init_help=
944 ac_init_version=false
945 ac_unrecognized_opts=
946 ac_unrecognized_sep=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
949 cache_file=/dev/null
950 exec_prefix=NONE
951 no_create=
952 no_recursion=
953 prefix=NONE
954 program_prefix=NONE
955 program_suffix=NONE
956 program_transform_name=s,x,x,
957 silent=
958 site=
959 srcdir=
960 verbose=
961 x_includes=NONE
962 x_libraries=NONE
963
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir='${exec_prefix}/bin'
971 sbindir='${exec_prefix}/sbin'
972 libexecdir='${exec_prefix}/libexec'
973 datarootdir='${prefix}/share'
974 datadir='${datarootdir}'
975 sysconfdir='${prefix}/etc'
976 sharedstatedir='${prefix}/com'
977 localstatedir='${prefix}/var'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
981 infodir='${datarootdir}/info'
982 htmldir='${docdir}'
983 dvidir='${docdir}'
984 pdfdir='${docdir}'
985 psdir='${docdir}'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
989
990 ac_prev=
991 ac_dashdash=
992 for ac_option
993 do
994 # If the previous option needs an argument, assign it.
995 if test -n "$ac_prev"; then
996 eval $ac_prev=\$ac_option
997 ac_prev=
998 continue
999 fi
1000
1001 case $ac_option in
1002 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003 *) ac_optarg=yes ;;
1004 esac
1005
1006 # Accept the important Cygnus configure options, so we can diagnose typos.
1007
1008 case $ac_dashdash$ac_option in
1009 --)
1010 ac_dashdash=yes ;;
1011
1012 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013 ac_prev=bindir ;;
1014 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015 bindir=$ac_optarg ;;
1016
1017 -build | --build | --buil | --bui | --bu)
1018 ac_prev=build_alias ;;
1019 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020 build_alias=$ac_optarg ;;
1021
1022 -cache-file | --cache-file | --cache-fil | --cache-fi \
1023 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024 ac_prev=cache_file ;;
1025 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027 cache_file=$ac_optarg ;;
1028
1029 --config-cache | -C)
1030 cache_file=config.cache ;;
1031
1032 -datadir | --datadir | --datadi | --datad)
1033 ac_prev=datadir ;;
1034 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035 datadir=$ac_optarg ;;
1036
1037 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038 | --dataroo | --dataro | --datar)
1039 ac_prev=datarootdir ;;
1040 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042 datarootdir=$ac_optarg ;;
1043
1044 -disable-* | --disable-*)
1045 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 as_fn_error "invalid feature name: $ac_useropt"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1052 *"
1053 "enable_$ac_useropt"
1054 "*) ;;
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1057 esac
1058 eval enable_$ac_useropt=no ;;
1059
1060 -docdir | --docdir | --docdi | --doc | --do)
1061 ac_prev=docdir ;;
1062 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063 docdir=$ac_optarg ;;
1064
1065 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066 ac_prev=dvidir ;;
1067 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068 dvidir=$ac_optarg ;;
1069
1070 -enable-* | --enable-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error "invalid feature name: $ac_useropt"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1078 *"
1079 "enable_$ac_useropt"
1080 "*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1083 esac
1084 eval enable_$ac_useropt=\$ac_optarg ;;
1085
1086 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088 | --exec | --exe | --ex)
1089 ac_prev=exec_prefix ;;
1090 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092 | --exec=* | --exe=* | --ex=*)
1093 exec_prefix=$ac_optarg ;;
1094
1095 -gas | --gas | --ga | --g)
1096 # Obsolete; use --with-gas.
1097 with_gas=yes ;;
1098
1099 -help | --help | --hel | --he | -h)
1100 ac_init_help=long ;;
1101 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102 ac_init_help=recursive ;;
1103 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104 ac_init_help=short ;;
1105
1106 -host | --host | --hos | --ho)
1107 ac_prev=host_alias ;;
1108 -host=* | --host=* | --hos=* | --ho=*)
1109 host_alias=$ac_optarg ;;
1110
1111 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112 ac_prev=htmldir ;;
1113 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114 | --ht=*)
1115 htmldir=$ac_optarg ;;
1116
1117 -includedir | --includedir | --includedi | --included | --include \
1118 | --includ | --inclu | --incl | --inc)
1119 ac_prev=includedir ;;
1120 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121 | --includ=* | --inclu=* | --incl=* | --inc=*)
1122 includedir=$ac_optarg ;;
1123
1124 -infodir | --infodir | --infodi | --infod | --info | --inf)
1125 ac_prev=infodir ;;
1126 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127 infodir=$ac_optarg ;;
1128
1129 -libdir | --libdir | --libdi | --libd)
1130 ac_prev=libdir ;;
1131 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132 libdir=$ac_optarg ;;
1133
1134 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135 | --libexe | --libex | --libe)
1136 ac_prev=libexecdir ;;
1137 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138 | --libexe=* | --libex=* | --libe=*)
1139 libexecdir=$ac_optarg ;;
1140
1141 -localedir | --localedir | --localedi | --localed | --locale)
1142 ac_prev=localedir ;;
1143 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144 localedir=$ac_optarg ;;
1145
1146 -localstatedir | --localstatedir | --localstatedi | --localstated \
1147 | --localstate | --localstat | --localsta | --localst | --locals)
1148 ac_prev=localstatedir ;;
1149 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151 localstatedir=$ac_optarg ;;
1152
1153 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154 ac_prev=mandir ;;
1155 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156 mandir=$ac_optarg ;;
1157
1158 -nfp | --nfp | --nf)
1159 # Obsolete; use --without-fp.
1160 with_fp=no ;;
1161
1162 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163 | --no-cr | --no-c | -n)
1164 no_create=yes ;;
1165
1166 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168 no_recursion=yes ;;
1169
1170 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172 | --oldin | --oldi | --old | --ol | --o)
1173 ac_prev=oldincludedir ;;
1174 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177 oldincludedir=$ac_optarg ;;
1178
1179 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180 ac_prev=prefix ;;
1181 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182 prefix=$ac_optarg ;;
1183
1184 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185 | --program-pre | --program-pr | --program-p)
1186 ac_prev=program_prefix ;;
1187 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189 program_prefix=$ac_optarg ;;
1190
1191 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192 | --program-suf | --program-su | --program-s)
1193 ac_prev=program_suffix ;;
1194 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196 program_suffix=$ac_optarg ;;
1197
1198 -program-transform-name | --program-transform-name \
1199 | --program-transform-nam | --program-transform-na \
1200 | --program-transform-n | --program-transform- \
1201 | --program-transform | --program-transfor \
1202 | --program-transfo | --program-transf \
1203 | --program-trans | --program-tran \
1204 | --progr-tra | --program-tr | --program-t)
1205 ac_prev=program_transform_name ;;
1206 -program-transform-name=* | --program-transform-name=* \
1207 | --program-transform-nam=* | --program-transform-na=* \
1208 | --program-transform-n=* | --program-transform-=* \
1209 | --program-transform=* | --program-transfor=* \
1210 | --program-transfo=* | --program-transf=* \
1211 | --program-trans=* | --program-tran=* \
1212 | --progr-tra=* | --program-tr=* | --program-t=*)
1213 program_transform_name=$ac_optarg ;;
1214
1215 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216 ac_prev=pdfdir ;;
1217 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218 pdfdir=$ac_optarg ;;
1219
1220 -psdir | --psdir | --psdi | --psd | --ps)
1221 ac_prev=psdir ;;
1222 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223 psdir=$ac_optarg ;;
1224
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 silent=yes ;;
1228
1229 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230 ac_prev=sbindir ;;
1231 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232 | --sbi=* | --sb=*)
1233 sbindir=$ac_optarg ;;
1234
1235 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237 | --sharedst | --shareds | --shared | --share | --shar \
1238 | --sha | --sh)
1239 ac_prev=sharedstatedir ;;
1240 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243 | --sha=* | --sh=*)
1244 sharedstatedir=$ac_optarg ;;
1245
1246 -site | --site | --sit)
1247 ac_prev=site ;;
1248 -site=* | --site=* | --sit=*)
1249 site=$ac_optarg ;;
1250
1251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252 ac_prev=srcdir ;;
1253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254 srcdir=$ac_optarg ;;
1255
1256 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257 | --syscon | --sysco | --sysc | --sys | --sy)
1258 ac_prev=sysconfdir ;;
1259 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261 sysconfdir=$ac_optarg ;;
1262
1263 -target | --target | --targe | --targ | --tar | --ta | --t)
1264 ac_prev=target_alias ;;
1265 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266 target_alias=$ac_optarg ;;
1267
1268 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269 verbose=yes ;;
1270
1271 -version | --version | --versio | --versi | --vers | -V)
1272 ac_init_version=: ;;
1273
1274 -with-* | --with-*)
1275 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 as_fn_error "invalid package name: $ac_useropt"
1279 ac_useropt_orig=$ac_useropt
1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1282 *"
1283 "with_$ac_useropt"
1284 "*) ;;
1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286 ac_unrecognized_sep=', ';;
1287 esac
1288 eval with_$ac_useropt=\$ac_optarg ;;
1289
1290 -without-* | --without-*)
1291 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294 as_fn_error "invalid package name: $ac_useropt"
1295 ac_useropt_orig=$ac_useropt
1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1298 *"
1299 "with_$ac_useropt"
1300 "*) ;;
1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302 ac_unrecognized_sep=', ';;
1303 esac
1304 eval with_$ac_useropt=no ;;
1305
1306 --x)
1307 # Obsolete; use --with-x.
1308 with_x=yes ;;
1309
1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311 | --x-incl | --x-inc | --x-in | --x-i)
1312 ac_prev=x_includes ;;
1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315 x_includes=$ac_optarg ;;
1316
1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319 ac_prev=x_libraries ;;
1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322 x_libraries=$ac_optarg ;;
1323
1324 -*) as_fn_error "unrecognized option: \`$ac_option'
1325 Try \`$0 --help' for more information."
1326 ;;
1327
1328 *=*)
1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 case $ac_envvar in #(
1332 '' | [0-9]* | *[!_$as_cr_alnum]* )
1333 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1334 esac
1335 eval $ac_envvar=\$ac_optarg
1336 export $ac_envvar ;;
1337
1338 *)
1339 # FIXME: should be removed in autoconf 3.0.
1340 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344 ;;
1345
1346 esac
1347 done
1348
1349 if test -n "$ac_prev"; then
1350 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351 as_fn_error "missing argument to $ac_option"
1352 fi
1353
1354 if test -n "$ac_unrecognized_opts"; then
1355 case $enable_option_checking in
1356 no) ;;
1357 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359 esac
1360 fi
1361
1362 # Check all directory arguments for consistency.
1363 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
1367 do
1368 eval ac_val=\$$ac_var
1369 # Remove trailing slashes.
1370 case $ac_val in
1371 */ )
1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373 eval $ac_var=\$ac_val;;
1374 esac
1375 # Be sure to have absolute directory names.
1376 case $ac_val in
1377 [\\/$]* | ?:[\\/]* ) continue;;
1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379 esac
1380 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1381 done
1382
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1386 build=$build_alias
1387 host=$host_alias
1388 target=$target_alias
1389
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x; then
1392 if test "x$build_alias" = x; then
1393 cross_compiling=maybe
1394 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1395 If a cross compiler is detected then cross compile mode will be used." >&2
1396 elif test "x$build_alias" != "x$host_alias"; then
1397 cross_compiling=yes
1398 fi
1399 fi
1400
1401 ac_tool_prefix=
1402 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403
1404 test "$silent" = yes && exec 6>/dev/null
1405
1406
1407 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di=`ls -di .` &&
1409 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410 as_fn_error "working directory cannot be determined"
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412 as_fn_error "pwd does not report name of working directory"
1413
1414
1415 # Find the source files, if location was not specified.
1416 if test -z "$srcdir"; then
1417 ac_srcdir_defaulted=yes
1418 # Try the directory containing this script, then the parent directory.
1419 ac_confdir=`$as_dirname -- "$as_myself" ||
1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421 X"$as_myself" : 'X\(//\)[^/]' \| \
1422 X"$as_myself" : 'X\(//\)$' \| \
1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424 $as_echo X"$as_myself" |
1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426 s//\1/
1427 q
1428 }
1429 /^X\(\/\/\)[^/].*/{
1430 s//\1/
1431 q
1432 }
1433 /^X\(\/\/\)$/{
1434 s//\1/
1435 q
1436 }
1437 /^X\(\/\).*/{
1438 s//\1/
1439 q
1440 }
1441 s/.*/./; q'`
1442 srcdir=$ac_confdir
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444 srcdir=..
1445 fi
1446 else
1447 ac_srcdir_defaulted=no
1448 fi
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1452 fi
1453 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 ac_abs_confdir=`(
1455 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1456 pwd)`
1457 # When building in place, set srcdir=.
1458 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459 srcdir=.
1460 fi
1461 # Remove unnecessary trailing slashes from srcdir.
1462 # Double slashes in file names in object file debugging info
1463 # mess up M-x gdb in Emacs.
1464 case $srcdir in
1465 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 esac
1467 for ac_var in $ac_precious_vars; do
1468 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_env_${ac_var}_value=\$${ac_var}
1470 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1472 done
1473
1474 #
1475 # Report the --help message.
1476 #
1477 if test "$ac_init_help" = "long"; then
1478 # Omit some internal or obsolete options to make the list less imposing.
1479 # This message is too long to be a string in the A/UX 3.1 sh.
1480 cat <<_ACEOF
1481 \`configure' configures dime 0.9.1 to adapt to many kinds of systems.
1482
1483 Usage: $0 [OPTION]... [VAR=VALUE]...
1484
1485 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486 VAR=VALUE. See below for descriptions of some of the useful variables.
1487
1488 Defaults for the options are specified in brackets.
1489
1490 Configuration:
1491 -h, --help display this help and exit
1492 --help=short display options specific to this package
1493 --help=recursive display the short help of all the included packages
1494 -V, --version display version information and exit
1495 -q, --quiet, --silent do not print \`checking...' messages
1496 --cache-file=FILE cache test results in FILE [disabled]
1497 -C, --config-cache alias for \`--cache-file=config.cache'
1498 -n, --no-create do not create output files
1499 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1500
1501 Installation directories:
1502 --prefix=PREFIX install architecture-independent files in PREFIX
1503 [$ac_default_prefix]
1504 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1505 [PREFIX]
1506
1507 By default, \`make install' will install all the files in
1508 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1509 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510 for instance \`--prefix=\$HOME'.
1511
1512 For better control, use the options below.
1513
1514 Fine tuning of the installation directories:
1515 --bindir=DIR user executables [EPREFIX/bin]
1516 --sbindir=DIR system admin executables [EPREFIX/sbin]
1517 --libexecdir=DIR program executables [EPREFIX/libexec]
1518 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1519 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1520 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1521 --libdir=DIR object code libraries [EPREFIX/lib]
1522 --includedir=DIR C header files [PREFIX/include]
1523 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1526 --infodir=DIR info documentation [DATAROOTDIR/info]
1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1528 --mandir=DIR man documentation [DATAROOTDIR/man]
1529 --docdir=DIR documentation root [DATAROOTDIR/doc/dime]
1530 --htmldir=DIR html documentation [DOCDIR]
1531 --dvidir=DIR dvi documentation [DOCDIR]
1532 --pdfdir=DIR pdf documentation [DOCDIR]
1533 --psdir=DIR ps documentation [DOCDIR]
1534 _ACEOF
1535
1536 cat <<\_ACEOF
1537
1538 Program names:
1539 --program-prefix=PREFIX prepend PREFIX to installed program names
1540 --program-suffix=SUFFIX append SUFFIX to installed program names
1541 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1542
1543 System types:
1544 --build=BUILD configure for building on BUILD [guessed]
1545 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1546 --target=TARGET configure for building compilers for TARGET [HOST]
1547 _ACEOF
1548 fi
1549
1550 if test -n "$ac_init_help"; then
1551 case $ac_init_help in
1552 short | recursive ) echo "Configuration of dime 0.9.1:";;
1553 esac
1554 cat <<\_ACEOF
1555
1556 Optional Features:
1557 --disable-option-checking ignore unrecognized --enable/--with options
1558 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1559 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1560 --enable-msvcdsp build .dsp, not library
1561 --disable-msvc don't require MS Visual C++ on Cygwin
1562 --disable-dependency-tracking speeds up one-time build
1563 --enable-dependency-tracking do not reject slow dependency extractors
1564 --enable-static[=PKGS] build static libraries [default=no]
1565 --enable-maintainer-mode enable make rules and dependencies not useful
1566 (and sometimes confusing) to the casual installer
1567 --enable-shared[=PKGS] build shared libraries [default=yes]
1568 --enable-fast-install[=PKGS]
1569 optimize for fast installation [default=yes]
1570 --disable-libtool-lock avoid locking (might break parallel builds)
1571 --disable-build disable configuration for library build
1572 --enable-html build and install Dime HTML documentation
1573 --enable-optimization allow compilers to make optimized code
1574 [[default=yes]]
1575 --enable-debug compile in debug mode [[default=yes]]
1576 --enable-symbols include symbol debug information [[default=yes]]
1577 --enable-symbols turn on symbol debug information default=yes
1578 --enable-profile turn on inclusion of profiling code default=no
1579 --enable-warnings turn on warnings when compiling default=no
1580
1581 Optional Packages:
1582 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1583 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1584 --with-msvcrt=<crt> set which C run-time library to build against
1585 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1586 --with-pic try to use only PIC/non-PIC objects [default=use
1587 both]
1588 --with-tags[=TAGS] include additional configurations [automatic]
1589 --with-doxygen=DIR DIR is the directory where the doxygen executable
1590 resides
1591
1592 Some influential environment variables:
1593 CC C compiler command
1594 CFLAGS C compiler flags
1595 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1596 nonstandard directory <lib dir>
1597 LIBS libraries to pass to the linker, e.g. -l<library>
1598 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1599 you have headers in a nonstandard directory <include dir>
1600 CPP C preprocessor
1601 CXX C++ compiler command
1602 CXXFLAGS C++ compiler flags
1603 CXXCPP C++ preprocessor
1604 F77 Fortran 77 compiler command
1605 FFLAGS Fortran 77 compiler flags
1606
1607 Use these variables to override the choices made by `configure' or to help
1608 it to find libraries and programs with nonstandard names/locations.
1609
1610 Report bugs to <[email protected]>.
1611 _ACEOF
1612 ac_status=$?
1613 fi
1614
1615 if test "$ac_init_help" = "recursive"; then
1616 # If there are subdirs, report their specific --help.
1617 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1618 test -d "$ac_dir" ||
1619 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1620 continue
1621 ac_builddir=.
1622
1623 case "$ac_dir" in
1624 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 *)
1626 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1627 # A ".." for each directory in $ac_dir_suffix.
1628 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1629 case $ac_top_builddir_sub in
1630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1632 esac ;;
1633 esac
1634 ac_abs_top_builddir=$ac_pwd
1635 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1636 # for backward compatibility:
1637 ac_top_builddir=$ac_top_build_prefix
1638
1639 case $srcdir in
1640 .) # We are building in place.
1641 ac_srcdir=.
1642 ac_top_srcdir=$ac_top_builddir_sub
1643 ac_abs_top_srcdir=$ac_pwd ;;
1644 [\\/]* | ?:[\\/]* ) # Absolute name.
1645 ac_srcdir=$srcdir$ac_dir_suffix;
1646 ac_top_srcdir=$srcdir
1647 ac_abs_top_srcdir=$srcdir ;;
1648 *) # Relative name.
1649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1650 ac_top_srcdir=$ac_top_build_prefix$srcdir
1651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1652 esac
1653 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1654
1655 cd "$ac_dir" || { ac_status=$?; continue; }
1656 # Check for guested configure.
1657 if test -f "$ac_srcdir/configure.gnu"; then
1658 echo &&
1659 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1660 elif test -f "$ac_srcdir/configure"; then
1661 echo &&
1662 $SHELL "$ac_srcdir/configure" --help=recursive
1663 else
1664 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1665 fi || ac_status=$?
1666 cd "$ac_pwd" || { ac_status=$?; break; }
1667 done
1668 fi
1669
1670 test -n "$ac_init_help" && exit $ac_status
1671 if $ac_init_version; then
1672 cat <<\_ACEOF
1673 dime configure 0.9.1
1674 generated by GNU Autoconf 2.65
1675
1676 Copyright (C) 2009 Free Software Foundation, Inc.
1677 This configure script is free software; the Free Software Foundation
1678 gives unlimited permission to copy, distribute and modify it.
1679 _ACEOF
1680 exit
1681 fi
1682
1683 ## ------------------------ ##
1684 ## Autoconf initialization. ##
1685 ## ------------------------ ##
1686
1687 # ac_fn_c_try_compile LINENO
1688 # --------------------------
1689 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_compile ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext
1694 if { { ac_try="$ac_compile"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_compile") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest.$ac_objext; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1
1719 fi
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 as_fn_set_status $ac_retval
1722
1723 } # ac_fn_c_try_compile
1724
1725 # ac_fn_c_try_cpp LINENO
1726 # ----------------------
1727 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_c_try_cpp ()
1729 {
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 if { { ac_try="$ac_cpp conftest.$ac_ext"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1744 fi
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } >/dev/null && {
1747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 }; then :
1750 ac_retval=0
1751 else
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=1
1756 fi
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 as_fn_set_status $ac_retval
1759
1760 } # ac_fn_c_try_cpp
1761
1762 # ac_fn_cxx_try_compile LINENO
1763 # ----------------------------
1764 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_cxx_try_compile ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext
1769 if { { ac_try="$ac_compile"
1770 case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_compile") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_cxx_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest.$ac_objext; then :
1788 ac_retval=0
1789 else
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1792
1793 ac_retval=1
1794 fi
1795 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796 as_fn_set_status $ac_retval
1797
1798 } # ac_fn_cxx_try_compile
1799
1800 # ac_fn_cxx_try_cpp LINENO
1801 # ------------------------
1802 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_cxx_try_cpp ()
1804 {
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 if { { ac_try="$ac_cpp conftest.$ac_ext"
1807 case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1819 fi
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } >/dev/null && {
1822 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1823 test ! -s conftest.err
1824 }; then :
1825 ac_retval=0
1826 else
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 ac_retval=1
1831 fi
1832 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1833 as_fn_set_status $ac_retval
1834
1835 } # ac_fn_cxx_try_cpp
1836
1837 # ac_fn_cxx_try_link LINENO
1838 # -------------------------
1839 # Try to link conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_cxx_try_link ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 rm -f conftest.$ac_objext conftest$ac_exeext
1844 if { { ac_try="$ac_link"
1845 case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_link") 2>conftest.err
1852 ac_status=$?
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1857 fi
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && {
1860 test -z "$ac_cxx_werror_flag" ||
1861 test ! -s conftest.err
1862 } && test -s conftest$ac_exeext && {
1863 test "$cross_compiling" = yes ||
1864 $as_test_x conftest$ac_exeext
1865 }; then :
1866 ac_retval=0
1867 else
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1870
1871 ac_retval=1
1872 fi
1873 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1874 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1875 # interfere with the next link command; also delete a directory that is
1876 # left behind by Apple's compiler. We do this before executing the actions.
1877 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879 as_fn_set_status $ac_retval
1880
1881 } # ac_fn_cxx_try_link
1882
1883 # ac_fn_c_try_link LINENO
1884 # -----------------------
1885 # Try to link conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_c_try_link ()
1887 {
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext conftest$ac_exeext
1890 if { { ac_try="$ac_link"
1891 case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_link") 2>conftest.err
1898 ac_status=$?
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1903 fi
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_c_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest$ac_exeext && {
1909 test "$cross_compiling" = yes ||
1910 $as_test_x conftest$ac_exeext
1911 }; then :
1912 ac_retval=0
1913 else
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1916
1917 ac_retval=1
1918 fi
1919 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1920 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1921 # interfere with the next link command; also delete a directory that is
1922 # left behind by Apple's compiler. We do this before executing the actions.
1923 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1924 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1925 as_fn_set_status $ac_retval
1926
1927 } # ac_fn_c_try_link
1928
1929 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1930 # -------------------------------------------------------
1931 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1932 # the include files in INCLUDES and setting the cache variable VAR
1933 # accordingly.
1934 ac_fn_c_check_header_mongrel ()
1935 {
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1941 $as_echo_n "(cached) " >&6
1942 fi
1943 eval ac_res=\$$3
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 $as_echo "$ac_res" >&6; }
1946 else
1947 # Is the header compilable?
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1949 $as_echo_n "checking $2 usability... " >&6; }
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1952 $4
1953 #include <$2>
1954 _ACEOF
1955 if ac_fn_c_try_compile "$LINENO"; then :
1956 ac_header_compiler=yes
1957 else
1958 ac_header_compiler=no
1959 fi
1960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1962 $as_echo "$ac_header_compiler" >&6; }
1963
1964 # Is the header present?
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1966 $as_echo_n "checking $2 presence... " >&6; }
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1969 #include <$2>
1970 _ACEOF
1971 if ac_fn_c_try_cpp "$LINENO"; then :
1972 ac_header_preproc=yes
1973 else
1974 ac_header_preproc=no
1975 fi
1976 rm -f conftest.err conftest.$ac_ext
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1978 $as_echo "$ac_header_preproc" >&6; }
1979
1980 # So? What about this header?
1981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1982 yes:no: )
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1984 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1986 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1987 ;;
1988 no:yes:* )
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1990 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1992 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1994 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1996 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1998 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1999 ( cat <<\_ASBOX
2000 ## -------------------------------------- ##
2001 ## Report this to [email protected] ##
2002 ## -------------------------------------- ##
2003 _ASBOX
2004 ) | sed "s/^/$as_me: WARNING: /" >&2
2005 ;;
2006 esac
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008 $as_echo_n "checking for $2... " >&6; }
2009 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2010 $as_echo_n "(cached) " >&6
2011 else
2012 eval "$3=\$ac_header_compiler"
2013 fi
2014 eval ac_res=\$$3
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2017 fi
2018 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2019
2020 } # ac_fn_c_check_header_mongrel
2021
2022 # ac_fn_c_try_run LINENO
2023 # ----------------------
2024 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2025 # that executables *can* be run.
2026 ac_fn_c_try_run ()
2027 {
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 if { { ac_try="$ac_link"
2030 case "(($ac_try" in
2031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2032 *) ac_try_echo=$ac_try;;
2033 esac
2034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035 $as_echo "$ac_try_echo"; } >&5
2036 (eval "$ac_link") 2>&5
2037 ac_status=$?
2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2040 { { case "(($ac_try" in
2041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2042 *) ac_try_echo=$ac_try;;
2043 esac
2044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2045 $as_echo "$ac_try_echo"; } >&5
2046 (eval "$ac_try") 2>&5
2047 ac_status=$?
2048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2049 test $ac_status = 0; }; }; then :
2050 ac_retval=0
2051 else
2052 $as_echo "$as_me: program exited with status $ac_status" >&5
2053 $as_echo "$as_me: failed program was:" >&5
2054 sed 's/^/| /' conftest.$ac_ext >&5
2055
2056 ac_retval=$ac_status
2057 fi
2058 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2059 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2060 as_fn_set_status $ac_retval
2061
2062 } # ac_fn_c_try_run
2063
2064 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2065 # -------------------------------------------------------
2066 # Tests whether HEADER exists and can be compiled using the include files in
2067 # INCLUDES, setting the cache variable VAR accordingly.
2068 ac_fn_c_check_header_compile ()
2069 {
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2074 $as_echo_n "(cached) " >&6
2075 else
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2078 $4
2079 #include <$2>
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082 eval "$3=yes"
2083 else
2084 eval "$3=no"
2085 fi
2086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 fi
2088 eval ac_res=\$$3
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2090 $as_echo "$ac_res" >&6; }
2091 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2092
2093 } # ac_fn_c_check_header_compile
2094
2095 # ac_fn_c_check_func LINENO FUNC VAR
2096 # ----------------------------------
2097 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2098 ac_fn_c_check_func ()
2099 {
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102 $as_echo_n "checking for $2... " >&6; }
2103 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2104 $as_echo_n "(cached) " >&6
2105 else
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2108 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2110 #define $2 innocuous_$2
2111
2112 /* System header to define __stub macros and hopefully few prototypes,
2113 which can conflict with char $2 (); below.
2114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2115 <limits.h> exists even on freestanding compilers. */
2116
2117 #ifdef __STDC__
2118 # include <limits.h>
2119 #else
2120 # include <assert.h>
2121 #endif
2122
2123 #undef $2
2124
2125 /* Override any GCC internal prototype to avoid an error.
2126 Use char because int might match the return type of a GCC
2127 builtin and then its argument prototype would still apply. */
2128 #ifdef __cplusplus
2129 extern "C"
2130 #endif
2131 char $2 ();
2132 /* The GNU C library defines this for functions which it implements
2133 to always fail with ENOSYS. Some functions are actually named
2134 something starting with __ and the normal name is an alias. */
2135 #if defined __stub_$2 || defined __stub___$2
2136 choke me
2137 #endif
2138
2139 int
2140 main ()
2141 {
2142 return $2 ();
2143 ;
2144 return 0;
2145 }
2146 _ACEOF
2147 if ac_fn_c_try_link "$LINENO"; then :
2148 eval "$3=yes"
2149 else
2150 eval "$3=no"
2151 fi
2152 rm -f core conftest.err conftest.$ac_objext \
2153 conftest$ac_exeext conftest.$ac_ext
2154 fi
2155 eval ac_res=\$$3
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2157 $as_echo "$ac_res" >&6; }
2158 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2159
2160 } # ac_fn_c_check_func
2161
2162 # ac_fn_f77_try_compile LINENO
2163 # ----------------------------
2164 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2165 ac_fn_f77_try_compile ()
2166 {
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 rm -f conftest.$ac_objext
2169 if { { ac_try="$ac_compile"
2170 case "(($ac_try" in
2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172 *) ac_try_echo=$ac_try;;
2173 esac
2174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175 $as_echo "$ac_try_echo"; } >&5
2176 (eval "$ac_compile") 2>conftest.err
2177 ac_status=$?
2178 if test -s conftest.err; then
2179 grep -v '^ *+' conftest.err >conftest.er1
2180 cat conftest.er1 >&5
2181 mv -f conftest.er1 conftest.err
2182 fi
2183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184 test $ac_status = 0; } && {
2185 test -z "$ac_f77_werror_flag" ||
2186 test ! -s conftest.err
2187 } && test -s conftest.$ac_objext; then :
2188 ac_retval=0
2189 else
2190 $as_echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2192
2193 ac_retval=1
2194 fi
2195 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2196 as_fn_set_status $ac_retval
2197
2198 } # ac_fn_f77_try_compile
2199
2200 # ac_fn_f77_try_link LINENO
2201 # -------------------------
2202 # Try to link conftest.$ac_ext, and return whether this succeeded.
2203 ac_fn_f77_try_link ()
2204 {
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 rm -f conftest.$ac_objext conftest$ac_exeext
2207 if { { ac_try="$ac_link"
2208 case "(($ac_try" in
2209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210 *) ac_try_echo=$ac_try;;
2211 esac
2212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2213 $as_echo "$ac_try_echo"; } >&5
2214 (eval "$ac_link") 2>conftest.err
2215 ac_status=$?
2216 if test -s conftest.err; then
2217 grep -v '^ *+' conftest.err >conftest.er1
2218 cat conftest.er1 >&5
2219 mv -f conftest.er1 conftest.err
2220 fi
2221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2222 test $ac_status = 0; } && {
2223 test -z "$ac_f77_werror_flag" ||
2224 test ! -s conftest.err
2225 } && test -s conftest$ac_exeext && {
2226 test "$cross_compiling" = yes ||
2227 $as_test_x conftest$ac_exeext
2228 }; then :
2229 ac_retval=0
2230 else
2231 $as_echo "$as_me: failed program was:" >&5
2232 sed 's/^/| /' conftest.$ac_ext >&5
2233
2234 ac_retval=1
2235 fi
2236 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2237 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2238 # interfere with the next link command; also delete a directory that is
2239 # left behind by Apple's compiler. We do this before executing the actions.
2240 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2241 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2242 as_fn_set_status $ac_retval
2243
2244 } # ac_fn_f77_try_link
2245
2246 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2247 # ---------------------------------------------------------
2248 # Tests whether HEADER exists and can be compiled using the include files in
2249 # INCLUDES, setting the cache variable VAR accordingly.
2250 ac_fn_cxx_check_header_compile ()
2251 {
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254 $as_echo_n "checking for $2... " >&6; }
2255 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2256 $as_echo_n "(cached) " >&6
2257 else
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2260 $4
2261 #include <$2>
2262 _ACEOF
2263 if ac_fn_cxx_try_compile "$LINENO"; then :
2264 eval "$3=yes"
2265 else
2266 eval "$3=no"
2267 fi
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 fi
2270 eval ac_res=\$$3
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2272 $as_echo "$ac_res" >&6; }
2273 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2274
2275 } # ac_fn_cxx_check_header_compile
2276 cat >config.log <<_ACEOF
2277 This file contains any messages produced by compilers while
2278 running configure, to aid debugging if configure makes a mistake.
2279
2280 It was created by dime $as_me 0.9.1, which was
2281 generated by GNU Autoconf 2.65. Invocation command line was
2282
2283 $ $0 $@
2284
2285 _ACEOF
2286 exec 5>>config.log
2287 {
2288 cat <<_ASUNAME
2289 ## --------- ##
2290 ## Platform. ##
2291 ## --------- ##
2292
2293 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2294 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2295 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2296 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2297 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2298
2299 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2300 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2301
2302 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2303 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2304 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2305 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2306 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2307 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2308 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2309
2310 _ASUNAME
2311
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2314 do
2315 IFS=$as_save_IFS
2316 test -z "$as_dir" && as_dir=.
2317 $as_echo "PATH: $as_dir"
2318 done
2319 IFS=$as_save_IFS
2320
2321 } >&5
2322
2323 cat >&5 <<_ACEOF
2324
2325
2326 ## ----------- ##
2327 ## Core tests. ##
2328 ## ----------- ##
2329
2330 _ACEOF
2331
2332
2333 # Keep a trace of the command line.
2334 # Strip out --no-create and --no-recursion so they do not pile up.
2335 # Strip out --silent because we don't want to record it for future runs.
2336 # Also quote any args containing shell meta-characters.
2337 # Make two passes to allow for proper duplicate-argument suppression.
2338 ac_configure_args=
2339 ac_configure_args0=
2340 ac_configure_args1=
2341 ac_must_keep_next=false
2342 for ac_pass in 1 2
2343 do
2344 for ac_arg
2345 do
2346 case $ac_arg in
2347 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2348 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2349 | -silent | --silent | --silen | --sile | --sil)
2350 continue ;;
2351 *\'*)
2352 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2353 esac
2354 case $ac_pass in
2355 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2356 2)
2357 as_fn_append ac_configure_args1 " '$ac_arg'"
2358 if test $ac_must_keep_next = true; then
2359 ac_must_keep_next=false # Got value, back to normal.
2360 else
2361 case $ac_arg in
2362 *=* | --config-cache | -C | -disable-* | --disable-* \
2363 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2364 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2365 | -with-* | --with-* | -without-* | --without-* | --x)
2366 case "$ac_configure_args0 " in
2367 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2368 esac
2369 ;;
2370 -* ) ac_must_keep_next=true ;;
2371 esac
2372 fi
2373 as_fn_append ac_configure_args " '$ac_arg'"
2374 ;;
2375 esac
2376 done
2377 done
2378 { ac_configure_args0=; unset ac_configure_args0;}
2379 { ac_configure_args1=; unset ac_configure_args1;}
2380
2381 # When interrupted or exit'd, cleanup temporary files, and complete
2382 # config.log. We remove comments because anyway the quotes in there
2383 # would cause problems or look ugly.
2384 # WARNING: Use '\'' to represent an apostrophe within the trap.
2385 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2386 trap 'exit_status=$?
2387 # Save into config.log some information that might help in debugging.
2388 {
2389 echo
2390
2391 cat <<\_ASBOX
2392 ## ---------------- ##
2393 ## Cache variables. ##
2394 ## ---------------- ##
2395 _ASBOX
2396 echo
2397 # The following way of writing the cache mishandles newlines in values,
2398 (
2399 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2400 eval ac_val=\$$ac_var
2401 case $ac_val in #(
2402 *${as_nl}*)
2403 case $ac_var in #(
2404 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2405 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2406 esac
2407 case $ac_var in #(
2408 _ | IFS | as_nl) ;; #(
2409 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2410 *) { eval $ac_var=; unset $ac_var;} ;;
2411 esac ;;
2412 esac
2413 done
2414 (set) 2>&1 |
2415 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2416 *${as_nl}ac_space=\ *)
2417 sed -n \
2418 "s/'\''/'\''\\\\'\'''\''/g;
2419 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2420 ;; #(
2421 *)
2422 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2423 ;;
2424 esac |
2425 sort
2426 )
2427 echo
2428
2429 cat <<\_ASBOX
2430 ## ----------------- ##
2431 ## Output variables. ##
2432 ## ----------------- ##
2433 _ASBOX
2434 echo
2435 for ac_var in $ac_subst_vars
2436 do
2437 eval ac_val=\$$ac_var
2438 case $ac_val in
2439 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2440 esac
2441 $as_echo "$ac_var='\''$ac_val'\''"
2442 done | sort
2443 echo
2444
2445 if test -n "$ac_subst_files"; then
2446 cat <<\_ASBOX
2447 ## ------------------- ##
2448 ## File substitutions. ##
2449 ## ------------------- ##
2450 _ASBOX
2451 echo
2452 for ac_var in $ac_subst_files
2453 do
2454 eval ac_val=\$$ac_var
2455 case $ac_val in
2456 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2457 esac
2458 $as_echo "$ac_var='\''$ac_val'\''"
2459 done | sort
2460 echo
2461 fi
2462
2463 if test -s confdefs.h; then
2464 cat <<\_ASBOX
2465 ## ----------- ##
2466 ## confdefs.h. ##
2467 ## ----------- ##
2468 _ASBOX
2469 echo
2470 cat confdefs.h
2471 echo
2472 fi
2473 test "$ac_signal" != 0 &&
2474 $as_echo "$as_me: caught signal $ac_signal"
2475 $as_echo "$as_me: exit $exit_status"
2476 } >&5
2477 rm -f core *.core core.conftest.* &&
2478 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2479 exit $exit_status
2480 ' 0
2481 for ac_signal in 1 2 13 15; do
2482 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2483 done
2484 ac_signal=0
2485
2486 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2487 rm -f -r conftest* confdefs.h
2488
2489 $as_echo "/* confdefs.h */" > confdefs.h
2490
2491 # Predefined preprocessor variables.
2492
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE_NAME "$PACKAGE_NAME"
2495 _ACEOF
2496
2497 cat >>confdefs.h <<_ACEOF
2498 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2499 _ACEOF
2500
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2503 _ACEOF
2504
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_STRING "$PACKAGE_STRING"
2507 _ACEOF
2508
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2511 _ACEOF
2512
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_URL "$PACKAGE_URL"
2515 _ACEOF
2516
2517
2518 # Let the site file select an alternate cache file if it wants to.
2519 # Prefer an explicitly selected file to automatically selected ones.
2520 ac_site_file1=NONE
2521 ac_site_file2=NONE
2522 if test -n "$CONFIG_SITE"; then
2523 ac_site_file1=$CONFIG_SITE
2524 elif test "x$prefix" != xNONE; then
2525 ac_site_file1=$prefix/share/config.site
2526 ac_site_file2=$prefix/etc/config.site
2527 else
2528 ac_site_file1=$ac_default_prefix/share/config.site
2529 ac_site_file2=$ac_default_prefix/etc/config.site
2530 fi
2531 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2532 do
2533 test "x$ac_site_file" = xNONE && continue
2534 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2536 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2537 sed 's/^/| /' "$ac_site_file" >&5
2538 . "$ac_site_file"
2539 fi
2540 done
2541
2542 if test -r "$cache_file"; then
2543 # Some versions of bash will fail to source /dev/null (special files
2544 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2545 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2547 $as_echo "$as_me: loading cache $cache_file" >&6;}
2548 case $cache_file in
2549 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2550 *) . "./$cache_file";;
2551 esac
2552 fi
2553 else
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2555 $as_echo "$as_me: creating cache $cache_file" >&6;}
2556 >$cache_file
2557 fi
2558
2559 # Check that the precious variables saved in the cache have kept the same
2560 # value.
2561 ac_cache_corrupted=false
2562 for ac_var in $ac_precious_vars; do
2563 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2564 eval ac_new_set=\$ac_env_${ac_var}_set
2565 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2566 eval ac_new_val=\$ac_env_${ac_var}_value
2567 case $ac_old_set,$ac_new_set in
2568 set,)
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2570 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2571 ac_cache_corrupted=: ;;
2572 ,set)
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2574 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2575 ac_cache_corrupted=: ;;
2576 ,);;
2577 *)
2578 if test "x$ac_old_val" != "x$ac_new_val"; then
2579 # differences in whitespace do not lead to failure.
2580 ac_old_val_w=`echo x $ac_old_val`
2581 ac_new_val_w=`echo x $ac_new_val`
2582 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2584 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2585 ac_cache_corrupted=:
2586 else
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2588 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2589 eval $ac_var=\$ac_old_val
2590 fi
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2592 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2594 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2595 fi;;
2596 esac
2597 # Pass precious variables to config.status.
2598 if test "$ac_new_set" = set; then
2599 case $ac_new_val in
2600 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2601 *) ac_arg=$ac_var=$ac_new_val ;;
2602 esac
2603 case " $ac_configure_args " in
2604 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2605 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2606 esac
2607 fi
2608 done
2609 if $ac_cache_corrupted; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2613 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2614 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2615 fi
2616 ## -------------------- ##
2617 ## Main body of script. ##
2618 ## -------------------- ##
2619
2620 ac_ext=c
2621 ac_cpp='$CPP $CPPFLAGS'
2622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2625
2626
2627
2628
2629 ac_aux_dir=
2630 for ac_dir in cfg "$srcdir"/cfg; do
2631 for ac_t in install-sh install.sh shtool; do
2632 if test -f "$ac_dir/$ac_t"; then
2633 ac_aux_dir=$ac_dir
2634 ac_install_sh="$ac_aux_dir/$ac_t -c"
2635 break 2
2636 fi
2637 done
2638 done
2639 if test -z "$ac_aux_dir"; then
2640 as_fn_error "cannot find install-sh, install.sh, or shtool in cfg \"$srcdir\"/cfg" "$LINENO" 5
2641 fi
2642
2643 # These three variables are undocumented and unsupported,
2644 # and are intended to be withdrawn in a future Autoconf release.
2645 # They can cause serious problems if a builder's source tree is in a directory
2646 # whose full name contains unusual characters.
2647 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2648 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2649 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2650
2651
2652
2653 # Make sure we can run config.sub.
2654 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2655 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2656
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2658 $as_echo_n "checking build system type... " >&6; }
2659 if test "${ac_cv_build+set}" = set; then :
2660 $as_echo_n "(cached) " >&6
2661 else
2662 ac_build_alias=$build_alias
2663 test "x$ac_build_alias" = x &&
2664 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2665 test "x$ac_build_alias" = x &&
2666 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2667 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2668 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2669
2670 fi
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2672 $as_echo "$ac_cv_build" >&6; }
2673 case $ac_cv_build in
2674 *-*-*) ;;
2675 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2676 esac
2677 build=$ac_cv_build
2678 ac_save_IFS=$IFS; IFS='-'
2679 set x $ac_cv_build
2680 shift
2681 build_cpu=$1
2682 build_vendor=$2
2683 shift; shift
2684 # Remember, the first character of IFS is used to create $*,
2685 # except with old shells:
2686 build_os=$*
2687 IFS=$ac_save_IFS
2688 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2689
2690
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2692 $as_echo_n "checking host system type... " >&6; }
2693 if test "${ac_cv_host+set}" = set; then :
2694 $as_echo_n "(cached) " >&6
2695 else
2696 if test "x$host_alias" = x; then
2697 ac_cv_host=$ac_cv_build
2698 else
2699 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2700 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2701 fi
2702
2703 fi
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2705 $as_echo "$ac_cv_host" >&6; }
2706 case $ac_cv_host in
2707 *-*-*) ;;
2708 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2709 esac
2710 host=$ac_cv_host
2711 ac_save_IFS=$IFS; IFS='-'
2712 set x $ac_cv_host
2713 shift
2714 host_cpu=$1
2715 host_vendor=$2
2716 shift; shift
2717 # Remember, the first character of IFS is used to create $*,
2718 # except with old shells:
2719 host_os=$*
2720 IFS=$ac_save_IFS
2721 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2722
2723
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2725 $as_echo_n "checking target system type... " >&6; }
2726 if test "${ac_cv_target+set}" = set; then :
2727 $as_echo_n "(cached) " >&6
2728 else
2729 if test "x$target_alias" = x; then
2730 ac_cv_target=$ac_cv_host
2731 else
2732 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2733 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2734 fi
2735
2736 fi
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2738 $as_echo "$ac_cv_target" >&6; }
2739 case $ac_cv_target in
2740 *-*-*) ;;
2741 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2742 esac
2743 target=$ac_cv_target
2744 ac_save_IFS=$IFS; IFS='-'
2745 set x $ac_cv_target
2746 shift
2747 target_cpu=$1
2748 target_vendor=$2
2749 shift; shift
2750 # Remember, the first character of IFS is used to create $*,
2751 # except with old shells:
2752 target_os=$*
2753 IFS=$ac_save_IFS
2754 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2755
2756
2757 # The aliases save the names the user supplied, while $host etc.
2758 # will get canonicalized.
2759 test -n "$target_alias" &&
2760 test "$program_prefix$program_suffix$program_transform_name" = \
2761 NONENONEs,x,x, &&
2762 program_prefix=${target_alias}-
2763
2764
2765 DIME_MAJOR_VERSION=0
2766
2767 DIME_MINOR_VERSION=9
2768
2769 DIME_MICRO_VERSION=1
2770
2771 DIME_BETA_VERSION=1
2772
2773 DIME_VERSION=0.9.1
2774
2775
2776 VERSION=$DIME_VERSION
2777
2778 DIME_INTERFACE_AGE=0
2779
2780 DIME_BINARY_AGE=0
2781
2782
2783
2784 # Check whether --enable-msvcdsp was given.
2785 if test "${enable_msvcdsp+set}" = set; then :
2786 enableval=$enable_msvcdsp; case $enableval in
2787 no | false) sim_ac_make_dsp=false ;;
2788 *) sim_ac_make_dsp=true ;;
2789 esac
2790 else
2791 sim_ac_make_dsp=false
2792 fi
2793
2794
2795 if $sim_ac_make_dsp; then
2796 enable_dependency_tracking=no
2797 enable_libtool_lock=no
2798 fi
2799
2800
2801
2802 # Check whether --enable-msvc was given.
2803 if test "${enable_msvc+set}" = set; then :
2804 enableval=$enable_msvc; case $enableval in
2805 no | false) sim_ac_try_msvc=false ;;
2806 *) sim_ac_try_msvc=true ;;
2807 esac
2808 else
2809 sim_ac_try_msvc=true
2810 fi
2811
2812
2813
2814 sim_ac_full_builddir=`pwd`
2815 sim_ac_full_srcdir=`cd $srcdir; pwd`
2816 if test -z "`echo $sim_ac_full_srcdir | tr -cd ' '`"; then :; else
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected space character in the path leading up to the Coin source directory - this will probably cause random problems later. You are advised to move the Coin source directory to another location." >&5
2818 $as_echo "$as_me: WARNING: Detected space character in the path leading up to the Coin source directory - this will probably cause random problems later. You are advised to move the Coin source directory to another location." >&2;}
2819
2820 if test x"${sim_ac_configuration_warnings+set}" = x"set"; then
2821 sim_ac_configuration_warnings="$sim_ac_configuration_warnings|Detected space character in the path leading up to the Coin source directory - this will probably cause random problems later. You are advised to move the Coin source directory to another location."
2822 else
2823 sim_ac_configuration_warnings="Detected space character in the path leading up to the Coin source directory - this will probably cause random problems later. You are advised to move the Coin source directory to another location."
2824 fi
2825
2826 fi
2827 if test -z "`echo $sim_ac_full_builddir | tr -cd ' '`"; then :; else
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected space character in the path leading up to the Coin build directory - this will probably cause random problems later. You are advised to move the Coin build directory to another location." >&5
2829 $as_echo "$as_me: WARNING: Detected space character in the path leading up to the Coin build directory - this will probably cause random problems later. You are advised to move the Coin build directory to another location." >&2;}
2830
2831 if test x"${sim_ac_configuration_warnings+set}" = x"set"; then
2832 sim_ac_configuration_warnings="$sim_ac_configuration_warnings|Detected space character in the path leading up to the Coin build directory - this will probably cause random problems later. You are advised to move the Coin build directory to another location."
2833 else
2834 sim_ac_configuration_warnings="Detected space character in the path leading up to the Coin build directory - this will probably cause random problems later. You are advised to move the Coin build directory to another location."
2835 fi
2836
2837 fi
2838
2839
2840
2841
2842
2843 : ${BUILD_WITH_MSVC=false}
2844 if $sim_ac_try_msvc; then
2845 if test -z "$CC" -a -z "$CXX"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking setup for wrapmsvc.exe" >&5
2847 $as_echo_n "checking setup for wrapmsvc.exe... " >&6; }
2848 case $host in
2849 *-cygwin)
2850 valid_system=true
2851 ;;
2852 * )
2853 valid_system=false
2854 ;;
2855 esac
2856 if $valid_system; then
2857 sim_ac_wrapmsvc=`cd $ac_aux_dir; pwd`/wrapmsvc.exe
2858 echo "$as_me:$LINENO: sim_ac_wrapmsvc=$sim_ac_wrapmsvc" >&5
2859 if $sim_ac_wrapmsvc >&5 2>&5; then
2860
2861
2862 CC=$sim_ac_wrapmsvc
2863 CXX=$sim_ac_wrapmsvc
2864 export CC CXX
2865 BUILD_WITH_MSVC=true
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5
2867 $as_echo "working" >&6; }
2868
2869 # Robustness: we had multiple reports of Cygwin ''link'' getting in
2870 # the way of MSVC link.exe, so do a little sanity check for that.
2871 #
2872 # FIXME: a better fix would be to call link.exe with full path from
2873 # the wrapmsvc wrapper, to avoid any trouble with this -- I believe
2874 # that should be possible, using the dirname of the full cl.exe path.
2875 # 20050714 mortene.
2876 sim_ac_check_link=`type link`
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Cygwin's /usr/bin/link shadows MSVC link.exe" >&5
2878 $as_echo_n "checking whether Cygwin's /usr/bin/link shadows MSVC link.exe... " >&6; }
2879 case x"$sim_ac_check_link" in
2880 x"link is /usr/bin/link"* )
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2882 $as_echo "yes" >&6; }
2883
2884 echo >&2 ""
2885
2886
2887 : ${sim_ac_message_file=$ac_aux_dir/errors.txt}
2888 if test -f $sim_ac_message_file; then
2889 sim_ac_message="`sed -n -e '/^!cygwin-link$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`"
2890 if test x"$sim_ac_message" = x""; then
2891 as_fn_error "no message named 'cygwin-link' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5
2892 else
2893 eval "echo >&2 \"$sim_ac_message\""
2894 fi
2895 else
2896 as_fn_error "file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5
2897 fi
2898
2899
2900
2901 echo >&2 ""
2902 as_fn_error "aborting" "$LINENO" 5
2903
2904 ;;
2905 * )
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2908 ;;
2909 esac
2910
2911 else
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not working" >&5
2913 $as_echo "not working" >&6; }
2914
2915 echo >&2 ""
2916
2917
2918 : ${sim_ac_message_file=$ac_aux_dir/errors.txt}
2919 if test -f $sim_ac_message_file; then
2920 sim_ac_message="`sed -n -e '/^!no-msvc++$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`"
2921 if test x"$sim_ac_message" = x""; then
2922 as_fn_error "no message named 'no-msvc++' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5
2923 else
2924 eval "echo >&2 \"$sim_ac_message\""
2925 fi
2926 else
2927 as_fn_error "file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5
2928 fi
2929
2930
2931
2932 echo >&2 ""
2933 as_fn_error "aborting" "$LINENO" 5
2934
2935 fi
2936 else
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not a cygwin host" >&5
2938 $as_echo "not a cygwin host" >&6; }
2939 fi
2940 fi
2941 fi
2942 export BUILD_WITH_MSVC
2943
2944
2945 if $BUILD_WITH_MSVC; then
2946 :
2947 else
2948 :
2949 fi
2950
2951 if $BUILD_WITH_MSVC; then
2952 sim_ac_msvcrt_LDFLAGS=""
2953 sim_ac_msvcrt_LIBS=""
2954
2955
2956 # Check whether --with-msvcrt was given.
2957 if test "${with_msvcrt+set}" = set; then :
2958 withval=$with_msvcrt; case `echo "$withval" | tr "A-Z" "a-z"` in
2959 default | singlethread-static | ml | /ml | libc | libc\.lib )
2960 sim_ac_msvcrt=singlethread-static
2961 sim_ac_msvcrt_CFLAGS="/ML"
2962 sim_ac_msvcrt_CXXFLAGS="/ML"
2963 ;;
2964 default-debug | singlethread-static-debug | mld | /mld | libcd | libcd\.lib )
2965 sim_ac_msvcrt=singlethread-static-debug
2966 sim_ac_msvcrt_CFLAGS="/MLd"
2967 sim_ac_msvcrt_CXXFLAGS="/MLd"
2968 ;;
2969 multithread-static | mt | /mt | libcmt | libcmt\.lib )
2970 sim_ac_msvcrt=multithread-static
2971 sim_ac_msvcrt_CFLAGS="/MT"
2972 sim_ac_msvcrt_CXXFLAGS="/MT"
2973 ;;
2974 multithread-static-debug | mtd | /mtd | libcmtd | libcmtd\.lib )
2975 sim_ac_msvcrt=multithread-static-debug
2976 sim_ac_msvcrt_CFLAGS="/MTd"
2977 sim_ac_msvcrt_CXXFLAGS="/MTd"
2978 ;;
2979 multithread-dynamic | md | /md | msvcrt | msvcrt\.lib )
2980 sim_ac_msvcrt=multithread-dynamic
2981 sim_ac_msvcrt_CFLAGS="/MD"
2982 sim_ac_msvcrt_CXXFLAGS="/MD"
2983 ;;
2984 multithread-dynamic-debug | mdd | /mdd | msvcrtd | msvcrtd\.lib )
2985 sim_ac_msvcrt=multithread-dynamic-debug
2986 sim_ac_msvcrt_CFLAGS="/MDd"
2987 sim_ac_msvcrt_CXXFLAGS="/MDd"
2988 ;;
2989 *)
2990
2991 echo >&2 ""
2992
2993
2994 : ${sim_ac_message_file=$ac_aux_dir/errors.txt}
2995 if test -f $sim_ac_message_file; then
2996 sim_ac_message="`sed -n -e '/^!invalid-msvcrt$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`"
2997 if test x"$sim_ac_message" = x""; then
2998 as_fn_error "no message named 'invalid-msvcrt' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5
2999 else
3000 eval "echo >&2 \"$sim_ac_message\""
3001 fi
3002 else
3003 as_fn_error "file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5
3004 fi
3005
3006
3007
3008 echo >&2 ""
3009 as_fn_error "aborting" "$LINENO" 5
3010
3011 ;;
3012 esac
3013 else
3014 sim_ac_msvcrt=singlethread-static
3015 fi
3016
3017
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MSVC++ C library choice" >&5
3019 $as_echo_n "checking MSVC++ C library choice... " >&6; }
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_msvcrt" >&5
3021 $as_echo "$sim_ac_msvcrt" >&6; }
3022
3023
3024 CPPFLAGS="$CPPFLAGS $sim_ac_msvcrt_CPPFLAGS"
3025 CFLAGS="$CFLAGS $sim_ac_msvcrt_CFLAGS"
3026 CXXFLAGS="$CXXFLAGS $sim_ac_msvcrt_CXXFLAGS"
3027 LDFLAGS="$LDFLAGS $sim_ac_msvcrt_LDFLAGS"
3028 LIBS="$LIBS $sim_ac_msvcrt_LIBS"
3029 # sim_ac_msvcrt_LIBLIBS is set up at the end
3030 # sim_ac_msvcrt_LIBLDFLAGS is set up at the end
3031 DIME_MSVC_LIBC=$sim_ac_msvcrt
3032
3033
3034
3035 fi
3036
3037 # Locate C++ compiler and set C++ as the default compiler to run
3038 # in tests.
3039 ac_ext=c
3040 ac_cpp='$CPP $CPPFLAGS'
3041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3044 if test -n "$ac_tool_prefix"; then
3045 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3046 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if test "${ac_cv_prog_CC+set}" = set; then :
3050 $as_echo_n "(cached) " >&6
3051 else
3052 if test -n "$CC"; then
3053 ac_cv_prog_CC="$CC" # Let the user override the test.
3054 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3057 do
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 break 2
3065 fi
3066 done
3067 done
3068 IFS=$as_save_IFS
3069
3070 fi
3071 fi
3072 CC=$ac_cv_prog_CC
3073 if test -n "$CC"; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3075 $as_echo "$CC" >&6; }
3076 else
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3079 fi
3080
3081
3082 fi
3083 if test -z "$ac_cv_prog_CC"; then
3084 ac_ct_CC=$CC
3085 # Extract the first word of "gcc", so it can be a program name with args.
3086 set dummy gcc; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3090 $as_echo_n "(cached) " >&6
3091 else
3092 if test -n "$ac_ct_CC"; then
3093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3094 else
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3097 do
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102 ac_cv_prog_ac_ct_CC="gcc"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 break 2
3105 fi
3106 done
3107 done
3108 IFS=$as_save_IFS
3109
3110 fi
3111 fi
3112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3113 if test -n "$ac_ct_CC"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3115 $as_echo "$ac_ct_CC" >&6; }
3116 else
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3119 fi
3120
3121 if test "x$ac_ct_CC" = x; then
3122 CC=""
3123 else
3124 case $cross_compiling:$ac_tool_warned in
3125 yes:)
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3128 ac_tool_warned=yes ;;
3129 esac
3130 CC=$ac_ct_CC
3131 fi
3132 else
3133 CC="$ac_cv_prog_CC"
3134 fi
3135
3136 if test -z "$CC"; then
3137 if test -n "$ac_tool_prefix"; then
3138 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3139 set dummy ${ac_tool_prefix}cc; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if test "${ac_cv_prog_CC+set}" = set; then :
3143 $as_echo_n "(cached) " >&6
3144 else
3145 if test -n "$CC"; then
3146 ac_cv_prog_CC="$CC" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155 ac_cv_prog_CC="${ac_tool_prefix}cc"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3158 fi
3159 done
3160 done
3161 IFS=$as_save_IFS
3162
3163 fi
3164 fi
3165 CC=$ac_cv_prog_CC
3166 if test -n "$CC"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3168 $as_echo "$CC" >&6; }
3169 else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172 fi
3173
3174
3175 fi
3176 fi
3177 if test -z "$CC"; then
3178 # Extract the first word of "cc", so it can be a program name with args.
3179 set dummy cc; ac_word=$2
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if test "${ac_cv_prog_CC+set}" = set; then :
3183 $as_echo_n "(cached) " >&6
3184 else
3185 if test -n "$CC"; then
3186 ac_cv_prog_CC="$CC" # Let the user override the test.
3187 else
3188 ac_prog_rejected=no
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3191 do
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3196 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3197 ac_prog_rejected=yes
3198 continue
3199 fi
3200 ac_cv_prog_CC="cc"
3201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202 break 2
3203 fi
3204 done
3205 done
3206 IFS=$as_save_IFS
3207
3208 if test $ac_prog_rejected = yes; then
3209 # We found a bogon in the path, so make sure we never use it.
3210 set dummy $ac_cv_prog_CC
3211 shift
3212 if test $# != 0; then
3213 # We chose a different compiler from the bogus one.
3214 # However, it has the same basename, so the bogon will be chosen
3215 # first if we set CC to just the basename; use the full file name.
3216 shift
3217 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3218 fi
3219 fi
3220 fi
3221 fi
3222 CC=$ac_cv_prog_CC
3223 if test -n "$CC"; then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3225 $as_echo "$CC" >&6; }
3226 else
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3229 fi
3230
3231
3232 fi
3233 if test -z "$CC"; then
3234 if test -n "$ac_tool_prefix"; then
3235 for ac_prog in cl.exe
3236 do
3237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3238 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if test "${ac_cv_prog_CC+set}" = set; then :
3242 $as_echo_n "(cached) " >&6
3243 else
3244 if test -n "$CC"; then
3245 ac_cv_prog_CC="$CC" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 break 2
3257 fi
3258 done
3259 done
3260 IFS=$as_save_IFS
3261
3262 fi
3263 fi
3264 CC=$ac_cv_prog_CC
3265 if test -n "$CC"; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3267 $as_echo "$CC" >&6; }
3268 else
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271 fi
3272
3273
3274 test -n "$CC" && break
3275 done
3276 fi
3277 if test -z "$CC"; then
3278 ac_ct_CC=$CC
3279 for ac_prog in cl.exe
3280 do
3281 # Extract the first word of "$ac_prog", so it can be a program name with args.
3282 set dummy $ac_prog; ac_word=$2
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3286 $as_echo_n "(cached) " >&6
3287 else
3288 if test -n "$ac_ct_CC"; then
3289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3293 do
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3298 ac_cv_prog_ac_ct_CC="$ac_prog"
3299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3301 fi
3302 done
3303 done
3304 IFS=$as_save_IFS
3305
3306 fi
3307 fi
3308 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3309 if test -n "$ac_ct_CC"; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3311 $as_echo "$ac_ct_CC" >&6; }
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3315 fi
3316
3317
3318 test -n "$ac_ct_CC" && break
3319 done
3320
3321 if test "x$ac_ct_CC" = x; then
3322 CC=""
3323 else
3324 case $cross_compiling:$ac_tool_warned in
3325 yes:)
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3328 ac_tool_warned=yes ;;
3329 esac
3330 CC=$ac_ct_CC
3331 fi
3332 fi
3333
3334 fi
3335
3336
3337 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3339 as_fn_error "no acceptable C compiler found in \$PATH
3340 See \`config.log' for more details." "$LINENO" 5; }
3341
3342 # Provide some information about the compiler.
3343 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3344 set X $ac_compile
3345 ac_compiler=$2
3346 for ac_option in --version -v -V -qversion; do
3347 { { ac_try="$ac_compiler $ac_option >&5"
3348 case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351 esac
3352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353 $as_echo "$ac_try_echo"; } >&5
3354 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3355 ac_status=$?
3356 if test -s conftest.err; then
3357 sed '10a\
3358 ... rest of stderr output deleted ...
3359 10q' conftest.err >conftest.er1
3360 cat conftest.er1 >&5
3361 fi
3362 rm -f conftest.er1 conftest.err
3363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3364 test $ac_status = 0; }
3365 done
3366
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h. */
3369
3370 int
3371 main ()
3372 {
3373
3374 ;
3375 return 0;
3376 }
3377 _ACEOF
3378 ac_clean_files_save=$ac_clean_files
3379 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3380 # Try to create an executable without -o first, disregard a.out.
3381 # It will help us diagnose broken compilers, and finding out an intuition
3382 # of exeext.
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3384 $as_echo_n "checking whether the C compiler works... " >&6; }
3385 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3386
3387 # The possible output files:
3388 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3389
3390 ac_rmfiles=
3391 for ac_file in $ac_files
3392 do
3393 case $ac_file in
3394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3395 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3396 esac
3397 done
3398 rm -f $ac_rmfiles
3399
3400 if { { ac_try="$ac_link_default"
3401 case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404 esac
3405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3406 $as_echo "$ac_try_echo"; } >&5
3407 (eval "$ac_link_default") 2>&5
3408 ac_status=$?
3409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410 test $ac_status = 0; }; then :
3411 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3412 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3413 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3414 # so that the user can short-circuit this test for compilers unknown to
3415 # Autoconf.
3416 for ac_file in $ac_files ''
3417 do
3418 test -f "$ac_file" || continue
3419 case $ac_file in
3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3421 ;;
3422 [ab].out )
3423 # We found the default executable, but exeext='' is most
3424 # certainly right.
3425 break;;
3426 *.* )
3427 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3428 then :; else
3429 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3430 fi
3431 # We set ac_cv_exeext here because the later test for it is not
3432 # safe: cross compilers may not add the suffix if given an `-o'
3433 # argument, so we may need to know it at that point already.
3434 # Even if this section looks crufty: it has the advantage of
3435 # actually working.
3436 break;;
3437 * )
3438 break;;
3439 esac
3440 done
3441 test "$ac_cv_exeext" = no && ac_cv_exeext=
3442
3443 else
3444 ac_file=''
3445 fi
3446 if test -z "$ac_file"; then :
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448 $as_echo "no" >&6; }
3449 $as_echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 { as_fn_set_status 77
3455 as_fn_error "C compiler cannot create executables
3456 See \`config.log' for more details." "$LINENO" 5; }; }
3457 else
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3459 $as_echo "yes" >&6; }
3460 fi
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3462 $as_echo_n "checking for C compiler default output file name... " >&6; }
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3464 $as_echo "$ac_file" >&6; }
3465 ac_exeext=$ac_cv_exeext
3466
3467 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3468 ac_clean_files=$ac_clean_files_save
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3470 $as_echo_n "checking for suffix of executables... " >&6; }
3471 if { { ac_try="$ac_link"
3472 case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475 esac
3476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477 $as_echo "$ac_try_echo"; } >&5
3478 (eval "$ac_link") 2>&5
3479 ac_status=$?
3480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481 test $ac_status = 0; }; then :
3482 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3483 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3484 # work properly (i.e., refer to `conftest.exe'), while it won't with
3485 # `rm'.
3486 for ac_file in conftest.exe conftest conftest.*; do
3487 test -f "$ac_file" || continue
3488 case $ac_file in
3489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3490 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3491 break;;
3492 * ) break;;
3493 esac
3494 done
3495 else
3496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3498 as_fn_error "cannot compute suffix of executables: cannot compile and link
3499 See \`config.log' for more details." "$LINENO" 5; }
3500 fi
3501 rm -f conftest conftest$ac_cv_exeext
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3503 $as_echo "$ac_cv_exeext" >&6; }
3504
3505 rm -f conftest.$ac_ext
3506 EXEEXT=$ac_cv_exeext
3507 ac_exeext=$EXEEXT
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3510 #include <stdio.h>
3511 int
3512 main ()
3513 {
3514 FILE *f = fopen ("conftest.out", "w");
3515 return ferror (f) || fclose (f) != 0;
3516
3517 ;
3518 return 0;
3519 }
3520 _ACEOF
3521 ac_clean_files="$ac_clean_files conftest.out"
3522 # Check that the compiler produces executables we can run. If not, either
3523 # the compiler is broken, or we cross compile.
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3525 $as_echo_n "checking whether we are cross compiling... " >&6; }
3526 if test "$cross_compiling" != yes; then
3527 { { ac_try="$ac_link"
3528 case "(($ac_try" in
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3531 esac
3532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533 $as_echo "$ac_try_echo"; } >&5
3534 (eval "$ac_link") 2>&5
3535 ac_status=$?
3536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537 test $ac_status = 0; }
3538 if { ac_try='./conftest$ac_cv_exeext'
3539 { { case "(($ac_try" in
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3542 esac
3543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544 $as_echo "$ac_try_echo"; } >&5
3545 (eval "$ac_try") 2>&5
3546 ac_status=$?
3547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3548 test $ac_status = 0; }; }; then
3549 cross_compiling=no
3550 else
3551 if test "$cross_compiling" = maybe; then
3552 cross_compiling=yes
3553 else
3554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3556 as_fn_error "cannot run C compiled programs.
3557 If you meant to cross compile, use \`--host'.
3558 See \`config.log' for more details." "$LINENO" 5; }
3559 fi
3560 fi
3561 fi
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3563 $as_echo "$cross_compiling" >&6; }
3564
3565 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3566 ac_clean_files=$ac_clean_files_save
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3568 $as_echo_n "checking for suffix of object files... " >&6; }
3569 if test "${ac_cv_objext+set}" = set; then :
3570 $as_echo_n "(cached) " >&6
3571 else
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3574
3575 int
3576 main ()
3577 {
3578
3579 ;
3580 return 0;
3581 }
3582 _ACEOF
3583 rm -f conftest.o conftest.obj
3584 if { { ac_try="$ac_compile"
3585 case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588 esac
3589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590 $as_echo "$ac_try_echo"; } >&5
3591 (eval "$ac_compile") 2>&5
3592 ac_status=$?
3593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594 test $ac_status = 0; }; then :
3595 for ac_file in conftest.o conftest.obj conftest.*; do
3596 test -f "$ac_file" || continue;
3597 case $ac_file in
3598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3599 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3600 break;;
3601 esac
3602 done
3603 else
3604 $as_echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3606
3607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609 as_fn_error "cannot compute suffix of object files: cannot compile
3610 See \`config.log' for more details." "$LINENO" 5; }
3611 fi
3612 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3613 fi
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3615 $as_echo "$ac_cv_objext" >&6; }
3616 OBJEXT=$ac_cv_objext
3617 ac_objext=$OBJEXT
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3619 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3620 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3621 $as_echo_n "(cached) " >&6
3622 else
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3625
3626 int
3627 main ()
3628 {
3629 #ifndef __GNUC__
3630 choke me
3631 #endif
3632
3633 ;
3634 return 0;
3635 }
3636 _ACEOF
3637 if ac_fn_c_try_compile "$LINENO"; then :
3638 ac_compiler_gnu=yes
3639 else
3640 ac_compiler_gnu=no
3641 fi
3642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3644
3645 fi
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3647 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3648 if test $ac_compiler_gnu = yes; then
3649 GCC=yes
3650 else
3651 GCC=
3652 fi
3653 ac_test_CFLAGS=${CFLAGS+set}
3654 ac_save_CFLAGS=$CFLAGS
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3656 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3657 if test "${ac_cv_prog_cc_g+set}" = set; then :
3658 $as_echo_n "(cached) " >&6
3659 else
3660 ac_save_c_werror_flag=$ac_c_werror_flag
3661 ac_c_werror_flag=yes
3662 ac_cv_prog_cc_g=no
3663 CFLAGS="-g"
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3666
3667 int
3668 main ()
3669 {
3670
3671 ;
3672 return 0;
3673 }
3674 _ACEOF
3675 if ac_fn_c_try_compile "$LINENO"; then :
3676 ac_cv_prog_cc_g=yes
3677 else
3678 CFLAGS=""
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3681
3682 int
3683 main ()
3684 {
3685
3686 ;
3687 return 0;
3688 }
3689 _ACEOF
3690 if ac_fn_c_try_compile "$LINENO"; then :
3691
3692 else
3693 ac_c_werror_flag=$ac_save_c_werror_flag
3694 CFLAGS="-g"
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3697
3698 int
3699 main ()
3700 {
3701
3702 ;
3703 return 0;
3704 }
3705 _ACEOF
3706 if ac_fn_c_try_compile "$LINENO"; then :
3707 ac_cv_prog_cc_g=yes
3708 fi
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710 fi
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 fi
3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3714 ac_c_werror_flag=$ac_save_c_werror_flag
3715 fi
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3717 $as_echo "$ac_cv_prog_cc_g" >&6; }
3718 if test "$ac_test_CFLAGS" = set; then
3719 CFLAGS=$ac_save_CFLAGS
3720 elif test $ac_cv_prog_cc_g = yes; then
3721 if test "$GCC" = yes; then
3722 CFLAGS="-g -O2"
3723 else
3724 CFLAGS="-g"
3725 fi
3726 else
3727 if test "$GCC" = yes; then
3728 CFLAGS="-O2"
3729 else
3730 CFLAGS=
3731 fi
3732 fi
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3734 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3735 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 ac_cv_prog_cc_c89=no
3739 ac_save_CC=$CC
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3742 #include <stdarg.h>
3743 #include <stdio.h>
3744 #include <sys/types.h>
3745 #include <sys/stat.h>
3746 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3747 struct buf { int x; };
3748 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3749 static char *e (p, i)
3750 char **p;
3751 int i;
3752 {
3753 return p[i];
3754 }
3755 static char *f (char * (*g) (char **, int), char **p, ...)
3756 {
3757 char *s;
3758 va_list v;
3759 va_start (v,p);
3760 s = g (p, va_arg (v,int));
3761 va_end (v);
3762 return s;
3763 }
3764
3765 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3766 function prototypes and stuff, but not '\xHH' hex character constants.
3767 These don't provoke an error unfortunately, instead are silently treated
3768 as 'x'. The following induces an error, until -std is added to get
3769 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3770 array size at least. It's necessary to write '\x00'==0 to get something
3771 that's true only with -std. */
3772 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3773
3774 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3775 inside strings and character constants. */
3776 #define FOO(x) 'x'
3777 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3778
3779 int test (int i, double x);
3780 struct s1 {int (*f) (int a);};
3781 struct s2 {int (*f) (double a);};
3782 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3783 int argc;
3784 char **argv;
3785 int
3786 main ()
3787 {
3788 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3789 ;
3790 return 0;
3791 }
3792 _ACEOF
3793 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3794 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3795 do
3796 CC="$ac_save_CC $ac_arg"
3797 if ac_fn_c_try_compile "$LINENO"; then :
3798 ac_cv_prog_cc_c89=$ac_arg
3799 fi
3800 rm -f core conftest.err conftest.$ac_objext
3801 test "x$ac_cv_prog_cc_c89" != "xno" && break
3802 done
3803 rm -f conftest.$ac_ext
3804 CC=$ac_save_CC
3805
3806 fi
3807 # AC_CACHE_VAL
3808 case "x$ac_cv_prog_cc_c89" in
3809 x)
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3811 $as_echo "none needed" >&6; } ;;
3812 xno)
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3814 $as_echo "unsupported" >&6; } ;;
3815 *)
3816 CC="$CC $ac_cv_prog_cc_c89"
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3818 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3819 esac
3820 if test "x$ac_cv_prog_cc_c89" != xno; then :
3821
3822 fi
3823
3824 ac_ext=c
3825 ac_cpp='$CPP $CPPFLAGS'
3826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3829
3830 ac_ext=c
3831 ac_cpp='$CPP $CPPFLAGS'
3832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3836 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3837 # On Suns, sometimes $CPP names a directory.
3838 if test -n "$CPP" && test -d "$CPP"; then
3839 CPP=
3840 fi
3841 if test -z "$CPP"; then
3842 if test "${ac_cv_prog_CPP+set}" = set; then :
3843 $as_echo_n "(cached) " >&6
3844 else
3845 # Double quotes because CPP needs to be expanded
3846 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3847 do
3848 ac_preproc_ok=false
3849 for ac_c_preproc_warn_flag in '' yes
3850 do
3851 # Use a header file that comes with gcc, so configuring glibc
3852 # with a fresh cross-compiler works.
3853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3854 # <limits.h> exists even on freestanding compilers.
3855 # On the NeXT, cc -E runs the code through the compiler's parser,
3856 # not just through cpp. "Syntax error" is here to catch this case.
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3859 #ifdef __STDC__
3860 # include <limits.h>
3861 #else
3862 # include <assert.h>
3863 #endif
3864 Syntax error
3865 _ACEOF
3866 if ac_fn_c_try_cpp "$LINENO"; then :
3867
3868 else
3869 # Broken: fails on valid input.
3870 continue
3871 fi
3872 rm -f conftest.err conftest.$ac_ext
3873
3874 # OK, works on sane cases. Now check whether nonexistent headers
3875 # can be detected and how.
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878 #include <ac_nonexistent.h>
3879 _ACEOF
3880 if ac_fn_c_try_cpp "$LINENO"; then :
3881 # Broken: success on invalid input.
3882 continue
3883 else
3884 # Passes both tests.
3885 ac_preproc_ok=:
3886 break
3887 fi
3888 rm -f conftest.err conftest.$ac_ext
3889
3890 done
3891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3892 rm -f conftest.err conftest.$ac_ext
3893 if $ac_preproc_ok; then :
3894 break
3895 fi
3896
3897 done
3898 ac_cv_prog_CPP=$CPP
3899
3900 fi
3901 CPP=$ac_cv_prog_CPP
3902 else
3903 ac_cv_prog_CPP=$CPP
3904 fi
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3906 $as_echo "$CPP" >&6; }
3907 ac_preproc_ok=false
3908 for ac_c_preproc_warn_flag in '' yes
3909 do
3910 # Use a header file that comes with gcc, so configuring glibc
3911 # with a fresh cross-compiler works.
3912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3913 # <limits.h> exists even on freestanding compilers.
3914 # On the NeXT, cc -E runs the code through the compiler's parser,
3915 # not just through cpp. "Syntax error" is here to catch this case.
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3918 #ifdef __STDC__
3919 # include <limits.h>
3920 #else
3921 # include <assert.h>
3922 #endif
3923 Syntax error
3924 _ACEOF
3925 if ac_fn_c_try_cpp "$LINENO"; then :
3926
3927 else
3928 # Broken: fails on valid input.
3929 continue
3930 fi
3931 rm -f conftest.err conftest.$ac_ext
3932
3933 # OK, works on sane cases. Now check whether nonexistent headers
3934 # can be detected and how.
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937 #include <ac_nonexistent.h>
3938 _ACEOF
3939 if ac_fn_c_try_cpp "$LINENO"; then :
3940 # Broken: success on invalid input.
3941 continue
3942 else
3943 # Passes both tests.
3944 ac_preproc_ok=:
3945 break
3946 fi
3947 rm -f conftest.err conftest.$ac_ext
3948
3949 done
3950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3951 rm -f conftest.err conftest.$ac_ext
3952 if $ac_preproc_ok; then :
3953
3954 else
3955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3957 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3958 See \`config.log' for more details." "$LINENO" 5; }
3959 fi
3960
3961 ac_ext=c
3962 ac_cpp='$CPP $CPPFLAGS'
3963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3966
3967 ac_ext=cpp
3968 ac_cpp='$CXXCPP $CPPFLAGS'
3969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3972 if test -z "$CXX"; then
3973 if test -n "$CCC"; then
3974 CXX=$CCC
3975 else
3976 if test -n "$ac_tool_prefix"; then
3977 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3978 do
3979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982 $as_echo_n "checking for $ac_word... " >&6; }
3983 if test "${ac_cv_prog_CXX+set}" = set; then :
3984 $as_echo_n "(cached) " >&6
3985 else
3986 if test -n "$CXX"; then
3987 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3988 else
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3991 do
3992 IFS=$as_save_IFS
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3996 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 break 2
3999 fi
4000 done
4001 done
4002 IFS=$as_save_IFS
4003
4004 fi
4005 fi
4006 CXX=$ac_cv_prog_CXX
4007 if test -n "$CXX"; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4009 $as_echo "$CXX" >&6; }
4010 else
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4013 fi
4014
4015
4016 test -n "$CXX" && break
4017 done
4018 fi
4019 if test -z "$CXX"; then
4020 ac_ct_CXX=$CXX
4021 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4022 do
4023 # Extract the first word of "$ac_prog", so it can be a program name with args.
4024 set dummy $ac_prog; ac_word=$2
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4026 $as_echo_n "checking for $ac_word... " >&6; }
4027 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4028 $as_echo_n "(cached) " >&6
4029 else
4030 if test -n "$ac_ct_CXX"; then
4031 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4032 else
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH
4035 do
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4040 ac_cv_prog_ac_ct_CXX="$ac_prog"
4041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 break 2
4043 fi
4044 done
4045 done
4046 IFS=$as_save_IFS
4047
4048 fi
4049 fi
4050 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4051 if test -n "$ac_ct_CXX"; then
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4053 $as_echo "$ac_ct_CXX" >&6; }
4054 else
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056 $as_echo "no" >&6; }
4057 fi
4058
4059
4060 test -n "$ac_ct_CXX" && break
4061 done
4062
4063 if test "x$ac_ct_CXX" = x; then
4064 CXX="g++"
4065 else
4066 case $cross_compiling:$ac_tool_warned in
4067 yes:)
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4070 ac_tool_warned=yes ;;
4071 esac
4072 CXX=$ac_ct_CXX
4073 fi
4074 fi
4075
4076 fi
4077 fi
4078 # Provide some information about the compiler.
4079 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4080 set X $ac_compile
4081 ac_compiler=$2
4082 for ac_option in --version -v -V -qversion; do
4083 { { ac_try="$ac_compiler $ac_option >&5"
4084 case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4087 esac
4088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4089 $as_echo "$ac_try_echo"; } >&5
4090 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4091 ac_status=$?
4092 if test -s conftest.err; then
4093 sed '10a\
4094 ... rest of stderr output deleted ...
4095 10q' conftest.err >conftest.er1
4096 cat conftest.er1 >&5
4097 fi
4098 rm -f conftest.er1 conftest.err
4099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4100 test $ac_status = 0; }
4101 done
4102
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4104 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4105 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4106 $as_echo_n "(cached) " >&6
4107 else
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4110
4111 int
4112 main ()
4113 {
4114 #ifndef __GNUC__
4115 choke me
4116 #endif
4117
4118 ;
4119 return 0;
4120 }
4121 _ACEOF
4122 if ac_fn_cxx_try_compile "$LINENO"; then :
4123 ac_compiler_gnu=yes
4124 else
4125 ac_compiler_gnu=no
4126 fi
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4129
4130 fi
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4132 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4133 if test $ac_compiler_gnu = yes; then
4134 GXX=yes
4135 else
4136 GXX=
4137 fi
4138 ac_test_CXXFLAGS=${CXXFLAGS+set}
4139 ac_save_CXXFLAGS=$CXXFLAGS
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4141 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4142 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4143 $as_echo_n "(cached) " >&6
4144 else
4145 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4146 ac_cxx_werror_flag=yes
4147 ac_cv_prog_cxx_g=no
4148 CXXFLAGS="-g"
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4151
4152 int
4153 main ()
4154 {
4155
4156 ;
4157 return 0;
4158 }
4159 _ACEOF
4160 if ac_fn_cxx_try_compile "$LINENO"; then :
4161 ac_cv_prog_cxx_g=yes
4162 else
4163 CXXFLAGS=""
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4166
4167 int
4168 main ()
4169 {
4170
4171 ;
4172 return 0;
4173 }
4174 _ACEOF
4175 if ac_fn_cxx_try_compile "$LINENO"; then :
4176
4177 else
4178 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4179 CXXFLAGS="-g"
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4182
4183 int
4184 main ()
4185 {
4186
4187 ;
4188 return 0;
4189 }
4190 _ACEOF
4191 if ac_fn_cxx_try_compile "$LINENO"; then :
4192 ac_cv_prog_cxx_g=yes
4193 fi
4194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195 fi
4196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197 fi
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4200 fi
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4202 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4203 if test "$ac_test_CXXFLAGS" = set; then
4204 CXXFLAGS=$ac_save_CXXFLAGS
4205 elif test $ac_cv_prog_cxx_g = yes; then
4206 if test "$GXX" = yes; then
4207 CXXFLAGS="-g -O2"
4208 else
4209 CXXFLAGS="-g"
4210 fi
4211 else
4212 if test "$GXX" = yes; then
4213 CXXFLAGS="-O2"
4214 else
4215 CXXFLAGS=
4216 fi
4217 fi
4218 ac_ext=c
4219 ac_cpp='$CPP $CPPFLAGS'
4220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4223
4224 ac_ext=cpp
4225 ac_cpp='$CXXCPP $CPPFLAGS'
4226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4230 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4231 if test -z "$CXXCPP"; then
4232 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
4233 $as_echo_n "(cached) " >&6
4234 else
4235 # Double quotes because CXXCPP needs to be expanded
4236 for CXXCPP in "$CXX -E" "/lib/cpp"
4237 do
4238 ac_preproc_ok=false
4239 for ac_cxx_preproc_warn_flag in '' yes
4240 do
4241 # Use a header file that comes with gcc, so configuring glibc
4242 # with a fresh cross-compiler works.
4243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4244 # <limits.h> exists even on freestanding compilers.
4245 # On the NeXT, cc -E runs the code through the compiler's parser,
4246 # not just through cpp. "Syntax error" is here to catch this case.
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4249 #ifdef __STDC__
4250 # include <limits.h>
4251 #else
4252 # include <assert.h>
4253 #endif
4254 Syntax error
4255 _ACEOF
4256 if ac_fn_cxx_try_cpp "$LINENO"; then :
4257
4258 else
4259 # Broken: fails on valid input.
4260 continue
4261 fi
4262 rm -f conftest.err conftest.$ac_ext
4263
4264 # OK, works on sane cases. Now check whether nonexistent headers
4265 # can be detected and how.
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4268 #include <ac_nonexistent.h>
4269 _ACEOF
4270 if ac_fn_cxx_try_cpp "$LINENO"; then :
4271 # Broken: success on invalid input.
4272 continue
4273 else
4274 # Passes both tests.
4275 ac_preproc_ok=:
4276 break
4277 fi
4278 rm -f conftest.err conftest.$ac_ext
4279
4280 done
4281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4282 rm -f conftest.err conftest.$ac_ext
4283 if $ac_preproc_ok; then :
4284 break
4285 fi
4286
4287 done
4288 ac_cv_prog_CXXCPP=$CXXCPP
4289
4290 fi
4291 CXXCPP=$ac_cv_prog_CXXCPP
4292 else
4293 ac_cv_prog_CXXCPP=$CXXCPP
4294 fi
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4296 $as_echo "$CXXCPP" >&6; }
4297 ac_preproc_ok=false
4298 for ac_cxx_preproc_warn_flag in '' yes
4299 do
4300 # Use a header file that comes with gcc, so configuring glibc
4301 # with a fresh cross-compiler works.
4302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4303 # <limits.h> exists even on freestanding compilers.
4304 # On the NeXT, cc -E runs the code through the compiler's parser,
4305 # not just through cpp. "Syntax error" is here to catch this case.
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4308 #ifdef __STDC__
4309 # include <limits.h>
4310 #else
4311 # include <assert.h>
4312 #endif
4313 Syntax error
4314 _ACEOF
4315 if ac_fn_cxx_try_cpp "$LINENO"; then :
4316
4317 else
4318 # Broken: fails on valid input.
4319 continue
4320 fi
4321 rm -f conftest.err conftest.$ac_ext
4322
4323 # OK, works on sane cases. Now check whether nonexistent headers
4324 # can be detected and how.
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4327 #include <ac_nonexistent.h>
4328 _ACEOF
4329 if ac_fn_cxx_try_cpp "$LINENO"; then :
4330 # Broken: success on invalid input.
4331 continue
4332 else
4333 # Passes both tests.
4334 ac_preproc_ok=:
4335 break
4336 fi
4337 rm -f conftest.err conftest.$ac_ext
4338
4339 done
4340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4341 rm -f conftest.err conftest.$ac_ext
4342 if $ac_preproc_ok; then :
4343
4344 else
4345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4347 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
4348 See \`config.log' for more details." "$LINENO" 5; }
4349 fi
4350
4351 ac_ext=c
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4356
4357 ac_ext=cpp
4358 ac_cpp='$CXXCPP $CPPFLAGS'
4359 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4361 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4362
4363
4364 # *******************************************************************
4365 # * Library version control.
4366 # *******************************************************************
4367
4368 # Making releases:
4369 # DIME_MICRO_VERSION += 1;
4370 # DIME_INTERFACE_AGE += 1;
4371 # DIME_BINARY_AGE += 1;
4372 # if any functions have been added, set DIME_INTERFACE_AGE to 0.
4373 # if backwards compatibility has been broken,
4374 # set DIME_BINARY_AGE _and_ DIME_INTERFACE_AGE to 0.
4375 #
4376
4377 # libtool versioning
4378 LT_RELEASE=$DIME_MAJOR_VERSION.$DIME_MINOR_VERSION
4379 LT_CURRENT=`expr $DIME_MICRO_VERSION - $DIME_INTERFACE_AGE`
4380 LT_REVISION=$DIME_INTERFACE_AGE
4381 LT_AGE=`expr $DIME_BINARY_AGE - $DIME_INTERFACE_AGE`
4382
4383
4384
4385
4386
4387
4388
4389 # These are used for constructing the dime-config file.
4390 DIME_EXTRA_CPPFLAGS=$CPPFLAGS
4391
4392 DIME_EXTRA_CFLAGS=$CFLAGS
4393
4394 DIME_EXTRA_CXXFLAGS=$CXXFLAGS
4395
4396 DIME_EXTRA_LDFLAGS=$LDFLAGS
4397
4398 DIME_EXTRA_LIBS=$LIBS
4399
4400
4401 # *******************************************************************
4402 # * Miscellaneous options and initializations.
4403 # *******************************************************************
4404
4405 am__api_version="1.8"
4406 # Find a good install program. We prefer a C program (faster),
4407 # so one script is as good as another. But avoid the broken or
4408 # incompatible versions:
4409 # SysV /etc/install, /usr/sbin/install
4410 # SunOS /usr/etc/install
4411 # IRIX /sbin/install
4412 # AIX /bin/install
4413 # AmigaOS /C/install, which installs bootblocks on floppy discs
4414 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4415 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4416 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4417 # OS/2's system install, which has a completely different semantic
4418 # ./install, which can be erroneously created by make from ./install.sh.
4419 # Reject install programs that cannot install multiple files.
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4421 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4422 if test -z "$INSTALL"; then
4423 if test "${ac_cv_path_install+set}" = set; then :
4424 $as_echo_n "(cached) " >&6
4425 else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4428 do
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
4431 # Account for people who put trailing slashes in PATH elements.
4432 case $as_dir/ in #((
4433 ./ | .// | /[cC]/* | \
4434 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4435 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4436 /usr/ucb/* ) ;;
4437 *)
4438 # OSF1 and SCO ODT 3.0 have their own names for install.
4439 # Don't use installbsd from OSF since it installs stuff as root
4440 # by default.
4441 for ac_prog in ginstall scoinst install; do
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4444 if test $ac_prog = install &&
4445 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4446 # AIX install. It has an incompatible calling convention.
4447 :
4448 elif test $ac_prog = install &&
4449 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4450 # program-specific install script used by HP pwplus--don't use.
4451 :
4452 else
4453 rm -rf conftest.one conftest.two conftest.dir
4454 echo one > conftest.one
4455 echo two > conftest.two
4456 mkdir conftest.dir
4457 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4458 test -s conftest.one && test -s conftest.two &&
4459 test -s conftest.dir/conftest.one &&
4460 test -s conftest.dir/conftest.two
4461 then
4462 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4463 break 3
4464 fi
4465 fi
4466 fi
4467 done
4468 done
4469 ;;
4470 esac
4471
4472 done
4473 IFS=$as_save_IFS
4474
4475 rm -rf conftest.one conftest.two conftest.dir
4476
4477 fi
4478 if test "${ac_cv_path_install+set}" = set; then
4479 INSTALL=$ac_cv_path_install
4480 else
4481 # As a last resort, use the slow shell script. Don't cache a
4482 # value for INSTALL within a source directory, because that will
4483 # break other packages using the cache if that directory is
4484 # removed, or if the value is a relative name.
4485 INSTALL=$ac_install_sh
4486 fi
4487 fi
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4489 $as_echo "$INSTALL" >&6; }
4490
4491 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4492 # It thinks the first close brace ends the variable substitution.
4493 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4494
4495 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4496
4497 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4498
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4500 $as_echo_n "checking whether build environment is sane... " >&6; }
4501 # Just in case
4502 sleep 1
4503 echo timestamp > conftest.file
4504 # Do `set' in a subshell so we don't clobber the current shell's
4505 # arguments. Must try -L first in case configure is actually a
4506 # symlink; some systems play weird games with the mod time of symlinks
4507 # (eg FreeBSD returns the mod time of the symlink's containing
4508 # directory).
4509 if (
4510 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4511 if test "$*" = "X"; then
4512 # -L didn't work.
4513 set X `ls -t $srcdir/configure conftest.file`
4514 fi
4515 rm -f conftest.file
4516 if test "$*" != "X $srcdir/configure conftest.file" \
4517 && test "$*" != "X conftest.file $srcdir/configure"; then
4518
4519 # If neither matched, then we have a broken ls. This can happen
4520 # if, for instance, CONFIG_SHELL is bash and it inherits a
4521 # broken ls alias from the environment. This has actually
4522 # happened. Such a system could not be considered "sane".
4523 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4524 alias in your environment" "$LINENO" 5
4525 fi
4526
4527 test "$2" = conftest.file
4528 )
4529 then
4530 # Ok.
4531 :
4532 else
4533 as_fn_error "newly created file is older than distributed files!
4534 Check your system clock" "$LINENO" 5
4535 fi
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4537 $as_echo "yes" >&6; }
4538 test "$program_prefix" != NONE &&
4539 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4540 # Use a double $ so make ignores it.
4541 test "$program_suffix" != NONE &&
4542 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4543 # Double any \ or $.
4544 # By default was `s,x,x', remove it if useless.
4545 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4546 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4547
4548 # expand $ac_aux_dir to an absolute path
4549 am_aux_dir=`cd $ac_aux_dir && pwd`
4550
4551 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4552 # Use eval to expand $SHELL
4553 if eval "$MISSING --run true"; then
4554 am_missing_run="$MISSING --run "
4555 else
4556 am_missing_run=
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4558 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4559 fi
4560
4561 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4562 # Keeping the `.' argument allows $(mkdir_p) to be used without
4563 # argument. Indeed, we sometimes output rules like
4564 # $(mkdir_p) $(somedir)
4565 # where $(somedir) is conditionally defined.
4566 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
4567 # expensive solution, as it forces Make to start a sub-shell.)
4568 mkdir_p='mkdir -p -- .'
4569 else
4570 # On NextStep and OpenStep, the `mkdir' command does not
4571 # recognize any option. It will interpret all options as
4572 # directories to create, and then abort because `.' already
4573 # exists.
4574 for d in ./-p ./--version;
4575 do
4576 test -d $d && rmdir $d
4577 done
4578 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4579 if test -f "$ac_aux_dir/mkinstalldirs"; then
4580 mkdir_p='$(mkinstalldirs)'
4581 else
4582 mkdir_p='$(install_sh) -d'
4583 fi
4584 fi
4585
4586 for ac_prog in gawk mawk nawk awk
4587 do
4588 # Extract the first word of "$ac_prog", so it can be a program name with args.
4589 set dummy $ac_prog; ac_word=$2
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4591 $as_echo_n "checking for $ac_word... " >&6; }
4592 if test "${ac_cv_prog_AWK+set}" = set; then :
4593 $as_echo_n "(cached) " >&6
4594 else
4595 if test -n "$AWK"; then
4596 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4597 else
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH
4600 do
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4605 ac_cv_prog_AWK="$ac_prog"
4606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 break 2
4608 fi
4609 done
4610 done
4611 IFS=$as_save_IFS
4612
4613 fi
4614 fi
4615 AWK=$ac_cv_prog_AWK
4616 if test -n "$AWK"; then
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4618 $as_echo "$AWK" >&6; }
4619 else
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621 $as_echo "no" >&6; }
4622 fi
4623
4624
4625 test -n "$AWK" && break
4626 done
4627
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4629 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4630 set x ${MAKE-make}
4631 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4632 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4633 $as_echo_n "(cached) " >&6
4634 else
4635 cat >conftest.make <<\_ACEOF
4636 SHELL = /bin/sh
4637 all:
4638 @echo '@@@%%%=$(MAKE)=@@@%%%'
4639 _ACEOF
4640 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4641 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4642 *@@@%%%=?*=@@@%%%*)
4643 eval ac_cv_prog_make_${ac_make}_set=yes;;
4644 *)
4645 eval ac_cv_prog_make_${ac_make}_set=no;;
4646 esac
4647 rm -f conftest.make
4648 fi
4649 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4651 $as_echo "yes" >&6; }
4652 SET_MAKE=
4653 else
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4655 $as_echo "no" >&6; }
4656 SET_MAKE="MAKE=${MAKE-make}"
4657 fi
4658
4659 rm -rf .tst 2>/dev/null
4660 mkdir .tst 2>/dev/null
4661 if test -d .tst; then
4662 am__leading_dot=.
4663 else
4664 am__leading_dot=_
4665 fi
4666 rmdir .tst 2>/dev/null
4667
4668 DEPDIR="${am__leading_dot}deps"
4669
4670 ac_config_commands="$ac_config_commands depfiles"
4671
4672
4673 am_make=${MAKE-make}
4674 cat > confinc << 'END'
4675 am__doit:
4676 @echo done
4677 .PHONY: am__doit
4678 END
4679 # If we don't find an include directive, just comment out the code.
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4681 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4682 am__include="#"
4683 am__quote=
4684 _am_result=none
4685 # First try GNU make style include.
4686 echo "include confinc" > confmf
4687 # We grep out `Entering directory' and `Leaving directory'
4688 # messages which can occur if `w' ends up in MAKEFLAGS.
4689 # In particular we don't look at `^make:' because GNU make might
4690 # be invoked under some other name (usually "gmake"), in which
4691 # case it prints its new name instead of `make'.
4692 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4693 am__include=include
4694 am__quote=
4695 _am_result=GNU
4696 fi
4697 # Now try BSD make style include.
4698 if test "$am__include" = "#"; then
4699 echo '.include "confinc"' > confmf
4700 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4701 am__include=.include
4702 am__quote="\""
4703 _am_result=BSD
4704 fi
4705 fi
4706
4707
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4709 $as_echo "$_am_result" >&6; }
4710 rm -f confinc confmf
4711
4712 # Check whether --enable-dependency-tracking was given.
4713 if test "${enable_dependency_tracking+set}" = set; then :
4714 enableval=$enable_dependency_tracking;
4715 fi
4716
4717 if test "x$enable_dependency_tracking" != xno; then
4718 am_depcomp="$ac_aux_dir/depcomp"
4719 AMDEPBACKSLASH='\'
4720 fi
4721
4722
4723 if test "x$enable_dependency_tracking" != xno; then
4724 AMDEP_TRUE=
4725 AMDEP_FALSE='#'
4726 else
4727 AMDEP_TRUE='#'
4728 AMDEP_FALSE=
4729 fi
4730
4731
4732
4733 # test to see if srcdir already configured
4734 if test "`cd $srcdir && pwd`" != "`pwd`" &&
4735 test -f $srcdir/config.status; then
4736 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4737 fi
4738
4739 # test whether we have cygpath
4740 if test -z "$CYGPATH_W"; then
4741 if (cygpath --version) >/dev/null 2>/dev/null; then
4742 CYGPATH_W='cygpath -w'
4743 else
4744 CYGPATH_W=echo
4745 fi
4746 fi
4747
4748
4749 # Define the identity of the package.
4750 PACKAGE=libdime
4751 VERSION=$VERSION
4752
4753
4754 cat >>confdefs.h <<_ACEOF
4755 #define PACKAGE "$PACKAGE"
4756 _ACEOF
4757
4758
4759 cat >>confdefs.h <<_ACEOF
4760 #define VERSION "$VERSION"
4761 _ACEOF
4762
4763 # Some tools Automake needs.
4764
4765 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4766
4767
4768 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4769
4770
4771 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4772
4773
4774 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4775
4776
4777 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4778
4779
4780 AMTAR=${AMTAR-"${am_missing_run}tar"}
4781
4782 install_sh=${install_sh-"$am_aux_dir/install-sh"}
4783
4784 # Installed binaries are usually stripped using `strip' when the user
4785 # run `make install-strip'. However `strip' might not be the right
4786 # tool to use in cross-compilation environments, therefore Automake
4787 # will honor the `STRIP' environment variable to overrule this program.
4788 if test "$cross_compiling" != no; then
4789 if test -n "$ac_tool_prefix"; then
4790 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4791 set dummy ${ac_tool_prefix}strip; ac_word=$2
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if test "${ac_cv_prog_STRIP+set}" = set; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 if test -n "$STRIP"; then
4798 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4799 else
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803 IFS=$as_save_IFS
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 break 2
4810 fi
4811 done
4812 done
4813 IFS=$as_save_IFS
4814
4815 fi
4816 fi
4817 STRIP=$ac_cv_prog_STRIP
4818 if test -n "$STRIP"; then
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4820 $as_echo "$STRIP" >&6; }
4821 else
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823 $as_echo "no" >&6; }
4824 fi
4825
4826
4827 fi
4828 if test -z "$ac_cv_prog_STRIP"; then
4829 ac_ct_STRIP=$STRIP
4830 # Extract the first word of "strip", so it can be a program name with args.
4831 set dummy strip; ac_word=$2
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833 $as_echo_n "checking for $ac_word... " >&6; }
4834 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4835 $as_echo_n "(cached) " >&6
4836 else
4837 if test -n "$ac_ct_STRIP"; then
4838 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4839 else
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 for as_dir in $PATH
4842 do
4843 IFS=$as_save_IFS
4844 test -z "$as_dir" && as_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4847 ac_cv_prog_ac_ct_STRIP="strip"
4848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 break 2
4850 fi
4851 done
4852 done
4853 IFS=$as_save_IFS
4854
4855 fi
4856 fi
4857 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4858 if test -n "$ac_ct_STRIP"; then
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4860 $as_echo "$ac_ct_STRIP" >&6; }
4861 else
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 $as_echo "no" >&6; }
4864 fi
4865
4866 if test "x$ac_ct_STRIP" = x; then
4867 STRIP=":"
4868 else
4869 case $cross_compiling:$ac_tool_warned in
4870 yes:)
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4873 ac_tool_warned=yes ;;
4874 esac
4875 STRIP=$ac_ct_STRIP
4876 fi
4877 else
4878 STRIP="$ac_cv_prog_STRIP"
4879 fi
4880
4881 fi
4882 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4883
4884 # We need awk for the "check" target. The system "awk" is bad on
4885 # some platforms.
4886
4887
4888 depcc="$CC" am_compiler_list=
4889
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4891 $as_echo_n "checking dependency style of $depcc... " >&6; }
4892 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4896 # We make a subdir and do the tests there. Otherwise we can end up
4897 # making bogus files that we don't know about and never remove. For
4898 # instance it was reported that on HP-UX the gcc test will end up
4899 # making a dummy file named `D' -- because `-MD' means `put the output
4900 # in D'.
4901 mkdir conftest.dir
4902 # Copy depcomp to subdir because otherwise we won't find it if we're
4903 # using a relative directory.
4904 cp "$am_depcomp" conftest.dir
4905 cd conftest.dir
4906 # We will build objects and dependencies in a subdirectory because
4907 # it helps to detect inapplicable dependency modes. For instance
4908 # both Tru64's cc and ICC support -MD to output dependencies as a
4909 # side effect of compilation, but ICC will put the dependencies in
4910 # the current directory while Tru64 will put them in the object
4911 # directory.
4912 mkdir sub
4913
4914 am_cv_CC_dependencies_compiler_type=none
4915 if test "$am_compiler_list" = ""; then
4916 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4917 fi
4918 for depmode in $am_compiler_list; do
4919 # Setup a source with many dependencies, because some compilers
4920 # like to wrap large dependency lists on column 80 (with \), and
4921 # we should not choose a depcomp mode which is confused by this.
4922 #
4923 # We need to recreate these files for each test, as the compiler may
4924 # overwrite some of them when testing with obscure command lines.
4925 # This happens at least with the AIX C compiler.
4926 : > sub/conftest.c
4927 for i in 1 2 3 4 5 6; do
4928 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4929 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4930 # Solaris 8's {/usr,}/bin/sh.
4931 touch sub/conftst$i.h
4932 done
4933 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4934
4935 case $depmode in
4936 nosideeffect)
4937 # after this tag, mechanisms are not by side-effect, so they'll
4938 # only be used when explicitly requested
4939 if test "x$enable_dependency_tracking" = xyes; then
4940 continue
4941 else
4942 break
4943 fi
4944 ;;
4945 none) break ;;
4946 esac
4947 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4948 # mode. It turns out that the SunPro C++ compiler does not properly
4949 # handle `-M -o', and we need to detect this.
4950 if depmode=$depmode \
4951 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4952 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4953 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4954 >/dev/null 2>conftest.err &&
4955 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4956 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4957 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4958 # icc doesn't choke on unknown options, it will just issue warnings
4959 # or remarks (even with -Werror). So we grep stderr for any message
4960 # that says an option was ignored or not supported.
4961 # When given -MP, icc 7.0 and 7.1 complain thusly:
4962 # icc: Command line warning: ignoring option '-M'; no argument required
4963 # The diagnosis changed in icc 8.0:
4964 # icc: Command line remark: option '-MP' not supported
4965 if (grep 'ignoring option' conftest.err ||
4966 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4967 am_cv_CC_dependencies_compiler_type=$depmode
4968 break
4969 fi
4970 fi
4971 done
4972
4973 cd ..
4974 rm -rf conftest.dir
4975 else
4976 am_cv_CC_dependencies_compiler_type=none
4977 fi
4978
4979 fi
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4981 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4982 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4983
4984
4985
4986 if
4987 test "x$enable_dependency_tracking" != xno \
4988 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4989 am__fastdepCC_TRUE=
4990 am__fastdepCC_FALSE='#'
4991 else
4992 am__fastdepCC_TRUE='#'
4993 am__fastdepCC_FALSE=
4994 fi
4995
4996
4997 depcc="$CXX" am_compiler_list=
4998
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5000 $as_echo_n "checking dependency style of $depcc... " >&6; }
5001 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5002 $as_echo_n "(cached) " >&6
5003 else
5004 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5005 # We make a subdir and do the tests there. Otherwise we can end up
5006 # making bogus files that we don't know about and never remove. For
5007 # instance it was reported that on HP-UX the gcc test will end up
5008 # making a dummy file named `D' -- because `-MD' means `put the output
5009 # in D'.
5010 mkdir conftest.dir
5011 # Copy depcomp to subdir because otherwise we won't find it if we're
5012 # using a relative directory.
5013 cp "$am_depcomp" conftest.dir
5014 cd conftest.dir
5015 # We will build objects and dependencies in a subdirectory because
5016 # it helps to detect inapplicable dependency modes. For instance
5017 # both Tru64's cc and ICC support -MD to output dependencies as a
5018 # side effect of compilation, but ICC will put the dependencies in
5019 # the current directory while Tru64 will put them in the object
5020 # directory.
5021 mkdir sub
5022
5023 am_cv_CXX_dependencies_compiler_type=none
5024 if test "$am_compiler_list" = ""; then
5025 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5026 fi
5027 for depmode in $am_compiler_list; do
5028 # Setup a source with many dependencies, because some compilers
5029 # like to wrap large dependency lists on column 80 (with \), and
5030 # we should not choose a depcomp mode which is confused by this.
5031 #
5032 # We need to recreate these files for each test, as the compiler may
5033 # overwrite some of them when testing with obscure command lines.
5034 # This happens at least with the AIX C compiler.
5035 : > sub/conftest.c
5036 for i in 1 2 3 4 5 6; do
5037 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5038 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5039 # Solaris 8's {/usr,}/bin/sh.
5040 touch sub/conftst$i.h
5041 done
5042 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5043
5044 case $depmode in
5045 nosideeffect)
5046 # after this tag, mechanisms are not by side-effect, so they'll
5047 # only be used when explicitly requested
5048 if test "x$enable_dependency_tracking" = xyes; then
5049 continue
5050 else
5051 break
5052 fi
5053 ;;
5054 none) break ;;
5055 esac
5056 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5057 # mode. It turns out that the SunPro C++ compiler does not properly
5058 # handle `-M -o', and we need to detect this.
5059 if depmode=$depmode \
5060 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5061 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5062 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5063 >/dev/null 2>conftest.err &&
5064 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5065 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5066 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5067 # icc doesn't choke on unknown options, it will just issue warnings
5068 # or remarks (even with -Werror). So we grep stderr for any message
5069 # that says an option was ignored or not supported.
5070 # When given -MP, icc 7.0 and 7.1 complain thusly:
5071 # icc: Command line warning: ignoring option '-M'; no argument required
5072 # The diagnosis changed in icc 8.0:
5073 # icc: Command line remark: option '-MP' not supported
5074 if (grep 'ignoring option' conftest.err ||
5075 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5076 am_cv_CXX_dependencies_compiler_type=$depmode
5077 break
5078 fi
5079 fi
5080 done
5081
5082 cd ..
5083 rm -rf conftest.dir
5084 else
5085 am_cv_CXX_dependencies_compiler_type=none
5086 fi
5087
5088 fi
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5090 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5091 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5092
5093
5094
5095 if
5096 test "x$enable_dependency_tracking" != xno \
5097 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5098 am__fastdepCXX_TRUE=
5099 am__fastdepCXX_FALSE='#'
5100 else
5101 am__fastdepCXX_TRUE='#'
5102 am__fastdepCXX_FALSE=
5103 fi
5104
5105
5106
5107
5108 # Default to not building a static library.
5109 # Can be overridden by the user with --enable-static.
5110 # Check whether --enable-static was given.
5111 if test "${enable_static+set}" = set; then :
5112 enableval=$enable_static; p=${PACKAGE-default}
5113 case $enableval in
5114 yes) enable_static=yes ;;
5115 no) enable_static=no ;;
5116 *)
5117 enable_static=no
5118 # Look at the argument we got. We use all the common list separators.
5119 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5120 for pkg in $enableval; do
5121 IFS="$lt_save_ifs"
5122 if test "X$pkg" = "X$p"; then
5123 enable_static=yes
5124 fi
5125 done
5126 IFS="$lt_save_ifs"
5127 ;;
5128 esac
5129 else
5130 enable_static=no
5131 fi
5132
5133
5134
5135
5136 # Turn off default maintainer make-rules -- use ./autogen.sh instead.
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5138 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5139 # Check whether --enable-maintainer-mode was given.
5140 if test "${enable_maintainer_mode+set}" = set; then :
5141 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5142 else
5143 USE_MAINTAINER_MODE=no
5144 fi
5145
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5147 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5148
5149
5150 if test $USE_MAINTAINER_MODE = yes; then
5151 MAINTAINER_MODE_TRUE=
5152 MAINTAINER_MODE_FALSE='#'
5153 else
5154 MAINTAINER_MODE_TRUE='#'
5155 MAINTAINER_MODE_FALSE=
5156 fi
5157
5158 MAINT=$MAINTAINER_MODE_TRUE
5159
5160
5161
5162 if $BUILD_WITH_MSVC; then
5163 RANLIB=:
5164 export RANLIB
5165 fi
5166
5167 # Initialize libtool
5168 # Check whether --enable-shared was given.
5169 if test "${enable_shared+set}" = set; then :
5170 enableval=$enable_shared; p=${PACKAGE-default}
5171 case $enableval in
5172 yes) enable_shared=yes ;;
5173 no) enable_shared=no ;;
5174 *)
5175 enable_shared=no
5176 # Look at the argument we got. We use all the common list separators.
5177 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5178 for pkg in $enableval; do
5179 IFS="$lt_save_ifs"
5180 if test "X$pkg" = "X$p"; then
5181 enable_shared=yes
5182 fi
5183 done
5184 IFS="$lt_save_ifs"
5185 ;;
5186 esac
5187 else
5188 enable_shared=yes
5189 fi
5190
5191
5192 # Check whether --enable-fast-install was given.
5193 if test "${enable_fast_install+set}" = set; then :
5194 enableval=$enable_fast_install; p=${PACKAGE-default}
5195 case $enableval in
5196 yes) enable_fast_install=yes ;;
5197 no) enable_fast_install=no ;;
5198 *)
5199 enable_fast_install=no
5200 # Look at the argument we got. We use all the common list separators.
5201 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5202 for pkg in $enableval; do
5203 IFS="$lt_save_ifs"
5204 if test "X$pkg" = "X$p"; then
5205 enable_fast_install=yes
5206 fi
5207 done
5208 IFS="$lt_save_ifs"
5209 ;;
5210 esac
5211 else
5212 enable_fast_install=yes
5213 fi
5214
5215
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5217 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5218 if test "${lt_cv_path_SED+set}" = set; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 # Loop through the user's path and test for sed and gsed.
5222 # Then use that list of sed's as ones to test for truncation.
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 for as_dir in $PATH
5225 do
5226 IFS=$as_save_IFS
5227 test -z "$as_dir" && as_dir=.
5228 for lt_ac_prog in sed gsed; do
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5231 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5232 fi
5233 done
5234 done
5235 done
5236 IFS=$as_save_IFS
5237 lt_ac_max=0
5238 lt_ac_count=0
5239 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5240 # along with /bin/sed that truncates output.
5241 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5242 test ! -f $lt_ac_sed && continue
5243 cat /dev/null > conftest.in
5244 lt_ac_count=0
5245 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5246 # Check for GNU sed and select it if it is found.
5247 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5248 lt_cv_path_SED=$lt_ac_sed
5249 break
5250 fi
5251 while true; do
5252 cat conftest.in conftest.in >conftest.tmp
5253 mv conftest.tmp conftest.in
5254 cp conftest.in conftest.nl
5255 echo >>conftest.nl
5256 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5257 cmp -s conftest.out conftest.nl || break
5258 # 10000 chars as input seems more than enough
5259 test $lt_ac_count -gt 10 && break
5260 lt_ac_count=`expr $lt_ac_count + 1`
5261 if test $lt_ac_count -gt $lt_ac_max; then
5262 lt_ac_max=$lt_ac_count
5263 lt_cv_path_SED=$lt_ac_sed
5264 fi
5265 done
5266 done
5267
5268 fi
5269
5270 SED=$lt_cv_path_SED
5271
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5273 $as_echo "$SED" >&6; }
5274
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5276 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5277 if test "${ac_cv_path_GREP+set}" = set; then :
5278 $as_echo_n "(cached) " >&6
5279 else
5280 if test -z "$GREP"; then
5281 ac_path_GREP_found=false
5282 # Loop through the user's path and test for each of PROGNAME-LIST
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5285 do
5286 IFS=$as_save_IFS
5287 test -z "$as_dir" && as_dir=.
5288 for ac_prog in grep ggrep; do
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5291 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5292 # Check for GNU ac_path_GREP and select it if it is found.
5293 # Check for GNU $ac_path_GREP
5294 case `"$ac_path_GREP" --version 2>&1` in
5295 *GNU*)
5296 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5297 *)
5298 ac_count=0
5299 $as_echo_n 0123456789 >"conftest.in"
5300 while :
5301 do
5302 cat "conftest.in" "conftest.in" >"conftest.tmp"
5303 mv "conftest.tmp" "conftest.in"
5304 cp "conftest.in" "conftest.nl"
5305 $as_echo 'GREP' >> "conftest.nl"
5306 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5307 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5308 as_fn_arith $ac_count + 1 && ac_count=$as_val
5309 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5310 # Best one so far, save it but keep looking for a better one
5311 ac_cv_path_GREP="$ac_path_GREP"
5312 ac_path_GREP_max=$ac_count
5313 fi
5314 # 10*(2^10) chars as input seems more than enough
5315 test $ac_count -gt 10 && break
5316 done
5317 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5318 esac
5319
5320 $ac_path_GREP_found && break 3
5321 done
5322 done
5323 done
5324 IFS=$as_save_IFS
5325 if test -z "$ac_cv_path_GREP"; then
5326 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5327 fi
5328 else
5329 ac_cv_path_GREP=$GREP
5330 fi
5331
5332 fi
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5334 $as_echo "$ac_cv_path_GREP" >&6; }
5335 GREP="$ac_cv_path_GREP"
5336
5337
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5339 $as_echo_n "checking for egrep... " >&6; }
5340 if test "${ac_cv_path_EGREP+set}" = set; then :
5341 $as_echo_n "(cached) " >&6
5342 else
5343 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5344 then ac_cv_path_EGREP="$GREP -E"
5345 else
5346 if test -z "$EGREP"; then
5347 ac_path_EGREP_found=false
5348 # Loop through the user's path and test for each of PROGNAME-LIST
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5351 do
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5354 for ac_prog in egrep; do
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5357 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5358 # Check for GNU ac_path_EGREP and select it if it is found.
5359 # Check for GNU $ac_path_EGREP
5360 case `"$ac_path_EGREP" --version 2>&1` in
5361 *GNU*)
5362 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5363 *)
5364 ac_count=0
5365 $as_echo_n 0123456789 >"conftest.in"
5366 while :
5367 do
5368 cat "conftest.in" "conftest.in" >"conftest.tmp"
5369 mv "conftest.tmp" "conftest.in"
5370 cp "conftest.in" "conftest.nl"
5371 $as_echo 'EGREP' >> "conftest.nl"
5372 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5373 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5374 as_fn_arith $ac_count + 1 && ac_count=$as_val
5375 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5376 # Best one so far, save it but keep looking for a better one
5377 ac_cv_path_EGREP="$ac_path_EGREP"
5378 ac_path_EGREP_max=$ac_count
5379 fi
5380 # 10*(2^10) chars as input seems more than enough
5381 test $ac_count -gt 10 && break
5382 done
5383 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5384 esac
5385
5386 $ac_path_EGREP_found && break 3
5387 done
5388 done
5389 done
5390 IFS=$as_save_IFS
5391 if test -z "$ac_cv_path_EGREP"; then
5392 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5393 fi
5394 else
5395 ac_cv_path_EGREP=$EGREP
5396 fi
5397
5398 fi
5399 fi
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5401 $as_echo "$ac_cv_path_EGREP" >&6; }
5402 EGREP="$ac_cv_path_EGREP"
5403
5404
5405
5406 # Check whether --with-gnu-ld was given.
5407 if test "${with_gnu_ld+set}" = set; then :
5408 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5409 else
5410 with_gnu_ld=no
5411 fi
5412
5413 ac_prog=ld
5414 if test "$GCC" = yes; then
5415 # Check if gcc -print-prog-name=ld gives a path.
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5417 $as_echo_n "checking for ld used by $CC... " >&6; }
5418 case $host in
5419 *-*-mingw*)
5420 # gcc leaves a trailing carriage return which upsets mingw
5421 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5422 *)
5423 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5424 esac
5425 case $ac_prog in
5426 # Accept absolute paths.
5427 [\\/]* | ?:[\\/]*)
5428 re_direlt='/[^/][^/]*/\.\./'
5429 # Canonicalize the pathname of ld
5430 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5431 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5432 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5433 done
5434 test -z "$LD" && LD="$ac_prog"
5435 ;;
5436 "")
5437 # If it fails, then pretend we aren't using GCC.
5438 ac_prog=ld
5439 ;;
5440 *)
5441 # If it is relative, then search for the first ld in PATH.
5442 with_gnu_ld=unknown
5443 ;;
5444 esac
5445 elif test "$with_gnu_ld" = yes; then
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5447 $as_echo_n "checking for GNU ld... " >&6; }
5448 else
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5450 $as_echo_n "checking for non-GNU ld... " >&6; }
5451 fi
5452 if test "${lt_cv_path_LD+set}" = set; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455 if test -z "$LD"; then
5456 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5457 for ac_dir in $PATH; do
5458 IFS="$lt_save_ifs"
5459 test -z "$ac_dir" && ac_dir=.
5460 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5461 lt_cv_path_LD="$ac_dir/$ac_prog"
5462 # Check to see if the program is GNU ld. I'd rather use --version,
5463 # but apparently some variants of GNU ld only accept -v.
5464 # Break only if it was the GNU/non-GNU ld that we prefer.
5465 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5466 *GNU* | *'with BFD'*)
5467 test "$with_gnu_ld" != no && break
5468 ;;
5469 *)
5470 test "$with_gnu_ld" != yes && break
5471 ;;
5472 esac
5473 fi
5474 done
5475 IFS="$lt_save_ifs"
5476 else
5477 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5478 fi
5479 fi
5480
5481 LD="$lt_cv_path_LD"
5482 if test -n "$LD"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5484 $as_echo "$LD" >&6; }
5485 else
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5488 fi
5489 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5491 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5492 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5496 case `$LD -v 2>&1 </dev/null` in
5497 *GNU* | *'with BFD'*)
5498 lt_cv_prog_gnu_ld=yes
5499 ;;
5500 *)
5501 lt_cv_prog_gnu_ld=no
5502 ;;
5503 esac
5504 fi
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5506 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5507 with_gnu_ld=$lt_cv_prog_gnu_ld
5508
5509
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5511 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5512 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 lt_cv_ld_reload_flag='-r'
5516 fi
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5518 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5519 reload_flag=$lt_cv_ld_reload_flag
5520 case $reload_flag in
5521 "" | " "*) ;;
5522 *) reload_flag=" $reload_flag" ;;
5523 esac
5524 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5525 case $host_os in
5526 darwin*)
5527 if test "$GCC" = yes; then
5528 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5529 else
5530 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5531 fi
5532 ;;
5533 esac
5534
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
5536 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5537 if test "${lt_cv_path_NM+set}" = set; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 if test -n "$NM"; then
5541 # Let the user override the test.
5542 lt_cv_path_NM="$NM"
5543 else
5544 lt_nm_to_check="${ac_tool_prefix}nm"
5545 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5546 lt_nm_to_check="$lt_nm_to_check nm"
5547 fi
5548 for lt_tmp_nm in $lt_nm_to_check; do
5549 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5550 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5551 IFS="$lt_save_ifs"
5552 test -z "$ac_dir" && ac_dir=.
5553 tmp_nm="$ac_dir/$lt_tmp_nm"
5554 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5555 # Check to see if the nm accepts a BSD-compat flag.
5556 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5557 # nm: unknown option "B" ignored
5558 # Tru64's nm complains that /dev/null is an invalid object file
5559 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5560 */dev/null* | *'Invalid file or object type'*)
5561 lt_cv_path_NM="$tmp_nm -B"
5562 break
5563 ;;
5564 *)
5565 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5566 */dev/null*)
5567 lt_cv_path_NM="$tmp_nm -p"
5568 break
5569 ;;
5570 *)
5571 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5572 continue # so that we can try to find one that supports BSD flags
5573 ;;
5574 esac
5575 ;;
5576 esac
5577 fi
5578 done
5579 IFS="$lt_save_ifs"
5580 done
5581 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5582 fi
5583 fi
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5585 $as_echo "$lt_cv_path_NM" >&6; }
5586 NM="$lt_cv_path_NM"
5587
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5589 $as_echo_n "checking whether ln -s works... " >&6; }
5590 LN_S=$as_ln_s
5591 if test "$LN_S" = "ln -s"; then
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5593 $as_echo "yes" >&6; }
5594 else
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5596 $as_echo "no, using $LN_S" >&6; }
5597 fi
5598
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5600 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5601 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5602 $as_echo_n "(cached) " >&6
5603 else
5604 lt_cv_file_magic_cmd='$MAGIC_CMD'
5605 lt_cv_file_magic_test_file=
5606 lt_cv_deplibs_check_method='unknown'
5607 # Need to set the preceding variable on all platforms that support
5608 # interlibrary dependencies.
5609 # 'none' -- dependencies not supported.
5610 # `unknown' -- same as none, but documents that we really don't know.
5611 # 'pass_all' -- all dependencies passed with no checks.
5612 # 'test_compile' -- check by making test program.
5613 # 'file_magic [[regex]]' -- check by looking for files in library path
5614 # which responds to the $file_magic_cmd with a given extended regex.
5615 # If you have `file' or equivalent on your system and you're not sure
5616 # whether `pass_all' will *always* work, you probably want this one.
5617
5618 case $host_os in
5619 aix[4-9]*)
5620 lt_cv_deplibs_check_method=pass_all
5621 ;;
5622
5623 beos*)
5624 lt_cv_deplibs_check_method=pass_all
5625 ;;
5626
5627 bsdi[45]*)
5628 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5629 lt_cv_file_magic_cmd='/usr/bin/file -L'
5630 lt_cv_file_magic_test_file=/shlib/libc.so
5631 ;;
5632
5633 cygwin*)
5634 # func_win32_libid is a shell function defined in ltmain.sh
5635 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5636 lt_cv_file_magic_cmd='func_win32_libid'
5637 ;;
5638
5639 mingw* | pw32*)
5640 # Base MSYS/MinGW do not provide the 'file' command needed by
5641 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5642 # unless we find 'file', for example because we are cross-compiling.
5643 if ( file / ) >/dev/null 2>&1; then
5644 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5645 lt_cv_file_magic_cmd='func_win32_libid'
5646 else
5647 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5648 lt_cv_file_magic_cmd='$OBJDUMP -f'
5649 fi
5650 ;;
5651
5652 darwin* | rhapsody*)
5653 lt_cv_deplibs_check_method=pass_all
5654 ;;
5655
5656 freebsd* | dragonfly*)
5657 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5658 case $host_cpu in
5659 i*86 )
5660 # Not sure whether the presence of OpenBSD here was a mistake.
5661 # Let's accept both of them until this is cleared up.
5662 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5663 lt_cv_file_magic_cmd=/usr/bin/file
5664 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5665 ;;
5666 esac
5667 else
5668 lt_cv_deplibs_check_method=pass_all
5669 fi
5670 ;;
5671
5672 gnu*)
5673 lt_cv_deplibs_check_method=pass_all
5674 ;;
5675
5676 hpux10.20* | hpux11*)
5677 lt_cv_file_magic_cmd=/usr/bin/file
5678 case $host_cpu in
5679 ia64*)
5680 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5681 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5682 ;;
5683 hppa*64*)
5684 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]'
5685 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5686 ;;
5687 *)
5688 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5689 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5690 ;;
5691 esac
5692 ;;
5693
5694 interix[3-9]*)
5695 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5696 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5697 ;;
5698
5699 irix5* | irix6* | nonstopux*)
5700 case $LD in
5701 *-32|*"-32 ") libmagic=32-bit;;
5702 *-n32|*"-n32 ") libmagic=N32;;
5703 *-64|*"-64 ") libmagic=64-bit;;
5704 *) libmagic=never-match;;
5705 esac
5706 lt_cv_deplibs_check_method=pass_all
5707 ;;
5708
5709 # This must be Linux ELF.
5710 linux* | k*bsd*-gnu)
5711 lt_cv_deplibs_check_method=pass_all
5712 ;;
5713
5714 netbsd*)
5715 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5716 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5717 else
5718 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5719 fi
5720 ;;
5721
5722 newos6*)
5723 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5724 lt_cv_file_magic_cmd=/usr/bin/file
5725 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5726 ;;
5727
5728 nto-qnx*)
5729 lt_cv_deplibs_check_method=unknown
5730 ;;
5731
5732 openbsd*)
5733 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5734 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5735 else
5736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5737 fi
5738 ;;
5739
5740 osf3* | osf4* | osf5*)
5741 lt_cv_deplibs_check_method=pass_all
5742 ;;
5743
5744 rdos*)
5745 lt_cv_deplibs_check_method=pass_all
5746 ;;
5747
5748 solaris*)
5749 lt_cv_deplibs_check_method=pass_all
5750 ;;
5751
5752 sysv4 | sysv4.3*)
5753 case $host_vendor in
5754 motorola)
5755 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]'
5756 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5757 ;;
5758 ncr)
5759 lt_cv_deplibs_check_method=pass_all
5760 ;;
5761 sequent)
5762 lt_cv_file_magic_cmd='/bin/file'
5763 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5764 ;;
5765 sni)
5766 lt_cv_file_magic_cmd='/bin/file'
5767 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5768 lt_cv_file_magic_test_file=/lib/libc.so
5769 ;;
5770 siemens)
5771 lt_cv_deplibs_check_method=pass_all
5772 ;;
5773 pc)
5774 lt_cv_deplibs_check_method=pass_all
5775 ;;
5776 esac
5777 ;;
5778
5779 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5780 lt_cv_deplibs_check_method=pass_all
5781 ;;
5782 esac
5783
5784 fi
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5786 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5787 file_magic_cmd=$lt_cv_file_magic_cmd
5788 deplibs_check_method=$lt_cv_deplibs_check_method
5789 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5790
5791
5792
5793
5794 # If no C compiler was specified, use CC.
5795 LTCC=${LTCC-"$CC"}
5796
5797 # If no C compiler flags were specified, use CFLAGS.
5798 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5799
5800 # Allow CC to be a program name with arguments.
5801 compiler=$CC
5802
5803
5804
5805 # Check whether --enable-libtool-lock was given.
5806 if test "${enable_libtool_lock+set}" = set; then :
5807 enableval=$enable_libtool_lock;
5808 fi
5809
5810 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5811
5812 # Some flags need to be propagated to the compiler or linker for good
5813 # libtool support.
5814 case $host in
5815 ia64-*-hpux*)
5816 # Find out which ABI we are using.
5817 echo 'int i;' > conftest.$ac_ext
5818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5819 (eval $ac_compile) 2>&5
5820 ac_status=$?
5821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5822 test $ac_status = 0; }; then
5823 case `/usr/bin/file conftest.$ac_objext` in
5824 *ELF-32*)
5825 HPUX_IA64_MODE="32"
5826 ;;
5827 *ELF-64*)
5828 HPUX_IA64_MODE="64"
5829 ;;
5830 esac
5831 fi
5832 rm -rf conftest*
5833 ;;
5834 *-*-irix6*)
5835 # Find out which ABI we are using.
5836 echo '#line 5836 "configure"' > conftest.$ac_ext
5837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5838 (eval $ac_compile) 2>&5
5839 ac_status=$?
5840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5841 test $ac_status = 0; }; then
5842 if test "$lt_cv_prog_gnu_ld" = yes; then
5843 case `/usr/bin/file conftest.$ac_objext` in
5844 *32-bit*)
5845 LD="${LD-ld} -melf32bsmip"
5846 ;;
5847 *N32*)
5848 LD="${LD-ld} -melf32bmipn32"
5849 ;;
5850 *64-bit*)
5851 LD="${LD-ld} -melf64bmip"
5852 ;;
5853 esac
5854 else
5855 case `/usr/bin/file conftest.$ac_objext` in
5856 *32-bit*)
5857 LD="${LD-ld} -32"
5858 ;;
5859 *N32*)
5860 LD="${LD-ld} -n32"
5861 ;;
5862 *64-bit*)
5863 LD="${LD-ld} -64"
5864 ;;
5865 esac
5866 fi
5867 fi
5868 rm -rf conftest*
5869 ;;
5870
5871 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5872 s390*-*linux*|sparc*-*linux*)
5873 # Find out which ABI we are using.
5874 echo 'int i;' > conftest.$ac_ext
5875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5876 (eval $ac_compile) 2>&5
5877 ac_status=$?
5878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5879 test $ac_status = 0; }; then
5880 case `/usr/bin/file conftest.o` in
5881 *32-bit*)
5882 case $host in
5883 x86_64-*kfreebsd*-gnu)
5884 LD="${LD-ld} -m elf_i386_fbsd"
5885 ;;
5886 x86_64-*linux*)
5887 LD="${LD-ld} -m elf_i386"
5888 ;;
5889 ppc64-*linux*|powerpc64-*linux*)
5890 LD="${LD-ld} -m elf32ppclinux"
5891 ;;
5892 s390x-*linux*)
5893 LD="${LD-ld} -m elf_s390"
5894 ;;
5895 sparc64-*linux*)
5896 LD="${LD-ld} -m elf32_sparc"
5897 ;;
5898 esac
5899 ;;
5900 *64-bit*)
5901 case $host in
5902 x86_64-*kfreebsd*-gnu)
5903 LD="${LD-ld} -m elf_x86_64_fbsd"
5904 ;;
5905 x86_64-*linux*)
5906 LD="${LD-ld} -m elf_x86_64"
5907 ;;
5908 ppc*-*linux*|powerpc*-*linux*)
5909 LD="${LD-ld} -m elf64ppc"
5910 ;;
5911 s390*-*linux*)
5912 LD="${LD-ld} -m elf64_s390"
5913 ;;
5914 sparc*-*linux*)
5915 LD="${LD-ld} -m elf64_sparc"
5916 ;;
5917 esac
5918 ;;
5919 esac
5920 fi
5921 rm -rf conftest*
5922 ;;
5923
5924 *-*-sco3.2v5*)
5925 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5926 SAVE_CFLAGS="$CFLAGS"
5927 CFLAGS="$CFLAGS -belf"
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5929 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5930 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5933 ac_ext=c
5934 ac_cpp='$CPP $CPPFLAGS'
5935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5938
5939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940 /* end confdefs.h. */
5941
5942 int
5943 main ()
5944 {
5945
5946 ;
5947 return 0;
5948 }
5949 _ACEOF
5950 if ac_fn_c_try_link "$LINENO"; then :
5951 lt_cv_cc_needs_belf=yes
5952 else
5953 lt_cv_cc_needs_belf=no
5954 fi
5955 rm -f core conftest.err conftest.$ac_objext \
5956 conftest$ac_exeext conftest.$ac_ext
5957 ac_ext=c
5958 ac_cpp='$CPP $CPPFLAGS'
5959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5962
5963 fi
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5965 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5966 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5967 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5968 CFLAGS="$SAVE_CFLAGS"
5969 fi
5970 ;;
5971 sparc*-*solaris*)
5972 # Find out which ABI we are using.
5973 echo 'int i;' > conftest.$ac_ext
5974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5975 (eval $ac_compile) 2>&5
5976 ac_status=$?
5977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5978 test $ac_status = 0; }; then
5979 case `/usr/bin/file conftest.o` in
5980 *64-bit*)
5981 case $lt_cv_prog_gnu_ld in
5982 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5983 *)
5984 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5985 LD="${LD-ld} -64"
5986 fi
5987 ;;
5988 esac
5989 ;;
5990 esac
5991 fi
5992 rm -rf conftest*
5993 ;;
5994
5995
5996 esac
5997
5998 need_locks="$enable_libtool_lock"
5999
6000
6001
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6003 $as_echo_n "checking for ANSI C header files... " >&6; }
6004 if test "${ac_cv_header_stdc+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6009 #include <stdlib.h>
6010 #include <stdarg.h>
6011 #include <string.h>
6012 #include <float.h>
6013
6014 int
6015 main ()
6016 {
6017
6018 ;
6019 return 0;
6020 }
6021 _ACEOF
6022 if ac_fn_c_try_compile "$LINENO"; then :
6023 ac_cv_header_stdc=yes
6024 else
6025 ac_cv_header_stdc=no
6026 fi
6027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028
6029 if test $ac_cv_header_stdc = yes; then
6030 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6033 #include <string.h>
6034
6035 _ACEOF
6036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6037 $EGREP "memchr" >/dev/null 2>&1; then :
6038
6039 else
6040 ac_cv_header_stdc=no
6041 fi
6042 rm -f conftest*
6043
6044 fi
6045
6046 if test $ac_cv_header_stdc = yes; then
6047 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6050 #include <stdlib.h>
6051
6052 _ACEOF
6053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6054 $EGREP "free" >/dev/null 2>&1; then :
6055
6056 else
6057 ac_cv_header_stdc=no
6058 fi
6059 rm -f conftest*
6060
6061 fi
6062
6063 if test $ac_cv_header_stdc = yes; then
6064 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6065 if test "$cross_compiling" = yes; then :
6066 :
6067 else
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6070 #include <ctype.h>
6071 #include <stdlib.h>
6072 #if ((' ' & 0x0FF) == 0x020)
6073 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6074 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6075 #else
6076 # define ISLOWER(c) \
6077 (('a' <= (c) && (c) <= 'i') \
6078 || ('j' <= (c) && (c) <= 'r') \
6079 || ('s' <= (c) && (c) <= 'z'))
6080 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6081 #endif
6082
6083 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6084 int
6085 main ()
6086 {
6087 int i;
6088 for (i = 0; i < 256; i++)
6089 if (XOR (islower (i), ISLOWER (i))
6090 || toupper (i) != TOUPPER (i))
6091 return 2;
6092 return 0;
6093 }
6094 _ACEOF
6095 if ac_fn_c_try_run "$LINENO"; then :
6096
6097 else
6098 ac_cv_header_stdc=no
6099 fi
6100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6101 conftest.$ac_objext conftest.beam conftest.$ac_ext
6102 fi
6103
6104 fi
6105 fi
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6107 $as_echo "$ac_cv_header_stdc" >&6; }
6108 if test $ac_cv_header_stdc = yes; then
6109
6110 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6111
6112 fi
6113
6114 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6115 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6116 inttypes.h stdint.h unistd.h
6117 do :
6118 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6119 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6120 "
6121 eval as_val=\$$as_ac_Header
6122 if test "x$as_val" = x""yes; then :
6123 cat >>confdefs.h <<_ACEOF
6124 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6125 _ACEOF
6126
6127 fi
6128
6129 done
6130
6131
6132 for ac_header in dlfcn.h
6133 do :
6134 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
6135 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6136 cat >>confdefs.h <<_ACEOF
6137 #define HAVE_DLFCN_H 1
6138 _ACEOF
6139
6140 fi
6141
6142 done
6143
6144
6145
6146 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6147 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6148 (test "X$CXX" != "Xg++"))) ; then
6149 ac_ext=cpp
6150 ac_cpp='$CXXCPP $CPPFLAGS'
6151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6155 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6156 if test -z "$CXXCPP"; then
6157 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
6158 $as_echo_n "(cached) " >&6
6159 else
6160 # Double quotes because CXXCPP needs to be expanded
6161 for CXXCPP in "$CXX -E" "/lib/cpp"
6162 do
6163 ac_preproc_ok=false
6164 for ac_cxx_preproc_warn_flag in '' yes
6165 do
6166 # Use a header file that comes with gcc, so configuring glibc
6167 # with a fresh cross-compiler works.
6168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6169 # <limits.h> exists even on freestanding compilers.
6170 # On the NeXT, cc -E runs the code through the compiler's parser,
6171 # not just through cpp. "Syntax error" is here to catch this case.
6172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h. */
6174 #ifdef __STDC__
6175 # include <limits.h>
6176 #else
6177 # include <assert.h>
6178 #endif
6179 Syntax error
6180 _ACEOF
6181 if ac_fn_cxx_try_cpp "$LINENO"; then :
6182
6183 else
6184 # Broken: fails on valid input.
6185 continue
6186 fi
6187 rm -f conftest.err conftest.$ac_ext
6188
6189 # OK, works on sane cases. Now check whether nonexistent headers
6190 # can be detected and how.
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6193 #include <ac_nonexistent.h>
6194 _ACEOF
6195 if ac_fn_cxx_try_cpp "$LINENO"; then :
6196 # Broken: success on invalid input.
6197 continue
6198 else
6199 # Passes both tests.
6200 ac_preproc_ok=:
6201 break
6202 fi
6203 rm -f conftest.err conftest.$ac_ext
6204
6205 done
6206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6207 rm -f conftest.err conftest.$ac_ext
6208 if $ac_preproc_ok; then :
6209 break
6210 fi
6211
6212 done
6213 ac_cv_prog_CXXCPP=$CXXCPP
6214
6215 fi
6216 CXXCPP=$ac_cv_prog_CXXCPP
6217 else
6218 ac_cv_prog_CXXCPP=$CXXCPP
6219 fi
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6221 $as_echo "$CXXCPP" >&6; }
6222 ac_preproc_ok=false
6223 for ac_cxx_preproc_warn_flag in '' yes
6224 do
6225 # Use a header file that comes with gcc, so configuring glibc
6226 # with a fresh cross-compiler works.
6227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6228 # <limits.h> exists even on freestanding compilers.
6229 # On the NeXT, cc -E runs the code through the compiler's parser,
6230 # not just through cpp. "Syntax error" is here to catch this case.
6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6233 #ifdef __STDC__
6234 # include <limits.h>
6235 #else
6236 # include <assert.h>
6237 #endif
6238 Syntax error
6239 _ACEOF
6240 if ac_fn_cxx_try_cpp "$LINENO"; then :
6241
6242 else
6243 # Broken: fails on valid input.
6244 continue
6245 fi
6246 rm -f conftest.err conftest.$ac_ext
6247
6248 # OK, works on sane cases. Now check whether nonexistent headers
6249 # can be detected and how.
6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6252 #include <ac_nonexistent.h>
6253 _ACEOF
6254 if ac_fn_cxx_try_cpp "$LINENO"; then :
6255 # Broken: success on invalid input.
6256 continue
6257 else
6258 # Passes both tests.
6259 ac_preproc_ok=:
6260 break
6261 fi
6262 rm -f conftest.err conftest.$ac_ext
6263
6264 done
6265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6266 rm -f conftest.err conftest.$ac_ext
6267 if $ac_preproc_ok; then :
6268
6269 else
6270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6272 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
6273 See \`config.log' for more details." "$LINENO" 5; }
6274 fi
6275
6276 ac_ext=cpp
6277 ac_cpp='$CXXCPP $CPPFLAGS'
6278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6281
6282 fi
6283
6284 ac_ext=f
6285 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6286 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6287 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6288 if test -n "$ac_tool_prefix"; then
6289 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 pgf95 lf95 ftn
6290 do
6291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if test "${ac_cv_prog_F77+set}" = set; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 if test -n "$F77"; then
6299 ac_cv_prog_F77="$F77" # Let the user override the test.
6300 else
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304 IFS=$as_save_IFS
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6308 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 break 2
6311 fi
6312 done
6313 done
6314 IFS=$as_save_IFS
6315
6316 fi
6317 fi
6318 F77=$ac_cv_prog_F77
6319 if test -n "$F77"; then
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6321 $as_echo "$F77" >&6; }
6322 else
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324 $as_echo "no" >&6; }
6325 fi
6326
6327
6328 test -n "$F77" && break
6329 done
6330 fi
6331 if test -z "$F77"; then
6332 ac_ct_F77=$F77
6333 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 pgf95 lf95 ftn
6334 do
6335 # Extract the first word of "$ac_prog", so it can be a program name with args.
6336 set dummy $ac_prog; ac_word=$2
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338 $as_echo_n "checking for $ac_word... " >&6; }
6339 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6340 $as_echo_n "(cached) " >&6
6341 else
6342 if test -n "$ac_ct_F77"; then
6343 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6344 else
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 for as_dir in $PATH
6347 do
6348 IFS=$as_save_IFS
6349 test -z "$as_dir" && as_dir=.
6350 for ac_exec_ext in '' $ac_executable_extensions; do
6351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6352 ac_cv_prog_ac_ct_F77="$ac_prog"
6353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6354 break 2
6355 fi
6356 done
6357 done
6358 IFS=$as_save_IFS
6359
6360 fi
6361 fi
6362 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6363 if test -n "$ac_ct_F77"; then
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6365 $as_echo "$ac_ct_F77" >&6; }
6366 else
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368 $as_echo "no" >&6; }
6369 fi
6370
6371
6372 test -n "$ac_ct_F77" && break
6373 done
6374
6375 if test "x$ac_ct_F77" = x; then
6376 F77=""
6377 else
6378 case $cross_compiling:$ac_tool_warned in
6379 yes:)
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6382 ac_tool_warned=yes ;;
6383 esac
6384 F77=$ac_ct_F77
6385 fi
6386 fi
6387
6388
6389 # Provide some information about the compiler.
6390 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6391 set X $ac_compile
6392 ac_compiler=$2
6393 for ac_option in --version -v -V -qversion; do
6394 { { ac_try="$ac_compiler $ac_option >&5"
6395 case "(($ac_try" in
6396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397 *) ac_try_echo=$ac_try;;
6398 esac
6399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6400 $as_echo "$ac_try_echo"; } >&5
6401 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6402 ac_status=$?
6403 if test -s conftest.err; then
6404 sed '10a\
6405 ... rest of stderr output deleted ...
6406 10q' conftest.err >conftest.er1
6407 cat conftest.er1 >&5
6408 fi
6409 rm -f conftest.er1 conftest.err
6410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6411 test $ac_status = 0; }
6412 done
6413 rm -f a.out
6414
6415 # If we don't use `.F' as extension, the preprocessor is not run on the
6416 # input file. (Note that this only needs to work for GNU compilers.)
6417 ac_save_ext=$ac_ext
6418 ac_ext=F
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6420 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6421 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6422 $as_echo_n "(cached) " >&6
6423 else
6424 cat > conftest.$ac_ext <<_ACEOF
6425 program main
6426 #ifndef __GNUC__
6427 choke me
6428 #endif
6429
6430 end
6431 _ACEOF
6432 if ac_fn_f77_try_compile "$LINENO"; then :
6433 ac_compiler_gnu=yes
6434 else
6435 ac_compiler_gnu=no
6436 fi
6437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6438 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6439
6440 fi
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6442 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6443 ac_ext=$ac_save_ext
6444 ac_test_FFLAGS=${FFLAGS+set}
6445 ac_save_FFLAGS=$FFLAGS
6446 FFLAGS=
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6448 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6449 if test "${ac_cv_prog_f77_g+set}" = set; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 FFLAGS=-g
6453 cat > conftest.$ac_ext <<_ACEOF
6454 program main
6455
6456 end
6457 _ACEOF
6458 if ac_fn_f77_try_compile "$LINENO"; then :
6459 ac_cv_prog_f77_g=yes
6460 else
6461 ac_cv_prog_f77_g=no
6462 fi
6463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6464
6465 fi
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6467 $as_echo "$ac_cv_prog_f77_g" >&6; }
6468 if test "$ac_test_FFLAGS" = set; then
6469 FFLAGS=$ac_save_FFLAGS
6470 elif test $ac_cv_prog_f77_g = yes; then
6471 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6472 FFLAGS="-g -O2"
6473 else
6474 FFLAGS="-g"
6475 fi
6476 else
6477 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6478 FFLAGS="-O2"
6479 else
6480 FFLAGS=
6481 fi
6482 fi
6483
6484 if test $ac_compiler_gnu = yes; then
6485 G77=yes
6486 else
6487 G77=
6488 fi
6489 ac_ext=cpp
6490 ac_cpp='$CXXCPP $CPPFLAGS'
6491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6494
6495
6496
6497 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6498 # find the maximum length of command line arguments
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6500 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6501 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6502 $as_echo_n "(cached) " >&6
6503 else
6504 i=0
6505 teststring="ABCD"
6506
6507 case $build_os in
6508 msdosdjgpp*)
6509 # On DJGPP, this test can blow up pretty badly due to problems in libc
6510 # (any single argument exceeding 2000 bytes causes a buffer overrun
6511 # during glob expansion). Even if it were fixed, the result of this
6512 # check would be larger than it should be.
6513 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6514 ;;
6515
6516 gnu*)
6517 # Under GNU Hurd, this test is not required because there is
6518 # no limit to the length of command line arguments.
6519 # Libtool will interpret -1 as no limit whatsoever
6520 lt_cv_sys_max_cmd_len=-1;
6521 ;;
6522
6523 cygwin* | mingw*)
6524 # On Win9x/ME, this test blows up -- it succeeds, but takes
6525 # about 5 minutes as the teststring grows exponentially.
6526 # Worse, since 9x/ME are not pre-emptively multitasking,
6527 # you end up with a "frozen" computer, even though with patience
6528 # the test eventually succeeds (with a max line length of 256k).
6529 # Instead, let's just punt: use the minimum linelength reported by
6530 # all of the supported platforms: 8192 (on NT/2K/XP).
6531 lt_cv_sys_max_cmd_len=8192;
6532 ;;
6533
6534 amigaos*)
6535 # On AmigaOS with pdksh, this test takes hours, literally.
6536 # So we just punt and use a minimum line length of 8192.
6537 lt_cv_sys_max_cmd_len=8192;
6538 ;;
6539
6540 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6541 # This has been around since 386BSD, at least. Likely further.
6542 if test -x /sbin/sysctl; then
6543 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6544 elif test -x /usr/sbin/sysctl; then
6545 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6546 else
6547 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6548 fi
6549 # And add a safety zone
6550 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6551 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6552 ;;
6553
6554 interix*)
6555 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6556 lt_cv_sys_max_cmd_len=196608
6557 ;;
6558
6559 osf*)
6560 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6561 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6562 # nice to cause kernel panics so lets avoid the loop below.
6563 # First set a reasonable default.
6564 lt_cv_sys_max_cmd_len=16384
6565 #
6566 if test -x /sbin/sysconfig; then
6567 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6568 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6569 esac
6570 fi
6571 ;;
6572 sco3.2v5*)
6573 lt_cv_sys_max_cmd_len=102400
6574 ;;
6575 sysv5* | sco5v6* | sysv4.2uw2*)
6576 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6577 if test -n "$kargmax"; then
6578 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6579 else
6580 lt_cv_sys_max_cmd_len=32768
6581 fi
6582 ;;
6583 *)
6584 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6585 if test -n "$lt_cv_sys_max_cmd_len"; then
6586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6588 else
6589 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6590 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6591 = "XX$teststring") >/dev/null 2>&1 &&
6592 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6593 lt_cv_sys_max_cmd_len=$new_result &&
6594 test $i != 17 # 1/2 MB should be enough
6595 do
6596 i=`expr $i + 1`
6597 teststring=$teststring$teststring
6598 done
6599 teststring=
6600 # Add a significant safety factor because C++ compilers can tack on massive
6601 # amounts of additional arguments before passing them to the linker.
6602 # It appears as though 1/2 is a usable value.
6603 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6604 fi
6605 ;;
6606 esac
6607
6608 fi
6609
6610 if test -n $lt_cv_sys_max_cmd_len ; then
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6612 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6613 else
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6615 $as_echo "none" >&6; }
6616 fi
6617
6618
6619
6620
6621
6622 # Check for command to grab the raw symbol name followed by C symbol from nm.
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6624 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6625 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6626 $as_echo_n "(cached) " >&6
6627 else
6628
6629 # These are sane defaults that work on at least a few old systems.
6630 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6631
6632 # Character class describing NM global symbol codes.
6633 symcode='[BCDEGRST]'
6634
6635 # Regexp to match symbols that can be accessed directly from C.
6636 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6637
6638 # Transform an extracted symbol line into a proper C declaration
6639 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6640
6641 # Transform an extracted symbol line into symbol name and symbol address
6642 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'"
6643
6644 # Define system-specific variables.
6645 case $host_os in
6646 aix*)
6647 symcode='[BCDT]'
6648 ;;
6649 cygwin* | mingw* | pw32*)
6650 symcode='[ABCDGISTW]'
6651 ;;
6652 hpux*) # Its linker distinguishes data from code symbols
6653 if test "$host_cpu" = ia64; then
6654 symcode='[ABCDEGRST]'
6655 fi
6656 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6657 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'"
6658 ;;
6659 linux* | k*bsd*-gnu)
6660 if test "$host_cpu" = ia64; then
6661 symcode='[ABCDGIRSTW]'
6662 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6663 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'"
6664 fi
6665 ;;
6666 irix* | nonstopux*)
6667 symcode='[BCDEGRST]'
6668 ;;
6669 osf*)
6670 symcode='[BCDEGQRST]'
6671 ;;
6672 solaris*)
6673 symcode='[BDRT]'
6674 ;;
6675 sco3.2v5*)
6676 symcode='[DT]'
6677 ;;
6678 sysv4.2uw2*)
6679 symcode='[DT]'
6680 ;;
6681 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6682 symcode='[ABDT]'
6683 ;;
6684 sysv4)
6685 symcode='[DFNSTU]'
6686 ;;
6687 esac
6688
6689 # Handle CRLF in mingw tool chain
6690 opt_cr=
6691 case $build_os in
6692 mingw*)
6693 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6694 ;;
6695 esac
6696
6697 # If we're using GNU nm, then use its standard symbol codes.
6698 case `$NM -V 2>&1` in
6699 *GNU* | *'with BFD'*)
6700 symcode='[ABCDGIRSTW]' ;;
6701 esac
6702
6703 # Try without a prefix undercore, then with it.
6704 for ac_symprfx in "" "_"; do
6705
6706 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6707 symxfrm="\\1 $ac_symprfx\\2 \\2"
6708
6709 # Write the raw and C identifiers.
6710 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6711
6712 # Check to see that the pipe works correctly.
6713 pipe_works=no
6714
6715 rm -f conftest*
6716 cat > conftest.$ac_ext <<EOF
6717 #ifdef __cplusplus
6718 extern "C" {
6719 #endif
6720 char nm_test_var;
6721 void nm_test_func(){}
6722 #ifdef __cplusplus
6723 }
6724 #endif
6725 int main(){nm_test_var='a';nm_test_func();return(0);}
6726 EOF
6727
6728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6729 (eval $ac_compile) 2>&5
6730 ac_status=$?
6731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6732 test $ac_status = 0; }; then
6733 # Now try to grab the symbols.
6734 nlist=conftest.nm
6735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6736 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6737 ac_status=$?
6738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6739 test $ac_status = 0; } && test -s "$nlist"; then
6740 # Try sorting and uniquifying the output.
6741 if sort "$nlist" | uniq > "$nlist"T; then
6742 mv -f "$nlist"T "$nlist"
6743 else
6744 rm -f "$nlist"T
6745 fi
6746
6747 # Make sure that we snagged all the symbols we need.
6748 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6749 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6750 cat <<EOF > conftest.$ac_ext
6751 #ifdef __cplusplus
6752 extern "C" {
6753 #endif
6754
6755 EOF
6756 # Now generate the symbol file.
6757 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6758
6759 cat <<EOF >> conftest.$ac_ext
6760 #if defined (__STDC__) && __STDC__
6761 # define lt_ptr_t void *
6762 #else
6763 # define lt_ptr_t char *
6764 # define const
6765 #endif
6766
6767 /* The mapping between symbol names and symbols. */
6768 const struct {
6769 const char *name;
6770 lt_ptr_t address;
6771 }
6772 lt_preloaded_symbols[] =
6773 {
6774 EOF
6775 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6776 cat <<\EOF >> conftest.$ac_ext
6777 {0, (lt_ptr_t) 0}
6778 };
6779
6780 #ifdef __cplusplus
6781 }
6782 #endif
6783 EOF
6784 # Now try linking the two files.
6785 mv conftest.$ac_objext conftstm.$ac_objext
6786 lt_save_LIBS="$LIBS"
6787 lt_save_CFLAGS="$CFLAGS"
6788 LIBS="conftstm.$ac_objext"
6789 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6791 (eval $ac_link) 2>&5
6792 ac_status=$?
6793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6794 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6795 pipe_works=yes
6796 fi
6797 LIBS="$lt_save_LIBS"
6798 CFLAGS="$lt_save_CFLAGS"
6799 else
6800 echo "cannot find nm_test_func in $nlist" >&5
6801 fi
6802 else
6803 echo "cannot find nm_test_var in $nlist" >&5
6804 fi
6805 else
6806 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6807 fi
6808 else
6809 echo "$progname: failed program was:" >&5
6810 cat conftest.$ac_ext >&5
6811 fi
6812 rm -rf conftest* conftst*
6813
6814 # Do not use the global_symbol_pipe unless it works.
6815 if test "$pipe_works" = yes; then
6816 break
6817 else
6818 lt_cv_sys_global_symbol_pipe=
6819 fi
6820 done
6821
6822 fi
6823
6824 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6825 lt_cv_sys_global_symbol_to_cdecl=
6826 fi
6827 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6829 $as_echo "failed" >&6; }
6830 else
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6832 $as_echo "ok" >&6; }
6833 fi
6834
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6836 $as_echo_n "checking for objdir... " >&6; }
6837 if test "${lt_cv_objdir+set}" = set; then :
6838 $as_echo_n "(cached) " >&6
6839 else
6840 rm -f .libs 2>/dev/null
6841 mkdir .libs 2>/dev/null
6842 if test -d .libs; then
6843 lt_cv_objdir=.libs
6844 else
6845 # MS-DOS does not allow filenames that begin with a dot.
6846 lt_cv_objdir=_libs
6847 fi
6848 rmdir .libs 2>/dev/null
6849 fi
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6851 $as_echo "$lt_cv_objdir" >&6; }
6852 objdir=$lt_cv_objdir
6853
6854
6855
6856
6857
6858 case $host_os in
6859 aix3*)
6860 # AIX sometimes has problems with the GCC collect2 program. For some
6861 # reason, if we set the COLLECT_NAMES environment variable, the problems
6862 # vanish in a puff of smoke.
6863 if test "X${COLLECT_NAMES+set}" != Xset; then
6864 COLLECT_NAMES=
6865 export COLLECT_NAMES
6866 fi
6867 ;;
6868 esac
6869
6870 # Sed substitution that helps us do robust quoting. It backslashifies
6871 # metacharacters that are still active within double-quoted strings.
6872 Xsed='sed -e 1s/^X//'
6873 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6874
6875 # Same as above, but do not quote variable references.
6876 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6877
6878 # Sed substitution to delay expansion of an escaped shell variable in a
6879 # double_quote_subst'ed string.
6880 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6881
6882 # Sed substitution to avoid accidental globbing in evaled expressions
6883 no_glob_subst='s/\*/\\\*/g'
6884
6885 # Constants:
6886 rm="rm -f"
6887
6888 # Global variables:
6889 default_ofile=libtool
6890 can_build_shared=yes
6891
6892 # All known linkers require a `.a' archive for static linking (except MSVC,
6893 # which needs '.lib').
6894 libext=a
6895 ltmain="$ac_aux_dir/ltmain.sh"
6896 ofile="$default_ofile"
6897 with_gnu_ld="$lt_cv_prog_gnu_ld"
6898
6899 if test -n "$ac_tool_prefix"; then
6900 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6901 set dummy ${ac_tool_prefix}ar; ac_word=$2
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 $as_echo_n "checking for $ac_word... " >&6; }
6904 if test "${ac_cv_prog_AR+set}" = set; then :
6905 $as_echo_n "(cached) " >&6
6906 else
6907 if test -n "$AR"; then
6908 ac_cv_prog_AR="$AR" # Let the user override the test.
6909 else
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 for as_dir in $PATH
6912 do
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6917 ac_cv_prog_AR="${ac_tool_prefix}ar"
6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6920 fi
6921 done
6922 done
6923 IFS=$as_save_IFS
6924
6925 fi
6926 fi
6927 AR=$ac_cv_prog_AR
6928 if test -n "$AR"; then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6930 $as_echo "$AR" >&6; }
6931 else
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6934 fi
6935
6936
6937 fi
6938 if test -z "$ac_cv_prog_AR"; then
6939 ac_ct_AR=$AR
6940 # Extract the first word of "ar", so it can be a program name with args.
6941 set dummy ar; ac_word=$2
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943 $as_echo_n "checking for $ac_word... " >&6; }
6944 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6945 $as_echo_n "(cached) " >&6
6946 else
6947 if test -n "$ac_ct_AR"; then
6948 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6949 else
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 for as_dir in $PATH
6952 do
6953 IFS=$as_save_IFS
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6957 ac_cv_prog_ac_ct_AR="ar"
6958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 break 2
6960 fi
6961 done
6962 done
6963 IFS=$as_save_IFS
6964
6965 fi
6966 fi
6967 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6968 if test -n "$ac_ct_AR"; then
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6970 $as_echo "$ac_ct_AR" >&6; }
6971 else
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973 $as_echo "no" >&6; }
6974 fi
6975
6976 if test "x$ac_ct_AR" = x; then
6977 AR="false"
6978 else
6979 case $cross_compiling:$ac_tool_warned in
6980 yes:)
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6983 ac_tool_warned=yes ;;
6984 esac
6985 AR=$ac_ct_AR
6986 fi
6987 else
6988 AR="$ac_cv_prog_AR"
6989 fi
6990
6991 if test -n "$ac_tool_prefix"; then
6992 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6993 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995 $as_echo_n "checking for $ac_word... " >&6; }
6996 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6997 $as_echo_n "(cached) " >&6
6998 else
6999 if test -n "$RANLIB"; then
7000 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7001 else
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 for as_dir in $PATH
7004 do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7009 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013 done
7014 done
7015 IFS=$as_save_IFS
7016
7017 fi
7018 fi
7019 RANLIB=$ac_cv_prog_RANLIB
7020 if test -n "$RANLIB"; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7022 $as_echo "$RANLIB" >&6; }
7023 else
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025 $as_echo "no" >&6; }
7026 fi
7027
7028
7029 fi
7030 if test -z "$ac_cv_prog_RANLIB"; then
7031 ac_ct_RANLIB=$RANLIB
7032 # Extract the first word of "ranlib", so it can be a program name with args.
7033 set dummy ranlib; ac_word=$2
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035 $as_echo_n "checking for $ac_word... " >&6; }
7036 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7037 $as_echo_n "(cached) " >&6
7038 else
7039 if test -n "$ac_ct_RANLIB"; then
7040 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7041 else
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 for as_dir in $PATH
7044 do
7045 IFS=$as_save_IFS
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7049 ac_cv_prog_ac_ct_RANLIB="ranlib"
7050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 break 2
7052 fi
7053 done
7054 done
7055 IFS=$as_save_IFS
7056
7057 fi
7058 fi
7059 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7060 if test -n "$ac_ct_RANLIB"; then
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7062 $as_echo "$ac_ct_RANLIB" >&6; }
7063 else
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065 $as_echo "no" >&6; }
7066 fi
7067
7068 if test "x$ac_ct_RANLIB" = x; then
7069 RANLIB=":"
7070 else
7071 case $cross_compiling:$ac_tool_warned in
7072 yes:)
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7075 ac_tool_warned=yes ;;
7076 esac
7077 RANLIB=$ac_ct_RANLIB
7078 fi
7079 else
7080 RANLIB="$ac_cv_prog_RANLIB"
7081 fi
7082
7083 if test -n "$ac_tool_prefix"; then
7084 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7085 set dummy ${ac_tool_prefix}strip; ac_word=$2
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7087 $as_echo_n "checking for $ac_word... " >&6; }
7088 if test "${ac_cv_prog_STRIP+set}" = set; then :
7089 $as_echo_n "(cached) " >&6
7090 else
7091 if test -n "$STRIP"; then
7092 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7093 else
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 for as_dir in $PATH
7096 do
7097 IFS=$as_save_IFS
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7101 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 break 2
7104 fi
7105 done
7106 done
7107 IFS=$as_save_IFS
7108
7109 fi
7110 fi
7111 STRIP=$ac_cv_prog_STRIP
7112 if test -n "$STRIP"; then
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7114 $as_echo "$STRIP" >&6; }
7115 else
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117 $as_echo "no" >&6; }
7118 fi
7119
7120
7121 fi
7122 if test -z "$ac_cv_prog_STRIP"; then
7123 ac_ct_STRIP=$STRIP
7124 # Extract the first word of "strip", so it can be a program name with args.
7125 set dummy strip; ac_word=$2
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127 $as_echo_n "checking for $ac_word... " >&6; }
7128 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7129 $as_echo_n "(cached) " >&6
7130 else
7131 if test -n "$ac_ct_STRIP"; then
7132 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7133 else
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $PATH
7136 do
7137 IFS=$as_save_IFS
7138 test -z "$as_dir" && as_dir=.
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7141 ac_cv_prog_ac_ct_STRIP="strip"
7142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 break 2
7144 fi
7145 done
7146 done
7147 IFS=$as_save_IFS
7148
7149 fi
7150 fi
7151 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7152 if test -n "$ac_ct_STRIP"; then
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7154 $as_echo "$ac_ct_STRIP" >&6; }
7155 else
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157 $as_echo "no" >&6; }
7158 fi
7159
7160 if test "x$ac_ct_STRIP" = x; then
7161 STRIP=":"
7162 else
7163 case $cross_compiling:$ac_tool_warned in
7164 yes:)
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7167 ac_tool_warned=yes ;;
7168 esac
7169 STRIP=$ac_ct_STRIP
7170 fi
7171 else
7172 STRIP="$ac_cv_prog_STRIP"
7173 fi
7174
7175
7176 old_CC="$CC"
7177 old_CFLAGS="$CFLAGS"
7178
7179 # Set sane defaults for various variables
7180 test -z "$AR" && AR=ar
7181 test -z "$AR_FLAGS" && AR_FLAGS=cru
7182 test -z "$AS" && AS=as
7183 test -z "$CC" && CC=cc
7184 test -z "$LTCC" && LTCC=$CC
7185 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7186 test -z "$DLLTOOL" && DLLTOOL=dlltool
7187 test -z "$LD" && LD=ld
7188 test -z "$LN_S" && LN_S="ln -s"
7189 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7190 test -z "$NM" && NM=nm
7191 test -z "$SED" && SED=sed
7192 test -z "$OBJDUMP" && OBJDUMP=objdump
7193 test -z "$RANLIB" && RANLIB=:
7194 test -z "$STRIP" && STRIP=:
7195 test -z "$ac_objext" && ac_objext=o
7196
7197 # Determine commands to create old-style static archives.
7198 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7199 old_postinstall_cmds='chmod 644 $oldlib'
7200 old_postuninstall_cmds=
7201
7202 if test -n "$RANLIB"; then
7203 case $host_os in
7204 openbsd*)
7205 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7206 ;;
7207 *)
7208 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7209 ;;
7210 esac
7211 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7212 fi
7213
7214 for cc_temp in $compiler""; do
7215 case $cc_temp in
7216 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7217 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7218 \-*) ;;
7219 *) break;;
7220 esac
7221 done
7222 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7223
7224
7225 # Only perform the check for file, if the check method requires it
7226 case $deplibs_check_method in
7227 file_magic*)
7228 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7230 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7231 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7232 $as_echo_n "(cached) " >&6
7233 else
7234 case $MAGIC_CMD in
7235 [\\/*] | ?:[\\/]*)
7236 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7237 ;;
7238 *)
7239 lt_save_MAGIC_CMD="$MAGIC_CMD"
7240 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7241 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7242 for ac_dir in $ac_dummy; do
7243 IFS="$lt_save_ifs"
7244 test -z "$ac_dir" && ac_dir=.
7245 if test -f $ac_dir/${ac_tool_prefix}file; then
7246 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7247 if test -n "$file_magic_test_file"; then
7248 case $deplibs_check_method in
7249 "file_magic "*)
7250 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7251 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7252 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7253 $EGREP "$file_magic_regex" > /dev/null; then
7254 :
7255 else
7256 cat <<EOF 1>&2
7257
7258 *** Warning: the command libtool uses to detect shared libraries,
7259 *** $file_magic_cmd, produces output that libtool cannot recognize.
7260 *** The result is that libtool may fail to recognize shared libraries
7261 *** as such. This will affect the creation of libtool libraries that
7262 *** depend on shared libraries, but programs linked with such libtool
7263 *** libraries will work regardless of this problem. Nevertheless, you
7264 *** may want to report the problem to your system manager and/or to
7265 *** [email protected]
7266
7267 EOF
7268 fi ;;
7269 esac
7270 fi
7271 break
7272 fi
7273 done
7274 IFS="$lt_save_ifs"
7275 MAGIC_CMD="$lt_save_MAGIC_CMD"
7276 ;;
7277 esac
7278 fi
7279
7280 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7281 if test -n "$MAGIC_CMD"; then
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7283 $as_echo "$MAGIC_CMD" >&6; }
7284 else
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286 $as_echo "no" >&6; }
7287 fi
7288
7289 if test -z "$lt_cv_path_MAGIC_CMD"; then
7290 if test -n "$ac_tool_prefix"; then
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7292 $as_echo_n "checking for file... " >&6; }
7293 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7294 $as_echo_n "(cached) " >&6
7295 else
7296 case $MAGIC_CMD in
7297 [\\/*] | ?:[\\/]*)
7298 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7299 ;;
7300 *)
7301 lt_save_MAGIC_CMD="$MAGIC_CMD"
7302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7303 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7304 for ac_dir in $ac_dummy; do
7305 IFS="$lt_save_ifs"
7306 test -z "$ac_dir" && ac_dir=.
7307 if test -f $ac_dir/file; then
7308 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7309 if test -n "$file_magic_test_file"; then
7310 case $deplibs_check_method in
7311 "file_magic "*)
7312 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7313 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7314 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7315 $EGREP "$file_magic_regex" > /dev/null; then
7316 :
7317 else
7318 cat <<EOF 1>&2
7319
7320 *** Warning: the command libtool uses to detect shared libraries,
7321 *** $file_magic_cmd, produces output that libtool cannot recognize.
7322 *** The result is that libtool may fail to recognize shared libraries
7323 *** as such. This will affect the creation of libtool libraries that
7324 *** depend on shared libraries, but programs linked with such libtool
7325 *** libraries will work regardless of this problem. Nevertheless, you
7326 *** may want to report the problem to your system manager and/or to
7327 *** [email protected]
7328
7329 EOF
7330 fi ;;
7331 esac
7332 fi
7333 break
7334 fi
7335 done
7336 IFS="$lt_save_ifs"
7337 MAGIC_CMD="$lt_save_MAGIC_CMD"
7338 ;;
7339 esac
7340 fi
7341
7342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7343 if test -n "$MAGIC_CMD"; then
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7345 $as_echo "$MAGIC_CMD" >&6; }
7346 else
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7349 fi
7350
7351 else
7352 MAGIC_CMD=:
7353 fi
7354 fi
7355
7356 fi
7357 ;;
7358 esac
7359
7360
7361 case $host_os in
7362 rhapsody* | darwin*)
7363 if test -n "$ac_tool_prefix"; then
7364 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7365 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 if test -n "$DSYMUTIL"; then
7372 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7376 do
7377 IFS=$as_save_IFS
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7381 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 break 2
7384 fi
7385 done
7386 done
7387 IFS=$as_save_IFS
7388
7389 fi
7390 fi
7391 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7392 if test -n "$DSYMUTIL"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7394 $as_echo "$DSYMUTIL" >&6; }
7395 else
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7398 fi
7399
7400
7401 fi
7402 if test -z "$ac_cv_prog_DSYMUTIL"; then
7403 ac_ct_DSYMUTIL=$DSYMUTIL
7404 # Extract the first word of "dsymutil", so it can be a program name with args.
7405 set dummy dsymutil; ac_word=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411 if test -n "$ac_ct_DSYMUTIL"; then
7412 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7413 else
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7416 do
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7421 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 break 2
7424 fi
7425 done
7426 done
7427 IFS=$as_save_IFS
7428
7429 fi
7430 fi
7431 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7432 if test -n "$ac_ct_DSYMUTIL"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7434 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7435 else
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7438 fi
7439
7440 if test "x$ac_ct_DSYMUTIL" = x; then
7441 DSYMUTIL=":"
7442 else
7443 case $cross_compiling:$ac_tool_warned in
7444 yes:)
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7447 ac_tool_warned=yes ;;
7448 esac
7449 DSYMUTIL=$ac_ct_DSYMUTIL
7450 fi
7451 else
7452 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7453 fi
7454
7455 if test -n "$ac_tool_prefix"; then
7456 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7457 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459 $as_echo_n "checking for $ac_word... " >&6; }
7460 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7461 $as_echo_n "(cached) " >&6
7462 else
7463 if test -n "$NMEDIT"; then
7464 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7465 else
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7468 do
7469 IFS=$as_save_IFS
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7473 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 break 2
7476 fi
7477 done
7478 done
7479 IFS=$as_save_IFS
7480
7481 fi
7482 fi
7483 NMEDIT=$ac_cv_prog_NMEDIT
7484 if test -n "$NMEDIT"; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7486 $as_echo "$NMEDIT" >&6; }
7487 else
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7490 fi
7491
7492
7493 fi
7494 if test -z "$ac_cv_prog_NMEDIT"; then
7495 ac_ct_NMEDIT=$NMEDIT
7496 # Extract the first word of "nmedit", so it can be a program name with args.
7497 set dummy nmedit; ac_word=$2
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499 $as_echo_n "checking for $ac_word... " >&6; }
7500 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7501 $as_echo_n "(cached) " >&6
7502 else
7503 if test -n "$ac_ct_NMEDIT"; then
7504 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7505 else
7506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 for as_dir in $PATH
7508 do
7509 IFS=$as_save_IFS
7510 test -z "$as_dir" && as_dir=.
7511 for ac_exec_ext in '' $ac_executable_extensions; do
7512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7513 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 break 2
7516 fi
7517 done
7518 done
7519 IFS=$as_save_IFS
7520
7521 fi
7522 fi
7523 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7524 if test -n "$ac_ct_NMEDIT"; then
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7526 $as_echo "$ac_ct_NMEDIT" >&6; }
7527 else
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529 $as_echo "no" >&6; }
7530 fi
7531
7532 if test "x$ac_ct_NMEDIT" = x; then
7533 NMEDIT=":"
7534 else
7535 case $cross_compiling:$ac_tool_warned in
7536 yes:)
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7539 ac_tool_warned=yes ;;
7540 esac
7541 NMEDIT=$ac_ct_NMEDIT
7542 fi
7543 else
7544 NMEDIT="$ac_cv_prog_NMEDIT"
7545 fi
7546
7547
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7549 $as_echo_n "checking for -single_module linker flag... " >&6; }
7550 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7551 $as_echo_n "(cached) " >&6
7552 else
7553 lt_cv_apple_cc_single_mod=no
7554 if test -z "${LT_MULTI_MODULE}"; then
7555 # By default we will add the -single_module flag. You can override
7556 # by either setting the environment variable LT_MULTI_MODULE
7557 # non-empty at configure time, or by adding -multi_module to the
7558 # link flags.
7559 echo "int foo(void){return 1;}" > conftest.c
7560 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7561 -dynamiclib ${wl}-single_module conftest.c
7562 if test -f libconftest.dylib; then
7563 lt_cv_apple_cc_single_mod=yes
7564 rm -rf libconftest.dylib*
7565 fi
7566 rm conftest.c
7567 fi
7568 fi
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7570 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7572 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7573 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7574 $as_echo_n "(cached) " >&6
7575 else
7576 lt_cv_ld_exported_symbols_list=no
7577 save_LDFLAGS=$LDFLAGS
7578 echo "_main" > conftest.sym
7579 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581 /* end confdefs.h. */
7582
7583 int
7584 main ()
7585 {
7586
7587 ;
7588 return 0;
7589 }
7590 _ACEOF
7591 if ac_fn_cxx_try_link "$LINENO"; then :
7592 lt_cv_ld_exported_symbols_list=yes
7593 else
7594 lt_cv_ld_exported_symbols_list=no
7595 fi
7596 rm -f core conftest.err conftest.$ac_objext \
7597 conftest$ac_exeext conftest.$ac_ext
7598 LDFLAGS="$save_LDFLAGS"
7599
7600 fi
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7602 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7603 case $host_os in
7604 rhapsody* | darwin1.[0123])
7605 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7606 darwin1.*)
7607 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7608 darwin*)
7609 # if running on 10.5 or later, the deployment target defaults
7610 # to the OS version, if on x86, and 10.4, the deployment
7611 # target defaults to 10.4. Don't you love it?
7612 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7613 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7614 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7615 10.[012]*)
7616 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7617 10.*)
7618 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7619 esac
7620 ;;
7621 esac
7622 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7623 _lt_dar_single_mod='$single_module'
7624 fi
7625 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7626 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7627 else
7628 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7629 fi
7630 if test "$DSYMUTIL" != ":"; then
7631 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7632 else
7633 _lt_dsymutil=
7634 fi
7635 ;;
7636 esac
7637
7638
7639 enable_dlopen=no
7640 enable_win32_dll=no
7641
7642 # Check whether --enable-libtool-lock was given.
7643 if test "${enable_libtool_lock+set}" = set; then :
7644 enableval=$enable_libtool_lock;
7645 fi
7646
7647 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7648
7649
7650 # Check whether --with-pic was given.
7651 if test "${with_pic+set}" = set; then :
7652 withval=$with_pic; pic_mode="$withval"
7653 else
7654 pic_mode=default
7655 fi
7656
7657 test -z "$pic_mode" && pic_mode=default
7658
7659 # Use C for the default configuration in the libtool script
7660 tagname=
7661 lt_save_CC="$CC"
7662 ac_ext=c
7663 ac_cpp='$CPP $CPPFLAGS'
7664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7667
7668
7669 # Source file extension for C test sources.
7670 ac_ext=c
7671
7672 # Object file extension for compiled C test sources.
7673 objext=o
7674 objext=$objext
7675
7676 # Code to be used in simple compile tests
7677 lt_simple_compile_test_code="int some_variable = 0;"
7678
7679 # Code to be used in simple link tests
7680 lt_simple_link_test_code='int main(){return(0);}'
7681
7682
7683 # If no C compiler was specified, use CC.
7684 LTCC=${LTCC-"$CC"}
7685
7686 # If no C compiler flags were specified, use CFLAGS.
7687 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7688
7689 # Allow CC to be a program name with arguments.
7690 compiler=$CC
7691
7692
7693 # save warnings/boilerplate of simple test code
7694 ac_outfile=conftest.$ac_objext
7695 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7696 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7697 _lt_compiler_boilerplate=`cat conftest.err`
7698 $rm conftest*
7699
7700 ac_outfile=conftest.$ac_objext
7701 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7702 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7703 _lt_linker_boilerplate=`cat conftest.err`
7704 $rm -r conftest*
7705
7706
7707
7708 lt_prog_compiler_no_builtin_flag=
7709
7710 if test "$GCC" = yes; then
7711 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7712
7713
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7715 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7716 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7717 $as_echo_n "(cached) " >&6
7718 else
7719 lt_cv_prog_compiler_rtti_exceptions=no
7720 ac_outfile=conftest.$ac_objext
7721 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7722 lt_compiler_flag="-fno-rtti -fno-exceptions"
7723 # Insert the option either (1) after the last *FLAGS variable, or
7724 # (2) before a word containing "conftest.", or (3) at the end.
7725 # Note that $ac_compile itself does not contain backslashes and begins
7726 # with a dollar sign (not a hyphen), so the echo should work correctly.
7727 # The option is referenced via a variable to avoid confusing sed.
7728 lt_compile=`echo "$ac_compile" | $SED \
7729 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7730 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7731 -e 's:$: $lt_compiler_flag:'`
7732 (eval echo "\"\$as_me:7732: $lt_compile\"" >&5)
7733 (eval "$lt_compile" 2>conftest.err)
7734 ac_status=$?
7735 cat conftest.err >&5
7736 echo "$as_me:7736: \$? = $ac_status" >&5
7737 if (exit $ac_status) && test -s "$ac_outfile"; then
7738 # The compiler can only warn and ignore the option if not recognized
7739 # So say no if there are warnings other than the usual output.
7740 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7741 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7742 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7743 lt_cv_prog_compiler_rtti_exceptions=yes
7744 fi
7745 fi
7746 $rm conftest*
7747
7748 fi
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7750 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7751
7752 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7753 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7754 else
7755 :
7756 fi
7757
7758 fi
7759
7760 lt_prog_compiler_wl=
7761 lt_prog_compiler_pic=
7762 lt_prog_compiler_static=
7763
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7765 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7766
7767 if test "$GCC" = yes; then
7768 lt_prog_compiler_wl='-Wl,'
7769 lt_prog_compiler_static='-static'
7770
7771 case $host_os in
7772 aix*)
7773 # All AIX code is PIC.
7774 if test "$host_cpu" = ia64; then
7775 # AIX 5 now supports IA64 processor
7776 lt_prog_compiler_static='-Bstatic'
7777 fi
7778 ;;
7779
7780 amigaos*)
7781 # FIXME: we need at least 68020 code to build shared libraries, but
7782 # adding the `-m68020' flag to GCC prevents building anything better,
7783 # like `-m68040'.
7784 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7785 ;;
7786
7787 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7788 # PIC is the default for these OSes.
7789 ;;
7790
7791 mingw* | cygwin* | pw32* | os2*)
7792 # This hack is so that the source file can tell whether it is being
7793 # built for inclusion in a dll (and should export symbols for example).
7794 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7795 # (--disable-auto-import) libraries
7796 lt_prog_compiler_pic='-DDLL_EXPORT'
7797 ;;
7798
7799 darwin* | rhapsody*)
7800 # PIC is the default on this platform
7801 # Common symbols not allowed in MH_DYLIB files
7802 lt_prog_compiler_pic='-fno-common'
7803 ;;
7804
7805 interix[3-9]*)
7806 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7807 # Instead, we relocate shared libraries at runtime.
7808 ;;
7809
7810 msdosdjgpp*)
7811 # Just because we use GCC doesn't mean we suddenly get shared libraries
7812 # on systems that don't support them.
7813 lt_prog_compiler_can_build_shared=no
7814 enable_shared=no
7815 ;;
7816
7817 sysv4*MP*)
7818 if test -d /usr/nec; then
7819 lt_prog_compiler_pic=-Kconform_pic
7820 fi
7821 ;;
7822
7823 hpux*)
7824 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7825 # not for PA HP-UX.
7826 case $host_cpu in
7827 hppa*64*|ia64*)
7828 # +Z the default
7829 ;;
7830 *)
7831 lt_prog_compiler_pic='-fPIC'
7832 ;;
7833 esac
7834 ;;
7835
7836 *)
7837 lt_prog_compiler_pic='-fPIC'
7838 ;;
7839 esac
7840 else
7841 # PORTME Check for flag to pass linker flags through the system compiler.
7842 case $host_os in
7843 aix*)
7844 lt_prog_compiler_wl='-Wl,'
7845 if test "$host_cpu" = ia64; then
7846 # AIX 5 now supports IA64 processor
7847 lt_prog_compiler_static='-Bstatic'
7848 else
7849 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7850 fi
7851 ;;
7852 darwin*)
7853 # PIC is the default on this platform
7854 # Common symbols not allowed in MH_DYLIB files
7855 case $cc_basename in
7856 xlc*)
7857 lt_prog_compiler_pic='-qnocommon'
7858 lt_prog_compiler_wl='-Wl,'
7859 ;;
7860 esac
7861 ;;
7862
7863 mingw* | cygwin* | pw32* | os2*)
7864 # This hack is so that the source file can tell whether it is being
7865 # built for inclusion in a dll (and should export symbols for example).
7866 lt_prog_compiler_pic='-DDLL_EXPORT'
7867 ;;
7868
7869 hpux9* | hpux10* | hpux11*)
7870 lt_prog_compiler_wl='-Wl,'
7871 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7872 # not for PA HP-UX.
7873 case $host_cpu in
7874 hppa*64*|ia64*)
7875 # +Z the default
7876 ;;
7877 *)
7878 lt_prog_compiler_pic='+Z'
7879 ;;
7880 esac
7881 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7882 lt_prog_compiler_static='${wl}-a ${wl}archive'
7883 ;;
7884
7885 irix5* | irix6* | nonstopux*)
7886 lt_prog_compiler_wl='-Wl,'
7887 # PIC (with -KPIC) is the default.
7888 lt_prog_compiler_static='-non_shared'
7889 ;;
7890
7891 newsos6)
7892 lt_prog_compiler_pic='-KPIC'
7893 lt_prog_compiler_static='-Bstatic'
7894 ;;
7895
7896 linux* | k*bsd*-gnu)
7897 case $cc_basename in
7898 icc* | ecc*)
7899 lt_prog_compiler_wl='-Wl,'
7900 lt_prog_compiler_pic='-KPIC'
7901 lt_prog_compiler_static='-static'
7902 ;;
7903 pgcc* | pgf77* | pgf90* | pgf95*)
7904 # Portland Group compilers (*not* the Pentium gcc compiler,
7905 # which looks to be a dead project)
7906 lt_prog_compiler_wl='-Wl,'
7907 lt_prog_compiler_pic='-fpic'
7908 lt_prog_compiler_static='-Bstatic'
7909 ;;
7910 ccc*)
7911 lt_prog_compiler_wl='-Wl,'
7912 # All Alpha code is PIC.
7913 lt_prog_compiler_static='-non_shared'
7914 ;;
7915 *)
7916 case `$CC -V 2>&1 | sed 5q` in
7917 *Sun\ C*)
7918 # Sun C 5.9
7919 lt_prog_compiler_pic='-KPIC'
7920 lt_prog_compiler_static='-Bstatic'
7921 lt_prog_compiler_wl='-Wl,'
7922 ;;
7923 *Sun\ F*)
7924 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7925 lt_prog_compiler_pic='-KPIC'
7926 lt_prog_compiler_static='-Bstatic'
7927 lt_prog_compiler_wl=''
7928 ;;
7929 esac
7930 ;;
7931 esac
7932 ;;
7933
7934 osf3* | osf4* | osf5*)
7935 lt_prog_compiler_wl='-Wl,'
7936 # All OSF/1 code is PIC.
7937 lt_prog_compiler_static='-non_shared'
7938 ;;
7939
7940 rdos*)
7941 lt_prog_compiler_static='-non_shared'
7942 ;;
7943
7944 solaris*)
7945 lt_prog_compiler_pic='-KPIC'
7946 lt_prog_compiler_static='-Bstatic'
7947 case $cc_basename in
7948 f77* | f90* | f95*)
7949 lt_prog_compiler_wl='-Qoption ld ';;
7950 *)
7951 lt_prog_compiler_wl='-Wl,';;
7952 esac
7953 ;;
7954
7955 sunos4*)
7956 lt_prog_compiler_wl='-Qoption ld '
7957 lt_prog_compiler_pic='-PIC'
7958 lt_prog_compiler_static='-Bstatic'
7959 ;;
7960
7961 sysv4 | sysv4.2uw2* | sysv4.3*)
7962 lt_prog_compiler_wl='-Wl,'
7963 lt_prog_compiler_pic='-KPIC'
7964 lt_prog_compiler_static='-Bstatic'
7965 ;;
7966
7967 sysv4*MP*)
7968 if test -d /usr/nec ;then
7969 lt_prog_compiler_pic='-Kconform_pic'
7970 lt_prog_compiler_static='-Bstatic'
7971 fi
7972 ;;
7973
7974 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7975 lt_prog_compiler_wl='-Wl,'
7976 lt_prog_compiler_pic='-KPIC'
7977 lt_prog_compiler_static='-Bstatic'
7978 ;;
7979
7980 unicos*)
7981 lt_prog_compiler_wl='-Wl,'
7982 lt_prog_compiler_can_build_shared=no
7983 ;;
7984
7985 uts4*)
7986 lt_prog_compiler_pic='-pic'
7987 lt_prog_compiler_static='-Bstatic'
7988 ;;
7989
7990 *)
7991 lt_prog_compiler_can_build_shared=no
7992 ;;
7993 esac
7994 fi
7995
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7997 $as_echo "$lt_prog_compiler_pic" >&6; }
7998
7999 #
8000 # Check to make sure the PIC flag actually works.
8001 #
8002 if test -n "$lt_prog_compiler_pic"; then
8003
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8005 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8006 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8007 $as_echo_n "(cached) " >&6
8008 else
8009 lt_cv_prog_compiler_pic_works=no
8010 ac_outfile=conftest.$ac_objext
8011 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8012 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8013 # Insert the option either (1) after the last *FLAGS variable, or
8014 # (2) before a word containing "conftest.", or (3) at the end.
8015 # Note that $ac_compile itself does not contain backslashes and begins
8016 # with a dollar sign (not a hyphen), so the echo should work correctly.
8017 # The option is referenced via a variable to avoid confusing sed.
8018 lt_compile=`echo "$ac_compile" | $SED \
8019 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8020 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8021 -e 's:$: $lt_compiler_flag:'`
8022 (eval echo "\"\$as_me:8022: $lt_compile\"" >&5)
8023 (eval "$lt_compile" 2>conftest.err)
8024 ac_status=$?
8025 cat conftest.err >&5
8026 echo "$as_me:8026: \$? = $ac_status" >&5
8027 if (exit $ac_status) && test -s "$ac_outfile"; then
8028 # The compiler can only warn and ignore the option if not recognized
8029 # So say no if there are warnings other than the usual output.
8030 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8032 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8033 lt_cv_prog_compiler_pic_works=yes
8034 fi
8035 fi
8036 $rm conftest*
8037
8038 fi
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8040 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8041
8042 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8043 case $lt_prog_compiler_pic in
8044 "" | " "*) ;;
8045 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8046 esac
8047 else
8048 lt_prog_compiler_pic=
8049 lt_prog_compiler_can_build_shared=no
8050 fi
8051
8052 fi
8053 case $host_os in
8054 # For platforms which do not support PIC, -DPIC is meaningless:
8055 *djgpp*)
8056 lt_prog_compiler_pic=
8057 ;;
8058 *)
8059 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8060 ;;
8061 esac
8062
8063 #
8064 # Check to make sure the static flag actually works.
8065 #
8066 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8068 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8069 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8070 $as_echo_n "(cached) " >&6
8071 else
8072 lt_cv_prog_compiler_static_works=no
8073 save_LDFLAGS="$LDFLAGS"
8074 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8075 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8076 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8077 # The linker can only warn and ignore the option if not recognized
8078 # So say no if there are warnings
8079 if test -s conftest.err; then
8080 # Append any errors to the config.log.
8081 cat conftest.err 1>&5
8082 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8084 if diff conftest.exp conftest.er2 >/dev/null; then
8085 lt_cv_prog_compiler_static_works=yes
8086 fi
8087 else
8088 lt_cv_prog_compiler_static_works=yes
8089 fi
8090 fi
8091 $rm -r conftest*
8092 LDFLAGS="$save_LDFLAGS"
8093
8094 fi
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8096 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8097
8098 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8099 :
8100 else
8101 lt_prog_compiler_static=
8102 fi
8103
8104
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8106 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8107 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8108 $as_echo_n "(cached) " >&6
8109 else
8110 lt_cv_prog_compiler_c_o=no
8111 $rm -r conftest 2>/dev/null
8112 mkdir conftest
8113 cd conftest
8114 mkdir out
8115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8116
8117 lt_compiler_flag="-o out/conftest2.$ac_objext"
8118 # Insert the option either (1) after the last *FLAGS variable, or
8119 # (2) before a word containing "conftest.", or (3) at the end.
8120 # Note that $ac_compile itself does not contain backslashes and begins
8121 # with a dollar sign (not a hyphen), so the echo should work correctly.
8122 lt_compile=`echo "$ac_compile" | $SED \
8123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8125 -e 's:$: $lt_compiler_flag:'`
8126 (eval echo "\"\$as_me:8126: $lt_compile\"" >&5)
8127 (eval "$lt_compile" 2>out/conftest.err)
8128 ac_status=$?
8129 cat out/conftest.err >&5
8130 echo "$as_me:8130: \$? = $ac_status" >&5
8131 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8132 then
8133 # The compiler can only warn and ignore the option if not recognized
8134 # So say no if there are warnings
8135 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8136 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8137 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8138 lt_cv_prog_compiler_c_o=yes
8139 fi
8140 fi
8141 chmod u+w . 2>&5
8142 $rm conftest*
8143 # SGI C++ compiler will create directory out/ii_files/ for
8144 # template instantiation
8145 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8146 $rm out/* && rmdir out
8147 cd ..
8148 rmdir conftest
8149 $rm conftest*
8150
8151 fi
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8153 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8154
8155
8156 hard_links="nottested"
8157 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8158 # do not overwrite the value of need_locks provided by the user
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8160 $as_echo_n "checking if we can lock with hard links... " >&6; }
8161 hard_links=yes
8162 $rm conftest*
8163 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8164 touch conftest.a
8165 ln conftest.a conftest.b 2>&5 || hard_links=no
8166 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8168 $as_echo "$hard_links" >&6; }
8169 if test "$hard_links" = no; then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8171 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8172 need_locks=warn
8173 fi
8174 else
8175 need_locks=no
8176 fi
8177
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8179 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8180
8181 runpath_var=
8182 allow_undefined_flag=
8183 enable_shared_with_static_runtimes=no
8184 archive_cmds=
8185 archive_expsym_cmds=
8186 old_archive_From_new_cmds=
8187 old_archive_from_expsyms_cmds=
8188 export_dynamic_flag_spec=
8189 whole_archive_flag_spec=
8190 thread_safe_flag_spec=
8191 hardcode_libdir_flag_spec=
8192 hardcode_libdir_flag_spec_ld=
8193 hardcode_libdir_separator=
8194 hardcode_direct=no
8195 hardcode_minus_L=no
8196 hardcode_shlibpath_var=unsupported
8197 link_all_deplibs=unknown
8198 hardcode_automatic=no
8199 module_cmds=
8200 module_expsym_cmds=
8201 always_export_symbols=no
8202 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8203 # include_expsyms should be a list of space-separated symbols to be *always*
8204 # included in the symbol list
8205 include_expsyms=
8206 # exclude_expsyms can be an extended regexp of symbols to exclude
8207 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8208 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8209 # as well as any symbol that contains `d'.
8210 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8211 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8212 # platforms (ab)use it in PIC code, but their linkers get confused if
8213 # the symbol is explicitly referenced. Since portable code cannot
8214 # rely on this symbol name, it's probably fine to never include it in
8215 # preloaded symbol tables.
8216 # Exclude shared library initialization/finalization symbols.
8217 extract_expsyms_cmds=
8218 # Just being paranoid about ensuring that cc_basename is set.
8219 for cc_temp in $compiler""; do
8220 case $cc_temp in
8221 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8222 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8223 \-*) ;;
8224 *) break;;
8225 esac
8226 done
8227 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8228
8229 case $host_os in
8230 cygwin* | mingw* | pw32*)
8231 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8232 # When not using gcc, we currently assume that we are using
8233 # Microsoft Visual C++.
8234 if test "$GCC" != yes; then
8235 with_gnu_ld=no
8236 fi
8237 ;;
8238 interix*)
8239 # we just hope/assume this is gcc and not c89 (= MSVC++)
8240 with_gnu_ld=yes
8241 ;;
8242 openbsd*)
8243 with_gnu_ld=no
8244 ;;
8245 esac
8246
8247 ld_shlibs=yes
8248 if test "$with_gnu_ld" = yes; then
8249 # If archive_cmds runs LD, not CC, wlarc should be empty
8250 wlarc='${wl}'
8251
8252 # Set some defaults for GNU ld with shared library support. These
8253 # are reset later if shared libraries are not supported. Putting them
8254 # here allows them to be overridden if necessary.
8255 runpath_var=LD_RUN_PATH
8256 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8257 export_dynamic_flag_spec='${wl}--export-dynamic'
8258 # ancient GNU ld didn't support --whole-archive et. al.
8259 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8260 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8261 else
8262 whole_archive_flag_spec=
8263 fi
8264 supports_anon_versioning=no
8265 case `$LD -v 2>/dev/null` in
8266 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8267 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8268 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8269 *\ 2.11.*) ;; # other 2.11 versions
8270 *) supports_anon_versioning=yes ;;
8271 esac
8272
8273 # See if GNU ld supports shared libraries.
8274 case $host_os in
8275 aix[3-9]*)
8276 # On AIX/PPC, the GNU linker is very broken
8277 if test "$host_cpu" != ia64; then
8278 ld_shlibs=no
8279 cat <<EOF 1>&2
8280
8281 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8282 *** to be unable to reliably create shared libraries on AIX.
8283 *** Therefore, libtool is disabling shared libraries support. If you
8284 *** really care for shared libraries, you may want to modify your PATH
8285 *** so that a non-GNU linker is found, and then restart.
8286
8287 EOF
8288 fi
8289 ;;
8290
8291 amigaos*)
8292 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)'
8293 hardcode_libdir_flag_spec='-L$libdir'
8294 hardcode_minus_L=yes
8295
8296 # Samuel A. Falvo II <[email protected]> reports
8297 # that the semantics of dynamic libraries on AmigaOS, at least up
8298 # to version 4, is to share data among multiple programs linked
8299 # with the same dynamic library. Since this doesn't match the
8300 # behavior of shared libraries on other platforms, we can't use
8301 # them.
8302 ld_shlibs=no
8303 ;;
8304
8305 beos*)
8306 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8307 allow_undefined_flag=unsupported
8308 # Joseph Beckenbach <[email protected]> says some releases of gcc
8309 # support --undefined. This deserves some investigation. FIXME
8310 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8311 else
8312 ld_shlibs=no
8313 fi
8314 ;;
8315
8316 cygwin* | mingw* | pw32*)
8317 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8318 # as there is no search path for DLLs.
8319 hardcode_libdir_flag_spec='-L$libdir'
8320 allow_undefined_flag=unsupported
8321 always_export_symbols=no
8322 enable_shared_with_static_runtimes=yes
8323 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8324
8325 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8326 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8327 # If the export-symbols file already is a .def file (1st line
8328 # is EXPORTS), use it as is; otherwise, prepend...
8329 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8330 cp $export_symbols $output_objdir/$soname.def;
8331 else
8332 echo EXPORTS > $output_objdir/$soname.def;
8333 cat $export_symbols >> $output_objdir/$soname.def;
8334 fi~
8335 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8336 else
8337 ld_shlibs=no
8338 fi
8339 ;;
8340
8341 interix[3-9]*)
8342 hardcode_direct=no
8343 hardcode_shlibpath_var=no
8344 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8345 export_dynamic_flag_spec='${wl}-E'
8346 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8347 # Instead, shared libraries are loaded at an image base (0x10000000 by
8348 # default) and relocated if they conflict, which is a slow very memory
8349 # consuming and fragmenting process. To avoid this, we pick a random,
8350 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8351 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8352 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8353 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'
8354 ;;
8355
8356 gnu* | linux* | k*bsd*-gnu)
8357 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8358 tmp_addflag=
8359 case $cc_basename,$host_cpu in
8360 pgcc*) # Portland Group C compiler
8361 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'
8362 tmp_addflag=' $pic_flag'
8363 ;;
8364 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8365 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'
8366 tmp_addflag=' $pic_flag -Mnomain' ;;
8367 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8368 tmp_addflag=' -i_dynamic' ;;
8369 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8370 tmp_addflag=' -i_dynamic -nofor_main' ;;
8371 ifc* | ifort*) # Intel Fortran compiler
8372 tmp_addflag=' -nofor_main' ;;
8373 esac
8374 case `$CC -V 2>&1 | sed 5q` in
8375 *Sun\ C*) # Sun C 5.9
8376 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'
8377 tmp_sharedflag='-G' ;;
8378 *Sun\ F*) # Sun Fortran 8.3
8379 tmp_sharedflag='-G' ;;
8380 *)
8381 tmp_sharedflag='-shared' ;;
8382 esac
8383 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8384
8385 if test $supports_anon_versioning = yes; then
8386 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8387 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8388 $echo "local: *; };" >> $output_objdir/$libname.ver~
8389 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8390 fi
8391 else
8392 ld_shlibs=no
8393 fi
8394 ;;
8395
8396 netbsd*)
8397 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8398 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8399 wlarc=
8400 else
8401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8402 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8403 fi
8404 ;;
8405
8406 solaris*)
8407 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8408 ld_shlibs=no
8409 cat <<EOF 1>&2
8410
8411 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8412 *** create shared libraries on Solaris systems. Therefore, libtool
8413 *** is disabling shared libraries support. We urge you to upgrade GNU
8414 *** binutils to release 2.9.1 or newer. Another option is to modify
8415 *** your PATH or compiler configuration so that the native linker is
8416 *** used, and then restart.
8417
8418 EOF
8419 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8421 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8422 else
8423 ld_shlibs=no
8424 fi
8425 ;;
8426
8427 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8428 case `$LD -v 2>&1` in
8429 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8430 ld_shlibs=no
8431 cat <<_LT_EOF 1>&2
8432
8433 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8434 *** reliably create shared libraries on SCO systems. Therefore, libtool
8435 *** is disabling shared libraries support. We urge you to upgrade GNU
8436 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8437 *** your PATH or compiler configuration so that the native linker is
8438 *** used, and then restart.
8439
8440 _LT_EOF
8441 ;;
8442 *)
8443 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8444 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8446 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8447 else
8448 ld_shlibs=no
8449 fi
8450 ;;
8451 esac
8452 ;;
8453
8454 sunos4*)
8455 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8456 wlarc=
8457 hardcode_direct=yes
8458 hardcode_shlibpath_var=no
8459 ;;
8460
8461 *)
8462 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8464 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8465 else
8466 ld_shlibs=no
8467 fi
8468 ;;
8469 esac
8470
8471 if test "$ld_shlibs" = no; then
8472 runpath_var=
8473 hardcode_libdir_flag_spec=
8474 export_dynamic_flag_spec=
8475 whole_archive_flag_spec=
8476 fi
8477 else
8478 # PORTME fill in a description of your system's linker (not GNU ld)
8479 case $host_os in
8480 aix3*)
8481 allow_undefined_flag=unsupported
8482 always_export_symbols=yes
8483 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'
8484 # Note: this linker hardcodes the directories in LIBPATH if there
8485 # are no directories specified by -L.
8486 hardcode_minus_L=yes
8487 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8488 # Neither direct hardcoding nor static linking is supported with a
8489 # broken collect2.
8490 hardcode_direct=unsupported
8491 fi
8492 ;;
8493
8494 aix[4-9]*)
8495 if test "$host_cpu" = ia64; then
8496 # On IA64, the linker does run time linking by default, so we don't
8497 # have to do anything special.
8498 aix_use_runtimelinking=no
8499 exp_sym_flag='-Bexport'
8500 no_entry_flag=""
8501 else
8502 # If we're using GNU nm, then we don't want the "-C" option.
8503 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8504 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8505 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'
8506 else
8507 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'
8508 fi
8509 aix_use_runtimelinking=no
8510
8511 # Test if we are trying to use run time linking or normal
8512 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8513 # need to do runtime linking.
8514 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8515 for ld_flag in $LDFLAGS; do
8516 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8517 aix_use_runtimelinking=yes
8518 break
8519 fi
8520 done
8521 ;;
8522 esac
8523
8524 exp_sym_flag='-bexport'
8525 no_entry_flag='-bnoentry'
8526 fi
8527
8528 # When large executables or shared objects are built, AIX ld can
8529 # have problems creating the table of contents. If linking a library
8530 # or program results in "error TOC overflow" add -mminimal-toc to
8531 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8532 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8533
8534 archive_cmds=''
8535 hardcode_direct=yes
8536 hardcode_libdir_separator=':'
8537 link_all_deplibs=yes
8538
8539 if test "$GCC" = yes; then
8540 case $host_os in aix4.[012]|aix4.[012].*)
8541 # We only want to do this on AIX 4.2 and lower, the check
8542 # below for broken collect2 doesn't work under 4.3+
8543 collect2name=`${CC} -print-prog-name=collect2`
8544 if test -f "$collect2name" && \
8545 strings "$collect2name" | grep resolve_lib_name >/dev/null
8546 then
8547 # We have reworked collect2
8548 :
8549 else
8550 # We have old collect2
8551 hardcode_direct=unsupported
8552 # It fails to find uninstalled libraries when the uninstalled
8553 # path is not listed in the libpath. Setting hardcode_minus_L
8554 # to unsupported forces relinking
8555 hardcode_minus_L=yes
8556 hardcode_libdir_flag_spec='-L$libdir'
8557 hardcode_libdir_separator=
8558 fi
8559 ;;
8560 esac
8561 shared_flag='-shared'
8562 if test "$aix_use_runtimelinking" = yes; then
8563 shared_flag="$shared_flag "'${wl}-G'
8564 fi
8565 else
8566 # not using gcc
8567 if test "$host_cpu" = ia64; then
8568 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8569 # chokes on -Wl,-G. The following line is correct:
8570 shared_flag='-G'
8571 else
8572 if test "$aix_use_runtimelinking" = yes; then
8573 shared_flag='${wl}-G'
8574 else
8575 shared_flag='${wl}-bM:SRE'
8576 fi
8577 fi
8578 fi
8579
8580 # It seems that -bexpall does not export symbols beginning with
8581 # underscore (_), so it is better to generate a list of symbols to export.
8582 always_export_symbols=yes
8583 if test "$aix_use_runtimelinking" = yes; then
8584 # Warning - without using the other runtime loading flags (-brtl),
8585 # -berok will link without error, but may produce a broken library.
8586 allow_undefined_flag='-berok'
8587 # Determine the default libpath from the value encoded in an empty executable.
8588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8589 /* end confdefs.h. */
8590
8591 int
8592 main ()
8593 {
8594
8595 ;
8596 return 0;
8597 }
8598 _ACEOF
8599 if ac_fn_c_try_link "$LINENO"; then :
8600
8601 lt_aix_libpath_sed='
8602 /Import File Strings/,/^$/ {
8603 /^0/ {
8604 s/^0 *\(.*\)$/\1/
8605 p
8606 }
8607 }'
8608 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8609 # Check for a 64-bit object if we didn't find anything.
8610 if test -z "$aix_libpath"; then
8611 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8612 fi
8613 fi
8614 rm -f core conftest.err conftest.$ac_objext \
8615 conftest$ac_exeext conftest.$ac_ext
8616 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8617
8618 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8619 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"
8620 else
8621 if test "$host_cpu" = ia64; then
8622 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8623 allow_undefined_flag="-z nodefs"
8624 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"
8625 else
8626 # Determine the default libpath from the value encoded in an empty executable.
8627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8628 /* end confdefs.h. */
8629
8630 int
8631 main ()
8632 {
8633
8634 ;
8635 return 0;
8636 }
8637 _ACEOF
8638 if ac_fn_c_try_link "$LINENO"; then :
8639
8640 lt_aix_libpath_sed='
8641 /Import File Strings/,/^$/ {
8642 /^0/ {
8643 s/^0 *\(.*\)$/\1/
8644 p
8645 }
8646 }'
8647 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8648 # Check for a 64-bit object if we didn't find anything.
8649 if test -z "$aix_libpath"; then
8650 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8651 fi
8652 fi
8653 rm -f core conftest.err conftest.$ac_objext \
8654 conftest$ac_exeext conftest.$ac_ext
8655 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8656
8657 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8658 # Warning - without using the other run time loading flags,
8659 # -berok will link without error, but may produce a broken library.
8660 no_undefined_flag=' ${wl}-bernotok'
8661 allow_undefined_flag=' ${wl}-berok'
8662 # Exported symbols can be pulled into shared objects from archives
8663 whole_archive_flag_spec='$convenience'
8664 archive_cmds_need_lc=yes
8665 # This is similar to how AIX traditionally builds its shared libraries.
8666 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'
8667 fi
8668 fi
8669 ;;
8670
8671 amigaos*)
8672 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)'
8673 hardcode_libdir_flag_spec='-L$libdir'
8674 hardcode_minus_L=yes
8675 # see comment about different semantics on the GNU ld section
8676 ld_shlibs=no
8677 ;;
8678
8679 bsdi[45]*)
8680 export_dynamic_flag_spec=-rdynamic
8681 ;;
8682
8683 cygwin* | mingw* | pw32*)
8684 # When not using gcc, we currently assume that we are using
8685 # Microsoft Visual C++.
8686 # hardcode_libdir_flag_spec is actually meaningless, as there is
8687 # no search path for DLLs.
8688 hardcode_libdir_flag_spec=' '
8689 allow_undefined_flag=unsupported
8690 # Tell ltmain to make .lib files, not .a files.
8691 libext=lib
8692 # Tell ltmain to make .dll files, not .so files.
8693 shrext_cmds=".dll"
8694 # FIXME: Setting linknames here is a bad hack.
8695 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8696 # The linker will automatically build a .lib file if we build a DLL.
8697 old_archive_From_new_cmds='true'
8698 # FIXME: Should let the user specify the lib program.
8699 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8700 fix_srcfile_path='`cygpath -w "$srcfile"`'
8701 enable_shared_with_static_runtimes=yes
8702 ;;
8703
8704 darwin* | rhapsody*)
8705 case $host_os in
8706 rhapsody* | darwin1.[012])
8707 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8708 ;;
8709 *) # Darwin 1.3 on
8710 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8711 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8712 else
8713 case ${MACOSX_DEPLOYMENT_TARGET} in
8714 10.[012])
8715 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8716 ;;
8717 10.*)
8718 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8719 ;;
8720 esac
8721 fi
8722 ;;
8723 esac
8724 archive_cmds_need_lc=no
8725 hardcode_direct=no
8726 hardcode_automatic=yes
8727 hardcode_shlibpath_var=unsupported
8728 whole_archive_flag_spec=''
8729 link_all_deplibs=yes
8730 if test "$GCC" = yes ; then
8731 output_verbose_link_cmd='echo'
8732 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8733 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8734 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}"
8735 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}"
8736 else
8737 case $cc_basename in
8738 xlc*)
8739 output_verbose_link_cmd='echo'
8740 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8741 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8742 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8743 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}'
8744 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}'
8745 ;;
8746 *)
8747 ld_shlibs=no
8748 ;;
8749 esac
8750 fi
8751 ;;
8752
8753 dgux*)
8754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8755 hardcode_libdir_flag_spec='-L$libdir'
8756 hardcode_shlibpath_var=no
8757 ;;
8758
8759 freebsd1*)
8760 ld_shlibs=no
8761 ;;
8762
8763 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8764 # support. Future versions do this automatically, but an explicit c++rt0.o
8765 # does not break anything, and helps significantly (at the cost of a little
8766 # extra space).
8767 freebsd2.2*)
8768 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8769 hardcode_libdir_flag_spec='-R$libdir'
8770 hardcode_direct=yes
8771 hardcode_shlibpath_var=no
8772 ;;
8773
8774 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8775 freebsd2*)
8776 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8777 hardcode_direct=yes
8778 hardcode_minus_L=yes
8779 hardcode_shlibpath_var=no
8780 ;;
8781
8782 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8783 freebsd* | dragonfly*)
8784 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8785 hardcode_libdir_flag_spec='-R$libdir'
8786 hardcode_direct=yes
8787 hardcode_shlibpath_var=no
8788 ;;
8789
8790 hpux9*)
8791 if test "$GCC" = yes; then
8792 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'
8793 else
8794 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'
8795 fi
8796 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8797 hardcode_libdir_separator=:
8798 hardcode_direct=yes
8799
8800 # hardcode_minus_L: Not really in the search PATH,
8801 # but as the default location of the library.
8802 hardcode_minus_L=yes
8803 export_dynamic_flag_spec='${wl}-E'
8804 ;;
8805
8806 hpux10*)
8807 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8808 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8809 else
8810 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8811 fi
8812 if test "$with_gnu_ld" = no; then
8813 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8814 hardcode_libdir_separator=:
8815
8816 hardcode_direct=yes
8817 export_dynamic_flag_spec='${wl}-E'
8818
8819 # hardcode_minus_L: Not really in the search PATH,
8820 # but as the default location of the library.
8821 hardcode_minus_L=yes
8822 fi
8823 ;;
8824
8825 hpux11*)
8826 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8827 case $host_cpu in
8828 hppa*64*)
8829 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8830 ;;
8831 ia64*)
8832 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8833 ;;
8834 *)
8835 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8836 ;;
8837 esac
8838 else
8839 case $host_cpu in
8840 hppa*64*)
8841 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8842 ;;
8843 ia64*)
8844 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8845 ;;
8846 *)
8847 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8848 ;;
8849 esac
8850 fi
8851 if test "$with_gnu_ld" = no; then
8852 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8853 hardcode_libdir_separator=:
8854
8855 case $host_cpu in
8856 hppa*64*|ia64*)
8857 hardcode_libdir_flag_spec_ld='+b $libdir'
8858 hardcode_direct=no
8859 hardcode_shlibpath_var=no
8860 ;;
8861 *)
8862 hardcode_direct=yes
8863 export_dynamic_flag_spec='${wl}-E'
8864
8865 # hardcode_minus_L: Not really in the search PATH,
8866 # but as the default location of the library.
8867 hardcode_minus_L=yes
8868 ;;
8869 esac
8870 fi
8871 ;;
8872
8873 irix5* | irix6* | nonstopux*)
8874 if test "$GCC" = yes; then
8875 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'
8876 else
8877 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'
8878 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8879 fi
8880 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8881 hardcode_libdir_separator=:
8882 link_all_deplibs=yes
8883 ;;
8884
8885 netbsd*)
8886 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8887 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8888 else
8889 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8890 fi
8891 hardcode_libdir_flag_spec='-R$libdir'
8892 hardcode_direct=yes
8893 hardcode_shlibpath_var=no
8894 ;;
8895
8896 newsos6)
8897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8898 hardcode_direct=yes
8899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8900 hardcode_libdir_separator=:
8901 hardcode_shlibpath_var=no
8902 ;;
8903
8904 openbsd*)
8905 if test -f /usr/libexec/ld.so; then
8906 hardcode_direct=yes
8907 hardcode_shlibpath_var=no
8908 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8909 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8910 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8911 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8912 export_dynamic_flag_spec='${wl}-E'
8913 else
8914 case $host_os in
8915 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8916 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8917 hardcode_libdir_flag_spec='-R$libdir'
8918 ;;
8919 *)
8920 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8921 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8922 ;;
8923 esac
8924 fi
8925 else
8926 ld_shlibs=no
8927 fi
8928 ;;
8929
8930 os2*)
8931 hardcode_libdir_flag_spec='-L$libdir'
8932 hardcode_minus_L=yes
8933 allow_undefined_flag=unsupported
8934 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'
8935 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8936 ;;
8937
8938 osf3*)
8939 if test "$GCC" = yes; then
8940 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8941 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'
8942 else
8943 allow_undefined_flag=' -expect_unresolved \*'
8944 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'
8945 fi
8946 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8947 hardcode_libdir_separator=:
8948 ;;
8949
8950 osf4* | osf5*) # as osf3* with the addition of -msym flag
8951 if test "$GCC" = yes; then
8952 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8953 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'
8954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8955 else
8956 allow_undefined_flag=' -expect_unresolved \*'
8957 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'
8958 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8959 $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'
8960
8961 # Both c and cxx compiler support -rpath directly
8962 hardcode_libdir_flag_spec='-rpath $libdir'
8963 fi
8964 hardcode_libdir_separator=:
8965 ;;
8966
8967 solaris*)
8968 no_undefined_flag=' -z text'
8969 if test "$GCC" = yes; then
8970 wlarc='${wl}'
8971 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8972 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8973 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8974 else
8975 wlarc=''
8976 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8977 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8978 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8979 fi
8980 hardcode_libdir_flag_spec='-R$libdir'
8981 hardcode_shlibpath_var=no
8982 case $host_os in
8983 solaris2.[0-5] | solaris2.[0-5].*) ;;
8984 *)
8985 # The compiler driver will combine and reorder linker options,
8986 # but understands `-z linker_flag'. GCC discards it without `$wl',
8987 # but is careful enough not to reorder.
8988 # Supported since Solaris 2.6 (maybe 2.5.1?)
8989 if test "$GCC" = yes; then
8990 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8991 else
8992 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8993 fi
8994 ;;
8995 esac
8996 link_all_deplibs=yes
8997 ;;
8998
8999 sunos4*)
9000 if test "x$host_vendor" = xsequent; then
9001 # Use $CC to link under sequent, because it throws in some extra .o
9002 # files that make .init and .fini sections work.
9003 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9004 else
9005 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9006 fi
9007 hardcode_libdir_flag_spec='-L$libdir'
9008 hardcode_direct=yes
9009 hardcode_minus_L=yes
9010 hardcode_shlibpath_var=no
9011 ;;
9012
9013 sysv4)
9014 case $host_vendor in
9015 sni)
9016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9017 hardcode_direct=yes # is this really true???
9018 ;;
9019 siemens)
9020 ## LD is ld it makes a PLAMLIB
9021 ## CC just makes a GrossModule.
9022 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9023 reload_cmds='$CC -r -o $output$reload_objs'
9024 hardcode_direct=no
9025 ;;
9026 motorola)
9027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9028 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9029 ;;
9030 esac
9031 runpath_var='LD_RUN_PATH'
9032 hardcode_shlibpath_var=no
9033 ;;
9034
9035 sysv4.3*)
9036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9037 hardcode_shlibpath_var=no
9038 export_dynamic_flag_spec='-Bexport'
9039 ;;
9040
9041 sysv4*MP*)
9042 if test -d /usr/nec; then
9043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9044 hardcode_shlibpath_var=no
9045 runpath_var=LD_RUN_PATH
9046 hardcode_runpath_var=yes
9047 ld_shlibs=yes
9048 fi
9049 ;;
9050
9051 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9052 no_undefined_flag='${wl}-z,text'
9053 archive_cmds_need_lc=no
9054 hardcode_shlibpath_var=no
9055 runpath_var='LD_RUN_PATH'
9056
9057 if test "$GCC" = yes; then
9058 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9059 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9060 else
9061 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9062 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9063 fi
9064 ;;
9065
9066 sysv5* | sco3.2v5* | sco5v6*)
9067 # Note: We can NOT use -z defs as we might desire, because we do not
9068 # link with -lc, and that would cause any symbols used from libc to
9069 # always be unresolved, which means just about no library would
9070 # ever link correctly. If we're not using GNU ld we use -z text
9071 # though, which does catch some bad symbols but isn't as heavy-handed
9072 # as -z defs.
9073 no_undefined_flag='${wl}-z,text'
9074 allow_undefined_flag='${wl}-z,nodefs'
9075 archive_cmds_need_lc=no
9076 hardcode_shlibpath_var=no
9077 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9078 hardcode_libdir_separator=':'
9079 link_all_deplibs=yes
9080 export_dynamic_flag_spec='${wl}-Bexport'
9081 runpath_var='LD_RUN_PATH'
9082
9083 if test "$GCC" = yes; then
9084 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9085 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9086 else
9087 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9088 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9089 fi
9090 ;;
9091
9092 uts4*)
9093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9094 hardcode_libdir_flag_spec='-L$libdir'
9095 hardcode_shlibpath_var=no
9096 ;;
9097
9098 *)
9099 ld_shlibs=no
9100 ;;
9101 esac
9102 fi
9103
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9105 $as_echo "$ld_shlibs" >&6; }
9106 test "$ld_shlibs" = no && can_build_shared=no
9107
9108 #
9109 # Do we need to explicitly link libc?
9110 #
9111 case "x$archive_cmds_need_lc" in
9112 x|xyes)
9113 # Assume -lc should be added
9114 archive_cmds_need_lc=yes
9115
9116 if test "$enable_shared" = yes && test "$GCC" = yes; then
9117 case $archive_cmds in
9118 *'~'*)
9119 # FIXME: we may have to deal with multi-command sequences.
9120 ;;
9121 '$CC '*)
9122 # Test whether the compiler implicitly links with -lc since on some
9123 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9124 # to ld, don't add -lc before -lgcc.
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9126 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9127 $rm conftest*
9128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9129
9130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9131 (eval $ac_compile) 2>&5
9132 ac_status=$?
9133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9134 test $ac_status = 0; } 2>conftest.err; then
9135 soname=conftest
9136 lib=conftest
9137 libobjs=conftest.$ac_objext
9138 deplibs=
9139 wl=$lt_prog_compiler_wl
9140 pic_flag=$lt_prog_compiler_pic
9141 compiler_flags=-v
9142 linker_flags=-v
9143 verstring=
9144 output_objdir=.
9145 libname=conftest
9146 lt_save_allow_undefined_flag=$allow_undefined_flag
9147 allow_undefined_flag=
9148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9149 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9150 ac_status=$?
9151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9152 test $ac_status = 0; }
9153 then
9154 archive_cmds_need_lc=no
9155 else
9156 archive_cmds_need_lc=yes
9157 fi
9158 allow_undefined_flag=$lt_save_allow_undefined_flag
9159 else
9160 cat conftest.err 1>&5
9161 fi
9162 $rm conftest*
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9164 $as_echo "$archive_cmds_need_lc" >&6; }
9165 ;;
9166 esac
9167 fi
9168 ;;
9169 esac
9170
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9172 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9173 library_names_spec=
9174 libname_spec='lib$name'
9175 soname_spec=
9176 shrext_cmds=".so"
9177 postinstall_cmds=
9178 postuninstall_cmds=
9179 finish_cmds=
9180 finish_eval=
9181 shlibpath_var=
9182 shlibpath_overrides_runpath=unknown
9183 version_type=none
9184 dynamic_linker="$host_os ld.so"
9185 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9186
9187 if test "$GCC" = yes; then
9188 case $host_os in
9189 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9190 *) lt_awk_arg="/^libraries:/" ;;
9191 esac
9192 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9193 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9194 # if the path contains ";" then we assume it to be the separator
9195 # otherwise default to the standard path separator (i.e. ":") - it is
9196 # assumed that no part of a normal pathname contains ";" but that should
9197 # okay in the real world where ";" in dirpaths is itself problematic.
9198 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9199 else
9200 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9201 fi
9202 # Ok, now we have the path, separated by spaces, we can step through it
9203 # and add multilib dir if necessary.
9204 lt_tmp_lt_search_path_spec=
9205 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9206 for lt_sys_path in $lt_search_path_spec; do
9207 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9208 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9209 else
9210 test -d "$lt_sys_path" && \
9211 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9212 fi
9213 done
9214 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9215 BEGIN {RS=" "; FS="/|\n";} {
9216 lt_foo="";
9217 lt_count=0;
9218 for (lt_i = NF; lt_i > 0; lt_i--) {
9219 if ($lt_i != "" && $lt_i != ".") {
9220 if ($lt_i == "..") {
9221 lt_count++;
9222 } else {
9223 if (lt_count == 0) {
9224 lt_foo="/" $lt_i lt_foo;
9225 } else {
9226 lt_count--;
9227 }
9228 }
9229 }
9230 }
9231 if (lt_foo != "") { lt_freq[lt_foo]++; }
9232 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9233 }'`
9234 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9235 else
9236 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9237 fi
9238 need_lib_prefix=unknown
9239 hardcode_into_libs=no
9240
9241 # when you set need_version to no, make sure it does not cause -set_version
9242 # flags to be left without arguments
9243 need_version=unknown
9244
9245 case $host_os in
9246 aix3*)
9247 version_type=linux
9248 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9249 shlibpath_var=LIBPATH
9250
9251 # AIX 3 has no versioning support, so we append a major version to the name.
9252 soname_spec='${libname}${release}${shared_ext}$major'
9253 ;;
9254
9255 aix[4-9]*)
9256 version_type=linux
9257 need_lib_prefix=no
9258 need_version=no
9259 hardcode_into_libs=yes
9260 if test "$host_cpu" = ia64; then
9261 # AIX 5 supports IA64
9262 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9263 shlibpath_var=LD_LIBRARY_PATH
9264 else
9265 # With GCC up to 2.95.x, collect2 would create an import file
9266 # for dependence libraries. The import file would start with
9267 # the line `#! .'. This would cause the generated library to
9268 # depend on `.', always an invalid library. This was fixed in
9269 # development snapshots of GCC prior to 3.0.
9270 case $host_os in
9271 aix4 | aix4.[01] | aix4.[01].*)
9272 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9273 echo ' yes '
9274 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9275 :
9276 else
9277 can_build_shared=no
9278 fi
9279 ;;
9280 esac
9281 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9282 # soname into executable. Probably we can add versioning support to
9283 # collect2, so additional links can be useful in future.
9284 if test "$aix_use_runtimelinking" = yes; then
9285 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9286 # instead of lib<name>.a to let people know that these are not
9287 # typical AIX shared libraries.
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289 else
9290 # We preserve .a as extension for shared libraries through AIX4.2
9291 # and later when we are not doing run time linking.
9292 library_names_spec='${libname}${release}.a $libname.a'
9293 soname_spec='${libname}${release}${shared_ext}$major'
9294 fi
9295 shlibpath_var=LIBPATH
9296 fi
9297 ;;
9298
9299 amigaos*)
9300 library_names_spec='$libname.ixlibrary $libname.a'
9301 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9302 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'
9303 ;;
9304
9305 beos*)
9306 library_names_spec='${libname}${shared_ext}'
9307 dynamic_linker="$host_os ld.so"
9308 shlibpath_var=LIBRARY_PATH
9309 ;;
9310
9311 bsdi[45]*)
9312 version_type=linux
9313 need_version=no
9314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9315 soname_spec='${libname}${release}${shared_ext}$major'
9316 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9317 shlibpath_var=LD_LIBRARY_PATH
9318 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9319 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9320 # the default ld.so.conf also contains /usr/contrib/lib and
9321 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9322 # libtool to hard-code these into programs
9323 ;;
9324
9325 cygwin* | mingw* | pw32*)
9326 version_type=windows
9327 shrext_cmds=".dll"
9328 need_version=no
9329 need_lib_prefix=no
9330
9331 case $GCC,$host_os in
9332 yes,cygwin* | yes,mingw* | yes,pw32*)
9333 library_names_spec='$libname.dll.a'
9334 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9335 postinstall_cmds='base_file=`basename \${file}`~
9336 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9337 dldir=$destdir/`dirname \$dlpath`~
9338 test -d \$dldir || mkdir -p \$dldir~
9339 $install_prog $dir/$dlname \$dldir/$dlname~
9340 chmod a+x \$dldir/$dlname'
9341 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9342 dlpath=$dir/\$dldll~
9343 $rm \$dlpath'
9344 shlibpath_overrides_runpath=yes
9345
9346 case $host_os in
9347 cygwin*)
9348 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9349 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9350 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9351 ;;
9352 mingw*)
9353 # MinGW DLLs use traditional 'lib' prefix
9354 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9355 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9356 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9357 # It is most probably a Windows format PATH printed by
9358 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9359 # path with ; separators, and with drive letters. We can handle the
9360 # drive letters (cygwin fileutils understands them), so leave them,
9361 # especially as we might pass files found there to a mingw objdump,
9362 # which wouldn't understand a cygwinified path. Ahh.
9363 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9364 else
9365 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9366 fi
9367 ;;
9368 pw32*)
9369 # pw32 DLLs use 'pw' prefix rather than 'lib'
9370 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9371 ;;
9372 esac
9373 ;;
9374
9375 *)
9376 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9377 ;;
9378 esac
9379 dynamic_linker='Win32 ld.exe'
9380 # FIXME: first we should search . and the directory the executable is in
9381 shlibpath_var=PATH
9382 ;;
9383
9384 darwin* | rhapsody*)
9385 dynamic_linker="$host_os dyld"
9386 version_type=darwin
9387 need_lib_prefix=no
9388 need_version=no
9389 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9390 soname_spec='${libname}${release}${major}$shared_ext'
9391 shlibpath_overrides_runpath=yes
9392 shlibpath_var=DYLD_LIBRARY_PATH
9393 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9394
9395 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9396 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9397 ;;
9398
9399 dgux*)
9400 version_type=linux
9401 need_lib_prefix=no
9402 need_version=no
9403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9404 soname_spec='${libname}${release}${shared_ext}$major'
9405 shlibpath_var=LD_LIBRARY_PATH
9406 ;;
9407
9408 freebsd1*)
9409 dynamic_linker=no
9410 ;;
9411
9412 freebsd* | dragonfly*)
9413 # DragonFly does not have aout. When/if they implement a new
9414 # versioning mechanism, adjust this.
9415 if test -x /usr/bin/objformat; then
9416 objformat=`/usr/bin/objformat`
9417 else
9418 case $host_os in
9419 freebsd[123]*) objformat=aout ;;
9420 *) objformat=elf ;;
9421 esac
9422 fi
9423 version_type=freebsd-$objformat
9424 case $version_type in
9425 freebsd-elf*)
9426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9427 need_version=no
9428 need_lib_prefix=no
9429 ;;
9430 freebsd-*)
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9432 need_version=yes
9433 ;;
9434 esac
9435 shlibpath_var=LD_LIBRARY_PATH
9436 case $host_os in
9437 freebsd2*)
9438 shlibpath_overrides_runpath=yes
9439 ;;
9440 freebsd3.[01]* | freebsdelf3.[01]*)
9441 shlibpath_overrides_runpath=yes
9442 hardcode_into_libs=yes
9443 ;;
9444 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9445 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9446 shlibpath_overrides_runpath=no
9447 hardcode_into_libs=yes
9448 ;;
9449 *) # from 4.6 on, and DragonFly
9450 shlibpath_overrides_runpath=yes
9451 hardcode_into_libs=yes
9452 ;;
9453 esac
9454 ;;
9455
•9456 k*bsd*gnu|gnu*)
9457 version_type=linux
9458 need_lib_prefix=no
9459 need_version=no
9460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9461 soname_spec='${libname}${release}${shared_ext}$major'
9462 shlibpath_var=LD_LIBRARY_PATH
9463 hardcode_into_libs=yes
9464 ;;
9465
9466 hpux9* | hpux10* | hpux11*)
9467 # Give a soname corresponding to the major version so that dld.sl refuses to
9468 # link against other versions.
9469 version_type=sunos
9470 need_lib_prefix=no
9471 need_version=no
9472 case $host_cpu in
9473 ia64*)
9474 shrext_cmds='.so'
9475 hardcode_into_libs=yes
9476 dynamic_linker="$host_os dld.so"
9477 shlibpath_var=LD_LIBRARY_PATH
9478 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9480 soname_spec='${libname}${release}${shared_ext}$major'
9481 if test "X$HPUX_IA64_MODE" = X32; then
9482 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9483 else
9484 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9485 fi
9486 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9487 ;;
9488 hppa*64*)
9489 shrext_cmds='.sl'
9490 hardcode_into_libs=yes
9491 dynamic_linker="$host_os dld.sl"
9492 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9493 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9495 soname_spec='${libname}${release}${shared_ext}$major'
9496 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9497 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9498 ;;
9499 *)
9500 shrext_cmds='.sl'
9501 dynamic_linker="$host_os dld.sl"
9502 shlibpath_var=SHLIB_PATH
9503 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9505 soname_spec='${libname}${release}${shared_ext}$major'
9506 ;;
9507 esac
9508 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9509 postinstall_cmds='chmod 555 $lib'
9510 ;;
9511
9512 interix[3-9]*)
9513 version_type=linux
9514 need_lib_prefix=no
9515 need_version=no
9516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9517 soname_spec='${libname}${release}${shared_ext}$major'
9518 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9519 shlibpath_var=LD_LIBRARY_PATH
9520 shlibpath_overrides_runpath=no
9521 hardcode_into_libs=yes
9522 ;;
9523
9524 irix5* | irix6* | nonstopux*)
9525 case $host_os in
9526 nonstopux*) version_type=nonstopux ;;
9527 *)
9528 if test "$lt_cv_prog_gnu_ld" = yes; then
9529 version_type=linux
9530 else
9531 version_type=irix
9532 fi ;;
9533 esac
9534 need_lib_prefix=no
9535 need_version=no
9536 soname_spec='${libname}${release}${shared_ext}$major'
9537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9538 case $host_os in
9539 irix5* | nonstopux*)
9540 libsuff= shlibsuff=
9541 ;;
9542 *)
9543 case $LD in # libtool.m4 will add one of these switches to LD
9544 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9545 libsuff= shlibsuff= libmagic=32-bit;;
9546 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9547 libsuff=32 shlibsuff=N32 libmagic=N32;;
9548 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9549 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9550 *) libsuff= shlibsuff= libmagic=never-match;;
9551 esac
9552 ;;
9553 esac
9554 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9555 shlibpath_overrides_runpath=no
9556 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9557 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9558 hardcode_into_libs=yes
9559 ;;
9560
9561 # No shared lib support for Linux oldld, aout, or coff.
9562 linux*oldld* | linux*aout* | linux*coff*)
9563 dynamic_linker=no
9564 ;;
9565
9566 # This must be Linux ELF.
9567 linux* | k*bsd*-gnu)
9568 version_type=linux
9569 need_lib_prefix=no
9570 need_version=no
9571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9572 soname_spec='${libname}${release}${shared_ext}$major'
9573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9574 shlibpath_var=LD_LIBRARY_PATH
9575 shlibpath_overrides_runpath=no
9576 # This implies no fast_install, which is unacceptable.
9577 # Some rework will be needed to allow for fast_install
9578 # before this can be enabled.
9579 hardcode_into_libs=yes
9580
9581 # Append ld.so.conf contents to the search path
9582 if test -f /etc/ld.so.conf; then
9583 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' ' '`
9584 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9585 fi
9586
9587 # We used to test for /lib/ld.so.1 and disable shared libraries on
9588 # powerpc, because MkLinux only supported shared libraries with the
9589 # GNU dynamic linker. Since this was broken with cross compilers,
9590 # most powerpc-linux boxes support dynamic linking these days and
9591 # people can always --disable-shared, the test was removed, and we
9592 # assume the GNU/Linux dynamic linker is in use.
9593 dynamic_linker='GNU/Linux ld.so'
9594 ;;
9595
9596 netbsd*)
9597 version_type=sunos
9598 need_lib_prefix=no
9599 need_version=no
9600 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9603 dynamic_linker='NetBSD (a.out) ld.so'
9604 else
9605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9606 soname_spec='${libname}${release}${shared_ext}$major'
9607 dynamic_linker='NetBSD ld.elf_so'
9608 fi
9609 shlibpath_var=LD_LIBRARY_PATH
9610 shlibpath_overrides_runpath=yes
9611 hardcode_into_libs=yes
9612 ;;
9613
9614 newsos6)
9615 version_type=linux
9616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9617 shlibpath_var=LD_LIBRARY_PATH
9618 shlibpath_overrides_runpath=yes
9619 ;;
9620
9621 nto-qnx*)
9622 version_type=linux
9623 need_lib_prefix=no
9624 need_version=no
9625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9626 soname_spec='${libname}${release}${shared_ext}$major'
9627 shlibpath_var=LD_LIBRARY_PATH
9628 shlibpath_overrides_runpath=yes
9629 ;;
9630
9631 openbsd*)
9632 version_type=sunos
9633 sys_lib_dlsearch_path_spec="/usr/lib"
9634 need_lib_prefix=no
9635 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9636 case $host_os in
9637 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9638 *) need_version=no ;;
9639 esac
9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9641 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9642 shlibpath_var=LD_LIBRARY_PATH
9643 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9644 case $host_os in
9645 openbsd2.[89] | openbsd2.[89].*)
9646 shlibpath_overrides_runpath=no
9647 ;;
9648 *)
9649 shlibpath_overrides_runpath=yes
9650 ;;
9651 esac
9652 else
9653 shlibpath_overrides_runpath=yes
9654 fi
9655 ;;
9656
9657 os2*)
9658 libname_spec='$name'
9659 shrext_cmds=".dll"
9660 need_lib_prefix=no
9661 library_names_spec='$libname${shared_ext} $libname.a'
9662 dynamic_linker='OS/2 ld.exe'
9663 shlibpath_var=LIBPATH
9664 ;;
9665
9666 osf3* | osf4* | osf5*)
9667 version_type=osf
9668 need_lib_prefix=no
9669 need_version=no
9670 soname_spec='${libname}${release}${shared_ext}$major'
9671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9672 shlibpath_var=LD_LIBRARY_PATH
9673 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9674 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9675 ;;
9676
9677 rdos*)
9678 dynamic_linker=no
9679 ;;
9680
9681 solaris*)
9682 version_type=linux
9683 need_lib_prefix=no
9684 need_version=no
9685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9686 soname_spec='${libname}${release}${shared_ext}$major'
9687 shlibpath_var=LD_LIBRARY_PATH
9688 shlibpath_overrides_runpath=yes
9689 hardcode_into_libs=yes
9690 # ldd complains unless libraries are executable
9691 postinstall_cmds='chmod +x $lib'
9692 ;;
9693
9694 sunos4*)
9695 version_type=sunos
9696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9697 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9698 shlibpath_var=LD_LIBRARY_PATH
9699 shlibpath_overrides_runpath=yes
9700 if test "$with_gnu_ld" = yes; then
9701 need_lib_prefix=no
9702 fi
9703 need_version=yes
9704 ;;
9705
9706 sysv4 | sysv4.3*)
9707 version_type=linux
9708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9709 soname_spec='${libname}${release}${shared_ext}$major'
9710 shlibpath_var=LD_LIBRARY_PATH
9711 case $host_vendor in
9712 sni)
9713 shlibpath_overrides_runpath=no
9714 need_lib_prefix=no
9715 export_dynamic_flag_spec='${wl}-Blargedynsym'
9716 runpath_var=LD_RUN_PATH
9717 ;;
9718 siemens)
9719 need_lib_prefix=no
9720 ;;
9721 motorola)
9722 need_lib_prefix=no
9723 need_version=no
9724 shlibpath_overrides_runpath=no
9725 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9726 ;;
9727 esac
9728 ;;
9729
9730 sysv4*MP*)
9731 if test -d /usr/nec ;then
9732 version_type=linux
9733 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9734 soname_spec='$libname${shared_ext}.$major'
9735 shlibpath_var=LD_LIBRARY_PATH
9736 fi
9737 ;;
9738
9739 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9740 version_type=freebsd-elf
9741 need_lib_prefix=no
9742 need_version=no
9743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9744 soname_spec='${libname}${release}${shared_ext}$major'
9745 shlibpath_var=LD_LIBRARY_PATH
9746 hardcode_into_libs=yes
9747 if test "$with_gnu_ld" = yes; then
9748 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9749 shlibpath_overrides_runpath=no
9750 else
9751 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9752 shlibpath_overrides_runpath=yes
9753 case $host_os in
9754 sco3.2v5*)
9755 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9756 ;;
9757 esac
9758 fi
9759 sys_lib_dlsearch_path_spec='/usr/lib'
9760 ;;
9761
9762 uts4*)
9763 version_type=linux
9764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9765 soname_spec='${libname}${release}${shared_ext}$major'
9766 shlibpath_var=LD_LIBRARY_PATH
9767 ;;
9768
9769 *)
9770 dynamic_linker=no
9771 ;;
9772 esac
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9774 $as_echo "$dynamic_linker" >&6; }
9775 test "$dynamic_linker" = no && can_build_shared=no
9776
9777 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
9778 $as_echo_n "(cached) " >&6
9779 else
9780 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9781 fi
9782
9783 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9784 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
9785 $as_echo_n "(cached) " >&6
9786 else
9787 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9788 fi
9789
9790 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9791
9792 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9793 if test "$GCC" = yes; then
9794 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9795 fi
9796
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9798 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9799 hardcode_action=
9800 if test -n "$hardcode_libdir_flag_spec" || \
9801 test -n "$runpath_var" || \
9802 test "X$hardcode_automatic" = "Xyes" ; then
9803
9804 # We can hardcode non-existant directories.
9805 if test "$hardcode_direct" != no &&
9806 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9807 # have to relink, otherwise we might link with an installed library
9808 # when we should be linking with a yet-to-be-installed one
9809 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9810 test "$hardcode_minus_L" != no; then
9811 # Linking always hardcodes the temporary library directory.
9812 hardcode_action=relink
9813 else
9814 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9815 hardcode_action=immediate
9816 fi
9817 else
9818 # We cannot hardcode anything, or else we can only hardcode existing
9819 # directories.
9820 hardcode_action=unsupported
9821 fi
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9823 $as_echo "$hardcode_action" >&6; }
9824
9825 if test "$hardcode_action" = relink; then
9826 # Fast installation is not supported
9827 enable_fast_install=no
9828 elif test "$shlibpath_overrides_runpath" = yes ||
9829 test "$enable_shared" = no; then
9830 # Fast installation is not necessary
9831 enable_fast_install=needless
9832 fi
9833
9834 striplib=
9835 old_striplib=
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9837 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9838 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9839 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9840 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9842 $as_echo "yes" >&6; }
9843 else
9844 # FIXME - insert some real tests, host_os isn't really good enough
9845 case $host_os in
9846 darwin*)
9847 if test -n "$STRIP" ; then
9848 striplib="$STRIP -x"
9849 old_striplib="$STRIP -S"
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9851 $as_echo "yes" >&6; }
9852 else
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9854 $as_echo "no" >&6; }
9855 fi
9856 ;;
9857 *)
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9859 $as_echo "no" >&6; }
9860 ;;
9861 esac
9862 fi
9863
9864 if test "x$enable_dlopen" != xyes; then
9865 enable_dlopen=unknown
9866 enable_dlopen_self=unknown
9867 enable_dlopen_self_static=unknown
9868 else
9869 lt_cv_dlopen=no
9870 lt_cv_dlopen_libs=
9871
9872 case $host_os in
9873 beos*)
9874 lt_cv_dlopen="load_add_on"
9875 lt_cv_dlopen_libs=
9876 lt_cv_dlopen_self=yes
9877 ;;
9878
9879 mingw* | pw32*)
9880 lt_cv_dlopen="LoadLibrary"
9881 lt_cv_dlopen_libs=
9882 ;;
9883
9884 cygwin*)
9885 lt_cv_dlopen="dlopen"
9886 lt_cv_dlopen_libs=
9887 ;;
9888
9889 darwin*)
9890 # if libdl is installed we need to link against it
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9892 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9893 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9894 $as_echo_n "(cached) " >&6
9895 else
9896 ac_check_lib_save_LIBS=$LIBS
9897 LIBS="-ldl $LIBS"
9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899 /* end confdefs.h. */
9900
9901 /* Override any GCC internal prototype to avoid an error.
9902 Use char because int might match the return type of a GCC
9903 builtin and then its argument prototype would still apply. */
9904 #ifdef __cplusplus
9905 extern "C"
9906 #endif
9907 char dlopen ();
9908 int
9909 main ()
9910 {
9911 return dlopen ();
9912 ;
9913 return 0;
9914 }
9915 _ACEOF
9916 if ac_fn_c_try_link "$LINENO"; then :
9917 ac_cv_lib_dl_dlopen=yes
9918 else
9919 ac_cv_lib_dl_dlopen=no
9920 fi
9921 rm -f core conftest.err conftest.$ac_objext \
9922 conftest$ac_exeext conftest.$ac_ext
9923 LIBS=$ac_check_lib_save_LIBS
9924 fi
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9926 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9927 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9928 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9929 else
9930
9931 lt_cv_dlopen="dyld"
9932 lt_cv_dlopen_libs=
9933 lt_cv_dlopen_self=yes
9934
9935 fi
9936
9937 ;;
9938
9939 *)
9940 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9941 if test "x$ac_cv_func_shl_load" = x""yes; then :
9942 lt_cv_dlopen="shl_load"
9943 else
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9945 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9946 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9947 $as_echo_n "(cached) " >&6
9948 else
9949 ac_check_lib_save_LIBS=$LIBS
9950 LIBS="-ldld $LIBS"
9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952 /* end confdefs.h. */
9953
9954 /* Override any GCC internal prototype to avoid an error.
9955 Use char because int might match the return type of a GCC
9956 builtin and then its argument prototype would still apply. */
9957 #ifdef __cplusplus
9958 extern "C"
9959 #endif
9960 char shl_load ();
9961 int
9962 main ()
9963 {
9964 return shl_load ();
9965 ;
9966 return 0;
9967 }
9968 _ACEOF
9969 if ac_fn_c_try_link "$LINENO"; then :
9970 ac_cv_lib_dld_shl_load=yes
9971 else
9972 ac_cv_lib_dld_shl_load=no
9973 fi
9974 rm -f core conftest.err conftest.$ac_objext \
9975 conftest$ac_exeext conftest.$ac_ext
9976 LIBS=$ac_check_lib_save_LIBS
9977 fi
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9979 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9980 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9981 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9982 else
9983 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9984 if test "x$ac_cv_func_dlopen" = x""yes; then :
9985 lt_cv_dlopen="dlopen"
9986 else
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9988 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9989 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9990 $as_echo_n "(cached) " >&6
9991 else
9992 ac_check_lib_save_LIBS=$LIBS
9993 LIBS="-ldl $LIBS"
9994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9995 /* end confdefs.h. */
9996
9997 /* Override any GCC internal prototype to avoid an error.
9998 Use char because int might match the return type of a GCC
9999 builtin and then its argument prototype would still apply. */
10000 #ifdef __cplusplus
10001 extern "C"
10002 #endif
10003 char dlopen ();
10004 int
10005 main ()
10006 {
10007 return dlopen ();
10008 ;
10009 return 0;
10010 }
10011 _ACEOF
10012 if ac_fn_c_try_link "$LINENO"; then :
10013 ac_cv_lib_dl_dlopen=yes
10014 else
10015 ac_cv_lib_dl_dlopen=no
10016 fi
10017 rm -f core conftest.err conftest.$ac_objext \
10018 conftest$ac_exeext conftest.$ac_ext
10019 LIBS=$ac_check_lib_save_LIBS
10020 fi
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10022 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10023 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10024 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10025 else
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10027 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10028 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10029 $as_echo_n "(cached) " >&6
10030 else
10031 ac_check_lib_save_LIBS=$LIBS
10032 LIBS="-lsvld $LIBS"
10033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10034 /* end confdefs.h. */
10035
10036 /* Override any GCC internal prototype to avoid an error.
10037 Use char because int might match the return type of a GCC
10038 builtin and then its argument prototype would still apply. */
10039 #ifdef __cplusplus
10040 extern "C"
10041 #endif
10042 char dlopen ();
10043 int
10044 main ()
10045 {
10046 return dlopen ();
10047 ;
10048 return 0;
10049 }
10050 _ACEOF
10051 if ac_fn_c_try_link "$LINENO"; then :
10052 ac_cv_lib_svld_dlopen=yes
10053 else
10054 ac_cv_lib_svld_dlopen=no
10055 fi
10056 rm -f core conftest.err conftest.$ac_objext \
10057 conftest$ac_exeext conftest.$ac_ext
10058 LIBS=$ac_check_lib_save_LIBS
10059 fi
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10061 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10062 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10063 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10064 else
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10066 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10067 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10068 $as_echo_n "(cached) " >&6
10069 else
10070 ac_check_lib_save_LIBS=$LIBS
10071 LIBS="-ldld $LIBS"
10072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10073 /* end confdefs.h. */
10074
10075 /* Override any GCC internal prototype to avoid an error.
10076 Use char because int might match the return type of a GCC
10077 builtin and then its argument prototype would still apply. */
10078 #ifdef __cplusplus
10079 extern "C"
10080 #endif
10081 char dld_link ();
10082 int
10083 main ()
10084 {
10085 return dld_link ();
10086 ;
10087 return 0;
10088 }
10089 _ACEOF
10090 if ac_fn_c_try_link "$LINENO"; then :
10091 ac_cv_lib_dld_dld_link=yes
10092 else
10093 ac_cv_lib_dld_dld_link=no
10094 fi
10095 rm -f core conftest.err conftest.$ac_objext \
10096 conftest$ac_exeext conftest.$ac_ext
10097 LIBS=$ac_check_lib_save_LIBS
10098 fi
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10100 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10101 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10102 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10103 fi
10104
10105
10106 fi
10107
10108
10109 fi
10110
10111
10112 fi
10113
10114
10115 fi
10116
10117
10118 fi
10119
10120 ;;
10121 esac
10122
10123 if test "x$lt_cv_dlopen" != xno; then
10124 enable_dlopen=yes
10125 else
10126 enable_dlopen=no
10127 fi
10128
10129 case $lt_cv_dlopen in
10130 dlopen)
10131 save_CPPFLAGS="$CPPFLAGS"
10132 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10133
10134 save_LDFLAGS="$LDFLAGS"
10135 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10136
10137 save_LIBS="$LIBS"
10138 LIBS="$lt_cv_dlopen_libs $LIBS"
10139
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10141 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10142 if test "${lt_cv_dlopen_self+set}" = set; then :
10143 $as_echo_n "(cached) " >&6
10144 else
10145 if test "$cross_compiling" = yes; then :
10146 lt_cv_dlopen_self=cross
10147 else
10148 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10149 lt_status=$lt_dlunknown
10150 cat > conftest.$ac_ext <<EOF
10151 #line 10151 "configure"
10152 #include "confdefs.h"
10153
10154 #if HAVE_DLFCN_H
10155 #include <dlfcn.h>
10156 #endif
10157
10158 #include <stdio.h>
10159
10160 #ifdef RTLD_GLOBAL
10161 # define LT_DLGLOBAL RTLD_GLOBAL
10162 #else
10163 # ifdef DL_GLOBAL
10164 # define LT_DLGLOBAL DL_GLOBAL
10165 # else
10166 # define LT_DLGLOBAL 0
10167 # endif
10168 #endif
10169
10170 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10171 find out it does not work in some platform. */
10172 #ifndef LT_DLLAZY_OR_NOW
10173 # ifdef RTLD_LAZY
10174 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10175 # else
10176 # ifdef DL_LAZY
10177 # define LT_DLLAZY_OR_NOW DL_LAZY
10178 # else
10179 # ifdef RTLD_NOW
10180 # define LT_DLLAZY_OR_NOW RTLD_NOW
10181 # else
10182 # ifdef DL_NOW
10183 # define LT_DLLAZY_OR_NOW DL_NOW
10184 # else
10185 # define LT_DLLAZY_OR_NOW 0
10186 # endif
10187 # endif
10188 # endif
10189 # endif
10190 #endif
10191
10192 #ifdef __cplusplus
10193 extern "C" void exit (int);
10194 #endif
10195
10196 void fnord() { int i=42;}
10197 int main ()
10198 {
10199 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10200 int status = $lt_dlunknown;
10201
10202 if (self)
10203 {
10204 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10205 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10206 /* dlclose (self); */
10207 }
10208 else
10209 puts (dlerror ());
10210
10211 exit (status);
10212 }
10213 EOF
10214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10215 (eval $ac_link) 2>&5
10216 ac_status=$?
10217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10218 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10219 (./conftest; exit; ) >&5 2>/dev/null
10220 lt_status=$?
10221 case x$lt_status in
10222 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10223 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10224 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10225 esac
10226 else :
10227 # compilation failed
10228 lt_cv_dlopen_self=no
10229 fi
10230 fi
10231 rm -fr conftest*
10232
10233
10234 fi
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10236 $as_echo "$lt_cv_dlopen_self" >&6; }
10237
10238 if test "x$lt_cv_dlopen_self" = xyes; then
10239 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10241 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10242 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10243 $as_echo_n "(cached) " >&6
10244 else
10245 if test "$cross_compiling" = yes; then :
10246 lt_cv_dlopen_self_static=cross
10247 else
10248 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10249 lt_status=$lt_dlunknown
10250 cat > conftest.$ac_ext <<EOF
10251 #line 10251 "configure"
10252 #include "confdefs.h"
10253
10254 #if HAVE_DLFCN_H
10255 #include <dlfcn.h>
10256 #endif
10257
10258 #include <stdio.h>
10259
10260 #ifdef RTLD_GLOBAL
10261 # define LT_DLGLOBAL RTLD_GLOBAL
10262 #else
10263 # ifdef DL_GLOBAL
10264 # define LT_DLGLOBAL DL_GLOBAL
10265 # else
10266 # define LT_DLGLOBAL 0
10267 # endif
10268 #endif
10269
10270 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10271 find out it does not work in some platform. */
10272 #ifndef LT_DLLAZY_OR_NOW
10273 # ifdef RTLD_LAZY
10274 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10275 # else
10276 # ifdef DL_LAZY
10277 # define LT_DLLAZY_OR_NOW DL_LAZY
10278 # else
10279 # ifdef RTLD_NOW
10280 # define LT_DLLAZY_OR_NOW RTLD_NOW
10281 # else
10282 # ifdef DL_NOW
10283 # define LT_DLLAZY_OR_NOW DL_NOW
10284 # else
10285 # define LT_DLLAZY_OR_NOW 0
10286 # endif
10287 # endif
10288 # endif
10289 # endif
10290 #endif
10291
10292 #ifdef __cplusplus
10293 extern "C" void exit (int);
10294 #endif
10295
10296 void fnord() { int i=42;}
10297 int main ()
10298 {
10299 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10300 int status = $lt_dlunknown;
10301
10302 if (self)
10303 {
10304 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10305 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10306 /* dlclose (self); */
10307 }
10308 else
10309 puts (dlerror ());
10310
10311 exit (status);
10312 }
10313 EOF
10314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10315 (eval $ac_link) 2>&5
10316 ac_status=$?
10317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10318 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10319 (./conftest; exit; ) >&5 2>/dev/null
10320 lt_status=$?
10321 case x$lt_status in
10322 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10323 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10324 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10325 esac
10326 else :
10327 # compilation failed
10328 lt_cv_dlopen_self_static=no
10329 fi
10330 fi
10331 rm -fr conftest*
10332
10333
10334 fi
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10336 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10337 fi
10338
10339 CPPFLAGS="$save_CPPFLAGS"
10340 LDFLAGS="$save_LDFLAGS"
10341 LIBS="$save_LIBS"
10342 ;;
10343 esac
10344
10345 case $lt_cv_dlopen_self in
10346 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10347 *) enable_dlopen_self=unknown ;;
10348 esac
10349
10350 case $lt_cv_dlopen_self_static in
10351 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10352 *) enable_dlopen_self_static=unknown ;;
10353 esac
10354 fi
10355
10356
10357 # Report which library types will actually be built
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10359 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10361 $as_echo "$can_build_shared" >&6; }
10362
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10364 $as_echo_n "checking whether to build shared libraries... " >&6; }
10365 test "$can_build_shared" = "no" && enable_shared=no
10366
10367 # On AIX, shared libraries and static libraries use the same namespace, and
10368 # are all built from PIC.
10369 case $host_os in
10370 aix3*)
10371 test "$enable_shared" = yes && enable_static=no
10372 if test -n "$RANLIB"; then
10373 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10374 postinstall_cmds='$RANLIB $lib'
10375 fi
10376 ;;
10377
10378 aix[4-9]*)
10379 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10380 test "$enable_shared" = yes && enable_static=no
10381 fi
10382 ;;
10383 esac
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10385 $as_echo "$enable_shared" >&6; }
10386
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10388 $as_echo_n "checking whether to build static libraries... " >&6; }
10389 # Make sure either enable_shared or enable_static is yes.
10390 test "$enable_shared" = yes || enable_static=yes
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10392 $as_echo "$enable_static" >&6; }
10393
10394 # The else clause should only fire when bootstrapping the
10395 # libtool distribution, otherwise you forgot to ship ltmain.sh
10396 # with your package, and you will get complaints that there are
10397 # no rules to generate ltmain.sh.
10398 if test -f "$ltmain"; then
10399 # See if we are running on zsh, and set the options which allow our commands through
10400 # without removal of \ escapes.
10401 if test -n "${ZSH_VERSION+set}" ; then
10402 setopt NO_GLOB_SUBST
10403 fi
10404 # Now quote all the things that may contain metacharacters while being
10405 # careful not to overquote the AC_SUBSTed values. We take copies of the
10406 # variables and quote the copies for generation of the libtool script.
10407 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10408 SED SHELL STRIP \
10409 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10410 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10411 deplibs_check_method reload_flag reload_cmds need_locks \
10412 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10413 lt_cv_sys_global_symbol_to_c_name_address \
10414 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10415 old_postinstall_cmds old_postuninstall_cmds \
10416 compiler \
10417 CC \
10418 LD \
10419 lt_prog_compiler_wl \
10420 lt_prog_compiler_pic \
10421 lt_prog_compiler_static \
10422 lt_prog_compiler_no_builtin_flag \
10423 export_dynamic_flag_spec \
10424 thread_safe_flag_spec \
10425 whole_archive_flag_spec \
10426 enable_shared_with_static_runtimes \
10427 old_archive_cmds \
10428 old_archive_from_new_cmds \
10429 predep_objects \
10430 postdep_objects \
10431 predeps \
10432 postdeps \
10433 compiler_lib_search_path \
10434 compiler_lib_search_dirs \
10435 archive_cmds \
10436 archive_expsym_cmds \
10437 postinstall_cmds \
10438 postuninstall_cmds \
10439 old_archive_from_expsyms_cmds \
10440 allow_undefined_flag \
10441 no_undefined_flag \
10442 export_symbols_cmds \
10443 hardcode_libdir_flag_spec \
10444 hardcode_libdir_flag_spec_ld \
10445 hardcode_libdir_separator \
10446 hardcode_automatic \
10447 module_cmds \
10448 module_expsym_cmds \
10449 lt_cv_prog_compiler_c_o \
10450 fix_srcfile_path \
10451 exclude_expsyms \
10452 include_expsyms; do
10453
10454 case $var in
10455 old_archive_cmds | \
10456 old_archive_from_new_cmds | \
10457 archive_cmds | \
10458 archive_expsym_cmds | \
10459 module_cmds | \
10460 module_expsym_cmds | \
10461 old_archive_from_expsyms_cmds | \
10462 export_symbols_cmds | \
10463 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10464 postinstall_cmds | postuninstall_cmds | \
10465 old_postinstall_cmds | old_postuninstall_cmds | \
10466 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10467 # Double-quote double-evaled strings.
10468 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10469 ;;
10470 *)
10471 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10472 ;;
10473 esac
10474 done
10475
10476 case $lt_echo in
10477 *'\$0 --fallback-echo"')
10478 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10479 ;;
10480 esac
10481
10482 cfgfile="${ofile}T"
10483 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10484 $rm -f "$cfgfile"
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10486 $as_echo "$as_me: creating $ofile" >&6;}
10487
10488 cat <<__EOF__ >> "$cfgfile"
10489 #! $SHELL
10490
10491 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10492 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10493 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10494 #
10495 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10496 # Free Software Foundation, Inc.
10497 #
10498 # This file is part of GNU Libtool:
10499 # Originally by Gordon Matzigkeit <[email protected]>, 1996
10500 #
10501 # This program is free software; you can redistribute it and/or modify
10502 # it under the terms of the GNU General Public License as published by
10503 # the Free Software Foundation; either version 2 of the License, or
10504 # (at your option) any later version.
10505 #
10506 # This program is distributed in the hope that it will be useful, but
10507 # WITHOUT ANY WARRANTY; without even the implied warranty of
10508 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10509 # General Public License for more details.
10510 #
10511 # You should have received a copy of the GNU General Public License
10512 # along with this program; if not, write to the Free Software
10513 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10514 #
10515 # As a special exception to the GNU General Public License, if you
10516 # distribute this file as part of a program that contains a
10517 # configuration script generated by Autoconf, you may include it under
10518 # the same distribution terms that you use for the rest of that program.
10519
10520 # A sed program that does not truncate output.
10521 SED=$lt_SED
10522
10523 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10524 Xsed="$SED -e 1s/^X//"
10525
10526 # The HP-UX ksh and POSIX shell print the target directory to stdout
10527 # if CDPATH is set.
10528 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10529
10530 # The names of the tagged configurations supported by this script.
10531 available_tags=
10532
10533 # ### BEGIN LIBTOOL CONFIG
10534
10535 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10536
10537 # Shell to use when invoking shell scripts.
10538 SHELL=$lt_SHELL
10539
10540 # Whether or not to build shared libraries.
10541 build_libtool_libs=$enable_shared
10542
10543 # Whether or not to build static libraries.
10544 build_old_libs=$enable_static
10545
10546 # Whether or not to add -lc for building shared libraries.
10547 build_libtool_need_lc=$archive_cmds_need_lc
10548
10549 # Whether or not to disallow shared libs when runtime libs are static
10550 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10551
10552 # Whether or not to optimize for fast installation.
10553 fast_install=$enable_fast_install
10554
10555 # The host system.
10556 host_alias=$host_alias
10557 host=$host
10558 host_os=$host_os
10559
10560 # The build system.
10561 build_alias=$build_alias
10562 build=$build
10563 build_os=$build_os
10564
10565 # An echo program that does not interpret backslashes.
10566 echo=$lt_echo
10567
10568 # The archiver.
10569 AR=$lt_AR
10570 AR_FLAGS=$lt_AR_FLAGS
10571
10572 # A C compiler.
10573 LTCC=$lt_LTCC
10574
10575 # LTCC compiler flags.
10576 LTCFLAGS=$lt_LTCFLAGS
10577
10578 # A language-specific compiler.
10579 CC=$lt_compiler
10580
10581 # Is the compiler the GNU C compiler?
10582 with_gcc=$GCC
10583
10584 # An ERE matcher.
10585 EGREP=$lt_EGREP
10586
10587 # The linker used to build libraries.
10588 LD=$lt_LD
10589
10590 # Whether we need hard or soft links.
10591 LN_S=$lt_LN_S
10592
10593 # A BSD-compatible nm program.
10594 NM=$lt_NM
10595
10596 # A symbol stripping program
10597 STRIP=$lt_STRIP
10598
10599 # Used to examine libraries when file_magic_cmd begins "file"
10600 MAGIC_CMD=$MAGIC_CMD
10601
10602 # Used on cygwin: DLL creation program.
10603 DLLTOOL="$DLLTOOL"
10604
10605 # Used on cygwin: object dumper.
10606 OBJDUMP="$OBJDUMP"
10607
10608 # Used on cygwin: assembler.
10609 AS="$AS"
10610
10611 # The name of the directory that contains temporary libtool files.
10612 objdir=$objdir
10613
10614 # How to create reloadable object files.
10615 reload_flag=$lt_reload_flag
10616 reload_cmds=$lt_reload_cmds
10617
10618 # How to pass a linker flag through the compiler.
10619 wl=$lt_lt_prog_compiler_wl
10620
10621 # Object file suffix (normally "o").
10622 objext="$ac_objext"
10623
10624 # Old archive suffix (normally "a").
10625 libext="$libext"
10626
10627 # Shared library suffix (normally ".so").
10628 shrext_cmds='$shrext_cmds'
10629
10630 # Executable file suffix (normally "").
10631 exeext="$exeext"
10632
10633 # Additional compiler flags for building library objects.
10634 pic_flag=$lt_lt_prog_compiler_pic
10635 pic_mode=$pic_mode
10636
10637 # What is the maximum length of a command?
10638 max_cmd_len=$lt_cv_sys_max_cmd_len
10639
10640 # Does compiler simultaneously support -c and -o options?
10641 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10642
10643 # Must we lock files when doing compilation?
10644 need_locks=$lt_need_locks
10645
10646 # Do we need the lib prefix for modules?
10647 need_lib_prefix=$need_lib_prefix
10648
10649 # Do we need a version for libraries?
10650 need_version=$need_version
10651
10652 # Whether dlopen is supported.
10653 dlopen_support=$enable_dlopen
10654
10655 # Whether dlopen of programs is supported.
10656 dlopen_self=$enable_dlopen_self
10657
10658 # Whether dlopen of statically linked programs is supported.
10659 dlopen_self_static=$enable_dlopen_self_static
10660
10661 # Compiler flag to prevent dynamic linking.
10662 link_static_flag=$lt_lt_prog_compiler_static
10663
10664 # Compiler flag to turn off builtin functions.
10665 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10666
10667 # Compiler flag to allow reflexive dlopens.
10668 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10669
10670 # Compiler flag to generate shared objects directly from archives.
10671 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10672
10673 # Compiler flag to generate thread-safe objects.
10674 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10675
10676 # Library versioning type.
10677 version_type=$version_type
10678
10679 # Format of library name prefix.
10680 libname_spec=$lt_libname_spec
10681
10682 # List of archive names. First name is the real one, the rest are links.
10683 # The last name is the one that the linker finds with -lNAME.
10684 library_names_spec=$lt_library_names_spec
10685
10686 # The coded name of the library, if different from the real name.
10687 soname_spec=$lt_soname_spec
10688
10689 # Commands used to build and install an old-style archive.
10690 RANLIB=$lt_RANLIB
10691 old_archive_cmds=$lt_old_archive_cmds
10692 old_postinstall_cmds=$lt_old_postinstall_cmds
10693 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10694
10695 # Create an old-style archive from a shared archive.
10696 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10697
10698 # Create a temporary old-style archive to link instead of a shared archive.
10699 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10700
10701 # Commands used to build and install a shared archive.
10702 archive_cmds=$lt_archive_cmds
10703 archive_expsym_cmds=$lt_archive_expsym_cmds
10704 postinstall_cmds=$lt_postinstall_cmds
10705 postuninstall_cmds=$lt_postuninstall_cmds
10706
10707 # Commands used to build a loadable module (assumed same as above if empty)
10708 module_cmds=$lt_module_cmds
10709 module_expsym_cmds=$lt_module_expsym_cmds
10710
10711 # Commands to strip libraries.
10712 old_striplib=$lt_old_striplib
10713 striplib=$lt_striplib
10714
10715 # Dependencies to place before the objects being linked to create a
10716 # shared library.
10717 predep_objects=$lt_predep_objects
10718
10719 # Dependencies to place after the objects being linked to create a
10720 # shared library.
10721 postdep_objects=$lt_postdep_objects
10722
10723 # Dependencies to place before the objects being linked to create a
10724 # shared library.
10725 predeps=$lt_predeps
10726
10727 # Dependencies to place after the objects being linked to create a
10728 # shared library.
10729 postdeps=$lt_postdeps
10730
10731 # The directories searched by this compiler when creating a shared
10732 # library
10733 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10734
10735 # The library search path used internally by the compiler when linking
10736 # a shared library.
10737 compiler_lib_search_path=$lt_compiler_lib_search_path
10738
10739 # Method to check whether dependent libraries are shared objects.
10740 deplibs_check_method=$lt_deplibs_check_method
10741
10742 # Command to use when deplibs_check_method == file_magic.
10743 file_magic_cmd=$lt_file_magic_cmd
10744
10745 # Flag that allows shared libraries with undefined symbols to be built.
10746 allow_undefined_flag=$lt_allow_undefined_flag
10747
10748 # Flag that forces no undefined symbols.
10749 no_undefined_flag=$lt_no_undefined_flag
10750
10751 # Commands used to finish a libtool library installation in a directory.
10752 finish_cmds=$lt_finish_cmds
10753
10754 # Same as above, but a single script fragment to be evaled but not shown.
10755 finish_eval=$lt_finish_eval
10756
10757 # Take the output of nm and produce a listing of raw symbols and C names.
10758 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10759
10760 # Transform the output of nm in a proper C declaration
10761 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10762
10763 # Transform the output of nm in a C name address pair
10764 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10765
10766 # This is the shared library runtime path variable.
10767 runpath_var=$runpath_var
10768
10769 # This is the shared library path variable.
10770 shlibpath_var=$shlibpath_var
10771
10772 # Is shlibpath searched before the hard-coded library search path?
10773 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10774
10775 # How to hardcode a shared library path into an executable.
10776 hardcode_action=$hardcode_action
10777
10778 # Whether we should hardcode library paths into libraries.
10779 hardcode_into_libs=$hardcode_into_libs
10780
10781 # Flag to hardcode \$libdir into a binary during linking.
10782 # This must work even if \$libdir does not exist.
10783 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10784
10785 # If ld is used when linking, flag to hardcode \$libdir into
10786 # a binary during linking. This must work even if \$libdir does
10787 # not exist.
10788 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10789
10790 # Whether we need a single -rpath flag with a separated argument.
10791 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10792
10793 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10794 # resulting binary.
10795 hardcode_direct=$hardcode_direct
10796
10797 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10798 # resulting binary.
10799 hardcode_minus_L=$hardcode_minus_L
10800
10801 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10802 # the resulting binary.
10803 hardcode_shlibpath_var=$hardcode_shlibpath_var
10804
10805 # Set to yes if building a shared library automatically hardcodes DIR into the library
10806 # and all subsequent libraries and executables linked against it.
10807 hardcode_automatic=$hardcode_automatic
10808
10809 # Variables whose values should be saved in libtool wrapper scripts and
10810 # restored at relink time.
10811 variables_saved_for_relink="$variables_saved_for_relink"
10812
10813 # Whether libtool must link a program against all its dependency libraries.
10814 link_all_deplibs=$link_all_deplibs
10815
10816 # Compile-time system search path for libraries
10817 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10818
10819 # Run-time system search path for libraries
10820 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10821
10822 # Fix the shell variable \$srcfile for the compiler.
10823 fix_srcfile_path=$lt_fix_srcfile_path
10824
10825 # Set to yes if exported symbols are required.
10826 always_export_symbols=$always_export_symbols
10827
10828 # The commands to list exported symbols.
10829 export_symbols_cmds=$lt_export_symbols_cmds
10830
10831 # The commands to extract the exported symbol list from a shared archive.
10832 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10833
10834 # Symbols that should not be listed in the preloaded symbols.
10835 exclude_expsyms=$lt_exclude_expsyms
10836
10837 # Symbols that must always be exported.
10838 include_expsyms=$lt_include_expsyms
10839
10840 # ### END LIBTOOL CONFIG
10841
10842 __EOF__
10843
10844
10845 case $host_os in
10846 aix3*)
10847 cat <<\EOF >> "$cfgfile"
10848
10849 # AIX sometimes has problems with the GCC collect2 program. For some
10850 # reason, if we set the COLLECT_NAMES environment variable, the problems
10851 # vanish in a puff of smoke.
10852 if test "X${COLLECT_NAMES+set}" != Xset; then
10853 COLLECT_NAMES=
10854 export COLLECT_NAMES
10855 fi
10856 EOF
10857 ;;
10858 esac
10859
10860 # We use sed instead of cat because bash on DJGPP gets confused if
10861 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10862 # text mode, it properly converts lines to CR/LF. This bash problem
10863 # is reportedly fixed, but why not run on old versions too?
10864 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10865
10866 mv -f "$cfgfile" "$ofile" || \
10867 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10868 chmod +x "$ofile"
10869
10870 else
10871 # If there is no Makefile yet, we rely on a make rule to execute
10872 # `config.status --recheck' to rerun these tests and create the
10873 # libtool script then.
10874 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10875 if test -f "$ltmain_in"; then
10876 test -f Makefile && make "$ltmain"
10877 fi
10878 fi
10879
10880
10881 ac_ext=cpp
10882 ac_cpp='$CXXCPP $CPPFLAGS'
10883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10886
10887 CC="$lt_save_CC"
10888
10889
10890 # Check whether --with-tags was given.
10891 if test "${with_tags+set}" = set; then :
10892 withval=$with_tags; tagnames="$withval"
10893 fi
10894
10895
10896 if test -f "$ltmain" && test -n "$tagnames"; then
10897 if test ! -f "${ofile}"; then
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10899 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10900 fi
10901
10902 if test -z "$LTCC"; then
10903 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10904 if test -z "$LTCC"; then
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10906 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10907 else
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10909 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10910 fi
10911 fi
10912 if test -z "$LTCFLAGS"; then
10913 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10914 fi
10915
10916 # Extract list of available tagged configurations in $ofile.
10917 # Note that this assumes the entire list is on one line.
10918 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10919
10920 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10921 for tagname in $tagnames; do
10922 IFS="$lt_save_ifs"
10923 # Check whether tagname contains only valid characters
10924 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10925 "") ;;
10926 *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5
10927 ;;
10928 esac
10929
10930 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10931 then
10932 as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
10933 fi
10934
10935 # Update the list of available tags.
10936 if test -n "$tagname"; then
10937 echo appending configuration tag \"$tagname\" to $ofile
10938
10939 case $tagname in
10940 CXX)
10941 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10942 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10943 (test "X$CXX" != "Xg++"))) ; then
10944 ac_ext=cpp
10945 ac_cpp='$CXXCPP $CPPFLAGS'
10946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10949
10950
10951
10952
10953 archive_cmds_need_lc_CXX=no
10954 allow_undefined_flag_CXX=
10955 always_export_symbols_CXX=no
10956 archive_expsym_cmds_CXX=
10957 export_dynamic_flag_spec_CXX=
10958 hardcode_direct_CXX=no
10959 hardcode_libdir_flag_spec_CXX=
10960 hardcode_libdir_flag_spec_ld_CXX=
10961 hardcode_libdir_separator_CXX=
10962 hardcode_minus_L_CXX=no
10963 hardcode_shlibpath_var_CXX=unsupported
10964 hardcode_automatic_CXX=no
10965 module_cmds_CXX=
10966 module_expsym_cmds_CXX=
10967 link_all_deplibs_CXX=unknown
10968 old_archive_cmds_CXX=$old_archive_cmds
10969 no_undefined_flag_CXX=
10970 whole_archive_flag_spec_CXX=
10971 enable_shared_with_static_runtimes_CXX=no
10972
10973 # Dependencies to place before and after the object being linked:
10974 predep_objects_CXX=
10975 postdep_objects_CXX=
10976 predeps_CXX=
10977 postdeps_CXX=
10978 compiler_lib_search_path_CXX=
10979 compiler_lib_search_dirs_CXX=
10980
10981 # Source file extension for C++ test sources.
10982 ac_ext=cpp
10983
10984 # Object file extension for compiled C++ test sources.
10985 objext=o
10986 objext_CXX=$objext
10987
10988 # Code to be used in simple compile tests
10989 lt_simple_compile_test_code="int some_variable = 0;"
10990
10991 # Code to be used in simple link tests
10992 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10993
10994 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10995
10996 # If no C compiler was specified, use CC.
10997 LTCC=${LTCC-"$CC"}
10998
10999 # If no C compiler flags were specified, use CFLAGS.
11000 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11001
11002 # Allow CC to be a program name with arguments.
11003 compiler=$CC
11004
11005
11006 # save warnings/boilerplate of simple test code
11007 ac_outfile=conftest.$ac_objext
11008 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11009 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11010 _lt_compiler_boilerplate=`cat conftest.err`
11011 $rm conftest*
11012
11013 ac_outfile=conftest.$ac_objext
11014 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11015 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11016 _lt_linker_boilerplate=`cat conftest.err`
11017 $rm -r conftest*
11018
11019
11020 # Allow CC to be a program name with arguments.
11021 lt_save_CC=$CC
11022 lt_save_LD=$LD
11023 lt_save_GCC=$GCC
11024 GCC=$GXX
11025 lt_save_with_gnu_ld=$with_gnu_ld
11026 lt_save_path_LD=$lt_cv_path_LD
11027 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11028 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11029 else
11030 $as_unset lt_cv_prog_gnu_ld
11031 fi
11032 if test -n "${lt_cv_path_LDCXX+set}"; then
11033 lt_cv_path_LD=$lt_cv_path_LDCXX
11034 else
11035 $as_unset lt_cv_path_LD
11036 fi
11037 test -z "${LDCXX+set}" || LD=$LDCXX
11038 CC=${CXX-"c++"}
11039 compiler=$CC
11040 compiler_CXX=$CC
11041 for cc_temp in $compiler""; do
11042 case $cc_temp in
11043 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11044 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11045 \-*) ;;
11046 *) break;;
11047 esac
11048 done
11049 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11050
11051
11052 # We don't want -fno-exception wen compiling C++ code, so set the
11053 # no_builtin_flag separately
11054 if test "$GXX" = yes; then
11055 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11056 else
11057 lt_prog_compiler_no_builtin_flag_CXX=
11058 fi
11059
11060 if test "$GXX" = yes; then
11061 # Set up default GNU C++ configuration
11062
11063
11064 # Check whether --with-gnu-ld was given.
11065 if test "${with_gnu_ld+set}" = set; then :
11066 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11067 else
11068 with_gnu_ld=no
11069 fi
11070
11071 ac_prog=ld
11072 if test "$GCC" = yes; then
11073 # Check if gcc -print-prog-name=ld gives a path.
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11075 $as_echo_n "checking for ld used by $CC... " >&6; }
11076 case $host in
11077 *-*-mingw*)
11078 # gcc leaves a trailing carriage return which upsets mingw
11079 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11080 *)
11081 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11082 esac
11083 case $ac_prog in
11084 # Accept absolute paths.
11085 [\\/]* | ?:[\\/]*)
11086 re_direlt='/[^/][^/]*/\.\./'
11087 # Canonicalize the pathname of ld
11088 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11089 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11090 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11091 done
11092 test -z "$LD" && LD="$ac_prog"
11093 ;;
11094 "")
11095 # If it fails, then pretend we aren't using GCC.
11096 ac_prog=ld
11097 ;;
11098 *)
11099 # If it is relative, then search for the first ld in PATH.
11100 with_gnu_ld=unknown
11101 ;;
11102 esac
11103 elif test "$with_gnu_ld" = yes; then
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11105 $as_echo_n "checking for GNU ld... " >&6; }
11106 else
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11108 $as_echo_n "checking for non-GNU ld... " >&6; }
11109 fi
11110 if test "${lt_cv_path_LD+set}" = set; then :
11111 $as_echo_n "(cached) " >&6
11112 else
11113 if test -z "$LD"; then
11114 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11115 for ac_dir in $PATH; do
11116 IFS="$lt_save_ifs"
11117 test -z "$ac_dir" && ac_dir=.
11118 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11119 lt_cv_path_LD="$ac_dir/$ac_prog"
11120 # Check to see if the program is GNU ld. I'd rather use --version,
11121 # but apparently some variants of GNU ld only accept -v.
11122 # Break only if it was the GNU/non-GNU ld that we prefer.
11123 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11124 *GNU* | *'with BFD'*)
11125 test "$with_gnu_ld" != no && break
11126 ;;
11127 *)
11128 test "$with_gnu_ld" != yes && break
11129 ;;
11130 esac
11131 fi
11132 done
11133 IFS="$lt_save_ifs"
11134 else
11135 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11136 fi
11137 fi
11138
11139 LD="$lt_cv_path_LD"
11140 if test -n "$LD"; then
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11142 $as_echo "$LD" >&6; }
11143 else
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11145 $as_echo "no" >&6; }
11146 fi
11147 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11149 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11150 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11151 $as_echo_n "(cached) " >&6
11152 else
11153 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11154 case `$LD -v 2>&1 </dev/null` in
11155 *GNU* | *'with BFD'*)
11156 lt_cv_prog_gnu_ld=yes
11157 ;;
11158 *)
11159 lt_cv_prog_gnu_ld=no
11160 ;;
11161 esac
11162 fi
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11164 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11165 with_gnu_ld=$lt_cv_prog_gnu_ld
11166
11167
11168
11169 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11170 # archiving commands below assume that GNU ld is being used.
11171 if test "$with_gnu_ld" = yes; then
11172 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11173 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'
11174
11175 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11176 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11177
11178 # If archive_cmds runs LD, not CC, wlarc should be empty
11179 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11180 # investigate it a little bit more. (MM)
11181 wlarc='${wl}'
11182
11183 # ancient GNU ld didn't support --whole-archive et. al.
11184 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11185 grep 'no-whole-archive' > /dev/null; then
11186 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11187 else
11188 whole_archive_flag_spec_CXX=
11189 fi
11190 else
11191 with_gnu_ld=no
11192 wlarc=
11193
11194 # A generic and very simple default shared library creation
11195 # command for GNU C++ for the case where it uses the native
11196 # linker, instead of GNU ld. If possible, this setting should
11197 # overridden to take advantage of the native linker features on
11198 # the platform it is being used on.
11199 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11200 fi
11201
11202 # Commands to make compiler produce verbose output that lists
11203 # what "hidden" libraries, object files and flags are used when
11204 # linking a shared library.
11205 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11206
11207 else
11208 GXX=no
11209 with_gnu_ld=no
11210 wlarc=
11211 fi
11212
11213 # PORTME: fill in a description of your system's C++ link characteristics
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11215 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11216 ld_shlibs_CXX=yes
11217 case $host_os in
11218 aix3*)
11219 # FIXME: insert proper C++ library support
11220 ld_shlibs_CXX=no
11221 ;;
11222 aix[4-9]*)
11223 if test "$host_cpu" = ia64; then
11224 # On IA64, the linker does run time linking by default, so we don't
11225 # have to do anything special.
11226 aix_use_runtimelinking=no
11227 exp_sym_flag='-Bexport'
11228 no_entry_flag=""
11229 else
11230 aix_use_runtimelinking=no
11231
11232 # Test if we are trying to use run time linking or normal
11233 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11234 # need to do runtime linking.
11235 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11236 for ld_flag in $LDFLAGS; do
11237 case $ld_flag in
11238 *-brtl*)
11239 aix_use_runtimelinking=yes
11240 break
11241 ;;
11242 esac
11243 done
11244 ;;
11245 esac
11246
11247 exp_sym_flag='-bexport'
11248 no_entry_flag='-bnoentry'
11249 fi
11250
11251 # When large executables or shared objects are built, AIX ld can
11252 # have problems creating the table of contents. If linking a library
11253 # or program results in "error TOC overflow" add -mminimal-toc to
11254 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11255 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11256
11257 archive_cmds_CXX=''
11258 hardcode_direct_CXX=yes
11259 hardcode_libdir_separator_CXX=':'
11260 link_all_deplibs_CXX=yes
11261
11262 if test "$GXX" = yes; then
11263 case $host_os in aix4.[012]|aix4.[012].*)
11264 # We only want to do this on AIX 4.2 and lower, the check
11265 # below for broken collect2 doesn't work under 4.3+
11266 collect2name=`${CC} -print-prog-name=collect2`
11267 if test -f "$collect2name" && \
11268 strings "$collect2name" | grep resolve_lib_name >/dev/null
11269 then
11270 # We have reworked collect2
11271 :
11272 else
11273 # We have old collect2
11274 hardcode_direct_CXX=unsupported
11275 # It fails to find uninstalled libraries when the uninstalled
11276 # path is not listed in the libpath. Setting hardcode_minus_L
11277 # to unsupported forces relinking
11278 hardcode_minus_L_CXX=yes
11279 hardcode_libdir_flag_spec_CXX='-L$libdir'
11280 hardcode_libdir_separator_CXX=
11281 fi
11282 ;;
11283 esac
11284 shared_flag='-shared'
11285 if test "$aix_use_runtimelinking" = yes; then
11286 shared_flag="$shared_flag "'${wl}-G'
11287 fi
11288 else
11289 # not using gcc
11290 if test "$host_cpu" = ia64; then
11291 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11292 # chokes on -Wl,-G. The following line is correct:
11293 shared_flag='-G'
11294 else
11295 if test "$aix_use_runtimelinking" = yes; then
11296 shared_flag='${wl}-G'
11297 else
11298 shared_flag='${wl}-bM:SRE'
11299 fi
11300 fi
11301 fi
11302
11303 # It seems that -bexpall does not export symbols beginning with
11304 # underscore (_), so it is better to generate a list of symbols to export.
11305 always_export_symbols_CXX=yes
11306 if test "$aix_use_runtimelinking" = yes; then
11307 # Warning - without using the other runtime loading flags (-brtl),
11308 # -berok will link without error, but may produce a broken library.
11309 allow_undefined_flag_CXX='-berok'
11310 # Determine the default libpath from the value encoded in an empty executable.
11311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312 /* end confdefs.h. */
11313
11314 int
11315 main ()
11316 {
11317
11318 ;
11319 return 0;
11320 }
11321 _ACEOF
11322 if ac_fn_cxx_try_link "$LINENO"; then :
11323
11324 lt_aix_libpath_sed='
11325 /Import File Strings/,/^$/ {
11326 /^0/ {
11327 s/^0 *\(.*\)$/\1/
11328 p
11329 }
11330 }'
11331 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11332 # Check for a 64-bit object if we didn't find anything.
11333 if test -z "$aix_libpath"; then
11334 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11335 fi
11336 fi
11337 rm -f core conftest.err conftest.$ac_objext \
11338 conftest$ac_exeext conftest.$ac_ext
11339 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11340
11341 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11342
11343 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"
11344 else
11345 if test "$host_cpu" = ia64; then
11346 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11347 allow_undefined_flag_CXX="-z nodefs"
11348 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"
11349 else
11350 # Determine the default libpath from the value encoded in an empty executable.
11351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352 /* end confdefs.h. */
11353
11354 int
11355 main ()
11356 {
11357
11358 ;
11359 return 0;
11360 }
11361 _ACEOF
11362 if ac_fn_cxx_try_link "$LINENO"; then :
11363
11364 lt_aix_libpath_sed='
11365 /Import File Strings/,/^$/ {
11366 /^0/ {
11367 s/^0 *\(.*\)$/\1/
11368 p
11369 }
11370 }'
11371 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11372 # Check for a 64-bit object if we didn't find anything.
11373 if test -z "$aix_libpath"; then
11374 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11375 fi
11376 fi
11377 rm -f core conftest.err conftest.$ac_objext \
11378 conftest$ac_exeext conftest.$ac_ext
11379 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11380
11381 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11382 # Warning - without using the other run time loading flags,
11383 # -berok will link without error, but may produce a broken library.
11384 no_undefined_flag_CXX=' ${wl}-bernotok'
11385 allow_undefined_flag_CXX=' ${wl}-berok'
11386 # Exported symbols can be pulled into shared objects from archives
11387 whole_archive_flag_spec_CXX='$convenience'
11388 archive_cmds_need_lc_CXX=yes
11389 # This is similar to how AIX traditionally builds its shared libraries.
11390 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'
11391 fi
11392 fi
11393 ;;
11394
11395 beos*)
11396 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11397 allow_undefined_flag_CXX=unsupported
11398 # Joseph Beckenbach <[email protected]> says some releases of gcc
11399 # support --undefined. This deserves some investigation. FIXME
11400 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11401 else
11402 ld_shlibs_CXX=no
11403 fi
11404 ;;
11405
11406 chorus*)
11407 case $cc_basename in
11408 *)
11409 # FIXME: insert proper C++ library support
11410 ld_shlibs_CXX=no
11411 ;;
11412 esac
11413 ;;
11414
11415 cygwin* | mingw* | pw32*)
11416 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11417 # as there is no search path for DLLs.
11418 hardcode_libdir_flag_spec_CXX='-L$libdir'
11419 allow_undefined_flag_CXX=unsupported
11420 always_export_symbols_CXX=no
11421 enable_shared_with_static_runtimes_CXX=yes
11422
11423 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11424 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'
11425 # If the export-symbols file already is a .def file (1st line
11426 # is EXPORTS), use it as is; otherwise, prepend...
11427 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11428 cp $export_symbols $output_objdir/$soname.def;
11429 else
11430 echo EXPORTS > $output_objdir/$soname.def;
11431 cat $export_symbols >> $output_objdir/$soname.def;
11432 fi~
11433 $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'
11434 else
11435 ld_shlibs_CXX=no
11436 fi
11437 ;;
11438 darwin* | rhapsody*)
11439 archive_cmds_need_lc_CXX=no
11440 hardcode_direct_CXX=no
11441 hardcode_automatic_CXX=yes
11442 hardcode_shlibpath_var_CXX=unsupported
11443 whole_archive_flag_spec_CXX=''
11444 link_all_deplibs_CXX=yes
11445 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11446 if test "$GXX" = yes ; then
11447 output_verbose_link_cmd='echo'
11448 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}"
11449 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11450 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}"
11451 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}"
11452 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11453 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}"
11454 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}"
11455 fi
11456 else
11457 case $cc_basename in
11458 xlc*)
11459 output_verbose_link_cmd='echo'
11460 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'
11461 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11462 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11463 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}'
11464 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}'
11465 ;;
11466 *)
11467 ld_shlibs_CXX=no
11468 ;;
11469 esac
11470 fi
11471 ;;
11472
11473 dgux*)
11474 case $cc_basename in
11475 ec++*)
11476 # FIXME: insert proper C++ library support
11477 ld_shlibs_CXX=no
11478 ;;
11479 ghcx*)
11480 # Green Hills C++ Compiler
11481 # FIXME: insert proper C++ library support
11482 ld_shlibs_CXX=no
11483 ;;
11484 *)
11485 # FIXME: insert proper C++ library support
11486 ld_shlibs_CXX=no
11487 ;;
11488 esac
11489 ;;
11490 freebsd[12]*)
11491 # C++ shared libraries reported to be fairly broken before switch to ELF
11492 ld_shlibs_CXX=no
11493 ;;
11494 freebsd-elf*)
11495 archive_cmds_need_lc_CXX=no
11496 ;;
11497 freebsd* | dragonfly*)
11498 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11499 # conventions
11500 ld_shlibs_CXX=yes
11501 ;;
11502 gnu*)
11503 ;;
11504 hpux9*)
11505 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11506 hardcode_libdir_separator_CXX=:
11507 export_dynamic_flag_spec_CXX='${wl}-E'
11508 hardcode_direct_CXX=yes
11509 hardcode_minus_L_CXX=yes # Not in the search PATH,
11510 # but as the default
11511 # location of the library.
11512
11513 case $cc_basename in
11514 CC*)
11515 # FIXME: insert proper C++ library support
11516 ld_shlibs_CXX=no
11517 ;;
11518 aCC*)
11519 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'
11520 # Commands to make compiler produce verbose output that lists
11521 # what "hidden" libraries, object files and flags are used when
11522 # linking a shared library.
11523 #
11524 # There doesn't appear to be a way to prevent this compiler from
11525 # explicitly linking system object files so we need to strip them
11526 # from the output so that they don't get included in the library
11527 # dependencies.
11528 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'
11529 ;;
11530 *)
11531 if test "$GXX" = yes; then
11532 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'
11533 else
11534 # FIXME: insert proper C++ library support
11535 ld_shlibs_CXX=no
11536 fi
11537 ;;
11538 esac
11539 ;;
11540 hpux10*|hpux11*)
11541 if test $with_gnu_ld = no; then
11542 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11543 hardcode_libdir_separator_CXX=:
11544
11545 case $host_cpu in
11546 hppa*64*|ia64*) ;;
11547 *)
11548 export_dynamic_flag_spec_CXX='${wl}-E'
11549 ;;
11550 esac
11551 fi
11552 case $host_cpu in
11553 hppa*64*|ia64*)
11554 hardcode_direct_CXX=no
11555 hardcode_shlibpath_var_CXX=no
11556 ;;
11557 *)
11558 hardcode_direct_CXX=yes
11559 hardcode_minus_L_CXX=yes # Not in the search PATH,
11560 # but as the default
11561 # location of the library.
11562 ;;
11563 esac
11564
11565 case $cc_basename in
11566 CC*)
11567 # FIXME: insert proper C++ library support
11568 ld_shlibs_CXX=no
11569 ;;
11570 aCC*)
11571 case $host_cpu in
11572 hppa*64*)
11573 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11574 ;;
11575 ia64*)
11576 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11577 ;;
11578 *)
11579 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11580 ;;
11581 esac
11582 # Commands to make compiler produce verbose output that lists
11583 # what "hidden" libraries, object files and flags are used when
11584 # linking a shared library.
11585 #
11586 # There doesn't appear to be a way to prevent this compiler from
11587 # explicitly linking system object files so we need to strip them
11588 # from the output so that they don't get included in the library
11589 # dependencies.
11590 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'
11591 ;;
11592 *)
11593 if test "$GXX" = yes; then
11594 if test $with_gnu_ld = no; then
11595 case $host_cpu in
11596 hppa*64*)
11597 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11598 ;;
11599 ia64*)
11600 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11601 ;;
11602 *)
11603 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'
11604 ;;
11605 esac
11606 fi
11607 else
11608 # FIXME: insert proper C++ library support
11609 ld_shlibs_CXX=no
11610 fi
11611 ;;
11612 esac
11613 ;;
11614 interix[3-9]*)
11615 hardcode_direct_CXX=no
11616 hardcode_shlibpath_var_CXX=no
11617 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11618 export_dynamic_flag_spec_CXX='${wl}-E'
11619 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11620 # Instead, shared libraries are loaded at an image base (0x10000000 by
11621 # default) and relocated if they conflict, which is a slow very memory
11622 # consuming and fragmenting process. To avoid this, we pick a random,
11623 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11624 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11625 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'
11626 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'
11627 ;;
11628 irix5* | irix6*)
11629 case $cc_basename in
11630 CC*)
11631 # SGI C++
11632 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'
11633
11634 # Archives containing C++ object files must be created using
11635 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11636 # necessary to make sure instantiated templates are included
11637 # in the archive.
11638 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11639 ;;
11640 *)
11641 if test "$GXX" = yes; then
11642 if test "$with_gnu_ld" = no; then
11643 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'
11644 else
11645 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'
11646 fi
11647 fi
11648 link_all_deplibs_CXX=yes
11649 ;;
11650 esac
11651 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11652 hardcode_libdir_separator_CXX=:
11653 ;;
11654 linux* | k*bsd*-gnu)
11655 case $cc_basename in
11656 KCC*)
11657 # Kuck and Associates, Inc. (KAI) C++ Compiler
11658
11659 # KCC will only create a shared library if the output file
11660 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11661 # to its proper name (with version) after linking.
11662 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'
11663 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'
11664 # Commands to make compiler produce verbose output that lists
11665 # what "hidden" libraries, object files and flags are used when
11666 # linking a shared library.
11667 #
11668 # There doesn't appear to be a way to prevent this compiler from
11669 # explicitly linking system object files so we need to strip them
11670 # from the output so that they don't get included in the library
11671 # dependencies.
11672 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'
11673
11674 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11675 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11676
11677 # Archives containing C++ object files must be created using
11678 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11679 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11680 ;;
11681 icpc*)
11682 # Intel C++
11683 with_gnu_ld=yes
11684 # version 8.0 and above of icpc choke on multiply defined symbols
11685 # if we add $predep_objects and $postdep_objects, however 7.1 and
11686 # earlier do not add the objects themselves.
11687 case `$CC -V 2>&1` in
11688 *"Version 7."*)
11689 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11690 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'
11691 ;;
11692 *) # Version 8.0 or newer
11693 tmp_idyn=
11694 case $host_cpu in
11695 ia64*) tmp_idyn=' -i_dynamic';;
11696 esac
11697 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11698 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'
11699 ;;
11700 esac
11701 archive_cmds_need_lc_CXX=no
11702 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11703 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11704 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11705 ;;
11706 pgCC* | pgcpp*)
11707 # Portland Group C++ compiler
11708 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11709 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'
11710
11711 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11712 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11713 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'
11714 ;;
11715 cxx*)
11716 # Compaq C++
11717 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11718 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'
11719
11720 runpath_var=LD_RUN_PATH
11721 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11722 hardcode_libdir_separator_CXX=:
11723
11724 # Commands to make compiler produce verbose output that lists
11725 # what "hidden" libraries, object files and flags are used when
11726 # linking a shared library.
11727 #
11728 # There doesn't appear to be a way to prevent this compiler from
11729 # explicitly linking system object files so we need to strip them
11730 # from the output so that they don't get included in the library
11731 # dependencies.
11732 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'
11733 ;;
11734 *)
11735 case `$CC -V 2>&1 | sed 5q` in
11736 *Sun\ C*)
11737 # Sun C++ 5.9
11738 no_undefined_flag_CXX=' -zdefs'
11739 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11740 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'
11741 hardcode_libdir_flag_spec_CXX='-R$libdir'
11742 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'
11743
11744 # Not sure whether something based on
11745 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11746 # would be better.
11747 output_verbose_link_cmd='echo'
11748
11749 # Archives containing C++ object files must be created using
11750 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11751 # necessary to make sure instantiated templates are included
11752 # in the archive.
11753 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11754 ;;
11755 esac
11756 ;;
11757 esac
11758 ;;
11759 lynxos*)
11760 # FIXME: insert proper C++ library support
11761 ld_shlibs_CXX=no
11762 ;;
11763 m88k*)
11764 # FIXME: insert proper C++ library support
11765 ld_shlibs_CXX=no
11766 ;;
11767 mvs*)
11768 case $cc_basename in
11769 cxx*)
11770 # FIXME: insert proper C++ library support
11771 ld_shlibs_CXX=no
11772 ;;
11773 *)
11774 # FIXME: insert proper C++ library support
11775 ld_shlibs_CXX=no
11776 ;;
11777 esac
11778 ;;
11779 netbsd*)
11780 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11781 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11782 wlarc=
11783 hardcode_libdir_flag_spec_CXX='-R$libdir'
11784 hardcode_direct_CXX=yes
11785 hardcode_shlibpath_var_CXX=no
11786 fi
11787 # Workaround some broken pre-1.5 toolchains
11788 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11789 ;;
11790 openbsd2*)
11791 # C++ shared libraries are fairly broken
11792 ld_shlibs_CXX=no
11793 ;;
11794 openbsd*)
11795 if test -f /usr/libexec/ld.so; then
11796 hardcode_direct_CXX=yes
11797 hardcode_shlibpath_var_CXX=no
11798 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11799 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11800 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11801 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11802 export_dynamic_flag_spec_CXX='${wl}-E'
11803 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11804 fi
11805 output_verbose_link_cmd='echo'
11806 else
11807 ld_shlibs_CXX=no
11808 fi
11809 ;;
11810 osf3*)
11811 case $cc_basename in
11812 KCC*)
11813 # Kuck and Associates, Inc. (KAI) C++ Compiler
11814
11815 # KCC will only create a shared library if the output file
11816 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11817 # to its proper name (with version) after linking.
11818 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'
11819
11820 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11821 hardcode_libdir_separator_CXX=:
11822
11823 # Archives containing C++ object files must be created using
11824 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11825 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11826
11827 ;;
11828 RCC*)
11829 # Rational C++ 2.4.1
11830 # FIXME: insert proper C++ library support
11831 ld_shlibs_CXX=no
11832 ;;
11833 cxx*)
11834 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11835 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'
11836
11837 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11838 hardcode_libdir_separator_CXX=:
11839
11840 # Commands to make compiler produce verbose output that lists
11841 # what "hidden" libraries, object files and flags are used when
11842 # linking a shared library.
11843 #
11844 # There doesn't appear to be a way to prevent this compiler from
11845 # explicitly linking system object files so we need to strip them
11846 # from the output so that they don't get included in the library
11847 # dependencies.
11848 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'
11849 ;;
11850 *)
11851 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11852 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11853 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'
11854
11855 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11856 hardcode_libdir_separator_CXX=:
11857
11858 # Commands to make compiler produce verbose output that lists
11859 # what "hidden" libraries, object files and flags are used when
11860 # linking a shared library.
11861 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11862
11863 else
11864 # FIXME: insert proper C++ library support
11865 ld_shlibs_CXX=no
11866 fi
11867 ;;
11868 esac
11869 ;;
11870 osf4* | osf5*)
11871 case $cc_basename in
11872 KCC*)
11873 # Kuck and Associates, Inc. (KAI) C++ Compiler
11874
11875 # KCC will only create a shared library if the output file
11876 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11877 # to its proper name (with version) after linking.
11878 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'
11879
11880 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11881 hardcode_libdir_separator_CXX=:
11882
11883 # Archives containing C++ object files must be created using
11884 # the KAI C++ compiler.
11885 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11886 ;;
11887 RCC*)
11888 # Rational C++ 2.4.1
11889 # FIXME: insert proper C++ library support
11890 ld_shlibs_CXX=no
11891 ;;
11892 cxx*)
11893 allow_undefined_flag_CXX=' -expect_unresolved \*'
11894 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'
11895 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11896 echo "-hidden">> $lib.exp~
11897 $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~
11898 $rm $lib.exp'
11899
11900 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11901 hardcode_libdir_separator_CXX=:
11902
11903 # Commands to make compiler produce verbose output that lists
11904 # what "hidden" libraries, object files and flags are used when
11905 # linking a shared library.
11906 #
11907 # There doesn't appear to be a way to prevent this compiler from
11908 # explicitly linking system object files so we need to strip them
11909 # from the output so that they don't get included in the library
11910 # dependencies.
11911 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'
11912 ;;
11913 *)
11914 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11915 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11916 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'
11917
11918 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11919 hardcode_libdir_separator_CXX=:
11920
11921 # Commands to make compiler produce verbose output that lists
11922 # what "hidden" libraries, object files and flags are used when
11923 # linking a shared library.
11924 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11925
11926 else
11927 # FIXME: insert proper C++ library support
11928 ld_shlibs_CXX=no
11929 fi
11930 ;;
11931 esac
11932 ;;
11933 psos*)
11934 # FIXME: insert proper C++ library support
11935 ld_shlibs_CXX=no
11936 ;;
11937 sunos4*)
11938 case $cc_basename in
11939 CC*)
11940 # Sun C++ 4.x
11941 # FIXME: insert proper C++ library support
11942 ld_shlibs_CXX=no
11943 ;;
11944 lcc*)
11945 # Lucid
11946 # FIXME: insert proper C++ library support
11947 ld_shlibs_CXX=no
11948 ;;
11949 *)
11950 # FIXME: insert proper C++ library support
11951 ld_shlibs_CXX=no
11952 ;;
11953 esac
11954 ;;
11955 solaris*)
11956 case $cc_basename in
11957 CC*)
11958 # Sun C++ 4.2, 5.x and Centerline C++
11959 archive_cmds_need_lc_CXX=yes
11960 no_undefined_flag_CXX=' -zdefs'
11961 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11962 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11963 $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'
11964
11965 hardcode_libdir_flag_spec_CXX='-R$libdir'
11966 hardcode_shlibpath_var_CXX=no
11967 case $host_os in
11968 solaris2.[0-5] | solaris2.[0-5].*) ;;
11969 *)
11970 # The compiler driver will combine and reorder linker options,
11971 # but understands `-z linker_flag'.
11972 # Supported since Solaris 2.6 (maybe 2.5.1?)
11973 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11974 ;;
11975 esac
11976 link_all_deplibs_CXX=yes
11977
11978 output_verbose_link_cmd='echo'
11979
11980 # Archives containing C++ object files must be created using
11981 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11982 # necessary to make sure instantiated templates are included
11983 # in the archive.
11984 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11985 ;;
11986 gcx*)
11987 # Green Hills C++ Compiler
11988 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11989
11990 # The C++ compiler must be used to create the archive.
11991 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11992 ;;
11993 *)
11994 # GNU C++ compiler with Solaris linker
11995 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11996 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11997 if $CC --version | grep -v '^2\.7' > /dev/null; then
11998 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11999 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12000 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12001
12002 # Commands to make compiler produce verbose output that lists
12003 # what "hidden" libraries, object files and flags are used when
12004 # linking a shared library.
12005 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12006 else
12007 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12008 # platform.
12009 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12010 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12011 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12012
12013 # Commands to make compiler produce verbose output that lists
12014 # what "hidden" libraries, object files and flags are used when
12015 # linking a shared library.
12016 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12017 fi
12018
12019 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12020 case $host_os in
12021 solaris2.[0-5] | solaris2.[0-5].*) ;;
12022 *)
12023 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12024 ;;
12025 esac
12026 fi
12027 ;;
12028 esac
12029 ;;
12030 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12031 no_undefined_flag_CXX='${wl}-z,text'
12032 archive_cmds_need_lc_CXX=no
12033 hardcode_shlibpath_var_CXX=no
12034 runpath_var='LD_RUN_PATH'
12035
12036 case $cc_basename in
12037 CC*)
12038 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12039 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12040 ;;
12041 *)
12042 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12043 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12044 ;;
12045 esac
12046 ;;
12047 sysv5* | sco3.2v5* | sco5v6*)
12048 # Note: We can NOT use -z defs as we might desire, because we do not
12049 # link with -lc, and that would cause any symbols used from libc to
12050 # always be unresolved, which means just about no library would
12051 # ever link correctly. If we're not using GNU ld we use -z text
12052 # though, which does catch some bad symbols but isn't as heavy-handed
12053 # as -z defs.
12054 # For security reasons, it is highly recommended that you always
12055 # use absolute paths for naming shared libraries, and exclude the
12056 # DT_RUNPATH tag from executables and libraries. But doing so
12057 # requires that you compile everything twice, which is a pain.
12058 # So that behaviour is only enabled if SCOABSPATH is set to a
12059 # non-empty value in the environment. Most likely only useful for
12060 # creating official distributions of packages.
12061 # This is a hack until libtool officially supports absolute path
12062 # names for shared libraries.
12063 no_undefined_flag_CXX='${wl}-z,text'
12064 allow_undefined_flag_CXX='${wl}-z,nodefs'
12065 archive_cmds_need_lc_CXX=no
12066 hardcode_shlibpath_var_CXX=no
12067 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12068 hardcode_libdir_separator_CXX=':'
12069 link_all_deplibs_CXX=yes
12070 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12071 runpath_var='LD_RUN_PATH'
12072
12073 case $cc_basename in
12074 CC*)
12075 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12076 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12077 ;;
12078 *)
12079 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12080 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12081 ;;
12082 esac
12083 ;;
12084 tandem*)
12085 case $cc_basename in
12086 NCC*)
12087 # NonStop-UX NCC 3.20
12088 # FIXME: insert proper C++ library support
12089 ld_shlibs_CXX=no
12090 ;;
12091 *)
12092 # FIXME: insert proper C++ library support
12093 ld_shlibs_CXX=no
12094 ;;
12095 esac
12096 ;;
12097 vxworks*)
12098 # FIXME: insert proper C++ library support
12099 ld_shlibs_CXX=no
12100 ;;
12101 *)
12102 # FIXME: insert proper C++ library support
12103 ld_shlibs_CXX=no
12104 ;;
12105 esac
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12107 $as_echo "$ld_shlibs_CXX" >&6; }
12108 test "$ld_shlibs_CXX" = no && can_build_shared=no
12109
12110 GCC_CXX="$GXX"
12111 LD_CXX="$LD"
12112
12113 cat > conftest.$ac_ext <<EOF
12114 class Foo
12115 {
12116 public:
12117 Foo (void) { a = 0; }
12118 private:
12119 int a;
12120 };
12121 EOF
12122
12123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12124 (eval $ac_compile) 2>&5
12125 ac_status=$?
12126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12127 test $ac_status = 0; }; then
12128 # Parse the compiler output and extract the necessary
12129 # objects, libraries and library flags.
12130
12131 # Sentinel used to keep track of whether or not we are before
12132 # the conftest object file.
12133 pre_test_object_deps_done=no
12134
12135 # The `*' in the case matches for architectures that use `case' in
12136 # $output_verbose_cmd can trigger glob expansion during the loop
12137 # eval without this substitution.
12138 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12139
12140 for p in `eval $output_verbose_link_cmd`; do
12141 case $p in
12142
12143 -L* | -R* | -l*)
12144 # Some compilers place space between "-{L,R}" and the path.
12145 # Remove the space.
12146 if test $p = "-L" \
12147 || test $p = "-R"; then
12148 prev=$p
12149 continue
12150 else
12151 prev=
12152 fi
12153
12154 if test "$pre_test_object_deps_done" = no; then
12155 case $p in
12156 -L* | -R*)
12157 # Internal compiler library paths should come after those
12158 # provided the user. The postdeps already come after the
12159 # user supplied libs so there is no need to process them.
12160 if test -z "$compiler_lib_search_path_CXX"; then
12161 compiler_lib_search_path_CXX="${prev}${p}"
12162 else
12163 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12164 fi
12165 ;;
12166 # The "-l" case would never come before the object being
12167 # linked, so don't bother handling this case.
12168 esac
12169 else
12170 if test -z "$postdeps_CXX"; then
12171 postdeps_CXX="${prev}${p}"
12172 else
12173 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12174 fi
12175 fi
12176 ;;
12177
12178 *.$objext)
12179 # This assumes that the test object file only shows up
12180 # once in the compiler output.
12181 if test "$p" = "conftest.$objext"; then
12182 pre_test_object_deps_done=yes
12183 continue
12184 fi
12185
12186 if test "$pre_test_object_deps_done" = no; then
12187 if test -z "$predep_objects_CXX"; then
12188 predep_objects_CXX="$p"
12189 else
12190 predep_objects_CXX="$predep_objects_CXX $p"
12191 fi
12192 else
12193 if test -z "$postdep_objects_CXX"; then
12194 postdep_objects_CXX="$p"
12195 else
12196 postdep_objects_CXX="$postdep_objects_CXX $p"
12197 fi
12198 fi
12199 ;;
12200
12201 *) ;; # Ignore the rest.
12202
12203 esac
12204 done
12205
12206 # Clean up.
12207 rm -f a.out a.exe
12208 else
12209 echo "libtool.m4: error: problem compiling CXX test program"
12210 fi
12211
12212 $rm -f confest.$objext
12213
12214 compiler_lib_search_dirs_CXX=
12215 if test -n "$compiler_lib_search_path_CXX"; then
12216 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12217 fi
12218
12219 # PORTME: override above test on systems where it is broken
12220 case $host_os in
12221 interix[3-9]*)
12222 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12223 # hack all around it, let's just trust "g++" to DTRT.
12224 predep_objects_CXX=
12225 postdep_objects_CXX=
12226 postdeps_CXX=
12227 ;;
12228
12229 linux*)
12230 case `$CC -V 2>&1 | sed 5q` in
12231 *Sun\ C*)
12232 # Sun C++ 5.9
12233 #
12234 # The more standards-conforming stlport4 library is
12235 # incompatible with the Cstd library. Avoid specifying
12236 # it if it's in CXXFLAGS. Ignore libCrun as
12237 # -library=stlport4 depends on it.
12238 case " $CXX $CXXFLAGS " in
12239 *" -library=stlport4 "*)
12240 solaris_use_stlport4=yes
12241 ;;
12242 esac
12243 if test "$solaris_use_stlport4" != yes; then
12244 postdeps_CXX='-library=Cstd -library=Crun'
12245 fi
12246 ;;
12247 esac
12248 ;;
12249
12250 solaris*)
12251 case $cc_basename in
12252 CC*)
12253 # The more standards-conforming stlport4 library is
12254 # incompatible with the Cstd library. Avoid specifying
12255 # it if it's in CXXFLAGS. Ignore libCrun as
12256 # -library=stlport4 depends on it.
12257 case " $CXX $CXXFLAGS " in
12258 *" -library=stlport4 "*)
12259 solaris_use_stlport4=yes
12260 ;;
12261 esac
12262
12263 # Adding this requires a known-good setup of shared libraries for
12264 # Sun compiler versions before 5.6, else PIC objects from an old
12265 # archive will be linked into the output, leading to subtle bugs.
12266 if test "$solaris_use_stlport4" != yes; then
12267 postdeps_CXX='-library=Cstd -library=Crun'
12268 fi
12269 ;;
12270 esac
12271 ;;
12272 esac
12273
12274 case " $postdeps_CXX " in
12275 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12276 esac
12277
12278 lt_prog_compiler_wl_CXX=
12279 lt_prog_compiler_pic_CXX=
12280 lt_prog_compiler_static_CXX=
12281
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12283 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12284
12285 # C++ specific cases for pic, static, wl, etc.
12286 if test "$GXX" = yes; then
12287 lt_prog_compiler_wl_CXX='-Wl,'
12288 lt_prog_compiler_static_CXX='-static'
12289
12290 case $host_os in
12291 aix*)
12292 # All AIX code is PIC.
12293 if test "$host_cpu" = ia64; then
12294 # AIX 5 now supports IA64 processor
12295 lt_prog_compiler_static_CXX='-Bstatic'
12296 fi
12297 ;;
12298 amigaos*)
12299 # FIXME: we need at least 68020 code to build shared libraries, but
12300 # adding the `-m68020' flag to GCC prevents building anything better,
12301 # like `-m68040'.
12302 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12303 ;;
12304 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12305 # PIC is the default for these OSes.
12306 ;;
12307 mingw* | cygwin* | os2* | pw32*)
12308 # This hack is so that the source file can tell whether it is being
12309 # built for inclusion in a dll (and should export symbols for example).
12310 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12311 # (--disable-auto-import) libraries
12312 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12313 ;;
12314 darwin* | rhapsody*)
12315 # PIC is the default on this platform
12316 # Common symbols not allowed in MH_DYLIB files
12317 lt_prog_compiler_pic_CXX='-fno-common'
12318 ;;
12319 *djgpp*)
12320 # DJGPP does not support shared libraries at all
12321 lt_prog_compiler_pic_CXX=
12322 ;;
12323 interix[3-9]*)
12324 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12325 # Instead, we relocate shared libraries at runtime.
12326 ;;
12327 sysv4*MP*)
12328 if test -d /usr/nec; then
12329 lt_prog_compiler_pic_CXX=-Kconform_pic
12330 fi
12331 ;;
12332 hpux*)
12333 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12334 # not for PA HP-UX.
12335 case $host_cpu in
12336 hppa*64*|ia64*)
12337 ;;
12338 *)
12339 lt_prog_compiler_pic_CXX='-fPIC'
12340 ;;
12341 esac
12342 ;;
12343 *)
12344 lt_prog_compiler_pic_CXX='-fPIC'
12345 ;;
12346 esac
12347 else
12348 case $host_os in
12349 aix[4-9]*)
12350 # All AIX code is PIC.
12351 if test "$host_cpu" = ia64; then
12352 # AIX 5 now supports IA64 processor
12353 lt_prog_compiler_static_CXX='-Bstatic'
12354 else
12355 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12356 fi
12357 ;;
12358 chorus*)
12359 case $cc_basename in
12360 cxch68*)
12361 # Green Hills C++ Compiler
12362 # _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"
12363 ;;
12364 esac
12365 ;;
12366 darwin*)
12367 # PIC is the default on this platform
12368 # Common symbols not allowed in MH_DYLIB files
12369 case $cc_basename in
12370 xlc*)
12371 lt_prog_compiler_pic_CXX='-qnocommon'
12372 lt_prog_compiler_wl_CXX='-Wl,'
12373 ;;
12374 esac
12375 ;;
12376 dgux*)
12377 case $cc_basename in
12378 ec++*)
12379 lt_prog_compiler_pic_CXX='-KPIC'
12380 ;;
12381 ghcx*)
12382 # Green Hills C++ Compiler
12383 lt_prog_compiler_pic_CXX='-pic'
12384 ;;
12385 *)
12386 ;;
12387 esac
12388 ;;
12389 freebsd* | dragonfly*)
12390 # FreeBSD uses GNU C++
12391 ;;
12392 hpux9* | hpux10* | hpux11*)
12393 case $cc_basename in
12394 CC*)
12395 lt_prog_compiler_wl_CXX='-Wl,'
12396 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12397 if test "$host_cpu" != ia64; then
12398 lt_prog_compiler_pic_CXX='+Z'
12399 fi
12400 ;;
12401 aCC*)
12402 lt_prog_compiler_wl_CXX='-Wl,'
12403 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12404 case $host_cpu in
12405 hppa*64*|ia64*)
12406 # +Z the default
12407 ;;
12408 *)
12409 lt_prog_compiler_pic_CXX='+Z'
12410 ;;
12411 esac
12412 ;;
12413 *)
12414 ;;
12415 esac
12416 ;;
12417 interix*)
12418 # This is c89, which is MS Visual C++ (no shared libs)
12419 # Anyone wants to do a port?
12420 ;;
12421 irix5* | irix6* | nonstopux*)
12422 case $cc_basename in
12423 CC*)
12424 lt_prog_compiler_wl_CXX='-Wl,'
12425 lt_prog_compiler_static_CXX='-non_shared'
12426 # CC pic flag -KPIC is the default.
12427 ;;
12428 *)
12429 ;;
12430 esac
12431 ;;
12432 linux* | k*bsd*-gnu)
12433 case $cc_basename in
12434 KCC*)
12435 # KAI C++ Compiler
12436 lt_prog_compiler_wl_CXX='--backend -Wl,'
12437 lt_prog_compiler_pic_CXX='-fPIC'
12438 ;;
12439 icpc* | ecpc*)
12440 # Intel C++
12441 lt_prog_compiler_wl_CXX='-Wl,'
12442 lt_prog_compiler_pic_CXX='-KPIC'
12443 lt_prog_compiler_static_CXX='-static'
12444 ;;
12445 pgCC* | pgcpp*)
12446 # Portland Group C++ compiler.
12447 lt_prog_compiler_wl_CXX='-Wl,'
12448 lt_prog_compiler_pic_CXX='-fpic'
12449 lt_prog_compiler_static_CXX='-Bstatic'
12450 ;;
12451 cxx*)
12452 # Compaq C++
12453 # Make sure the PIC flag is empty. It appears that all Alpha
12454 # Linux and Compaq Tru64 Unix objects are PIC.
12455 lt_prog_compiler_pic_CXX=
12456 lt_prog_compiler_static_CXX='-non_shared'
12457 ;;
12458 *)
12459 case `$CC -V 2>&1 | sed 5q` in
12460 *Sun\ C*)
12461 # Sun C++ 5.9
12462 lt_prog_compiler_pic_CXX='-KPIC'
12463 lt_prog_compiler_static_CXX='-Bstatic'
12464 lt_prog_compiler_wl_CXX='-Qoption ld '
12465 ;;
12466 esac
12467 ;;
12468 esac
12469 ;;
12470 lynxos*)
12471 ;;
12472 m88k*)
12473 ;;
12474 mvs*)
12475 case $cc_basename in
12476 cxx*)
12477 lt_prog_compiler_pic_CXX='-W c,exportall'
12478 ;;
12479 *)
12480 ;;
12481 esac
12482 ;;
12483 netbsd*)
12484 ;;
12485 osf3* | osf4* | osf5*)
12486 case $cc_basename in
12487 KCC*)
12488 lt_prog_compiler_wl_CXX='--backend -Wl,'
12489 ;;
12490 RCC*)
12491 # Rational C++ 2.4.1
12492 lt_prog_compiler_pic_CXX='-pic'
12493 ;;
12494 cxx*)
12495 # Digital/Compaq C++
12496 lt_prog_compiler_wl_CXX='-Wl,'
12497 # Make sure the PIC flag is empty. It appears that all Alpha
12498 # Linux and Compaq Tru64 Unix objects are PIC.
12499 lt_prog_compiler_pic_CXX=
12500 lt_prog_compiler_static_CXX='-non_shared'
12501 ;;
12502 *)
12503 ;;
12504 esac
12505 ;;
12506 psos*)
12507 ;;
12508 solaris*)
12509 case $cc_basename in
12510 CC*)
12511 # Sun C++ 4.2, 5.x and Centerline C++
12512 lt_prog_compiler_pic_CXX='-KPIC'
12513 lt_prog_compiler_static_CXX='-Bstatic'
12514 lt_prog_compiler_wl_CXX='-Qoption ld '
12515 ;;
12516 gcx*)
12517 # Green Hills C++ Compiler
12518 lt_prog_compiler_pic_CXX='-PIC'
12519 ;;
12520 *)
12521 ;;
12522 esac
12523 ;;
12524 sunos4*)
12525 case $cc_basename in
12526 CC*)
12527 # Sun C++ 4.x
12528 lt_prog_compiler_pic_CXX='-pic'
12529 lt_prog_compiler_static_CXX='-Bstatic'
12530 ;;
12531 lcc*)
12532 # Lucid
12533 lt_prog_compiler_pic_CXX='-pic'
12534 ;;
12535 *)
12536 ;;
12537 esac
12538 ;;
12539 tandem*)
12540 case $cc_basename in
12541 NCC*)
12542 # NonStop-UX NCC 3.20
12543 lt_prog_compiler_pic_CXX='-KPIC'
12544 ;;
12545 *)
12546 ;;
12547 esac
12548 ;;
12549 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12550 case $cc_basename in
12551 CC*)
12552 lt_prog_compiler_wl_CXX='-Wl,'
12553 lt_prog_compiler_pic_CXX='-KPIC'
12554 lt_prog_compiler_static_CXX='-Bstatic'
12555 ;;
12556 esac
12557 ;;
12558 vxworks*)
12559 ;;
12560 *)
12561 lt_prog_compiler_can_build_shared_CXX=no
12562 ;;
12563 esac
12564 fi
12565
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12567 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12568
12569 #
12570 # Check to make sure the PIC flag actually works.
12571 #
12572 if test -n "$lt_prog_compiler_pic_CXX"; then
12573
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12575 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12576 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
12577 $as_echo_n "(cached) " >&6
12578 else
12579 lt_cv_prog_compiler_pic_works_CXX=no
12580 ac_outfile=conftest.$ac_objext
12581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12582 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12583 # Insert the option either (1) after the last *FLAGS variable, or
12584 # (2) before a word containing "conftest.", or (3) at the end.
12585 # Note that $ac_compile itself does not contain backslashes and begins
12586 # with a dollar sign (not a hyphen), so the echo should work correctly.
12587 # The option is referenced via a variable to avoid confusing sed.
12588 lt_compile=`echo "$ac_compile" | $SED \
12589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12591 -e 's:$: $lt_compiler_flag:'`
12592 (eval echo "\"\$as_me:12592: $lt_compile\"" >&5)
12593 (eval "$lt_compile" 2>conftest.err)
12594 ac_status=$?
12595 cat conftest.err >&5
12596 echo "$as_me:12596: \$? = $ac_status" >&5
12597 if (exit $ac_status) && test -s "$ac_outfile"; then
12598 # The compiler can only warn and ignore the option if not recognized
12599 # So say no if there are warnings other than the usual output.
12600 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12601 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12602 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12603 lt_cv_prog_compiler_pic_works_CXX=yes
12604 fi
12605 fi
12606 $rm conftest*
12607
12608 fi
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12610 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12611
12612 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12613 case $lt_prog_compiler_pic_CXX in
12614 "" | " "*) ;;
12615 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12616 esac
12617 else
12618 lt_prog_compiler_pic_CXX=
12619 lt_prog_compiler_can_build_shared_CXX=no
12620 fi
12621
12622 fi
12623 case $host_os in
12624 # For platforms which do not support PIC, -DPIC is meaningless:
12625 *djgpp*)
12626 lt_prog_compiler_pic_CXX=
12627 ;;
12628 *)
12629 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12630 ;;
12631 esac
12632
12633 #
12634 # Check to make sure the static flag actually works.
12635 #
12636 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12638 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12639 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
12640 $as_echo_n "(cached) " >&6
12641 else
12642 lt_cv_prog_compiler_static_works_CXX=no
12643 save_LDFLAGS="$LDFLAGS"
12644 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12645 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12646 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12647 # The linker can only warn and ignore the option if not recognized
12648 # So say no if there are warnings
12649 if test -s conftest.err; then
12650 # Append any errors to the config.log.
12651 cat conftest.err 1>&5
12652 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12654 if diff conftest.exp conftest.er2 >/dev/null; then
12655 lt_cv_prog_compiler_static_works_CXX=yes
12656 fi
12657 else
12658 lt_cv_prog_compiler_static_works_CXX=yes
12659 fi
12660 fi
12661 $rm -r conftest*
12662 LDFLAGS="$save_LDFLAGS"
12663
12664 fi
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12666 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12667
12668 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12669 :
12670 else
12671 lt_prog_compiler_static_CXX=
12672 fi
12673
12674
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12676 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12677 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12678 $as_echo_n "(cached) " >&6
12679 else
12680 lt_cv_prog_compiler_c_o_CXX=no
12681 $rm -r conftest 2>/dev/null
12682 mkdir conftest
12683 cd conftest
12684 mkdir out
12685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12686
12687 lt_compiler_flag="-o out/conftest2.$ac_objext"
12688 # Insert the option either (1) after the last *FLAGS variable, or
12689 # (2) before a word containing "conftest.", or (3) at the end.
12690 # Note that $ac_compile itself does not contain backslashes and begins
12691 # with a dollar sign (not a hyphen), so the echo should work correctly.
12692 lt_compile=`echo "$ac_compile" | $SED \
12693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12695 -e 's:$: $lt_compiler_flag:'`
12696 (eval echo "\"\$as_me:12696: $lt_compile\"" >&5)
12697 (eval "$lt_compile" 2>out/conftest.err)
12698 ac_status=$?
12699 cat out/conftest.err >&5
12700 echo "$as_me:12700: \$? = $ac_status" >&5
12701 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12702 then
12703 # The compiler can only warn and ignore the option if not recognized
12704 # So say no if there are warnings
12705 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12706 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12707 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12708 lt_cv_prog_compiler_c_o_CXX=yes
12709 fi
12710 fi
12711 chmod u+w . 2>&5
12712 $rm conftest*
12713 # SGI C++ compiler will create directory out/ii_files/ for
12714 # template instantiation
12715 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12716 $rm out/* && rmdir out
12717 cd ..
12718 rmdir conftest
12719 $rm conftest*
12720
12721 fi
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12723 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12724
12725
12726 hard_links="nottested"
12727 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12728 # do not overwrite the value of need_locks provided by the user
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12730 $as_echo_n "checking if we can lock with hard links... " >&6; }
12731 hard_links=yes
12732 $rm conftest*
12733 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12734 touch conftest.a
12735 ln conftest.a conftest.b 2>&5 || hard_links=no
12736 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12738 $as_echo "$hard_links" >&6; }
12739 if test "$hard_links" = no; then
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12741 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12742 need_locks=warn
12743 fi
12744 else
12745 need_locks=no
12746 fi
12747
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12749 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12750
12751 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12752 case $host_os in
12753 aix[4-9]*)
12754 # If we're using GNU nm, then we don't want the "-C" option.
12755 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12756 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12757 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'
12758 else
12759 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'
12760 fi
12761 ;;
12762 pw32*)
12763 export_symbols_cmds_CXX="$ltdll_cmds"
12764 ;;
12765 cygwin* | mingw*)
12766 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'
12767 ;;
12768 *)
12769 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12770 ;;
12771 esac
12772 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12773
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12775 $as_echo "$ld_shlibs_CXX" >&6; }
12776 test "$ld_shlibs_CXX" = no && can_build_shared=no
12777
12778 #
12779 # Do we need to explicitly link libc?
12780 #
12781 case "x$archive_cmds_need_lc_CXX" in
12782 x|xyes)
12783 # Assume -lc should be added
12784 archive_cmds_need_lc_CXX=yes
12785
12786 if test "$enable_shared" = yes && test "$GCC" = yes; then
12787 case $archive_cmds_CXX in
12788 *'~'*)
12789 # FIXME: we may have to deal with multi-command sequences.
12790 ;;
12791 '$CC '*)
12792 # Test whether the compiler implicitly links with -lc since on some
12793 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12794 # to ld, don't add -lc before -lgcc.
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12796 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12797 $rm conftest*
12798 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12799
12800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12801 (eval $ac_compile) 2>&5
12802 ac_status=$?
12803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12804 test $ac_status = 0; } 2>conftest.err; then
12805 soname=conftest
12806 lib=conftest
12807 libobjs=conftest.$ac_objext
12808 deplibs=
12809 wl=$lt_prog_compiler_wl_CXX
12810 pic_flag=$lt_prog_compiler_pic_CXX
12811 compiler_flags=-v
12812 linker_flags=-v
12813 verstring=
12814 output_objdir=.
12815 libname=conftest
12816 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12817 allow_undefined_flag_CXX=
12818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12819 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12820 ac_status=$?
12821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12822 test $ac_status = 0; }
12823 then
12824 archive_cmds_need_lc_CXX=no
12825 else
12826 archive_cmds_need_lc_CXX=yes
12827 fi
12828 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12829 else
12830 cat conftest.err 1>&5
12831 fi
12832 $rm conftest*
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12834 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12835 ;;
12836 esac
12837 fi
12838 ;;
12839 esac
12840
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12842 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12843 library_names_spec=
12844 libname_spec='lib$name'
12845 soname_spec=
12846 shrext_cmds=".so"
12847 postinstall_cmds=
12848 postuninstall_cmds=
12849 finish_cmds=
12850 finish_eval=
12851 shlibpath_var=
12852 shlibpath_overrides_runpath=unknown
12853 version_type=none
12854 dynamic_linker="$host_os ld.so"
12855 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12856
12857 need_lib_prefix=unknown
12858 hardcode_into_libs=no
12859
12860 # when you set need_version to no, make sure it does not cause -set_version
12861 # flags to be left without arguments
12862 need_version=unknown
12863
12864 case $host_os in
12865 aix3*)
12866 version_type=linux
12867 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12868 shlibpath_var=LIBPATH
12869
12870 # AIX 3 has no versioning support, so we append a major version to the name.
12871 soname_spec='${libname}${release}${shared_ext}$major'
12872 ;;
12873
12874 aix[4-9]*)
12875 version_type=linux
12876 need_lib_prefix=no
12877 need_version=no
12878 hardcode_into_libs=yes
12879 if test "$host_cpu" = ia64; then
12880 # AIX 5 supports IA64
12881 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12882 shlibpath_var=LD_LIBRARY_PATH
12883 else
12884 # With GCC up to 2.95.x, collect2 would create an import file
12885 # for dependence libraries. The import file would start with
12886 # the line `#! .'. This would cause the generated library to
12887 # depend on `.', always an invalid library. This was fixed in
12888 # development snapshots of GCC prior to 3.0.
12889 case $host_os in
12890 aix4 | aix4.[01] | aix4.[01].*)
12891 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12892 echo ' yes '
12893 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12894 :
12895 else
12896 can_build_shared=no
12897 fi
12898 ;;
12899 esac
12900 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12901 # soname into executable. Probably we can add versioning support to
12902 # collect2, so additional links can be useful in future.
12903 if test "$aix_use_runtimelinking" = yes; then
12904 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12905 # instead of lib<name>.a to let people know that these are not
12906 # typical AIX shared libraries.
12907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12908 else
12909 # We preserve .a as extension for shared libraries through AIX4.2
12910 # and later when we are not doing run time linking.
12911 library_names_spec='${libname}${release}.a $libname.a'
12912 soname_spec='${libname}${release}${shared_ext}$major'
12913 fi
12914 shlibpath_var=LIBPATH
12915 fi
12916 ;;
12917
12918 amigaos*)
12919 library_names_spec='$libname.ixlibrary $libname.a'
12920 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12921 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'
12922 ;;
12923
12924 beos*)
12925 library_names_spec='${libname}${shared_ext}'
12926 dynamic_linker="$host_os ld.so"
12927 shlibpath_var=LIBRARY_PATH
12928 ;;
12929
12930 bsdi[45]*)
12931 version_type=linux
12932 need_version=no
12933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12934 soname_spec='${libname}${release}${shared_ext}$major'
12935 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12936 shlibpath_var=LD_LIBRARY_PATH
12937 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12938 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12939 # the default ld.so.conf also contains /usr/contrib/lib and
12940 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12941 # libtool to hard-code these into programs
12942 ;;
12943
12944 cygwin* | mingw* | pw32*)
12945 version_type=windows
12946 shrext_cmds=".dll"
12947 need_version=no
12948 need_lib_prefix=no
12949
12950 case $GCC,$host_os in
12951 yes,cygwin* | yes,mingw* | yes,pw32*)
12952 library_names_spec='$libname.dll.a'
12953 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12954 postinstall_cmds='base_file=`basename \${file}`~
12955 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12956 dldir=$destdir/`dirname \$dlpath`~
12957 test -d \$dldir || mkdir -p \$dldir~
12958 $install_prog $dir/$dlname \$dldir/$dlname~
12959 chmod a+x \$dldir/$dlname'
12960 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12961 dlpath=$dir/\$dldll~
12962 $rm \$dlpath'
12963 shlibpath_overrides_runpath=yes
12964
12965 case $host_os in
12966 cygwin*)
12967 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12968 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12969 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12970 ;;
12971 mingw*)
12972 # MinGW DLLs use traditional 'lib' prefix
12973 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12974 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12975 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12976 # It is most probably a Windows format PATH printed by
12977 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12978 # path with ; separators, and with drive letters. We can handle the
12979 # drive letters (cygwin fileutils understands them), so leave them,
12980 # especially as we might pass files found there to a mingw objdump,
12981 # which wouldn't understand a cygwinified path. Ahh.
12982 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12983 else
12984 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12985 fi
12986 ;;
12987 pw32*)
12988 # pw32 DLLs use 'pw' prefix rather than 'lib'
12989 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12990 ;;
12991 esac
12992 ;;
12993
12994 *)
12995 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12996 ;;
12997 esac
12998 dynamic_linker='Win32 ld.exe'
12999 # FIXME: first we should search . and the directory the executable is in
13000 shlibpath_var=PATH
13001 ;;
13002
13003 darwin* | rhapsody*)
13004 dynamic_linker="$host_os dyld"
13005 version_type=darwin
13006 need_lib_prefix=no
13007 need_version=no
13008 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13009 soname_spec='${libname}${release}${major}$shared_ext'
13010 shlibpath_overrides_runpath=yes
13011 shlibpath_var=DYLD_LIBRARY_PATH
13012 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13013
13014 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13015 ;;
13016
13017 dgux*)
13018 version_type=linux
13019 need_lib_prefix=no
13020 need_version=no
13021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13022 soname_spec='${libname}${release}${shared_ext}$major'
13023 shlibpath_var=LD_LIBRARY_PATH
13024 ;;
13025
13026 freebsd1*)
13027 dynamic_linker=no
13028 ;;
13029
13030 freebsd* | dragonfly*)
13031 # DragonFly does not have aout. When/if they implement a new
13032 # versioning mechanism, adjust this.
13033 if test -x /usr/bin/objformat; then
13034 objformat=`/usr/bin/objformat`
13035 else
13036 case $host_os in
13037 freebsd[123]*) objformat=aout ;;
13038 *) objformat=elf ;;
13039 esac
13040 fi
13041 version_type=freebsd-$objformat
13042 case $version_type in
13043 freebsd-elf*)
13044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13045 need_version=no
13046 need_lib_prefix=no
13047 ;;
13048 freebsd-*)
13049 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13050 need_version=yes
13051 ;;
13052 esac
13053 shlibpath_var=LD_LIBRARY_PATH
13054 case $host_os in
13055 freebsd2*)
13056 shlibpath_overrides_runpath=yes
13057 ;;
13058 freebsd3.[01]* | freebsdelf3.[01]*)
13059 shlibpath_overrides_runpath=yes
13060 hardcode_into_libs=yes
13061 ;;
13062 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13063 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13064 shlibpath_overrides_runpath=no
13065 hardcode_into_libs=yes
13066 ;;
13067 *) # from 4.6 on, and DragonFly
13068 shlibpath_overrides_runpath=yes
13069 hardcode_into_libs=yes
13070 ;;
13071 esac
13072 ;;
13073
13074 gnu*)
13075 version_type=linux
13076 need_lib_prefix=no
13077 need_version=no
13078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13079 soname_spec='${libname}${release}${shared_ext}$major'
13080 shlibpath_var=LD_LIBRARY_PATH
13081 hardcode_into_libs=yes
13082 ;;
13083
13084 hpux9* | hpux10* | hpux11*)
13085 # Give a soname corresponding to the major version so that dld.sl refuses to
13086 # link against other versions.
13087 version_type=sunos
13088 need_lib_prefix=no
13089 need_version=no
13090 case $host_cpu in
13091 ia64*)
13092 shrext_cmds='.so'
13093 hardcode_into_libs=yes
13094 dynamic_linker="$host_os dld.so"
13095 shlibpath_var=LD_LIBRARY_PATH
13096 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13098 soname_spec='${libname}${release}${shared_ext}$major'
13099 if test "X$HPUX_IA64_MODE" = X32; then
13100 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13101 else
13102 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13103 fi
13104 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13105 ;;
13106 hppa*64*)
13107 shrext_cmds='.sl'
13108 hardcode_into_libs=yes
13109 dynamic_linker="$host_os dld.sl"
13110 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13111 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13113 soname_spec='${libname}${release}${shared_ext}$major'
13114 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13116 ;;
13117 *)
13118 shrext_cmds='.sl'
13119 dynamic_linker="$host_os dld.sl"
13120 shlibpath_var=SHLIB_PATH
13121 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13123 soname_spec='${libname}${release}${shared_ext}$major'
13124 ;;
13125 esac
13126 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13127 postinstall_cmds='chmod 555 $lib'
13128 ;;
13129
13130 interix[3-9]*)
13131 version_type=linux
13132 need_lib_prefix=no
13133 need_version=no
13134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13135 soname_spec='${libname}${release}${shared_ext}$major'
13136 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13137 shlibpath_var=LD_LIBRARY_PATH
13138 shlibpath_overrides_runpath=no
13139 hardcode_into_libs=yes
13140 ;;
13141
13142 irix5* | irix6* | nonstopux*)
13143 case $host_os in
13144 nonstopux*) version_type=nonstopux ;;
13145 *)
13146 if test "$lt_cv_prog_gnu_ld" = yes; then
13147 version_type=linux
13148 else
13149 version_type=irix
13150 fi ;;
13151 esac
13152 need_lib_prefix=no
13153 need_version=no
13154 soname_spec='${libname}${release}${shared_ext}$major'
13155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13156 case $host_os in
13157 irix5* | nonstopux*)
13158 libsuff= shlibsuff=
13159 ;;
13160 *)
13161 case $LD in # libtool.m4 will add one of these switches to LD
13162 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13163 libsuff= shlibsuff= libmagic=32-bit;;
13164 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13165 libsuff=32 shlibsuff=N32 libmagic=N32;;
13166 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13167 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13168 *) libsuff= shlibsuff= libmagic=never-match;;
13169 esac
13170 ;;
13171 esac
13172 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13173 shlibpath_overrides_runpath=no
13174 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13175 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13176 hardcode_into_libs=yes
13177 ;;
13178
13179 # No shared lib support for Linux oldld, aout, or coff.
13180 linux*oldld* | linux*aout* | linux*coff*)
13181 dynamic_linker=no
13182 ;;
13183
13184 # This must be Linux ELF.
13185 linux* | k*bsd*-gnu)
13186 version_type=linux
13187 need_lib_prefix=no
13188 need_version=no
13189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13190 soname_spec='${libname}${release}${shared_ext}$major'
13191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13192 shlibpath_var=LD_LIBRARY_PATH
13193 shlibpath_overrides_runpath=no
13194 # This implies no fast_install, which is unacceptable.
13195 # Some rework will be needed to allow for fast_install
13196 # before this can be enabled.
13197 hardcode_into_libs=yes
13198
13199 # Append ld.so.conf contents to the search path
13200 if test -f /etc/ld.so.conf; then
13201 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' ' '`
13202 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13203 fi
13204
13205 # We used to test for /lib/ld.so.1 and disable shared libraries on
13206 # powerpc, because MkLinux only supported shared libraries with the
13207 # GNU dynamic linker. Since this was broken with cross compilers,
13208 # most powerpc-linux boxes support dynamic linking these days and
13209 # people can always --disable-shared, the test was removed, and we
13210 # assume the GNU/Linux dynamic linker is in use.
13211 dynamic_linker='GNU/Linux ld.so'
13212 ;;
13213
13214 netbsd*)
13215 version_type=sunos
13216 need_lib_prefix=no
13217 need_version=no
13218 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13221 dynamic_linker='NetBSD (a.out) ld.so'
13222 else
13223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13224 soname_spec='${libname}${release}${shared_ext}$major'
13225 dynamic_linker='NetBSD ld.elf_so'
13226 fi
13227 shlibpath_var=LD_LIBRARY_PATH
13228 shlibpath_overrides_runpath=yes
13229 hardcode_into_libs=yes
13230 ;;
13231
13232 newsos6)
13233 version_type=linux
13234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13235 shlibpath_var=LD_LIBRARY_PATH
13236 shlibpath_overrides_runpath=yes
13237 ;;
13238
13239 nto-qnx*)
13240 version_type=linux
13241 need_lib_prefix=no
13242 need_version=no
13243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13244 soname_spec='${libname}${release}${shared_ext}$major'
13245 shlibpath_var=LD_LIBRARY_PATH
13246 shlibpath_overrides_runpath=yes
13247 ;;
13248
13249 openbsd*)
13250 version_type=sunos
13251 sys_lib_dlsearch_path_spec="/usr/lib"
13252 need_lib_prefix=no
13253 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13254 case $host_os in
13255 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13256 *) need_version=no ;;
13257 esac
13258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13259 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13260 shlibpath_var=LD_LIBRARY_PATH
13261 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13262 case $host_os in
13263 openbsd2.[89] | openbsd2.[89].*)
13264 shlibpath_overrides_runpath=no
13265 ;;
13266 *)
13267 shlibpath_overrides_runpath=yes
13268 ;;
13269 esac
13270 else
13271 shlibpath_overrides_runpath=yes
13272 fi
13273 ;;
13274
13275 os2*)
13276 libname_spec='$name'
13277 shrext_cmds=".dll"
13278 need_lib_prefix=no
13279 library_names_spec='$libname${shared_ext} $libname.a'
13280 dynamic_linker='OS/2 ld.exe'
13281 shlibpath_var=LIBPATH
13282 ;;
13283
13284 osf3* | osf4* | osf5*)
13285 version_type=osf
13286 need_lib_prefix=no
13287 need_version=no
13288 soname_spec='${libname}${release}${shared_ext}$major'
13289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13290 shlibpath_var=LD_LIBRARY_PATH
13291 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13292 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13293 ;;
13294
13295 rdos*)
13296 dynamic_linker=no
13297 ;;
13298
13299 solaris*)
13300 version_type=linux
13301 need_lib_prefix=no
13302 need_version=no
13303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13304 soname_spec='${libname}${release}${shared_ext}$major'
13305 shlibpath_var=LD_LIBRARY_PATH
13306 shlibpath_overrides_runpath=yes
13307 hardcode_into_libs=yes
13308 # ldd complains unless libraries are executable
13309 postinstall_cmds='chmod +x $lib'
13310 ;;
13311
13312 sunos4*)
13313 version_type=sunos
13314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13315 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13316 shlibpath_var=LD_LIBRARY_PATH
13317 shlibpath_overrides_runpath=yes
13318 if test "$with_gnu_ld" = yes; then
13319 need_lib_prefix=no
13320 fi
13321 need_version=yes
13322 ;;
13323
13324 sysv4 | sysv4.3*)
13325 version_type=linux
13326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13327 soname_spec='${libname}${release}${shared_ext}$major'
13328 shlibpath_var=LD_LIBRARY_PATH
13329 case $host_vendor in
13330 sni)
13331 shlibpath_overrides_runpath=no
13332 need_lib_prefix=no
13333 export_dynamic_flag_spec='${wl}-Blargedynsym'
13334 runpath_var=LD_RUN_PATH
13335 ;;
13336 siemens)
13337 need_lib_prefix=no
13338 ;;
13339 motorola)
13340 need_lib_prefix=no
13341 need_version=no
13342 shlibpath_overrides_runpath=no
13343 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13344 ;;
13345 esac
13346 ;;
13347
13348 sysv4*MP*)
13349 if test -d /usr/nec ;then
13350 version_type=linux
13351 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13352 soname_spec='$libname${shared_ext}.$major'
13353 shlibpath_var=LD_LIBRARY_PATH
13354 fi
13355 ;;
13356
13357 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13358 version_type=freebsd-elf
13359 need_lib_prefix=no
13360 need_version=no
13361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13362 soname_spec='${libname}${release}${shared_ext}$major'
13363 shlibpath_var=LD_LIBRARY_PATH
13364 hardcode_into_libs=yes
13365 if test "$with_gnu_ld" = yes; then
13366 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13367 shlibpath_overrides_runpath=no
13368 else
13369 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13370 shlibpath_overrides_runpath=yes
13371 case $host_os in
13372 sco3.2v5*)
13373 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13374 ;;
13375 esac
13376 fi
13377 sys_lib_dlsearch_path_spec='/usr/lib'
13378 ;;
13379
13380 uts4*)
13381 version_type=linux
13382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13383 soname_spec='${libname}${release}${shared_ext}$major'
13384 shlibpath_var=LD_LIBRARY_PATH
13385 ;;
13386
13387 *)
13388 dynamic_linker=no
13389 ;;
13390 esac
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13392 $as_echo "$dynamic_linker" >&6; }
13393 test "$dynamic_linker" = no && can_build_shared=no
13394
13395 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
13396 $as_echo_n "(cached) " >&6
13397 else
13398 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13399 fi
13400
13401 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13402 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
13403 $as_echo_n "(cached) " >&6
13404 else
13405 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13406 fi
13407
13408 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13409
13410 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13411 if test "$GCC" = yes; then
13412 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13413 fi
13414
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13416 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13417 hardcode_action_CXX=
13418 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13419 test -n "$runpath_var_CXX" || \
13420 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13421
13422 # We can hardcode non-existant directories.
13423 if test "$hardcode_direct_CXX" != no &&
13424 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13425 # have to relink, otherwise we might link with an installed library
13426 # when we should be linking with a yet-to-be-installed one
13427 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13428 test "$hardcode_minus_L_CXX" != no; then
13429 # Linking always hardcodes the temporary library directory.
13430 hardcode_action_CXX=relink
13431 else
13432 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13433 hardcode_action_CXX=immediate
13434 fi
13435 else
13436 # We cannot hardcode anything, or else we can only hardcode existing
13437 # directories.
13438 hardcode_action_CXX=unsupported
13439 fi
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13441 $as_echo "$hardcode_action_CXX" >&6; }
13442
13443 if test "$hardcode_action_CXX" = relink; then
13444 # Fast installation is not supported
13445 enable_fast_install=no
13446 elif test "$shlibpath_overrides_runpath" = yes ||
13447 test "$enable_shared" = no; then
13448 # Fast installation is not necessary
13449 enable_fast_install=needless
13450 fi
13451
13452
13453 # The else clause should only fire when bootstrapping the
13454 # libtool distribution, otherwise you forgot to ship ltmain.sh
13455 # with your package, and you will get complaints that there are
13456 # no rules to generate ltmain.sh.
13457 if test -f "$ltmain"; then
13458 # See if we are running on zsh, and set the options which allow our commands through
13459 # without removal of \ escapes.
13460 if test -n "${ZSH_VERSION+set}" ; then
13461 setopt NO_GLOB_SUBST
13462 fi
13463 # Now quote all the things that may contain metacharacters while being
13464 # careful not to overquote the AC_SUBSTed values. We take copies of the
13465 # variables and quote the copies for generation of the libtool script.
13466 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13467 SED SHELL STRIP \
13468 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13469 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13470 deplibs_check_method reload_flag reload_cmds need_locks \
13471 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13472 lt_cv_sys_global_symbol_to_c_name_address \
13473 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13474 old_postinstall_cmds old_postuninstall_cmds \
13475 compiler_CXX \
13476 CC_CXX \
13477 LD_CXX \
13478 lt_prog_compiler_wl_CXX \
13479 lt_prog_compiler_pic_CXX \
13480 lt_prog_compiler_static_CXX \
13481 lt_prog_compiler_no_builtin_flag_CXX \
13482 export_dynamic_flag_spec_CXX \
13483 thread_safe_flag_spec_CXX \
13484 whole_archive_flag_spec_CXX \
13485 enable_shared_with_static_runtimes_CXX \
13486 old_archive_cmds_CXX \
13487 old_archive_from_new_cmds_CXX \
13488 predep_objects_CXX \
13489 postdep_objects_CXX \
13490 predeps_CXX \
13491 postdeps_CXX \
13492 compiler_lib_search_path_CXX \
13493 compiler_lib_search_dirs_CXX \
13494 archive_cmds_CXX \
13495 archive_expsym_cmds_CXX \
13496 postinstall_cmds_CXX \
13497 postuninstall_cmds_CXX \
13498 old_archive_from_expsyms_cmds_CXX \
13499 allow_undefined_flag_CXX \
13500 no_undefined_flag_CXX \
13501 export_symbols_cmds_CXX \
13502 hardcode_libdir_flag_spec_CXX \
13503 hardcode_libdir_flag_spec_ld_CXX \
13504 hardcode_libdir_separator_CXX \
13505 hardcode_automatic_CXX \
13506 module_cmds_CXX \
13507 module_expsym_cmds_CXX \
13508 lt_cv_prog_compiler_c_o_CXX \
13509 fix_srcfile_path_CXX \
13510 exclude_expsyms_CXX \
13511 include_expsyms_CXX; do
13512
13513 case $var in
13514 old_archive_cmds_CXX | \
13515 old_archive_from_new_cmds_CXX | \
13516 archive_cmds_CXX | \
13517 archive_expsym_cmds_CXX | \
13518 module_cmds_CXX | \
13519 module_expsym_cmds_CXX | \
13520 old_archive_from_expsyms_cmds_CXX | \
13521 export_symbols_cmds_CXX | \
13522 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13523 postinstall_cmds | postuninstall_cmds | \
13524 old_postinstall_cmds | old_postuninstall_cmds | \
13525 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13526 # Double-quote double-evaled strings.
13527 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13528 ;;
13529 *)
13530 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13531 ;;
13532 esac
13533 done
13534
13535 case $lt_echo in
13536 *'\$0 --fallback-echo"')
13537 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13538 ;;
13539 esac
13540
13541 cfgfile="$ofile"
13542
13543 cat <<__EOF__ >> "$cfgfile"
13544 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13545
13546 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13547
13548 # Shell to use when invoking shell scripts.
13549 SHELL=$lt_SHELL
13550
13551 # Whether or not to build shared libraries.
13552 build_libtool_libs=$enable_shared
13553
13554 # Whether or not to build static libraries.
13555 build_old_libs=$enable_static
13556
13557 # Whether or not to add -lc for building shared libraries.
13558 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13559
13560 # Whether or not to disallow shared libs when runtime libs are static
13561 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13562
13563 # Whether or not to optimize for fast installation.
13564 fast_install=$enable_fast_install
13565
13566 # The host system.
13567 host_alias=$host_alias
13568 host=$host
13569 host_os=$host_os
13570
13571 # The build system.
13572 build_alias=$build_alias
13573 build=$build
13574 build_os=$build_os
13575
13576 # An echo program that does not interpret backslashes.
13577 echo=$lt_echo
13578
13579 # The archiver.
13580 AR=$lt_AR
13581 AR_FLAGS=$lt_AR_FLAGS
13582
13583 # A C compiler.
13584 LTCC=$lt_LTCC
13585
13586 # LTCC compiler flags.
13587 LTCFLAGS=$lt_LTCFLAGS
13588
13589 # A language-specific compiler.
13590 CC=$lt_compiler_CXX
13591
13592 # Is the compiler the GNU C compiler?
13593 with_gcc=$GCC_CXX
13594
13595 # An ERE matcher.
13596 EGREP=$lt_EGREP
13597
13598 # The linker used to build libraries.
13599 LD=$lt_LD_CXX
13600
13601 # Whether we need hard or soft links.
13602 LN_S=$lt_LN_S
13603
13604 # A BSD-compatible nm program.
13605 NM=$lt_NM
13606
13607 # A symbol stripping program
13608 STRIP=$lt_STRIP
13609
13610 # Used to examine libraries when file_magic_cmd begins "file"
13611 MAGIC_CMD=$MAGIC_CMD
13612
13613 # Used on cygwin: DLL creation program.
13614 DLLTOOL="$DLLTOOL"
13615
13616 # Used on cygwin: object dumper.
13617 OBJDUMP="$OBJDUMP"
13618
13619 # Used on cygwin: assembler.
13620 AS="$AS"
13621
13622 # The name of the directory that contains temporary libtool files.
13623 objdir=$objdir
13624
13625 # How to create reloadable object files.
13626 reload_flag=$lt_reload_flag
13627 reload_cmds=$lt_reload_cmds
13628
13629 # How to pass a linker flag through the compiler.
13630 wl=$lt_lt_prog_compiler_wl_CXX
13631
13632 # Object file suffix (normally "o").
13633 objext="$ac_objext"
13634
13635 # Old archive suffix (normally "a").
13636 libext="$libext"
13637
13638 # Shared library suffix (normally ".so").
13639 shrext_cmds='$shrext_cmds'
13640
13641 # Executable file suffix (normally "").
13642 exeext="$exeext"
13643
13644 # Additional compiler flags for building library objects.
13645 pic_flag=$lt_lt_prog_compiler_pic_CXX
13646 pic_mode=$pic_mode
13647
13648 # What is the maximum length of a command?
13649 max_cmd_len=$lt_cv_sys_max_cmd_len
13650
13651 # Does compiler simultaneously support -c and -o options?
13652 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13653
13654 # Must we lock files when doing compilation?
13655 need_locks=$lt_need_locks
13656
13657 # Do we need the lib prefix for modules?
13658 need_lib_prefix=$need_lib_prefix
13659
13660 # Do we need a version for libraries?
13661 need_version=$need_version
13662
13663 # Whether dlopen is supported.
13664 dlopen_support=$enable_dlopen
13665
13666 # Whether dlopen of programs is supported.
13667 dlopen_self=$enable_dlopen_self
13668
13669 # Whether dlopen of statically linked programs is supported.
13670 dlopen_self_static=$enable_dlopen_self_static
13671
13672 # Compiler flag to prevent dynamic linking.
13673 link_static_flag=$lt_lt_prog_compiler_static_CXX
13674
13675 # Compiler flag to turn off builtin functions.
13676 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13677
13678 # Compiler flag to allow reflexive dlopens.
13679 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13680
13681 # Compiler flag to generate shared objects directly from archives.
13682 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13683
13684 # Compiler flag to generate thread-safe objects.
13685 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13686
13687 # Library versioning type.
13688 version_type=$version_type
13689
13690 # Format of library name prefix.
13691 libname_spec=$lt_libname_spec
13692
13693 # List of archive names. First name is the real one, the rest are links.
13694 # The last name is the one that the linker finds with -lNAME.
13695 library_names_spec=$lt_library_names_spec
13696
13697 # The coded name of the library, if different from the real name.
13698 soname_spec=$lt_soname_spec
13699
13700 # Commands used to build and install an old-style archive.
13701 RANLIB=$lt_RANLIB
13702 old_archive_cmds=$lt_old_archive_cmds_CXX
13703 old_postinstall_cmds=$lt_old_postinstall_cmds
13704 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13705
13706 # Create an old-style archive from a shared archive.
13707 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13708
13709 # Create a temporary old-style archive to link instead of a shared archive.
13710 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13711
13712 # Commands used to build and install a shared archive.
13713 archive_cmds=$lt_archive_cmds_CXX
13714 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13715 postinstall_cmds=$lt_postinstall_cmds
13716 postuninstall_cmds=$lt_postuninstall_cmds
13717
13718 # Commands used to build a loadable module (assumed same as above if empty)
13719 module_cmds=$lt_module_cmds_CXX
13720 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13721
13722 # Commands to strip libraries.
13723 old_striplib=$lt_old_striplib
13724 striplib=$lt_striplib
13725
13726 # Dependencies to place before the objects being linked to create a
13727 # shared library.
13728 predep_objects=$lt_predep_objects_CXX
13729
13730 # Dependencies to place after the objects being linked to create a
13731 # shared library.
13732 postdep_objects=$lt_postdep_objects_CXX
13733
13734 # Dependencies to place before the objects being linked to create a
13735 # shared library.
13736 predeps=$lt_predeps_CXX
13737
13738 # Dependencies to place after the objects being linked to create a
13739 # shared library.
13740 postdeps=$lt_postdeps_CXX
13741
13742 # The directories searched by this compiler when creating a shared
13743 # library
13744 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13745
13746 # The library search path used internally by the compiler when linking
13747 # a shared library.
13748 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13749
13750 # Method to check whether dependent libraries are shared objects.
13751 deplibs_check_method=$lt_deplibs_check_method
13752
13753 # Command to use when deplibs_check_method == file_magic.
13754 file_magic_cmd=$lt_file_magic_cmd
13755
13756 # Flag that allows shared libraries with undefined symbols to be built.
13757 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13758
13759 # Flag that forces no undefined symbols.
13760 no_undefined_flag=$lt_no_undefined_flag_CXX
13761
13762 # Commands used to finish a libtool library installation in a directory.
13763 finish_cmds=$lt_finish_cmds
13764
13765 # Same as above, but a single script fragment to be evaled but not shown.
13766 finish_eval=$lt_finish_eval
13767
13768 # Take the output of nm and produce a listing of raw symbols and C names.
13769 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13770
13771 # Transform the output of nm in a proper C declaration
13772 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13773
13774 # Transform the output of nm in a C name address pair
13775 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13776
13777 # This is the shared library runtime path variable.
13778 runpath_var=$runpath_var
13779
13780 # This is the shared library path variable.
13781 shlibpath_var=$shlibpath_var
13782
13783 # Is shlibpath searched before the hard-coded library search path?
13784 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13785
13786 # How to hardcode a shared library path into an executable.
13787 hardcode_action=$hardcode_action_CXX
13788
13789 # Whether we should hardcode library paths into libraries.
13790 hardcode_into_libs=$hardcode_into_libs
13791
13792 # Flag to hardcode \$libdir into a binary during linking.
13793 # This must work even if \$libdir does not exist.
13794 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13795
13796 # If ld is used when linking, flag to hardcode \$libdir into
13797 # a binary during linking. This must work even if \$libdir does
13798 # not exist.
13799 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13800
13801 # Whether we need a single -rpath flag with a separated argument.
13802 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13803
13804 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13805 # resulting binary.
13806 hardcode_direct=$hardcode_direct_CXX
13807
13808 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13809 # resulting binary.
13810 hardcode_minus_L=$hardcode_minus_L_CXX
13811
13812 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13813 # the resulting binary.
13814 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13815
13816 # Set to yes if building a shared library automatically hardcodes DIR into the library
13817 # and all subsequent libraries and executables linked against it.
13818 hardcode_automatic=$hardcode_automatic_CXX
13819
13820 # Variables whose values should be saved in libtool wrapper scripts and
13821 # restored at relink time.
13822 variables_saved_for_relink="$variables_saved_for_relink"
13823
13824 # Whether libtool must link a program against all its dependency libraries.
13825 link_all_deplibs=$link_all_deplibs_CXX
13826
13827 # Compile-time system search path for libraries
13828 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13829
13830 # Run-time system search path for libraries
13831 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13832
13833 # Fix the shell variable \$srcfile for the compiler.
13834 fix_srcfile_path=$lt_fix_srcfile_path
13835
13836 # Set to yes if exported symbols are required.
13837 always_export_symbols=$always_export_symbols_CXX
13838
13839 # The commands to list exported symbols.
13840 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13841
13842 # The commands to extract the exported symbol list from a shared archive.
13843 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13844
13845 # Symbols that should not be listed in the preloaded symbols.
13846 exclude_expsyms=$lt_exclude_expsyms_CXX
13847
13848 # Symbols that must always be exported.
13849 include_expsyms=$lt_include_expsyms_CXX
13850
13851 # ### END LIBTOOL TAG CONFIG: $tagname
13852
13853 __EOF__
13854
13855
13856 else
13857 # If there is no Makefile yet, we rely on a make rule to execute
13858 # `config.status --recheck' to rerun these tests and create the
13859 # libtool script then.
13860 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13861 if test -f "$ltmain_in"; then
13862 test -f Makefile && make "$ltmain"
13863 fi
13864 fi
13865
13866
13867 ac_ext=cpp
13868 ac_cpp='$CXXCPP $CPPFLAGS'
13869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13872
13873 CC=$lt_save_CC
13874 LDCXX=$LD
13875 LD=$lt_save_LD
13876 GCC=$lt_save_GCC
13877 with_gnu_ldcxx=$with_gnu_ld
13878 with_gnu_ld=$lt_save_with_gnu_ld
13879 lt_cv_path_LDCXX=$lt_cv_path_LD
13880 lt_cv_path_LD=$lt_save_path_LD
13881 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13882 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13883
13884 else
13885 tagname=""
13886 fi
13887 ;;
13888
13889 F77)
13890 if test -n "$F77" && test "X$F77" != "Xno"; then
13891
13892 ac_ext=f
13893 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13894 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13895 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13896
13897
13898 archive_cmds_need_lc_F77=no
13899 allow_undefined_flag_F77=
13900 always_export_symbols_F77=no
13901 archive_expsym_cmds_F77=
13902 export_dynamic_flag_spec_F77=
13903 hardcode_direct_F77=no
13904 hardcode_libdir_flag_spec_F77=
13905 hardcode_libdir_flag_spec_ld_F77=
13906 hardcode_libdir_separator_F77=
13907 hardcode_minus_L_F77=no
13908 hardcode_automatic_F77=no
13909 module_cmds_F77=
13910 module_expsym_cmds_F77=
13911 link_all_deplibs_F77=unknown
13912 old_archive_cmds_F77=$old_archive_cmds
13913 no_undefined_flag_F77=
13914 whole_archive_flag_spec_F77=
13915 enable_shared_with_static_runtimes_F77=no
13916
13917 # Source file extension for f77 test sources.
13918 ac_ext=f
13919
13920 # Object file extension for compiled f77 test sources.
13921 objext=o
13922 objext_F77=$objext
13923
13924 # Code to be used in simple compile tests
13925 lt_simple_compile_test_code="\
13926 subroutine t
13927 return
13928 end
13929 "
13930
13931 # Code to be used in simple link tests
13932 lt_simple_link_test_code="\
13933 program t
13934 end
13935 "
13936
13937 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13938
13939 # If no C compiler was specified, use CC.
13940 LTCC=${LTCC-"$CC"}
13941
13942 # If no C compiler flags were specified, use CFLAGS.
13943 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13944
13945 # Allow CC to be a program name with arguments.
13946 compiler=$CC
13947
13948
13949 # save warnings/boilerplate of simple test code
13950 ac_outfile=conftest.$ac_objext
13951 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13952 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13953 _lt_compiler_boilerplate=`cat conftest.err`
13954 $rm conftest*
13955
13956 ac_outfile=conftest.$ac_objext
13957 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13958 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13959 _lt_linker_boilerplate=`cat conftest.err`
13960 $rm -r conftest*
13961
13962
13963 # Allow CC to be a program name with arguments.
13964 lt_save_CC="$CC"
13965 CC=${F77-"f77"}
13966 compiler=$CC
13967 compiler_F77=$CC
13968 for cc_temp in $compiler""; do
13969 case $cc_temp in
13970 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13971 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13972 \-*) ;;
13973 *) break;;
13974 esac
13975 done
13976 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13977
13978
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13980 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13982 $as_echo "$can_build_shared" >&6; }
13983
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13985 $as_echo_n "checking whether to build shared libraries... " >&6; }
13986 test "$can_build_shared" = "no" && enable_shared=no
13987
13988 # On AIX, shared libraries and static libraries use the same namespace, and
13989 # are all built from PIC.
13990 case $host_os in
13991 aix3*)
13992 test "$enable_shared" = yes && enable_static=no
13993 if test -n "$RANLIB"; then
13994 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13995 postinstall_cmds='$RANLIB $lib'
13996 fi
13997 ;;
13998 aix[4-9]*)
13999 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14000 test "$enable_shared" = yes && enable_static=no
14001 fi
14002 ;;
14003 esac
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14005 $as_echo "$enable_shared" >&6; }
14006
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14008 $as_echo_n "checking whether to build static libraries... " >&6; }
14009 # Make sure either enable_shared or enable_static is yes.
14010 test "$enable_shared" = yes || enable_static=yes
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14012 $as_echo "$enable_static" >&6; }
14013
14014 GCC_F77="$G77"
14015 LD_F77="$LD"
14016
14017 lt_prog_compiler_wl_F77=
14018 lt_prog_compiler_pic_F77=
14019 lt_prog_compiler_static_F77=
14020
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14022 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14023
14024 if test "$GCC" = yes; then
14025 lt_prog_compiler_wl_F77='-Wl,'
14026 lt_prog_compiler_static_F77='-static'
14027
14028 case $host_os in
14029 aix*)
14030 # All AIX code is PIC.
14031 if test "$host_cpu" = ia64; then
14032 # AIX 5 now supports IA64 processor
14033 lt_prog_compiler_static_F77='-Bstatic'
14034 fi
14035 ;;
14036
14037 amigaos*)
14038 # FIXME: we need at least 68020 code to build shared libraries, but
14039 # adding the `-m68020' flag to GCC prevents building anything better,
14040 # like `-m68040'.
14041 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14042 ;;
14043
14044 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14045 # PIC is the default for these OSes.
14046 ;;
14047
14048 mingw* | cygwin* | pw32* | os2*)
14049 # This hack is so that the source file can tell whether it is being
14050 # built for inclusion in a dll (and should export symbols for example).
14051 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14052 # (--disable-auto-import) libraries
14053 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14054 ;;
14055
14056 darwin* | rhapsody*)
14057 # PIC is the default on this platform
14058 # Common symbols not allowed in MH_DYLIB files
14059 lt_prog_compiler_pic_F77='-fno-common'
14060 ;;
14061
14062 interix[3-9]*)
14063 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14064 # Instead, we relocate shared libraries at runtime.
14065 ;;
14066
14067 msdosdjgpp*)
14068 # Just because we use GCC doesn't mean we suddenly get shared libraries
14069 # on systems that don't support them.
14070 lt_prog_compiler_can_build_shared_F77=no
14071 enable_shared=no
14072 ;;
14073
14074 sysv4*MP*)
14075 if test -d /usr/nec; then
14076 lt_prog_compiler_pic_F77=-Kconform_pic
14077 fi
14078 ;;
14079
14080 hpux*)
14081 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14082 # not for PA HP-UX.
14083 case $host_cpu in
14084 hppa*64*|ia64*)
14085 # +Z the default
14086 ;;
14087 *)
14088 lt_prog_compiler_pic_F77='-fPIC'
14089 ;;
14090 esac
14091 ;;
14092
14093 *)
14094 lt_prog_compiler_pic_F77='-fPIC'
14095 ;;
14096 esac
14097 else
14098 # PORTME Check for flag to pass linker flags through the system compiler.
14099 case $host_os in
14100 aix*)
14101 lt_prog_compiler_wl_F77='-Wl,'
14102 if test "$host_cpu" = ia64; then
14103 # AIX 5 now supports IA64 processor
14104 lt_prog_compiler_static_F77='-Bstatic'
14105 else
14106 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14107 fi
14108 ;;
14109 darwin*)
14110 # PIC is the default on this platform
14111 # Common symbols not allowed in MH_DYLIB files
14112 case $cc_basename in
14113 xlc*)
14114 lt_prog_compiler_pic_F77='-qnocommon'
14115 lt_prog_compiler_wl_F77='-Wl,'
14116 ;;
14117 esac
14118 ;;
14119
14120 mingw* | cygwin* | pw32* | os2*)
14121 # This hack is so that the source file can tell whether it is being
14122 # built for inclusion in a dll (and should export symbols for example).
14123 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14124 ;;
14125
14126 hpux9* | hpux10* | hpux11*)
14127 lt_prog_compiler_wl_F77='-Wl,'
14128 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14129 # not for PA HP-UX.
14130 case $host_cpu in
14131 hppa*64*|ia64*)
14132 # +Z the default
14133 ;;
14134 *)
14135 lt_prog_compiler_pic_F77='+Z'
14136 ;;
14137 esac
14138 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14139 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14140 ;;
14141
14142 irix5* | irix6* | nonstopux*)
14143 lt_prog_compiler_wl_F77='-Wl,'
14144 # PIC (with -KPIC) is the default.
14145 lt_prog_compiler_static_F77='-non_shared'
14146 ;;
14147
14148 newsos6)
14149 lt_prog_compiler_pic_F77='-KPIC'
14150 lt_prog_compiler_static_F77='-Bstatic'
14151 ;;
14152
14153 linux* | k*bsd*-gnu)
14154 case $cc_basename in
14155 icc* | ecc*)
14156 lt_prog_compiler_wl_F77='-Wl,'
14157 lt_prog_compiler_pic_F77='-KPIC'
14158 lt_prog_compiler_static_F77='-static'
14159 ;;
14160 pgcc* | pgf77* | pgf90* | pgf95*)
14161 # Portland Group compilers (*not* the Pentium gcc compiler,
14162 # which looks to be a dead project)
14163 lt_prog_compiler_wl_F77='-Wl,'
14164 lt_prog_compiler_pic_F77='-fpic'
14165 lt_prog_compiler_static_F77='-Bstatic'
14166 ;;
14167 ccc*)
14168 lt_prog_compiler_wl_F77='-Wl,'
14169 # All Alpha code is PIC.
14170 lt_prog_compiler_static_F77='-non_shared'
14171 ;;
14172 *)
14173 case `$CC -V 2>&1 | sed 5q` in
14174 *Sun\ C*)
14175 # Sun C 5.9
14176 lt_prog_compiler_pic_F77='-KPIC'
14177 lt_prog_compiler_static_F77='-Bstatic'
14178 lt_prog_compiler_wl_F77='-Wl,'
14179 ;;
14180 *Sun\ F*)
14181 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14182 lt_prog_compiler_pic_F77='-KPIC'
14183 lt_prog_compiler_static_F77='-Bstatic'
14184 lt_prog_compiler_wl_F77=''
14185 ;;
14186 esac
14187 ;;
14188 esac
14189 ;;
14190
14191 osf3* | osf4* | osf5*)
14192 lt_prog_compiler_wl_F77='-Wl,'
14193 # All OSF/1 code is PIC.
14194 lt_prog_compiler_static_F77='-non_shared'
14195 ;;
14196
14197 rdos*)
14198 lt_prog_compiler_static_F77='-non_shared'
14199 ;;
14200
14201 solaris*)
14202 lt_prog_compiler_pic_F77='-KPIC'
14203 lt_prog_compiler_static_F77='-Bstatic'
14204 case $cc_basename in
14205 f77* | f90* | f95*)
14206 lt_prog_compiler_wl_F77='-Qoption ld ';;
14207 *)
14208 lt_prog_compiler_wl_F77='-Wl,';;
14209 esac
14210 ;;
14211
14212 sunos4*)
14213 lt_prog_compiler_wl_F77='-Qoption ld '
14214 lt_prog_compiler_pic_F77='-PIC'
14215 lt_prog_compiler_static_F77='-Bstatic'
14216 ;;
14217
14218 sysv4 | sysv4.2uw2* | sysv4.3*)
14219 lt_prog_compiler_wl_F77='-Wl,'
14220 lt_prog_compiler_pic_F77='-KPIC'
14221 lt_prog_compiler_static_F77='-Bstatic'
14222 ;;
14223
14224 sysv4*MP*)
14225 if test -d /usr/nec ;then
14226 lt_prog_compiler_pic_F77='-Kconform_pic'
14227 lt_prog_compiler_static_F77='-Bstatic'
14228 fi
14229 ;;
14230
14231 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14232 lt_prog_compiler_wl_F77='-Wl,'
14233 lt_prog_compiler_pic_F77='-KPIC'
14234 lt_prog_compiler_static_F77='-Bstatic'
14235 ;;
14236
14237 unicos*)
14238 lt_prog_compiler_wl_F77='-Wl,'
14239 lt_prog_compiler_can_build_shared_F77=no
14240 ;;
14241
14242 uts4*)
14243 lt_prog_compiler_pic_F77='-pic'
14244 lt_prog_compiler_static_F77='-Bstatic'
14245 ;;
14246
14247 *)
14248 lt_prog_compiler_can_build_shared_F77=no
14249 ;;
14250 esac
14251 fi
14252
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
14254 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14255
14256 #
14257 # Check to make sure the PIC flag actually works.
14258 #
14259 if test -n "$lt_prog_compiler_pic_F77"; then
14260
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14262 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14263 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then :
14264 $as_echo_n "(cached) " >&6
14265 else
14266 lt_cv_prog_compiler_pic_works_F77=no
14267 ac_outfile=conftest.$ac_objext
14268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14269 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14270 # Insert the option either (1) after the last *FLAGS variable, or
14271 # (2) before a word containing "conftest.", or (3) at the end.
14272 # Note that $ac_compile itself does not contain backslashes and begins
14273 # with a dollar sign (not a hyphen), so the echo should work correctly.
14274 # The option is referenced via a variable to avoid confusing sed.
14275 lt_compile=`echo "$ac_compile" | $SED \
14276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14278 -e 's:$: $lt_compiler_flag:'`
14279 (eval echo "\"\$as_me:14279: $lt_compile\"" >&5)
14280 (eval "$lt_compile" 2>conftest.err)
14281 ac_status=$?
14282 cat conftest.err >&5
14283 echo "$as_me:14283: \$? = $ac_status" >&5
14284 if (exit $ac_status) && test -s "$ac_outfile"; then
14285 # The compiler can only warn and ignore the option if not recognized
14286 # So say no if there are warnings other than the usual output.
14287 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14288 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14289 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14290 lt_cv_prog_compiler_pic_works_F77=yes
14291 fi
14292 fi
14293 $rm conftest*
14294
14295 fi
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14297 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14298
14299 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14300 case $lt_prog_compiler_pic_F77 in
14301 "" | " "*) ;;
14302 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14303 esac
14304 else
14305 lt_prog_compiler_pic_F77=
14306 lt_prog_compiler_can_build_shared_F77=no
14307 fi
14308
14309 fi
14310 case $host_os in
14311 # For platforms which do not support PIC, -DPIC is meaningless:
14312 *djgpp*)
14313 lt_prog_compiler_pic_F77=
14314 ;;
14315 *)
14316 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14317 ;;
14318 esac
14319
14320 #
14321 # Check to make sure the static flag actually works.
14322 #
14323 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14325 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14326 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then :
14327 $as_echo_n "(cached) " >&6
14328 else
14329 lt_cv_prog_compiler_static_works_F77=no
14330 save_LDFLAGS="$LDFLAGS"
14331 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14332 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14333 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14334 # The linker can only warn and ignore the option if not recognized
14335 # So say no if there are warnings
14336 if test -s conftest.err; then
14337 # Append any errors to the config.log.
14338 cat conftest.err 1>&5
14339 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14341 if diff conftest.exp conftest.er2 >/dev/null; then
14342 lt_cv_prog_compiler_static_works_F77=yes
14343 fi
14344 else
14345 lt_cv_prog_compiler_static_works_F77=yes
14346 fi
14347 fi
14348 $rm -r conftest*
14349 LDFLAGS="$save_LDFLAGS"
14350
14351 fi
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
14353 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14354
14355 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14356 :
14357 else
14358 lt_prog_compiler_static_F77=
14359 fi
14360
14361
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14363 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14364 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
14365 $as_echo_n "(cached) " >&6
14366 else
14367 lt_cv_prog_compiler_c_o_F77=no
14368 $rm -r conftest 2>/dev/null
14369 mkdir conftest
14370 cd conftest
14371 mkdir out
14372 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14373
14374 lt_compiler_flag="-o out/conftest2.$ac_objext"
14375 # Insert the option either (1) after the last *FLAGS variable, or
14376 # (2) before a word containing "conftest.", or (3) at the end.
14377 # Note that $ac_compile itself does not contain backslashes and begins
14378 # with a dollar sign (not a hyphen), so the echo should work correctly.
14379 lt_compile=`echo "$ac_compile" | $SED \
14380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14382 -e 's:$: $lt_compiler_flag:'`
14383 (eval echo "\"\$as_me:14383: $lt_compile\"" >&5)
14384 (eval "$lt_compile" 2>out/conftest.err)
14385 ac_status=$?
14386 cat out/conftest.err >&5
14387 echo "$as_me:14387: \$? = $ac_status" >&5
14388 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14389 then
14390 # The compiler can only warn and ignore the option if not recognized
14391 # So say no if there are warnings
14392 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14393 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14394 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14395 lt_cv_prog_compiler_c_o_F77=yes
14396 fi
14397 fi
14398 chmod u+w . 2>&5
14399 $rm conftest*
14400 # SGI C++ compiler will create directory out/ii_files/ for
14401 # template instantiation
14402 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14403 $rm out/* && rmdir out
14404 cd ..
14405 rmdir conftest
14406 $rm conftest*
14407
14408 fi
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14410 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14411
14412
14413 hard_links="nottested"
14414 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14415 # do not overwrite the value of need_locks provided by the user
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14417 $as_echo_n "checking if we can lock with hard links... " >&6; }
14418 hard_links=yes
14419 $rm conftest*
14420 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14421 touch conftest.a
14422 ln conftest.a conftest.b 2>&5 || hard_links=no
14423 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14425 $as_echo "$hard_links" >&6; }
14426 if test "$hard_links" = no; then
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14428 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14429 need_locks=warn
14430 fi
14431 else
14432 need_locks=no
14433 fi
14434
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14436 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14437
14438 runpath_var=
14439 allow_undefined_flag_F77=
14440 enable_shared_with_static_runtimes_F77=no
14441 archive_cmds_F77=
14442 archive_expsym_cmds_F77=
14443 old_archive_From_new_cmds_F77=
14444 old_archive_from_expsyms_cmds_F77=
14445 export_dynamic_flag_spec_F77=
14446 whole_archive_flag_spec_F77=
14447 thread_safe_flag_spec_F77=
14448 hardcode_libdir_flag_spec_F77=
14449 hardcode_libdir_flag_spec_ld_F77=
14450 hardcode_libdir_separator_F77=
14451 hardcode_direct_F77=no
14452 hardcode_minus_L_F77=no
14453 hardcode_shlibpath_var_F77=unsupported
14454 link_all_deplibs_F77=unknown
14455 hardcode_automatic_F77=no
14456 module_cmds_F77=
14457 module_expsym_cmds_F77=
14458 always_export_symbols_F77=no
14459 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14460 # include_expsyms should be a list of space-separated symbols to be *always*
14461 # included in the symbol list
14462 include_expsyms_F77=
14463 # exclude_expsyms can be an extended regexp of symbols to exclude
14464 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14465 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14466 # as well as any symbol that contains `d'.
14467 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14468 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14469 # platforms (ab)use it in PIC code, but their linkers get confused if
14470 # the symbol is explicitly referenced. Since portable code cannot
14471 # rely on this symbol name, it's probably fine to never include it in
14472 # preloaded symbol tables.
14473 # Exclude shared library initialization/finalization symbols.
14474 extract_expsyms_cmds=
14475 # Just being paranoid about ensuring that cc_basename is set.
14476 for cc_temp in $compiler""; do
14477 case $cc_temp in
14478 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14479 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14480 \-*) ;;
14481 *) break;;
14482 esac
14483 done
14484 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14485
14486 case $host_os in
14487 cygwin* | mingw* | pw32*)
14488 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14489 # When not using gcc, we currently assume that we are using
14490 # Microsoft Visual C++.
14491 if test "$GCC" != yes; then
14492 with_gnu_ld=no
14493 fi
14494 ;;
14495 interix*)
14496 # we just hope/assume this is gcc and not c89 (= MSVC++)
14497 with_gnu_ld=yes
14498 ;;
14499 openbsd*)
14500 with_gnu_ld=no
14501 ;;
14502 esac
14503
14504 ld_shlibs_F77=yes
14505 if test "$with_gnu_ld" = yes; then
14506 # If archive_cmds runs LD, not CC, wlarc should be empty
14507 wlarc='${wl}'
14508
14509 # Set some defaults for GNU ld with shared library support. These
14510 # are reset later if shared libraries are not supported. Putting them
14511 # here allows them to be overridden if necessary.
14512 runpath_var=LD_RUN_PATH
14513 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14514 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14515 # ancient GNU ld didn't support --whole-archive et. al.
14516 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14517 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14518 else
14519 whole_archive_flag_spec_F77=
14520 fi
14521 supports_anon_versioning=no
14522 case `$LD -v 2>/dev/null` in
14523 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14524 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14525 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14526 *\ 2.11.*) ;; # other 2.11 versions
14527 *) supports_anon_versioning=yes ;;
14528 esac
14529
14530 # See if GNU ld supports shared libraries.
14531 case $host_os in
14532 aix[3-9]*)
14533 # On AIX/PPC, the GNU linker is very broken
14534 if test "$host_cpu" != ia64; then
14535 ld_shlibs_F77=no
14536 cat <<EOF 1>&2
14537
14538 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14539 *** to be unable to reliably create shared libraries on AIX.
14540 *** Therefore, libtool is disabling shared libraries support. If you
14541 *** really care for shared libraries, you may want to modify your PATH
14542 *** so that a non-GNU linker is found, and then restart.
14543
14544 EOF
14545 fi
14546 ;;
14547
14548 amigaos*)
14549 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)'
14550 hardcode_libdir_flag_spec_F77='-L$libdir'
14551 hardcode_minus_L_F77=yes
14552
14553 # Samuel A. Falvo II <[email protected]> reports
14554 # that the semantics of dynamic libraries on AmigaOS, at least up
14555 # to version 4, is to share data among multiple programs linked
14556 # with the same dynamic library. Since this doesn't match the
14557 # behavior of shared libraries on other platforms, we can't use
14558 # them.
14559 ld_shlibs_F77=no
14560 ;;
14561
14562 beos*)
14563 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14564 allow_undefined_flag_F77=unsupported
14565 # Joseph Beckenbach <[email protected]> says some releases of gcc
14566 # support --undefined. This deserves some investigation. FIXME
14567 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14568 else
14569 ld_shlibs_F77=no
14570 fi
14571 ;;
14572
14573 cygwin* | mingw* | pw32*)
14574 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14575 # as there is no search path for DLLs.
14576 hardcode_libdir_flag_spec_F77='-L$libdir'
14577 allow_undefined_flag_F77=unsupported
14578 always_export_symbols_F77=no
14579 enable_shared_with_static_runtimes_F77=yes
14580 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14581
14582 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14583 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14584 # If the export-symbols file already is a .def file (1st line
14585 # is EXPORTS), use it as is; otherwise, prepend...
14586 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14587 cp $export_symbols $output_objdir/$soname.def;
14588 else
14589 echo EXPORTS > $output_objdir/$soname.def;
14590 cat $export_symbols >> $output_objdir/$soname.def;
14591 fi~
14592 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14593 else
14594 ld_shlibs_F77=no
14595 fi
14596 ;;
14597
14598 interix[3-9]*)
14599 hardcode_direct_F77=no
14600 hardcode_shlibpath_var_F77=no
14601 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14602 export_dynamic_flag_spec_F77='${wl}-E'
14603 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14604 # Instead, shared libraries are loaded at an image base (0x10000000 by
14605 # default) and relocated if they conflict, which is a slow very memory
14606 # consuming and fragmenting process. To avoid this, we pick a random,
14607 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14608 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14609 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'
14610 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'
14611 ;;
14612
14613 gnu* | linux* | k*bsd*-gnu)
14614 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14615 tmp_addflag=
14616 case $cc_basename,$host_cpu in
14617 pgcc*) # Portland Group C compiler
14618 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'
14619 tmp_addflag=' $pic_flag'
14620 ;;
14621 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14622 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'
14623 tmp_addflag=' $pic_flag -Mnomain' ;;
14624 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14625 tmp_addflag=' -i_dynamic' ;;
14626 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14627 tmp_addflag=' -i_dynamic -nofor_main' ;;
14628 ifc* | ifort*) # Intel Fortran compiler
14629 tmp_addflag=' -nofor_main' ;;
14630 esac
14631 case `$CC -V 2>&1 | sed 5q` in
14632 *Sun\ C*) # Sun C 5.9
14633 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'
14634 tmp_sharedflag='-G' ;;
14635 *Sun\ F*) # Sun Fortran 8.3
14636 tmp_sharedflag='-G' ;;
14637 *)
14638 tmp_sharedflag='-shared' ;;
14639 esac
14640 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14641
14642 if test $supports_anon_versioning = yes; then
14643 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14644 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14645 $echo "local: *; };" >> $output_objdir/$libname.ver~
14646 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14647 fi
14648 else
14649 ld_shlibs_F77=no
14650 fi
14651 ;;
14652
14653 netbsd*)
14654 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14655 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14656 wlarc=
14657 else
14658 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14659 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14660 fi
14661 ;;
14662
14663 solaris*)
14664 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14665 ld_shlibs_F77=no
14666 cat <<EOF 1>&2
14667
14668 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14669 *** create shared libraries on Solaris systems. Therefore, libtool
14670 *** is disabling shared libraries support. We urge you to upgrade GNU
14671 *** binutils to release 2.9.1 or newer. Another option is to modify
14672 *** your PATH or compiler configuration so that the native linker is
14673 *** used, and then restart.
14674
14675 EOF
14676 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14677 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14678 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14679 else
14680 ld_shlibs_F77=no
14681 fi
14682 ;;
14683
14684 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14685 case `$LD -v 2>&1` in
14686 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14687 ld_shlibs_F77=no
14688 cat <<_LT_EOF 1>&2
14689
14690 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14691 *** reliably create shared libraries on SCO systems. Therefore, libtool
14692 *** is disabling shared libraries support. We urge you to upgrade GNU
14693 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14694 *** your PATH or compiler configuration so that the native linker is
14695 *** used, and then restart.
14696
14697 _LT_EOF
14698 ;;
14699 *)
14700 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14701 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14702 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14703 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14704 else
14705 ld_shlibs_F77=no
14706 fi
14707 ;;
14708 esac
14709 ;;
14710
14711 sunos4*)
14712 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14713 wlarc=
14714 hardcode_direct_F77=yes
14715 hardcode_shlibpath_var_F77=no
14716 ;;
14717
14718 *)
14719 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14720 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14721 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14722 else
14723 ld_shlibs_F77=no
14724 fi
14725 ;;
14726 esac
14727
14728 if test "$ld_shlibs_F77" = no; then
14729 runpath_var=
14730 hardcode_libdir_flag_spec_F77=
14731 export_dynamic_flag_spec_F77=
14732 whole_archive_flag_spec_F77=
14733 fi
14734 else
14735 # PORTME fill in a description of your system's linker (not GNU ld)
14736 case $host_os in
14737 aix3*)
14738 allow_undefined_flag_F77=unsupported
14739 always_export_symbols_F77=yes
14740 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'
14741 # Note: this linker hardcodes the directories in LIBPATH if there
14742 # are no directories specified by -L.
14743 hardcode_minus_L_F77=yes
14744 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14745 # Neither direct hardcoding nor static linking is supported with a
14746 # broken collect2.
14747 hardcode_direct_F77=unsupported
14748 fi
14749 ;;
14750
14751 aix[4-9]*)
14752 if test "$host_cpu" = ia64; then
14753 # On IA64, the linker does run time linking by default, so we don't
14754 # have to do anything special.
14755 aix_use_runtimelinking=no
14756 exp_sym_flag='-Bexport'
14757 no_entry_flag=""
14758 else
14759 # If we're using GNU nm, then we don't want the "-C" option.
14760 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14761 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14762 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'
14763 else
14764 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'
14765 fi
14766 aix_use_runtimelinking=no
14767
14768 # Test if we are trying to use run time linking or normal
14769 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14770 # need to do runtime linking.
14771 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14772 for ld_flag in $LDFLAGS; do
14773 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14774 aix_use_runtimelinking=yes
14775 break
14776 fi
14777 done
14778 ;;
14779 esac
14780
14781 exp_sym_flag='-bexport'
14782 no_entry_flag='-bnoentry'
14783 fi
14784
14785 # When large executables or shared objects are built, AIX ld can
14786 # have problems creating the table of contents. If linking a library
14787 # or program results in "error TOC overflow" add -mminimal-toc to
14788 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14789 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14790
14791 archive_cmds_F77=''
14792 hardcode_direct_F77=yes
14793 hardcode_libdir_separator_F77=':'
14794 link_all_deplibs_F77=yes
14795
14796 if test "$GCC" = yes; then
14797 case $host_os in aix4.[012]|aix4.[012].*)
14798 # We only want to do this on AIX 4.2 and lower, the check
14799 # below for broken collect2 doesn't work under 4.3+
14800 collect2name=`${CC} -print-prog-name=collect2`
14801 if test -f "$collect2name" && \
14802 strings "$collect2name" | grep resolve_lib_name >/dev/null
14803 then
14804 # We have reworked collect2
14805 :
14806 else
14807 # We have old collect2
14808 hardcode_direct_F77=unsupported
14809 # It fails to find uninstalled libraries when the uninstalled
14810 # path is not listed in the libpath. Setting hardcode_minus_L
14811 # to unsupported forces relinking
14812 hardcode_minus_L_F77=yes
14813 hardcode_libdir_flag_spec_F77='-L$libdir'
14814 hardcode_libdir_separator_F77=
14815 fi
14816 ;;
14817 esac
14818 shared_flag='-shared'
14819 if test "$aix_use_runtimelinking" = yes; then
14820 shared_flag="$shared_flag "'${wl}-G'
14821 fi
14822 else
14823 # not using gcc
14824 if test "$host_cpu" = ia64; then
14825 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14826 # chokes on -Wl,-G. The following line is correct:
14827 shared_flag='-G'
14828 else
14829 if test "$aix_use_runtimelinking" = yes; then
14830 shared_flag='${wl}-G'
14831 else
14832 shared_flag='${wl}-bM:SRE'
14833 fi
14834 fi
14835 fi
14836
14837 # It seems that -bexpall does not export symbols beginning with
14838 # underscore (_), so it is better to generate a list of symbols to export.
14839 always_export_symbols_F77=yes
14840 if test "$aix_use_runtimelinking" = yes; then
14841 # Warning - without using the other runtime loading flags (-brtl),
14842 # -berok will link without error, but may produce a broken library.
14843 allow_undefined_flag_F77='-berok'
14844 # Determine the default libpath from the value encoded in an empty executable.
14845 cat > conftest.$ac_ext <<_ACEOF
14846 program main
14847
14848 end
14849 _ACEOF
14850 if ac_fn_f77_try_link "$LINENO"; then :
14851
14852 lt_aix_libpath_sed='
14853 /Import File Strings/,/^$/ {
14854 /^0/ {
14855 s/^0 *\(.*\)$/\1/
14856 p
14857 }
14858 }'
14859 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14860 # Check for a 64-bit object if we didn't find anything.
14861 if test -z "$aix_libpath"; then
14862 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14863 fi
14864 fi
14865 rm -f core conftest.err conftest.$ac_objext \
14866 conftest$ac_exeext conftest.$ac_ext
14867 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14868
14869 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14870 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"
14871 else
14872 if test "$host_cpu" = ia64; then
14873 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14874 allow_undefined_flag_F77="-z nodefs"
14875 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"
14876 else
14877 # Determine the default libpath from the value encoded in an empty executable.
14878 cat > conftest.$ac_ext <<_ACEOF
14879 program main
14880
14881 end
14882 _ACEOF
14883 if ac_fn_f77_try_link "$LINENO"; then :
14884
14885 lt_aix_libpath_sed='
14886 /Import File Strings/,/^$/ {
14887 /^0/ {
14888 s/^0 *\(.*\)$/\1/
14889 p
14890 }
14891 }'
14892 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14893 # Check for a 64-bit object if we didn't find anything.
14894 if test -z "$aix_libpath"; then
14895 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14896 fi
14897 fi
14898 rm -f core conftest.err conftest.$ac_objext \
14899 conftest$ac_exeext conftest.$ac_ext
14900 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14901
14902 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14903 # Warning - without using the other run time loading flags,
14904 # -berok will link without error, but may produce a broken library.
14905 no_undefined_flag_F77=' ${wl}-bernotok'
14906 allow_undefined_flag_F77=' ${wl}-berok'
14907 # Exported symbols can be pulled into shared objects from archives
14908 whole_archive_flag_spec_F77='$convenience'
14909 archive_cmds_need_lc_F77=yes
14910 # This is similar to how AIX traditionally builds its shared libraries.
14911 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'
14912 fi
14913 fi
14914 ;;
14915
14916 amigaos*)
14917 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)'
14918 hardcode_libdir_flag_spec_F77='-L$libdir'
14919 hardcode_minus_L_F77=yes
14920 # see comment about different semantics on the GNU ld section
14921 ld_shlibs_F77=no
14922 ;;
14923
14924 bsdi[45]*)
14925 export_dynamic_flag_spec_F77=-rdynamic
14926 ;;
14927
14928 cygwin* | mingw* | pw32*)
14929 # When not using gcc, we currently assume that we are using
14930 # Microsoft Visual C++.
14931 # hardcode_libdir_flag_spec is actually meaningless, as there is
14932 # no search path for DLLs.
14933 hardcode_libdir_flag_spec_F77=' '
14934 allow_undefined_flag_F77=unsupported
14935 # Tell ltmain to make .lib files, not .a files.
14936 libext=lib
14937 # Tell ltmain to make .dll files, not .so files.
14938 shrext_cmds=".dll"
14939 # FIXME: Setting linknames here is a bad hack.
14940 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14941 # The linker will automatically build a .lib file if we build a DLL.
14942 old_archive_From_new_cmds_F77='true'
14943 # FIXME: Should let the user specify the lib program.
14944 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14945 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14946 enable_shared_with_static_runtimes_F77=yes
14947 ;;
14948
14949 darwin* | rhapsody*)
14950 case $host_os in
14951 rhapsody* | darwin1.[012])
14952 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14953 ;;
14954 *) # Darwin 1.3 on
14955 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14956 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14957 else
14958 case ${MACOSX_DEPLOYMENT_TARGET} in
14959 10.[012])
14960 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14961 ;;
14962 10.*)
14963 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14964 ;;
14965 esac
14966 fi
14967 ;;
14968 esac
14969 archive_cmds_need_lc_F77=no
14970 hardcode_direct_F77=no
14971 hardcode_automatic_F77=yes
14972 hardcode_shlibpath_var_F77=unsupported
14973 whole_archive_flag_spec_F77=''
14974 link_all_deplibs_F77=yes
14975 if test "$GCC" = yes ; then
14976 output_verbose_link_cmd='echo'
14977 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}"
14978 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14979 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}"
14980 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}"
14981 else
14982 case $cc_basename in
14983 xlc*)
14984 output_verbose_link_cmd='echo'
14985 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14986 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14987 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14988 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}'
14989 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}'
14990 ;;
14991 *)
14992 ld_shlibs_F77=no
14993 ;;
14994 esac
14995 fi
14996 ;;
14997
14998 dgux*)
14999 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15000 hardcode_libdir_flag_spec_F77='-L$libdir'
15001 hardcode_shlibpath_var_F77=no
15002 ;;
15003
15004 freebsd1*)
15005 ld_shlibs_F77=no
15006 ;;
15007
15008 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15009 # support. Future versions do this automatically, but an explicit c++rt0.o
15010 # does not break anything, and helps significantly (at the cost of a little
15011 # extra space).
15012 freebsd2.2*)
15013 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15014 hardcode_libdir_flag_spec_F77='-R$libdir'
15015 hardcode_direct_F77=yes
15016 hardcode_shlibpath_var_F77=no
15017 ;;
15018
15019 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15020 freebsd2*)
15021 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15022 hardcode_direct_F77=yes
15023 hardcode_minus_L_F77=yes
15024 hardcode_shlibpath_var_F77=no
15025 ;;
15026
15027 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15028 freebsd* | dragonfly*)
15029 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15030 hardcode_libdir_flag_spec_F77='-R$libdir'
15031 hardcode_direct_F77=yes
15032 hardcode_shlibpath_var_F77=no
15033 ;;
15034
15035 hpux9*)
15036 if test "$GCC" = yes; then
15037 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'
15038 else
15039 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'
15040 fi
15041 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15042 hardcode_libdir_separator_F77=:
15043 hardcode_direct_F77=yes
15044
15045 # hardcode_minus_L: Not really in the search PATH,
15046 # but as the default location of the library.
15047 hardcode_minus_L_F77=yes
15048 export_dynamic_flag_spec_F77='${wl}-E'
15049 ;;
15050
15051 hpux10*)
15052 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15053 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15054 else
15055 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15056 fi
15057 if test "$with_gnu_ld" = no; then
15058 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15059 hardcode_libdir_separator_F77=:
15060
15061 hardcode_direct_F77=yes
15062 export_dynamic_flag_spec_F77='${wl}-E'
15063
15064 # hardcode_minus_L: Not really in the search PATH,
15065 # but as the default location of the library.
15066 hardcode_minus_L_F77=yes
15067 fi
15068 ;;
15069
15070 hpux11*)
15071 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15072 case $host_cpu in
15073 hppa*64*)
15074 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15075 ;;
15076 ia64*)
15077 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15078 ;;
15079 *)
15080 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15081 ;;
15082 esac
15083 else
15084 case $host_cpu in
15085 hppa*64*)
15086 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15087 ;;
15088 ia64*)
15089 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15090 ;;
15091 *)
15092 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15093 ;;
15094 esac
15095 fi
15096 if test "$with_gnu_ld" = no; then
15097 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15098 hardcode_libdir_separator_F77=:
15099
15100 case $host_cpu in
15101 hppa*64*|ia64*)
15102 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15103 hardcode_direct_F77=no
15104 hardcode_shlibpath_var_F77=no
15105 ;;
15106 *)
15107 hardcode_direct_F77=yes
15108 export_dynamic_flag_spec_F77='${wl}-E'
15109
15110 # hardcode_minus_L: Not really in the search PATH,
15111 # but as the default location of the library.
15112 hardcode_minus_L_F77=yes
15113 ;;
15114 esac
15115 fi
15116 ;;
15117
15118 irix5* | irix6* | nonstopux*)
15119 if test "$GCC" = yes; then
15120 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'
15121 else
15122 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'
15123 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15124 fi
15125 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15126 hardcode_libdir_separator_F77=:
15127 link_all_deplibs_F77=yes
15128 ;;
15129
15130 netbsd*)
15131 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15132 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15133 else
15134 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15135 fi
15136 hardcode_libdir_flag_spec_F77='-R$libdir'
15137 hardcode_direct_F77=yes
15138 hardcode_shlibpath_var_F77=no
15139 ;;
15140
15141 newsos6)
15142 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15143 hardcode_direct_F77=yes
15144 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15145 hardcode_libdir_separator_F77=:
15146 hardcode_shlibpath_var_F77=no
15147 ;;
15148
15149 openbsd*)
15150 if test -f /usr/libexec/ld.so; then
15151 hardcode_direct_F77=yes
15152 hardcode_shlibpath_var_F77=no
15153 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15154 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15155 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15156 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15157 export_dynamic_flag_spec_F77='${wl}-E'
15158 else
15159 case $host_os in
15160 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15161 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15162 hardcode_libdir_flag_spec_F77='-R$libdir'
15163 ;;
15164 *)
15165 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15166 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15167 ;;
15168 esac
15169 fi
15170 else
15171 ld_shlibs_F77=no
15172 fi
15173 ;;
15174
15175 os2*)
15176 hardcode_libdir_flag_spec_F77='-L$libdir'
15177 hardcode_minus_L_F77=yes
15178 allow_undefined_flag_F77=unsupported
15179 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'
15180 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15181 ;;
15182
15183 osf3*)
15184 if test "$GCC" = yes; then
15185 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15186 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'
15187 else
15188 allow_undefined_flag_F77=' -expect_unresolved \*'
15189 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'
15190 fi
15191 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15192 hardcode_libdir_separator_F77=:
15193 ;;
15194
15195 osf4* | osf5*) # as osf3* with the addition of -msym flag
15196 if test "$GCC" = yes; then
15197 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15198 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'
15199 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15200 else
15201 allow_undefined_flag_F77=' -expect_unresolved \*'
15202 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'
15203 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~
15204 $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'
15205
15206 # Both c and cxx compiler support -rpath directly
15207 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15208 fi
15209 hardcode_libdir_separator_F77=:
15210 ;;
15211
15212 solaris*)
15213 no_undefined_flag_F77=' -z text'
15214 if test "$GCC" = yes; then
15215 wlarc='${wl}'
15216 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15217 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15218 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15219 else
15220 wlarc=''
15221 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15222 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15223 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15224 fi
15225 hardcode_libdir_flag_spec_F77='-R$libdir'
15226 hardcode_shlibpath_var_F77=no
15227 case $host_os in
15228 solaris2.[0-5] | solaris2.[0-5].*) ;;
15229 *)
15230 # The compiler driver will combine and reorder linker options,
15231 # but understands `-z linker_flag'. GCC discards it without `$wl',
15232 # but is careful enough not to reorder.
15233 # Supported since Solaris 2.6 (maybe 2.5.1?)
15234 if test "$GCC" = yes; then
15235 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15236 else
15237 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15238 fi
15239 ;;
15240 esac
15241 link_all_deplibs_F77=yes
15242 ;;
15243
15244 sunos4*)
15245 if test "x$host_vendor" = xsequent; then
15246 # Use $CC to link under sequent, because it throws in some extra .o
15247 # files that make .init and .fini sections work.
15248 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15249 else
15250 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15251 fi
15252 hardcode_libdir_flag_spec_F77='-L$libdir'
15253 hardcode_direct_F77=yes
15254 hardcode_minus_L_F77=yes
15255 hardcode_shlibpath_var_F77=no
15256 ;;
15257
15258 sysv4)
15259 case $host_vendor in
15260 sni)
15261 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15262 hardcode_direct_F77=yes # is this really true???
15263 ;;
15264 siemens)
15265 ## LD is ld it makes a PLAMLIB
15266 ## CC just makes a GrossModule.
15267 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15268 reload_cmds_F77='$CC -r -o $output$reload_objs'
15269 hardcode_direct_F77=no
15270 ;;
15271 motorola)
15272 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15273 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15274 ;;
15275 esac
15276 runpath_var='LD_RUN_PATH'
15277 hardcode_shlibpath_var_F77=no
15278 ;;
15279
15280 sysv4.3*)
15281 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15282 hardcode_shlibpath_var_F77=no
15283 export_dynamic_flag_spec_F77='-Bexport'
15284 ;;
15285
15286 sysv4*MP*)
15287 if test -d /usr/nec; then
15288 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15289 hardcode_shlibpath_var_F77=no
15290 runpath_var=LD_RUN_PATH
15291 hardcode_runpath_var=yes
15292 ld_shlibs_F77=yes
15293 fi
15294 ;;
15295
15296 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15297 no_undefined_flag_F77='${wl}-z,text'
15298 archive_cmds_need_lc_F77=no
15299 hardcode_shlibpath_var_F77=no
15300 runpath_var='LD_RUN_PATH'
15301
15302 if test "$GCC" = yes; then
15303 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15304 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15305 else
15306 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15307 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15308 fi
15309 ;;
15310
15311 sysv5* | sco3.2v5* | sco5v6*)
15312 # Note: We can NOT use -z defs as we might desire, because we do not
15313 # link with -lc, and that would cause any symbols used from libc to
15314 # always be unresolved, which means just about no library would
15315 # ever link correctly. If we're not using GNU ld we use -z text
15316 # though, which does catch some bad symbols but isn't as heavy-handed
15317 # as -z defs.
15318 no_undefined_flag_F77='${wl}-z,text'
15319 allow_undefined_flag_F77='${wl}-z,nodefs'
15320 archive_cmds_need_lc_F77=no
15321 hardcode_shlibpath_var_F77=no
15322 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15323 hardcode_libdir_separator_F77=':'
15324 link_all_deplibs_F77=yes
15325 export_dynamic_flag_spec_F77='${wl}-Bexport'
15326 runpath_var='LD_RUN_PATH'
15327
15328 if test "$GCC" = yes; then
15329 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15330 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15331 else
15332 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15333 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15334 fi
15335 ;;
15336
15337 uts4*)
15338 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15339 hardcode_libdir_flag_spec_F77='-L$libdir'
15340 hardcode_shlibpath_var_F77=no
15341 ;;
15342
15343 *)
15344 ld_shlibs_F77=no
15345 ;;
15346 esac
15347 fi
15348
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
15350 $as_echo "$ld_shlibs_F77" >&6; }
15351 test "$ld_shlibs_F77" = no && can_build_shared=no
15352
15353 #
15354 # Do we need to explicitly link libc?
15355 #
15356 case "x$archive_cmds_need_lc_F77" in
15357 x|xyes)
15358 # Assume -lc should be added
15359 archive_cmds_need_lc_F77=yes
15360
15361 if test "$enable_shared" = yes && test "$GCC" = yes; then
15362 case $archive_cmds_F77 in
15363 *'~'*)
15364 # FIXME: we may have to deal with multi-command sequences.
15365 ;;
15366 '$CC '*)
15367 # Test whether the compiler implicitly links with -lc since on some
15368 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15369 # to ld, don't add -lc before -lgcc.
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15371 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15372 $rm conftest*
15373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15374
15375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15376 (eval $ac_compile) 2>&5
15377 ac_status=$?
15378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15379 test $ac_status = 0; } 2>conftest.err; then
15380 soname=conftest
15381 lib=conftest
15382 libobjs=conftest.$ac_objext
15383 deplibs=
15384 wl=$lt_prog_compiler_wl_F77
15385 pic_flag=$lt_prog_compiler_pic_F77
15386 compiler_flags=-v
15387 linker_flags=-v
15388 verstring=
15389 output_objdir=.
15390 libname=conftest
15391 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15392 allow_undefined_flag_F77=
15393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15394 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15395 ac_status=$?
15396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15397 test $ac_status = 0; }
15398 then
15399 archive_cmds_need_lc_F77=no
15400 else
15401 archive_cmds_need_lc_F77=yes
15402 fi
15403 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15404 else
15405 cat conftest.err 1>&5
15406 fi
15407 $rm conftest*
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15409 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15410 ;;
15411 esac
15412 fi
15413 ;;
15414 esac
15415
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15417 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15418 library_names_spec=
15419 libname_spec='lib$name'
15420 soname_spec=
15421 shrext_cmds=".so"
15422 postinstall_cmds=
15423 postuninstall_cmds=
15424 finish_cmds=
15425 finish_eval=
15426 shlibpath_var=
15427 shlibpath_overrides_runpath=unknown
15428 version_type=none
15429 dynamic_linker="$host_os ld.so"
15430 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15431
15432 need_lib_prefix=unknown
15433 hardcode_into_libs=no
15434
15435 # when you set need_version to no, make sure it does not cause -set_version
15436 # flags to be left without arguments
15437 need_version=unknown
15438
15439 case $host_os in
15440 aix3*)
15441 version_type=linux
15442 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15443 shlibpath_var=LIBPATH
15444
15445 # AIX 3 has no versioning support, so we append a major version to the name.
15446 soname_spec='${libname}${release}${shared_ext}$major'
15447 ;;
15448
15449 aix[4-9]*)
15450 version_type=linux
15451 need_lib_prefix=no
15452 need_version=no
15453 hardcode_into_libs=yes
15454 if test "$host_cpu" = ia64; then
15455 # AIX 5 supports IA64
15456 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15457 shlibpath_var=LD_LIBRARY_PATH
15458 else
15459 # With GCC up to 2.95.x, collect2 would create an import file
15460 # for dependence libraries. The import file would start with
15461 # the line `#! .'. This would cause the generated library to
15462 # depend on `.', always an invalid library. This was fixed in
15463 # development snapshots of GCC prior to 3.0.
15464 case $host_os in
15465 aix4 | aix4.[01] | aix4.[01].*)
15466 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15467 echo ' yes '
15468 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15469 :
15470 else
15471 can_build_shared=no
15472 fi
15473 ;;
15474 esac
15475 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15476 # soname into executable. Probably we can add versioning support to
15477 # collect2, so additional links can be useful in future.
15478 if test "$aix_use_runtimelinking" = yes; then
15479 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15480 # instead of lib<name>.a to let people know that these are not
15481 # typical AIX shared libraries.
15482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15483 else
15484 # We preserve .a as extension for shared libraries through AIX4.2
15485 # and later when we are not doing run time linking.
15486 library_names_spec='${libname}${release}.a $libname.a'
15487 soname_spec='${libname}${release}${shared_ext}$major'
15488 fi
15489 shlibpath_var=LIBPATH
15490 fi
15491 ;;
15492
15493 amigaos*)
15494 library_names_spec='$libname.ixlibrary $libname.a'
15495 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15496 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'
15497 ;;
15498
15499 beos*)
15500 library_names_spec='${libname}${shared_ext}'
15501 dynamic_linker="$host_os ld.so"
15502 shlibpath_var=LIBRARY_PATH
15503 ;;
15504
15505 bsdi[45]*)
15506 version_type=linux
15507 need_version=no
15508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15509 soname_spec='${libname}${release}${shared_ext}$major'
15510 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15511 shlibpath_var=LD_LIBRARY_PATH
15512 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15513 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15514 # the default ld.so.conf also contains /usr/contrib/lib and
15515 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15516 # libtool to hard-code these into programs
15517 ;;
15518
15519 cygwin* | mingw* | pw32*)
15520 version_type=windows
15521 shrext_cmds=".dll"
15522 need_version=no
15523 need_lib_prefix=no
15524
15525 case $GCC,$host_os in
15526 yes,cygwin* | yes,mingw* | yes,pw32*)
15527 library_names_spec='$libname.dll.a'
15528 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15529 postinstall_cmds='base_file=`basename \${file}`~
15530 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15531 dldir=$destdir/`dirname \$dlpath`~
15532 test -d \$dldir || mkdir -p \$dldir~
15533 $install_prog $dir/$dlname \$dldir/$dlname~
15534 chmod a+x \$dldir/$dlname'
15535 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15536 dlpath=$dir/\$dldll~
15537 $rm \$dlpath'
15538 shlibpath_overrides_runpath=yes
15539
15540 case $host_os in
15541 cygwin*)
15542 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15543 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15544 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15545 ;;
15546 mingw*)
15547 # MinGW DLLs use traditional 'lib' prefix
15548 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15549 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15550 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15551 # It is most probably a Windows format PATH printed by
15552 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15553 # path with ; separators, and with drive letters. We can handle the
15554 # drive letters (cygwin fileutils understands them), so leave them,
15555 # especially as we might pass files found there to a mingw objdump,
15556 # which wouldn't understand a cygwinified path. Ahh.
15557 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15558 else
15559 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15560 fi
15561 ;;
15562 pw32*)
15563 # pw32 DLLs use 'pw' prefix rather than 'lib'
15564 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15565 ;;
15566 esac
15567 ;;
15568
15569 *)
15570 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15571 ;;
15572 esac
15573 dynamic_linker='Win32 ld.exe'
15574 # FIXME: first we should search . and the directory the executable is in
15575 shlibpath_var=PATH
15576 ;;
15577
15578 darwin* | rhapsody*)
15579 dynamic_linker="$host_os dyld"
15580 version_type=darwin
15581 need_lib_prefix=no
15582 need_version=no
15583 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15584 soname_spec='${libname}${release}${major}$shared_ext'
15585 shlibpath_overrides_runpath=yes
15586 shlibpath_var=DYLD_LIBRARY_PATH
15587 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15588
15589 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15590 ;;
15591
15592 dgux*)
15593 version_type=linux
15594 need_lib_prefix=no
15595 need_version=no
15596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15597 soname_spec='${libname}${release}${shared_ext}$major'
15598 shlibpath_var=LD_LIBRARY_PATH
15599 ;;
15600
15601 freebsd1*)
15602 dynamic_linker=no
15603 ;;
15604
15605 freebsd* | dragonfly*)
15606 # DragonFly does not have aout. When/if they implement a new
15607 # versioning mechanism, adjust this.
15608 if test -x /usr/bin/objformat; then
15609 objformat=`/usr/bin/objformat`
15610 else
15611 case $host_os in
15612 freebsd[123]*) objformat=aout ;;
15613 *) objformat=elf ;;
15614 esac
15615 fi
15616 version_type=freebsd-$objformat
15617 case $version_type in
15618 freebsd-elf*)
15619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15620 need_version=no
15621 need_lib_prefix=no
15622 ;;
15623 freebsd-*)
15624 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15625 need_version=yes
15626 ;;
15627 esac
15628 shlibpath_var=LD_LIBRARY_PATH
15629 case $host_os in
15630 freebsd2*)
15631 shlibpath_overrides_runpath=yes
15632 ;;
15633 freebsd3.[01]* | freebsdelf3.[01]*)
15634 shlibpath_overrides_runpath=yes
15635 hardcode_into_libs=yes
15636 ;;
15637 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15638 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15639 shlibpath_overrides_runpath=no
15640 hardcode_into_libs=yes
15641 ;;
15642 *) # from 4.6 on, and DragonFly
15643 shlibpath_overrides_runpath=yes
15644 hardcode_into_libs=yes
15645 ;;
15646 esac
15647 ;;
15648
15649 gnu*)
15650 version_type=linux
15651 need_lib_prefix=no
15652 need_version=no
15653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15654 soname_spec='${libname}${release}${shared_ext}$major'
15655 shlibpath_var=LD_LIBRARY_PATH
15656 hardcode_into_libs=yes
15657 ;;
15658
15659 hpux9* | hpux10* | hpux11*)
15660 # Give a soname corresponding to the major version so that dld.sl refuses to
15661 # link against other versions.
15662 version_type=sunos
15663 need_lib_prefix=no
15664 need_version=no
15665 case $host_cpu in
15666 ia64*)
15667 shrext_cmds='.so'
15668 hardcode_into_libs=yes
15669 dynamic_linker="$host_os dld.so"
15670 shlibpath_var=LD_LIBRARY_PATH
15671 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15673 soname_spec='${libname}${release}${shared_ext}$major'
15674 if test "X$HPUX_IA64_MODE" = X32; then
15675 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15676 else
15677 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15678 fi
15679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15680 ;;
15681 hppa*64*)
15682 shrext_cmds='.sl'
15683 hardcode_into_libs=yes
15684 dynamic_linker="$host_os dld.sl"
15685 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15686 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15688 soname_spec='${libname}${release}${shared_ext}$major'
15689 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15690 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15691 ;;
15692 *)
15693 shrext_cmds='.sl'
15694 dynamic_linker="$host_os dld.sl"
15695 shlibpath_var=SHLIB_PATH
15696 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15698 soname_spec='${libname}${release}${shared_ext}$major'
15699 ;;
15700 esac
15701 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15702 postinstall_cmds='chmod 555 $lib'
15703 ;;
15704
15705 interix[3-9]*)
15706 version_type=linux
15707 need_lib_prefix=no
15708 need_version=no
15709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15710 soname_spec='${libname}${release}${shared_ext}$major'
15711 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15712 shlibpath_var=LD_LIBRARY_PATH
15713 shlibpath_overrides_runpath=no
15714 hardcode_into_libs=yes
15715 ;;
15716
15717 irix5* | irix6* | nonstopux*)
15718 case $host_os in
15719 nonstopux*) version_type=nonstopux ;;
15720 *)
15721 if test "$lt_cv_prog_gnu_ld" = yes; then
15722 version_type=linux
15723 else
15724 version_type=irix
15725 fi ;;
15726 esac
15727 need_lib_prefix=no
15728 need_version=no
15729 soname_spec='${libname}${release}${shared_ext}$major'
15730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15731 case $host_os in
15732 irix5* | nonstopux*)
15733 libsuff= shlibsuff=
15734 ;;
15735 *)
15736 case $LD in # libtool.m4 will add one of these switches to LD
15737 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15738 libsuff= shlibsuff= libmagic=32-bit;;
15739 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15740 libsuff=32 shlibsuff=N32 libmagic=N32;;
15741 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15742 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15743 *) libsuff= shlibsuff= libmagic=never-match;;
15744 esac
15745 ;;
15746 esac
15747 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15748 shlibpath_overrides_runpath=no
15749 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15750 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15751 hardcode_into_libs=yes
15752 ;;
15753
15754 # No shared lib support for Linux oldld, aout, or coff.
15755 linux*oldld* | linux*aout* | linux*coff*)
15756 dynamic_linker=no
15757 ;;
15758
15759 # This must be Linux ELF.
15760 linux* | k*bsd*-gnu)
15761 version_type=linux
15762 need_lib_prefix=no
15763 need_version=no
15764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15765 soname_spec='${libname}${release}${shared_ext}$major'
15766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15767 shlibpath_var=LD_LIBRARY_PATH
15768 shlibpath_overrides_runpath=no
15769 # This implies no fast_install, which is unacceptable.
15770 # Some rework will be needed to allow for fast_install
15771 # before this can be enabled.
15772 hardcode_into_libs=yes
15773
15774 # Append ld.so.conf contents to the search path
15775 if test -f /etc/ld.so.conf; then
15776 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' ' '`
15777 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15778 fi
15779
15780 # We used to test for /lib/ld.so.1 and disable shared libraries on
15781 # powerpc, because MkLinux only supported shared libraries with the
15782 # GNU dynamic linker. Since this was broken with cross compilers,
15783 # most powerpc-linux boxes support dynamic linking these days and
15784 # people can always --disable-shared, the test was removed, and we
15785 # assume the GNU/Linux dynamic linker is in use.
15786 dynamic_linker='GNU/Linux ld.so'
15787 ;;
15788
15789 netbsd*)
15790 version_type=sunos
15791 need_lib_prefix=no
15792 need_version=no
15793 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15796 dynamic_linker='NetBSD (a.out) ld.so'
15797 else
15798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15799 soname_spec='${libname}${release}${shared_ext}$major'
15800 dynamic_linker='NetBSD ld.elf_so'
15801 fi
15802 shlibpath_var=LD_LIBRARY_PATH
15803 shlibpath_overrides_runpath=yes
15804 hardcode_into_libs=yes
15805 ;;
15806
15807 newsos6)
15808 version_type=linux
15809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15810 shlibpath_var=LD_LIBRARY_PATH
15811 shlibpath_overrides_runpath=yes
15812 ;;
15813
15814 nto-qnx*)
15815 version_type=linux
15816 need_lib_prefix=no
15817 need_version=no
15818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15819 soname_spec='${libname}${release}${shared_ext}$major'
15820 shlibpath_var=LD_LIBRARY_PATH
15821 shlibpath_overrides_runpath=yes
15822 ;;
15823
15824 openbsd*)
15825 version_type=sunos
15826 sys_lib_dlsearch_path_spec="/usr/lib"
15827 need_lib_prefix=no
15828 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15829 case $host_os in
15830 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15831 *) need_version=no ;;
15832 esac
15833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15835 shlibpath_var=LD_LIBRARY_PATH
15836 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15837 case $host_os in
15838 openbsd2.[89] | openbsd2.[89].*)
15839 shlibpath_overrides_runpath=no
15840 ;;
15841 *)
15842 shlibpath_overrides_runpath=yes
15843 ;;
15844 esac
15845 else
15846 shlibpath_overrides_runpath=yes
15847 fi
15848 ;;
15849
15850 os2*)
15851 libname_spec='$name'
15852 shrext_cmds=".dll"
15853 need_lib_prefix=no
15854 library_names_spec='$libname${shared_ext} $libname.a'
15855 dynamic_linker='OS/2 ld.exe'
15856 shlibpath_var=LIBPATH
15857 ;;
15858
15859 osf3* | osf4* | osf5*)
15860 version_type=osf
15861 need_lib_prefix=no
15862 need_version=no
15863 soname_spec='${libname}${release}${shared_ext}$major'
15864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15865 shlibpath_var=LD_LIBRARY_PATH
15866 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15867 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15868 ;;
15869
15870 rdos*)
15871 dynamic_linker=no
15872 ;;
15873
15874 solaris*)
15875 version_type=linux
15876 need_lib_prefix=no
15877 need_version=no
15878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15879 soname_spec='${libname}${release}${shared_ext}$major'
15880 shlibpath_var=LD_LIBRARY_PATH
15881 shlibpath_overrides_runpath=yes
15882 hardcode_into_libs=yes
15883 # ldd complains unless libraries are executable
15884 postinstall_cmds='chmod +x $lib'
15885 ;;
15886
15887 sunos4*)
15888 version_type=sunos
15889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15890 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15891 shlibpath_var=LD_LIBRARY_PATH
15892 shlibpath_overrides_runpath=yes
15893 if test "$with_gnu_ld" = yes; then
15894 need_lib_prefix=no
15895 fi
15896 need_version=yes
15897 ;;
15898
15899 sysv4 | sysv4.3*)
15900 version_type=linux
15901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15902 soname_spec='${libname}${release}${shared_ext}$major'
15903 shlibpath_var=LD_LIBRARY_PATH
15904 case $host_vendor in
15905 sni)
15906 shlibpath_overrides_runpath=no
15907 need_lib_prefix=no
15908 export_dynamic_flag_spec='${wl}-Blargedynsym'
15909 runpath_var=LD_RUN_PATH
15910 ;;
15911 siemens)
15912 need_lib_prefix=no
15913 ;;
15914 motorola)
15915 need_lib_prefix=no
15916 need_version=no
15917 shlibpath_overrides_runpath=no
15918 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15919 ;;
15920 esac
15921 ;;
15922
15923 sysv4*MP*)
15924 if test -d /usr/nec ;then
15925 version_type=linux
15926 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15927 soname_spec='$libname${shared_ext}.$major'
15928 shlibpath_var=LD_LIBRARY_PATH
15929 fi
15930 ;;
15931
15932 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15933 version_type=freebsd-elf
15934 need_lib_prefix=no
15935 need_version=no
15936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15937 soname_spec='${libname}${release}${shared_ext}$major'
15938 shlibpath_var=LD_LIBRARY_PATH
15939 hardcode_into_libs=yes
15940 if test "$with_gnu_ld" = yes; then
15941 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15942 shlibpath_overrides_runpath=no
15943 else
15944 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15945 shlibpath_overrides_runpath=yes
15946 case $host_os in
15947 sco3.2v5*)
15948 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15949 ;;
15950 esac
15951 fi
15952 sys_lib_dlsearch_path_spec='/usr/lib'
15953 ;;
15954
15955 uts4*)
15956 version_type=linux
15957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15958 soname_spec='${libname}${release}${shared_ext}$major'
15959 shlibpath_var=LD_LIBRARY_PATH
15960 ;;
15961
15962 *)
15963 dynamic_linker=no
15964 ;;
15965 esac
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15967 $as_echo "$dynamic_linker" >&6; }
15968 test "$dynamic_linker" = no && can_build_shared=no
15969
15970 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
15971 $as_echo_n "(cached) " >&6
15972 else
15973 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15974 fi
15975
15976 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15977 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
15978 $as_echo_n "(cached) " >&6
15979 else
15980 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15981 fi
15982
15983 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15984
15985 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15986 if test "$GCC" = yes; then
15987 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15988 fi
15989
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15991 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15992 hardcode_action_F77=
15993 if test -n "$hardcode_libdir_flag_spec_F77" || \
15994 test -n "$runpath_var_F77" || \
15995 test "X$hardcode_automatic_F77" = "Xyes" ; then
15996
15997 # We can hardcode non-existant directories.
15998 if test "$hardcode_direct_F77" != no &&
15999 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16000 # have to relink, otherwise we might link with an installed library
16001 # when we should be linking with a yet-to-be-installed one
16002 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16003 test "$hardcode_minus_L_F77" != no; then
16004 # Linking always hardcodes the temporary library directory.
16005 hardcode_action_F77=relink
16006 else
16007 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16008 hardcode_action_F77=immediate
16009 fi
16010 else
16011 # We cannot hardcode anything, or else we can only hardcode existing
16012 # directories.
16013 hardcode_action_F77=unsupported
16014 fi
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
16016 $as_echo "$hardcode_action_F77" >&6; }
16017
16018 if test "$hardcode_action_F77" = relink; then
16019 # Fast installation is not supported
16020 enable_fast_install=no
16021 elif test "$shlibpath_overrides_runpath" = yes ||
16022 test "$enable_shared" = no; then
16023 # Fast installation is not necessary
16024 enable_fast_install=needless
16025 fi
16026
16027
16028 # The else clause should only fire when bootstrapping the
16029 # libtool distribution, otherwise you forgot to ship ltmain.sh
16030 # with your package, and you will get complaints that there are
16031 # no rules to generate ltmain.sh.
16032 if test -f "$ltmain"; then
16033 # See if we are running on zsh, and set the options which allow our commands through
16034 # without removal of \ escapes.
16035 if test -n "${ZSH_VERSION+set}" ; then
16036 setopt NO_GLOB_SUBST
16037 fi
16038 # Now quote all the things that may contain metacharacters while being
16039 # careful not to overquote the AC_SUBSTed values. We take copies of the
16040 # variables and quote the copies for generation of the libtool script.
16041 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16042 SED SHELL STRIP \
16043 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16044 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16045 deplibs_check_method reload_flag reload_cmds need_locks \
16046 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16047 lt_cv_sys_global_symbol_to_c_name_address \
16048 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16049 old_postinstall_cmds old_postuninstall_cmds \
16050 compiler_F77 \
16051 CC_F77 \
16052 LD_F77 \
16053 lt_prog_compiler_wl_F77 \
16054 lt_prog_compiler_pic_F77 \
16055 lt_prog_compiler_static_F77 \
16056 lt_prog_compiler_no_builtin_flag_F77 \
16057 export_dynamic_flag_spec_F77 \
16058 thread_safe_flag_spec_F77 \
16059 whole_archive_flag_spec_F77 \
16060 enable_shared_with_static_runtimes_F77 \
16061 old_archive_cmds_F77 \
16062 old_archive_from_new_cmds_F77 \
16063 predep_objects_F77 \
16064 postdep_objects_F77 \
16065 predeps_F77 \
16066 postdeps_F77 \
16067 compiler_lib_search_path_F77 \
16068 compiler_lib_search_dirs_F77 \
16069 archive_cmds_F77 \
16070 archive_expsym_cmds_F77 \
16071 postinstall_cmds_F77 \
16072 postuninstall_cmds_F77 \
16073 old_archive_from_expsyms_cmds_F77 \
16074 allow_undefined_flag_F77 \
16075 no_undefined_flag_F77 \
16076 export_symbols_cmds_F77 \
16077 hardcode_libdir_flag_spec_F77 \
16078 hardcode_libdir_flag_spec_ld_F77 \
16079 hardcode_libdir_separator_F77 \
16080 hardcode_automatic_F77 \
16081 module_cmds_F77 \
16082 module_expsym_cmds_F77 \
16083 lt_cv_prog_compiler_c_o_F77 \
16084 fix_srcfile_path_F77 \
16085 exclude_expsyms_F77 \
16086 include_expsyms_F77; do
16087
16088 case $var in
16089 old_archive_cmds_F77 | \
16090 old_archive_from_new_cmds_F77 | \
16091 archive_cmds_F77 | \
16092 archive_expsym_cmds_F77 | \
16093 module_cmds_F77 | \
16094 module_expsym_cmds_F77 | \
16095 old_archive_from_expsyms_cmds_F77 | \
16096 export_symbols_cmds_F77 | \
16097 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16098 postinstall_cmds | postuninstall_cmds | \
16099 old_postinstall_cmds | old_postuninstall_cmds | \
16100 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16101 # Double-quote double-evaled strings.
16102 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16103 ;;
16104 *)
16105 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16106 ;;
16107 esac
16108 done
16109
16110 case $lt_echo in
16111 *'\$0 --fallback-echo"')
16112 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16113 ;;
16114 esac
16115
16116 cfgfile="$ofile"
16117
16118 cat <<__EOF__ >> "$cfgfile"
16119 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16120
16121 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16122
16123 # Shell to use when invoking shell scripts.
16124 SHELL=$lt_SHELL
16125
16126 # Whether or not to build shared libraries.
16127 build_libtool_libs=$enable_shared
16128
16129 # Whether or not to build static libraries.
16130 build_old_libs=$enable_static
16131
16132 # Whether or not to add -lc for building shared libraries.
16133 build_libtool_need_lc=$archive_cmds_need_lc_F77
16134
16135 # Whether or not to disallow shared libs when runtime libs are static
16136 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16137
16138 # Whether or not to optimize for fast installation.
16139 fast_install=$enable_fast_install
16140
16141 # The host system.
16142 host_alias=$host_alias
16143 host=$host
16144 host_os=$host_os
16145
16146 # The build system.
16147 build_alias=$build_alias
16148 build=$build
16149 build_os=$build_os
16150
16151 # An echo program that does not interpret backslashes.
16152 echo=$lt_echo
16153
16154 # The archiver.
16155 AR=$lt_AR
16156 AR_FLAGS=$lt_AR_FLAGS
16157
16158 # A C compiler.
16159 LTCC=$lt_LTCC
16160
16161 # LTCC compiler flags.
16162 LTCFLAGS=$lt_LTCFLAGS
16163
16164 # A language-specific compiler.
16165 CC=$lt_compiler_F77
16166
16167 # Is the compiler the GNU C compiler?
16168 with_gcc=$GCC_F77
16169
16170 # An ERE matcher.
16171 EGREP=$lt_EGREP
16172
16173 # The linker used to build libraries.
16174 LD=$lt_LD_F77
16175
16176 # Whether we need hard or soft links.
16177 LN_S=$lt_LN_S
16178
16179 # A BSD-compatible nm program.
16180 NM=$lt_NM
16181
16182 # A symbol stripping program
16183 STRIP=$lt_STRIP
16184
16185 # Used to examine libraries when file_magic_cmd begins "file"
16186 MAGIC_CMD=$MAGIC_CMD
16187
16188 # Used on cygwin: DLL creation program.
16189 DLLTOOL="$DLLTOOL"
16190
16191 # Used on cygwin: object dumper.
16192 OBJDUMP="$OBJDUMP"
16193
16194 # Used on cygwin: assembler.
16195 AS="$AS"
16196
16197 # The name of the directory that contains temporary libtool files.
16198 objdir=$objdir
16199
16200 # How to create reloadable object files.
16201 reload_flag=$lt_reload_flag
16202 reload_cmds=$lt_reload_cmds
16203
16204 # How to pass a linker flag through the compiler.
16205 wl=$lt_lt_prog_compiler_wl_F77
16206
16207 # Object file suffix (normally "o").
16208 objext="$ac_objext"
16209
16210 # Old archive suffix (normally "a").
16211 libext="$libext"
16212
16213 # Shared library suffix (normally ".so").
16214 shrext_cmds='$shrext_cmds'
16215
16216 # Executable file suffix (normally "").
16217 exeext="$exeext"
16218
16219 # Additional compiler flags for building library objects.
16220 pic_flag=$lt_lt_prog_compiler_pic_F77
16221 pic_mode=$pic_mode
16222
16223 # What is the maximum length of a command?
16224 max_cmd_len=$lt_cv_sys_max_cmd_len
16225
16226 # Does compiler simultaneously support -c and -o options?
16227 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16228
16229 # Must we lock files when doing compilation?
16230 need_locks=$lt_need_locks
16231
16232 # Do we need the lib prefix for modules?
16233 need_lib_prefix=$need_lib_prefix
16234
16235 # Do we need a version for libraries?
16236 need_version=$need_version
16237
16238 # Whether dlopen is supported.
16239 dlopen_support=$enable_dlopen
16240
16241 # Whether dlopen of programs is supported.
16242 dlopen_self=$enable_dlopen_self
16243
16244 # Whether dlopen of statically linked programs is supported.
16245 dlopen_self_static=$enable_dlopen_self_static
16246
16247 # Compiler flag to prevent dynamic linking.
16248 link_static_flag=$lt_lt_prog_compiler_static_F77
16249
16250 # Compiler flag to turn off builtin functions.
16251 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16252
16253 # Compiler flag to allow reflexive dlopens.
16254 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16255
16256 # Compiler flag to generate shared objects directly from archives.
16257 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16258
16259 # Compiler flag to generate thread-safe objects.
16260 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16261
16262 # Library versioning type.
16263 version_type=$version_type
16264
16265 # Format of library name prefix.
16266 libname_spec=$lt_libname_spec
16267
16268 # List of archive names. First name is the real one, the rest are links.
16269 # The last name is the one that the linker finds with -lNAME.
16270 library_names_spec=$lt_library_names_spec
16271
16272 # The coded name of the library, if different from the real name.
16273 soname_spec=$lt_soname_spec
16274
16275 # Commands used to build and install an old-style archive.
16276 RANLIB=$lt_RANLIB
16277 old_archive_cmds=$lt_old_archive_cmds_F77
16278 old_postinstall_cmds=$lt_old_postinstall_cmds
16279 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16280
16281 # Create an old-style archive from a shared archive.
16282 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16283
16284 # Create a temporary old-style archive to link instead of a shared archive.
16285 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16286
16287 # Commands used to build and install a shared archive.
16288 archive_cmds=$lt_archive_cmds_F77
16289 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16290 postinstall_cmds=$lt_postinstall_cmds
16291 postuninstall_cmds=$lt_postuninstall_cmds
16292
16293 # Commands used to build a loadable module (assumed same as above if empty)
16294 module_cmds=$lt_module_cmds_F77
16295 module_expsym_cmds=$lt_module_expsym_cmds_F77
16296
16297 # Commands to strip libraries.
16298 old_striplib=$lt_old_striplib
16299 striplib=$lt_striplib
16300
16301 # Dependencies to place before the objects being linked to create a
16302 # shared library.
16303 predep_objects=$lt_predep_objects_F77
16304
16305 # Dependencies to place after the objects being linked to create a
16306 # shared library.
16307 postdep_objects=$lt_postdep_objects_F77
16308
16309 # Dependencies to place before the objects being linked to create a
16310 # shared library.
16311 predeps=$lt_predeps_F77
16312
16313 # Dependencies to place after the objects being linked to create a
16314 # shared library.
16315 postdeps=$lt_postdeps_F77
16316
16317 # The directories searched by this compiler when creating a shared
16318 # library
16319 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16320
16321 # The library search path used internally by the compiler when linking
16322 # a shared library.
16323 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16324
16325 # Method to check whether dependent libraries are shared objects.
16326 deplibs_check_method=$lt_deplibs_check_method
16327
16328 # Command to use when deplibs_check_method == file_magic.
16329 file_magic_cmd=$lt_file_magic_cmd
16330
16331 # Flag that allows shared libraries with undefined symbols to be built.
16332 allow_undefined_flag=$lt_allow_undefined_flag_F77
16333
16334 # Flag that forces no undefined symbols.
16335 no_undefined_flag=$lt_no_undefined_flag_F77
16336
16337 # Commands used to finish a libtool library installation in a directory.
16338 finish_cmds=$lt_finish_cmds
16339
16340 # Same as above, but a single script fragment to be evaled but not shown.
16341 finish_eval=$lt_finish_eval
16342
16343 # Take the output of nm and produce a listing of raw symbols and C names.
16344 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16345
16346 # Transform the output of nm in a proper C declaration
16347 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16348
16349 # Transform the output of nm in a C name address pair
16350 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16351
16352 # This is the shared library runtime path variable.
16353 runpath_var=$runpath_var
16354
16355 # This is the shared library path variable.
16356 shlibpath_var=$shlibpath_var
16357
16358 # Is shlibpath searched before the hard-coded library search path?
16359 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16360
16361 # How to hardcode a shared library path into an executable.
16362 hardcode_action=$hardcode_action_F77
16363
16364 # Whether we should hardcode library paths into libraries.
16365 hardcode_into_libs=$hardcode_into_libs
16366
16367 # Flag to hardcode \$libdir into a binary during linking.
16368 # This must work even if \$libdir does not exist.
16369 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16370
16371 # If ld is used when linking, flag to hardcode \$libdir into
16372 # a binary during linking. This must work even if \$libdir does
16373 # not exist.
16374 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16375
16376 # Whether we need a single -rpath flag with a separated argument.
16377 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16378
16379 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16380 # resulting binary.
16381 hardcode_direct=$hardcode_direct_F77
16382
16383 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16384 # resulting binary.
16385 hardcode_minus_L=$hardcode_minus_L_F77
16386
16387 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16388 # the resulting binary.
16389 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16390
16391 # Set to yes if building a shared library automatically hardcodes DIR into the library
16392 # and all subsequent libraries and executables linked against it.
16393 hardcode_automatic=$hardcode_automatic_F77
16394
16395 # Variables whose values should be saved in libtool wrapper scripts and
16396 # restored at relink time.
16397 variables_saved_for_relink="$variables_saved_for_relink"
16398
16399 # Whether libtool must link a program against all its dependency libraries.
16400 link_all_deplibs=$link_all_deplibs_F77
16401
16402 # Compile-time system search path for libraries
16403 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16404
16405 # Run-time system search path for libraries
16406 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16407
16408 # Fix the shell variable \$srcfile for the compiler.
16409 fix_srcfile_path=$lt_fix_srcfile_path
16410
16411 # Set to yes if exported symbols are required.
16412 always_export_symbols=$always_export_symbols_F77
16413
16414 # The commands to list exported symbols.
16415 export_symbols_cmds=$lt_export_symbols_cmds_F77
16416
16417 # The commands to extract the exported symbol list from a shared archive.
16418 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16419
16420 # Symbols that should not be listed in the preloaded symbols.
16421 exclude_expsyms=$lt_exclude_expsyms_F77
16422
16423 # Symbols that must always be exported.
16424 include_expsyms=$lt_include_expsyms_F77
16425
16426 # ### END LIBTOOL TAG CONFIG: $tagname
16427
16428 __EOF__
16429
16430
16431 else
16432 # If there is no Makefile yet, we rely on a make rule to execute
16433 # `config.status --recheck' to rerun these tests and create the
16434 # libtool script then.
16435 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16436 if test -f "$ltmain_in"; then
16437 test -f Makefile && make "$ltmain"
16438 fi
16439 fi
16440
16441
16442 ac_ext=cpp
16443 ac_cpp='$CXXCPP $CPPFLAGS'
16444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16447
16448 CC="$lt_save_CC"
16449
16450 else
16451 tagname=""
16452 fi
16453 ;;
16454
16455 GCJ)
16456 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16457
16458
16459 # Source file extension for Java test sources.
16460 ac_ext=java
16461
16462 # Object file extension for compiled Java test sources.
16463 objext=o
16464 objext_GCJ=$objext
16465
16466 # Code to be used in simple compile tests
16467 lt_simple_compile_test_code="class foo {}"
16468
16469 # Code to be used in simple link tests
16470 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16471
16472 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16473
16474 # If no C compiler was specified, use CC.
16475 LTCC=${LTCC-"$CC"}
16476
16477 # If no C compiler flags were specified, use CFLAGS.
16478 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16479
16480 # Allow CC to be a program name with arguments.
16481 compiler=$CC
16482
16483
16484 # save warnings/boilerplate of simple test code
16485 ac_outfile=conftest.$ac_objext
16486 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16487 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16488 _lt_compiler_boilerplate=`cat conftest.err`
16489 $rm conftest*
16490
16491 ac_outfile=conftest.$ac_objext
16492 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16493 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16494 _lt_linker_boilerplate=`cat conftest.err`
16495 $rm -r conftest*
16496
16497
16498 # Allow CC to be a program name with arguments.
16499 lt_save_CC="$CC"
16500 CC=${GCJ-"gcj"}
16501 compiler=$CC
16502 compiler_GCJ=$CC
16503 for cc_temp in $compiler""; do
16504 case $cc_temp in
16505 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16506 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16507 \-*) ;;
16508 *) break;;
16509 esac
16510 done
16511 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16512
16513
16514 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16515 archive_cmds_need_lc_GCJ=no
16516
16517 old_archive_cmds_GCJ=$old_archive_cmds
16518
16519
16520 lt_prog_compiler_no_builtin_flag_GCJ=
16521
16522 if test "$GCC" = yes; then
16523 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16524
16525
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16527 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16528 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
16529 $as_echo_n "(cached) " >&6
16530 else
16531 lt_cv_prog_compiler_rtti_exceptions=no
16532 ac_outfile=conftest.$ac_objext
16533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16534 lt_compiler_flag="-fno-rtti -fno-exceptions"
16535 # Insert the option either (1) after the last *FLAGS variable, or
16536 # (2) before a word containing "conftest.", or (3) at the end.
16537 # Note that $ac_compile itself does not contain backslashes and begins
16538 # with a dollar sign (not a hyphen), so the echo should work correctly.
16539 # The option is referenced via a variable to avoid confusing sed.
16540 lt_compile=`echo "$ac_compile" | $SED \
16541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16543 -e 's:$: $lt_compiler_flag:'`
16544 (eval echo "\"\$as_me:16544: $lt_compile\"" >&5)
16545 (eval "$lt_compile" 2>conftest.err)
16546 ac_status=$?
16547 cat conftest.err >&5
16548 echo "$as_me:16548: \$? = $ac_status" >&5
16549 if (exit $ac_status) && test -s "$ac_outfile"; then
16550 # The compiler can only warn and ignore the option if not recognized
16551 # So say no if there are warnings other than the usual output.
16552 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16554 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16555 lt_cv_prog_compiler_rtti_exceptions=yes
16556 fi
16557 fi
16558 $rm conftest*
16559
16560 fi
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16562 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16563
16564 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16565 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16566 else
16567 :
16568 fi
16569
16570 fi
16571
16572 lt_prog_compiler_wl_GCJ=
16573 lt_prog_compiler_pic_GCJ=
16574 lt_prog_compiler_static_GCJ=
16575
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16577 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16578
16579 if test "$GCC" = yes; then
16580 lt_prog_compiler_wl_GCJ='-Wl,'
16581 lt_prog_compiler_static_GCJ='-static'
16582
16583 case $host_os in
16584 aix*)
16585 # All AIX code is PIC.
16586 if test "$host_cpu" = ia64; then
16587 # AIX 5 now supports IA64 processor
16588 lt_prog_compiler_static_GCJ='-Bstatic'
16589 fi
16590 ;;
16591
16592 amigaos*)
16593 # FIXME: we need at least 68020 code to build shared libraries, but
16594 # adding the `-m68020' flag to GCC prevents building anything better,
16595 # like `-m68040'.
16596 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16597 ;;
16598
16599 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16600 # PIC is the default for these OSes.
16601 ;;
16602
16603 mingw* | cygwin* | pw32* | os2*)
16604 # This hack is so that the source file can tell whether it is being
16605 # built for inclusion in a dll (and should export symbols for example).
16606 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16607 # (--disable-auto-import) libraries
16608
16609 ;;
16610
16611 darwin* | rhapsody*)
16612 # PIC is the default on this platform
16613 # Common symbols not allowed in MH_DYLIB files
16614 lt_prog_compiler_pic_GCJ='-fno-common'
16615 ;;
16616
16617 interix[3-9]*)
16618 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16619 # Instead, we relocate shared libraries at runtime.
16620 ;;
16621
16622 msdosdjgpp*)
16623 # Just because we use GCC doesn't mean we suddenly get shared libraries
16624 # on systems that don't support them.
16625 lt_prog_compiler_can_build_shared_GCJ=no
16626 enable_shared=no
16627 ;;
16628
16629 sysv4*MP*)
16630 if test -d /usr/nec; then
16631 lt_prog_compiler_pic_GCJ=-Kconform_pic
16632 fi
16633 ;;
16634
16635 hpux*)
16636 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16637 # not for PA HP-UX.
16638 case $host_cpu in
16639 hppa*64*|ia64*)
16640 # +Z the default
16641 ;;
16642 *)
16643 lt_prog_compiler_pic_GCJ='-fPIC'
16644 ;;
16645 esac
16646 ;;
16647
16648 *)
16649 lt_prog_compiler_pic_GCJ='-fPIC'
16650 ;;
16651 esac
16652 else
16653 # PORTME Check for flag to pass linker flags through the system compiler.
16654 case $host_os in
16655 aix*)
16656 lt_prog_compiler_wl_GCJ='-Wl,'
16657 if test "$host_cpu" = ia64; then
16658 # AIX 5 now supports IA64 processor
16659 lt_prog_compiler_static_GCJ='-Bstatic'
16660 else
16661 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16662 fi
16663 ;;
16664 darwin*)
16665 # PIC is the default on this platform
16666 # Common symbols not allowed in MH_DYLIB files
16667 case $cc_basename in
16668 xlc*)
16669 lt_prog_compiler_pic_GCJ='-qnocommon'
16670 lt_prog_compiler_wl_GCJ='-Wl,'
16671 ;;
16672 esac
16673 ;;
16674
16675 mingw* | cygwin* | pw32* | os2*)
16676 # This hack is so that the source file can tell whether it is being
16677 # built for inclusion in a dll (and should export symbols for example).
16678
16679 ;;
16680
16681 hpux9* | hpux10* | hpux11*)
16682 lt_prog_compiler_wl_GCJ='-Wl,'
16683 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16684 # not for PA HP-UX.
16685 case $host_cpu in
16686 hppa*64*|ia64*)
16687 # +Z the default
16688 ;;
16689 *)
16690 lt_prog_compiler_pic_GCJ='+Z'
16691 ;;
16692 esac
16693 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16694 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16695 ;;
16696
16697 irix5* | irix6* | nonstopux*)
16698 lt_prog_compiler_wl_GCJ='-Wl,'
16699 # PIC (with -KPIC) is the default.
16700 lt_prog_compiler_static_GCJ='-non_shared'
16701 ;;
16702
16703 newsos6)
16704 lt_prog_compiler_pic_GCJ='-KPIC'
16705 lt_prog_compiler_static_GCJ='-Bstatic'
16706 ;;
16707
16708 linux* | k*bsd*-gnu)
16709 case $cc_basename in
16710 icc* | ecc*)
16711 lt_prog_compiler_wl_GCJ='-Wl,'
16712 lt_prog_compiler_pic_GCJ='-KPIC'
16713 lt_prog_compiler_static_GCJ='-static'
16714 ;;
16715 pgcc* | pgf77* | pgf90* | pgf95*)
16716 # Portland Group compilers (*not* the Pentium gcc compiler,
16717 # which looks to be a dead project)
16718 lt_prog_compiler_wl_GCJ='-Wl,'
16719 lt_prog_compiler_pic_GCJ='-fpic'
16720 lt_prog_compiler_static_GCJ='-Bstatic'
16721 ;;
16722 ccc*)
16723 lt_prog_compiler_wl_GCJ='-Wl,'
16724 # All Alpha code is PIC.
16725 lt_prog_compiler_static_GCJ='-non_shared'
16726 ;;
16727 *)
16728 case `$CC -V 2>&1 | sed 5q` in
16729 *Sun\ C*)
16730 # Sun C 5.9
16731 lt_prog_compiler_pic_GCJ='-KPIC'
16732 lt_prog_compiler_static_GCJ='-Bstatic'
16733 lt_prog_compiler_wl_GCJ='-Wl,'
16734 ;;
16735 *Sun\ F*)
16736 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16737 lt_prog_compiler_pic_GCJ='-KPIC'
16738 lt_prog_compiler_static_GCJ='-Bstatic'
16739 lt_prog_compiler_wl_GCJ=''
16740 ;;
16741 esac
16742 ;;
16743 esac
16744 ;;
16745
16746 osf3* | osf4* | osf5*)
16747 lt_prog_compiler_wl_GCJ='-Wl,'
16748 # All OSF/1 code is PIC.
16749 lt_prog_compiler_static_GCJ='-non_shared'
16750 ;;
16751
16752 rdos*)
16753 lt_prog_compiler_static_GCJ='-non_shared'
16754 ;;
16755
16756 solaris*)
16757 lt_prog_compiler_pic_GCJ='-KPIC'
16758 lt_prog_compiler_static_GCJ='-Bstatic'
16759 case $cc_basename in
16760 f77* | f90* | f95*)
16761 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16762 *)
16763 lt_prog_compiler_wl_GCJ='-Wl,';;
16764 esac
16765 ;;
16766
16767 sunos4*)
16768 lt_prog_compiler_wl_GCJ='-Qoption ld '
16769 lt_prog_compiler_pic_GCJ='-PIC'
16770 lt_prog_compiler_static_GCJ='-Bstatic'
16771 ;;
16772
16773 sysv4 | sysv4.2uw2* | sysv4.3*)
16774 lt_prog_compiler_wl_GCJ='-Wl,'
16775 lt_prog_compiler_pic_GCJ='-KPIC'
16776 lt_prog_compiler_static_GCJ='-Bstatic'
16777 ;;
16778
16779 sysv4*MP*)
16780 if test -d /usr/nec ;then
16781 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16782 lt_prog_compiler_static_GCJ='-Bstatic'
16783 fi
16784 ;;
16785
16786 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16787 lt_prog_compiler_wl_GCJ='-Wl,'
16788 lt_prog_compiler_pic_GCJ='-KPIC'
16789 lt_prog_compiler_static_GCJ='-Bstatic'
16790 ;;
16791
16792 unicos*)
16793 lt_prog_compiler_wl_GCJ='-Wl,'
16794 lt_prog_compiler_can_build_shared_GCJ=no
16795 ;;
16796
16797 uts4*)
16798 lt_prog_compiler_pic_GCJ='-pic'
16799 lt_prog_compiler_static_GCJ='-Bstatic'
16800 ;;
16801
16802 *)
16803 lt_prog_compiler_can_build_shared_GCJ=no
16804 ;;
16805 esac
16806 fi
16807
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16809 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16810
16811 #
16812 # Check to make sure the PIC flag actually works.
16813 #
16814 if test -n "$lt_prog_compiler_pic_GCJ"; then
16815
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16817 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16818 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
16819 $as_echo_n "(cached) " >&6
16820 else
16821 lt_cv_prog_compiler_pic_works_GCJ=no
16822 ac_outfile=conftest.$ac_objext
16823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16824 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16825 # Insert the option either (1) after the last *FLAGS variable, or
16826 # (2) before a word containing "conftest.", or (3) at the end.
16827 # Note that $ac_compile itself does not contain backslashes and begins
16828 # with a dollar sign (not a hyphen), so the echo should work correctly.
16829 # The option is referenced via a variable to avoid confusing sed.
16830 lt_compile=`echo "$ac_compile" | $SED \
16831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16833 -e 's:$: $lt_compiler_flag:'`
16834 (eval echo "\"\$as_me:16834: $lt_compile\"" >&5)
16835 (eval "$lt_compile" 2>conftest.err)
16836 ac_status=$?
16837 cat conftest.err >&5
16838 echo "$as_me:16838: \$? = $ac_status" >&5
16839 if (exit $ac_status) && test -s "$ac_outfile"; then
16840 # The compiler can only warn and ignore the option if not recognized
16841 # So say no if there are warnings other than the usual output.
16842 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16844 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16845 lt_cv_prog_compiler_pic_works_GCJ=yes
16846 fi
16847 fi
16848 $rm conftest*
16849
16850 fi
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16852 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16853
16854 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16855 case $lt_prog_compiler_pic_GCJ in
16856 "" | " "*) ;;
16857 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16858 esac
16859 else
16860 lt_prog_compiler_pic_GCJ=
16861 lt_prog_compiler_can_build_shared_GCJ=no
16862 fi
16863
16864 fi
16865 case $host_os in
16866 # For platforms which do not support PIC, -DPIC is meaningless:
16867 *djgpp*)
16868 lt_prog_compiler_pic_GCJ=
16869 ;;
16870 *)
16871 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16872 ;;
16873 esac
16874
16875 #
16876 # Check to make sure the static flag actually works.
16877 #
16878 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16880 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16881 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
16882 $as_echo_n "(cached) " >&6
16883 else
16884 lt_cv_prog_compiler_static_works_GCJ=no
16885 save_LDFLAGS="$LDFLAGS"
16886 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16887 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16888 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16889 # The linker can only warn and ignore the option if not recognized
16890 # So say no if there are warnings
16891 if test -s conftest.err; then
16892 # Append any errors to the config.log.
16893 cat conftest.err 1>&5
16894 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16895 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16896 if diff conftest.exp conftest.er2 >/dev/null; then
16897 lt_cv_prog_compiler_static_works_GCJ=yes
16898 fi
16899 else
16900 lt_cv_prog_compiler_static_works_GCJ=yes
16901 fi
16902 fi
16903 $rm -r conftest*
16904 LDFLAGS="$save_LDFLAGS"
16905
16906 fi
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16908 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16909
16910 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16911 :
16912 else
16913 lt_prog_compiler_static_GCJ=
16914 fi
16915
16916
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16918 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16919 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
16920 $as_echo_n "(cached) " >&6
16921 else
16922 lt_cv_prog_compiler_c_o_GCJ=no
16923 $rm -r conftest 2>/dev/null
16924 mkdir conftest
16925 cd conftest
16926 mkdir out
16927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16928
16929 lt_compiler_flag="-o out/conftest2.$ac_objext"
16930 # Insert the option either (1) after the last *FLAGS variable, or
16931 # (2) before a word containing "conftest.", or (3) at the end.
16932 # Note that $ac_compile itself does not contain backslashes and begins
16933 # with a dollar sign (not a hyphen), so the echo should work correctly.
16934 lt_compile=`echo "$ac_compile" | $SED \
16935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16937 -e 's:$: $lt_compiler_flag:'`
16938 (eval echo "\"\$as_me:16938: $lt_compile\"" >&5)
16939 (eval "$lt_compile" 2>out/conftest.err)
16940 ac_status=$?
16941 cat out/conftest.err >&5
16942 echo "$as_me:16942: \$? = $ac_status" >&5
16943 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16944 then
16945 # The compiler can only warn and ignore the option if not recognized
16946 # So say no if there are warnings
16947 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16948 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16949 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16950 lt_cv_prog_compiler_c_o_GCJ=yes
16951 fi
16952 fi
16953 chmod u+w . 2>&5
16954 $rm conftest*
16955 # SGI C++ compiler will create directory out/ii_files/ for
16956 # template instantiation
16957 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16958 $rm out/* && rmdir out
16959 cd ..
16960 rmdir conftest
16961 $rm conftest*
16962
16963 fi
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16965 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16966
16967
16968 hard_links="nottested"
16969 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16970 # do not overwrite the value of need_locks provided by the user
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16972 $as_echo_n "checking if we can lock with hard links... " >&6; }
16973 hard_links=yes
16974 $rm conftest*
16975 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16976 touch conftest.a
16977 ln conftest.a conftest.b 2>&5 || hard_links=no
16978 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16980 $as_echo "$hard_links" >&6; }
16981 if test "$hard_links" = no; then
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16983 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16984 need_locks=warn
16985 fi
16986 else
16987 need_locks=no
16988 fi
16989
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16991 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16992
16993 runpath_var=
16994 allow_undefined_flag_GCJ=
16995 enable_shared_with_static_runtimes_GCJ=no
16996 archive_cmds_GCJ=
16997 archive_expsym_cmds_GCJ=
16998 old_archive_From_new_cmds_GCJ=
16999 old_archive_from_expsyms_cmds_GCJ=
17000 export_dynamic_flag_spec_GCJ=
17001 whole_archive_flag_spec_GCJ=
17002 thread_safe_flag_spec_GCJ=
17003 hardcode_libdir_flag_spec_GCJ=
17004 hardcode_libdir_flag_spec_ld_GCJ=
17005 hardcode_libdir_separator_GCJ=
17006 hardcode_direct_GCJ=no
17007 hardcode_minus_L_GCJ=no
17008 hardcode_shlibpath_var_GCJ=unsupported
17009 link_all_deplibs_GCJ=unknown
17010 hardcode_automatic_GCJ=no
17011 module_cmds_GCJ=
17012 module_expsym_cmds_GCJ=
17013 always_export_symbols_GCJ=no
17014 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17015 # include_expsyms should be a list of space-separated symbols to be *always*
17016 # included in the symbol list
17017 include_expsyms_GCJ=
17018 # exclude_expsyms can be an extended regexp of symbols to exclude
17019 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17020 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17021 # as well as any symbol that contains `d'.
17022 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17023 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17024 # platforms (ab)use it in PIC code, but their linkers get confused if
17025 # the symbol is explicitly referenced. Since portable code cannot
17026 # rely on this symbol name, it's probably fine to never include it in
17027 # preloaded symbol tables.
17028 # Exclude shared library initialization/finalization symbols.
17029 extract_expsyms_cmds=
17030 # Just being paranoid about ensuring that cc_basename is set.
17031 for cc_temp in $compiler""; do
17032 case $cc_temp in
17033 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17034 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17035 \-*) ;;
17036 *) break;;
17037 esac
17038 done
17039 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17040
17041 case $host_os in
17042 cygwin* | mingw* | pw32*)
17043 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17044 # When not using gcc, we currently assume that we are using
17045 # Microsoft Visual C++.
17046 if test "$GCC" != yes; then
17047 with_gnu_ld=no
17048 fi
17049 ;;
17050 interix*)
17051 # we just hope/assume this is gcc and not c89 (= MSVC++)
17052 with_gnu_ld=yes
17053 ;;
17054 openbsd*)
17055 with_gnu_ld=no
17056 ;;
17057 esac
17058
17059 ld_shlibs_GCJ=yes
17060 if test "$with_gnu_ld" = yes; then
17061 # If archive_cmds runs LD, not CC, wlarc should be empty
17062 wlarc='${wl}'
17063
17064 # Set some defaults for GNU ld with shared library support. These
17065 # are reset later if shared libraries are not supported. Putting them
17066 # here allows them to be overridden if necessary.
17067 runpath_var=LD_RUN_PATH
17068 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17069 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17070 # ancient GNU ld didn't support --whole-archive et. al.
17071 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17072 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17073 else
17074 whole_archive_flag_spec_GCJ=
17075 fi
17076 supports_anon_versioning=no
17077 case `$LD -v 2>/dev/null` in
17078 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17079 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17080 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17081 *\ 2.11.*) ;; # other 2.11 versions
17082 *) supports_anon_versioning=yes ;;
17083 esac
17084
17085 # See if GNU ld supports shared libraries.
17086 case $host_os in
17087 aix[3-9]*)
17088 # On AIX/PPC, the GNU linker is very broken
17089 if test "$host_cpu" != ia64; then
17090 ld_shlibs_GCJ=no
17091 cat <<EOF 1>&2
17092
17093 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17094 *** to be unable to reliably create shared libraries on AIX.
17095 *** Therefore, libtool is disabling shared libraries support. If you
17096 *** really care for shared libraries, you may want to modify your PATH
17097 *** so that a non-GNU linker is found, and then restart.
17098
17099 EOF
17100 fi
17101 ;;
17102
17103 amigaos*)
17104 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)'
17105 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17106 hardcode_minus_L_GCJ=yes
17107
17108 # Samuel A. Falvo II <[email protected]> reports
17109 # that the semantics of dynamic libraries on AmigaOS, at least up
17110 # to version 4, is to share data among multiple programs linked
17111 # with the same dynamic library. Since this doesn't match the
17112 # behavior of shared libraries on other platforms, we can't use
17113 # them.
17114 ld_shlibs_GCJ=no
17115 ;;
17116
17117 beos*)
17118 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17119 allow_undefined_flag_GCJ=unsupported
17120 # Joseph Beckenbach <[email protected]> says some releases of gcc
17121 # support --undefined. This deserves some investigation. FIXME
17122 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17123 else
17124 ld_shlibs_GCJ=no
17125 fi
17126 ;;
17127
17128 cygwin* | mingw* | pw32*)
17129 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17130 # as there is no search path for DLLs.
17131 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17132 allow_undefined_flag_GCJ=unsupported
17133 always_export_symbols_GCJ=no
17134 enable_shared_with_static_runtimes_GCJ=yes
17135 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17136
17137 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17138 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17139 # If the export-symbols file already is a .def file (1st line
17140 # is EXPORTS), use it as is; otherwise, prepend...
17141 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17142 cp $export_symbols $output_objdir/$soname.def;
17143 else
17144 echo EXPORTS > $output_objdir/$soname.def;
17145 cat $export_symbols >> $output_objdir/$soname.def;
17146 fi~
17147 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17148 else
17149 ld_shlibs_GCJ=no
17150 fi
17151 ;;
17152
17153 interix[3-9]*)
17154 hardcode_direct_GCJ=no
17155 hardcode_shlibpath_var_GCJ=no
17156 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17157 export_dynamic_flag_spec_GCJ='${wl}-E'
17158 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17159 # Instead, shared libraries are loaded at an image base (0x10000000 by
17160 # default) and relocated if they conflict, which is a slow very memory
17161 # consuming and fragmenting process. To avoid this, we pick a random,
17162 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17163 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17164 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'
17165 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'
17166 ;;
17167
17168 gnu* | linux* | k*bsd*-gnu)
17169 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17170 tmp_addflag=
17171 case $cc_basename,$host_cpu in
17172 pgcc*) # Portland Group C compiler
17173 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'
17174 tmp_addflag=' $pic_flag'
17175 ;;
17176 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17177 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'
17178 tmp_addflag=' $pic_flag -Mnomain' ;;
17179 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17180 tmp_addflag=' -i_dynamic' ;;
17181 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17182 tmp_addflag=' -i_dynamic -nofor_main' ;;
17183 ifc* | ifort*) # Intel Fortran compiler
17184 tmp_addflag=' -nofor_main' ;;
17185 esac
17186 case `$CC -V 2>&1 | sed 5q` in
17187 *Sun\ C*) # Sun C 5.9
17188 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'
17189 tmp_sharedflag='-G' ;;
17190 *Sun\ F*) # Sun Fortran 8.3
17191 tmp_sharedflag='-G' ;;
17192 *)
17193 tmp_sharedflag='-shared' ;;
17194 esac
17195 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17196
17197 if test $supports_anon_versioning = yes; then
17198 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17199 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17200 $echo "local: *; };" >> $output_objdir/$libname.ver~
17201 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17202 fi
17203 else
17204 ld_shlibs_GCJ=no
17205 fi
17206 ;;
17207
17208 netbsd*)
17209 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17210 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17211 wlarc=
17212 else
17213 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17214 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17215 fi
17216 ;;
17217
17218 solaris*)
17219 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17220 ld_shlibs_GCJ=no
17221 cat <<EOF 1>&2
17222
17223 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17224 *** create shared libraries on Solaris systems. Therefore, libtool
17225 *** is disabling shared libraries support. We urge you to upgrade GNU
17226 *** binutils to release 2.9.1 or newer. Another option is to modify
17227 *** your PATH or compiler configuration so that the native linker is
17228 *** used, and then restart.
17229
17230 EOF
17231 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17232 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17233 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17234 else
17235 ld_shlibs_GCJ=no
17236 fi
17237 ;;
17238
17239 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17240 case `$LD -v 2>&1` in
17241 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17242 ld_shlibs_GCJ=no
17243 cat <<_LT_EOF 1>&2
17244
17245 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17246 *** reliably create shared libraries on SCO systems. Therefore, libtool
17247 *** is disabling shared libraries support. We urge you to upgrade GNU
17248 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17249 *** your PATH or compiler configuration so that the native linker is
17250 *** used, and then restart.
17251
17252 _LT_EOF
17253 ;;
17254 *)
17255 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17256 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17257 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17258 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17259 else
17260 ld_shlibs_GCJ=no
17261 fi
17262 ;;
17263 esac
17264 ;;
17265
17266 sunos4*)
17267 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17268 wlarc=
17269 hardcode_direct_GCJ=yes
17270 hardcode_shlibpath_var_GCJ=no
17271 ;;
17272
17273 *)
17274 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17275 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17276 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17277 else
17278 ld_shlibs_GCJ=no
17279 fi
17280 ;;
17281 esac
17282
17283 if test "$ld_shlibs_GCJ" = no; then
17284 runpath_var=
17285 hardcode_libdir_flag_spec_GCJ=
17286 export_dynamic_flag_spec_GCJ=
17287 whole_archive_flag_spec_GCJ=
17288 fi
17289 else
17290 # PORTME fill in a description of your system's linker (not GNU ld)
17291 case $host_os in
17292 aix3*)
17293 allow_undefined_flag_GCJ=unsupported
17294 always_export_symbols_GCJ=yes
17295 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'
17296 # Note: this linker hardcodes the directories in LIBPATH if there
17297 # are no directories specified by -L.
17298 hardcode_minus_L_GCJ=yes
17299 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17300 # Neither direct hardcoding nor static linking is supported with a
17301 # broken collect2.
17302 hardcode_direct_GCJ=unsupported
17303 fi
17304 ;;
17305
17306 aix[4-9]*)
17307 if test "$host_cpu" = ia64; then
17308 # On IA64, the linker does run time linking by default, so we don't
17309 # have to do anything special.
17310 aix_use_runtimelinking=no
17311 exp_sym_flag='-Bexport'
17312 no_entry_flag=""
17313 else
17314 # If we're using GNU nm, then we don't want the "-C" option.
17315 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17316 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17317 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'
17318 else
17319 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'
17320 fi
17321 aix_use_runtimelinking=no
17322
17323 # Test if we are trying to use run time linking or normal
17324 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17325 # need to do runtime linking.
17326 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17327 for ld_flag in $LDFLAGS; do
17328 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17329 aix_use_runtimelinking=yes
17330 break
17331 fi
17332 done
17333 ;;
17334 esac
17335
17336 exp_sym_flag='-bexport'
17337 no_entry_flag='-bnoentry'
17338 fi
17339
17340 # When large executables or shared objects are built, AIX ld can
17341 # have problems creating the table of contents. If linking a library
17342 # or program results in "error TOC overflow" add -mminimal-toc to
17343 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17344 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17345
17346 archive_cmds_GCJ=''
17347 hardcode_direct_GCJ=yes
17348 hardcode_libdir_separator_GCJ=':'
17349 link_all_deplibs_GCJ=yes
17350
17351 if test "$GCC" = yes; then
17352 case $host_os in aix4.[012]|aix4.[012].*)
17353 # We only want to do this on AIX 4.2 and lower, the check
17354 # below for broken collect2 doesn't work under 4.3+
17355 collect2name=`${CC} -print-prog-name=collect2`
17356 if test -f "$collect2name" && \
17357 strings "$collect2name" | grep resolve_lib_name >/dev/null
17358 then
17359 # We have reworked collect2
17360 :
17361 else
17362 # We have old collect2
17363 hardcode_direct_GCJ=unsupported
17364 # It fails to find uninstalled libraries when the uninstalled
17365 # path is not listed in the libpath. Setting hardcode_minus_L
17366 # to unsupported forces relinking
17367 hardcode_minus_L_GCJ=yes
17368 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17369 hardcode_libdir_separator_GCJ=
17370 fi
17371 ;;
17372 esac
17373 shared_flag='-shared'
17374 if test "$aix_use_runtimelinking" = yes; then
17375 shared_flag="$shared_flag "'${wl}-G'
17376 fi
17377 else
17378 # not using gcc
17379 if test "$host_cpu" = ia64; then
17380 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17381 # chokes on -Wl,-G. The following line is correct:
17382 shared_flag='-G'
17383 else
17384 if test "$aix_use_runtimelinking" = yes; then
17385 shared_flag='${wl}-G'
17386 else
17387 shared_flag='${wl}-bM:SRE'
17388 fi
17389 fi
17390 fi
17391
17392 # It seems that -bexpall does not export symbols beginning with
17393 # underscore (_), so it is better to generate a list of symbols to export.
17394 always_export_symbols_GCJ=yes
17395 if test "$aix_use_runtimelinking" = yes; then
17396 # Warning - without using the other runtime loading flags (-brtl),
17397 # -berok will link without error, but may produce a broken library.
17398 allow_undefined_flag_GCJ='-berok'
17399 # Determine the default libpath from the value encoded in an empty executable.
17400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17401 /* end confdefs.h. */
17402
17403 int
17404 main ()
17405 {
17406
17407 ;
17408 return 0;
17409 }
17410 _ACEOF
17411 if ac_fn_cxx_try_link "$LINENO"; then :
17412
17413 lt_aix_libpath_sed='
17414 /Import File Strings/,/^$/ {
17415 /^0/ {
17416 s/^0 *\(.*\)$/\1/
17417 p
17418 }
17419 }'
17420 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17421 # Check for a 64-bit object if we didn't find anything.
17422 if test -z "$aix_libpath"; then
17423 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17424 fi
17425 fi
17426 rm -f core conftest.err conftest.$ac_objext \
17427 conftest$ac_exeext conftest.$ac_ext
17428 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17429
17430 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17431 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"
17432 else
17433 if test "$host_cpu" = ia64; then
17434 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17435 allow_undefined_flag_GCJ="-z nodefs"
17436 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"
17437 else
17438 # Determine the default libpath from the value encoded in an empty executable.
17439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440 /* end confdefs.h. */
17441
17442 int
17443 main ()
17444 {
17445
17446 ;
17447 return 0;
17448 }
17449 _ACEOF
17450 if ac_fn_cxx_try_link "$LINENO"; then :
17451
17452 lt_aix_libpath_sed='
17453 /Import File Strings/,/^$/ {
17454 /^0/ {
17455 s/^0 *\(.*\)$/\1/
17456 p
17457 }
17458 }'
17459 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17460 # Check for a 64-bit object if we didn't find anything.
17461 if test -z "$aix_libpath"; then
17462 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17463 fi
17464 fi
17465 rm -f core conftest.err conftest.$ac_objext \
17466 conftest$ac_exeext conftest.$ac_ext
17467 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17468
17469 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17470 # Warning - without using the other run time loading flags,
17471 # -berok will link without error, but may produce a broken library.
17472 no_undefined_flag_GCJ=' ${wl}-bernotok'
17473 allow_undefined_flag_GCJ=' ${wl}-berok'
17474 # Exported symbols can be pulled into shared objects from archives
17475 whole_archive_flag_spec_GCJ='$convenience'
17476 archive_cmds_need_lc_GCJ=yes
17477 # This is similar to how AIX traditionally builds its shared libraries.
17478 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'
17479 fi
17480 fi
17481 ;;
17482
17483 amigaos*)
17484 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)'
17485 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17486 hardcode_minus_L_GCJ=yes
17487 # see comment about different semantics on the GNU ld section
17488 ld_shlibs_GCJ=no
17489 ;;
17490
17491 bsdi[45]*)
17492 export_dynamic_flag_spec_GCJ=-rdynamic
17493 ;;
17494
17495 cygwin* | mingw* | pw32*)
17496 # When not using gcc, we currently assume that we are using
17497 # Microsoft Visual C++.
17498 # hardcode_libdir_flag_spec is actually meaningless, as there is
17499 # no search path for DLLs.
17500 hardcode_libdir_flag_spec_GCJ=' '
17501 allow_undefined_flag_GCJ=unsupported
17502 # Tell ltmain to make .lib files, not .a files.
17503 libext=lib
17504 # Tell ltmain to make .dll files, not .so files.
17505 shrext_cmds=".dll"
17506 # FIXME: Setting linknames here is a bad hack.
17507 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17508 # The linker will automatically build a .lib file if we build a DLL.
17509 old_archive_From_new_cmds_GCJ='true'
17510 # FIXME: Should let the user specify the lib program.
17511 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17512 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17513 enable_shared_with_static_runtimes_GCJ=yes
17514 ;;
17515
17516 darwin* | rhapsody*)
17517 case $host_os in
17518 rhapsody* | darwin1.[012])
17519 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17520 ;;
17521 *) # Darwin 1.3 on
17522 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17523 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17524 else
17525 case ${MACOSX_DEPLOYMENT_TARGET} in
17526 10.[012])
17527 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17528 ;;
17529 10.*)
17530 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17531 ;;
17532 esac
17533 fi
17534 ;;
17535 esac
17536 archive_cmds_need_lc_GCJ=no
17537 hardcode_direct_GCJ=no
17538 hardcode_automatic_GCJ=yes
17539 hardcode_shlibpath_var_GCJ=unsupported
17540 whole_archive_flag_spec_GCJ=''
17541 link_all_deplibs_GCJ=yes
17542 if test "$GCC" = yes ; then
17543 output_verbose_link_cmd='echo'
17544 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}"
17545 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17546 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}"
17547 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}"
17548 else
17549 case $cc_basename in
17550 xlc*)
17551 output_verbose_link_cmd='echo'
17552 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17553 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17554 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17555 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}'
17556 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}'
17557 ;;
17558 *)
17559 ld_shlibs_GCJ=no
17560 ;;
17561 esac
17562 fi
17563 ;;
17564
17565 dgux*)
17566 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17567 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17568 hardcode_shlibpath_var_GCJ=no
17569 ;;
17570
17571 freebsd1*)
17572 ld_shlibs_GCJ=no
17573 ;;
17574
17575 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17576 # support. Future versions do this automatically, but an explicit c++rt0.o
17577 # does not break anything, and helps significantly (at the cost of a little
17578 # extra space).
17579 freebsd2.2*)
17580 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17581 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17582 hardcode_direct_GCJ=yes
17583 hardcode_shlibpath_var_GCJ=no
17584 ;;
17585
17586 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17587 freebsd2*)
17588 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17589 hardcode_direct_GCJ=yes
17590 hardcode_minus_L_GCJ=yes
17591 hardcode_shlibpath_var_GCJ=no
17592 ;;
17593
17594 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17595 freebsd* | dragonfly*)
17596 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17597 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17598 hardcode_direct_GCJ=yes
17599 hardcode_shlibpath_var_GCJ=no
17600 ;;
17601
17602 hpux9*)
17603 if test "$GCC" = yes; then
17604 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'
17605 else
17606 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'
17607 fi
17608 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17609 hardcode_libdir_separator_GCJ=:
17610 hardcode_direct_GCJ=yes
17611
17612 # hardcode_minus_L: Not really in the search PATH,
17613 # but as the default location of the library.
17614 hardcode_minus_L_GCJ=yes
17615 export_dynamic_flag_spec_GCJ='${wl}-E'
17616 ;;
17617
17618 hpux10*)
17619 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17620 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17621 else
17622 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17623 fi
17624 if test "$with_gnu_ld" = no; then
17625 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17626 hardcode_libdir_separator_GCJ=:
17627
17628 hardcode_direct_GCJ=yes
17629 export_dynamic_flag_spec_GCJ='${wl}-E'
17630
17631 # hardcode_minus_L: Not really in the search PATH,
17632 # but as the default location of the library.
17633 hardcode_minus_L_GCJ=yes
17634 fi
17635 ;;
17636
17637 hpux11*)
17638 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17639 case $host_cpu in
17640 hppa*64*)
17641 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17642 ;;
17643 ia64*)
17644 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17645 ;;
17646 *)
17647 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17648 ;;
17649 esac
17650 else
17651 case $host_cpu in
17652 hppa*64*)
17653 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17654 ;;
17655 ia64*)
17656 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17657 ;;
17658 *)
17659 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17660 ;;
17661 esac
17662 fi
17663 if test "$with_gnu_ld" = no; then
17664 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17665 hardcode_libdir_separator_GCJ=:
17666
17667 case $host_cpu in
17668 hppa*64*|ia64*)
17669 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17670 hardcode_direct_GCJ=no
17671 hardcode_shlibpath_var_GCJ=no
17672 ;;
17673 *)
17674 hardcode_direct_GCJ=yes
17675 export_dynamic_flag_spec_GCJ='${wl}-E'
17676
17677 # hardcode_minus_L: Not really in the search PATH,
17678 # but as the default location of the library.
17679 hardcode_minus_L_GCJ=yes
17680 ;;
17681 esac
17682 fi
17683 ;;
17684
17685 irix5* | irix6* | nonstopux*)
17686 if test "$GCC" = yes; then
17687 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'
17688 else
17689 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'
17690 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17691 fi
17692 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17693 hardcode_libdir_separator_GCJ=:
17694 link_all_deplibs_GCJ=yes
17695 ;;
17696
17697 netbsd*)
17698 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17699 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17700 else
17701 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17702 fi
17703 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17704 hardcode_direct_GCJ=yes
17705 hardcode_shlibpath_var_GCJ=no
17706 ;;
17707
17708 newsos6)
17709 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17710 hardcode_direct_GCJ=yes
17711 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17712 hardcode_libdir_separator_GCJ=:
17713 hardcode_shlibpath_var_GCJ=no
17714 ;;
17715
17716 openbsd*)
17717 if test -f /usr/libexec/ld.so; then
17718 hardcode_direct_GCJ=yes
17719 hardcode_shlibpath_var_GCJ=no
17720 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17721 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17722 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17723 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17724 export_dynamic_flag_spec_GCJ='${wl}-E'
17725 else
17726 case $host_os in
17727 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17728 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17729 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17730 ;;
17731 *)
17732 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17733 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17734 ;;
17735 esac
17736 fi
17737 else
17738 ld_shlibs_GCJ=no
17739 fi
17740 ;;
17741
17742 os2*)
17743 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17744 hardcode_minus_L_GCJ=yes
17745 allow_undefined_flag_GCJ=unsupported
17746 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'
17747 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17748 ;;
17749
17750 osf3*)
17751 if test "$GCC" = yes; then
17752 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17753 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'
17754 else
17755 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17756 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'
17757 fi
17758 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17759 hardcode_libdir_separator_GCJ=:
17760 ;;
17761
17762 osf4* | osf5*) # as osf3* with the addition of -msym flag
17763 if test "$GCC" = yes; then
17764 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17765 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'
17766 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17767 else
17768 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17769 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'
17770 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~
17771 $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'
17772
17773 # Both c and cxx compiler support -rpath directly
17774 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17775 fi
17776 hardcode_libdir_separator_GCJ=:
17777 ;;
17778
17779 solaris*)
17780 no_undefined_flag_GCJ=' -z text'
17781 if test "$GCC" = yes; then
17782 wlarc='${wl}'
17783 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17784 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17785 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17786 else
17787 wlarc=''
17788 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17789 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17790 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17791 fi
17792 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17793 hardcode_shlibpath_var_GCJ=no
17794 case $host_os in
17795 solaris2.[0-5] | solaris2.[0-5].*) ;;
17796 *)
17797 # The compiler driver will combine and reorder linker options,
17798 # but understands `-z linker_flag'. GCC discards it without `$wl',
17799 # but is careful enough not to reorder.
17800 # Supported since Solaris 2.6 (maybe 2.5.1?)
17801 if test "$GCC" = yes; then
17802 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17803 else
17804 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17805 fi
17806 ;;
17807 esac
17808 link_all_deplibs_GCJ=yes
17809 ;;
17810
17811 sunos4*)
17812 if test "x$host_vendor" = xsequent; then
17813 # Use $CC to link under sequent, because it throws in some extra .o
17814 # files that make .init and .fini sections work.
17815 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17816 else
17817 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17818 fi
17819 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17820 hardcode_direct_GCJ=yes
17821 hardcode_minus_L_GCJ=yes
17822 hardcode_shlibpath_var_GCJ=no
17823 ;;
17824
17825 sysv4)
17826 case $host_vendor in
17827 sni)
17828 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17829 hardcode_direct_GCJ=yes # is this really true???
17830 ;;
17831 siemens)
17832 ## LD is ld it makes a PLAMLIB
17833 ## CC just makes a GrossModule.
17834 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17835 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17836 hardcode_direct_GCJ=no
17837 ;;
17838 motorola)
17839 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17840 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17841 ;;
17842 esac
17843 runpath_var='LD_RUN_PATH'
17844 hardcode_shlibpath_var_GCJ=no
17845 ;;
17846
17847 sysv4.3*)
17848 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17849 hardcode_shlibpath_var_GCJ=no
17850 export_dynamic_flag_spec_GCJ='-Bexport'
17851 ;;
17852
17853 sysv4*MP*)
17854 if test -d /usr/nec; then
17855 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17856 hardcode_shlibpath_var_GCJ=no
17857 runpath_var=LD_RUN_PATH
17858 hardcode_runpath_var=yes
17859 ld_shlibs_GCJ=yes
17860 fi
17861 ;;
17862
17863 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17864 no_undefined_flag_GCJ='${wl}-z,text'
17865 archive_cmds_need_lc_GCJ=no
17866 hardcode_shlibpath_var_GCJ=no
17867 runpath_var='LD_RUN_PATH'
17868
17869 if test "$GCC" = yes; then
17870 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17871 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17872 else
17873 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17874 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17875 fi
17876 ;;
17877
17878 sysv5* | sco3.2v5* | sco5v6*)
17879 # Note: We can NOT use -z defs as we might desire, because we do not
17880 # link with -lc, and that would cause any symbols used from libc to
17881 # always be unresolved, which means just about no library would
17882 # ever link correctly. If we're not using GNU ld we use -z text
17883 # though, which does catch some bad symbols but isn't as heavy-handed
17884 # as -z defs.
17885 no_undefined_flag_GCJ='${wl}-z,text'
17886 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17887 archive_cmds_need_lc_GCJ=no
17888 hardcode_shlibpath_var_GCJ=no
17889 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17890 hardcode_libdir_separator_GCJ=':'
17891 link_all_deplibs_GCJ=yes
17892 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17893 runpath_var='LD_RUN_PATH'
17894
17895 if test "$GCC" = yes; then
17896 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17897 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17898 else
17899 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17900 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17901 fi
17902 ;;
17903
17904 uts4*)
17905 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17906 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17907 hardcode_shlibpath_var_GCJ=no
17908 ;;
17909
17910 *)
17911 ld_shlibs_GCJ=no
17912 ;;
17913 esac
17914 fi
17915
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17917 $as_echo "$ld_shlibs_GCJ" >&6; }
17918 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17919
17920 #
17921 # Do we need to explicitly link libc?
17922 #
17923 case "x$archive_cmds_need_lc_GCJ" in
17924 x|xyes)
17925 # Assume -lc should be added
17926 archive_cmds_need_lc_GCJ=yes
17927
17928 if test "$enable_shared" = yes && test "$GCC" = yes; then
17929 case $archive_cmds_GCJ in
17930 *'~'*)
17931 # FIXME: we may have to deal with multi-command sequences.
17932 ;;
17933 '$CC '*)
17934 # Test whether the compiler implicitly links with -lc since on some
17935 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17936 # to ld, don't add -lc before -lgcc.
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17938 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17939 $rm conftest*
17940 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17941
17942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17943 (eval $ac_compile) 2>&5
17944 ac_status=$?
17945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17946 test $ac_status = 0; } 2>conftest.err; then
17947 soname=conftest
17948 lib=conftest
17949 libobjs=conftest.$ac_objext
17950 deplibs=
17951 wl=$lt_prog_compiler_wl_GCJ
17952 pic_flag=$lt_prog_compiler_pic_GCJ
17953 compiler_flags=-v
17954 linker_flags=-v
17955 verstring=
17956 output_objdir=.
17957 libname=conftest
17958 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17959 allow_undefined_flag_GCJ=
17960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17961 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17962 ac_status=$?
17963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17964 test $ac_status = 0; }
17965 then
17966 archive_cmds_need_lc_GCJ=no
17967 else
17968 archive_cmds_need_lc_GCJ=yes
17969 fi
17970 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17971 else
17972 cat conftest.err 1>&5
17973 fi
17974 $rm conftest*
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17976 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17977 ;;
17978 esac
17979 fi
17980 ;;
17981 esac
17982
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17984 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17985 library_names_spec=
17986 libname_spec='lib$name'
17987 soname_spec=
17988 shrext_cmds=".so"
17989 postinstall_cmds=
17990 postuninstall_cmds=
17991 finish_cmds=
17992 finish_eval=
17993 shlibpath_var=
17994 shlibpath_overrides_runpath=unknown
17995 version_type=none
17996 dynamic_linker="$host_os ld.so"
17997 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17998
17999 need_lib_prefix=unknown
18000 hardcode_into_libs=no
18001
18002 # when you set need_version to no, make sure it does not cause -set_version
18003 # flags to be left without arguments
18004 need_version=unknown
18005
18006 case $host_os in
18007 aix3*)
18008 version_type=linux
18009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18010 shlibpath_var=LIBPATH
18011
18012 # AIX 3 has no versioning support, so we append a major version to the name.
18013 soname_spec='${libname}${release}${shared_ext}$major'
18014 ;;
18015
18016 aix[4-9]*)
18017 version_type=linux
18018 need_lib_prefix=no
18019 need_version=no
18020 hardcode_into_libs=yes
18021 if test "$host_cpu" = ia64; then
18022 # AIX 5 supports IA64
18023 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18024 shlibpath_var=LD_LIBRARY_PATH
18025 else
18026 # With GCC up to 2.95.x, collect2 would create an import file
18027 # for dependence libraries. The import file would start with
18028 # the line `#! .'. This would cause the generated library to
18029 # depend on `.', always an invalid library. This was fixed in
18030 # development snapshots of GCC prior to 3.0.
18031 case $host_os in
18032 aix4 | aix4.[01] | aix4.[01].*)
18033 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18034 echo ' yes '
18035 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18036 :
18037 else
18038 can_build_shared=no
18039 fi
18040 ;;
18041 esac
18042 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18043 # soname into executable. Probably we can add versioning support to
18044 # collect2, so additional links can be useful in future.
18045 if test "$aix_use_runtimelinking" = yes; then
18046 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18047 # instead of lib<name>.a to let people know that these are not
18048 # typical AIX shared libraries.
18049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18050 else
18051 # We preserve .a as extension for shared libraries through AIX4.2
18052 # and later when we are not doing run time linking.
18053 library_names_spec='${libname}${release}.a $libname.a'
18054 soname_spec='${libname}${release}${shared_ext}$major'
18055 fi
18056 shlibpath_var=LIBPATH
18057 fi
18058 ;;
18059
18060 amigaos*)
18061 library_names_spec='$libname.ixlibrary $libname.a'
18062 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18063 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'
18064 ;;
18065
18066 beos*)
18067 library_names_spec='${libname}${shared_ext}'
18068 dynamic_linker="$host_os ld.so"
18069 shlibpath_var=LIBRARY_PATH
18070 ;;
18071
18072 bsdi[45]*)
18073 version_type=linux
18074 need_version=no
18075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18076 soname_spec='${libname}${release}${shared_ext}$major'
18077 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18078 shlibpath_var=LD_LIBRARY_PATH
18079 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18080 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18081 # the default ld.so.conf also contains /usr/contrib/lib and
18082 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18083 # libtool to hard-code these into programs
18084 ;;
18085
18086 cygwin* | mingw* | pw32*)
18087 version_type=windows
18088 shrext_cmds=".dll"
18089 need_version=no
18090 need_lib_prefix=no
18091
18092 case $GCC,$host_os in
18093 yes,cygwin* | yes,mingw* | yes,pw32*)
18094 library_names_spec='$libname.dll.a'
18095 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18096 postinstall_cmds='base_file=`basename \${file}`~
18097 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18098 dldir=$destdir/`dirname \$dlpath`~
18099 test -d \$dldir || mkdir -p \$dldir~
18100 $install_prog $dir/$dlname \$dldir/$dlname~
18101 chmod a+x \$dldir/$dlname'
18102 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18103 dlpath=$dir/\$dldll~
18104 $rm \$dlpath'
18105 shlibpath_overrides_runpath=yes
18106
18107 case $host_os in
18108 cygwin*)
18109 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18110 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18111 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18112 ;;
18113 mingw*)
18114 # MinGW DLLs use traditional 'lib' prefix
18115 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18116 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18117 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18118 # It is most probably a Windows format PATH printed by
18119 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18120 # path with ; separators, and with drive letters. We can handle the
18121 # drive letters (cygwin fileutils understands them), so leave them,
18122 # especially as we might pass files found there to a mingw objdump,
18123 # which wouldn't understand a cygwinified path. Ahh.
18124 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18125 else
18126 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18127 fi
18128 ;;
18129 pw32*)
18130 # pw32 DLLs use 'pw' prefix rather than 'lib'
18131 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18132 ;;
18133 esac
18134 ;;
18135
18136 *)
18137 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18138 ;;
18139 esac
18140 dynamic_linker='Win32 ld.exe'
18141 # FIXME: first we should search . and the directory the executable is in
18142 shlibpath_var=PATH
18143 ;;
18144
18145 darwin* | rhapsody*)
18146 dynamic_linker="$host_os dyld"
18147 version_type=darwin
18148 need_lib_prefix=no
18149 need_version=no
18150 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18151 soname_spec='${libname}${release}${major}$shared_ext'
18152 shlibpath_overrides_runpath=yes
18153 shlibpath_var=DYLD_LIBRARY_PATH
18154 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18155
18156 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18157 ;;
18158
18159 dgux*)
18160 version_type=linux
18161 need_lib_prefix=no
18162 need_version=no
18163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18164 soname_spec='${libname}${release}${shared_ext}$major'
18165 shlibpath_var=LD_LIBRARY_PATH
18166 ;;
18167
18168 freebsd1*)
18169 dynamic_linker=no
18170 ;;
18171
18172 freebsd* | dragonfly*)
18173 # DragonFly does not have aout. When/if they implement a new
18174 # versioning mechanism, adjust this.
18175 if test -x /usr/bin/objformat; then
18176 objformat=`/usr/bin/objformat`
18177 else
18178 case $host_os in
18179 freebsd[123]*) objformat=aout ;;
18180 *) objformat=elf ;;
18181 esac
18182 fi
18183 version_type=freebsd-$objformat
18184 case $version_type in
18185 freebsd-elf*)
18186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18187 need_version=no
18188 need_lib_prefix=no
18189 ;;
18190 freebsd-*)
18191 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18192 need_version=yes
18193 ;;
18194 esac
18195 shlibpath_var=LD_LIBRARY_PATH
18196 case $host_os in
18197 freebsd2*)
18198 shlibpath_overrides_runpath=yes
18199 ;;
18200 freebsd3.[01]* | freebsdelf3.[01]*)
18201 shlibpath_overrides_runpath=yes
18202 hardcode_into_libs=yes
18203 ;;
18204 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18205 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18206 shlibpath_overrides_runpath=no
18207 hardcode_into_libs=yes
18208 ;;
18209 *) # from 4.6 on, and DragonFly
18210 shlibpath_overrides_runpath=yes
18211 hardcode_into_libs=yes
18212 ;;
18213 esac
18214 ;;
18215
18216 gnu*)
18217 version_type=linux
18218 need_lib_prefix=no
18219 need_version=no
18220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18221 soname_spec='${libname}${release}${shared_ext}$major'
18222 shlibpath_var=LD_LIBRARY_PATH
18223 hardcode_into_libs=yes
18224 ;;
18225
18226 hpux9* | hpux10* | hpux11*)
18227 # Give a soname corresponding to the major version so that dld.sl refuses to
18228 # link against other versions.
18229 version_type=sunos
18230 need_lib_prefix=no
18231 need_version=no
18232 case $host_cpu in
18233 ia64*)
18234 shrext_cmds='.so'
18235 hardcode_into_libs=yes
18236 dynamic_linker="$host_os dld.so"
18237 shlibpath_var=LD_LIBRARY_PATH
18238 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18240 soname_spec='${libname}${release}${shared_ext}$major'
18241 if test "X$HPUX_IA64_MODE" = X32; then
18242 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18243 else
18244 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18245 fi
18246 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18247 ;;
18248 hppa*64*)
18249 shrext_cmds='.sl'
18250 hardcode_into_libs=yes
18251 dynamic_linker="$host_os dld.sl"
18252 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18253 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18255 soname_spec='${libname}${release}${shared_ext}$major'
18256 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18257 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18258 ;;
18259 *)
18260 shrext_cmds='.sl'
18261 dynamic_linker="$host_os dld.sl"
18262 shlibpath_var=SHLIB_PATH
18263 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18265 soname_spec='${libname}${release}${shared_ext}$major'
18266 ;;
18267 esac
18268 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18269 postinstall_cmds='chmod 555 $lib'
18270 ;;
18271
18272 interix[3-9]*)
18273 version_type=linux
18274 need_lib_prefix=no
18275 need_version=no
18276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18277 soname_spec='${libname}${release}${shared_ext}$major'
18278 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18279 shlibpath_var=LD_LIBRARY_PATH
18280 shlibpath_overrides_runpath=no
18281 hardcode_into_libs=yes
18282 ;;
18283
18284 irix5* | irix6* | nonstopux*)
18285 case $host_os in
18286 nonstopux*) version_type=nonstopux ;;
18287 *)
18288 if test "$lt_cv_prog_gnu_ld" = yes; then
18289 version_type=linux
18290 else
18291 version_type=irix
18292 fi ;;
18293 esac
18294 need_lib_prefix=no
18295 need_version=no
18296 soname_spec='${libname}${release}${shared_ext}$major'
18297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18298 case $host_os in
18299 irix5* | nonstopux*)
18300 libsuff= shlibsuff=
18301 ;;
18302 *)
18303 case $LD in # libtool.m4 will add one of these switches to LD
18304 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18305 libsuff= shlibsuff= libmagic=32-bit;;
18306 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18307 libsuff=32 shlibsuff=N32 libmagic=N32;;
18308 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18309 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18310 *) libsuff= shlibsuff= libmagic=never-match;;
18311 esac
18312 ;;
18313 esac
18314 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18315 shlibpath_overrides_runpath=no
18316 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18317 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18318 hardcode_into_libs=yes
18319 ;;
18320
18321 # No shared lib support for Linux oldld, aout, or coff.
18322 linux*oldld* | linux*aout* | linux*coff*)
18323 dynamic_linker=no
18324 ;;
18325
18326 # This must be Linux ELF.
18327 linux* | k*bsd*-gnu)
18328 version_type=linux
18329 need_lib_prefix=no
18330 need_version=no
18331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18332 soname_spec='${libname}${release}${shared_ext}$major'
18333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18334 shlibpath_var=LD_LIBRARY_PATH
18335 shlibpath_overrides_runpath=no
18336 # This implies no fast_install, which is unacceptable.
18337 # Some rework will be needed to allow for fast_install
18338 # before this can be enabled.
18339 hardcode_into_libs=yes
18340
18341 # Append ld.so.conf contents to the search path
18342 if test -f /etc/ld.so.conf; then
18343 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' ' '`
18344 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18345 fi
18346
18347 # We used to test for /lib/ld.so.1 and disable shared libraries on
18348 # powerpc, because MkLinux only supported shared libraries with the
18349 # GNU dynamic linker. Since this was broken with cross compilers,
18350 # most powerpc-linux boxes support dynamic linking these days and
18351 # people can always --disable-shared, the test was removed, and we
18352 # assume the GNU/Linux dynamic linker is in use.
18353 dynamic_linker='GNU/Linux ld.so'
18354 ;;
18355
18356 netbsd*)
18357 version_type=sunos
18358 need_lib_prefix=no
18359 need_version=no
18360 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18363 dynamic_linker='NetBSD (a.out) ld.so'
18364 else
18365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18366 soname_spec='${libname}${release}${shared_ext}$major'
18367 dynamic_linker='NetBSD ld.elf_so'
18368 fi
18369 shlibpath_var=LD_LIBRARY_PATH
18370 shlibpath_overrides_runpath=yes
18371 hardcode_into_libs=yes
18372 ;;
18373
18374 newsos6)
18375 version_type=linux
18376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18377 shlibpath_var=LD_LIBRARY_PATH
18378 shlibpath_overrides_runpath=yes
18379 ;;
18380
18381 nto-qnx*)
18382 version_type=linux
18383 need_lib_prefix=no
18384 need_version=no
18385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18386 soname_spec='${libname}${release}${shared_ext}$major'
18387 shlibpath_var=LD_LIBRARY_PATH
18388 shlibpath_overrides_runpath=yes
18389 ;;
18390
18391 openbsd*)
18392 version_type=sunos
18393 sys_lib_dlsearch_path_spec="/usr/lib"
18394 need_lib_prefix=no
18395 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18396 case $host_os in
18397 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18398 *) need_version=no ;;
18399 esac
18400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18402 shlibpath_var=LD_LIBRARY_PATH
18403 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18404 case $host_os in
18405 openbsd2.[89] | openbsd2.[89].*)
18406 shlibpath_overrides_runpath=no
18407 ;;
18408 *)
18409 shlibpath_overrides_runpath=yes
18410 ;;
18411 esac
18412 else
18413 shlibpath_overrides_runpath=yes
18414 fi
18415 ;;
18416
18417 os2*)
18418 libname_spec='$name'
18419 shrext_cmds=".dll"
18420 need_lib_prefix=no
18421 library_names_spec='$libname${shared_ext} $libname.a'
18422 dynamic_linker='OS/2 ld.exe'
18423 shlibpath_var=LIBPATH
18424 ;;
18425
18426 osf3* | osf4* | osf5*)
18427 version_type=osf
18428 need_lib_prefix=no
18429 need_version=no
18430 soname_spec='${libname}${release}${shared_ext}$major'
18431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18432 shlibpath_var=LD_LIBRARY_PATH
18433 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18434 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18435 ;;
18436
18437 rdos*)
18438 dynamic_linker=no
18439 ;;
18440
18441 solaris*)
18442 version_type=linux
18443 need_lib_prefix=no
18444 need_version=no
18445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18446 soname_spec='${libname}${release}${shared_ext}$major'
18447 shlibpath_var=LD_LIBRARY_PATH
18448 shlibpath_overrides_runpath=yes
18449 hardcode_into_libs=yes
18450 # ldd complains unless libraries are executable
18451 postinstall_cmds='chmod +x $lib'
18452 ;;
18453
18454 sunos4*)
18455 version_type=sunos
18456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18457 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18458 shlibpath_var=LD_LIBRARY_PATH
18459 shlibpath_overrides_runpath=yes
18460 if test "$with_gnu_ld" = yes; then
18461 need_lib_prefix=no
18462 fi
18463 need_version=yes
18464 ;;
18465
18466 sysv4 | sysv4.3*)
18467 version_type=linux
18468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18469 soname_spec='${libname}${release}${shared_ext}$major'
18470 shlibpath_var=LD_LIBRARY_PATH
18471 case $host_vendor in
18472 sni)
18473 shlibpath_overrides_runpath=no
18474 need_lib_prefix=no
18475 export_dynamic_flag_spec='${wl}-Blargedynsym'
18476 runpath_var=LD_RUN_PATH
18477 ;;
18478 siemens)
18479 need_lib_prefix=no
18480 ;;
18481 motorola)
18482 need_lib_prefix=no
18483 need_version=no
18484 shlibpath_overrides_runpath=no
18485 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18486 ;;
18487 esac
18488 ;;
18489
18490 sysv4*MP*)
18491 if test -d /usr/nec ;then
18492 version_type=linux
18493 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18494 soname_spec='$libname${shared_ext}.$major'
18495 shlibpath_var=LD_LIBRARY_PATH
18496 fi
18497 ;;
18498
18499 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18500 version_type=freebsd-elf
18501 need_lib_prefix=no
18502 need_version=no
18503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18504 soname_spec='${libname}${release}${shared_ext}$major'
18505 shlibpath_var=LD_LIBRARY_PATH
18506 hardcode_into_libs=yes
18507 if test "$with_gnu_ld" = yes; then
18508 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18509 shlibpath_overrides_runpath=no
18510 else
18511 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18512 shlibpath_overrides_runpath=yes
18513 case $host_os in
18514 sco3.2v5*)
18515 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18516 ;;
18517 esac
18518 fi
18519 sys_lib_dlsearch_path_spec='/usr/lib'
18520 ;;
18521
18522 uts4*)
18523 version_type=linux
18524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18525 soname_spec='${libname}${release}${shared_ext}$major'
18526 shlibpath_var=LD_LIBRARY_PATH
18527 ;;
18528
18529 *)
18530 dynamic_linker=no
18531 ;;
18532 esac
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18534 $as_echo "$dynamic_linker" >&6; }
18535 test "$dynamic_linker" = no && can_build_shared=no
18536
18537 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
18538 $as_echo_n "(cached) " >&6
18539 else
18540 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18541 fi
18542
18543 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18544 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
18545 $as_echo_n "(cached) " >&6
18546 else
18547 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18548 fi
18549
18550 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18551
18552 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18553 if test "$GCC" = yes; then
18554 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18555 fi
18556
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18558 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18559 hardcode_action_GCJ=
18560 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18561 test -n "$runpath_var_GCJ" || \
18562 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18563
18564 # We can hardcode non-existant directories.
18565 if test "$hardcode_direct_GCJ" != no &&
18566 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18567 # have to relink, otherwise we might link with an installed library
18568 # when we should be linking with a yet-to-be-installed one
18569 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18570 test "$hardcode_minus_L_GCJ" != no; then
18571 # Linking always hardcodes the temporary library directory.
18572 hardcode_action_GCJ=relink
18573 else
18574 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18575 hardcode_action_GCJ=immediate
18576 fi
18577 else
18578 # We cannot hardcode anything, or else we can only hardcode existing
18579 # directories.
18580 hardcode_action_GCJ=unsupported
18581 fi
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18583 $as_echo "$hardcode_action_GCJ" >&6; }
18584
18585 if test "$hardcode_action_GCJ" = relink; then
18586 # Fast installation is not supported
18587 enable_fast_install=no
18588 elif test "$shlibpath_overrides_runpath" = yes ||
18589 test "$enable_shared" = no; then
18590 # Fast installation is not necessary
18591 enable_fast_install=needless
18592 fi
18593
18594
18595 # The else clause should only fire when bootstrapping the
18596 # libtool distribution, otherwise you forgot to ship ltmain.sh
18597 # with your package, and you will get complaints that there are
18598 # no rules to generate ltmain.sh.
18599 if test -f "$ltmain"; then
18600 # See if we are running on zsh, and set the options which allow our commands through
18601 # without removal of \ escapes.
18602 if test -n "${ZSH_VERSION+set}" ; then
18603 setopt NO_GLOB_SUBST
18604 fi
18605 # Now quote all the things that may contain metacharacters while being
18606 # careful not to overquote the AC_SUBSTed values. We take copies of the
18607 # variables and quote the copies for generation of the libtool script.
18608 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18609 SED SHELL STRIP \
18610 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18611 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18612 deplibs_check_method reload_flag reload_cmds need_locks \
18613 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18614 lt_cv_sys_global_symbol_to_c_name_address \
18615 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18616 old_postinstall_cmds old_postuninstall_cmds \
18617 compiler_GCJ \
18618 CC_GCJ \
18619 LD_GCJ \
18620 lt_prog_compiler_wl_GCJ \
18621 lt_prog_compiler_pic_GCJ \
18622 lt_prog_compiler_static_GCJ \
18623 lt_prog_compiler_no_builtin_flag_GCJ \
18624 export_dynamic_flag_spec_GCJ \
18625 thread_safe_flag_spec_GCJ \
18626 whole_archive_flag_spec_GCJ \
18627 enable_shared_with_static_runtimes_GCJ \
18628 old_archive_cmds_GCJ \
18629 old_archive_from_new_cmds_GCJ \
18630 predep_objects_GCJ \
18631 postdep_objects_GCJ \
18632 predeps_GCJ \
18633 postdeps_GCJ \
18634 compiler_lib_search_path_GCJ \
18635 compiler_lib_search_dirs_GCJ \
18636 archive_cmds_GCJ \
18637 archive_expsym_cmds_GCJ \
18638 postinstall_cmds_GCJ \
18639 postuninstall_cmds_GCJ \
18640 old_archive_from_expsyms_cmds_GCJ \
18641 allow_undefined_flag_GCJ \
18642 no_undefined_flag_GCJ \
18643 export_symbols_cmds_GCJ \
18644 hardcode_libdir_flag_spec_GCJ \
18645 hardcode_libdir_flag_spec_ld_GCJ \
18646 hardcode_libdir_separator_GCJ \
18647 hardcode_automatic_GCJ \
18648 module_cmds_GCJ \
18649 module_expsym_cmds_GCJ \
18650 lt_cv_prog_compiler_c_o_GCJ \
18651 fix_srcfile_path_GCJ \
18652 exclude_expsyms_GCJ \
18653 include_expsyms_GCJ; do
18654
18655 case $var in
18656 old_archive_cmds_GCJ | \
18657 old_archive_from_new_cmds_GCJ | \
18658 archive_cmds_GCJ | \
18659 archive_expsym_cmds_GCJ | \
18660 module_cmds_GCJ | \
18661 module_expsym_cmds_GCJ | \
18662 old_archive_from_expsyms_cmds_GCJ | \
18663 export_symbols_cmds_GCJ | \
18664 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18665 postinstall_cmds | postuninstall_cmds | \
18666 old_postinstall_cmds | old_postuninstall_cmds | \
18667 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18668 # Double-quote double-evaled strings.
18669 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18670 ;;
18671 *)
18672 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18673 ;;
18674 esac
18675 done
18676
18677 case $lt_echo in
18678 *'\$0 --fallback-echo"')
18679 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18680 ;;
18681 esac
18682
18683 cfgfile="$ofile"
18684
18685 cat <<__EOF__ >> "$cfgfile"
18686 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18687
18688 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18689
18690 # Shell to use when invoking shell scripts.
18691 SHELL=$lt_SHELL
18692
18693 # Whether or not to build shared libraries.
18694 build_libtool_libs=$enable_shared
18695
18696 # Whether or not to build static libraries.
18697 build_old_libs=$enable_static
18698
18699 # Whether or not to add -lc for building shared libraries.
18700 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18701
18702 # Whether or not to disallow shared libs when runtime libs are static
18703 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18704
18705 # Whether or not to optimize for fast installation.
18706 fast_install=$enable_fast_install
18707
18708 # The host system.
18709 host_alias=$host_alias
18710 host=$host
18711 host_os=$host_os
18712
18713 # The build system.
18714 build_alias=$build_alias
18715 build=$build
18716 build_os=$build_os
18717
18718 # An echo program that does not interpret backslashes.
18719 echo=$lt_echo
18720
18721 # The archiver.
18722 AR=$lt_AR
18723 AR_FLAGS=$lt_AR_FLAGS
18724
18725 # A C compiler.
18726 LTCC=$lt_LTCC
18727
18728 # LTCC compiler flags.
18729 LTCFLAGS=$lt_LTCFLAGS
18730
18731 # A language-specific compiler.
18732 CC=$lt_compiler_GCJ
18733
18734 # Is the compiler the GNU C compiler?
18735 with_gcc=$GCC_GCJ
18736
18737 # An ERE matcher.
18738 EGREP=$lt_EGREP
18739
18740 # The linker used to build libraries.
18741 LD=$lt_LD_GCJ
18742
18743 # Whether we need hard or soft links.
18744 LN_S=$lt_LN_S
18745
18746 # A BSD-compatible nm program.
18747 NM=$lt_NM
18748
18749 # A symbol stripping program
18750 STRIP=$lt_STRIP
18751
18752 # Used to examine libraries when file_magic_cmd begins "file"
18753 MAGIC_CMD=$MAGIC_CMD
18754
18755 # Used on cygwin: DLL creation program.
18756 DLLTOOL="$DLLTOOL"
18757
18758 # Used on cygwin: object dumper.
18759 OBJDUMP="$OBJDUMP"
18760
18761 # Used on cygwin: assembler.
18762 AS="$AS"
18763
18764 # The name of the directory that contains temporary libtool files.
18765 objdir=$objdir
18766
18767 # How to create reloadable object files.
18768 reload_flag=$lt_reload_flag
18769 reload_cmds=$lt_reload_cmds
18770
18771 # How to pass a linker flag through the compiler.
18772 wl=$lt_lt_prog_compiler_wl_GCJ
18773
18774 # Object file suffix (normally "o").
18775 objext="$ac_objext"
18776
18777 # Old archive suffix (normally "a").
18778 libext="$libext"
18779
18780 # Shared library suffix (normally ".so").
18781 shrext_cmds='$shrext_cmds'
18782
18783 # Executable file suffix (normally "").
18784 exeext="$exeext"
18785
18786 # Additional compiler flags for building library objects.
18787 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18788 pic_mode=$pic_mode
18789
18790 # What is the maximum length of a command?
18791 max_cmd_len=$lt_cv_sys_max_cmd_len
18792
18793 # Does compiler simultaneously support -c and -o options?
18794 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18795
18796 # Must we lock files when doing compilation?
18797 need_locks=$lt_need_locks
18798
18799 # Do we need the lib prefix for modules?
18800 need_lib_prefix=$need_lib_prefix
18801
18802 # Do we need a version for libraries?
18803 need_version=$need_version
18804
18805 # Whether dlopen is supported.
18806 dlopen_support=$enable_dlopen
18807
18808 # Whether dlopen of programs is supported.
18809 dlopen_self=$enable_dlopen_self
18810
18811 # Whether dlopen of statically linked programs is supported.
18812 dlopen_self_static=$enable_dlopen_self_static
18813
18814 # Compiler flag to prevent dynamic linking.
18815 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18816
18817 # Compiler flag to turn off builtin functions.
18818 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18819
18820 # Compiler flag to allow reflexive dlopens.
18821 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18822
18823 # Compiler flag to generate shared objects directly from archives.
18824 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18825
18826 # Compiler flag to generate thread-safe objects.
18827 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18828
18829 # Library versioning type.
18830 version_type=$version_type
18831
18832 # Format of library name prefix.
18833 libname_spec=$lt_libname_spec
18834
18835 # List of archive names. First name is the real one, the rest are links.
18836 # The last name is the one that the linker finds with -lNAME.
18837 library_names_spec=$lt_library_names_spec
18838
18839 # The coded name of the library, if different from the real name.
18840 soname_spec=$lt_soname_spec
18841
18842 # Commands used to build and install an old-style archive.
18843 RANLIB=$lt_RANLIB
18844 old_archive_cmds=$lt_old_archive_cmds_GCJ
18845 old_postinstall_cmds=$lt_old_postinstall_cmds
18846 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18847
18848 # Create an old-style archive from a shared archive.
18849 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18850
18851 # Create a temporary old-style archive to link instead of a shared archive.
18852 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18853
18854 # Commands used to build and install a shared archive.
18855 archive_cmds=$lt_archive_cmds_GCJ
18856 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18857 postinstall_cmds=$lt_postinstall_cmds
18858 postuninstall_cmds=$lt_postuninstall_cmds
18859
18860 # Commands used to build a loadable module (assumed same as above if empty)
18861 module_cmds=$lt_module_cmds_GCJ
18862 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18863
18864 # Commands to strip libraries.
18865 old_striplib=$lt_old_striplib
18866 striplib=$lt_striplib
18867
18868 # Dependencies to place before the objects being linked to create a
18869 # shared library.
18870 predep_objects=$lt_predep_objects_GCJ
18871
18872 # Dependencies to place after the objects being linked to create a
18873 # shared library.
18874 postdep_objects=$lt_postdep_objects_GCJ
18875
18876 # Dependencies to place before the objects being linked to create a
18877 # shared library.
18878 predeps=$lt_predeps_GCJ
18879
18880 # Dependencies to place after the objects being linked to create a
18881 # shared library.
18882 postdeps=$lt_postdeps_GCJ
18883
18884 # The directories searched by this compiler when creating a shared
18885 # library
18886 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18887
18888 # The library search path used internally by the compiler when linking
18889 # a shared library.
18890 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18891
18892 # Method to check whether dependent libraries are shared objects.
18893 deplibs_check_method=$lt_deplibs_check_method
18894
18895 # Command to use when deplibs_check_method == file_magic.
18896 file_magic_cmd=$lt_file_magic_cmd
18897
18898 # Flag that allows shared libraries with undefined symbols to be built.
18899 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18900
18901 # Flag that forces no undefined symbols.
18902 no_undefined_flag=$lt_no_undefined_flag_GCJ
18903
18904 # Commands used to finish a libtool library installation in a directory.
18905 finish_cmds=$lt_finish_cmds
18906
18907 # Same as above, but a single script fragment to be evaled but not shown.
18908 finish_eval=$lt_finish_eval
18909
18910 # Take the output of nm and produce a listing of raw symbols and C names.
18911 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18912
18913 # Transform the output of nm in a proper C declaration
18914 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18915
18916 # Transform the output of nm in a C name address pair
18917 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18918
18919 # This is the shared library runtime path variable.
18920 runpath_var=$runpath_var
18921
18922 # This is the shared library path variable.
18923 shlibpath_var=$shlibpath_var
18924
18925 # Is shlibpath searched before the hard-coded library search path?
18926 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18927
18928 # How to hardcode a shared library path into an executable.
18929 hardcode_action=$hardcode_action_GCJ
18930
18931 # Whether we should hardcode library paths into libraries.
18932 hardcode_into_libs=$hardcode_into_libs
18933
18934 # Flag to hardcode \$libdir into a binary during linking.
18935 # This must work even if \$libdir does not exist.
18936 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18937
18938 # If ld is used when linking, flag to hardcode \$libdir into
18939 # a binary during linking. This must work even if \$libdir does
18940 # not exist.
18941 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18942
18943 # Whether we need a single -rpath flag with a separated argument.
18944 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18945
18946 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18947 # resulting binary.
18948 hardcode_direct=$hardcode_direct_GCJ
18949
18950 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18951 # resulting binary.
18952 hardcode_minus_L=$hardcode_minus_L_GCJ
18953
18954 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18955 # the resulting binary.
18956 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18957
18958 # Set to yes if building a shared library automatically hardcodes DIR into the library
18959 # and all subsequent libraries and executables linked against it.
18960 hardcode_automatic=$hardcode_automatic_GCJ
18961
18962 # Variables whose values should be saved in libtool wrapper scripts and
18963 # restored at relink time.
18964 variables_saved_for_relink="$variables_saved_for_relink"
18965
18966 # Whether libtool must link a program against all its dependency libraries.
18967 link_all_deplibs=$link_all_deplibs_GCJ
18968
18969 # Compile-time system search path for libraries
18970 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18971
18972 # Run-time system search path for libraries
18973 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18974
18975 # Fix the shell variable \$srcfile for the compiler.
18976 fix_srcfile_path=$lt_fix_srcfile_path
18977
18978 # Set to yes if exported symbols are required.
18979 always_export_symbols=$always_export_symbols_GCJ
18980
18981 # The commands to list exported symbols.
18982 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18983
18984 # The commands to extract the exported symbol list from a shared archive.
18985 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18986
18987 # Symbols that should not be listed in the preloaded symbols.
18988 exclude_expsyms=$lt_exclude_expsyms_GCJ
18989
18990 # Symbols that must always be exported.
18991 include_expsyms=$lt_include_expsyms_GCJ
18992
18993 # ### END LIBTOOL TAG CONFIG: $tagname
18994
18995 __EOF__
18996
18997
18998 else
18999 # If there is no Makefile yet, we rely on a make rule to execute
19000 # `config.status --recheck' to rerun these tests and create the
19001 # libtool script then.
19002 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19003 if test -f "$ltmain_in"; then
19004 test -f Makefile && make "$ltmain"
19005 fi
19006 fi
19007
19008
19009 ac_ext=cpp
19010 ac_cpp='$CXXCPP $CPPFLAGS'
19011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19014
19015 CC="$lt_save_CC"
19016
19017 else
19018 tagname=""
19019 fi
19020 ;;
19021
19022 RC)
19023
19024
19025 # Source file extension for RC test sources.
19026 ac_ext=rc
19027
19028 # Object file extension for compiled RC test sources.
19029 objext=o
19030 objext_RC=$objext
19031
19032 # Code to be used in simple compile tests
19033 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19034
19035 # Code to be used in simple link tests
19036 lt_simple_link_test_code="$lt_simple_compile_test_code"
19037
19038 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19039
19040 # If no C compiler was specified, use CC.
19041 LTCC=${LTCC-"$CC"}
19042
19043 # If no C compiler flags were specified, use CFLAGS.
19044 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19045
19046 # Allow CC to be a program name with arguments.
19047 compiler=$CC
19048
19049
19050 # save warnings/boilerplate of simple test code
19051 ac_outfile=conftest.$ac_objext
19052 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19053 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19054 _lt_compiler_boilerplate=`cat conftest.err`
19055 $rm conftest*
19056
19057 ac_outfile=conftest.$ac_objext
19058 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19059 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19060 _lt_linker_boilerplate=`cat conftest.err`
19061 $rm -r conftest*
19062
19063
19064 # Allow CC to be a program name with arguments.
19065 lt_save_CC="$CC"
19066 CC=${RC-"windres"}
19067 compiler=$CC
19068 compiler_RC=$CC
19069 for cc_temp in $compiler""; do
19070 case $cc_temp in
19071 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19072 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19073 \-*) ;;
19074 *) break;;
19075 esac
19076 done
19077 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19078
19079 lt_cv_prog_compiler_c_o_RC=yes
19080
19081 # The else clause should only fire when bootstrapping the
19082 # libtool distribution, otherwise you forgot to ship ltmain.sh
19083 # with your package, and you will get complaints that there are
19084 # no rules to generate ltmain.sh.
19085 if test -f "$ltmain"; then
19086 # See if we are running on zsh, and set the options which allow our commands through
19087 # without removal of \ escapes.
19088 if test -n "${ZSH_VERSION+set}" ; then
19089 setopt NO_GLOB_SUBST
19090 fi
19091 # Now quote all the things that may contain metacharacters while being
19092 # careful not to overquote the AC_SUBSTed values. We take copies of the
19093 # variables and quote the copies for generation of the libtool script.
19094 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19095 SED SHELL STRIP \
19096 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19097 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19098 deplibs_check_method reload_flag reload_cmds need_locks \
19099 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19100 lt_cv_sys_global_symbol_to_c_name_address \
19101 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19102 old_postinstall_cmds old_postuninstall_cmds \
19103 compiler_RC \
19104 CC_RC \
19105 LD_RC \
19106 lt_prog_compiler_wl_RC \
19107 lt_prog_compiler_pic_RC \
19108 lt_prog_compiler_static_RC \
19109 lt_prog_compiler_no_builtin_flag_RC \
19110 export_dynamic_flag_spec_RC \
19111 thread_safe_flag_spec_RC \
19112 whole_archive_flag_spec_RC \
19113 enable_shared_with_static_runtimes_RC \
19114 old_archive_cmds_RC \
19115 old_archive_from_new_cmds_RC \
19116 predep_objects_RC \
19117 postdep_objects_RC \
19118 predeps_RC \
19119 postdeps_RC \
19120 compiler_lib_search_path_RC \
19121 compiler_lib_search_dirs_RC \
19122 archive_cmds_RC \
19123 archive_expsym_cmds_RC \
19124 postinstall_cmds_RC \
19125 postuninstall_cmds_RC \
19126 old_archive_from_expsyms_cmds_RC \
19127 allow_undefined_flag_RC \
19128 no_undefined_flag_RC \
19129 export_symbols_cmds_RC \
19130 hardcode_libdir_flag_spec_RC \
19131 hardcode_libdir_flag_spec_ld_RC \
19132 hardcode_libdir_separator_RC \
19133 hardcode_automatic_RC \
19134 module_cmds_RC \
19135 module_expsym_cmds_RC \
19136 lt_cv_prog_compiler_c_o_RC \
19137 fix_srcfile_path_RC \
19138 exclude_expsyms_RC \
19139 include_expsyms_RC; do
19140
19141 case $var in
19142 old_archive_cmds_RC | \
19143 old_archive_from_new_cmds_RC | \
19144 archive_cmds_RC | \
19145 archive_expsym_cmds_RC | \
19146 module_cmds_RC | \
19147 module_expsym_cmds_RC | \
19148 old_archive_from_expsyms_cmds_RC | \
19149 export_symbols_cmds_RC | \
19150 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19151 postinstall_cmds | postuninstall_cmds | \
19152 old_postinstall_cmds | old_postuninstall_cmds | \
19153 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19154 # Double-quote double-evaled strings.
19155 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19156 ;;
19157 *)
19158 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19159 ;;
19160 esac
19161 done
19162
19163 case $lt_echo in
19164 *'\$0 --fallback-echo"')
19165 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19166 ;;
19167 esac
19168
19169 cfgfile="$ofile"
19170
19171 cat <<__EOF__ >> "$cfgfile"
19172 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19173
19174 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19175
19176 # Shell to use when invoking shell scripts.
19177 SHELL=$lt_SHELL
19178
19179 # Whether or not to build shared libraries.
19180 build_libtool_libs=$enable_shared
19181
19182 # Whether or not to build static libraries.
19183 build_old_libs=$enable_static
19184
19185 # Whether or not to add -lc for building shared libraries.
19186 build_libtool_need_lc=$archive_cmds_need_lc_RC
19187
19188 # Whether or not to disallow shared libs when runtime libs are static
19189 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19190
19191 # Whether or not to optimize for fast installation.
19192 fast_install=$enable_fast_install
19193
19194 # The host system.
19195 host_alias=$host_alias
19196 host=$host
19197 host_os=$host_os
19198
19199 # The build system.
19200 build_alias=$build_alias
19201 build=$build
19202 build_os=$build_os
19203
19204 # An echo program that does not interpret backslashes.
19205 echo=$lt_echo
19206
19207 # The archiver.
19208 AR=$lt_AR
19209 AR_FLAGS=$lt_AR_FLAGS
19210
19211 # A C compiler.
19212 LTCC=$lt_LTCC
19213
19214 # LTCC compiler flags.
19215 LTCFLAGS=$lt_LTCFLAGS
19216
19217 # A language-specific compiler.
19218 CC=$lt_compiler_RC
19219
19220 # Is the compiler the GNU C compiler?
19221 with_gcc=$GCC_RC
19222
19223 # An ERE matcher.
19224 EGREP=$lt_EGREP
19225
19226 # The linker used to build libraries.
19227 LD=$lt_LD_RC
19228
19229 # Whether we need hard or soft links.
19230 LN_S=$lt_LN_S
19231
19232 # A BSD-compatible nm program.
19233 NM=$lt_NM
19234
19235 # A symbol stripping program
19236 STRIP=$lt_STRIP
19237
19238 # Used to examine libraries when file_magic_cmd begins "file"
19239 MAGIC_CMD=$MAGIC_CMD
19240
19241 # Used on cygwin: DLL creation program.
19242 DLLTOOL="$DLLTOOL"
19243
19244 # Used on cygwin: object dumper.
19245 OBJDUMP="$OBJDUMP"
19246
19247 # Used on cygwin: assembler.
19248 AS="$AS"
19249
19250 # The name of the directory that contains temporary libtool files.
19251 objdir=$objdir
19252
19253 # How to create reloadable object files.
19254 reload_flag=$lt_reload_flag
19255 reload_cmds=$lt_reload_cmds
19256
19257 # How to pass a linker flag through the compiler.
19258 wl=$lt_lt_prog_compiler_wl_RC
19259
19260 # Object file suffix (normally "o").
19261 objext="$ac_objext"
19262
19263 # Old archive suffix (normally "a").
19264 libext="$libext"
19265
19266 # Shared library suffix (normally ".so").
19267 shrext_cmds='$shrext_cmds'
19268
19269 # Executable file suffix (normally "").
19270 exeext="$exeext"
19271
19272 # Additional compiler flags for building library objects.
19273 pic_flag=$lt_lt_prog_compiler_pic_RC
19274 pic_mode=$pic_mode
19275
19276 # What is the maximum length of a command?
19277 max_cmd_len=$lt_cv_sys_max_cmd_len
19278
19279 # Does compiler simultaneously support -c and -o options?
19280 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19281
19282 # Must we lock files when doing compilation?
19283 need_locks=$lt_need_locks
19284
19285 # Do we need the lib prefix for modules?
19286 need_lib_prefix=$need_lib_prefix
19287
19288 # Do we need a version for libraries?
19289 need_version=$need_version
19290
19291 # Whether dlopen is supported.
19292 dlopen_support=$enable_dlopen
19293
19294 # Whether dlopen of programs is supported.
19295 dlopen_self=$enable_dlopen_self
19296
19297 # Whether dlopen of statically linked programs is supported.
19298 dlopen_self_static=$enable_dlopen_self_static
19299
19300 # Compiler flag to prevent dynamic linking.
19301 link_static_flag=$lt_lt_prog_compiler_static_RC
19302
19303 # Compiler flag to turn off builtin functions.
19304 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19305
19306 # Compiler flag to allow reflexive dlopens.
19307 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19308
19309 # Compiler flag to generate shared objects directly from archives.
19310 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19311
19312 # Compiler flag to generate thread-safe objects.
19313 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19314
19315 # Library versioning type.
19316 version_type=$version_type
19317
19318 # Format of library name prefix.
19319 libname_spec=$lt_libname_spec
19320
19321 # List of archive names. First name is the real one, the rest are links.
19322 # The last name is the one that the linker finds with -lNAME.
19323 library_names_spec=$lt_library_names_spec
19324
19325 # The coded name of the library, if different from the real name.
19326 soname_spec=$lt_soname_spec
19327
19328 # Commands used to build and install an old-style archive.
19329 RANLIB=$lt_RANLIB
19330 old_archive_cmds=$lt_old_archive_cmds_RC
19331 old_postinstall_cmds=$lt_old_postinstall_cmds
19332 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19333
19334 # Create an old-style archive from a shared archive.
19335 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19336
19337 # Create a temporary old-style archive to link instead of a shared archive.
19338 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19339
19340 # Commands used to build and install a shared archive.
19341 archive_cmds=$lt_archive_cmds_RC
19342 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19343 postinstall_cmds=$lt_postinstall_cmds
19344 postuninstall_cmds=$lt_postuninstall_cmds
19345
19346 # Commands used to build a loadable module (assumed same as above if empty)
19347 module_cmds=$lt_module_cmds_RC
19348 module_expsym_cmds=$lt_module_expsym_cmds_RC
19349
19350 # Commands to strip libraries.
19351 old_striplib=$lt_old_striplib
19352 striplib=$lt_striplib
19353
19354 # Dependencies to place before the objects being linked to create a
19355 # shared library.
19356 predep_objects=$lt_predep_objects_RC
19357
19358 # Dependencies to place after the objects being linked to create a
19359 # shared library.
19360 postdep_objects=$lt_postdep_objects_RC
19361
19362 # Dependencies to place before the objects being linked to create a
19363 # shared library.
19364 predeps=$lt_predeps_RC
19365
19366 # Dependencies to place after the objects being linked to create a
19367 # shared library.
19368 postdeps=$lt_postdeps_RC
19369
19370 # The directories searched by this compiler when creating a shared
19371 # library
19372 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19373
19374 # The library search path used internally by the compiler when linking
19375 # a shared library.
19376 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19377
19378 # Method to check whether dependent libraries are shared objects.
19379 deplibs_check_method=$lt_deplibs_check_method
19380
19381 # Command to use when deplibs_check_method == file_magic.
19382 file_magic_cmd=$lt_file_magic_cmd
19383
19384 # Flag that allows shared libraries with undefined symbols to be built.
19385 allow_undefined_flag=$lt_allow_undefined_flag_RC
19386
19387 # Flag that forces no undefined symbols.
19388 no_undefined_flag=$lt_no_undefined_flag_RC
19389
19390 # Commands used to finish a libtool library installation in a directory.
19391 finish_cmds=$lt_finish_cmds
19392
19393 # Same as above, but a single script fragment to be evaled but not shown.
19394 finish_eval=$lt_finish_eval
19395
19396 # Take the output of nm and produce a listing of raw symbols and C names.
19397 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19398
19399 # Transform the output of nm in a proper C declaration
19400 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19401
19402 # Transform the output of nm in a C name address pair
19403 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19404
19405 # This is the shared library runtime path variable.
19406 runpath_var=$runpath_var
19407
19408 # This is the shared library path variable.
19409 shlibpath_var=$shlibpath_var
19410
19411 # Is shlibpath searched before the hard-coded library search path?
19412 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19413
19414 # How to hardcode a shared library path into an executable.
19415 hardcode_action=$hardcode_action_RC
19416
19417 # Whether we should hardcode library paths into libraries.
19418 hardcode_into_libs=$hardcode_into_libs
19419
19420 # Flag to hardcode \$libdir into a binary during linking.
19421 # This must work even if \$libdir does not exist.
19422 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19423
19424 # If ld is used when linking, flag to hardcode \$libdir into
19425 # a binary during linking. This must work even if \$libdir does
19426 # not exist.
19427 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19428
19429 # Whether we need a single -rpath flag with a separated argument.
19430 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19431
19432 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19433 # resulting binary.
19434 hardcode_direct=$hardcode_direct_RC
19435
19436 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19437 # resulting binary.
19438 hardcode_minus_L=$hardcode_minus_L_RC
19439
19440 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19441 # the resulting binary.
19442 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19443
19444 # Set to yes if building a shared library automatically hardcodes DIR into the library
19445 # and all subsequent libraries and executables linked against it.
19446 hardcode_automatic=$hardcode_automatic_RC
19447
19448 # Variables whose values should be saved in libtool wrapper scripts and
19449 # restored at relink time.
19450 variables_saved_for_relink="$variables_saved_for_relink"
19451
19452 # Whether libtool must link a program against all its dependency libraries.
19453 link_all_deplibs=$link_all_deplibs_RC
19454
19455 # Compile-time system search path for libraries
19456 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19457
19458 # Run-time system search path for libraries
19459 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19460
19461 # Fix the shell variable \$srcfile for the compiler.
19462 fix_srcfile_path=$lt_fix_srcfile_path
19463
19464 # Set to yes if exported symbols are required.
19465 always_export_symbols=$always_export_symbols_RC
19466
19467 # The commands to list exported symbols.
19468 export_symbols_cmds=$lt_export_symbols_cmds_RC
19469
19470 # The commands to extract the exported symbol list from a shared archive.
19471 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19472
19473 # Symbols that should not be listed in the preloaded symbols.
19474 exclude_expsyms=$lt_exclude_expsyms_RC
19475
19476 # Symbols that must always be exported.
19477 include_expsyms=$lt_include_expsyms_RC
19478
19479 # ### END LIBTOOL TAG CONFIG: $tagname
19480
19481 __EOF__
19482
19483
19484 else
19485 # If there is no Makefile yet, we rely on a make rule to execute
19486 # `config.status --recheck' to rerun these tests and create the
19487 # libtool script then.
19488 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19489 if test -f "$ltmain_in"; then
19490 test -f Makefile && make "$ltmain"
19491 fi
19492 fi
19493
19494
19495 ac_ext=cpp
19496 ac_cpp='$CXXCPP $CPPFLAGS'
19497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19500
19501 CC="$lt_save_CC"
19502
19503 ;;
19504
19505 *)
19506 as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
19507 ;;
19508 esac
19509
19510 # Append the new tag name to the list of available tags.
19511 if test -n "$tagname" ; then
19512 available_tags="$available_tags $tagname"
19513 fi
19514 fi
19515 done
19516 IFS="$lt_save_ifs"
19517
19518 # Now substitute the updated list of available tags.
19519 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19520 mv "${ofile}T" "$ofile"
19521 chmod +x "$ofile"
19522 else
19523 rm -f "${ofile}T"
19524 as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
19525 fi
19526 fi
19527
19528
19529
19530 # This can be used to rebuild libtool when needed
19531 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19532
19533 # Always use our own libtool.
19534 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19535
19536 # Prevent multiple expansion
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19559
19560 CPPFLAGS="$CPPFLAGS -DDIME_INTERNAL"
19561
19562 dime_build_dir=`pwd`
19563 dime_src_dir=`cd "$srcdir"; pwd`
19564
19565
19566
19567
19568 if test x"${sim_ac_configuration_settings+set}" = x"set"; then
19569 sim_ac_configuration_settings="$sim_ac_configuration_settings|Dime version:0.9.1"
19570 else
19571 sim_ac_configuration_settings="Dime version:0.9.1"
19572 fi
19573
19574
19575 # *******************************************************************
19576 # disable build if you just want to generate doc.
19577
19578 sim_ac_build_library=true
19579 # Check whether --enable-build was given.
19580 if test "${enable_build+set}" = set; then :
19581 enableval=$enable_build; case $enableval in
19582 no | false)
19583 sim_ac_build_library=false
19584
19585 if test x"${sim_ac_configuration_settings+set}" = x"set"; then
19586 sim_ac_configuration_settings="$sim_ac_configuration_settings|Dime build type:build disabled"
19587 else
19588 sim_ac_configuration_settings="Dime build type:build disabled"
19589 fi
19590
19591 ;;
19592 esac
19593 fi
19594
19595
19596
19597
19598 if $sim_ac_build_library; then
19599 BUILD_LIBRARY_TRUE=
19600 BUILD_LIBRARY_FALSE='#'
19601 else
19602 BUILD_LIBRARY_TRUE='#'
19603 BUILD_LIBRARY_FALSE=
19604 fi
19605
19606
19607 # *******************************************************************
19608 # * Do we want to build the documentation?
19609 # *******************************************************************
19610
19611 # Check whether --enable-html was given.
19612 if test "${enable_html+set}" = set; then :
19613 enableval=$enable_html; case $enableval in
19614 yes | true) want_html=yes ;;
19615 *) want_html=no ;;
19616 esac
19617 else
19618 want_html=no
19619 fi
19620
19621
19622 case $htmldir in
19623 /*)
19624 # do nothing - absolute path
19625 ;;
19626 *)
19627 # expand $docdir and append /html
19628 htmldir=`eval echo ${docdir}`/html
19629 ;;
19630 esac
19631
19632
19633
19634 # Used in the Doxygen parameter file.
19635 DIME_DOC_HTML=`echo $want_html | tr 'a-z' 'A-Z'`
19636
19637 dime_html_dir=`pwd`/html
19638
19639
19640
19641 if test x"$want_html" = x"yes"; then
19642 BUILD_HTMLPAGES_TRUE=
19643 BUILD_HTMLPAGES_FALSE='#'
19644 else
19645 BUILD_HTMLPAGES_TRUE='#'
19646 BUILD_HTMLPAGES_FALSE=
19647 fi
19648
19649
19650 if test x"$want_html" = x"yes"; then
19651
19652
19653 # Check whether --with-doxygen was given.
19654 if test "${with_doxygen+set}" = set; then :
19655 withval=$with_doxygen;
19656 else
19657 with_doxygen=yes
19658 fi
19659
19660
19661 sim_ac_doxygen_avail=no
19662
19663 if test x"$with_doxygen" != xno; then
19664 sim_ac_path=$PATH
19665 if test x"$with_doxygen" != xyes; then
19666 sim_ac_path=${with_doxygen}:$PATH
19667 fi
19668
19669 # Extract the first word of "doxygen", so it can be a program name with args.
19670 set dummy doxygen; ac_word=$2
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19672 $as_echo_n "checking for $ac_word... " >&6; }
19673 if test "${ac_cv_path_sim_ac_doxygen_exe+set}" = set; then :
19674 $as_echo_n "(cached) " >&6
19675 else
19676 case $sim_ac_doxygen_exe in
19677 [\\/]* | ?:[\\/]*)
19678 ac_cv_path_sim_ac_doxygen_exe="$sim_ac_doxygen_exe" # Let the user override the test with a path.
19679 ;;
19680 *)
19681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19682 for as_dir in $sim_ac_path
19683 do
19684 IFS=$as_save_IFS
19685 test -z "$as_dir" && as_dir=.
19686 for ac_exec_ext in '' $ac_executable_extensions; do
19687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19688 ac_cv_path_sim_ac_doxygen_exe="$as_dir/$ac_word$ac_exec_ext"
19689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19690 break 2
19691 fi
19692 done
19693 done
19694 IFS=$as_save_IFS
19695
19696 test -z "$ac_cv_path_sim_ac_doxygen_exe" && ac_cv_path_sim_ac_doxygen_exe="false"
19697 ;;
19698 esac
19699 fi
19700 sim_ac_doxygen_exe=$ac_cv_path_sim_ac_doxygen_exe
19701 if test -n "$sim_ac_doxygen_exe"; then
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_doxygen_exe" >&5
19703 $as_echo "$sim_ac_doxygen_exe" >&6; }
19704 else
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19706 $as_echo "no" >&6; }
19707 fi
19708
19709
19710 if test x"$sim_ac_doxygen_exe" = xfalse; then
19711
19712 echo >&2 ""
19713
19714
19715 : ${sim_ac_message_file=$ac_aux_dir/errors.txt}
19716 if test -f $sim_ac_message_file; then
19717 sim_ac_message="`sed -n -e '/^!no-doxygen$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`"
19718 if test x"$sim_ac_message" = x""; then
19719 as_fn_error "no message named 'no-doxygen' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5
19720 else
19721 eval "echo >&2 \"$sim_ac_message\""
19722 fi
19723 else
19724 as_fn_error "file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5
19725 fi
19726
19727
19728
19729 echo >&2 ""
19730 as_fn_error "aborting" "$LINENO" 5
19731
19732 else
19733 sim_ac_doxygen_avail=`$sim_ac_doxygen_exe -help 2> /dev/null | head -1 | sed 's%[^ ]\+ [^ ]\+ %%'`
19734
19735 fi
19736 fi
19737
19738 # Perl is used for the Doxygen-based doc generation
19739 # Extract the first word of "perl", so it can be a program name with args.
19740 set dummy perl; ac_word=$2
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19742 $as_echo_n "checking for $ac_word... " >&6; }
19743 if test "${ac_cv_path_sim_ac_perl_exe+set}" = set; then :
19744 $as_echo_n "(cached) " >&6
19745 else
19746 case $sim_ac_perl_exe in
19747 [\\/]* | ?:[\\/]*)
19748 ac_cv_path_sim_ac_perl_exe="$sim_ac_perl_exe" # Let the user override the test with a path.
19749 ;;
19750 *)
19751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19752 for as_dir in $PATH
19753 do
19754 IFS=$as_save_IFS
19755 test -z "$as_dir" && as_dir=.
19756 for ac_exec_ext in '' $ac_executable_extensions; do
19757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19758 ac_cv_path_sim_ac_perl_exe="$as_dir/$ac_word$ac_exec_ext"
19759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19760 break 2
19761 fi
19762 done
19763 done
19764 IFS=$as_save_IFS
19765
19766 test -z "$ac_cv_path_sim_ac_perl_exe" && ac_cv_path_sim_ac_perl_exe="false"
19767 ;;
19768 esac
19769 fi
19770 sim_ac_perl_exe=$ac_cv_path_sim_ac_perl_exe
19771 if test -n "$sim_ac_perl_exe"; then
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_perl_exe" >&5
19773 $as_echo "$sim_ac_perl_exe" >&6; }
19774 else
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19776 $as_echo "no" >&6; }
19777 fi
19778
19779
19780 if test x"$sim_ac_perl_exe" = xfalse; then
19781 as_fn_error "Could not find the Perl executable, which is needed for Doxygen doc generation." "$LINENO" 5
19782 fi
19783
19784 if test x"${sim_ac_configuration_settings+set}" = x"set"; then
19785 sim_ac_configuration_settings="$sim_ac_configuration_settings|HTML installation:$htmldir"
19786 else
19787 sim_ac_configuration_settings="HTML installation:$htmldir"
19788 fi
19789
19790 fi
19791
19792 # path_tag is used to identify paths in docs/coin.doxygen that needs to be
19793 # transformed using cygpath under cygwin.
19794
19795 case $host in
19796 *-cygwin) path_tag="<PATH>" ;;
19797 *) path_tag= ;;
19798 esac
19799
19800
19801
19802 # Make it possible for the user to turn off optimization flags.
19803
19804 # Check whether --enable-optimization was given.
19805 if test "${enable_optimization+set}" = set; then :
19806 enableval=$enable_optimization; case "${enableval}" in
19807 yes) sim_ac_enable_optimization=true ;;
19808 no) sim_ac_enable_optimization=false ;;
19809 *) as_fn_error "bad value \"${enableval}\" for --enable-optimization" "$LINENO" 5 ;;
19810 esac
19811 else
19812 sim_ac_enable_optimization=true
19813 fi
19814
19815
19816 if $sim_ac_enable_optimization; then
19817 case $CXX in
19818 *wrapmsvc* )
19819 CFLAGS="/Ox $CFLAGS"
19820 CXXFLAGS="/Ox $CXXFLAGS"
19821 ;;
19822 esac
19823 :
19824 else
19825 CFLAGS="`echo $CFLAGS | sed 's/-O[0-9]*[ ]*//'`"
19826 CXXFLAGS="`echo $CXXFLAGS | sed 's/-O[0-9]*[ ]*//'`"
19827 fi
19828
19829
19830
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if user is simian" >&5
19832 $as_echo_n "checking if user is simian... " >&6; }
19833 case `hostname -d 2>/dev/null || domainname 2>/dev/null || hostname` in
19834 *.sim.no | sim.no )
19835 sim_ac_simian=true
19836 ;;
19837 * )
19838 if grep -ls "domain.*sim\\.no" /etc/resolv.conf >/dev/null; then
19839 sim_ac_simian=true
19840 :
19841 else
19842 sim_ac_simian=false
19843 :
19844 fi
19845 ;;
19846 esac
19847
19848 if $sim_ac_simian; then
19849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: probably" >&5
19850 $as_echo "probably" >&6; }
19851 :
19852 else
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: probably not" >&5
19854 $as_echo "probably not" >&6; }
19855 :
19856 fi
19857
19858
19859
19860 # Check whether --enable-debug was given.
19861 if test "${enable_debug+set}" = set; then :
19862 enableval=$enable_debug; case "${enableval}" in
19863 yes) enable_debug=true ;;
19864 no) enable_debug=false ;;
19865 true | false) enable_debug=${enableval} ;;
19866 *) as_fn_error "bad value \"${enableval}\" for --enable-debug" "$LINENO" 5 ;;
19867 esac
19868 else
19869 enable_debug=true
19870 fi
19871
19872
19873 if $enable_debug; then
19874 DSUFFIX=d
19875 if $sim_ac_simian; then
19876 case $CXX in
19877 *wrapmsvc* )
19878 # uninitialized checks
19879 if test ${sim_ac_msc_major_version-0} -gt 6; then
19880
19881
19882 ac_ext=c
19883 ac_cpp='$CPP $CPPFLAGS'
19884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19887
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts /RTCu" >&5
19889 $as_echo_n "checking whether $CC accepts /RTCu... " >&6; }
19890
19891 sim_ac_save_cppflags=$CPPFLAGS
19892 CPPFLAGS="$CPPFLAGS /RTCu"
19893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19894 /* end confdefs.h. */
19895
19896 int
19897 main ()
19898 {
19899
19900 ;
19901 return 0;
19902 }
19903 _ACEOF
19904 if ac_fn_c_try_compile "$LINENO"; then :
19905 sim_ac_accept_result=yes
19906 else
19907 sim_ac_accept_result=no
19908 fi
19909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5
19911 $as_echo "$sim_ac_accept_result" >&6; }
19912 CPPFLAGS=$sim_ac_save_cppflags
19913 # This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3.
19914 if test $sim_ac_accept_result = yes; then
19915 sim_ac_compiler_CFLAGS="$sim_ac_compiler_CFLAGS /RTCu"
19916 else
19917 :
19918 fi
19919
19920 ac_ext=cpp
19921 ac_cpp='$CXXCPP $CPPFLAGS'
19922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19925
19926
19927
19928
19929 ac_ext=cpp
19930 ac_cpp='$CXXCPP $CPPFLAGS'
19931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19934
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts /RTCu" >&5
19936 $as_echo_n "checking whether $CXX accepts /RTCu... " >&6; }
19937
19938 sim_ac_save_cppflags=$CPPFLAGS
19939 CPPFLAGS="$CPPFLAGS /RTCu"
19940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19941 /* end confdefs.h. */
19942
19943 int
19944 main ()
19945 {
19946
19947 ;
19948 return 0;
19949 }
19950 _ACEOF
19951 if ac_fn_cxx_try_compile "$LINENO"; then :
19952 sim_ac_accept_result=yes
19953 else
19954 sim_ac_accept_result=no
19955 fi
19956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5
19958 $as_echo "$sim_ac_accept_result" >&6; }
19959 CPPFLAGS=$sim_ac_save_cppflags
19960 # This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3.
19961 if test $sim_ac_accept_result = yes; then
19962 sim_ac_compiler_CXXFLAGS="$sim_ac_compiler_CXXFLAGS /RTCu"
19963 else
19964 :
19965 fi
19966
19967 ac_ext=cpp
19968 ac_cpp='$CXXCPP $CPPFLAGS'
19969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19972
19973
19974 # stack frame checks
19975
19976
19977 ac_ext=c
19978 ac_cpp='$CPP $CPPFLAGS'
19979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19982
19983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts /RTCs" >&5
19984 $as_echo_n "checking whether $CC accepts /RTCs... " >&6; }
19985
19986 sim_ac_save_cppflags=$CPPFLAGS
19987 CPPFLAGS="$CPPFLAGS /RTCs"
19988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19989 /* end confdefs.h. */
19990
19991 int
19992 main ()
19993 {
19994
19995 ;
19996 return 0;
19997 }
19998 _ACEOF
19999 if ac_fn_c_try_compile "$LINENO"; then :
20000 sim_ac_accept_result=yes
20001 else
20002 sim_ac_accept_result=no
20003 fi
20004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5
20006 $as_echo "$sim_ac_accept_result" >&6; }
20007 CPPFLAGS=$sim_ac_save_cppflags
20008 # This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3.
20009 if test $sim_ac_accept_result = yes; then
20010 sim_ac_compiler_CFLAGS="$sim_ac_compiler_CFLAGS /RTCs"
20011 else
20012 :
20013 fi
20014
20015 ac_ext=cpp
20016 ac_cpp='$CXXCPP $CPPFLAGS'
20017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20020
20021
20022
20023
20024 ac_ext=cpp
20025 ac_cpp='$CXXCPP $CPPFLAGS'
20026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20029
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts /RTCs" >&5
20031 $as_echo_n "checking whether $CXX accepts /RTCs... " >&6; }
20032
20033 sim_ac_save_cppflags=$CPPFLAGS
20034 CPPFLAGS="$CPPFLAGS /RTCs"
20035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20036 /* end confdefs.h. */
20037
20038 int
20039 main ()
20040 {
20041
20042 ;
20043 return 0;
20044 }
20045 _ACEOF
20046 if ac_fn_cxx_try_compile "$LINENO"; then :
20047 sim_ac_accept_result=yes
20048 else
20049 sim_ac_accept_result=no
20050 fi
20051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5
20053 $as_echo "$sim_ac_accept_result" >&6; }
20054 CPPFLAGS=$sim_ac_save_cppflags
20055 # This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3.
20056 if test $sim_ac_accept_result = yes; then
20057 sim_ac_compiler_CXXFLAGS="$sim_ac_compiler_CXXFLAGS /RTCs"
20058 else
20059 :
20060 fi
20061
20062 ac_ext=cpp
20063 ac_cpp='$CXXCPP $CPPFLAGS'
20064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20067
20068
20069 fi
20070 ;;
20071 esac
20072 fi
20073
20074
20075 CPPFLAGS="$CPPFLAGS -DDIME_DEBUG=1"
20076
20077 else
20078 DSUFFIX=
20079 CPPFLAGS="$CPPFLAGS -DNDEBUG"
20080
20081 CPPFLAGS="$CPPFLAGS -DDIME_DEBUG=0"
20082
20083 fi
20084
20085
20086
20087
20088 # Check whether --enable-symbols was given.
20089 if test "${enable_symbols+set}" = set; then :
20090 enableval=$enable_symbols; case "${enableval}" in
20091 yes) enable_symbols=yes ;;
20092 no) enable_symbols=no ;;
20093 *) as_fn_error "bad value \"${enableval}\" for --enable-symbols" "$LINENO" 5 ;;
20094 esac
20095 else
20096 enable_symbols=yes
20097 fi
20098
20099
20100 # weird seds to don't mangle options like -fno-gnu-linker and -fvolatile-global
20101 if test x"$enable_symbols" = x"no"; then
20102 CFLAGS="`echo $CFLAGS | sed 's/ -g / /g' | sed 's/^-g / /g' | sed 's/ -g$/ /g' | sed 's/^-g$/ /'`"
20103 CXXFLAGS="`echo $CXXFLAGS | sed 's/ -g / /g' | sed 's/^-g / /g' | sed 's/ -g$/ /g' | sed 's/^-g$/ /'`"
20104 fi
20105
20106
20107 # *******************************************************************
20108 # * Enable/disable compilation with symbol information.
20109 # *******************************************************************
20110
20111 if test "x$ac_cv_prog_cxx_g" = "xyes"; then
20112 # Check whether --enable-symbols was given.
20113 if test "${enable_symbols+set}" = set; then :
20114 enableval=$enable_symbols; case "${enableval}" in
20115 yes) enable_symbols=yes ;;
20116 no) enable_symbols=no ;;
20117 *) as_fn_error "bad value \"${enableval}\" for --enable-symbols" "$LINENO" 5 ;;
20118 esac
20119 else
20120 enable_symbols=yes
20121 fi
20122
20123
20124 if test "x$enable_symbols" = "xno"; then
20125 CXXFLAGS="`echo $CXXFLAGS | sed 's/-g//'`"
20126 fi
20127 fi
20128
20129
20130 # *******************************************************************
20131 # * Enable/disable compilation with profiling information
20132 # * for parsing by gprof (this is a g++ only option).
20133 # *******************************************************************
20134
20135 if test "x$ac_cv_prog_cxx_g" = "xyes"; then
20136 # Check whether --enable-profile was given.
20137 if test "${enable_profile+set}" = set; then :
20138 enableval=$enable_profile; case "${enableval}" in
20139 yes) enable_profile=yes ;;
20140 no) enable_profile=no ;;
20141 *) as_fn_error "bad value \"${enableval}\" for --enable-profile" "$LINENO" 5 ;;
20142 esac
20143 else
20144 enable_profile=no
20145 fi
20146
20147
20148 if test "x$enable_profile" = "xyes"; then
20149 CXXFLAGS="$CXXFLAGS -pg"
20150 LDFLAGS="$LDFLAGS -pg"
20151 fi
20152 fi
20153
20154 # *******************************************************************
20155 # * Enable/disable compilation with warnings turned on (g++ only).
20156 # *******************************************************************
20157
20158 if test "x$ac_cv_cxx_compiler_gnu" = "xyes"; then
20159 # Check whether --enable-warnings was given.
20160 if test "${enable_warnings+set}" = set; then :
20161 enableval=$enable_warnings; case "${enableval}" in
20162 yes) enable_warnings=yes ;;
20163 no) enable_warnings=no ;;
20164 *) as_fn_error "bad value \"${enableval}\" for --enable-warnings" "$LINENO" 5 ;;
20165 esac
20166 else
20167 enable_warnings=no
20168 fi
20169
20170
20171 if test "x$enable_warnings" = "xyes"; then
20172 CXXFLAGS="$CXXFLAGS -W -Wall"
20173 fi
20174 fi
20175
20176 # **************************************************************************
20177 # Headers we might want to use
20178
20179 for ac_header in ieeefp.h
20180 do :
20181 ac_fn_cxx_check_header_compile "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "
20182 "
20183 if test "x$ac_cv_header_ieeefp_h" = x""yes; then :
20184 cat >>confdefs.h <<_ACEOF
20185 #define HAVE_IEEEFP_H 1
20186 _ACEOF
20187
20188 fi
20189
20190 done
20191
20192
20193 # **************************************************************************
20194
20195 # We want to use BSD 4.3's isinf(), isnan(), finite() if they are
20196 # available.
20197
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD 4.3 isinf() function" >&5
20199 $as_echo_n "checking for BSD 4.3 isinf() function... " >&6; }
20200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20201 /* end confdefs.h. */
20202 #include <math.h>
20203 int
20204 main ()
20205 {
20206 int result = isinf(42.0);
20207 ;
20208 return 0;
20209 }
20210 _ACEOF
20211 if ac_fn_cxx_try_link "$LINENO"; then :
20212
20213 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
20214
20215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: available" >&5
20216 $as_echo "available" >&6; }
20217 else
20218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
20219 $as_echo "not available" >&6; }
20220 fi
20221 rm -f core conftest.err conftest.$ac_objext \
20222 conftest$ac_exeext conftest.$ac_ext
20223
20224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD 4.3 isnan() function" >&5
20225 $as_echo_n "checking for BSD 4.3 isnan() function... " >&6; }
20226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20227 /* end confdefs.h. */
20228 #include <math.h>
20229 int
20230 main ()
20231 {
20232 int result = isnan(42.0);
20233 ;
20234 return 0;
20235 }
20236 _ACEOF
20237 if ac_fn_cxx_try_link "$LINENO"; then :
20238
20239 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
20240
20241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: available" >&5
20242 $as_echo "available" >&6; }
20243 else
20244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
20245 $as_echo "not available" >&6; }
20246
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnan() function" >&5
20248 $as_echo_n "checking for _isnan() function... " >&6; }
20249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20250 /* end confdefs.h. */
20251 #include <math.h>
20252 int
20253 main ()
20254 {
20255 int result = _isnan(42.0);
20256 ;
20257 return 0;
20258 }
20259 _ACEOF
20260 if ac_fn_cxx_try_link "$LINENO"; then :
20261
20262 $as_echo "#define HAVE__ISNAN 1" >>confdefs.h
20263
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: available" >&5
20265 $as_echo "available" >&6; }
20266 else
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
20268 $as_echo "not available" >&6; }
20269 fi
20270 rm -f core conftest.err conftest.$ac_objext \
20271 conftest$ac_exeext conftest.$ac_ext
20272
20273 fi
20274 rm -f core conftest.err conftest.$ac_objext \
20275 conftest$ac_exeext conftest.$ac_ext
20276
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD 4.3 finite() function" >&5
20278 $as_echo_n "checking for BSD 4.3 finite() function... " >&6; }
20279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20280 /* end confdefs.h. */
20281 #include <math.h>
20282 int
20283 main ()
20284 {
20285 int result = finite(42.0);
20286 ;
20287 return 0;
20288 }
20289 _ACEOF
20290 if ac_fn_cxx_try_link "$LINENO"; then :
20291
20292 $as_echo "#define HAVE_FINITE 1" >>confdefs.h
20293
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: available" >&5
20295 $as_echo "available" >&6; }
20296 else
20297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
20298 $as_echo "not available" >&6; }
20299
20300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finite() function" >&5
20301 $as_echo_n "checking for _finite() function... " >&6; }
20302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20303 /* end confdefs.h. */
20304 #include <math.h>
20305 int
20306 main ()
20307 {
20308 int result = _finite(42.0);
20309 ;
20310 return 0;
20311 }
20312 _ACEOF
20313 if ac_fn_cxx_try_link "$LINENO"; then :
20314
20315 $as_echo "#define HAVE__FINITE 1" >>confdefs.h
20316
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: available" >&5
20318 $as_echo "available" >&6; }
20319 else
20320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
20321 $as_echo "not available" >&6; }
20322 fi
20323 rm -f core conftest.err conftest.$ac_objext \
20324 conftest$ac_exeext conftest.$ac_ext
20325
20326 fi
20327 rm -f core conftest.err conftest.$ac_objext \
20328 conftest$ac_exeext conftest.$ac_ext
20329
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass() function" >&5
20331 $as_echo_n "checking for fpclass() function... " >&6; }
20332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20333 /* end confdefs.h. */
20334 #ifdef HAVE_IEEEFP_H
20335 #include <ieeefp.h>
20336 #endif
20337 int
20338 main ()
20339 {
20340 int result = fpclass(42.0);
20341 ;
20342 return 0;
20343 }
20344 _ACEOF
20345 if ac_fn_cxx_try_link "$LINENO"; then :
20346
20347 $as_echo "#define HAVE_FPCLASS 1" >>confdefs.h
20348
20349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: available" >&5
20350 $as_echo "available" >&6; }
20351 else
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
20353 $as_echo "not available" >&6; }
20354 fi
20355 rm -f core conftest.err conftest.$ac_objext \
20356 conftest$ac_exeext conftest.$ac_ext
20357
20358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fpclass() function" >&5
20359 $as_echo_n "checking for _fpclass() function... " >&6; }
20360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20361 /* end confdefs.h. */
20362 #include <math.h>
20363 int
20364 main ()
20365 {
20366 int result = _fpclass(42.0);
20367 ;
20368 return 0;
20369 }
20370 _ACEOF
20371 if ac_fn_cxx_try_link "$LINENO"; then :
20372
20373 $as_echo "#define HAVE__FPCLASS 1" >>confdefs.h
20374
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: available" >&5
20376 $as_echo "available" >&6; }
20377 else
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
20379 $as_echo "not available" >&6; }
20380 fi
20381 rm -f core conftest.err conftest.$ac_objext \
20382 conftest$ac_exeext conftest.$ac_ext
20383
20384
20385 # **************************************************************************
20386
20387
20388 sim_ac_save_prefix=$prefix
20389 sim_ac_save_exec_prefix=$exec_prefix
20390 test x"$prefix" = xNONE && prefix=/usr/local
20391 test x"$exec_prefix" = xNONE && exec_prefix='${prefix}'
20392 sim_ac_uniqued_list=
20393 for sim_ac_item in -I$includedir $DIME_EXTRA_CPPFLAGS; do
20394 eval sim_ac_eval_item="$sim_ac_item"
20395 eval sim_ac_eval_item="$sim_ac_eval_item"
20396 if test x"$sim_ac_uniqued_list" = x; then
20397 sim_ac_uniqued_list="$sim_ac_item"
20398 else
20399 sim_ac_unique=true
20400 for sim_ac_uniq in $sim_ac_uniqued_list; do
20401 eval sim_ac_eval_uniq="$sim_ac_uniq"
20402 eval sim_ac_eval_uniq="$sim_ac_eval_uniq"
20403 test x"$sim_ac_eval_item" = x"$sim_ac_eval_uniq" && sim_ac_unique=false
20404 done
20405 $sim_ac_unique && sim_ac_uniqued_list="$sim_ac_uniqued_list $sim_ac_item"
20406 fi
20407 done
20408 DIME_EXTRA_CPPFLAGS=$sim_ac_uniqued_list
20409 prefix=$sim_ac_save_prefix
20410 exec_prefix=$sim_ac_save_exec_prefix
20411 # unset sim_ac_save_prefix
20412 # unset sim_ac_save_exec_prefix
20413 # unset sim_ac_eval_item
20414 # unset sim_ac_eval_uniq
20415
20416
20417 sim_ac_save_prefix=$prefix
20418 sim_ac_save_exec_prefix=$exec_prefix
20419 test x"$prefix" = xNONE && prefix=/usr/local
20420 test x"$exec_prefix" = xNONE && exec_prefix='${prefix}'
20421 sim_ac_uniqued_list=
20422 for sim_ac_item in -L$libdir $DIME_EXTRA_LDFLAGS; do
20423 eval sim_ac_eval_item="$sim_ac_item"
20424 eval sim_ac_eval_item="$sim_ac_eval_item"
20425 if test x"$sim_ac_uniqued_list" = x; then
20426 sim_ac_uniqued_list="$sim_ac_item"
20427 else
20428 sim_ac_unique=true
20429 for sim_ac_uniq in $sim_ac_uniqued_list; do
20430 eval sim_ac_eval_uniq="$sim_ac_uniq"
20431 eval sim_ac_eval_uniq="$sim_ac_eval_uniq"
20432 test x"$sim_ac_eval_item" = x"$sim_ac_eval_uniq" && sim_ac_unique=false
20433 done
20434 $sim_ac_unique && sim_ac_uniqued_list="$sim_ac_uniqued_list $sim_ac_item"
20435 fi
20436 done
20437 DIME_EXTRA_LDFLAGS=$sim_ac_uniqued_list
20438 prefix=$sim_ac_save_prefix
20439 exec_prefix=$sim_ac_save_exec_prefix
20440 # unset sim_ac_save_prefix
20441 # unset sim_ac_save_exec_prefix
20442 # unset sim_ac_eval_item
20443 # unset sim_ac_eval_uniq
20444
20445
20446 sim_ac_save_prefix=$prefix
20447 sim_ac_save_exec_prefix=$exec_prefix
20448 test x"$prefix" = xNONE && prefix=/usr/local
20449 test x"$exec_prefix" = xNONE && exec_prefix='${prefix}'
20450 sim_ac_uniqued_list=
20451 for sim_ac_item in $DIME_EXTRA_LIBS; do
20452 eval sim_ac_eval_item="$sim_ac_item"
20453 eval sim_ac_eval_item="$sim_ac_eval_item"
20454 if test x"$sim_ac_uniqued_list" = x; then
20455 sim_ac_uniqued_list="$sim_ac_item"
20456 else
20457 sim_ac_unique=true
20458 for sim_ac_uniq in $sim_ac_uniqued_list; do
20459 eval sim_ac_eval_uniq="$sim_ac_uniq"
20460 eval sim_ac_eval_uniq="$sim_ac_eval_uniq"
20461 test x"$sim_ac_eval_item" = x"$sim_ac_eval_uniq" && sim_ac_unique=false
20462 done
20463 $sim_ac_unique && sim_ac_uniqued_list="$sim_ac_uniqued_list $sim_ac_item"
20464 fi
20465 done
20466 DIME_EXTRA_LIBS=$sim_ac_uniqued_list
20467 prefix=$sim_ac_save_prefix
20468 exec_prefix=$sim_ac_save_exec_prefix
20469 # unset sim_ac_save_prefix
20470 # unset sim_ac_save_exec_prefix
20471 # unset sim_ac_eval_item
20472 # unset sim_ac_eval_uniq
20473
20474
20475 sim_ac_save_prefix=$prefix
20476 sim_ac_save_exec_prefix=$exec_prefix
20477 test x"$prefix" = xNONE && prefix=/usr/local
20478 test x"$exec_prefix" = xNONE && exec_prefix='${prefix}'
20479 sim_ac_uniqued_list=
20480 for sim_ac_item in $CPPFLAGS; do
20481 eval sim_ac_eval_item="$sim_ac_item"
20482 eval sim_ac_eval_item="$sim_ac_eval_item"
20483 if test x"$sim_ac_uniqued_list" = x; then
20484 sim_ac_uniqued_list="$sim_ac_item"
20485 else
20486 sim_ac_unique=true
20487 for sim_ac_uniq in $sim_ac_uniqued_list; do
20488 eval sim_ac_eval_uniq="$sim_ac_uniq"
20489 eval sim_ac_eval_uniq="$sim_ac_eval_uniq"
20490 test x"$sim_ac_eval_item" = x"$sim_ac_eval_uniq" && sim_ac_unique=false
20491 done
20492 $sim_ac_unique && sim_ac_uniqued_list="$sim_ac_uniqued_list $sim_ac_item"
20493 fi
20494 done
20495 CPPFLAGS=$sim_ac_uniqued_list
20496 prefix=$sim_ac_save_prefix
20497 exec_prefix=$sim_ac_save_exec_prefix
20498 # unset sim_ac_save_prefix
20499 # unset sim_ac_save_exec_prefix
20500 # unset sim_ac_eval_item
20501 # unset sim_ac_eval_uniq
20502
20503
20504 sim_ac_save_prefix=$prefix
20505 sim_ac_save_exec_prefix=$exec_prefix
20506 test x"$prefix" = xNONE && prefix=/usr/local
20507 test x"$exec_prefix" = xNONE && exec_prefix='${prefix}'
20508 sim_ac_uniqued_list=
20509 for sim_ac_item in $LDFLAGS; do
20510 eval sim_ac_eval_item="$sim_ac_item"
20511 eval sim_ac_eval_item="$sim_ac_eval_item"
20512 if test x"$sim_ac_uniqued_list" = x; then
20513 sim_ac_uniqued_list="$sim_ac_item"
20514 else
20515 sim_ac_unique=true
20516 for sim_ac_uniq in $sim_ac_uniqued_list; do
20517 eval sim_ac_eval_uniq="$sim_ac_uniq"
20518 eval sim_ac_eval_uniq="$sim_ac_eval_uniq"
20519 test x"$sim_ac_eval_item" = x"$sim_ac_eval_uniq" && sim_ac_unique=false
20520 done
20521 $sim_ac_unique && sim_ac_uniqued_list="$sim_ac_uniqued_list $sim_ac_item"
20522 fi
20523 done
20524 LDFLAGS=$sim_ac_uniqued_list
20525 prefix=$sim_ac_save_prefix
20526 exec_prefix=$sim_ac_save_exec_prefix
20527 # unset sim_ac_save_prefix
20528 # unset sim_ac_save_exec_prefix
20529 # unset sim_ac_eval_item
20530 # unset sim_ac_eval_uniq
20531
20532
20533 sim_ac_save_prefix=$prefix
20534 sim_ac_save_exec_prefix=$exec_prefix
20535 test x"$prefix" = xNONE && prefix=/usr/local
20536 test x"$exec_prefix" = xNONE && exec_prefix='${prefix}'
20537 sim_ac_uniqued_list=
20538 for sim_ac_item in $LIBS; do
20539 eval sim_ac_eval_item="$sim_ac_item"
20540 eval sim_ac_eval_item="$sim_ac_eval_item"
20541 if test x"$sim_ac_uniqued_list" = x; then
20542 sim_ac_uniqued_list="$sim_ac_item"
20543 else
20544 sim_ac_unique=true
20545 for sim_ac_uniq in $sim_ac_uniqued_list; do
20546 eval sim_ac_eval_uniq="$sim_ac_uniq"
20547 eval sim_ac_eval_uniq="$sim_ac_eval_uniq"
20548 test x"$sim_ac_eval_item" = x"$sim_ac_eval_uniq" && sim_ac_unique=false
20549 done
20550 $sim_ac_unique && sim_ac_uniqued_list="$sim_ac_uniqued_list $sim_ac_item"
20551 fi
20552 done
20553 LIBS=$sim_ac_uniqued_list
20554 prefix=$sim_ac_save_prefix
20555 exec_prefix=$sim_ac_save_exec_prefix
20556 # unset sim_ac_save_prefix
20557 # unset sim_ac_save_exec_prefix
20558 # unset sim_ac_eval_item
20559 # unset sim_ac_eval_uniq
20560
20561
20562 # **************************************************************************
20563
20564 # no DLL setup yet
20565 case $enable_static in
20566 yes | true) DIME_STATIC=true ;;
20567 *) DIME_STATIC=false ;;
20568 esac
20569
20570 case $enable_shared in
20571 yes | true) DIME_STATIC=false ;;
20572 *) DIME_STATIC=true ;;
20573 esac
20574
20575
20576
20577 # **************************************************************************
20578
20579
20580
20581 if $BUILD_WITH_MSVC; then
20582 BUILD_WITH_MSVC_TRUE=
20583 BUILD_WITH_MSVC_FALSE='#'
20584 else
20585 BUILD_WITH_MSVC_TRUE='#'
20586 BUILD_WITH_MSVC_FALSE=
20587 fi
20588
20589
20590 if $sim_ac_build_library; then
20591 if $BUILD_WITH_MSVC; then
20592 rm -f vc60.pdb
20593 LIBS="$LIBS $sim_ac_msvcrt_LIBLIBS"
20594 LIBFLAGS="$LIBFLAGS" # $sim_ac_msvcrt_LIBLDFLAGS
20595 if $DIME_STATIC; then
20596 DIME_EXTRA_CPPFLAGS="$DIME_EXTRA_CPPFLAGS -DDIME_NOT_DLL"
20597 else
20598 CPPFLAGS="-DDIME_MAKE_DLL $CPPFLAGS"
20599 DIME_EXTRA_CPPFLAGS="$DIME_EXTRA_CPPFLAGS -DDIME_DLL"
20600 fi
20601
20602 debugfile="`pwd`/src/dime${DIME_MAJOR_VERSION}${SUFFIX}.pdb"
20603 debugfile=`cygpath -w "$debugfile" | sed 's,\\\\,\\\\\\\\,g'`
20604
20605 if $DIME_STATIC; then
20606
20607 if test x"${sim_ac_configuration_settings+set}" = x"set"; then
20608 sim_ac_configuration_settings="$sim_ac_configuration_settings|Dime build type:static .lib"
20609 else
20610 sim_ac_configuration_settings="Dime build type:static .lib"
20611 fi
20612
20613 LIBFLAGS="-LIB $LIBFLAGS"
20614 LIBFLAGS="$LIBFLAGS /OUT:dime$DIME_MAJOR_VERSION$SUFFIX.lib"
20615 else
20616 LIBFLAGS="-DLL /INCREMENTAL:NO $LIBFLAGS"
20617 case $enable_symbols in
20618 no | false)
20619
20620 if test x"${sim_ac_configuration_settings+set}" = x"set"; then
20621 sim_ac_configuration_settings="$sim_ac_configuration_settings|Dime build type:dynamic .dll, no symbols"
20622 else
20623 sim_ac_configuration_settings="Dime build type:dynamic .dll, no symbols"
20624 fi
20625
20626 LIBFLAGS="$LIBFLAGS /RELEASE"
20627 ;;
20628 *)
20629
20630 if test x"${sim_ac_configuration_settings+set}" = x"set"; then
20631 sim_ac_configuration_settings="$sim_ac_configuration_settings|Dime build type:dynamic .dll + .pdb"
20632 else
20633 sim_ac_configuration_settings="Dime build type:dynamic .dll + .pdb"
20634 fi
20635
20636 CFLAGS="/Fd$debugfile -g $CFLAGS"
20637 CXXFLAGS="/Fd$debugfile -g $CXXFLAGS"
20638 LIBFLAGS="$LIBFLAGS /DEBUG /PDB:dime$DIME_MAJOR_VERSION$SUFFIX.pdb"
20639 ;;
20640 esac
20641 LIBFLAGS="$LIBFLAGS /OUT:dime$DIME_MAJOR_VERSION$SUFFIX.dll"
20642 fi
20643
20644 if test x"${sim_ac_configuration_settings+set}" = x"set"; then
20645 sim_ac_configuration_settings="$sim_ac_configuration_settings|C library linkage:$sim_ac_msvcrt"
20646 else
20647 sim_ac_configuration_settings="C library linkage:$sim_ac_msvcrt"
20648 fi
20649
20650
20651 # We use a version suffix on the .dll-file, so several incompatible
20652 # (major) versions can be installed on a system.
20653 #
20654 # BTW, when linking DLLs, the 3rd-party .lib files will be
20655 # linked into the .dll file. I believe it is still advisable to
20656 # list all libs used upon `dime-config --libs`, as we can then
20657 # also use them from "parent" code (remember that their interfaces
20658 # is not exposed from the DLL) without any fuss.
20659 if test -n "$DIME_EXTRA_LIBS"; then
20660 DIME_EXTRA_LIBS="-ldime${DIME_MAJOR_VERSION}${SUFFIX} $DIME_EXTRA_LIBS"
20661 else
20662 DIME_EXTRA_LIBS="-ldime${DIME_MAJOR_VERSION}${SUFFIX}"
20663 fi
20664 else
20665 if test -n "$DIME_EXTRA_LIBS"; then
20666 DIME_EXTRA_LIBS="-ldime${SUFFIX} $DIME_EXTRA_LIBS"
20667 else
20668 DIME_EXTRA_LIBS="-ldime${SUFFIX}"
20669 fi
20670 fi
20671
20672 DIME_COMPILER="$CXX"
20673
20674 if $BUILD_WITH_MSVC; then
20675 # we'll use the installed wrapper when we use the dime-config script later
20676 # so we can remove the source code hierarchy
20677 DIME_COMPILER="wrapmsvc"
20678 fi
20679
20680
20681 sim_ac_path_problem=true # until proven otherwise
20682 if test -d "${bindir}"; then
20683 # search by inode seems safer than strings because of noncanonical paths
20684 ( findinode=`ls -id "$prefix/bin" 2>/dev/null | sed 's/^\( *\)\(0-9*\).*/\2/g'`
20685 IFS=:; for dir in $PATH; do
20686 inode=`ls -id "$dir" 2>/dev/null | sed 's/^\( *\)\(0-9*\).*/\2/g'`;
20687 test x"$inode" = x"$findinode" && exit 0
20688 done; exit 1 ) && sim_ac_path_problem=false
20689 fi
20690 if $sim_ac_path_problem; then
20691 ( IFS=:; for dir in $PATH; do
20692 test x"$dir" = x"${bindir}" && exit 0
20693 done; exit 1 ) && sim_ac_path_problem=false
20694 fi
20695 if $sim_ac_path_problem; then
20696
20697 if test x"${sim_ac_configuration_warnings+set}" = x"set"; then
20698 sim_ac_configuration_warnings="$sim_ac_configuration_warnings|Your \$PATH variable does not appear to include \"$prefix/bin\""
20699 else
20700 sim_ac_configuration_warnings="Your \$PATH variable does not appear to include \"$prefix/bin\""
20701 fi
20702
20703 fi
20704 fi
20705
20706 # **************************************************************************
20707
20708
20709
20710 ## Microsoft Developer Studio Project files
20711 DIME_DSP_LIBDIRS=
20712 DIME_DSP_LIBS=
20713 DIME_DSP_INCS=
20714 DIME_LIB_DSP_DEFS=
20715 DIME_DSP_DEFS=
20716
20717 if $sim_ac_make_dsp; then
20718
20719 if test x"${sim_ac_configuration_settings+set}" = x"set"; then
20720 sim_ac_configuration_settings="$sim_ac_configuration_settings|Dime build type:msvc .dsp"
20721 else
20722 sim_ac_configuration_settings="Dime build type:msvc .dsp"
20723 fi
20724
20725
20726 # -DHAVE_CONFIG_H is set up in $DEFS too late for us to use, and some
20727 # include directives are usually set up in the Makefile.am files
20728 for arg in -DHAVE_CONFIG_H -I$dime_build_dir -I$dime_build_dir/include -I$dime_src_dir/include $CPPFLAGS $LDFLAGS $LIBS; do
20729 case $arg in
20730 -L* )
20731 libdir=`echo $arg | cut -c3-`
20732 DIME_DSP_LIBDIRS="$DIME_DSP_LIBDIRS $libdir"
20733 ;;
20734 -l* )
20735 libname=`echo $arg | cut -c3-`
20736 for libdir in $DIME_DSP_LIBDIRS; do
20737 if test -f $libdir/$libname.lib; then
20738 # lib is not in any standard location - use full path
20739 libname=`cygpath -w "$libdir/$libname" 2>/dev/null || echo "$libdir/$libname"`
20740 break
20741 fi
20742 done
20743 if test x"$DIME_DSP_LIBS" = x""; then
20744 DIME_DSP_LIBS="$libname.lib"
20745 else
20746 DIME_DSP_LIBS="$DIME_DSP_LIBS $libname.lib"
20747 fi
20748 ;;
20749 -I* )
20750 incdir=`echo $arg | cut -c3-`
20751 incdir=`cygpath -w "$incdir" 2>/dev/null || echo "$incdir"`
20752 if test x"$DIME_DSP_INCS" = x""; then
20753 DIME_DSP_INCS="/I \"$incdir\""
20754 else
20755 DIME_DSP_INCS="$DIME_DSP_INCS /I \"$incdir\""
20756 fi
20757 ;;
20758 -DDIME_DEBUG* | -DNDEBUG )
20759 # Defines that vary between release/debug configurations can't be
20760 # set up dynamically in <lib>_DSP_DEFS - they must be static in the
20761 # gendsp.pl script. We therefore catch them here so we can ignore
20762 # checking for them below.
20763 ;;
20764 -D*=* | -D* )
20765 define=`echo $arg | cut -c3-`
20766 if test x"$DIME_DSP_DEFS" = x""; then
20767 DIME_DSP_DEFS="/D \"$define\""
20768 else
20769 DIME_DSP_DEFS="$DIME_DSP_DEFS /D \"$define\""
20770 fi
20771 if (echo $define | grep _MAKE_DLL) >/dev/null 2>&1; then
20772 :
20773 else
20774 if test x"$DIME_DSP_DEFS" = x""; then
20775 DIME_LIB_DSP_DEFS="/D \"$define\""
20776 else
20777 DIME_LIB_DSP_DEFS="$DIME_LIB_DSP_DEFS /D \"$define\""
20778 fi
20779 fi
20780 ;;
20781 esac
20782 done
20783
20784 CC=$dime_build_dir/cfg/gendsp.pl
20785 CXX=$dime_build_dir/cfg/gendsp.pl
20786 CXXLD=$dime_build_dir/cfg/gendsp.pl
20787 # Yes, this is totally bogus stuff, but don't worry about it. As long
20788 # as gendsp.pl recognizes it... 20030219 larsa
20789 CPPFLAGS="$CPPFLAGS -Ddspfile=$dime_build_dir/dime$DIME_MAJOR_VERSION.dsp"
20790 LDFLAGS="$LDFLAGS -Wl,-Ddspfile=$dime_build_dir/dime$DIME_MAJOR_VERSION.dsp"
20791 LIBFLAGS="$LIBFLAGS -o dime$DIME_MAJOR_VERSION.so.0"
20792
20793 # this can't be set up at the point the libtool script is generated
20794 mv libtool libtool.bak
20795 sed -e "s%^CC=\"gcc\"%CC=\"$dime_build_dir/cfg/gendsp.pl\"%" \
20796 -e "s%^CC=\".*/wrapmsvc.exe\"%CC=\"$dime_build_dir/cfg/gendsp.pl\"%" \
20797 <libtool.bak >libtool
20798 rm -f libtool.bak
20799 chmod 755 libtool
20800 fi
20801
20802
20803
20804
20805
20806
20807
20808 # **************************************************************************
20809
20810
20811 if test x"${sim_ac_configuration_settings+set}" = x"set"; then
20812 sim_ac_configuration_settings="$sim_ac_configuration_settings|Dime installation prefix:$prefix"
20813 else
20814 sim_ac_configuration_settings="Dime installation prefix:$prefix"
20815 fi
20816
20817
20818 ac_config_headers="$ac_config_headers include/config.h"
20819
20820
20821 ac_config_files="$ac_config_files dime.pc Makefile bin/Makefile src/Makefile src/classes/Makefile src/entities/Makefile src/objects/Makefile src/records/Makefile src/sections/Makefile src/tables/Makefile src/util/Makefile src/convert/Makefile dxf2vrml/Makefile dxfsphere/Makefile html/Makefile"
20822
20823
20824 cat >confcache <<\_ACEOF
20825 # This file is a shell script that caches the results of configure
20826 # tests run on this system so they can be shared between configure
20827 # scripts and configure runs, see configure's option --config-cache.
20828 # It is not useful on other systems. If it contains results you don't
20829 # want to keep, you may remove or edit it.
20830 #
20831 # config.status only pays attention to the cache file if you give it
20832 # the --recheck option to rerun configure.
20833 #
20834 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20835 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20836 # following values.
20837
20838 _ACEOF
20839
20840 # The following way of writing the cache mishandles newlines in values,
20841 # but we know of no workaround that is simple, portable, and efficient.
20842 # So, we kill variables containing newlines.
20843 # Ultrix sh set writes to stderr and can't be redirected directly,
20844 # and sets the high bit in the cache file unless we assign to the vars.
20845 (
20846 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20847 eval ac_val=\$$ac_var
20848 case $ac_val in #(
20849 *${as_nl}*)
20850 case $ac_var in #(
20851 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20852 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20853 esac
20854 case $ac_var in #(
20855 _ | IFS | as_nl) ;; #(
20856 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20857 *) { eval $ac_var=; unset $ac_var;} ;;
20858 esac ;;
20859 esac
20860 done
20861
20862 (set) 2>&1 |
20863 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20864 *${as_nl}ac_space=\ *)
20865 # `set' does not quote correctly, so add quotes: double-quote
20866 # substitution turns \\\\ into \\, and sed turns \\ into \.
20867 sed -n \
20868 "s/'/'\\\\''/g;
20869 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20870 ;; #(
20871 *)
20872 # `set' quotes correctly as required by POSIX, so do not add quotes.
20873 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20874 ;;
20875 esac |
20876 sort
20877 ) |
20878 sed '
20879 /^ac_cv_env_/b end
20880 t clear
20881 :clear
20882 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20883 t end
20884 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20885 :end' >>confcache
20886 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20887 if test -w "$cache_file"; then
20888 test "x$cache_file" != "x/dev/null" &&
20889 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20890 $as_echo "$as_me: updating cache $cache_file" >&6;}
20891 cat confcache >$cache_file
20892 else
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20894 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20895 fi
20896 fi
20897 rm -f confcache
20898
20899 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20900 # Let make expand exec_prefix.
20901 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20902
20903 DEFS=-DHAVE_CONFIG_H
20904
20905 ac_libobjs=
20906 ac_ltlibobjs=
20907 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20908 # 1. Remove the extension, and $U if already installed.
20909 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20910 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20911 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20912 # will be set to the directory where LIBOBJS objects are built.
20913 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20914 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20915 done
20916 LIBOBJS=$ac_libobjs
20917
20918 LTLIBOBJS=$ac_ltlibobjs
20919
20920
20921 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20922 as_fn_error "conditional \"AMDEP\" was never defined.
20923 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20924 fi
20925 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20926 as_fn_error "conditional \"am__fastdepCC\" was never defined.
20927 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20928 fi
20929 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20930 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
20931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20932 fi
20933 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20934 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
20935 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20936 fi
20937 if test -z "${BUILD_LIBRARY_TRUE}" && test -z "${BUILD_LIBRARY_FALSE}"; then
20938 as_fn_error "conditional \"BUILD_LIBRARY\" was never defined.
20939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20940 fi
20941 if test -z "${BUILD_HTMLPAGES_TRUE}" && test -z "${BUILD_HTMLPAGES_FALSE}"; then
20942 as_fn_error "conditional \"BUILD_HTMLPAGES\" was never defined.
20943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20944 fi
20945 if test -z "${BUILD_WITH_MSVC_TRUE}" && test -z "${BUILD_WITH_MSVC_FALSE}"; then
20946 as_fn_error "conditional \"BUILD_WITH_MSVC\" was never defined.
20947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20948 fi
20949
20950 : ${CONFIG_STATUS=./config.status}
20951 ac_write_fail=0
20952 ac_clean_files_save=$ac_clean_files
20953 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20954 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20955 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20956 as_write_fail=0
20957 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20958 #! $SHELL
20959 # Generated by $as_me.
20960 # Run this file to recreate the current configuration.
20961 # Compiler output produced by configure, useful for debugging
20962 # configure, is in config.log if it exists.
20963
20964 debug=false
20965 ac_cs_recheck=false
20966 ac_cs_silent=false
20967
20968 SHELL=\${CONFIG_SHELL-$SHELL}
20969 export SHELL
20970 _ASEOF
20971 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20972 ## -------------------- ##
20973 ## M4sh Initialization. ##
20974 ## -------------------- ##
20975
20976 # Be more Bourne compatible
20977 DUALCASE=1; export DUALCASE # for MKS sh
20978 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20979 emulate sh
20980 NULLCMD=:
20981 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20982 # is contrary to our usage. Disable this feature.
20983 alias -g '${1+"$@"}'='"$@"'
20984 setopt NO_GLOB_SUBST
20985 else
20986 case `(set -o) 2>/dev/null` in #(
20987 *posix*) :
20988 set -o posix ;; #(
20989 *) :
20990 ;;
20991 esac
20992 fi
20993
20994
20995 as_nl='
20996 '
20997 export as_nl
20998 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20999 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21000 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21001 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21002 # Prefer a ksh shell builtin over an external printf program on Solaris,
21003 # but without wasting forks for bash or zsh.
21004 if test -z "$BASH_VERSION$ZSH_VERSION" \
21005 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21006 as_echo='print -r --'
21007 as_echo_n='print -rn --'
21008 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21009 as_echo='printf %s\n'
21010 as_echo_n='printf %s'
21011 else
21012 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21013 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21014 as_echo_n='/usr/ucb/echo -n'
21015 else
21016 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21017 as_echo_n_body='eval
21018 arg=$1;
21019 case $arg in #(
21020 *"$as_nl"*)
21021 expr "X$arg" : "X\\(.*\\)$as_nl";
21022 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21023 esac;
21024 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21025 '
21026 export as_echo_n_body
21027 as_echo_n='sh -c $as_echo_n_body as_echo'
21028 fi
21029 export as_echo_body
21030 as_echo='sh -c $as_echo_body as_echo'
21031 fi
21032
21033 # The user is always right.
21034 if test "${PATH_SEPARATOR+set}" != set; then
21035 PATH_SEPARATOR=:
21036 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21037 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21038 PATH_SEPARATOR=';'
21039 }
21040 fi
21041
21042
21043 # IFS
21044 # We need space, tab and new line, in precisely that order. Quoting is
21045 # there to prevent editors from complaining about space-tab.
21046 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21047 # splitting by setting IFS to empty value.)
21048 IFS=" "" $as_nl"
21049
21050 # Find who we are. Look in the path if we contain no directory separator.
21051 case $0 in #((
21052 *[\\/]* ) as_myself=$0 ;;
21053 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21054 for as_dir in $PATH
21055 do
21056 IFS=$as_save_IFS
21057 test -z "$as_dir" && as_dir=.
21058 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21059 done
21060 IFS=$as_save_IFS
21061
21062 ;;
21063 esac
21064 # We did not find ourselves, most probably we were run as `sh COMMAND'
21065 # in which case we are not to be found in the path.
21066 if test "x$as_myself" = x; then
21067 as_myself=$0
21068 fi
21069 if test ! -f "$as_myself"; then
21070 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21071 exit 1
21072 fi
21073
21074 # Unset variables that we do not need and which cause bugs (e.g. in
21075 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21076 # suppresses any "Segmentation fault" message there. '((' could
21077 # trigger a bug in pdksh 5.2.14.
21078 for as_var in BASH_ENV ENV MAIL MAILPATH
21079 do eval test x\${$as_var+set} = xset \
21080 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21081 done
21082 PS1='$ '
21083 PS2='> '
21084 PS4='+ '
21085
21086 # NLS nuisances.
21087 LC_ALL=C
21088 export LC_ALL
21089 LANGUAGE=C
21090 export LANGUAGE
21091
21092 # CDPATH.
21093 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21094
21095
21096 # as_fn_error ERROR [LINENO LOG_FD]
21097 # ---------------------------------
21098 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21099 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21100 # script with status $?, using 1 if that was 0.
21101 as_fn_error ()
21102 {
21103 as_status=$?; test $as_status -eq 0 && as_status=1
21104 if test "$3"; then
21105 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21106 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
21107 fi
21108 $as_echo "$as_me: error: $1" >&2
21109 as_fn_exit $as_status
21110 } # as_fn_error
21111
21112
21113 # as_fn_set_status STATUS
21114 # -----------------------
21115 # Set $? to STATUS, without forking.
21116 as_fn_set_status ()
21117 {
21118 return $1
21119 } # as_fn_set_status
21120
21121 # as_fn_exit STATUS
21122 # -----------------
21123 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21124 as_fn_exit ()
21125 {
21126 set +e
21127 as_fn_set_status $1
21128 exit $1
21129 } # as_fn_exit
21130
21131 # as_fn_unset VAR
21132 # ---------------
21133 # Portably unset VAR.
21134 as_fn_unset ()
21135 {
21136 { eval $1=; unset $1;}
21137 }
21138 as_unset=as_fn_unset
21139 # as_fn_append VAR VALUE
21140 # ----------------------
21141 # Append the text in VALUE to the end of the definition contained in VAR. Take
21142 # advantage of any shell optimizations that allow amortized linear growth over
21143 # repeated appends, instead of the typical quadratic growth present in naive
21144 # implementations.
21145 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21146 eval 'as_fn_append ()
21147 {
21148 eval $1+=\$2
21149 }'
21150 else
21151 as_fn_append ()
21152 {
21153 eval $1=\$$1\$2
21154 }
21155 fi # as_fn_append
21156
21157 # as_fn_arith ARG...
21158 # ------------------
21159 # Perform arithmetic evaluation on the ARGs, and store the result in the
21160 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21161 # must be portable across $(()) and expr.
21162 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21163 eval 'as_fn_arith ()
21164 {
21165 as_val=$(( $* ))
21166 }'
21167 else
21168 as_fn_arith ()
21169 {
21170 as_val=`expr "$@" || test $? -eq 1`
21171 }
21172 fi # as_fn_arith
21173
21174
21175 if expr a : '\(a\)' >/dev/null 2>&1 &&
21176 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21177 as_expr=expr
21178 else
21179 as_expr=false
21180 fi
21181
21182 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21183 as_basename=basename
21184 else
21185 as_basename=false
21186 fi
21187
21188 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21189 as_dirname=dirname
21190 else
21191 as_dirname=false
21192 fi
21193
21194 as_me=`$as_basename -- "$0" ||
21195 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21196 X"$0" : 'X\(//\)$' \| \
21197 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21198 $as_echo X/"$0" |
21199 sed '/^.*\/\([^/][^/]*\)\/*$/{
21200 s//\1/
21201 q
21202 }
21203 /^X\/\(\/\/\)$/{
21204 s//\1/
21205 q
21206 }
21207 /^X\/\(\/\).*/{
21208 s//\1/
21209 q
21210 }
21211 s/.*/./; q'`
21212
21213 # Avoid depending upon Character Ranges.
21214 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21215 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21216 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21217 as_cr_digits='0123456789'
21218 as_cr_alnum=$as_cr_Letters$as_cr_digits
21219
21220 ECHO_C= ECHO_N= ECHO_T=
21221 case `echo -n x` in #(((((
21222 -n*)
21223 case `echo 'xy\c'` in
21224 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21225 xy) ECHO_C='\c';;
21226 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21227 ECHO_T=' ';;
21228 esac;;
21229 *)
21230 ECHO_N='-n';;
21231 esac
21232
21233 rm -f conf$$ conf$$.exe conf$$.file
21234 if test -d conf$$.dir; then
21235 rm -f conf$$.dir/conf$$.file
21236 else
21237 rm -f conf$$.dir
21238 mkdir conf$$.dir 2>/dev/null
21239 fi
21240 if (echo >conf$$.file) 2>/dev/null; then
21241 if ln -s conf$$.file conf$$ 2>/dev/null; then
21242 as_ln_s='ln -s'
21243 # ... but there are two gotchas:
21244 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21245 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21246 # In both cases, we have to default to `cp -p'.
21247 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21248 as_ln_s='cp -p'
21249 elif ln conf$$.file conf$$ 2>/dev/null; then
21250 as_ln_s=ln
21251 else
21252 as_ln_s='cp -p'
21253 fi
21254 else
21255 as_ln_s='cp -p'
21256 fi
21257 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21258 rmdir conf$$.dir 2>/dev/null
21259
21260
21261 # as_fn_mkdir_p
21262 # -------------
21263 # Create "$as_dir" as a directory, including parents if necessary.
21264 as_fn_mkdir_p ()
21265 {
21266
21267 case $as_dir in #(
21268 -*) as_dir=./$as_dir;;
21269 esac
21270 test -d "$as_dir" || eval $as_mkdir_p || {
21271 as_dirs=
21272 while :; do
21273 case $as_dir in #(
21274 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21275 *) as_qdir=$as_dir;;
21276 esac
21277 as_dirs="'$as_qdir' $as_dirs"
21278 as_dir=`$as_dirname -- "$as_dir" ||
21279 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21280 X"$as_dir" : 'X\(//\)[^/]' \| \
21281 X"$as_dir" : 'X\(//\)$' \| \
21282 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21283 $as_echo X"$as_dir" |
21284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21285 s//\1/
21286 q
21287 }
21288 /^X\(\/\/\)[^/].*/{
21289 s//\1/
21290 q
21291 }
21292 /^X\(\/\/\)$/{
21293 s//\1/
21294 q
21295 }
21296 /^X\(\/\).*/{
21297 s//\1/
21298 q
21299 }
21300 s/.*/./; q'`
21301 test -d "$as_dir" && break
21302 done
21303 test -z "$as_dirs" || eval "mkdir $as_dirs"
21304 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
21305
21306
21307 } # as_fn_mkdir_p
21308 if mkdir -p . 2>/dev/null; then
21309 as_mkdir_p='mkdir -p "$as_dir"'
21310 else
21311 test -d ./-p && rmdir ./-p
21312 as_mkdir_p=false
21313 fi
21314
21315 if test -x / >/dev/null 2>&1; then
21316 as_test_x='test -x'
21317 else
21318 if ls -dL / >/dev/null 2>&1; then
21319 as_ls_L_option=L
21320 else
21321 as_ls_L_option=
21322 fi
21323 as_test_x='
21324 eval sh -c '\''
21325 if test -d "$1"; then
21326 test -d "$1/.";
21327 else
21328 case $1 in #(
21329 -*)set "./$1";;
21330 esac;
21331 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21332 ???[sx]*):;;*)false;;esac;fi
21333 '\'' sh
21334 '
21335 fi
21336 as_executable_p=$as_test_x
21337
21338 # Sed expression to map a string onto a valid CPP name.
21339 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21340
21341 # Sed expression to map a string onto a valid variable name.
21342 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21343
21344
21345 exec 6>&1
21346 ## ----------------------------------- ##
21347 ## Main body of $CONFIG_STATUS script. ##
21348 ## ----------------------------------- ##
21349 _ASEOF
21350 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21351
21352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21353 # Save the log message, to keep $0 and so on meaningful, and to
21354 # report actual input values of CONFIG_FILES etc. instead of their
21355 # values after options handling.
21356 ac_log="
21357 This file was extended by dime $as_me 0.9.1, which was
21358 generated by GNU Autoconf 2.65. Invocation command line was
21359
21360 CONFIG_FILES = $CONFIG_FILES
21361 CONFIG_HEADERS = $CONFIG_HEADERS
21362 CONFIG_LINKS = $CONFIG_LINKS
21363 CONFIG_COMMANDS = $CONFIG_COMMANDS
21364 $ $0 $@
21365
21366 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21367 "
21368
21369 _ACEOF
21370
21371 case $ac_config_files in *"
21372 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21373 esac
21374
21375 case $ac_config_headers in *"
21376 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21377 esac
21378
21379
21380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21381 # Files that config.status was made for.
21382 config_files="$ac_config_files"
21383 config_headers="$ac_config_headers"
21384 config_commands="$ac_config_commands"
21385
21386 _ACEOF
21387
21388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21389 ac_cs_usage="\
21390 \`$as_me' instantiates files and other configuration actions
21391 from templates according to the current configuration. Unless the files
21392 and actions are specified as TAGs, all are instantiated by default.
21393
21394 Usage: $0 [OPTION]... [TAG]...
21395
21396 -h, --help print this help, then exit
21397 -V, --version print version number and configuration settings, then exit
21398 --config print configuration, then exit
21399 -q, --quiet, --silent
21400 do not print progress messages
21401 -d, --debug don't remove temporary files
21402 --recheck update $as_me by reconfiguring in the same conditions
21403 --file=FILE[:TEMPLATE]
21404 instantiate the configuration file FILE
21405 --header=FILE[:TEMPLATE]
21406 instantiate the configuration header FILE
21407
21408 Configuration files:
21409 $config_files
21410
21411 Configuration headers:
21412 $config_headers
21413
21414 Configuration commands:
21415 $config_commands
21416
21417 Report bugs to <[email protected]>."
21418
21419 _ACEOF
21420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21421 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21422 ac_cs_version="\\
21423 dime config.status 0.9.1
21424 configured by $0, generated by GNU Autoconf 2.65,
21425 with options \\"\$ac_cs_config\\"
21426
21427 Copyright (C) 2009 Free Software Foundation, Inc.
21428 This config.status script is free software; the Free Software Foundation
21429 gives unlimited permission to copy, distribute and modify it."
21430
21431 ac_pwd='$ac_pwd'
21432 srcdir='$srcdir'
21433 INSTALL='$INSTALL'
21434 AWK='$AWK'
21435 test -n "\$AWK" || AWK=awk
21436 _ACEOF
21437
21438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21439 # The default lists apply if the user does not specify any file.
21440 ac_need_defaults=:
21441 while test $# != 0
21442 do
21443 case $1 in
21444 --*=*)
21445 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21446 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21447 ac_shift=:
21448 ;;
21449 *)
21450 ac_option=$1
21451 ac_optarg=$2
21452 ac_shift=shift
21453 ;;
21454 esac
21455
21456 case $ac_option in
21457 # Handling of the options.
21458 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21459 ac_cs_recheck=: ;;
21460 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21461 $as_echo "$ac_cs_version"; exit ;;
21462 --config | --confi | --conf | --con | --co | --c )
21463 $as_echo "$ac_cs_config"; exit ;;
21464 --debug | --debu | --deb | --de | --d | -d )
21465 debug=: ;;
21466 --file | --fil | --fi | --f )
21467 $ac_shift
21468 case $ac_optarg in
21469 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21470 esac
21471 as_fn_append CONFIG_FILES " '$ac_optarg'"
21472 ac_need_defaults=false;;
21473 --header | --heade | --head | --hea )
21474 $ac_shift
21475 case $ac_optarg in
21476 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21477 esac
21478 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21479 ac_need_defaults=false;;
21480 --he | --h)
21481 # Conflict between --help and --header
21482 as_fn_error "ambiguous option: \`$1'
21483 Try \`$0 --help' for more information.";;
21484 --help | --hel | -h )
21485 $as_echo "$ac_cs_usage"; exit ;;
21486 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21487 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21488 ac_cs_silent=: ;;
21489
21490 # This is an error.
21491 -*) as_fn_error "unrecognized option: \`$1'
21492 Try \`$0 --help' for more information." ;;
21493
21494 *) as_fn_append ac_config_targets " $1"
21495 ac_need_defaults=false ;;
21496
21497 esac
21498 shift
21499 done
21500
21501 ac_configure_extra_args=
21502
21503 if $ac_cs_silent; then
21504 exec 6>/dev/null
21505 ac_configure_extra_args="$ac_configure_extra_args --silent"
21506 fi
21507
21508 _ACEOF
21509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21510 if \$ac_cs_recheck; then
21511 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21512 shift
21513 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21514 CONFIG_SHELL='$SHELL'
21515 export CONFIG_SHELL
21516 exec "\$@"
21517 fi
21518
21519 _ACEOF
21520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21521 exec 5>>config.log
21522 {
21523 echo
21524 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21525 ## Running $as_me. ##
21526 _ASBOX
21527 $as_echo "$ac_log"
21528 } >&5
21529
21530 _ACEOF
21531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21532 #
21533 # INIT-COMMANDS
21534 #
21535 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21536
21537 _ACEOF
21538
21539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21540
21541 # Handling of arguments.
21542 for ac_config_target in $ac_config_targets
21543 do
21544 case $ac_config_target in
21545 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21546 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21547 "dime.pc") CONFIG_FILES="$CONFIG_FILES dime.pc" ;;
21548 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21549 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
21550 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21551 "src/classes/Makefile") CONFIG_FILES="$CONFIG_FILES src/classes/Makefile" ;;
21552 "src/entities/Makefile") CONFIG_FILES="$CONFIG_FILES src/entities/Makefile" ;;
21553 "src/objects/Makefile") CONFIG_FILES="$CONFIG_FILES src/objects/Makefile" ;;
21554 "src/records/Makefile") CONFIG_FILES="$CONFIG_FILES src/records/Makefile" ;;
21555 "src/sections/Makefile") CONFIG_FILES="$CONFIG_FILES src/sections/Makefile" ;;
21556 "src/tables/Makefile") CONFIG_FILES="$CONFIG_FILES src/tables/Makefile" ;;
21557 "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
21558 "src/convert/Makefile") CONFIG_FILES="$CONFIG_FILES src/convert/Makefile" ;;
21559 "dxf2vrml/Makefile") CONFIG_FILES="$CONFIG_FILES dxf2vrml/Makefile" ;;
21560 "dxfsphere/Makefile") CONFIG_FILES="$CONFIG_FILES dxfsphere/Makefile" ;;
21561 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
21562
21563 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21564 esac
21565 done
21566
21567
21568 # If the user did not use the arguments to specify the items to instantiate,
21569 # then the envvar interface is used. Set only those that are not.
21570 # We use the long form for the default assignment because of an extremely
21571 # bizarre bug on SunOS 4.1.3.
21572 if $ac_need_defaults; then
21573 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21574 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21575 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21576 fi
21577
21578 # Have a temporary directory for convenience. Make it in the build tree
21579 # simply because there is no reason against having it here, and in addition,
21580 # creating and moving files from /tmp can sometimes cause problems.
21581 # Hook for its removal unless debugging.
21582 # Note that there is a small window in which the directory will not be cleaned:
21583 # after its creation but before its name has been assigned to `$tmp'.
21584 $debug ||
21585 {
21586 tmp=
21587 trap 'exit_status=$?
21588 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21589 ' 0
21590 trap 'as_fn_exit 1' 1 2 13 15
21591 }
21592 # Create a (secure) tmp directory for tmp files.
21593
21594 {
21595 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21596 test -n "$tmp" && test -d "$tmp"
21597 } ||
21598 {
21599 tmp=./conf$$-$RANDOM
21600 (umask 077 && mkdir "$tmp")
21601 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
21602
21603 # Set up the scripts for CONFIG_FILES section.
21604 # No need to generate them if there are no CONFIG_FILES.
21605 # This happens for instance with `./config.status config.h'.
21606 if test -n "$CONFIG_FILES"; then
21607
21608
21609 ac_cr=`echo X | tr X '\015'`
21610 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21611 # But we know of no other shell where ac_cr would be empty at this
21612 # point, so we can use a bashism as a fallback.
21613 if test "x$ac_cr" = x; then
21614 eval ac_cr=\$\'\\r\'
21615 fi
21616 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21617 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21618 ac_cs_awk_cr='\r'
21619 else
21620 ac_cs_awk_cr=$ac_cr
21621 fi
21622
21623 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21624 _ACEOF
21625
21626
21627 {
21628 echo "cat >conf$$subs.awk <<_ACEOF" &&
21629 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21630 echo "_ACEOF"
21631 } >conf$$subs.sh ||
21632 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21633 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21634 ac_delim='%!_!# '
21635 for ac_last_try in false false false false false :; do
21636 . ./conf$$subs.sh ||
21637 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21638
21639 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21640 if test $ac_delim_n = $ac_delim_num; then
21641 break
21642 elif $ac_last_try; then
21643 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21644 else
21645 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21646 fi
21647 done
21648 rm -f conf$$subs.sh
21649
21650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21651 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21652 _ACEOF
21653 sed -n '
21654 h
21655 s/^/S["/; s/!.*/"]=/
21656 p
21657 g
21658 s/^[^!]*!//
21659 :repl
21660 t repl
21661 s/'"$ac_delim"'$//
21662 t delim
21663 :nl
21664 h
21665 s/\(.\{148\}\)..*/\1/
21666 t more1
21667 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21668 p
21669 n
21670 b repl
21671 :more1
21672 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21673 p
21674 g
21675 s/.\{148\}//
21676 t nl
21677 :delim
21678 h
21679 s/\(.\{148\}\)..*/\1/
21680 t more2
21681 s/["\\]/\\&/g; s/^/"/; s/$/"/
21682 p
21683 b
21684 :more2
21685 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21686 p
21687 g
21688 s/.\{148\}//
21689 t delim
21690 ' <conf$$subs.awk | sed '
21691 /^[^""]/{
21692 N
21693 s/\n//
21694 }
21695 ' >>$CONFIG_STATUS || ac_write_fail=1
21696 rm -f conf$$subs.awk
21697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21698 _ACAWK
21699 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21700 for (key in S) S_is_set[key] = 1
21701 FS = ""
21702
21703 }
21704 {
21705 line = $ 0
21706 nfields = split(line, field, "@")
21707 substed = 0
21708 len = length(field[1])
21709 for (i = 2; i < nfields; i++) {
21710 key = field[i]
21711 keylen = length(key)
21712 if (S_is_set[key]) {
21713 value = S[key]
21714 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21715 len += length(value) + length(field[++i])
21716 substed = 1
21717 } else
21718 len += 1 + keylen
21719 }
21720
21721 print line
21722 }
21723
21724 _ACAWK
21725 _ACEOF
21726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21727 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21728 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21729 else
21730 cat
21731 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21732 || as_fn_error "could not setup config files machinery" "$LINENO" 5
21733 _ACEOF
21734
21735 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21736 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21737 # trailing colons and then remove the whole line if VPATH becomes empty
21738 # (actually we leave an empty line to preserve line numbers).
21739 if test "x$srcdir" = x.; then
21740 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21741 s/:*\$(srcdir):*/:/
21742 s/:*\${srcdir}:*/:/
21743 s/:*@srcdir@:*/:/
21744 s/^\([^=]*=[ ]*\):*/\1/
21745 s/:*$//
21746 s/^[^=]*=[ ]*$//
21747 }'
21748 fi
21749
21750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21751 fi # test -n "$CONFIG_FILES"
21752
21753 # Set up the scripts for CONFIG_HEADERS section.
21754 # No need to generate them if there are no CONFIG_HEADERS.
21755 # This happens for instance with `./config.status Makefile'.
21756 if test -n "$CONFIG_HEADERS"; then
21757 cat >"$tmp/defines.awk" <<\_ACAWK ||
21758 BEGIN {
21759 _ACEOF
21760
21761 # Transform confdefs.h into an awk script `defines.awk', embedded as
21762 # here-document in config.status, that substitutes the proper values into
21763 # config.h.in to produce config.h.
21764
21765 # Create a delimiter string that does not exist in confdefs.h, to ease
21766 # handling of long lines.
21767 ac_delim='%!_!# '
21768 for ac_last_try in false false :; do
21769 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21770 if test -z "$ac_t"; then
21771 break
21772 elif $ac_last_try; then
21773 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
21774 else
21775 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21776 fi
21777 done
21778
21779 # For the awk script, D is an array of macro values keyed by name,
21780 # likewise P contains macro parameters if any. Preserve backslash
21781 # newline sequences.
21782
21783 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21784 sed -n '
21785 s/.\{148\}/&'"$ac_delim"'/g
21786 t rset
21787 :rset
21788 s/^[ ]*#[ ]*define[ ][ ]*/ /
21789 t def
21790 d
21791 :def
21792 s/\\$//
21793 t bsnl
21794 s/["\\]/\\&/g
21795 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21796 D["\1"]=" \3"/p
21797 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21798 d
21799 :bsnl
21800 s/["\\]/\\&/g
21801 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21802 D["\1"]=" \3\\\\\\n"\\/p
21803 t cont
21804 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21805 t cont
21806 d
21807 :cont
21808 n
21809 s/.\{148\}/&'"$ac_delim"'/g
21810 t clear
21811 :clear
21812 s/\\$//
21813 t bsnlc
21814 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21815 d
21816 :bsnlc
21817 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21818 b cont
21819 ' <confdefs.h | sed '
21820 s/'"$ac_delim"'/"\\\
21821 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21822
21823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21824 for (key in D) D_is_set[key] = 1
21825 FS = ""
21826 }
21827 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21828 line = \$ 0
21829 split(line, arg, " ")
21830 if (arg[1] == "#") {
21831 defundef = arg[2]
21832 mac1 = arg[3]
21833 } else {
21834 defundef = substr(arg[1], 2)
21835 mac1 = arg[2]
21836 }
21837 split(mac1, mac2, "(") #)
21838 macro = mac2[1]
21839 prefix = substr(line, 1, index(line, defundef) - 1)
21840 if (D_is_set[macro]) {
21841 # Preserve the white space surrounding the "#".
21842 print prefix "define", macro P[macro] D[macro]
21843 next
21844 } else {
21845 # Replace #undef with comments. This is necessary, for example,
21846 # in the case of _POSIX_SOURCE, which is predefined and required
21847 # on some systems where configure will not decide to define it.
21848 if (defundef == "undef") {
21849 print "/*", prefix defundef, macro, "*/"
21850 next
21851 }
21852 }
21853 }
21854 { print }
21855 _ACAWK
21856 _ACEOF
21857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21858 as_fn_error "could not setup config headers machinery" "$LINENO" 5
21859 fi # test -n "$CONFIG_HEADERS"
21860
21861
21862 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21863 shift
21864 for ac_tag
21865 do
21866 case $ac_tag in
21867 :[FHLC]) ac_mode=$ac_tag; continue;;
21868 esac
21869 case $ac_mode$ac_tag in
21870 :[FHL]*:*);;
21871 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
21872 :[FH]-) ac_tag=-:-;;
21873 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21874 esac
21875 ac_save_IFS=$IFS
21876 IFS=:
21877 set x $ac_tag
21878 IFS=$ac_save_IFS
21879 shift
21880 ac_file=$1
21881 shift
21882
21883 case $ac_mode in
21884 :L) ac_source=$1;;
21885 :[FH])
21886 ac_file_inputs=
21887 for ac_f
21888 do
21889 case $ac_f in
21890 -) ac_f="$tmp/stdin";;
21891 *) # Look for the file first in the build tree, then in the source tree
21892 # (if the path is not absolute). The absolute path cannot be DOS-style,
21893 # because $ac_f cannot contain `:'.
21894 test -f "$ac_f" ||
21895 case $ac_f in
21896 [\\/$]*) false;;
21897 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21898 esac ||
21899 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21900 esac
21901 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21902 as_fn_append ac_file_inputs " '$ac_f'"
21903 done
21904
21905 # Let's still pretend it is `configure' which instantiates (i.e., don't
21906 # use $as_me), people would be surprised to read:
21907 # /* config.h. Generated by config.status. */
21908 configure_input='Generated from '`
21909 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21910 `' by configure.'
21911 if test x"$ac_file" != x-; then
21912 configure_input="$ac_file. $configure_input"
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21914 $as_echo "$as_me: creating $ac_file" >&6;}
21915 fi
21916 # Neutralize special characters interpreted by sed in replacement strings.
21917 case $configure_input in #(
21918 *\&* | *\|* | *\\* )
21919 ac_sed_conf_input=`$as_echo "$configure_input" |
21920 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21921 *) ac_sed_conf_input=$configure_input;;
21922 esac
21923
21924 case $ac_tag in
21925 *:-:* | *:-) cat >"$tmp/stdin" \
21926 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
21927 esac
21928 ;;
21929 esac
21930
21931 ac_dir=`$as_dirname -- "$ac_file" ||
21932 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21933 X"$ac_file" : 'X\(//\)[^/]' \| \
21934 X"$ac_file" : 'X\(//\)$' \| \
21935 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21936 $as_echo X"$ac_file" |
21937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21938 s//\1/
21939 q
21940 }
21941 /^X\(\/\/\)[^/].*/{
21942 s//\1/
21943 q
21944 }
21945 /^X\(\/\/\)$/{
21946 s//\1/
21947 q
21948 }
21949 /^X\(\/\).*/{
21950 s//\1/
21951 q
21952 }
21953 s/.*/./; q'`
21954 as_dir="$ac_dir"; as_fn_mkdir_p
21955 ac_builddir=.
21956
21957 case "$ac_dir" in
21958 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21959 *)
21960 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21961 # A ".." for each directory in $ac_dir_suffix.
21962 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21963 case $ac_top_builddir_sub in
21964 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21965 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21966 esac ;;
21967 esac
21968 ac_abs_top_builddir=$ac_pwd
21969 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21970 # for backward compatibility:
21971 ac_top_builddir=$ac_top_build_prefix
21972
21973 case $srcdir in
21974 .) # We are building in place.
21975 ac_srcdir=.
21976 ac_top_srcdir=$ac_top_builddir_sub
21977 ac_abs_top_srcdir=$ac_pwd ;;
21978 [\\/]* | ?:[\\/]* ) # Absolute name.
21979 ac_srcdir=$srcdir$ac_dir_suffix;
21980 ac_top_srcdir=$srcdir
21981 ac_abs_top_srcdir=$srcdir ;;
21982 *) # Relative name.
21983 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21984 ac_top_srcdir=$ac_top_build_prefix$srcdir
21985 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21986 esac
21987 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21988
21989
21990 case $ac_mode in
21991 :F)
21992 #
21993 # CONFIG_FILE
21994 #
21995
21996 case $INSTALL in
21997 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21998 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21999 esac
22000 _ACEOF
22001
22002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22003 # If the template does not know about datarootdir, expand it.
22004 # FIXME: This hack should be removed a few years after 2.60.
22005 ac_datarootdir_hack=; ac_datarootdir_seen=
22006 ac_sed_dataroot='
22007 /datarootdir/ {
22008 p
22009 q
22010 }
22011 /@datadir@/p
22012 /@docdir@/p
22013 /@infodir@/p
22014 /@localedir@/p
22015 /@mandir@/p'
22016 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22017 *datarootdir*) ac_datarootdir_seen=yes;;
22018 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22020 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22021 _ACEOF
22022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22023 ac_datarootdir_hack='
22024 s&@datadir@&$datadir&g
22025 s&@docdir@&$docdir&g
22026 s&@infodir@&$infodir&g
22027 s&@localedir@&$localedir&g
22028 s&@mandir@&$mandir&g
22029 s&\\\${datarootdir}&$datarootdir&g' ;;
22030 esac
22031 _ACEOF
22032
22033 # Neutralize VPATH when `$srcdir' = `.'.
22034 # Shell code in configure.ac might set extrasub.
22035 # FIXME: do we really want to maintain this feature?
22036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22037 ac_sed_extra="$ac_vpsub
22038 $extrasub
22039 _ACEOF
22040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22041 :t
22042 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22043 s|@configure_input@|$ac_sed_conf_input|;t t
22044 s&@top_builddir@&$ac_top_builddir_sub&;t t
22045 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22046 s&@srcdir@&$ac_srcdir&;t t
22047 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22048 s&@top_srcdir@&$ac_top_srcdir&;t t
22049 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22050 s&@builddir@&$ac_builddir&;t t
22051 s&@abs_builddir@&$ac_abs_builddir&;t t
22052 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22053 s&@INSTALL@&$ac_INSTALL&;t t
22054 $ac_datarootdir_hack
22055 "
22056 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22057 || as_fn_error "could not create $ac_file" "$LINENO" 5
22058
22059 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22060 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22061 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22063 which seems to be undefined. Please make sure it is defined." >&5
22064 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22065 which seems to be undefined. Please make sure it is defined." >&2;}
22066
22067 rm -f "$tmp/stdin"
22068 case $ac_file in
22069 -) cat "$tmp/out" && rm -f "$tmp/out";;
22070 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22071 esac \
22072 || as_fn_error "could not create $ac_file" "$LINENO" 5
22073 ;;
22074 :H)
22075 #
22076 # CONFIG_HEADER
22077 #
22078 if test x"$ac_file" != x-; then
22079 {
22080 $as_echo "/* $configure_input */" \
22081 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22082 } >"$tmp/config.h" \
22083 || as_fn_error "could not create $ac_file" "$LINENO" 5
22084 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22085 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22086 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22087 else
22088 rm -f "$ac_file"
22089 mv "$tmp/config.h" "$ac_file" \
22090 || as_fn_error "could not create $ac_file" "$LINENO" 5
22091 fi
22092 else
22093 $as_echo "/* $configure_input */" \
22094 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22095 || as_fn_error "could not create -" "$LINENO" 5
22096 fi
22097 # Compute "$ac_file"'s index in $config_headers.
22098 _am_stamp_count=1
22099 for _am_header in $config_headers :; do
22100 case $_am_header in
22101 "$ac_file" | "$ac_file":* )
22102 break ;;
22103 * )
22104 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22105 esac
22106 done
22107 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
22108 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22109 X"$ac_file" : 'X\(//\)[^/]' \| \
22110 X"$ac_file" : 'X\(//\)$' \| \
22111 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22112 $as_echo X"$ac_file" |
22113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22114 s//\1/
22115 q
22116 }
22117 /^X\(\/\/\)[^/].*/{
22118 s//\1/
22119 q
22120 }
22121 /^X\(\/\/\)$/{
22122 s//\1/
22123 q
22124 }
22125 /^X\(\/\).*/{
22126 s//\1/
22127 q
22128 }
22129 s/.*/./; q'`/stamp-h$_am_stamp_count
22130 ;;
22131
22132 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22133 $as_echo "$as_me: executing $ac_file commands" >&6;}
22134 ;;
22135 esac
22136
22137
22138 case $ac_file$ac_mode in
22139 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22140 # Strip MF so we end up with the name of the file.
22141 mf=`echo "$mf" | sed -e 's/:.*$//'`
22142 # Check whether this is an Automake generated Makefile or not.
22143 # We used to match only the files named `Makefile.in', but
22144 # some people rename them; so instead we look at the file content.
22145 # Grep'ing the first line is not enough: some people post-process
22146 # each Makefile.in and add a new line on top of each file to say so.
22147 # So let's grep whole file.
22148 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22149 dirpart=`$as_dirname -- "$mf" ||
22150 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22151 X"$mf" : 'X\(//\)[^/]' \| \
22152 X"$mf" : 'X\(//\)$' \| \
22153 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22154 $as_echo X"$mf" |
22155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22156 s//\1/
22157 q
22158 }
22159 /^X\(\/\/\)[^/].*/{
22160 s//\1/
22161 q
22162 }
22163 /^X\(\/\/\)$/{
22164 s//\1/
22165 q
22166 }
22167 /^X\(\/\).*/{
22168 s//\1/
22169 q
22170 }
22171 s/.*/./; q'`
22172 else
22173 continue
22174 fi
22175 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
22176 # Extract the definition of DEP_FILES from the Makefile without
22177 # running `make'.
22178 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22179 test -z "$DEPDIR" && continue
22180 # When using ansi2knr, U may be empty or an underscore; expand it
22181 U=`sed -n 's/^U = //p' < "$mf"`
22182 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
22183 # We invoke sed twice because it is the simplest approach to
22184 # changing $(DEPDIR) to its actual value in the expansion.
22185 for file in `sed -n '
22186 /^DEP_FILES = .*\\\\$/ {
22187 s/^DEP_FILES = //
22188 :loop
22189 s/\\\\$//
22190 p
22191 n
22192 /\\\\$/ b loop
22193 p
22194 }
22195 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
22196 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22197 # Make sure the directory exists.
22198 test -f "$dirpart/$file" && continue
22199 fdir=`$as_dirname -- "$file" ||
22200 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22201 X"$file" : 'X\(//\)[^/]' \| \
22202 X"$file" : 'X\(//\)$' \| \
22203 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22204 $as_echo X"$file" |
22205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22206 s//\1/
22207 q
22208 }
22209 /^X\(\/\/\)[^/].*/{
22210 s//\1/
22211 q
22212 }
22213 /^X\(\/\/\)$/{
22214 s//\1/
22215 q
22216 }
22217 /^X\(\/\).*/{
22218 s//\1/
22219 q
22220 }
22221 s/.*/./; q'`
22222 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22223 # echo "creating $dirpart/$file"
22224 echo '# dummy' > "$dirpart/$file"
22225 done
22226 done
22227 ;;
22228
22229 esac
22230 done # for ac_tag
22231
22232
22233 as_fn_exit 0
22234 _ACEOF
22235 ac_clean_files=$ac_clean_files_save
22236
22237 test $ac_write_fail = 0 ||
22238 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
22239
22240
22241 # configure is writing to config.log, and then calls config.status.
22242 # config.status does its own redirection, appending to config.log.
22243 # Unfortunately, on DOS this fails, as config.log is still kept open
22244 # by configure, so config.status won't be able to write to it; its
22245 # output is simply discarded. So we exec the FD to /dev/null,
22246 # effectively closing config.log, so it can be properly (re)opened and
22247 # appended to by config.status. When coming back to configure, we
22248 # need to make the FD available again.
22249 if test "$no_create" != yes; then
22250 ac_cs_success=:
22251 ac_config_status_args=
22252 test "$silent" = yes &&
22253 ac_config_status_args="$ac_config_status_args --quiet"
22254 exec 5>/dev/null
22255 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22256 exec 5>>config.log
22257 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22258 # would make configure fail if this is the last instruction.
22259 $ac_cs_success || as_fn_exit $?
22260 fi
22261 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22263 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22264 fi
22265
22266
22267 # **************************************************************************
22268
22269
22270 sim_ac_settings="$sim_ac_configuration_settings"
22271 sim_ac_num_settings=`echo "$sim_ac_settings" | tr -d -c "|" | wc -c`
22272 sim_ac_maxlength=0
22273 while test $sim_ac_num_settings -ge 0; do
22274 sim_ac_description=`echo "$sim_ac_settings" | cut -d: -f1`
22275 sim_ac_length=`echo "$sim_ac_description" | wc -c`
22276 if test $sim_ac_length -gt $sim_ac_maxlength; then
22277 sim_ac_maxlength=`expr $sim_ac_length + 0`
22278 fi
22279 sim_ac_settings=`echo $sim_ac_settings | cut -d"|" -f2-`
22280 sim_ac_num_settings=`expr $sim_ac_num_settings - 1`
22281 done
22282
22283 sim_ac_maxlength=`expr $sim_ac_maxlength + 3`
22284 sim_ac_padding=`echo " " |
22285 cut -c1-$sim_ac_maxlength`
22286
22287 sim_ac_num_settings=`echo "$sim_ac_configuration_settings" | tr -d -c "|" | wc -c`
22288 echo ""
22289 echo "$PACKAGE configuration settings:"
22290 while test $sim_ac_num_settings -ge 0; do
22291 sim_ac_setting=`echo $sim_ac_configuration_settings | cut -d"|" -f1`
22292 sim_ac_description=`echo "$sim_ac_setting" | cut -d: -f1`
22293 sim_ac_status=`echo "$sim_ac_setting" | cut -d: -f2-`
22294 # hopefully not too many terminals are too dumb for this
22295 printf "$sim_ac_padding $sim_ac_status\r $sim_ac_description:\n"
22296 sim_ac_configuration_settings=`echo $sim_ac_configuration_settings | cut -d"|" -f2-`
22297 sim_ac_num_settings=`expr $sim_ac_num_settings - 1`
22298 done
22299
22300 if test x${sim_ac_configuration_warnings+set} = xset; then
22301 sim_ac_num_warnings=`echo "$sim_ac_configuration_warnings" | tr -d -c "|" | wc -c`
22302 echo ""
22303 echo "$PACKAGE configuration warnings:"
22304 while test $sim_ac_num_warnings -ge 0; do
22305 sim_ac_warning=`echo "$sim_ac_configuration_warnings" | cut -d"|" -f1`
22306 echo " * $sim_ac_warning"
22307 sim_ac_configuration_warnings=`echo $sim_ac_configuration_warnings | cut -d"|" -f2-`
22308 sim_ac_num_warnings=`expr $sim_ac_num_warnings - 1`
22309 done
22310 fi
22311
22312
22313 echo ""
22314 echo "Done. Now run make install to build $PACKAGE."
22315 echo ""
22316
22317 # **************************************************************************