Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gctp 2.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and [email protected]
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='gctp'
592 PACKAGE_TARNAME='gctp'
593 PACKAGE_VERSION='2.0'
594 PACKAGE_STRING='gctp 2.0'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_unique_file="source/cproj.c"
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 ac_ct_F77
640 FFLAGS
641 F77
642 CPP
643 LT_SYS_LIBRARY_PATH
644 OTOOL64
645 OTOOL
646 LIPO
647 NMEDIT
648 DSYMUTIL
649 MANIFEST_TOOL
650 RANLIB
651 ac_ct_AR
652 AR
653 DLLTOOL
654 OBJDUMP
655 LN_S
656 NM
657 ac_ct_DUMPBIN
658 DUMPBIN
659 LD
660 FGREP
661 EGREP
662 GREP
663 SED
664 am__fastdepCC_FALSE
665 am__fastdepCC_TRUE
666 CCDEPMODE
667 am__nodep
668 AMDEPBACKSLASH
669 AMDEP_FALSE
670 AMDEP_TRUE
671 am__quote
672 am__include
673 DEPDIR
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
680 CC
681 host_os
682 host_vendor
683 host_cpu
684 host
685 build_os
686 build_vendor
687 build_cpu
688 build
689 LIBTOOL
690 AM_BACKSLASH
691 AM_DEFAULT_VERBOSITY
692 AM_DEFAULT_V
693 AM_V
694 am__untar
695 am__tar
696 AMTAR
697 am__leading_dot
698 SET_MAKE
699 AWK
700 mkdir_p
701 MKDIR_P
702 INSTALL_STRIP_PROGRAM
703 STRIP
704 install_sh
705 MAKEINFO
706 AUTOHEADER
707 AUTOMAKE
708 AUTOCONF
709 ACLOCAL
710 VERSION
711 PACKAGE
712 CYGPATH_W
713 am__isrc
714 INSTALL_DATA
715 INSTALL_SCRIPT
716 INSTALL_PROGRAM
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files=''
756 ac_user_opts='
757 enable_option_checking
758 enable_silent_rules
759 enable_shared
760 enable_static
761 with_pic
762 enable_fast_install
763 with_aix_soname
764 enable_dependency_tracking
765 with_gnu_ld
766 with_sysroot
767 enable_libtool_lock
768 '
769 ac_precious_vars='build_alias
770 host_alias
771 target_alias
772 CC
773 CFLAGS
774 LDFLAGS
775 LIBS
776 CPPFLAGS
777 LT_SYS_LIBRARY_PATH
778 CPP
779 F77
780 FFLAGS'
781
782
783 # Initialize some variables set by options.
784 ac_init_help=
785 ac_init_version=false
786 ac_unrecognized_opts=
787 ac_unrecognized_sep=
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
790 cache_file=/dev/null
791 exec_prefix=NONE
792 no_create=
793 no_recursion=
794 prefix=NONE
795 program_prefix=NONE
796 program_suffix=NONE
797 program_transform_name=s,x,x,
798 silent=
799 site=
800 srcdir=
801 verbose=
802 x_includes=NONE
803 x_libraries=NONE
804
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
823 htmldir='${docdir}'
824 dvidir='${docdir}'
825 pdfdir='${docdir}'
826 psdir='${docdir}'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
830
831 ac_prev=
832 ac_dashdash=
833 for ac_option
834 do
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
838 ac_prev=
839 continue
840 fi
841
842 case $ac_option in
843 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 *=) ac_optarg= ;;
845 *) ac_optarg=yes ;;
846 esac
847
848 # Accept the important Cygnus configure options, so we can diagnose typos.
849
850 case $ac_dashdash$ac_option in
851 --)
852 ac_dashdash=yes ;;
853
854 -bindir | --bindir | --bindi | --bind | --bin | --bi)
855 ac_prev=bindir ;;
856 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857 bindir=$ac_optarg ;;
858
859 -build | --build | --buil | --bui | --bu)
860 ac_prev=build_alias ;;
861 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862 build_alias=$ac_optarg ;;
863
864 -cache-file | --cache-file | --cache-fil | --cache-fi \
865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866 ac_prev=cache_file ;;
867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869 cache_file=$ac_optarg ;;
870
871 --config-cache | -C)
872 cache_file=config.cache ;;
873
874 -datadir | --datadir | --datadi | --datad)
875 ac_prev=datadir ;;
876 -datadir=* | --datadir=* | --datadi=* | --datad=*)
877 datadir=$ac_optarg ;;
878
879 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880 | --dataroo | --dataro | --datar)
881 ac_prev=datarootdir ;;
882 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884 datarootdir=$ac_optarg ;;
885
886 -disable-* | --disable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error $? "invalid feature name: $ac_useropt"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
894 *"
895 "enable_$ac_useropt"
896 "*) ;;
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
899 esac
900 eval enable_$ac_useropt=no ;;
901
902 -docdir | --docdir | --docdi | --doc | --do)
903 ac_prev=docdir ;;
904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905 docdir=$ac_optarg ;;
906
907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908 ac_prev=dvidir ;;
909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910 dvidir=$ac_optarg ;;
911
912 -enable-* | --enable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921 "enable_$ac_useropt"
922 "*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=\$ac_optarg ;;
927
928 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930 | --exec | --exe | --ex)
931 ac_prev=exec_prefix ;;
932 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934 | --exec=* | --exe=* | --ex=*)
935 exec_prefix=$ac_optarg ;;
936
937 -gas | --gas | --ga | --g)
938 # Obsolete; use --with-gas.
939 with_gas=yes ;;
940
941 -help | --help | --hel | --he | -h)
942 ac_init_help=long ;;
943 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944 ac_init_help=recursive ;;
945 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946 ac_init_help=short ;;
947
948 -host | --host | --hos | --ho)
949 ac_prev=host_alias ;;
950 -host=* | --host=* | --hos=* | --ho=*)
951 host_alias=$ac_optarg ;;
952
953 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954 ac_prev=htmldir ;;
955 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956 | --ht=*)
957 htmldir=$ac_optarg ;;
958
959 -includedir | --includedir | --includedi | --included | --include \
960 | --includ | --inclu | --incl | --inc)
961 ac_prev=includedir ;;
962 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963 | --includ=* | --inclu=* | --incl=* | --inc=*)
964 includedir=$ac_optarg ;;
965
966 -infodir | --infodir | --infodi | --infod | --info | --inf)
967 ac_prev=infodir ;;
968 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969 infodir=$ac_optarg ;;
970
971 -libdir | --libdir | --libdi | --libd)
972 ac_prev=libdir ;;
973 -libdir=* | --libdir=* | --libdi=* | --libd=*)
974 libdir=$ac_optarg ;;
975
976 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977 | --libexe | --libex | --libe)
978 ac_prev=libexecdir ;;
979 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980 | --libexe=* | --libex=* | --libe=*)
981 libexecdir=$ac_optarg ;;
982
983 -localedir | --localedir | --localedi | --localed | --locale)
984 ac_prev=localedir ;;
985 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986 localedir=$ac_optarg ;;
987
988 -localstatedir | --localstatedir | --localstatedi | --localstated \
989 | --localstate | --localstat | --localsta | --localst | --locals)
990 ac_prev=localstatedir ;;
991 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993 localstatedir=$ac_optarg ;;
994
995 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996 ac_prev=mandir ;;
997 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998 mandir=$ac_optarg ;;
999
1000 -nfp | --nfp | --nf)
1001 # Obsolete; use --without-fp.
1002 with_fp=no ;;
1003
1004 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005 | --no-cr | --no-c | -n)
1006 no_create=yes ;;
1007
1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010 no_recursion=yes ;;
1011
1012 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014 | --oldin | --oldi | --old | --ol | --o)
1015 ac_prev=oldincludedir ;;
1016 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019 oldincludedir=$ac_optarg ;;
1020
1021 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022 ac_prev=prefix ;;
1023 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024 prefix=$ac_optarg ;;
1025
1026 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027 | --program-pre | --program-pr | --program-p)
1028 ac_prev=program_prefix ;;
1029 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031 program_prefix=$ac_optarg ;;
1032
1033 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034 | --program-suf | --program-su | --program-s)
1035 ac_prev=program_suffix ;;
1036 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038 program_suffix=$ac_optarg ;;
1039
1040 -program-transform-name | --program-transform-name \
1041 | --program-transform-nam | --program-transform-na \
1042 | --program-transform-n | --program-transform- \
1043 | --program-transform | --program-transfor \
1044 | --program-transfo | --program-transf \
1045 | --program-trans | --program-tran \
1046 | --progr-tra | --program-tr | --program-t)
1047 ac_prev=program_transform_name ;;
1048 -program-transform-name=* | --program-transform-name=* \
1049 | --program-transform-nam=* | --program-transform-na=* \
1050 | --program-transform-n=* | --program-transform-=* \
1051 | --program-transform=* | --program-transfor=* \
1052 | --program-transfo=* | --program-transf=* \
1053 | --program-trans=* | --program-tran=* \
1054 | --progr-tra=* | --program-tr=* | --program-t=*)
1055 program_transform_name=$ac_optarg ;;
1056
1057 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058 ac_prev=pdfdir ;;
1059 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060 pdfdir=$ac_optarg ;;
1061
1062 -psdir | --psdir | --psdi | --psd | --ps)
1063 ac_prev=psdir ;;
1064 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065 psdir=$ac_optarg ;;
1066
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1069 silent=yes ;;
1070
1071 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072 ac_prev=sbindir ;;
1073 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074 | --sbi=* | --sb=*)
1075 sbindir=$ac_optarg ;;
1076
1077 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079 | --sharedst | --shareds | --shared | --share | --shar \
1080 | --sha | --sh)
1081 ac_prev=sharedstatedir ;;
1082 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085 | --sha=* | --sh=*)
1086 sharedstatedir=$ac_optarg ;;
1087
1088 -site | --site | --sit)
1089 ac_prev=site ;;
1090 -site=* | --site=* | --sit=*)
1091 site=$ac_optarg ;;
1092
1093 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094 ac_prev=srcdir ;;
1095 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096 srcdir=$ac_optarg ;;
1097
1098 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099 | --syscon | --sysco | --sysc | --sys | --sy)
1100 ac_prev=sysconfdir ;;
1101 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103 sysconfdir=$ac_optarg ;;
1104
1105 -target | --target | --targe | --targ | --tar | --ta | --t)
1106 ac_prev=target_alias ;;
1107 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108 target_alias=$ac_optarg ;;
1109
1110 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111 verbose=yes ;;
1112
1113 -version | --version | --versio | --versi | --vers | -V)
1114 ac_init_version=: ;;
1115
1116 -with-* | --with-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid package name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1124 *"
1125 "with_$ac_useropt"
1126 "*) ;;
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1129 esac
1130 eval with_$ac_useropt=\$ac_optarg ;;
1131
1132 -without-* | --without-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1140 *"
1141 "with_$ac_useropt"
1142 "*) ;;
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1145 esac
1146 eval with_$ac_useropt=no ;;
1147
1148 --x)
1149 # Obsolete; use --with-x.
1150 with_x=yes ;;
1151
1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153 | --x-incl | --x-inc | --x-in | --x-i)
1154 ac_prev=x_includes ;;
1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157 x_includes=$ac_optarg ;;
1158
1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161 ac_prev=x_libraries ;;
1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164 x_libraries=$ac_optarg ;;
1165
1166 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167 Try \`$0 --help' for more information"
1168 ;;
1169
1170 *=*)
1171 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172 # Reject names that are not valid shell variable names.
1173 case $ac_envvar in #(
1174 '' | [0-9]* | *[!_$as_cr_alnum]* )
1175 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176 esac
1177 eval $ac_envvar=\$ac_optarg
1178 export $ac_envvar ;;
1179
1180 *)
1181 # FIXME: should be removed in autoconf 3.0.
1182 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1186 ;;
1187
1188 esac
1189 done
1190
1191 if test -n "$ac_prev"; then
1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193 as_fn_error $? "missing argument to $ac_option"
1194 fi
1195
1196 if test -n "$ac_unrecognized_opts"; then
1197 case $enable_option_checking in
1198 no) ;;
1199 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201 esac
1202 fi
1203
1204 # Check all directory arguments for consistency.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1209 do
1210 eval ac_val=\$$ac_var
1211 # Remove trailing slashes.
1212 case $ac_val in
1213 */ )
1214 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215 eval $ac_var=\$ac_val;;
1216 esac
1217 # Be sure to have absolute directory names.
1218 case $ac_val in
1219 [\\/$]* | ?:[\\/]* ) continue;;
1220 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221 esac
1222 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1223 done
1224
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1228 build=$build_alias
1229 host=$host_alias
1230 target=$target_alias
1231
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
1236 elif test "x$build_alias" != "x$host_alias"; then
1237 cross_compiling=yes
1238 fi
1239 fi
1240
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244 test "$silent" = yes && exec 6>/dev/null
1245
1246
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error $? "working directory cannot be determined"
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error $? "pwd does not report name of working directory"
1253
1254
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 $as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\).*/{
1278 s//\1/
1279 q
1280 }
1281 s/.*/./; q'`
1282 srcdir=$ac_confdir
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 srcdir=..
1285 fi
1286 else
1287 ac_srcdir_defaulted=no
1288 fi
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1292 fi
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1296 pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300 fi
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1313
1314 #
1315 # Report the --help message.
1316 #
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
1321 \`configure' configures gctp 2.0 to adapt to many kinds of systems.
1322
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328 Defaults for the options are specified in brackets.
1329
1330 Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking ...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 [PREFIX]
1346
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1351
1352 For better control, use the options below.
1353
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/gctp]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1374 _ACEOF
1375
1376 cat <<\_ACEOF
1377
1378 Program names:
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1382
1383 System types:
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1386 _ACEOF
1387 fi
1388
1389 if test -n "$ac_init_help"; then
1390 case $ac_init_help in
1391 short | recursive ) echo "Configuration of gctp 2.0:";;
1392 esac
1393 cat <<\_ACEOF
1394
1395 Optional Features:
1396 --disable-option-checking ignore unrecognized --enable/--with options
1397 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1398 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1399 --enable-silent-rules less verbose build output (undo: "make V=1")
1400 --disable-silent-rules verbose build output (undo: "make V=0")
1401 --enable-shared[=PKGS] build shared libraries [default=yes]
1402 --enable-static[=PKGS] build static libraries [default=yes]
1403 --enable-fast-install[=PKGS]
1404 optimize for fast installation [default=yes]
1405 --enable-dependency-tracking
1406 do not reject slow dependency extractors
1407 --disable-dependency-tracking
1408 speeds up one-time build
1409 --disable-libtool-lock avoid locking (might break parallel builds)
1410
1411 Optional Packages:
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1414 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1415 both]
1416 --with-aix-soname=aix|svr4|both
1417 shared library versioning (aka "SONAME") variant to
1418 provide on AIX, [default=aix].
1419 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1420 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1421 compiler's sysroot if not specified).
1422
1423 Some influential environment variables:
1424 CC C compiler command
1425 CFLAGS C compiler flags
1426 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1427 nonstandard directory <lib dir>
1428 LIBS libraries to pass to the linker, e.g. -l<library>
1429 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1430 you have headers in a nonstandard directory <include dir>
1431 LT_SYS_LIBRARY_PATH
1432 User-defined run-time library search path.
1433 CPP C preprocessor
1434 F77 Fortran 77 compiler command
1435 FFLAGS Fortran 77 compiler flags
1436
1437 Use these variables to override the choices made by `configure' or to help
1438 it to find libraries and programs with nonstandard names/locations.
1439
1440 Report bugs to <[email protected]>.
1441 _ACEOF
1442 ac_status=$?
1443 fi
1444
1445 if test "$ac_init_help" = "recursive"; then
1446 # If there are subdirs, report their specific --help.
1447 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1448 test -d "$ac_dir" ||
1449 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1450 continue
1451 ac_builddir=.
1452
1453 case "$ac_dir" in
1454 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 *)
1456 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1457 # A ".." for each directory in $ac_dir_suffix.
1458 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1459 case $ac_top_builddir_sub in
1460 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1462 esac ;;
1463 esac
1464 ac_abs_top_builddir=$ac_pwd
1465 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1466 # for backward compatibility:
1467 ac_top_builddir=$ac_top_build_prefix
1468
1469 case $srcdir in
1470 .) # We are building in place.
1471 ac_srcdir=.
1472 ac_top_srcdir=$ac_top_builddir_sub
1473 ac_abs_top_srcdir=$ac_pwd ;;
1474 [\\/]* | ?:[\\/]* ) # Absolute name.
1475 ac_srcdir=$srcdir$ac_dir_suffix;
1476 ac_top_srcdir=$srcdir
1477 ac_abs_top_srcdir=$srcdir ;;
1478 *) # Relative name.
1479 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1480 ac_top_srcdir=$ac_top_build_prefix$srcdir
1481 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1482 esac
1483 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1484
1485 cd "$ac_dir" || { ac_status=$?; continue; }
1486 # Check for guested configure.
1487 if test -f "$ac_srcdir/configure.gnu"; then
1488 echo &&
1489 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1490 elif test -f "$ac_srcdir/configure"; then
1491 echo &&
1492 $SHELL "$ac_srcdir/configure" --help=recursive
1493 else
1494 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1495 fi || ac_status=$?
1496 cd "$ac_pwd" || { ac_status=$?; break; }
1497 done
1498 fi
1499
1500 test -n "$ac_init_help" && exit $ac_status
1501 if $ac_init_version; then
1502 cat <<\_ACEOF
1503 gctp configure 2.0
1504 generated by GNU Autoconf 2.69
1505
1506 Copyright (C) 2012 Free Software Foundation, Inc.
1507 This configure script is free software; the Free Software Foundation
1508 gives unlimited permission to copy, distribute and modify it.
1509 _ACEOF
1510 exit
1511 fi
1512
1513 ## ------------------------ ##
1514 ## Autoconf initialization. ##
1515 ## ------------------------ ##
1516
1517 # ac_fn_c_try_compile LINENO
1518 # --------------------------
1519 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1520 ac_fn_c_try_compile ()
1521 {
1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523 rm -f conftest.$ac_objext
1524 if { { ac_try="$ac_compile"
1525 case "(($ac_try" in
1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527 *) ac_try_echo=$ac_try;;
1528 esac
1529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530 $as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_compile") 2>conftest.err
1532 ac_status=$?
1533 if test -s conftest.err; then
1534 grep -v '^ *+' conftest.err >conftest.er1
1535 cat conftest.er1 >&5
1536 mv -f conftest.er1 conftest.err
1537 fi
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; } && {
1540 test -z "$ac_c_werror_flag" ||
1541 test ! -s conftest.err
1542 } && test -s conftest.$ac_objext; then :
1543 ac_retval=0
1544 else
1545 $as_echo "$as_me: failed program was:" >&5
1546 sed 's/^/| /' conftest.$ac_ext >&5
1547
1548 ac_retval=1
1549 fi
1550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1551 as_fn_set_status $ac_retval
1552
1553 } # ac_fn_c_try_compile
1554
1555 # ac_fn_c_try_link LINENO
1556 # -----------------------
1557 # Try to link conftest.$ac_ext, and return whether this succeeded.
1558 ac_fn_c_try_link ()
1559 {
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 rm -f conftest.$ac_objext conftest$ac_exeext
1562 if { { ac_try="$ac_link"
1563 case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566 esac
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_link") 2>conftest.err
1570 ac_status=$?
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1575 fi
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && {
1578 test -z "$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 } && test -s conftest$ac_exeext && {
1581 test "$cross_compiling" = yes ||
1582 test -x conftest$ac_exeext
1583 }; then :
1584 ac_retval=0
1585 else
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1588
1589 ac_retval=1
1590 fi
1591 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1592 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1593 # interfere with the next link command; also delete a directory that is
1594 # left behind by Apple's compiler. We do this before executing the actions.
1595 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597 as_fn_set_status $ac_retval
1598
1599 } # ac_fn_c_try_link
1600
1601 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1602 # -------------------------------------------------------
1603 # Tests whether HEADER exists and can be compiled using the include files in
1604 # INCLUDES, setting the cache variable VAR accordingly.
1605 ac_fn_c_check_header_compile ()
1606 {
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1609 $as_echo_n "checking for $2... " >&6; }
1610 if eval \${$3+:} false; then :
1611 $as_echo_n "(cached) " >&6
1612 else
1613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614 /* end confdefs.h. */
1615 $4
1616 #include <$2>
1617 _ACEOF
1618 if ac_fn_c_try_compile "$LINENO"; then :
1619 eval "$3=yes"
1620 else
1621 eval "$3=no"
1622 fi
1623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1624 fi
1625 eval ac_res=\$$3
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1627 $as_echo "$ac_res" >&6; }
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629
1630 } # ac_fn_c_check_header_compile
1631
1632 # ac_fn_c_try_cpp LINENO
1633 # ----------------------
1634 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1635 ac_fn_c_try_cpp ()
1636 {
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 if { { ac_try="$ac_cpp conftest.$ac_ext"
1639 case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1646 ac_status=$?
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1651 fi
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } > conftest.i && {
1654 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1655 test ! -s conftest.err
1656 }; then :
1657 ac_retval=0
1658 else
1659 $as_echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1661
1662 ac_retval=1
1663 fi
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 as_fn_set_status $ac_retval
1666
1667 } # ac_fn_c_try_cpp
1668
1669 # ac_fn_c_try_run LINENO
1670 # ----------------------
1671 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1672 # that executables *can* be run.
1673 ac_fn_c_try_run ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 if { { ac_try="$ac_link"
1677 case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_link") 2>&5
1684 ac_status=$?
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1687 { { case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_try") 2>&5
1694 ac_status=$?
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; }; }; then :
1697 ac_retval=0
1698 else
1699 $as_echo "$as_me: program exited with status $ac_status" >&5
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 ac_retval=$ac_status
1704 fi
1705 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707 as_fn_set_status $ac_retval
1708
1709 } # ac_fn_c_try_run
1710
1711 # ac_fn_c_check_func LINENO FUNC VAR
1712 # ----------------------------------
1713 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1714 ac_fn_c_check_func ()
1715 {
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718 $as_echo_n "checking for $2... " >&6; }
1719 if eval \${$3+:} false; then :
1720 $as_echo_n "(cached) " >&6
1721 else
1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h. */
1724 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1726 #define $2 innocuous_$2
1727
1728 /* System header to define __stub macros and hopefully few prototypes,
1729 which can conflict with char $2 (); below.
1730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1731 <limits.h> exists even on freestanding compilers. */
1732
1733 #ifdef __STDC__
1734 # include <limits.h>
1735 #else
1736 # include <assert.h>
1737 #endif
1738
1739 #undef $2
1740
1741 /* Override any GCC internal prototype to avoid an error.
1742 Use char because int might match the return type of a GCC
1743 builtin and then its argument prototype would still apply. */
1744 #ifdef __cplusplus
1745 extern "C"
1746 #endif
1747 char $2 ();
1748 /* The GNU C library defines this for functions which it implements
1749 to always fail with ENOSYS. Some functions are actually named
1750 something starting with __ and the normal name is an alias. */
1751 #if defined __stub_$2 || defined __stub___$2
1752 choke me
1753 #endif
1754
1755 int
1756 main ()
1757 {
1758 return $2 ();
1759 ;
1760 return 0;
1761 }
1762 _ACEOF
1763 if ac_fn_c_try_link "$LINENO"; then :
1764 eval "$3=yes"
1765 else
1766 eval "$3=no"
1767 fi
1768 rm -f core conftest.err conftest.$ac_objext \
1769 conftest$ac_exeext conftest.$ac_ext
1770 fi
1771 eval ac_res=\$$3
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773 $as_echo "$ac_res" >&6; }
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775
1776 } # ac_fn_c_check_func
1777
1778 # ac_fn_f77_try_compile LINENO
1779 # ----------------------------
1780 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1781 ac_fn_f77_try_compile ()
1782 {
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 rm -f conftest.$ac_objext
1785 if { { ac_try="$ac_compile"
1786 case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1789 esac
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_compile") 2>conftest.err
1793 ac_status=$?
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1798 fi
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } && {
1801 test -z "$ac_f77_werror_flag" ||
1802 test ! -s conftest.err
1803 } && test -s conftest.$ac_objext; then :
1804 ac_retval=0
1805 else
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1808
1809 ac_retval=1
1810 fi
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1813
1814 } # ac_fn_f77_try_compile
1815
1816 # ac_fn_f77_try_link LINENO
1817 # -------------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_f77_try_link ()
1820 {
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 rm -f conftest.$ac_objext conftest$ac_exeext
1823 if { { ac_try="$ac_link"
1824 case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>conftest.err
1831 ac_status=$?
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1836 fi
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_f77_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest$ac_exeext && {
1842 test "$cross_compiling" = yes ||
1843 test -x conftest$ac_exeext
1844 }; then :
1845 ac_retval=0
1846 else
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1849
1850 ac_retval=1
1851 fi
1852 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1853 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1854 # interfere with the next link command; also delete a directory that is
1855 # left behind by Apple's compiler. We do this before executing the actions.
1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 as_fn_set_status $ac_retval
1859
1860 } # ac_fn_f77_try_link
1861
1862 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1863 # -------------------------------------------------------
1864 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1865 # the include files in INCLUDES and setting the cache variable VAR
1866 # accordingly.
1867 ac_fn_c_check_header_mongrel ()
1868 {
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 if eval \${$3+:} false; then :
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874 $as_echo_n "(cached) " >&6
1875 fi
1876 eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879 else
1880 # Is the header compilable?
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1882 $as_echo_n "checking $2 usability... " >&6; }
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1885 $4
1886 #include <$2>
1887 _ACEOF
1888 if ac_fn_c_try_compile "$LINENO"; then :
1889 ac_header_compiler=yes
1890 else
1891 ac_header_compiler=no
1892 fi
1893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1895 $as_echo "$ac_header_compiler" >&6; }
1896
1897 # Is the header present?
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1899 $as_echo_n "checking $2 presence... " >&6; }
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1902 #include <$2>
1903 _ACEOF
1904 if ac_fn_c_try_cpp "$LINENO"; then :
1905 ac_header_preproc=yes
1906 else
1907 ac_header_preproc=no
1908 fi
1909 rm -f conftest.err conftest.i conftest.$ac_ext
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1911 $as_echo "$ac_header_preproc" >&6; }
1912
1913 # So? What about this header?
1914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1915 yes:no: )
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1917 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1919 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1920 ;;
1921 no:yes:* )
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1923 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1925 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1927 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1929 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1931 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1932 ( $as_echo "## --------------------------------- ##
1933 ## Report this to [email protected] ##
1934 ## --------------------------------- ##"
1935 ) | sed "s/^/$as_me: WARNING: /" >&2
1936 ;;
1937 esac
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1942 else
1943 eval "$3=\$ac_header_compiler"
1944 fi
1945 eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1948 fi
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950
1951 } # ac_fn_c_check_header_mongrel
1952 cat >config.log <<_ACEOF
1953 This file contains any messages produced by compilers while
1954 running configure, to aid debugging if configure makes a mistake.
1955
1956 It was created by gctp $as_me 2.0, which was
1957 generated by GNU Autoconf 2.69. Invocation command line was
1958
1959 $ $0 $@
1960
1961 _ACEOF
1962 exec 5>>config.log
1963 {
1964 cat <<_ASUNAME
1965 ## --------- ##
1966 ## Platform. ##
1967 ## --------- ##
1968
1969 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1970 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1971 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1972 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1973 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1974
1975 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1976 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1977
1978 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1979 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1980 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1981 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1982 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1983 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1984 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1985
1986 _ASUNAME
1987
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1990 do
1991 IFS=$as_save_IFS
1992 test -z "$as_dir" && as_dir=.
1993 $as_echo "PATH: $as_dir"
1994 done
1995 IFS=$as_save_IFS
1996
1997 } >&5
1998
1999 cat >&5 <<_ACEOF
2000
2001
2002 ## ----------- ##
2003 ## Core tests. ##
2004 ## ----------- ##
2005
2006 _ACEOF
2007
2008
2009 # Keep a trace of the command line.
2010 # Strip out --no-create and --no-recursion so they do not pile up.
2011 # Strip out --silent because we don't want to record it for future runs.
2012 # Also quote any args containing shell meta-characters.
2013 # Make two passes to allow for proper duplicate-argument suppression.
2014 ac_configure_args=
2015 ac_configure_args0=
2016 ac_configure_args1=
2017 ac_must_keep_next=false
2018 for ac_pass in 1 2
2019 do
2020 for ac_arg
2021 do
2022 case $ac_arg in
2023 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2025 | -silent | --silent | --silen | --sile | --sil)
2026 continue ;;
2027 *\'*)
2028 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2029 esac
2030 case $ac_pass in
2031 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2032 2)
2033 as_fn_append ac_configure_args1 " '$ac_arg'"
2034 if test $ac_must_keep_next = true; then
2035 ac_must_keep_next=false # Got value, back to normal.
2036 else
2037 case $ac_arg in
2038 *=* | --config-cache | -C | -disable-* | --disable-* \
2039 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2040 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2041 | -with-* | --with-* | -without-* | --without-* | --x)
2042 case "$ac_configure_args0 " in
2043 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2044 esac
2045 ;;
2046 -* ) ac_must_keep_next=true ;;
2047 esac
2048 fi
2049 as_fn_append ac_configure_args " '$ac_arg'"
2050 ;;
2051 esac
2052 done
2053 done
2054 { ac_configure_args0=; unset ac_configure_args0;}
2055 { ac_configure_args1=; unset ac_configure_args1;}
2056
2057 # When interrupted or exit'd, cleanup temporary files, and complete
2058 # config.log. We remove comments because anyway the quotes in there
2059 # would cause problems or look ugly.
2060 # WARNING: Use '\'' to represent an apostrophe within the trap.
2061 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2062 trap 'exit_status=$?
2063 # Save into config.log some information that might help in debugging.
2064 {
2065 echo
2066
2067 $as_echo "## ---------------- ##
2068 ## Cache variables. ##
2069 ## ---------------- ##"
2070 echo
2071 # The following way of writing the cache mishandles newlines in values,
2072 (
2073 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2074 eval ac_val=\$$ac_var
2075 case $ac_val in #(
2076 *${as_nl}*)
2077 case $ac_var in #(
2078 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2079 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2080 esac
2081 case $ac_var in #(
2082 _ | IFS | as_nl) ;; #(
2083 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2084 *) { eval $ac_var=; unset $ac_var;} ;;
2085 esac ;;
2086 esac
2087 done
2088 (set) 2>&1 |
2089 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2090 *${as_nl}ac_space=\ *)
2091 sed -n \
2092 "s/'\''/'\''\\\\'\'''\''/g;
2093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2094 ;; #(
2095 *)
2096 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2097 ;;
2098 esac |
2099 sort
2100 )
2101 echo
2102
2103 $as_echo "## ----------------- ##
2104 ## Output variables. ##
2105 ## ----------------- ##"
2106 echo
2107 for ac_var in $ac_subst_vars
2108 do
2109 eval ac_val=\$$ac_var
2110 case $ac_val in
2111 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2112 esac
2113 $as_echo "$ac_var='\''$ac_val'\''"
2114 done | sort
2115 echo
2116
2117 if test -n "$ac_subst_files"; then
2118 $as_echo "## ------------------- ##
2119 ## File substitutions. ##
2120 ## ------------------- ##"
2121 echo
2122 for ac_var in $ac_subst_files
2123 do
2124 eval ac_val=\$$ac_var
2125 case $ac_val in
2126 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2127 esac
2128 $as_echo "$ac_var='\''$ac_val'\''"
2129 done | sort
2130 echo
2131 fi
2132
2133 if test -s confdefs.h; then
2134 $as_echo "## ----------- ##
2135 ## confdefs.h. ##
2136 ## ----------- ##"
2137 echo
2138 cat confdefs.h
2139 echo
2140 fi
2141 test "$ac_signal" != 0 &&
2142 $as_echo "$as_me: caught signal $ac_signal"
2143 $as_echo "$as_me: exit $exit_status"
2144 } >&5
2145 rm -f core *.core core.conftest.* &&
2146 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2147 exit $exit_status
2148 ' 0
2149 for ac_signal in 1 2 13 15; do
2150 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2151 done
2152 ac_signal=0
2153
2154 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2155 rm -f -r conftest* confdefs.h
2156
2157 $as_echo "/* confdefs.h */" > confdefs.h
2158
2159 # Predefined preprocessor variables.
2160
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_NAME "$PACKAGE_NAME"
2163 _ACEOF
2164
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2167 _ACEOF
2168
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2171 _ACEOF
2172
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_STRING "$PACKAGE_STRING"
2175 _ACEOF
2176
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2179 _ACEOF
2180
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_URL "$PACKAGE_URL"
2183 _ACEOF
2184
2185
2186 # Let the site file select an alternate cache file if it wants to.
2187 # Prefer an explicitly selected file to automatically selected ones.
2188 ac_site_file1=NONE
2189 ac_site_file2=NONE
2190 if test -n "$CONFIG_SITE"; then
2191 # We do not want a PATH search for config.site.
2192 case $CONFIG_SITE in #((
2193 -*) ac_site_file1=./$CONFIG_SITE;;
2194 */*) ac_site_file1=$CONFIG_SITE;;
2195 *) ac_site_file1=./$CONFIG_SITE;;
2196 esac
2197 elif test "x$prefix" != xNONE; then
2198 ac_site_file1=$prefix/share/config.site
2199 ac_site_file2=$prefix/etc/config.site
2200 else
2201 ac_site_file1=$ac_default_prefix/share/config.site
2202 ac_site_file2=$ac_default_prefix/etc/config.site
2203 fi
2204 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2205 do
2206 test "x$ac_site_file" = xNONE && continue
2207 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2209 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2210 sed 's/^/| /' "$ac_site_file" >&5
2211 . "$ac_site_file" \
2212 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2214 as_fn_error $? "failed to load site script $ac_site_file
2215 See \`config.log' for more details" "$LINENO" 5; }
2216 fi
2217 done
2218
2219 if test -r "$cache_file"; then
2220 # Some versions of bash will fail to source /dev/null (special files
2221 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2222 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2224 $as_echo "$as_me: loading cache $cache_file" >&6;}
2225 case $cache_file in
2226 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2227 *) . "./$cache_file";;
2228 esac
2229 fi
2230 else
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2232 $as_echo "$as_me: creating cache $cache_file" >&6;}
2233 >$cache_file
2234 fi
2235
2236 # Check that the precious variables saved in the cache have kept the same
2237 # value.
2238 ac_cache_corrupted=false
2239 for ac_var in $ac_precious_vars; do
2240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2241 eval ac_new_set=\$ac_env_${ac_var}_set
2242 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2243 eval ac_new_val=\$ac_env_${ac_var}_value
2244 case $ac_old_set,$ac_new_set in
2245 set,)
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2247 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2248 ac_cache_corrupted=: ;;
2249 ,set)
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2251 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2252 ac_cache_corrupted=: ;;
2253 ,);;
2254 *)
2255 if test "x$ac_old_val" != "x$ac_new_val"; then
2256 # differences in whitespace do not lead to failure.
2257 ac_old_val_w=`echo x $ac_old_val`
2258 ac_new_val_w=`echo x $ac_new_val`
2259 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2261 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2262 ac_cache_corrupted=:
2263 else
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2265 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2266 eval $ac_var=\$ac_old_val
2267 fi
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2269 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2271 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2272 fi;;
2273 esac
2274 # Pass precious variables to config.status.
2275 if test "$ac_new_set" = set; then
2276 case $ac_new_val in
2277 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2278 *) ac_arg=$ac_var=$ac_new_val ;;
2279 esac
2280 case " $ac_configure_args " in
2281 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2282 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2283 esac
2284 fi
2285 done
2286 if $ac_cache_corrupted; then
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2290 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2291 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2292 fi
2293 ## -------------------- ##
2294 ## Main body of script. ##
2295 ## -------------------- ##
2296
2297 ac_ext=c
2298 ac_cpp='$CPP $CPPFLAGS'
2299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2302
2303
2304 am__api_version='1.15'
2305
2306 ac_aux_dir=
2307 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2308 if test -f "$ac_dir/install-sh"; then
2309 ac_aux_dir=$ac_dir
2310 ac_install_sh="$ac_aux_dir/install-sh -c"
2311 break
2312 elif test -f "$ac_dir/install.sh"; then
2313 ac_aux_dir=$ac_dir
2314 ac_install_sh="$ac_aux_dir/install.sh -c"
2315 break
2316 elif test -f "$ac_dir/shtool"; then
2317 ac_aux_dir=$ac_dir
2318 ac_install_sh="$ac_aux_dir/shtool install -c"
2319 break
2320 fi
2321 done
2322 if test -z "$ac_aux_dir"; then
2323 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2324 fi
2325
2326 # These three variables are undocumented and unsupported,
2327 # and are intended to be withdrawn in a future Autoconf release.
2328 # They can cause serious problems if a builder's source tree is in a directory
2329 # whose full name contains unusual characters.
2330 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2331 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2332 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2333
2334
2335 # Find a good install program. We prefer a C program (faster),
2336 # so one script is as good as another. But avoid the broken or
2337 # incompatible versions:
2338 # SysV /etc/install, /usr/sbin/install
2339 # SunOS /usr/etc/install
2340 # IRIX /sbin/install
2341 # AIX /bin/install
2342 # AmigaOS /C/install, which installs bootblocks on floppy discs
2343 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2344 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2345 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2346 # OS/2's system install, which has a completely different semantic
2347 # ./install, which can be erroneously created by make from ./install.sh.
2348 # Reject install programs that cannot install multiple files.
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2350 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2351 if test -z "$INSTALL"; then
2352 if ${ac_cv_path_install+:} false; then :
2353 $as_echo_n "(cached) " >&6
2354 else
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2357 do
2358 IFS=$as_save_IFS
2359 test -z "$as_dir" && as_dir=.
2360 # Account for people who put trailing slashes in PATH elements.
2361 case $as_dir/ in #((
2362 ./ | .// | /[cC]/* | \
2363 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2364 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2365 /usr/ucb/* ) ;;
2366 *)
2367 # OSF1 and SCO ODT 3.0 have their own names for install.
2368 # Don't use installbsd from OSF since it installs stuff as root
2369 # by default.
2370 for ac_prog in ginstall scoinst install; do
2371 for ac_exec_ext in '' $ac_executable_extensions; do
2372 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2373 if test $ac_prog = install &&
2374 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2375 # AIX install. It has an incompatible calling convention.
2376 :
2377 elif test $ac_prog = install &&
2378 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2379 # program-specific install script used by HP pwplus--don't use.
2380 :
2381 else
2382 rm -rf conftest.one conftest.two conftest.dir
2383 echo one > conftest.one
2384 echo two > conftest.two
2385 mkdir conftest.dir
2386 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2387 test -s conftest.one && test -s conftest.two &&
2388 test -s conftest.dir/conftest.one &&
2389 test -s conftest.dir/conftest.two
2390 then
2391 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2392 break 3
2393 fi
2394 fi
2395 fi
2396 done
2397 done
2398 ;;
2399 esac
2400
2401 done
2402 IFS=$as_save_IFS
2403
2404 rm -rf conftest.one conftest.two conftest.dir
2405
2406 fi
2407 if test "${ac_cv_path_install+set}" = set; then
2408 INSTALL=$ac_cv_path_install
2409 else
2410 # As a last resort, use the slow shell script. Don't cache a
2411 # value for INSTALL within a source directory, because that will
2412 # break other packages using the cache if that directory is
2413 # removed, or if the value is a relative name.
2414 INSTALL=$ac_install_sh
2415 fi
2416 fi
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2418 $as_echo "$INSTALL" >&6; }
2419
2420 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2421 # It thinks the first close brace ends the variable substitution.
2422 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2423
2424 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2425
2426 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2427
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2429 $as_echo_n "checking whether build environment is sane... " >&6; }
2430 # Reject unsafe characters in $srcdir or the absolute working directory
2431 # name. Accept space and tab only in the latter.
2432 am_lf='
2433 '
2434 case `pwd` in
2435 *[\\\"\#\$\&\'\`$am_lf]*)
2436 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2437 esac
2438 case $srcdir in
2439 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2440 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2441 esac
2442
2443 # Do 'set' in a subshell so we don't clobber the current shell's
2444 # arguments. Must try -L first in case configure is actually a
2445 # symlink; some systems play weird games with the mod time of symlinks
2446 # (eg FreeBSD returns the mod time of the symlink's containing
2447 # directory).
2448 if (
2449 am_has_slept=no
2450 for am_try in 1 2; do
2451 echo "timestamp, slept: $am_has_slept" > conftest.file
2452 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2453 if test "$*" = "X"; then
2454 # -L didn't work.
2455 set X `ls -t "$srcdir/configure" conftest.file`
2456 fi
2457 if test "$*" != "X $srcdir/configure conftest.file" \
2458 && test "$*" != "X conftest.file $srcdir/configure"; then
2459
2460 # If neither matched, then we have a broken ls. This can happen
2461 # if, for instance, CONFIG_SHELL is bash and it inherits a
2462 # broken ls alias from the environment. This has actually
2463 # happened. Such a system could not be considered "sane".
2464 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2465 alias in your environment" "$LINENO" 5
2466 fi
2467 if test "$2" = conftest.file || test $am_try -eq 2; then
2468 break
2469 fi
2470 # Just in case.
2471 sleep 1
2472 am_has_slept=yes
2473 done
2474 test "$2" = conftest.file
2475 )
2476 then
2477 # Ok.
2478 :
2479 else
2480 as_fn_error $? "newly created file is older than distributed files!
2481 Check your system clock" "$LINENO" 5
2482 fi
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2484 $as_echo "yes" >&6; }
2485 # If we didn't sleep, we still need to ensure time stamps of config.status and
2486 # generated files are strictly newer.
2487 am_sleep_pid=
2488 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2489 ( sleep 1 ) &
2490 am_sleep_pid=$!
2491 fi
2492
2493 rm -f conftest.file
2494
2495 test "$program_prefix" != NONE &&
2496 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2497 # Use a double $ so make ignores it.
2498 test "$program_suffix" != NONE &&
2499 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2500 # Double any \ or $.
2501 # By default was `s,x,x', remove it if useless.
2502 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2503 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2504
2505 # Expand $ac_aux_dir to an absolute path.
2506 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2507
2508 if test x"${MISSING+set}" != xset; then
2509 case $am_aux_dir in
2510 *\ * | *\ *)
2511 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2512 *)
2513 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2514 esac
2515 fi
2516 # Use eval to expand $SHELL
2517 if eval "$MISSING --is-lightweight"; then
2518 am_missing_run="$MISSING "
2519 else
2520 am_missing_run=
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2522 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2523 fi
2524
2525 if test x"${install_sh+set}" != xset; then
2526 case $am_aux_dir in
2527 *\ * | *\ *)
2528 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2529 *)
2530 install_sh="\${SHELL} $am_aux_dir/install-sh"
2531 esac
2532 fi
2533
2534 # Installed binaries are usually stripped using 'strip' when the user
2535 # run "make install-strip". However 'strip' might not be the right
2536 # tool to use in cross-compilation environments, therefore Automake
2537 # will honor the 'STRIP' environment variable to overrule this program.
2538 if test "$cross_compiling" != no; then
2539 if test -n "$ac_tool_prefix"; then
2540 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2541 set dummy ${ac_tool_prefix}strip; ac_word=$2
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2543 $as_echo_n "checking for $ac_word... " >&6; }
2544 if ${ac_cv_prog_STRIP+:} false; then :
2545 $as_echo_n "(cached) " >&6
2546 else
2547 if test -n "$STRIP"; then
2548 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2549 else
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 for as_dir in $PATH
2552 do
2553 IFS=$as_save_IFS
2554 test -z "$as_dir" && as_dir=.
2555 for ac_exec_ext in '' $ac_executable_extensions; do
2556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2557 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2559 break 2
2560 fi
2561 done
2562 done
2563 IFS=$as_save_IFS
2564
2565 fi
2566 fi
2567 STRIP=$ac_cv_prog_STRIP
2568 if test -n "$STRIP"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2570 $as_echo "$STRIP" >&6; }
2571 else
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2573 $as_echo "no" >&6; }
2574 fi
2575
2576
2577 fi
2578 if test -z "$ac_cv_prog_STRIP"; then
2579 ac_ct_STRIP=$STRIP
2580 # Extract the first word of "strip", so it can be a program name with args.
2581 set dummy strip; ac_word=$2
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2583 $as_echo_n "checking for $ac_word... " >&6; }
2584 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2585 $as_echo_n "(cached) " >&6
2586 else
2587 if test -n "$ac_ct_STRIP"; then
2588 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2589 else
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 for as_dir in $PATH
2592 do
2593 IFS=$as_save_IFS
2594 test -z "$as_dir" && as_dir=.
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2597 ac_cv_prog_ac_ct_STRIP="strip"
2598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2599 break 2
2600 fi
2601 done
2602 done
2603 IFS=$as_save_IFS
2604
2605 fi
2606 fi
2607 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2608 if test -n "$ac_ct_STRIP"; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2610 $as_echo "$ac_ct_STRIP" >&6; }
2611 else
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2613 $as_echo "no" >&6; }
2614 fi
2615
2616 if test "x$ac_ct_STRIP" = x; then
2617 STRIP=":"
2618 else
2619 case $cross_compiling:$ac_tool_warned in
2620 yes:)
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2623 ac_tool_warned=yes ;;
2624 esac
2625 STRIP=$ac_ct_STRIP
2626 fi
2627 else
2628 STRIP="$ac_cv_prog_STRIP"
2629 fi
2630
2631 fi
2632 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2633
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2635 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2636 if test -z "$MKDIR_P"; then
2637 if ${ac_cv_path_mkdir+:} false; then :
2638 $as_echo_n "(cached) " >&6
2639 else
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2642 do
2643 IFS=$as_save_IFS
2644 test -z "$as_dir" && as_dir=.
2645 for ac_prog in mkdir gmkdir; do
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2648 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2649 'mkdir (GNU coreutils) '* | \
2650 'mkdir (coreutils) '* | \
2651 'mkdir (fileutils) '4.1*)
2652 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2653 break 3;;
2654 esac
2655 done
2656 done
2657 done
2658 IFS=$as_save_IFS
2659
2660 fi
2661
2662 test -d ./--version && rmdir ./--version
2663 if test "${ac_cv_path_mkdir+set}" = set; then
2664 MKDIR_P="$ac_cv_path_mkdir -p"
2665 else
2666 # As a last resort, use the slow shell script. Don't cache a
2667 # value for MKDIR_P within a source directory, because that will
2668 # break other packages using the cache if that directory is
2669 # removed, or if the value is a relative name.
2670 MKDIR_P="$ac_install_sh -d"
2671 fi
2672 fi
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2674 $as_echo "$MKDIR_P" >&6; }
2675
2676 for ac_prog in gawk mawk nawk awk
2677 do
2678 # Extract the first word of "$ac_prog", so it can be a program name with args.
2679 set dummy $ac_prog; ac_word=$2
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681 $as_echo_n "checking for $ac_word... " >&6; }
2682 if ${ac_cv_prog_AWK+:} false; then :
2683 $as_echo_n "(cached) " >&6
2684 else
2685 if test -n "$AWK"; then
2686 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2690 do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695 ac_cv_prog_AWK="$ac_prog"
2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2698 fi
2699 done
2700 done
2701 IFS=$as_save_IFS
2702
2703 fi
2704 fi
2705 AWK=$ac_cv_prog_AWK
2706 if test -n "$AWK"; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2708 $as_echo "$AWK" >&6; }
2709 else
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711 $as_echo "no" >&6; }
2712 fi
2713
2714
2715 test -n "$AWK" && break
2716 done
2717
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2719 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2720 set x ${MAKE-make}
2721 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2722 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2723 $as_echo_n "(cached) " >&6
2724 else
2725 cat >conftest.make <<\_ACEOF
2726 SHELL = /bin/sh
2727 all:
2728 @echo '@@@%%%=$(MAKE)=@@@%%%'
2729 _ACEOF
2730 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2731 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2732 *@@@%%%=?*=@@@%%%*)
2733 eval ac_cv_prog_make_${ac_make}_set=yes;;
2734 *)
2735 eval ac_cv_prog_make_${ac_make}_set=no;;
2736 esac
2737 rm -f conftest.make
2738 fi
2739 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2741 $as_echo "yes" >&6; }
2742 SET_MAKE=
2743 else
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2746 SET_MAKE="MAKE=${MAKE-make}"
2747 fi
2748
2749 rm -rf .tst 2>/dev/null
2750 mkdir .tst 2>/dev/null
2751 if test -d .tst; then
2752 am__leading_dot=.
2753 else
2754 am__leading_dot=_
2755 fi
2756 rmdir .tst 2>/dev/null
2757
2758 # Check whether --enable-silent-rules was given.
2759 if test "${enable_silent_rules+set}" = set; then :
2760 enableval=$enable_silent_rules;
2761 fi
2762
2763 case $enable_silent_rules in # (((
2764 yes) AM_DEFAULT_VERBOSITY=0;;
2765 no) AM_DEFAULT_VERBOSITY=1;;
2766 *) AM_DEFAULT_VERBOSITY=1;;
2767 esac
2768 am_make=${MAKE-make}
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2770 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2771 if ${am_cv_make_support_nested_variables+:} false; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 if $as_echo 'TRUE=$(BAR$(V))
2775 BAR0=false
2776 BAR1=true
2777 V=1
2778 am__doit:
2779 @$(TRUE)
2780 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2781 am_cv_make_support_nested_variables=yes
2782 else
2783 am_cv_make_support_nested_variables=no
2784 fi
2785 fi
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2787 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2788 if test $am_cv_make_support_nested_variables = yes; then
2789 AM_V='$(V)'
2790 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2791 else
2792 AM_V=$AM_DEFAULT_VERBOSITY
2793 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2794 fi
2795 AM_BACKSLASH='\'
2796
2797 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2798 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2799 # is not polluted with repeated "-I."
2800 am__isrc=' -I$(srcdir)'
2801 # test to see if srcdir already configured
2802 if test -f $srcdir/config.status; then
2803 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2804 fi
2805 fi
2806
2807 # test whether we have cygpath
2808 if test -z "$CYGPATH_W"; then
2809 if (cygpath --version) >/dev/null 2>/dev/null; then
2810 CYGPATH_W='cygpath -w'
2811 else
2812 CYGPATH_W=echo
2813 fi
2814 fi
2815
2816
2817 # Define the identity of the package.
2818 PACKAGE='gctp'
2819 VERSION='2.0'
2820
2821
2822 cat >>confdefs.h <<_ACEOF
2823 #define PACKAGE "$PACKAGE"
2824 _ACEOF
2825
2826
2827 cat >>confdefs.h <<_ACEOF
2828 #define VERSION "$VERSION"
2829 _ACEOF
2830
2831 # Some tools Automake needs.
2832
2833 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2834
2835
2836 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2837
2838
2839 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2840
2841
2842 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2843
2844
2845 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2846
2847 # For better backward compatibility. To be removed once Automake 1.9.x
2848 # dies out for good. For more background, see:
2849 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2850 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2851 mkdir_p='$(MKDIR_P)'
2852
2853 # We need awk for the "check" target (and possibly the TAP driver). The
2854 # system "awk" is bad on some platforms.
2855 # Always define AMTAR for backward compatibility. Yes, it's still used
2856 # in the wild :-( We should find a proper way to deprecate it ...
2857 AMTAR='$${TAR-tar}'
2858
2859
2860 # We'll loop over all known methods to create a tar archive until one works.
2861 _am_tools='gnutar pax cpio none'
2862
2863 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2864
2865
2866
2867
2868
2869
2870 # POSIX will say in a future version that running "rm -f" with no argument
2871 # is OK; and we want to be able to make that assumption in our Makefile
2872 # recipes. So use an aggressive probe to check that the usage we want is
2873 # actually supported "in the wild" to an acceptable degree.
2874 # See automake bug#10828.
2875 # To make any issue more visible, cause the running configure to be aborted
2876 # by default if the 'rm' program in use doesn't match our expectations; the
2877 # user can still override this though.
2878 if rm -f && rm -fr && rm -rf; then : OK; else
2879 cat >&2 <<'END'
2880 Oops!
2881
2882 Your 'rm' program seems unable to run without file operands specified
2883 on the command line, even when the '-f' option is present. This is contrary
2884 to the behaviour of most rm programs out there, and not conforming with
2885 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2886
2887 Please tell [email protected] about your system, including the value
2888 of your $PATH and any error possibly output before this message. This
2889 can help us improve future automake versions.
2890
2891 END
2892 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2893 echo 'Configuration will proceed anyway, since you have set the' >&2
2894 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2895 echo >&2
2896 else
2897 cat >&2 <<'END'
2898 Aborting the configuration process, to ensure you take notice of the issue.
2899
2900 You can download and install GNU coreutils to get an 'rm' implementation
2901 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2902
2903 If you want to complete the configuration process using your problematic
2904 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2905 to "yes", and re-run configure.
2906
2907 END
2908 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2909 fi
2910 fi
2911
2912 case `pwd` in
2913 *\ * | *\ *)
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2915 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2916 esac
2917
2918
2919
2920 macro_version='2.4.6'
2921 macro_revision='2.4.6'
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935 ltmain=$ac_aux_dir/ltmain.sh
2936
2937 # Make sure we can run config.sub.
2938 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2939 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2940
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2942 $as_echo_n "checking build system type... " >&6; }
2943 if ${ac_cv_build+:} false; then :
2944 $as_echo_n "(cached) " >&6
2945 else
2946 ac_build_alias=$build_alias
2947 test "x$ac_build_alias" = x &&
2948 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2949 test "x$ac_build_alias" = x &&
2950 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2951 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2952 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2953
2954 fi
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2956 $as_echo "$ac_cv_build" >&6; }
2957 case $ac_cv_build in
2958 *-*-*) ;;
2959 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2960 esac
2961 build=$ac_cv_build
2962 ac_save_IFS=$IFS; IFS='-'
2963 set x $ac_cv_build
2964 shift
2965 build_cpu=$1
2966 build_vendor=$2
2967 shift; shift
2968 # Remember, the first character of IFS is used to create $*,
2969 # except with old shells:
2970 build_os=$*
2971 IFS=$ac_save_IFS
2972 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2973
2974
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2976 $as_echo_n "checking host system type... " >&6; }
2977 if ${ac_cv_host+:} false; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 if test "x$host_alias" = x; then
2981 ac_cv_host=$ac_cv_build
2982 else
2983 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2984 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2985 fi
2986
2987 fi
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2989 $as_echo "$ac_cv_host" >&6; }
2990 case $ac_cv_host in
2991 *-*-*) ;;
2992 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2993 esac
2994 host=$ac_cv_host
2995 ac_save_IFS=$IFS; IFS='-'
2996 set x $ac_cv_host
2997 shift
2998 host_cpu=$1
2999 host_vendor=$2
3000 shift; shift
3001 # Remember, the first character of IFS is used to create $*,
3002 # except with old shells:
3003 host_os=$*
3004 IFS=$ac_save_IFS
3005 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3006
3007
3008 # Backslashify metacharacters that are still active within
3009 # double-quoted strings.
3010 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3011
3012 # Same as above, but do not quote variable references.
3013 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3014
3015 # Sed substitution to delay expansion of an escaped shell variable in a
3016 # double_quote_subst'ed string.
3017 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3018
3019 # Sed substitution to delay expansion of an escaped single quote.
3020 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3021
3022 # Sed substitution to avoid accidental globbing in evaled expressions
3023 no_glob_subst='s/\*/\\\*/g'
3024
3025 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3026 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3027 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3028
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3030 $as_echo_n "checking how to print strings... " >&6; }
3031 # Test print first, because it will be a builtin if present.
3032 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3033 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3034 ECHO='print -r --'
3035 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3036 ECHO='printf %s\n'
3037 else
3038 # Use this function as a fallback that always works.
3039 func_fallback_echo ()
3040 {
3041 eval 'cat <<_LTECHO_EOF
3042 $1
3043 _LTECHO_EOF'
3044 }
3045 ECHO='func_fallback_echo'
3046 fi
3047
3048 # func_echo_all arg...
3049 # Invoke $ECHO with all args, space-separated.
3050 func_echo_all ()
3051 {
3052 $ECHO ""
3053 }
3054
3055 case $ECHO in
3056 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3057 $as_echo "printf" >&6; } ;;
3058 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3059 $as_echo "print -r" >&6; } ;;
3060 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3061 $as_echo "cat" >&6; } ;;
3062 esac
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077 DEPDIR="${am__leading_dot}deps"
3078
3079 ac_config_commands="$ac_config_commands depfiles"
3080
3081
3082 am_make=${MAKE-make}
3083 cat > confinc << 'END'
3084 am__doit:
3085 @echo this is the am__doit target
3086 .PHONY: am__doit
3087 END
3088 # If we don't find an include directive, just comment out the code.
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3090 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3091 am__include="#"
3092 am__quote=
3093 _am_result=none
3094 # First try GNU make style include.
3095 echo "include confinc" > confmf
3096 # Ignore all kinds of additional output from 'make'.
3097 case `$am_make -s -f confmf 2> /dev/null` in #(
3098 *the\ am__doit\ target*)
3099 am__include=include
3100 am__quote=
3101 _am_result=GNU
3102 ;;
3103 esac
3104 # Now try BSD make style include.
3105 if test "$am__include" = "#"; then
3106 echo '.include "confinc"' > confmf
3107 case `$am_make -s -f confmf 2> /dev/null` in #(
3108 *the\ am__doit\ target*)
3109 am__include=.include
3110 am__quote="\""
3111 _am_result=BSD
3112 ;;
3113 esac
3114 fi
3115
3116
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3118 $as_echo "$_am_result" >&6; }
3119 rm -f confinc confmf
3120
3121 # Check whether --enable-dependency-tracking was given.
3122 if test "${enable_dependency_tracking+set}" = set; then :
3123 enableval=$enable_dependency_tracking;
3124 fi
3125
3126 if test "x$enable_dependency_tracking" != xno; then
3127 am_depcomp="$ac_aux_dir/depcomp"
3128 AMDEPBACKSLASH='\'
3129 am__nodep='_no'
3130 fi
3131 if test "x$enable_dependency_tracking" != xno; then
3132 AMDEP_TRUE=
3133 AMDEP_FALSE='#'
3134 else
3135 AMDEP_TRUE='#'
3136 AMDEP_FALSE=
3137 fi
3138
3139
3140 ac_ext=c
3141 ac_cpp='$CPP $CPPFLAGS'
3142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3145 if test -n "$ac_tool_prefix"; then
3146 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3147 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if ${ac_cv_prog_CC+:} false; then :
3151 $as_echo_n "(cached) " >&6
3152 else
3153 if test -n "$CC"; then
3154 ac_cv_prog_CC="$CC" # Let the user override the test.
3155 else
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
3158 do
3159 IFS=$as_save_IFS
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3163 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 break 2
3166 fi
3167 done
3168 done
3169 IFS=$as_save_IFS
3170
3171 fi
3172 fi
3173 CC=$ac_cv_prog_CC
3174 if test -n "$CC"; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3176 $as_echo "$CC" >&6; }
3177 else
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3180 fi
3181
3182
3183 fi
3184 if test -z "$ac_cv_prog_CC"; then
3185 ac_ct_CC=$CC
3186 # Extract the first word of "gcc", so it can be a program name with args.
3187 set dummy gcc; ac_word=$2
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189 $as_echo_n "checking for $ac_word... " >&6; }
3190 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3191 $as_echo_n "(cached) " >&6
3192 else
3193 if test -n "$ac_ct_CC"; then
3194 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3195 else
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3198 do
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_ac_ct_CC="gcc"
3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 break 2
3206 fi
3207 done
3208 done
3209 IFS=$as_save_IFS
3210
3211 fi
3212 fi
3213 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3214 if test -n "$ac_ct_CC"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3216 $as_echo "$ac_ct_CC" >&6; }
3217 else
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219 $as_echo "no" >&6; }
3220 fi
3221
3222 if test "x$ac_ct_CC" = x; then
3223 CC=""
3224 else
3225 case $cross_compiling:$ac_tool_warned in
3226 yes:)
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3229 ac_tool_warned=yes ;;
3230 esac
3231 CC=$ac_ct_CC
3232 fi
3233 else
3234 CC="$ac_cv_prog_CC"
3235 fi
3236
3237 if test -z "$CC"; then
3238 if test -n "$ac_tool_prefix"; then
3239 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3240 set dummy ${ac_tool_prefix}cc; ac_word=$2
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242 $as_echo_n "checking for $ac_word... " >&6; }
3243 if ${ac_cv_prog_CC+:} false; then :
3244 $as_echo_n "(cached) " >&6
3245 else
3246 if test -n "$CC"; then
3247 ac_cv_prog_CC="$CC" # Let the user override the test.
3248 else
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 for as_dir in $PATH
3251 do
3252 IFS=$as_save_IFS
3253 test -z "$as_dir" && as_dir=.
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3256 ac_cv_prog_CC="${ac_tool_prefix}cc"
3257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 break 2
3259 fi
3260 done
3261 done
3262 IFS=$as_save_IFS
3263
3264 fi
3265 fi
3266 CC=$ac_cv_prog_CC
3267 if test -n "$CC"; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3269 $as_echo "$CC" >&6; }
3270 else
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 fi
3274
3275
3276 fi
3277 fi
3278 if test -z "$CC"; then
3279 # Extract the first word of "cc", so it can be a program name with args.
3280 set dummy cc; ac_word=$2
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3282 $as_echo_n "checking for $ac_word... " >&6; }
3283 if ${ac_cv_prog_CC+:} false; then :
3284 $as_echo_n "(cached) " >&6
3285 else
3286 if test -n "$CC"; then
3287 ac_cv_prog_CC="$CC" # Let the user override the test.
3288 else
3289 ac_prog_rejected=no
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 for as_dir in $PATH
3292 do
3293 IFS=$as_save_IFS
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3297 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3298 ac_prog_rejected=yes
3299 continue
3300 fi
3301 ac_cv_prog_CC="cc"
3302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 break 2
3304 fi
3305 done
3306 done
3307 IFS=$as_save_IFS
3308
3309 if test $ac_prog_rejected = yes; then
3310 # We found a bogon in the path, so make sure we never use it.
3311 set dummy $ac_cv_prog_CC
3312 shift
3313 if test $# != 0; then
3314 # We chose a different compiler from the bogus one.
3315 # However, it has the same basename, so the bogon will be chosen
3316 # first if we set CC to just the basename; use the full file name.
3317 shift
3318 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3319 fi
3320 fi
3321 fi
3322 fi
3323 CC=$ac_cv_prog_CC
3324 if test -n "$CC"; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3326 $as_echo "$CC" >&6; }
3327 else
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3330 fi
3331
3332
3333 fi
3334 if test -z "$CC"; then
3335 if test -n "$ac_tool_prefix"; then
3336 for ac_prog in cl.exe
3337 do
3338 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3339 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 $as_echo_n "checking for $ac_word... " >&6; }
3342 if ${ac_cv_prog_CC+:} false; then :
3343 $as_echo_n "(cached) " >&6
3344 else
3345 if test -n "$CC"; then
3346 ac_cv_prog_CC="$CC" # Let the user override the test.
3347 else
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in $PATH
3350 do
3351 IFS=$as_save_IFS
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 break 2
3358 fi
3359 done
3360 done
3361 IFS=$as_save_IFS
3362
3363 fi
3364 fi
3365 CC=$ac_cv_prog_CC
3366 if test -n "$CC"; then
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3368 $as_echo "$CC" >&6; }
3369 else
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3372 fi
3373
3374
3375 test -n "$CC" && break
3376 done
3377 fi
3378 if test -z "$CC"; then
3379 ac_ct_CC=$CC
3380 for ac_prog in cl.exe
3381 do
3382 # Extract the first word of "$ac_prog", so it can be a program name with args.
3383 set dummy $ac_prog; ac_word=$2
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385 $as_echo_n "checking for $ac_word... " >&6; }
3386 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3387 $as_echo_n "(cached) " >&6
3388 else
3389 if test -n "$ac_ct_CC"; then
3390 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3391 else
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 for as_dir in $PATH
3394 do
3395 IFS=$as_save_IFS
3396 test -z "$as_dir" && as_dir=.
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3399 ac_cv_prog_ac_ct_CC="$ac_prog"
3400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 break 2
3402 fi
3403 done
3404 done
3405 IFS=$as_save_IFS
3406
3407 fi
3408 fi
3409 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3410 if test -n "$ac_ct_CC"; then
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3412 $as_echo "$ac_ct_CC" >&6; }
3413 else
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415 $as_echo "no" >&6; }
3416 fi
3417
3418
3419 test -n "$ac_ct_CC" && break
3420 done
3421
3422 if test "x$ac_ct_CC" = x; then
3423 CC=""
3424 else
3425 case $cross_compiling:$ac_tool_warned in
3426 yes:)
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3429 ac_tool_warned=yes ;;
3430 esac
3431 CC=$ac_ct_CC
3432 fi
3433 fi
3434
3435 fi
3436
3437
3438 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3440 as_fn_error $? "no acceptable C compiler found in \$PATH
3441 See \`config.log' for more details" "$LINENO" 5; }
3442
3443 # Provide some information about the compiler.
3444 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3445 set X $ac_compile
3446 ac_compiler=$2
3447 for ac_option in --version -v -V -qversion; do
3448 { { ac_try="$ac_compiler $ac_option >&5"
3449 case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452 esac
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3456 ac_status=$?
3457 if test -s conftest.err; then
3458 sed '10a\
3459 ... rest of stderr output deleted ...
3460 10q' conftest.err >conftest.er1
3461 cat conftest.er1 >&5
3462 fi
3463 rm -f conftest.er1 conftest.err
3464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465 test $ac_status = 0; }
3466 done
3467
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3470
3471 int
3472 main ()
3473 {
3474
3475 ;
3476 return 0;
3477 }
3478 _ACEOF
3479 ac_clean_files_save=$ac_clean_files
3480 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3481 # Try to create an executable without -o first, disregard a.out.
3482 # It will help us diagnose broken compilers, and finding out an intuition
3483 # of exeext.
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3485 $as_echo_n "checking whether the C compiler works... " >&6; }
3486 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3487
3488 # The possible output files:
3489 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3490
3491 ac_rmfiles=
3492 for ac_file in $ac_files
3493 do
3494 case $ac_file in
3495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3496 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3497 esac
3498 done
3499 rm -f $ac_rmfiles
3500
3501 if { { ac_try="$ac_link_default"
3502 case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505 esac
3506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507 $as_echo "$ac_try_echo"; } >&5
3508 (eval "$ac_link_default") 2>&5
3509 ac_status=$?
3510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511 test $ac_status = 0; }; then :
3512 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3513 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3514 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3515 # so that the user can short-circuit this test for compilers unknown to
3516 # Autoconf.
3517 for ac_file in $ac_files ''
3518 do
3519 test -f "$ac_file" || continue
3520 case $ac_file in
3521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3522 ;;
3523 [ab].out )
3524 # We found the default executable, but exeext='' is most
3525 # certainly right.
3526 break;;
3527 *.* )
3528 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3529 then :; else
3530 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3531 fi
3532 # We set ac_cv_exeext here because the later test for it is not
3533 # safe: cross compilers may not add the suffix if given an `-o'
3534 # argument, so we may need to know it at that point already.
3535 # Even if this section looks crufty: it has the advantage of
3536 # actually working.
3537 break;;
3538 * )
3539 break;;
3540 esac
3541 done
3542 test "$ac_cv_exeext" = no && ac_cv_exeext=
3543
3544 else
3545 ac_file=''
3546 fi
3547 if test -z "$ac_file"; then :
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549 $as_echo "no" >&6; }
3550 $as_echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3552
3553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555 as_fn_error 77 "C compiler cannot create executables
3556 See \`config.log' for more details" "$LINENO" 5; }
3557 else
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3559 $as_echo "yes" >&6; }
3560 fi
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3562 $as_echo_n "checking for C compiler default output file name... " >&6; }
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3564 $as_echo "$ac_file" >&6; }
3565 ac_exeext=$ac_cv_exeext
3566
3567 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3568 ac_clean_files=$ac_clean_files_save
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3570 $as_echo_n "checking for suffix of executables... " >&6; }
3571 if { { ac_try="$ac_link"
3572 case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3575 esac
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578 (eval "$ac_link") 2>&5
3579 ac_status=$?
3580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581 test $ac_status = 0; }; then :
3582 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3583 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3584 # work properly (i.e., refer to `conftest.exe'), while it won't with
3585 # `rm'.
3586 for ac_file in conftest.exe conftest conftest.*; do
3587 test -f "$ac_file" || continue
3588 case $ac_file in
3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3590 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3591 break;;
3592 * ) break;;
3593 esac
3594 done
3595 else
3596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3598 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3599 See \`config.log' for more details" "$LINENO" 5; }
3600 fi
3601 rm -f conftest conftest$ac_cv_exeext
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3603 $as_echo "$ac_cv_exeext" >&6; }
3604
3605 rm -f conftest.$ac_ext
3606 EXEEXT=$ac_cv_exeext
3607 ac_exeext=$EXEEXT
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3610 #include <stdio.h>
3611 int
3612 main ()
3613 {
3614 FILE *f = fopen ("conftest.out", "w");
3615 return ferror (f) || fclose (f) != 0;
3616
3617 ;
3618 return 0;
3619 }
3620 _ACEOF
3621 ac_clean_files="$ac_clean_files conftest.out"
3622 # Check that the compiler produces executables we can run. If not, either
3623 # the compiler is broken, or we cross compile.
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3625 $as_echo_n "checking whether we are cross compiling... " >&6; }
3626 if test "$cross_compiling" != yes; then
3627 { { ac_try="$ac_link"
3628 case "(($ac_try" in
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3631 esac
3632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3633 $as_echo "$ac_try_echo"; } >&5
3634 (eval "$ac_link") 2>&5
3635 ac_status=$?
3636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3637 test $ac_status = 0; }
3638 if { ac_try='./conftest$ac_cv_exeext'
3639 { { case "(($ac_try" in
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3642 esac
3643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644 $as_echo "$ac_try_echo"; } >&5
3645 (eval "$ac_try") 2>&5
3646 ac_status=$?
3647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3648 test $ac_status = 0; }; }; then
3649 cross_compiling=no
3650 else
3651 if test "$cross_compiling" = maybe; then
3652 cross_compiling=yes
3653 else
3654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656 as_fn_error $? "cannot run C compiled programs.
3657 If you meant to cross compile, use \`--host'.
3658 See \`config.log' for more details" "$LINENO" 5; }
3659 fi
3660 fi
3661 fi
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3663 $as_echo "$cross_compiling" >&6; }
3664
3665 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3666 ac_clean_files=$ac_clean_files_save
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3668 $as_echo_n "checking for suffix of object files... " >&6; }
3669 if ${ac_cv_objext+:} false; then :
3670 $as_echo_n "(cached) " >&6
3671 else
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3674
3675 int
3676 main ()
3677 {
3678
3679 ;
3680 return 0;
3681 }
3682 _ACEOF
3683 rm -f conftest.o conftest.obj
3684 if { { ac_try="$ac_compile"
3685 case "(($ac_try" in
3686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687 *) ac_try_echo=$ac_try;;
3688 esac
3689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690 $as_echo "$ac_try_echo"; } >&5
3691 (eval "$ac_compile") 2>&5
3692 ac_status=$?
3693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694 test $ac_status = 0; }; then :
3695 for ac_file in conftest.o conftest.obj conftest.*; do
3696 test -f "$ac_file" || continue;
3697 case $ac_file in
3698 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3699 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3700 break;;
3701 esac
3702 done
3703 else
3704 $as_echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3706
3707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3709 as_fn_error $? "cannot compute suffix of object files: cannot compile
3710 See \`config.log' for more details" "$LINENO" 5; }
3711 fi
3712 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3713 fi
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3715 $as_echo "$ac_cv_objext" >&6; }
3716 OBJEXT=$ac_cv_objext
3717 ac_objext=$OBJEXT
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3719 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3720 if ${ac_cv_c_compiler_gnu+:} false; then :
3721 $as_echo_n "(cached) " >&6
3722 else
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3725
3726 int
3727 main ()
3728 {
3729 #ifndef __GNUC__
3730 choke me
3731 #endif
3732
3733 ;
3734 return 0;
3735 }
3736 _ACEOF
3737 if ac_fn_c_try_compile "$LINENO"; then :
3738 ac_compiler_gnu=yes
3739 else
3740 ac_compiler_gnu=no
3741 fi
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3744
3745 fi
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3747 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3748 if test $ac_compiler_gnu = yes; then
3749 GCC=yes
3750 else
3751 GCC=
3752 fi
3753 ac_test_CFLAGS=${CFLAGS+set}
3754 ac_save_CFLAGS=$CFLAGS
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3756 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3757 if ${ac_cv_prog_cc_g+:} false; then :
3758 $as_echo_n "(cached) " >&6
3759 else
3760 ac_save_c_werror_flag=$ac_c_werror_flag
3761 ac_c_werror_flag=yes
3762 ac_cv_prog_cc_g=no
3763 CFLAGS="-g"
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3766
3767 int
3768 main ()
3769 {
3770
3771 ;
3772 return 0;
3773 }
3774 _ACEOF
3775 if ac_fn_c_try_compile "$LINENO"; then :
3776 ac_cv_prog_cc_g=yes
3777 else
3778 CFLAGS=""
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3781
3782 int
3783 main ()
3784 {
3785
3786 ;
3787 return 0;
3788 }
3789 _ACEOF
3790 if ac_fn_c_try_compile "$LINENO"; then :
3791
3792 else
3793 ac_c_werror_flag=$ac_save_c_werror_flag
3794 CFLAGS="-g"
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3797
3798 int
3799 main ()
3800 {
3801
3802 ;
3803 return 0;
3804 }
3805 _ACEOF
3806 if ac_fn_c_try_compile "$LINENO"; then :
3807 ac_cv_prog_cc_g=yes
3808 fi
3809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 fi
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 fi
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 ac_c_werror_flag=$ac_save_c_werror_flag
3815 fi
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3817 $as_echo "$ac_cv_prog_cc_g" >&6; }
3818 if test "$ac_test_CFLAGS" = set; then
3819 CFLAGS=$ac_save_CFLAGS
3820 elif test $ac_cv_prog_cc_g = yes; then
3821 if test "$GCC" = yes; then
3822 CFLAGS="-g -O2"
3823 else
3824 CFLAGS="-g"
3825 fi
3826 else
3827 if test "$GCC" = yes; then
3828 CFLAGS="-O2"
3829 else
3830 CFLAGS=
3831 fi
3832 fi
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3834 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3835 if ${ac_cv_prog_cc_c89+:} false; then :
3836 $as_echo_n "(cached) " >&6
3837 else
3838 ac_cv_prog_cc_c89=no
3839 ac_save_CC=$CC
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842 #include <stdarg.h>
3843 #include <stdio.h>
3844 struct stat;
3845 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3846 struct buf { int x; };
3847 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3848 static char *e (p, i)
3849 char **p;
3850 int i;
3851 {
3852 return p[i];
3853 }
3854 static char *f (char * (*g) (char **, int), char **p, ...)
3855 {
3856 char *s;
3857 va_list v;
3858 va_start (v,p);
3859 s = g (p, va_arg (v,int));
3860 va_end (v);
3861 return s;
3862 }
3863
3864 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3865 function prototypes and stuff, but not '\xHH' hex character constants.
3866 These don't provoke an error unfortunately, instead are silently treated
3867 as 'x'. The following induces an error, until -std is added to get
3868 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3869 array size at least. It's necessary to write '\x00'==0 to get something
3870 that's true only with -std. */
3871 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3872
3873 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3874 inside strings and character constants. */
3875 #define FOO(x) 'x'
3876 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3877
3878 int test (int i, double x);
3879 struct s1 {int (*f) (int a);};
3880 struct s2 {int (*f) (double a);};
3881 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3882 int argc;
3883 char **argv;
3884 int
3885 main ()
3886 {
3887 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3888 ;
3889 return 0;
3890 }
3891 _ACEOF
3892 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3893 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3894 do
3895 CC="$ac_save_CC $ac_arg"
3896 if ac_fn_c_try_compile "$LINENO"; then :
3897 ac_cv_prog_cc_c89=$ac_arg
3898 fi
3899 rm -f core conftest.err conftest.$ac_objext
3900 test "x$ac_cv_prog_cc_c89" != "xno" && break
3901 done
3902 rm -f conftest.$ac_ext
3903 CC=$ac_save_CC
3904
3905 fi
3906 # AC_CACHE_VAL
3907 case "x$ac_cv_prog_cc_c89" in
3908 x)
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3910 $as_echo "none needed" >&6; } ;;
3911 xno)
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3913 $as_echo "unsupported" >&6; } ;;
3914 *)
3915 CC="$CC $ac_cv_prog_cc_c89"
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3917 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3918 esac
3919 if test "x$ac_cv_prog_cc_c89" != xno; then :
3920
3921 fi
3922
3923 ac_ext=c
3924 ac_cpp='$CPP $CPPFLAGS'
3925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3928
3929 ac_ext=c
3930 ac_cpp='$CPP $CPPFLAGS'
3931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3935 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3936 if ${am_cv_prog_cc_c_o+:} false; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3941
3942 int
3943 main ()
3944 {
3945
3946 ;
3947 return 0;
3948 }
3949 _ACEOF
3950 # Make sure it works both with $CC and with simple cc.
3951 # Following AC_PROG_CC_C_O, we do the test twice because some
3952 # compilers refuse to overwrite an existing .o file with -o,
3953 # though they will create one.
3954 am_cv_prog_cc_c_o=yes
3955 for am_i in 1 2; do
3956 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3957 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } \
3961 && test -f conftest2.$ac_objext; then
3962 : OK
3963 else
3964 am_cv_prog_cc_c_o=no
3965 break
3966 fi
3967 done
3968 rm -f core conftest*
3969 unset am_i
3970 fi
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3972 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3973 if test "$am_cv_prog_cc_c_o" != yes; then
3974 # Losing compiler, so override with the script.
3975 # FIXME: It is wrong to rewrite CC.
3976 # But if we don't then we get into trouble of one sort or another.
3977 # A longer-term fix would be to have automake use am__CC in this case,
3978 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3979 CC="$am_aux_dir/compile $CC"
3980 fi
3981 ac_ext=c
3982 ac_cpp='$CPP $CPPFLAGS'
3983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986
3987
3988 depcc="$CC" am_compiler_list=
3989
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3991 $as_echo_n "checking dependency style of $depcc... " >&6; }
3992 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3993 $as_echo_n "(cached) " >&6
3994 else
3995 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3996 # We make a subdir and do the tests there. Otherwise we can end up
3997 # making bogus files that we don't know about and never remove. For
3998 # instance it was reported that on HP-UX the gcc test will end up
3999 # making a dummy file named 'D' -- because '-MD' means "put the output
4000 # in D".
4001 rm -rf conftest.dir
4002 mkdir conftest.dir
4003 # Copy depcomp to subdir because otherwise we won't find it if we're
4004 # using a relative directory.
4005 cp "$am_depcomp" conftest.dir
4006 cd conftest.dir
4007 # We will build objects and dependencies in a subdirectory because
4008 # it helps to detect inapplicable dependency modes. For instance
4009 # both Tru64's cc and ICC support -MD to output dependencies as a
4010 # side effect of compilation, but ICC will put the dependencies in
4011 # the current directory while Tru64 will put them in the object
4012 # directory.
4013 mkdir sub
4014
4015 am_cv_CC_dependencies_compiler_type=none
4016 if test "$am_compiler_list" = ""; then
4017 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4018 fi
4019 am__universal=false
4020 case " $depcc " in #(
4021 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4022 esac
4023
4024 for depmode in $am_compiler_list; do
4025 # Setup a source with many dependencies, because some compilers
4026 # like to wrap large dependency lists on column 80 (with \), and
4027 # we should not choose a depcomp mode which is confused by this.
4028 #
4029 # We need to recreate these files for each test, as the compiler may
4030 # overwrite some of them when testing with obscure command lines.
4031 # This happens at least with the AIX C compiler.
4032 : > sub/conftest.c
4033 for i in 1 2 3 4 5 6; do
4034 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4035 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4036 # Solaris 10 /bin/sh.
4037 echo '/* dummy */' > sub/conftst$i.h
4038 done
4039 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4040
4041 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4042 # mode. It turns out that the SunPro C++ compiler does not properly
4043 # handle '-M -o', and we need to detect this. Also, some Intel
4044 # versions had trouble with output in subdirs.
4045 am__obj=sub/conftest.${OBJEXT-o}
4046 am__minus_obj="-o $am__obj"
4047 case $depmode in
4048 gcc)
4049 # This depmode causes a compiler race in universal mode.
4050 test "$am__universal" = false || continue
4051 ;;
4052 nosideeffect)
4053 # After this tag, mechanisms are not by side-effect, so they'll
4054 # only be used when explicitly requested.
4055 if test "x$enable_dependency_tracking" = xyes; then
4056 continue
4057 else
4058 break
4059 fi
4060 ;;
4061 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4062 # This compiler won't grok '-c -o', but also, the minuso test has
4063 # not run yet. These depmodes are late enough in the game, and
4064 # so weak that their functioning should not be impacted.
4065 am__obj=conftest.${OBJEXT-o}
4066 am__minus_obj=
4067 ;;
4068 none) break ;;
4069 esac
4070 if depmode=$depmode \
4071 source=sub/conftest.c object=$am__obj \
4072 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4073 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4074 >/dev/null 2>conftest.err &&
4075 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4076 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4077 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4078 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4079 # icc doesn't choke on unknown options, it will just issue warnings
4080 # or remarks (even with -Werror). So we grep stderr for any message
4081 # that says an option was ignored or not supported.
4082 # When given -MP, icc 7.0 and 7.1 complain thusly:
4083 # icc: Command line warning: ignoring option '-M'; no argument required
4084 # The diagnosis changed in icc 8.0:
4085 # icc: Command line remark: option '-MP' not supported
4086 if (grep 'ignoring option' conftest.err ||
4087 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4088 am_cv_CC_dependencies_compiler_type=$depmode
4089 break
4090 fi
4091 fi
4092 done
4093
4094 cd ..
4095 rm -rf conftest.dir
4096 else
4097 am_cv_CC_dependencies_compiler_type=none
4098 fi
4099
4100 fi
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4102 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4103 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4104
4105 if
4106 test "x$enable_dependency_tracking" != xno \
4107 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4108 am__fastdepCC_TRUE=
4109 am__fastdepCC_FALSE='#'
4110 else
4111 am__fastdepCC_TRUE='#'
4112 am__fastdepCC_FALSE=
4113 fi
4114
4115
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4117 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4118 if ${ac_cv_path_SED+:} false; then :
4119 $as_echo_n "(cached) " >&6
4120 else
4121 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4122 for ac_i in 1 2 3 4 5 6 7; do
4123 ac_script="$ac_script$as_nl$ac_script"
4124 done
4125 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4126 { ac_script=; unset ac_script;}
4127 if test -z "$SED"; then
4128 ac_path_SED_found=false
4129 # Loop through the user's path and test for each of PROGNAME-LIST
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH
4132 do
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
4135 for ac_prog in sed gsed; do
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4138 as_fn_executable_p "$ac_path_SED" || continue
4139 # Check for GNU ac_path_SED and select it if it is found.
4140 # Check for GNU $ac_path_SED
4141 case `"$ac_path_SED" --version 2>&1` in
4142 *GNU*)
4143 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4144 *)
4145 ac_count=0
4146 $as_echo_n 0123456789 >"conftest.in"
4147 while :
4148 do
4149 cat "conftest.in" "conftest.in" >"conftest.tmp"
4150 mv "conftest.tmp" "conftest.in"
4151 cp "conftest.in" "conftest.nl"
4152 $as_echo '' >> "conftest.nl"
4153 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4155 as_fn_arith $ac_count + 1 && ac_count=$as_val
4156 if test $ac_count -gt ${ac_path_SED_max-0}; then
4157 # Best one so far, save it but keep looking for a better one
4158 ac_cv_path_SED="$ac_path_SED"
4159 ac_path_SED_max=$ac_count
4160 fi
4161 # 10*(2^10) chars as input seems more than enough
4162 test $ac_count -gt 10 && break
4163 done
4164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4165 esac
4166
4167 $ac_path_SED_found && break 3
4168 done
4169 done
4170 done
4171 IFS=$as_save_IFS
4172 if test -z "$ac_cv_path_SED"; then
4173 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4174 fi
4175 else
4176 ac_cv_path_SED=$SED
4177 fi
4178
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4181 $as_echo "$ac_cv_path_SED" >&6; }
4182 SED="$ac_cv_path_SED"
4183 rm -f conftest.sed
4184
4185 test -z "$SED" && SED=sed
4186 Xsed="$SED -e 1s/^X//"
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4199 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4200 if ${ac_cv_path_GREP+:} false; then :
4201 $as_echo_n "(cached) " >&6
4202 else
4203 if test -z "$GREP"; then
4204 ac_path_GREP_found=false
4205 # Loop through the user's path and test for each of PROGNAME-LIST
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4208 do
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
4211 for ac_prog in grep ggrep; do
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4214 as_fn_executable_p "$ac_path_GREP" || continue
4215 # Check for GNU ac_path_GREP and select it if it is found.
4216 # Check for GNU $ac_path_GREP
4217 case `"$ac_path_GREP" --version 2>&1` in
4218 *GNU*)
4219 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4220 *)
4221 ac_count=0
4222 $as_echo_n 0123456789 >"conftest.in"
4223 while :
4224 do
4225 cat "conftest.in" "conftest.in" >"conftest.tmp"
4226 mv "conftest.tmp" "conftest.in"
4227 cp "conftest.in" "conftest.nl"
4228 $as_echo 'GREP' >> "conftest.nl"
4229 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4230 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4231 as_fn_arith $ac_count + 1 && ac_count=$as_val
4232 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4233 # Best one so far, save it but keep looking for a better one
4234 ac_cv_path_GREP="$ac_path_GREP"
4235 ac_path_GREP_max=$ac_count
4236 fi
4237 # 10*(2^10) chars as input seems more than enough
4238 test $ac_count -gt 10 && break
4239 done
4240 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4241 esac
4242
4243 $ac_path_GREP_found && break 3
4244 done
4245 done
4246 done
4247 IFS=$as_save_IFS
4248 if test -z "$ac_cv_path_GREP"; then
4249 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4250 fi
4251 else
4252 ac_cv_path_GREP=$GREP
4253 fi
4254
4255 fi
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4257 $as_echo "$ac_cv_path_GREP" >&6; }
4258 GREP="$ac_cv_path_GREP"
4259
4260
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4262 $as_echo_n "checking for egrep... " >&6; }
4263 if ${ac_cv_path_EGREP+:} false; then :
4264 $as_echo_n "(cached) " >&6
4265 else
4266 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4267 then ac_cv_path_EGREP="$GREP -E"
4268 else
4269 if test -z "$EGREP"; then
4270 ac_path_EGREP_found=false
4271 # Loop through the user's path and test for each of PROGNAME-LIST
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4274 do
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_prog in egrep; do
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4280 as_fn_executable_p "$ac_path_EGREP" || continue
4281 # Check for GNU ac_path_EGREP and select it if it is found.
4282 # Check for GNU $ac_path_EGREP
4283 case `"$ac_path_EGREP" --version 2>&1` in
4284 *GNU*)
4285 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4286 *)
4287 ac_count=0
4288 $as_echo_n 0123456789 >"conftest.in"
4289 while :
4290 do
4291 cat "conftest.in" "conftest.in" >"conftest.tmp"
4292 mv "conftest.tmp" "conftest.in"
4293 cp "conftest.in" "conftest.nl"
4294 $as_echo 'EGREP' >> "conftest.nl"
4295 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4297 as_fn_arith $ac_count + 1 && ac_count=$as_val
4298 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4299 # Best one so far, save it but keep looking for a better one
4300 ac_cv_path_EGREP="$ac_path_EGREP"
4301 ac_path_EGREP_max=$ac_count
4302 fi
4303 # 10*(2^10) chars as input seems more than enough
4304 test $ac_count -gt 10 && break
4305 done
4306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4307 esac
4308
4309 $ac_path_EGREP_found && break 3
4310 done
4311 done
4312 done
4313 IFS=$as_save_IFS
4314 if test -z "$ac_cv_path_EGREP"; then
4315 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4316 fi
4317 else
4318 ac_cv_path_EGREP=$EGREP
4319 fi
4320
4321 fi
4322 fi
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4324 $as_echo "$ac_cv_path_EGREP" >&6; }
4325 EGREP="$ac_cv_path_EGREP"
4326
4327
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4329 $as_echo_n "checking for fgrep... " >&6; }
4330 if ${ac_cv_path_FGREP+:} false; then :
4331 $as_echo_n "(cached) " >&6
4332 else
4333 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4334 then ac_cv_path_FGREP="$GREP -F"
4335 else
4336 if test -z "$FGREP"; then
4337 ac_path_FGREP_found=false
4338 # Loop through the user's path and test for each of PROGNAME-LIST
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4341 do
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_prog in fgrep; do
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4347 as_fn_executable_p "$ac_path_FGREP" || continue
4348 # Check for GNU ac_path_FGREP and select it if it is found.
4349 # Check for GNU $ac_path_FGREP
4350 case `"$ac_path_FGREP" --version 2>&1` in
4351 *GNU*)
4352 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4353 *)
4354 ac_count=0
4355 $as_echo_n 0123456789 >"conftest.in"
4356 while :
4357 do
4358 cat "conftest.in" "conftest.in" >"conftest.tmp"
4359 mv "conftest.tmp" "conftest.in"
4360 cp "conftest.in" "conftest.nl"
4361 $as_echo 'FGREP' >> "conftest.nl"
4362 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4364 as_fn_arith $ac_count + 1 && ac_count=$as_val
4365 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4366 # Best one so far, save it but keep looking for a better one
4367 ac_cv_path_FGREP="$ac_path_FGREP"
4368 ac_path_FGREP_max=$ac_count
4369 fi
4370 # 10*(2^10) chars as input seems more than enough
4371 test $ac_count -gt 10 && break
4372 done
4373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4374 esac
4375
4376 $ac_path_FGREP_found && break 3
4377 done
4378 done
4379 done
4380 IFS=$as_save_IFS
4381 if test -z "$ac_cv_path_FGREP"; then
4382 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4383 fi
4384 else
4385 ac_cv_path_FGREP=$FGREP
4386 fi
4387
4388 fi
4389 fi
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4391 $as_echo "$ac_cv_path_FGREP" >&6; }
4392 FGREP="$ac_cv_path_FGREP"
4393
4394
4395 test -z "$GREP" && GREP=grep
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415 # Check whether --with-gnu-ld was given.
4416 if test "${with_gnu_ld+set}" = set; then :
4417 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4418 else
4419 with_gnu_ld=no
4420 fi
4421
4422 ac_prog=ld
4423 if test yes = "$GCC"; then
4424 # Check if gcc -print-prog-name=ld gives a path.
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4426 $as_echo_n "checking for ld used by $CC... " >&6; }
4427 case $host in
4428 *-*-mingw*)
4429 # gcc leaves a trailing carriage return, which upsets mingw
4430 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4431 *)
4432 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4433 esac
4434 case $ac_prog in
4435 # Accept absolute paths.
4436 [\\/]* | ?:[\\/]*)
4437 re_direlt='/[^/][^/]*/\.\./'
4438 # Canonicalize the pathname of ld
4439 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4440 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4441 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4442 done
4443 test -z "$LD" && LD=$ac_prog
4444 ;;
4445 "")
4446 # If it fails, then pretend we aren't using GCC.
4447 ac_prog=ld
4448 ;;
4449 *)
4450 # If it is relative, then search for the first ld in PATH.
4451 with_gnu_ld=unknown
4452 ;;
4453 esac
4454 elif test yes = "$with_gnu_ld"; then
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4456 $as_echo_n "checking for GNU ld... " >&6; }
4457 else
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4459 $as_echo_n "checking for non-GNU ld... " >&6; }
4460 fi
4461 if ${lt_cv_path_LD+:} false; then :
4462 $as_echo_n "(cached) " >&6
4463 else
4464 if test -z "$LD"; then
4465 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4466 for ac_dir in $PATH; do
4467 IFS=$lt_save_ifs
4468 test -z "$ac_dir" && ac_dir=.
4469 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4470 lt_cv_path_LD=$ac_dir/$ac_prog
4471 # Check to see if the program is GNU ld. I'd rather use --version,
4472 # but apparently some variants of GNU ld only accept -v.
4473 # Break only if it was the GNU/non-GNU ld that we prefer.
4474 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4475 *GNU* | *'with BFD'*)
4476 test no != "$with_gnu_ld" && break
4477 ;;
4478 *)
4479 test yes != "$with_gnu_ld" && break
4480 ;;
4481 esac
4482 fi
4483 done
4484 IFS=$lt_save_ifs
4485 else
4486 lt_cv_path_LD=$LD # Let the user override the test with a path.
4487 fi
4488 fi
4489
4490 LD=$lt_cv_path_LD
4491 if test -n "$LD"; then
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4493 $as_echo "$LD" >&6; }
4494 else
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496 $as_echo "no" >&6; }
4497 fi
4498 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4500 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4501 if ${lt_cv_prog_gnu_ld+:} false; then :
4502 $as_echo_n "(cached) " >&6
4503 else
4504 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4505 case `$LD -v 2>&1 </dev/null` in
4506 *GNU* | *'with BFD'*)
4507 lt_cv_prog_gnu_ld=yes
4508 ;;
4509 *)
4510 lt_cv_prog_gnu_ld=no
4511 ;;
4512 esac
4513 fi
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4515 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4516 with_gnu_ld=$lt_cv_prog_gnu_ld
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4527 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4528 if ${lt_cv_path_NM+:} false; then :
4529 $as_echo_n "(cached) " >&6
4530 else
4531 if test -n "$NM"; then
4532 # Let the user override the test.
4533 lt_cv_path_NM=$NM
4534 else
4535 lt_nm_to_check=${ac_tool_prefix}nm
4536 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4537 lt_nm_to_check="$lt_nm_to_check nm"
4538 fi
4539 for lt_tmp_nm in $lt_nm_to_check; do
4540 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4541 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4542 IFS=$lt_save_ifs
4543 test -z "$ac_dir" && ac_dir=.
4544 tmp_nm=$ac_dir/$lt_tmp_nm
4545 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4546 # Check to see if the nm accepts a BSD-compat flag.
4547 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4548 # nm: unknown option "B" ignored
4549 # Tru64's nm complains that /dev/null is an invalid object file
4550 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4551 case $build_os in
4552 mingw*) lt_bad_file=conftest.nm/nofile ;;
4553 *) lt_bad_file=/dev/null ;;
4554 esac
4555 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4556 *$lt_bad_file* | *'Invalid file or object type'*)
4557 lt_cv_path_NM="$tmp_nm -B"
4558 break 2
4559 ;;
4560 *)
4561 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4562 */dev/null*)
4563 lt_cv_path_NM="$tmp_nm -p"
4564 break 2
4565 ;;
4566 *)
4567 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4568 continue # so that we can try to find one that supports BSD flags
4569 ;;
4570 esac
4571 ;;
4572 esac
4573 fi
4574 done
4575 IFS=$lt_save_ifs
4576 done
4577 : ${lt_cv_path_NM=no}
4578 fi
4579 fi
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4581 $as_echo "$lt_cv_path_NM" >&6; }
4582 if test no != "$lt_cv_path_NM"; then
4583 NM=$lt_cv_path_NM
4584 else
4585 # Didn't find any BSD compatible name lister, look for dumpbin.
4586 if test -n "$DUMPBIN"; then :
4587 # Let the user override the test.
4588 else
4589 if test -n "$ac_tool_prefix"; then
4590 for ac_prog in dumpbin "link -dump"
4591 do
4592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4593 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595 $as_echo_n "checking for $ac_word... " >&6; }
4596 if ${ac_cv_prog_DUMPBIN+:} false; then :
4597 $as_echo_n "(cached) " >&6
4598 else
4599 if test -n "$DUMPBIN"; then
4600 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4601 else
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4604 do
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4609 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 break 2
4612 fi
4613 done
4614 done
4615 IFS=$as_save_IFS
4616
4617 fi
4618 fi
4619 DUMPBIN=$ac_cv_prog_DUMPBIN
4620 if test -n "$DUMPBIN"; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4622 $as_echo "$DUMPBIN" >&6; }
4623 else
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4626 fi
4627
4628
4629 test -n "$DUMPBIN" && break
4630 done
4631 fi
4632 if test -z "$DUMPBIN"; then
4633 ac_ct_DUMPBIN=$DUMPBIN
4634 for ac_prog in dumpbin "link -dump"
4635 do
4636 # Extract the first word of "$ac_prog", so it can be a program name with args.
4637 set dummy $ac_prog; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4641 $as_echo_n "(cached) " >&6
4642 else
4643 if test -n "$ac_ct_DUMPBIN"; then
4644 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4648 do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 break 2
4656 fi
4657 done
4658 done
4659 IFS=$as_save_IFS
4660
4661 fi
4662 fi
4663 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4664 if test -n "$ac_ct_DUMPBIN"; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4666 $as_echo "$ac_ct_DUMPBIN" >&6; }
4667 else
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4670 fi
4671
4672
4673 test -n "$ac_ct_DUMPBIN" && break
4674 done
4675
4676 if test "x$ac_ct_DUMPBIN" = x; then
4677 DUMPBIN=":"
4678 else
4679 case $cross_compiling:$ac_tool_warned in
4680 yes:)
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4683 ac_tool_warned=yes ;;
4684 esac
4685 DUMPBIN=$ac_ct_DUMPBIN
4686 fi
4687 fi
4688
4689 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4690 *COFF*)
4691 DUMPBIN="$DUMPBIN -symbols -headers"
4692 ;;
4693 *)
4694 DUMPBIN=:
4695 ;;
4696 esac
4697 fi
4698
4699 if test : != "$DUMPBIN"; then
4700 NM=$DUMPBIN
4701 fi
4702 fi
4703 test -z "$NM" && NM=nm
4704
4705
4706
4707
4708
4709
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4711 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4712 if ${lt_cv_nm_interface+:} false; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4715 lt_cv_nm_interface="BSD nm"
4716 echo "int some_variable = 0;" > conftest.$ac_ext
4717 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4718 (eval "$ac_compile" 2>conftest.err)
4719 cat conftest.err >&5
4720 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4721 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4722 cat conftest.err >&5
4723 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4724 cat conftest.out >&5
4725 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4726 lt_cv_nm_interface="MS dumpbin"
4727 fi
4728 rm -f conftest*
4729 fi
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4731 $as_echo "$lt_cv_nm_interface" >&6; }
4732
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4734 $as_echo_n "checking whether ln -s works... " >&6; }
4735 LN_S=$as_ln_s
4736 if test "$LN_S" = "ln -s"; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4738 $as_echo "yes" >&6; }
4739 else
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4741 $as_echo "no, using $LN_S" >&6; }
4742 fi
4743
4744 # find the maximum length of command line arguments
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4746 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4747 if ${lt_cv_sys_max_cmd_len+:} false; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4750 i=0
4751 teststring=ABCD
4752
4753 case $build_os in
4754 msdosdjgpp*)
4755 # On DJGPP, this test can blow up pretty badly due to problems in libc
4756 # (any single argument exceeding 2000 bytes causes a buffer overrun
4757 # during glob expansion). Even if it were fixed, the result of this
4758 # check would be larger than it should be.
4759 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4760 ;;
4761
4762 gnu*)
4763 # Under GNU Hurd, this test is not required because there is
4764 # no limit to the length of command line arguments.
4765 # Libtool will interpret -1 as no limit whatsoever
4766 lt_cv_sys_max_cmd_len=-1;
4767 ;;
4768
4769 cygwin* | mingw* | cegcc*)
4770 # On Win9x/ME, this test blows up -- it succeeds, but takes
4771 # about 5 minutes as the teststring grows exponentially.
4772 # Worse, since 9x/ME are not pre-emptively multitasking,
4773 # you end up with a "frozen" computer, even though with patience
4774 # the test eventually succeeds (with a max line length of 256k).
4775 # Instead, let's just punt: use the minimum linelength reported by
4776 # all of the supported platforms: 8192 (on NT/2K/XP).
4777 lt_cv_sys_max_cmd_len=8192;
4778 ;;
4779
4780 mint*)
4781 # On MiNT this can take a long time and run out of memory.
4782 lt_cv_sys_max_cmd_len=8192;
4783 ;;
4784
4785 amigaos*)
4786 # On AmigaOS with pdksh, this test takes hours, literally.
4787 # So we just punt and use a minimum line length of 8192.
4788 lt_cv_sys_max_cmd_len=8192;
4789 ;;
4790
4791 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4792 # This has been around since 386BSD, at least. Likely further.
4793 if test -x /sbin/sysctl; then
4794 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4795 elif test -x /usr/sbin/sysctl; then
4796 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4797 else
4798 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4799 fi
4800 # And add a safety zone
4801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4803 ;;
4804
4805 interix*)
4806 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4807 lt_cv_sys_max_cmd_len=196608
4808 ;;
4809
4810 os2*)
4811 # The test takes a long time on OS/2.
4812 lt_cv_sys_max_cmd_len=8192
4813 ;;
4814
4815 osf*)
4816 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4817 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4818 # nice to cause kernel panics so lets avoid the loop below.
4819 # First set a reasonable default.
4820 lt_cv_sys_max_cmd_len=16384
4821 #
4822 if test -x /sbin/sysconfig; then
4823 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4824 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4825 esac
4826 fi
4827 ;;
4828 sco3.2v5*)
4829 lt_cv_sys_max_cmd_len=102400
4830 ;;
4831 sysv5* | sco5v6* | sysv4.2uw2*)
4832 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4833 if test -n "$kargmax"; then
4834 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4835 else
4836 lt_cv_sys_max_cmd_len=32768
4837 fi
4838 ;;
4839 *)
4840 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4841 if test -n "$lt_cv_sys_max_cmd_len" && \
4842 test undefined != "$lt_cv_sys_max_cmd_len"; then
4843 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4845 else
4846 # Make teststring a little bigger before we do anything with it.
4847 # a 1K string should be a reasonable start.
4848 for i in 1 2 3 4 5 6 7 8; do
4849 teststring=$teststring$teststring
4850 done
4851 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4852 # If test is not a shell built-in, we'll probably end up computing a
4853 # maximum length that is only half of the actual maximum length, but
4854 # we can't tell.
4855 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4856 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4857 test 17 != "$i" # 1/2 MB should be enough
4858 do
4859 i=`expr $i + 1`
4860 teststring=$teststring$teststring
4861 done
4862 # Only check the string length outside the loop.
4863 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4864 teststring=
4865 # Add a significant safety factor because C++ compilers can tack on
4866 # massive amounts of additional arguments before passing them to the
4867 # linker. It appears as though 1/2 is a usable value.
4868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4869 fi
4870 ;;
4871 esac
4872
4873 fi
4874
4875 if test -n "$lt_cv_sys_max_cmd_len"; then
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4877 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4878 else
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4880 $as_echo "none" >&6; }
4881 fi
4882 max_cmd_len=$lt_cv_sys_max_cmd_len
4883
4884
4885
4886
4887
4888
4889 : ${CP="cp -f"}
4890 : ${MV="mv -f"}
4891 : ${RM="rm -f"}
4892
4893 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4894 lt_unset=unset
4895 else
4896 lt_unset=false
4897 fi
4898
4899
4900
4901
4902
4903 # test EBCDIC or ASCII
4904 case `echo X|tr X '\101'` in
4905 A) # ASCII based system
4906 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4907 lt_SP2NL='tr \040 \012'
4908 lt_NL2SP='tr \015\012 \040\040'
4909 ;;
4910 *) # EBCDIC based system
4911 lt_SP2NL='tr \100 \n'
4912 lt_NL2SP='tr \r\n \100\100'
4913 ;;
4914 esac
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4925 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4926 if ${lt_cv_to_host_file_cmd+:} false; then :
4927 $as_echo_n "(cached) " >&6
4928 else
4929 case $host in
4930 *-*-mingw* )
4931 case $build in
4932 *-*-mingw* ) # actually msys
4933 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4934 ;;
4935 *-*-cygwin* )
4936 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4937 ;;
4938 * ) # otherwise, assume *nix
4939 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4940 ;;
4941 esac
4942 ;;
4943 *-*-cygwin* )
4944 case $build in
4945 *-*-mingw* ) # actually msys
4946 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4947 ;;
4948 *-*-cygwin* )
4949 lt_cv_to_host_file_cmd=func_convert_file_noop
4950 ;;
4951 * ) # otherwise, assume *nix
4952 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4953 ;;
4954 esac
4955 ;;
4956 * ) # unhandled hosts (and "normal" native builds)
4957 lt_cv_to_host_file_cmd=func_convert_file_noop
4958 ;;
4959 esac
4960
4961 fi
4962
4963 to_host_file_cmd=$lt_cv_to_host_file_cmd
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4965 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4966
4967
4968
4969
4970
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4972 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4973 if ${lt_cv_to_tool_file_cmd+:} false; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 #assume ordinary cross tools, or native build.
4977 lt_cv_to_tool_file_cmd=func_convert_file_noop
4978 case $host in
4979 *-*-mingw* )
4980 case $build in
4981 *-*-mingw* ) # actually msys
4982 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4983 ;;
4984 esac
4985 ;;
4986 esac
4987
4988 fi
4989
4990 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4992 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4993
4994
4995
4996
4997
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4999 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5000 if ${lt_cv_ld_reload_flag+:} false; then :
5001 $as_echo_n "(cached) " >&6
5002 else
5003 lt_cv_ld_reload_flag='-r'
5004 fi
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5006 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5007 reload_flag=$lt_cv_ld_reload_flag
5008 case $reload_flag in
5009 "" | " "*) ;;
5010 *) reload_flag=" $reload_flag" ;;
5011 esac
5012 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5013 case $host_os in
5014 cygwin* | mingw* | pw32* | cegcc*)
5015 if test yes != "$GCC"; then
5016 reload_cmds=false
5017 fi
5018 ;;
5019 darwin*)
5020 if test yes = "$GCC"; then
5021 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5022 else
5023 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5024 fi
5025 ;;
5026 esac
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036 if test -n "$ac_tool_prefix"; then
5037 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5038 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5040 $as_echo_n "checking for $ac_word... " >&6; }
5041 if ${ac_cv_prog_OBJDUMP+:} false; then :
5042 $as_echo_n "(cached) " >&6
5043 else
5044 if test -n "$OBJDUMP"; then
5045 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5046 else
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH
5049 do
5050 IFS=$as_save_IFS
5051 test -z "$as_dir" && as_dir=.
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5054 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 break 2
5057 fi
5058 done
5059 done
5060 IFS=$as_save_IFS
5061
5062 fi
5063 fi
5064 OBJDUMP=$ac_cv_prog_OBJDUMP
5065 if test -n "$OBJDUMP"; then
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5067 $as_echo "$OBJDUMP" >&6; }
5068 else
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5070 $as_echo "no" >&6; }
5071 fi
5072
5073
5074 fi
5075 if test -z "$ac_cv_prog_OBJDUMP"; then
5076 ac_ct_OBJDUMP=$OBJDUMP
5077 # Extract the first word of "objdump", so it can be a program name with args.
5078 set dummy objdump; ac_word=$2
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5080 $as_echo_n "checking for $ac_word... " >&6; }
5081 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5082 $as_echo_n "(cached) " >&6
5083 else
5084 if test -n "$ac_ct_OBJDUMP"; then
5085 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5086 else
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH
5089 do
5090 IFS=$as_save_IFS
5091 test -z "$as_dir" && as_dir=.
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5094 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 break 2
5097 fi
5098 done
5099 done
5100 IFS=$as_save_IFS
5101
5102 fi
5103 fi
5104 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5105 if test -n "$ac_ct_OBJDUMP"; then
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5107 $as_echo "$ac_ct_OBJDUMP" >&6; }
5108 else
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110 $as_echo "no" >&6; }
5111 fi
5112
5113 if test "x$ac_ct_OBJDUMP" = x; then
5114 OBJDUMP="false"
5115 else
5116 case $cross_compiling:$ac_tool_warned in
5117 yes:)
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5120 ac_tool_warned=yes ;;
5121 esac
5122 OBJDUMP=$ac_ct_OBJDUMP
5123 fi
5124 else
5125 OBJDUMP="$ac_cv_prog_OBJDUMP"
5126 fi
5127
5128 test -z "$OBJDUMP" && OBJDUMP=objdump
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5139 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5140 if ${lt_cv_deplibs_check_method+:} false; then :
5141 $as_echo_n "(cached) " >&6
5142 else
5143 lt_cv_file_magic_cmd='$MAGIC_CMD'
5144 lt_cv_file_magic_test_file=
5145 lt_cv_deplibs_check_method='unknown'
5146 # Need to set the preceding variable on all platforms that support
5147 # interlibrary dependencies.
5148 # 'none' -- dependencies not supported.
5149 # 'unknown' -- same as none, but documents that we really don't know.
5150 # 'pass_all' -- all dependencies passed with no checks.
5151 # 'test_compile' -- check by making test program.
5152 # 'file_magic [[regex]]' -- check by looking for files in library path
5153 # that responds to the $file_magic_cmd with a given extended regex.
5154 # If you have 'file' or equivalent on your system and you're not sure
5155 # whether 'pass_all' will *always* work, you probably want this one.
5156
5157 case $host_os in
5158 aix[4-9]*)
5159 lt_cv_deplibs_check_method=pass_all
5160 ;;
5161
5162 beos*)
5163 lt_cv_deplibs_check_method=pass_all
5164 ;;
5165
5166 bsdi[45]*)
5167 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5168 lt_cv_file_magic_cmd='/usr/bin/file -L'
5169 lt_cv_file_magic_test_file=/shlib/libc.so
5170 ;;
5171
5172 cygwin*)
5173 # func_win32_libid is a shell function defined in ltmain.sh
5174 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5175 lt_cv_file_magic_cmd='func_win32_libid'
5176 ;;
5177
5178 mingw* | pw32*)
5179 # Base MSYS/MinGW do not provide the 'file' command needed by
5180 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5181 # unless we find 'file', for example because we are cross-compiling.
5182 if ( file / ) >/dev/null 2>&1; then
5183 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5184 lt_cv_file_magic_cmd='func_win32_libid'
5185 else
5186 # Keep this pattern in sync with the one in func_win32_libid.
5187 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5188 lt_cv_file_magic_cmd='$OBJDUMP -f'
5189 fi
5190 ;;
5191
5192 cegcc*)
5193 # use the weaker test based on 'objdump'. See mingw*.
5194 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5195 lt_cv_file_magic_cmd='$OBJDUMP -f'
5196 ;;
5197
5198 darwin* | rhapsody*)
5199 lt_cv_deplibs_check_method=pass_all
5200 ;;
5201
5202 freebsd* | dragonfly*)
5203 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5204 case $host_cpu in
5205 i*86 )
5206 # Not sure whether the presence of OpenBSD here was a mistake.
5207 # Let's accept both of them until this is cleared up.
5208 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5209 lt_cv_file_magic_cmd=/usr/bin/file
5210 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5211 ;;
5212 esac
5213 else
5214 lt_cv_deplibs_check_method=pass_all
5215 fi
5216 ;;
5217
5218 haiku*)
5219 lt_cv_deplibs_check_method=pass_all
5220 ;;
5221
5222 hpux10.20* | hpux11*)
5223 lt_cv_file_magic_cmd=/usr/bin/file
5224 case $host_cpu in
5225 ia64*)
5226 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5227 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5228 ;;
5229 hppa*64*)
5230 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5231 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5232 ;;
5233 *)
5234 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5235 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5236 ;;
5237 esac
5238 ;;
5239
5240 interix[3-9]*)
5241 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5242 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5243 ;;
5244
5245 irix5* | irix6* | nonstopux*)
5246 case $LD in
5247 *-32|*"-32 ") libmagic=32-bit;;
5248 *-n32|*"-n32 ") libmagic=N32;;
5249 *-64|*"-64 ") libmagic=64-bit;;
5250 *) libmagic=never-match;;
5251 esac
5252 lt_cv_deplibs_check_method=pass_all
5253 ;;
5254
5255 # This must be glibc/ELF.
5256 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5257 lt_cv_deplibs_check_method=pass_all
5258 ;;
5259
5260 netbsd*)
5261 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5263 else
5264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5265 fi
5266 ;;
5267
5268 newos6*)
5269 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5270 lt_cv_file_magic_cmd=/usr/bin/file
5271 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5272 ;;
5273
5274 *nto* | *qnx*)
5275 lt_cv_deplibs_check_method=pass_all
5276 ;;
5277
5278 openbsd* | bitrig*)
5279 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5280 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5281 else
5282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5283 fi
5284 ;;
5285
5286 osf3* | osf4* | osf5*)
5287 lt_cv_deplibs_check_method=pass_all
5288 ;;
5289
5290 rdos*)
5291 lt_cv_deplibs_check_method=pass_all
5292 ;;
5293
5294 solaris*)
5295 lt_cv_deplibs_check_method=pass_all
5296 ;;
5297
5298 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5299 lt_cv_deplibs_check_method=pass_all
5300 ;;
5301
5302 sysv4 | sysv4.3*)
5303 case $host_vendor in
5304 motorola)
5305 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]'
5306 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5307 ;;
5308 ncr)
5309 lt_cv_deplibs_check_method=pass_all
5310 ;;
5311 sequent)
5312 lt_cv_file_magic_cmd='/bin/file'
5313 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5314 ;;
5315 sni)
5316 lt_cv_file_magic_cmd='/bin/file'
5317 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5318 lt_cv_file_magic_test_file=/lib/libc.so
5319 ;;
5320 siemens)
5321 lt_cv_deplibs_check_method=pass_all
5322 ;;
5323 pc)
5324 lt_cv_deplibs_check_method=pass_all
5325 ;;
5326 esac
5327 ;;
5328
5329 tpf*)
5330 lt_cv_deplibs_check_method=pass_all
5331 ;;
5332 os2*)
5333 lt_cv_deplibs_check_method=pass_all
5334 ;;
5335 esac
5336
5337 fi
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5339 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5340
5341 file_magic_glob=
5342 want_nocaseglob=no
5343 if test "$build" = "$host"; then
5344 case $host_os in
5345 mingw* | pw32*)
5346 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5347 want_nocaseglob=yes
5348 else
5349 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5350 fi
5351 ;;
5352 esac
5353 fi
5354
5355 file_magic_cmd=$lt_cv_file_magic_cmd
5356 deplibs_check_method=$lt_cv_deplibs_check_method
5357 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380 if test -n "$ac_tool_prefix"; then
5381 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5382 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5384 $as_echo_n "checking for $ac_word... " >&6; }
5385 if ${ac_cv_prog_DLLTOOL+:} false; then :
5386 $as_echo_n "(cached) " >&6
5387 else
5388 if test -n "$DLLTOOL"; then
5389 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5390 else
5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 for as_dir in $PATH
5393 do
5394 IFS=$as_save_IFS
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
5397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5398 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 break 2
5401 fi
5402 done
5403 done
5404 IFS=$as_save_IFS
5405
5406 fi
5407 fi
5408 DLLTOOL=$ac_cv_prog_DLLTOOL
5409 if test -n "$DLLTOOL"; then
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5411 $as_echo "$DLLTOOL" >&6; }
5412 else
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5415 fi
5416
5417
5418 fi
5419 if test -z "$ac_cv_prog_DLLTOOL"; then
5420 ac_ct_DLLTOOL=$DLLTOOL
5421 # Extract the first word of "dlltool", so it can be a program name with args.
5422 set dummy dlltool; ac_word=$2
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424 $as_echo_n "checking for $ac_word... " >&6; }
5425 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 if test -n "$ac_ct_DLLTOOL"; then
5429 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5430 else
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5433 do
5434 IFS=$as_save_IFS
5435 test -z "$as_dir" && as_dir=.
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 break 2
5441 fi
5442 done
5443 done
5444 IFS=$as_save_IFS
5445
5446 fi
5447 fi
5448 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5449 if test -n "$ac_ct_DLLTOOL"; then
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5451 $as_echo "$ac_ct_DLLTOOL" >&6; }
5452 else
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454 $as_echo "no" >&6; }
5455 fi
5456
5457 if test "x$ac_ct_DLLTOOL" = x; then
5458 DLLTOOL="false"
5459 else
5460 case $cross_compiling:$ac_tool_warned in
5461 yes:)
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5464 ac_tool_warned=yes ;;
5465 esac
5466 DLLTOOL=$ac_ct_DLLTOOL
5467 fi
5468 else
5469 DLLTOOL="$ac_cv_prog_DLLTOOL"
5470 fi
5471
5472 test -z "$DLLTOOL" && DLLTOOL=dlltool
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5484 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5485 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 lt_cv_sharedlib_from_linklib_cmd='unknown'
5489
5490 case $host_os in
5491 cygwin* | mingw* | pw32* | cegcc*)
5492 # two different shell functions defined in ltmain.sh;
5493 # decide which one to use based on capabilities of $DLLTOOL
5494 case `$DLLTOOL --help 2>&1` in
5495 *--identify-strict*)
5496 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5497 ;;
5498 *)
5499 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5500 ;;
5501 esac
5502 ;;
5503 *)
5504 # fallback: assume linklib IS sharedlib
5505 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5506 ;;
5507 esac
5508
5509 fi
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5511 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5512 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5513 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5514
5515
5516
5517
5518
5519
5520
5521
5522 if test -n "$ac_tool_prefix"; then
5523 for ac_prog in ar
5524 do
5525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if ${ac_cv_prog_AR+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 if test -n "$AR"; then
5533 ac_cv_prog_AR="$AR" # Let the user override the test.
5534 else
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH
5537 do
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5542 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 break 2
5545 fi
5546 done
5547 done
5548 IFS=$as_save_IFS
5549
5550 fi
5551 fi
5552 AR=$ac_cv_prog_AR
5553 if test -n "$AR"; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5555 $as_echo "$AR" >&6; }
5556 else
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5559 fi
5560
5561
5562 test -n "$AR" && break
5563 done
5564 fi
5565 if test -z "$AR"; then
5566 ac_ct_AR=$AR
5567 for ac_prog in ar
5568 do
5569 # Extract the first word of "$ac_prog", so it can be a program name with args.
5570 set dummy $ac_prog; ac_word=$2
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572 $as_echo_n "checking for $ac_word... " >&6; }
5573 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 if test -n "$ac_ct_AR"; then
5577 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5578 else
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5581 do
5582 IFS=$as_save_IFS
5583 test -z "$as_dir" && as_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_ac_ct_AR="$ac_prog"
5587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 break 2
5589 fi
5590 done
5591 done
5592 IFS=$as_save_IFS
5593
5594 fi
5595 fi
5596 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5597 if test -n "$ac_ct_AR"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5599 $as_echo "$ac_ct_AR" >&6; }
5600 else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5603 fi
5604
5605
5606 test -n "$ac_ct_AR" && break
5607 done
5608
5609 if test "x$ac_ct_AR" = x; then
5610 AR="false"
5611 else
5612 case $cross_compiling:$ac_tool_warned in
5613 yes:)
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5616 ac_tool_warned=yes ;;
5617 esac
5618 AR=$ac_ct_AR
5619 fi
5620 fi
5621
5622 : ${AR=ar}
5623 : ${AR_FLAGS=cru}
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5636 $as_echo_n "checking for archiver @FILE support... " >&6; }
5637 if ${lt_cv_ar_at_file+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 lt_cv_ar_at_file=no
5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h. */
5643
5644 int
5645 main ()
5646 {
5647
5648 ;
5649 return 0;
5650 }
5651 _ACEOF
5652 if ac_fn_c_try_compile "$LINENO"; then :
5653 echo conftest.$ac_objext > conftest.lst
5654 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5656 (eval $lt_ar_try) 2>&5
5657 ac_status=$?
5658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5659 test $ac_status = 0; }
5660 if test 0 -eq "$ac_status"; then
5661 # Ensure the archiver fails upon bogus file names.
5662 rm -f conftest.$ac_objext libconftest.a
5663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5664 (eval $lt_ar_try) 2>&5
5665 ac_status=$?
5666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5667 test $ac_status = 0; }
5668 if test 0 -ne "$ac_status"; then
5669 lt_cv_ar_at_file=@
5670 fi
5671 fi
5672 rm -f conftest.* libconftest.a
5673
5674 fi
5675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676
5677 fi
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5679 $as_echo "$lt_cv_ar_at_file" >&6; }
5680
5681 if test no = "$lt_cv_ar_at_file"; then
5682 archiver_list_spec=
5683 else
5684 archiver_list_spec=$lt_cv_ar_at_file
5685 fi
5686
5687
5688
5689
5690
5691
5692
5693 if test -n "$ac_tool_prefix"; then
5694 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5695 set dummy ${ac_tool_prefix}strip; ac_word=$2
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697 $as_echo_n "checking for $ac_word... " >&6; }
5698 if ${ac_cv_prog_STRIP+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 if test -n "$STRIP"; then
5702 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5703 else
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH
5706 do
5707 IFS=$as_save_IFS
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5711 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 break 2
5714 fi
5715 done
5716 done
5717 IFS=$as_save_IFS
5718
5719 fi
5720 fi
5721 STRIP=$ac_cv_prog_STRIP
5722 if test -n "$STRIP"; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5724 $as_echo "$STRIP" >&6; }
5725 else
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727 $as_echo "no" >&6; }
5728 fi
5729
5730
5731 fi
5732 if test -z "$ac_cv_prog_STRIP"; then
5733 ac_ct_STRIP=$STRIP
5734 # Extract the first word of "strip", so it can be a program name with args.
5735 set dummy strip; ac_word=$2
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737 $as_echo_n "checking for $ac_word... " >&6; }
5738 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5741 if test -n "$ac_ct_STRIP"; then
5742 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5743 else
5744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 for as_dir in $PATH
5746 do
5747 IFS=$as_save_IFS
5748 test -z "$as_dir" && as_dir=.
5749 for ac_exec_ext in '' $ac_executable_extensions; do
5750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5751 ac_cv_prog_ac_ct_STRIP="strip"
5752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 break 2
5754 fi
5755 done
5756 done
5757 IFS=$as_save_IFS
5758
5759 fi
5760 fi
5761 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5762 if test -n "$ac_ct_STRIP"; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5764 $as_echo "$ac_ct_STRIP" >&6; }
5765 else
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767 $as_echo "no" >&6; }
5768 fi
5769
5770 if test "x$ac_ct_STRIP" = x; then
5771 STRIP=":"
5772 else
5773 case $cross_compiling:$ac_tool_warned in
5774 yes:)
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5777 ac_tool_warned=yes ;;
5778 esac
5779 STRIP=$ac_ct_STRIP
5780 fi
5781 else
5782 STRIP="$ac_cv_prog_STRIP"
5783 fi
5784
5785 test -z "$STRIP" && STRIP=:
5786
5787
5788
5789
5790
5791
5792 if test -n "$ac_tool_prefix"; then
5793 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5794 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796 $as_echo_n "checking for $ac_word... " >&6; }
5797 if ${ac_cv_prog_RANLIB+:} false; then :
5798 $as_echo_n "(cached) " >&6
5799 else
5800 if test -n "$RANLIB"; then
5801 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5802 else
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5810 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5813 fi
5814 done
5815 done
5816 IFS=$as_save_IFS
5817
5818 fi
5819 fi
5820 RANLIB=$ac_cv_prog_RANLIB
5821 if test -n "$RANLIB"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5823 $as_echo "$RANLIB" >&6; }
5824 else
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5827 fi
5828
5829
5830 fi
5831 if test -z "$ac_cv_prog_RANLIB"; then
5832 ac_ct_RANLIB=$RANLIB
5833 # Extract the first word of "ranlib", so it can be a program name with args.
5834 set dummy ranlib; ac_word=$2
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836 $as_echo_n "checking for $ac_word... " >&6; }
5837 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 if test -n "$ac_ct_RANLIB"; then
5841 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5842 else
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5845 do
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850 ac_cv_prog_ac_ct_RANLIB="ranlib"
5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5853 fi
5854 done
5855 done
5856 IFS=$as_save_IFS
5857
5858 fi
5859 fi
5860 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5861 if test -n "$ac_ct_RANLIB"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5863 $as_echo "$ac_ct_RANLIB" >&6; }
5864 else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5867 fi
5868
5869 if test "x$ac_ct_RANLIB" = x; then
5870 RANLIB=":"
5871 else
5872 case $cross_compiling:$ac_tool_warned in
5873 yes:)
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5876 ac_tool_warned=yes ;;
5877 esac
5878 RANLIB=$ac_ct_RANLIB
5879 fi
5880 else
5881 RANLIB="$ac_cv_prog_RANLIB"
5882 fi
5883
5884 test -z "$RANLIB" && RANLIB=:
5885
5886
5887
5888
5889
5890
5891 # Determine commands to create old-style static archives.
5892 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5893 old_postinstall_cmds='chmod 644 $oldlib'
5894 old_postuninstall_cmds=
5895
5896 if test -n "$RANLIB"; then
5897 case $host_os in
5898 bitrig* | openbsd*)
5899 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5900 ;;
5901 *)
5902 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5903 ;;
5904 esac
5905 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5906 fi
5907
5908 case $host_os in
5909 darwin*)
5910 lock_old_archive_extraction=yes ;;
5911 *)
5912 lock_old_archive_extraction=no ;;
5913 esac
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953 # If no C compiler was specified, use CC.
5954 LTCC=${LTCC-"$CC"}
5955
5956 # If no C compiler flags were specified, use CFLAGS.
5957 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5958
5959 # Allow CC to be a program name with arguments.
5960 compiler=$CC
5961
5962
5963 # Check for command to grab the raw symbol name followed by C symbol from nm.
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5965 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5966 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5967 $as_echo_n "(cached) " >&6
5968 else
5969
5970 # These are sane defaults that work on at least a few old systems.
5971 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5972
5973 # Character class describing NM global symbol codes.
5974 symcode='[BCDEGRST]'
5975
5976 # Regexp to match symbols that can be accessed directly from C.
5977 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5978
5979 # Define system-specific variables.
5980 case $host_os in
5981 aix*)
5982 symcode='[BCDT]'
5983 ;;
5984 cygwin* | mingw* | pw32* | cegcc*)
5985 symcode='[ABCDGISTW]'
5986 ;;
5987 hpux*)
5988 if test ia64 = "$host_cpu"; then
5989 symcode='[ABCDEGRST]'
5990 fi
5991 ;;
5992 irix* | nonstopux*)
5993 symcode='[BCDEGRST]'
5994 ;;
5995 osf*)
5996 symcode='[BCDEGQRST]'
5997 ;;
5998 solaris*)
5999 symcode='[BDRT]'
6000 ;;
6001 sco3.2v5*)
6002 symcode='[DT]'
6003 ;;
6004 sysv4.2uw2*)
6005 symcode='[DT]'
6006 ;;
6007 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6008 symcode='[ABDT]'
6009 ;;
6010 sysv4)
6011 symcode='[DFNSTU]'
6012 ;;
6013 esac
6014
6015 # If we're using GNU nm, then use its standard symbol codes.
6016 case `$NM -V 2>&1` in
6017 *GNU* | *'with BFD'*)
6018 symcode='[ABCDGIRSTW]' ;;
6019 esac
6020
6021 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6022 # Gets list of data symbols to import.
6023 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6024 # Adjust the below global symbol transforms to fixup imported variables.
6025 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6026 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6027 lt_c_name_lib_hook="\
6028 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6029 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6030 else
6031 # Disable hooks by default.
6032 lt_cv_sys_global_symbol_to_import=
6033 lt_cdecl_hook=
6034 lt_c_name_hook=
6035 lt_c_name_lib_hook=
6036 fi
6037
6038 # Transform an extracted symbol line into a proper C declaration.
6039 # Some systems (esp. on ia64) link data and code symbols differently,
6040 # so use this general approach.
6041 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6042 $lt_cdecl_hook\
6043 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6044 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6045
6046 # Transform an extracted symbol line into symbol name and symbol address
6047 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6048 $lt_c_name_hook\
6049 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6050 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6051
6052 # Transform an extracted symbol line into symbol name with lib prefix and
6053 # symbol address.
6054 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6055 $lt_c_name_lib_hook\
6056 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6057 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6058 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6059
6060 # Handle CRLF in mingw tool chain
6061 opt_cr=
6062 case $build_os in
6063 mingw*)
6064 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6065 ;;
6066 esac
6067
6068 # Try without a prefix underscore, then with it.
6069 for ac_symprfx in "" "_"; do
6070
6071 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6072 symxfrm="\\1 $ac_symprfx\\2 \\2"
6073
6074 # Write the raw and C identifiers.
6075 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6076 # Fake it for dumpbin and say T for any non-static function,
6077 # D for any global variable and I for any imported variable.
6078 # Also find C++ and __fastcall symbols from MSVC++,
6079 # which start with @ or ?.
6080 lt_cv_sys_global_symbol_pipe="$AWK '"\
6081 " {last_section=section; section=\$ 3};"\
6082 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6083 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6084 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6085 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6086 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6087 " \$ 0!~/External *\|/{next};"\
6088 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6089 " {if(hide[section]) next};"\
6090 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6091 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6092 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6093 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6094 " ' prfx=^$ac_symprfx"
6095 else
6096 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6097 fi
6098 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6099
6100 # Check to see that the pipe works correctly.
6101 pipe_works=no
6102
6103 rm -f conftest*
6104 cat > conftest.$ac_ext <<_LT_EOF
6105 #ifdef __cplusplus
6106 extern "C" {
6107 #endif
6108 char nm_test_var;
6109 void nm_test_func(void);
6110 void nm_test_func(void){}
6111 #ifdef __cplusplus
6112 }
6113 #endif
6114 int main(){nm_test_var='a';nm_test_func();return(0);}
6115 _LT_EOF
6116
6117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6118 (eval $ac_compile) 2>&5
6119 ac_status=$?
6120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6121 test $ac_status = 0; }; then
6122 # Now try to grab the symbols.
6123 nlist=conftest.nm
6124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6125 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6126 ac_status=$?
6127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6128 test $ac_status = 0; } && test -s "$nlist"; then
6129 # Try sorting and uniquifying the output.
6130 if sort "$nlist" | uniq > "$nlist"T; then
6131 mv -f "$nlist"T "$nlist"
6132 else
6133 rm -f "$nlist"T
6134 fi
6135
6136 # Make sure that we snagged all the symbols we need.
6137 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6138 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6139 cat <<_LT_EOF > conftest.$ac_ext
6140 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6141 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6142 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6143 relocations are performed -- see ld's documentation on pseudo-relocs. */
6144 # define LT_DLSYM_CONST
6145 #elif defined __osf__
6146 /* This system does not cope well with relocations in const data. */
6147 # define LT_DLSYM_CONST
6148 #else
6149 # define LT_DLSYM_CONST const
6150 #endif
6151
6152 #ifdef __cplusplus
6153 extern "C" {
6154 #endif
6155
6156 _LT_EOF
6157 # Now generate the symbol file.
6158 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6159
6160 cat <<_LT_EOF >> conftest.$ac_ext
6161
6162 /* The mapping between symbol names and symbols. */
6163 LT_DLSYM_CONST struct {
6164 const char *name;
6165 void *address;
6166 }
6167 lt__PROGRAM__LTX_preloaded_symbols[] =
6168 {
6169 { "@PROGRAM@", (void *) 0 },
6170 _LT_EOF
6171 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6172 cat <<\_LT_EOF >> conftest.$ac_ext
6173 {0, (void *) 0}
6174 };
6175
6176 /* This works around a problem in FreeBSD linker */
6177 #ifdef FREEBSD_WORKAROUND
6178 static const void *lt_preloaded_setup() {
6179 return lt__PROGRAM__LTX_preloaded_symbols;
6180 }
6181 #endif
6182
6183 #ifdef __cplusplus
6184 }
6185 #endif
6186 _LT_EOF
6187 # Now try linking the two files.
6188 mv conftest.$ac_objext conftstm.$ac_objext
6189 lt_globsym_save_LIBS=$LIBS
6190 lt_globsym_save_CFLAGS=$CFLAGS
6191 LIBS=conftstm.$ac_objext
6192 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6194 (eval $ac_link) 2>&5
6195 ac_status=$?
6196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6197 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6198 pipe_works=yes
6199 fi
6200 LIBS=$lt_globsym_save_LIBS
6201 CFLAGS=$lt_globsym_save_CFLAGS
6202 else
6203 echo "cannot find nm_test_func in $nlist" >&5
6204 fi
6205 else
6206 echo "cannot find nm_test_var in $nlist" >&5
6207 fi
6208 else
6209 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6210 fi
6211 else
6212 echo "$progname: failed program was:" >&5
6213 cat conftest.$ac_ext >&5
6214 fi
6215 rm -rf conftest* conftst*
6216
6217 # Do not use the global_symbol_pipe unless it works.
6218 if test yes = "$pipe_works"; then
6219 break
6220 else
6221 lt_cv_sys_global_symbol_pipe=
6222 fi
6223 done
6224
6225 fi
6226
6227 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6228 lt_cv_sys_global_symbol_to_cdecl=
6229 fi
6230 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6232 $as_echo "failed" >&6; }
6233 else
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6235 $as_echo "ok" >&6; }
6236 fi
6237
6238 # Response file support.
6239 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6240 nm_file_list_spec='@'
6241 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6242 nm_file_list_spec='@'
6243 fi
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6282 $as_echo_n "checking for sysroot... " >&6; }
6283
6284 # Check whether --with-sysroot was given.
6285 if test "${with_sysroot+set}" = set; then :
6286 withval=$with_sysroot;
6287 else
6288 with_sysroot=no
6289 fi
6290
6291
6292 lt_sysroot=
6293 case $with_sysroot in #(
6294 yes)
6295 if test yes = "$GCC"; then
6296 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6297 fi
6298 ;; #(
6299 /*)
6300 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6301 ;; #(
6302 no|'')
6303 ;; #(
6304 *)
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6306 $as_echo "$with_sysroot" >&6; }
6307 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6308 ;;
6309 esac
6310
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6312 $as_echo "${lt_sysroot:-no}" >&6; }
6313
6314
6315
6316
6317
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6319 $as_echo_n "checking for a working dd... " >&6; }
6320 if ${ac_cv_path_lt_DD+:} false; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6323 printf 0123456789abcdef0123456789abcdef >conftest.i
6324 cat conftest.i conftest.i >conftest2.i
6325 : ${lt_DD:=$DD}
6326 if test -z "$lt_DD"; then
6327 ac_path_lt_DD_found=false
6328 # Loop through the user's path and test for each of PROGNAME-LIST
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 for as_dir in $PATH
6331 do
6332 IFS=$as_save_IFS
6333 test -z "$as_dir" && as_dir=.
6334 for ac_prog in dd; do
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6337 as_fn_executable_p "$ac_path_lt_DD" || continue
6338 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6339 cmp -s conftest.i conftest.out \
6340 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6341 fi
6342 $ac_path_lt_DD_found && break 3
6343 done
6344 done
6345 done
6346 IFS=$as_save_IFS
6347 if test -z "$ac_cv_path_lt_DD"; then
6348 :
6349 fi
6350 else
6351 ac_cv_path_lt_DD=$lt_DD
6352 fi
6353
6354 rm -f conftest.i conftest2.i conftest.out
6355 fi
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6357 $as_echo "$ac_cv_path_lt_DD" >&6; }
6358
6359
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6361 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6362 if ${lt_cv_truncate_bin+:} false; then :
6363 $as_echo_n "(cached) " >&6
6364 else
6365 printf 0123456789abcdef0123456789abcdef >conftest.i
6366 cat conftest.i conftest.i >conftest2.i
6367 lt_cv_truncate_bin=
6368 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6369 cmp -s conftest.i conftest.out \
6370 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6371 fi
6372 rm -f conftest.i conftest2.i conftest.out
6373 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6374 fi
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6376 $as_echo "$lt_cv_truncate_bin" >&6; }
6377
6378
6379
6380
6381
6382
6383
6384 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6385 func_cc_basename ()
6386 {
6387 for cc_temp in $*""; do
6388 case $cc_temp in
6389 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6390 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6391 \-*) ;;
6392 *) break;;
6393 esac
6394 done
6395 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6396 }
6397
6398 # Check whether --enable-libtool-lock was given.
6399 if test "${enable_libtool_lock+set}" = set; then :
6400 enableval=$enable_libtool_lock;
6401 fi
6402
6403 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6404
6405 # Some flags need to be propagated to the compiler or linker for good
6406 # libtool support.
6407 case $host in
6408 ia64-*-hpux*)
6409 # Find out what ABI is being produced by ac_compile, and set mode
6410 # options accordingly.
6411 echo 'int i;' > conftest.$ac_ext
6412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6413 (eval $ac_compile) 2>&5
6414 ac_status=$?
6415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6416 test $ac_status = 0; }; then
6417 case `/usr/bin/file conftest.$ac_objext` in
6418 *ELF-32*)
6419 HPUX_IA64_MODE=32
6420 ;;
6421 *ELF-64*)
6422 HPUX_IA64_MODE=64
6423 ;;
6424 esac
6425 fi
6426 rm -rf conftest*
6427 ;;
6428 *-*-irix6*)
6429 # Find out what ABI is being produced by ac_compile, and set linker
6430 # options accordingly.
6431 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6433 (eval $ac_compile) 2>&5
6434 ac_status=$?
6435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6436 test $ac_status = 0; }; then
6437 if test yes = "$lt_cv_prog_gnu_ld"; then
6438 case `/usr/bin/file conftest.$ac_objext` in
6439 *32-bit*)
6440 LD="${LD-ld} -melf32bsmip"
6441 ;;
6442 *N32*)
6443 LD="${LD-ld} -melf32bmipn32"
6444 ;;
6445 *64-bit*)
6446 LD="${LD-ld} -melf64bmip"
6447 ;;
6448 esac
6449 else
6450 case `/usr/bin/file conftest.$ac_objext` in
6451 *32-bit*)
6452 LD="${LD-ld} -32"
6453 ;;
6454 *N32*)
6455 LD="${LD-ld} -n32"
6456 ;;
6457 *64-bit*)
6458 LD="${LD-ld} -64"
6459 ;;
6460 esac
6461 fi
6462 fi
6463 rm -rf conftest*
6464 ;;
6465
6466 mips64*-*linux*)
6467 # Find out what ABI is being produced by ac_compile, and set linker
6468 # options accordingly.
6469 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6471 (eval $ac_compile) 2>&5
6472 ac_status=$?
6473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6474 test $ac_status = 0; }; then
6475 emul=elf
6476 case `/usr/bin/file conftest.$ac_objext` in
6477 *32-bit*)
6478 emul="${emul}32"
6479 ;;
6480 *64-bit*)
6481 emul="${emul}64"
6482 ;;
6483 esac
6484 case `/usr/bin/file conftest.$ac_objext` in
6485 *MSB*)
6486 emul="${emul}btsmip"
6487 ;;
6488 *LSB*)
6489 emul="${emul}ltsmip"
6490 ;;
6491 esac
6492 case `/usr/bin/file conftest.$ac_objext` in
6493 *N32*)
6494 emul="${emul}n32"
6495 ;;
6496 esac
6497 LD="${LD-ld} -m $emul"
6498 fi
6499 rm -rf conftest*
6500 ;;
6501
6502 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6503 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6504 # Find out what ABI is being produced by ac_compile, and set linker
6505 # options accordingly. Note that the listed cases only cover the
6506 # situations where additional linker options are needed (such as when
6507 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6508 # vice versa); the common cases where no linker options are needed do
6509 # not appear in the list.
6510 echo 'int i;' > conftest.$ac_ext
6511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6512 (eval $ac_compile) 2>&5
6513 ac_status=$?
6514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6515 test $ac_status = 0; }; then
6516 case `/usr/bin/file conftest.o` in
6517 *32-bit*)
6518 case $host in
6519 x86_64-*kfreebsd*-gnu)
6520 LD="${LD-ld} -m elf_i386_fbsd"
6521 ;;
6522 x86_64-*linux*)
6523 case `/usr/bin/file conftest.o` in
6524 *x86-64*)
6525 LD="${LD-ld} -m elf32_x86_64"
6526 ;;
6527 *)
6528 LD="${LD-ld} -m elf_i386"
6529 ;;
6530 esac
6531 ;;
6532 powerpc64le-*linux*)
6533 LD="${LD-ld} -m elf32lppclinux"
6534 ;;
6535 powerpc64-*linux*)
6536 LD="${LD-ld} -m elf32ppclinux"
6537 ;;
6538 s390x-*linux*)
6539 LD="${LD-ld} -m elf_s390"
6540 ;;
6541 sparc64-*linux*)
6542 LD="${LD-ld} -m elf32_sparc"
6543 ;;
6544 esac
6545 ;;
6546 *64-bit*)
6547 case $host in
6548 x86_64-*kfreebsd*-gnu)
6549 LD="${LD-ld} -m elf_x86_64_fbsd"
6550 ;;
6551 x86_64-*linux*)
6552 LD="${LD-ld} -m elf_x86_64"
6553 ;;
6554 powerpcle-*linux*)
6555 LD="${LD-ld} -m elf64lppc"
6556 ;;
6557 powerpc-*linux*)
6558 LD="${LD-ld} -m elf64ppc"
6559 ;;
6560 s390*-*linux*|s390*-*tpf*)
6561 LD="${LD-ld} -m elf64_s390"
6562 ;;
6563 sparc*-*linux*)
6564 LD="${LD-ld} -m elf64_sparc"
6565 ;;
6566 esac
6567 ;;
6568 esac
6569 fi
6570 rm -rf conftest*
6571 ;;
6572
6573 *-*-sco3.2v5*)
6574 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6575 SAVE_CFLAGS=$CFLAGS
6576 CFLAGS="$CFLAGS -belf"
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6578 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6579 if ${lt_cv_cc_needs_belf+:} false; then :
6580 $as_echo_n "(cached) " >&6
6581 else
6582 ac_ext=c
6583 ac_cpp='$CPP $CPPFLAGS'
6584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6587
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6590
6591 int
6592 main ()
6593 {
6594
6595 ;
6596 return 0;
6597 }
6598 _ACEOF
6599 if ac_fn_c_try_link "$LINENO"; then :
6600 lt_cv_cc_needs_belf=yes
6601 else
6602 lt_cv_cc_needs_belf=no
6603 fi
6604 rm -f core conftest.err conftest.$ac_objext \
6605 conftest$ac_exeext conftest.$ac_ext
6606 ac_ext=c
6607 ac_cpp='$CPP $CPPFLAGS'
6608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6611
6612 fi
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6614 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6615 if test yes != "$lt_cv_cc_needs_belf"; then
6616 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6617 CFLAGS=$SAVE_CFLAGS
6618 fi
6619 ;;
6620 *-*solaris*)
6621 # Find out what ABI is being produced by ac_compile, and set linker
6622 # options accordingly.
6623 echo 'int i;' > conftest.$ac_ext
6624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6625 (eval $ac_compile) 2>&5
6626 ac_status=$?
6627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6628 test $ac_status = 0; }; then
6629 case `/usr/bin/file conftest.o` in
6630 *64-bit*)
6631 case $lt_cv_prog_gnu_ld in
6632 yes*)
6633 case $host in
6634 i?86-*-solaris*|x86_64-*-solaris*)
6635 LD="${LD-ld} -m elf_x86_64"
6636 ;;
6637 sparc*-*-solaris*)
6638 LD="${LD-ld} -m elf64_sparc"
6639 ;;
6640 esac
6641 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6642 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6643 LD=${LD-ld}_sol2
6644 fi
6645 ;;
6646 *)
6647 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6648 LD="${LD-ld} -64"
6649 fi
6650 ;;
6651 esac
6652 ;;
6653 esac
6654 fi
6655 rm -rf conftest*
6656 ;;
6657 esac
6658
6659 need_locks=$enable_libtool_lock
6660
6661 if test -n "$ac_tool_prefix"; then
6662 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6663 set dummy ${ac_tool_prefix}mt; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 if test -n "$MANIFEST_TOOL"; then
6670 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675 IFS=$as_save_IFS
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 break 2
6682 fi
6683 done
6684 done
6685 IFS=$as_save_IFS
6686
6687 fi
6688 fi
6689 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6690 if test -n "$MANIFEST_TOOL"; then
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6692 $as_echo "$MANIFEST_TOOL" >&6; }
6693 else
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695 $as_echo "no" >&6; }
6696 fi
6697
6698
6699 fi
6700 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6701 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6702 # Extract the first word of "mt", so it can be a program name with args.
6703 set dummy mt; ac_word=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6707 $as_echo_n "(cached) " >&6
6708 else
6709 if test -n "$ac_ct_MANIFEST_TOOL"; then
6710 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6711 else
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $PATH
6714 do
6715 IFS=$as_save_IFS
6716 test -z "$as_dir" && as_dir=.
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6719 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 break 2
6722 fi
6723 done
6724 done
6725 IFS=$as_save_IFS
6726
6727 fi
6728 fi
6729 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6730 if test -n "$ac_ct_MANIFEST_TOOL"; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6732 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6733 else
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 $as_echo "no" >&6; }
6736 fi
6737
6738 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6739 MANIFEST_TOOL=":"
6740 else
6741 case $cross_compiling:$ac_tool_warned in
6742 yes:)
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6745 ac_tool_warned=yes ;;
6746 esac
6747 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6748 fi
6749 else
6750 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6751 fi
6752
6753 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6755 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6756 if ${lt_cv_path_mainfest_tool+:} false; then :
6757 $as_echo_n "(cached) " >&6
6758 else
6759 lt_cv_path_mainfest_tool=no
6760 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6761 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6762 cat conftest.err >&5
6763 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6764 lt_cv_path_mainfest_tool=yes
6765 fi
6766 rm -f conftest*
6767 fi
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6769 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6770 if test yes != "$lt_cv_path_mainfest_tool"; then
6771 MANIFEST_TOOL=:
6772 fi
6773
6774
6775
6776
6777
6778
6779 case $host_os in
6780 rhapsody* | darwin*)
6781 if test -n "$ac_tool_prefix"; then
6782 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6783 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6785 $as_echo_n "checking for $ac_word... " >&6; }
6786 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 if test -n "$DSYMUTIL"; then
6790 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6791 else
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 for as_dir in $PATH
6794 do
6795 IFS=$as_save_IFS
6796 test -z "$as_dir" && as_dir=.
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6799 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 break 2
6802 fi
6803 done
6804 done
6805 IFS=$as_save_IFS
6806
6807 fi
6808 fi
6809 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6810 if test -n "$DSYMUTIL"; then
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6812 $as_echo "$DSYMUTIL" >&6; }
6813 else
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6815 $as_echo "no" >&6; }
6816 fi
6817
6818
6819 fi
6820 if test -z "$ac_cv_prog_DSYMUTIL"; then
6821 ac_ct_DSYMUTIL=$DSYMUTIL
6822 # Extract the first word of "dsymutil", so it can be a program name with args.
6823 set dummy dsymutil; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 if test -n "$ac_ct_DSYMUTIL"; then
6830 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 break 2
6842 fi
6843 done
6844 done
6845 IFS=$as_save_IFS
6846
6847 fi
6848 fi
6849 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6850 if test -n "$ac_ct_DSYMUTIL"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6852 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6853 else
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6856 fi
6857
6858 if test "x$ac_ct_DSYMUTIL" = x; then
6859 DSYMUTIL=":"
6860 else
6861 case $cross_compiling:$ac_tool_warned in
6862 yes:)
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6865 ac_tool_warned=yes ;;
6866 esac
6867 DSYMUTIL=$ac_ct_DSYMUTIL
6868 fi
6869 else
6870 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6871 fi
6872
6873 if test -n "$ac_tool_prefix"; then
6874 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6875 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 $as_echo_n "checking for $ac_word... " >&6; }
6878 if ${ac_cv_prog_NMEDIT+:} false; then :
6879 $as_echo_n "(cached) " >&6
6880 else
6881 if test -n "$NMEDIT"; then
6882 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6883 else
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6886 do
6887 IFS=$as_save_IFS
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 break 2
6894 fi
6895 done
6896 done
6897 IFS=$as_save_IFS
6898
6899 fi
6900 fi
6901 NMEDIT=$ac_cv_prog_NMEDIT
6902 if test -n "$NMEDIT"; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6904 $as_echo "$NMEDIT" >&6; }
6905 else
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6908 fi
6909
6910
6911 fi
6912 if test -z "$ac_cv_prog_NMEDIT"; then
6913 ac_ct_NMEDIT=$NMEDIT
6914 # Extract the first word of "nmedit", so it can be a program name with args.
6915 set dummy nmedit; ac_word=$2
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917 $as_echo_n "checking for $ac_word... " >&6; }
6918 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6919 $as_echo_n "(cached) " >&6
6920 else
6921 if test -n "$ac_ct_NMEDIT"; then
6922 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6923 else
6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 for as_dir in $PATH
6926 do
6927 IFS=$as_save_IFS
6928 test -z "$as_dir" && as_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6931 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6933 break 2
6934 fi
6935 done
6936 done
6937 IFS=$as_save_IFS
6938
6939 fi
6940 fi
6941 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6942 if test -n "$ac_ct_NMEDIT"; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6944 $as_echo "$ac_ct_NMEDIT" >&6; }
6945 else
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947 $as_echo "no" >&6; }
6948 fi
6949
6950 if test "x$ac_ct_NMEDIT" = x; then
6951 NMEDIT=":"
6952 else
6953 case $cross_compiling:$ac_tool_warned in
6954 yes:)
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6957 ac_tool_warned=yes ;;
6958 esac
6959 NMEDIT=$ac_ct_NMEDIT
6960 fi
6961 else
6962 NMEDIT="$ac_cv_prog_NMEDIT"
6963 fi
6964
6965 if test -n "$ac_tool_prefix"; then
6966 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6967 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6969 $as_echo_n "checking for $ac_word... " >&6; }
6970 if ${ac_cv_prog_LIPO+:} false; then :
6971 $as_echo_n "(cached) " >&6
6972 else
6973 if test -n "$LIPO"; then
6974 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6975 else
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979 IFS=$as_save_IFS
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6983 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 break 2
6986 fi
6987 done
6988 done
6989 IFS=$as_save_IFS
6990
6991 fi
6992 fi
6993 LIPO=$ac_cv_prog_LIPO
6994 if test -n "$LIPO"; then
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6996 $as_echo "$LIPO" >&6; }
6997 else
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6999 $as_echo "no" >&6; }
7000 fi
7001
7002
7003 fi
7004 if test -z "$ac_cv_prog_LIPO"; then
7005 ac_ct_LIPO=$LIPO
7006 # Extract the first word of "lipo", so it can be a program name with args.
7007 set dummy lipo; ac_word=$2
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7009 $as_echo_n "checking for $ac_word... " >&6; }
7010 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7011 $as_echo_n "(cached) " >&6
7012 else
7013 if test -n "$ac_ct_LIPO"; then
7014 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7015 else
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7018 do
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7023 ac_cv_prog_ac_ct_LIPO="lipo"
7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7026 fi
7027 done
7028 done
7029 IFS=$as_save_IFS
7030
7031 fi
7032 fi
7033 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7034 if test -n "$ac_ct_LIPO"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7036 $as_echo "$ac_ct_LIPO" >&6; }
7037 else
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039 $as_echo "no" >&6; }
7040 fi
7041
7042 if test "x$ac_ct_LIPO" = x; then
7043 LIPO=":"
7044 else
7045 case $cross_compiling:$ac_tool_warned in
7046 yes:)
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7049 ac_tool_warned=yes ;;
7050 esac
7051 LIPO=$ac_ct_LIPO
7052 fi
7053 else
7054 LIPO="$ac_cv_prog_LIPO"
7055 fi
7056
7057 if test -n "$ac_tool_prefix"; then
7058 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7059 set dummy ${ac_tool_prefix}otool; ac_word=$2
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061 $as_echo_n "checking for $ac_word... " >&6; }
7062 if ${ac_cv_prog_OTOOL+:} false; then :
7063 $as_echo_n "(cached) " >&6
7064 else
7065 if test -n "$OTOOL"; then
7066 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7067 else
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7070 do
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7075 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 break 2
7078 fi
7079 done
7080 done
7081 IFS=$as_save_IFS
7082
7083 fi
7084 fi
7085 OTOOL=$ac_cv_prog_OTOOL
7086 if test -n "$OTOOL"; then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7088 $as_echo "$OTOOL" >&6; }
7089 else
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091 $as_echo "no" >&6; }
7092 fi
7093
7094
7095 fi
7096 if test -z "$ac_cv_prog_OTOOL"; then
7097 ac_ct_OTOOL=$OTOOL
7098 # Extract the first word of "otool", so it can be a program name with args.
7099 set dummy otool; ac_word=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 $as_echo_n "checking for $ac_word... " >&6; }
7102 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 if test -n "$ac_ct_OTOOL"; then
7106 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7107 else
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7110 do
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7115 ac_cv_prog_ac_ct_OTOOL="otool"
7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7118 fi
7119 done
7120 done
7121 IFS=$as_save_IFS
7122
7123 fi
7124 fi
7125 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7126 if test -n "$ac_ct_OTOOL"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7128 $as_echo "$ac_ct_OTOOL" >&6; }
7129 else
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7132 fi
7133
7134 if test "x$ac_ct_OTOOL" = x; then
7135 OTOOL=":"
7136 else
7137 case $cross_compiling:$ac_tool_warned in
7138 yes:)
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7141 ac_tool_warned=yes ;;
7142 esac
7143 OTOOL=$ac_ct_OTOOL
7144 fi
7145 else
7146 OTOOL="$ac_cv_prog_OTOOL"
7147 fi
7148
7149 if test -n "$ac_tool_prefix"; then
7150 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7151 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153 $as_echo_n "checking for $ac_word... " >&6; }
7154 if ${ac_cv_prog_OTOOL64+:} false; then :
7155 $as_echo_n "(cached) " >&6
7156 else
7157 if test -n "$OTOOL64"; then
7158 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7159 else
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7162 do
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7167 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 break 2
7170 fi
7171 done
7172 done
7173 IFS=$as_save_IFS
7174
7175 fi
7176 fi
7177 OTOOL64=$ac_cv_prog_OTOOL64
7178 if test -n "$OTOOL64"; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7180 $as_echo "$OTOOL64" >&6; }
7181 else
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 $as_echo "no" >&6; }
7184 fi
7185
7186
7187 fi
7188 if test -z "$ac_cv_prog_OTOOL64"; then
7189 ac_ct_OTOOL64=$OTOOL64
7190 # Extract the first word of "otool64", so it can be a program name with args.
7191 set dummy otool64; ac_word=$2
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7193 $as_echo_n "checking for $ac_word... " >&6; }
7194 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7195 $as_echo_n "(cached) " >&6
7196 else
7197 if test -n "$ac_ct_OTOOL64"; then
7198 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7199 else
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7202 do
7203 IFS=$as_save_IFS
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7207 ac_cv_prog_ac_ct_OTOOL64="otool64"
7208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 break 2
7210 fi
7211 done
7212 done
7213 IFS=$as_save_IFS
7214
7215 fi
7216 fi
7217 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7218 if test -n "$ac_ct_OTOOL64"; then
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7220 $as_echo "$ac_ct_OTOOL64" >&6; }
7221 else
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7223 $as_echo "no" >&6; }
7224 fi
7225
7226 if test "x$ac_ct_OTOOL64" = x; then
7227 OTOOL64=":"
7228 else
7229 case $cross_compiling:$ac_tool_warned in
7230 yes:)
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7233 ac_tool_warned=yes ;;
7234 esac
7235 OTOOL64=$ac_ct_OTOOL64
7236 fi
7237 else
7238 OTOOL64="$ac_cv_prog_OTOOL64"
7239 fi
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7268 $as_echo_n "checking for -single_module linker flag... " >&6; }
7269 if ${lt_cv_apple_cc_single_mod+:} false; then :
7270 $as_echo_n "(cached) " >&6
7271 else
7272 lt_cv_apple_cc_single_mod=no
7273 if test -z "$LT_MULTI_MODULE"; then
7274 # By default we will add the -single_module flag. You can override
7275 # by either setting the environment variable LT_MULTI_MODULE
7276 # non-empty at configure time, or by adding -multi_module to the
7277 # link flags.
7278 rm -rf libconftest.dylib*
7279 echo "int foo(void){return 1;}" > conftest.c
7280 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7281 -dynamiclib -Wl,-single_module conftest.c" >&5
7282 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7283 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7284 _lt_result=$?
7285 # If there is a non-empty error log, and "single_module"
7286 # appears in it, assume the flag caused a linker warning
7287 if test -s conftest.err && $GREP single_module conftest.err; then
7288 cat conftest.err >&5
7289 # Otherwise, if the output was created with a 0 exit code from
7290 # the compiler, it worked.
7291 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7292 lt_cv_apple_cc_single_mod=yes
7293 else
7294 cat conftest.err >&5
7295 fi
7296 rm -rf libconftest.dylib*
7297 rm -f conftest.*
7298 fi
7299 fi
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7301 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7302
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7304 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7305 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7306 $as_echo_n "(cached) " >&6
7307 else
7308 lt_cv_ld_exported_symbols_list=no
7309 save_LDFLAGS=$LDFLAGS
7310 echo "_main" > conftest.sym
7311 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h. */
7314
7315 int
7316 main ()
7317 {
7318
7319 ;
7320 return 0;
7321 }
7322 _ACEOF
7323 if ac_fn_c_try_link "$LINENO"; then :
7324 lt_cv_ld_exported_symbols_list=yes
7325 else
7326 lt_cv_ld_exported_symbols_list=no
7327 fi
7328 rm -f core conftest.err conftest.$ac_objext \
7329 conftest$ac_exeext conftest.$ac_ext
7330 LDFLAGS=$save_LDFLAGS
7331
7332 fi
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7334 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7335
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7337 $as_echo_n "checking for -force_load linker flag... " >&6; }
7338 if ${lt_cv_ld_force_load+:} false; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 lt_cv_ld_force_load=no
7342 cat > conftest.c << _LT_EOF
7343 int forced_loaded() { return 2;}
7344 _LT_EOF
7345 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7346 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7347 echo "$AR cru libconftest.a conftest.o" >&5
7348 $AR cru libconftest.a conftest.o 2>&5
7349 echo "$RANLIB libconftest.a" >&5
7350 $RANLIB libconftest.a 2>&5
7351 cat > conftest.c << _LT_EOF
7352 int main() { return 0;}
7353 _LT_EOF
7354 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7355 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7356 _lt_result=$?
7357 if test -s conftest.err && $GREP force_load conftest.err; then
7358 cat conftest.err >&5
7359 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7360 lt_cv_ld_force_load=yes
7361 else
7362 cat conftest.err >&5
7363 fi
7364 rm -f conftest.err libconftest.a conftest conftest.c
7365 rm -rf conftest.dSYM
7366
7367 fi
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7369 $as_echo "$lt_cv_ld_force_load" >&6; }
7370 case $host_os in
7371 rhapsody* | darwin1.[012])
7372 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7373 darwin1.*)
7374 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7375 darwin*) # darwin 5.x on
7376 # if running on 10.5 or later, the deployment target defaults
7377 # to the OS version, if on x86, and 10.4, the deployment
7378 # target defaults to 10.4. Don't you love it?
7379 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7380 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7381 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7382 10.[012][,.]*)
7383 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7384 10.*)
7385 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7386 esac
7387 ;;
7388 esac
7389 if test yes = "$lt_cv_apple_cc_single_mod"; then
7390 _lt_dar_single_mod='$single_module'
7391 fi
7392 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7393 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7394 else
7395 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7396 fi
7397 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7398 _lt_dsymutil='~$DSYMUTIL $lib || :'
7399 else
7400 _lt_dsymutil=
7401 fi
7402 ;;
7403 esac
7404
7405 # func_munge_path_list VARIABLE PATH
7406 # -----------------------------------
7407 # VARIABLE is name of variable containing _space_ separated list of
7408 # directories to be munged by the contents of PATH, which is string
7409 # having a format:
7410 # "DIR[:DIR]:"
7411 # string "DIR[ DIR]" will be prepended to VARIABLE
7412 # ":DIR[:DIR]"
7413 # string "DIR[ DIR]" will be appended to VARIABLE
7414 # "DIRP[:DIRP]::[DIRA:]DIRA"
7415 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7416 # "DIRA[ DIRA]" will be appended to VARIABLE
7417 # "DIR[:DIR]"
7418 # VARIABLE will be replaced by "DIR[ DIR]"
7419 func_munge_path_list ()
7420 {
7421 case x$2 in
7422 x)
7423 ;;
7424 *:)
7425 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7426 ;;
7427 x:*)
7428 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7429 ;;
7430 *::*)
7431 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7432 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7433 ;;
7434 *)
7435 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7436 ;;
7437 esac
7438 }
7439
7440 ac_ext=c
7441 ac_cpp='$CPP $CPPFLAGS'
7442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7446 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7447 # On Suns, sometimes $CPP names a directory.
7448 if test -n "$CPP" && test -d "$CPP"; then
7449 CPP=
7450 fi
7451 if test -z "$CPP"; then
7452 if ${ac_cv_prog_CPP+:} false; then :
7453 $as_echo_n "(cached) " >&6
7454 else
7455 # Double quotes because CPP needs to be expanded
7456 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7457 do
7458 ac_preproc_ok=false
7459 for ac_c_preproc_warn_flag in '' yes
7460 do
7461 # Use a header file that comes with gcc, so configuring glibc
7462 # with a fresh cross-compiler works.
7463 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7464 # <limits.h> exists even on freestanding compilers.
7465 # On the NeXT, cc -E runs the code through the compiler's parser,
7466 # not just through cpp. "Syntax error" is here to catch this case.
7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468 /* end confdefs.h. */
7469 #ifdef __STDC__
7470 # include <limits.h>
7471 #else
7472 # include <assert.h>
7473 #endif
7474 Syntax error
7475 _ACEOF
7476 if ac_fn_c_try_cpp "$LINENO"; then :
7477
7478 else
7479 # Broken: fails on valid input.
7480 continue
7481 fi
7482 rm -f conftest.err conftest.i conftest.$ac_ext
7483
7484 # OK, works on sane cases. Now check whether nonexistent headers
7485 # can be detected and how.
7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h. */
7488 #include <ac_nonexistent.h>
7489 _ACEOF
7490 if ac_fn_c_try_cpp "$LINENO"; then :
7491 # Broken: success on invalid input.
7492 continue
7493 else
7494 # Passes both tests.
7495 ac_preproc_ok=:
7496 break
7497 fi
7498 rm -f conftest.err conftest.i conftest.$ac_ext
7499
7500 done
7501 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7502 rm -f conftest.i conftest.err conftest.$ac_ext
7503 if $ac_preproc_ok; then :
7504 break
7505 fi
7506
7507 done
7508 ac_cv_prog_CPP=$CPP
7509
7510 fi
7511 CPP=$ac_cv_prog_CPP
7512 else
7513 ac_cv_prog_CPP=$CPP
7514 fi
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7516 $as_echo "$CPP" >&6; }
7517 ac_preproc_ok=false
7518 for ac_c_preproc_warn_flag in '' yes
7519 do
7520 # Use a header file that comes with gcc, so configuring glibc
7521 # with a fresh cross-compiler works.
7522 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7523 # <limits.h> exists even on freestanding compilers.
7524 # On the NeXT, cc -E runs the code through the compiler's parser,
7525 # not just through cpp. "Syntax error" is here to catch this case.
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7528 #ifdef __STDC__
7529 # include <limits.h>
7530 #else
7531 # include <assert.h>
7532 #endif
7533 Syntax error
7534 _ACEOF
7535 if ac_fn_c_try_cpp "$LINENO"; then :
7536
7537 else
7538 # Broken: fails on valid input.
7539 continue
7540 fi
7541 rm -f conftest.err conftest.i conftest.$ac_ext
7542
7543 # OK, works on sane cases. Now check whether nonexistent headers
7544 # can be detected and how.
7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7547 #include <ac_nonexistent.h>
7548 _ACEOF
7549 if ac_fn_c_try_cpp "$LINENO"; then :
7550 # Broken: success on invalid input.
7551 continue
7552 else
7553 # Passes both tests.
7554 ac_preproc_ok=:
7555 break
7556 fi
7557 rm -f conftest.err conftest.i conftest.$ac_ext
7558
7559 done
7560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7561 rm -f conftest.i conftest.err conftest.$ac_ext
7562 if $ac_preproc_ok; then :
7563
7564 else
7565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7567 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7568 See \`config.log' for more details" "$LINENO" 5; }
7569 fi
7570
7571 ac_ext=c
7572 ac_cpp='$CPP $CPPFLAGS'
7573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7576
7577
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7579 $as_echo_n "checking for ANSI C header files... " >&6; }
7580 if ${ac_cv_header_stdc+:} false; then :
7581 $as_echo_n "(cached) " >&6
7582 else
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7585 #include <stdlib.h>
7586 #include <stdarg.h>
7587 #include <string.h>
7588 #include <float.h>
7589
7590 int
7591 main ()
7592 {
7593
7594 ;
7595 return 0;
7596 }
7597 _ACEOF
7598 if ac_fn_c_try_compile "$LINENO"; then :
7599 ac_cv_header_stdc=yes
7600 else
7601 ac_cv_header_stdc=no
7602 fi
7603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7604
7605 if test $ac_cv_header_stdc = yes; then
7606 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608 /* end confdefs.h. */
7609 #include <string.h>
7610
7611 _ACEOF
7612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7613 $EGREP "memchr" >/dev/null 2>&1; then :
7614
7615 else
7616 ac_cv_header_stdc=no
7617 fi
7618 rm -f conftest*
7619
7620 fi
7621
7622 if test $ac_cv_header_stdc = yes; then
7623 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625 /* end confdefs.h. */
7626 #include <stdlib.h>
7627
7628 _ACEOF
7629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7630 $EGREP "free" >/dev/null 2>&1; then :
7631
7632 else
7633 ac_cv_header_stdc=no
7634 fi
7635 rm -f conftest*
7636
7637 fi
7638
7639 if test $ac_cv_header_stdc = yes; then
7640 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7641 if test "$cross_compiling" = yes; then :
7642 :
7643 else
7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7646 #include <ctype.h>
7647 #include <stdlib.h>
7648 #if ((' ' & 0x0FF) == 0x020)
7649 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7650 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7651 #else
7652 # define ISLOWER(c) \
7653 (('a' <= (c) && (c) <= 'i') \
7654 || ('j' <= (c) && (c) <= 'r') \
7655 || ('s' <= (c) && (c) <= 'z'))
7656 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7657 #endif
7658
7659 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7660 int
7661 main ()
7662 {
7663 int i;
7664 for (i = 0; i < 256; i++)
7665 if (XOR (islower (i), ISLOWER (i))
7666 || toupper (i) != TOUPPER (i))
7667 return 2;
7668 return 0;
7669 }
7670 _ACEOF
7671 if ac_fn_c_try_run "$LINENO"; then :
7672
7673 else
7674 ac_cv_header_stdc=no
7675 fi
7676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7677 conftest.$ac_objext conftest.beam conftest.$ac_ext
7678 fi
7679
7680 fi
7681 fi
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7683 $as_echo "$ac_cv_header_stdc" >&6; }
7684 if test $ac_cv_header_stdc = yes; then
7685
7686 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7687
7688 fi
7689
7690 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7691 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7692 inttypes.h stdint.h unistd.h
7693 do :
7694 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7695 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7696 "
7697 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7698 cat >>confdefs.h <<_ACEOF
7699 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7700 _ACEOF
7701
7702 fi
7703
7704 done
7705
7706
7707 for ac_header in dlfcn.h
7708 do :
7709 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7710 "
7711 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7712 cat >>confdefs.h <<_ACEOF
7713 #define HAVE_DLFCN_H 1
7714 _ACEOF
7715
7716 fi
7717
7718 done
7719
7720
7721
7722
7723
7724 # Set options
7725
7726
7727
7728 enable_dlopen=no
7729
7730
7731 enable_win32_dll=no
7732
7733
7734 # Check whether --enable-shared was given.
7735 if test "${enable_shared+set}" = set; then :
7736 enableval=$enable_shared; p=${PACKAGE-default}
7737 case $enableval in
7738 yes) enable_shared=yes ;;
7739 no) enable_shared=no ;;
7740 *)
7741 enable_shared=no
7742 # Look at the argument we got. We use all the common list separators.
7743 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7744 for pkg in $enableval; do
7745 IFS=$lt_save_ifs
7746 if test "X$pkg" = "X$p"; then
7747 enable_shared=yes
7748 fi
7749 done
7750 IFS=$lt_save_ifs
7751 ;;
7752 esac
7753 else
7754 enable_shared=yes
7755 fi
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765 # Check whether --enable-static was given.
7766 if test "${enable_static+set}" = set; then :
7767 enableval=$enable_static; p=${PACKAGE-default}
7768 case $enableval in
7769 yes) enable_static=yes ;;
7770 no) enable_static=no ;;
7771 *)
7772 enable_static=no
7773 # Look at the argument we got. We use all the common list separators.
7774 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7775 for pkg in $enableval; do
7776 IFS=$lt_save_ifs
7777 if test "X$pkg" = "X$p"; then
7778 enable_static=yes
7779 fi
7780 done
7781 IFS=$lt_save_ifs
7782 ;;
7783 esac
7784 else
7785 enable_static=yes
7786 fi
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797 # Check whether --with-pic was given.
7798 if test "${with_pic+set}" = set; then :
7799 withval=$with_pic; lt_p=${PACKAGE-default}
7800 case $withval in
7801 yes|no) pic_mode=$withval ;;
7802 *)
7803 pic_mode=default
7804 # Look at the argument we got. We use all the common list separators.
7805 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7806 for lt_pkg in $withval; do
7807 IFS=$lt_save_ifs
7808 if test "X$lt_pkg" = "X$lt_p"; then
7809 pic_mode=yes
7810 fi
7811 done
7812 IFS=$lt_save_ifs
7813 ;;
7814 esac
7815 else
7816 pic_mode=default
7817 fi
7818
7819
7820
7821
7822
7823
7824
7825
7826 # Check whether --enable-fast-install was given.
7827 if test "${enable_fast_install+set}" = set; then :
7828 enableval=$enable_fast_install; p=${PACKAGE-default}
7829 case $enableval in
7830 yes) enable_fast_install=yes ;;
7831 no) enable_fast_install=no ;;
7832 *)
7833 enable_fast_install=no
7834 # Look at the argument we got. We use all the common list separators.
7835 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7836 for pkg in $enableval; do
7837 IFS=$lt_save_ifs
7838 if test "X$pkg" = "X$p"; then
7839 enable_fast_install=yes
7840 fi
7841 done
7842 IFS=$lt_save_ifs
7843 ;;
7844 esac
7845 else
7846 enable_fast_install=yes
7847 fi
7848
7849
7850
7851
7852
7853
7854
7855
7856 shared_archive_member_spec=
7857 case $host,$enable_shared in
7858 power*-*-aix[5-9]*,yes)
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7860 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7861
7862 # Check whether --with-aix-soname was given.
7863 if test "${with_aix_soname+set}" = set; then :
7864 withval=$with_aix_soname; case $withval in
7865 aix|svr4|both)
7866 ;;
7867 *)
7868 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7869 ;;
7870 esac
7871 lt_cv_with_aix_soname=$with_aix_soname
7872 else
7873 if ${lt_cv_with_aix_soname+:} false; then :
7874 $as_echo_n "(cached) " >&6
7875 else
7876 lt_cv_with_aix_soname=aix
7877 fi
7878
7879 with_aix_soname=$lt_cv_with_aix_soname
7880 fi
7881
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7883 $as_echo "$with_aix_soname" >&6; }
7884 if test aix != "$with_aix_soname"; then
7885 # For the AIX way of multilib, we name the shared archive member
7886 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7887 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7888 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7889 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7890 if test 64 = "${OBJECT_MODE-32}"; then
7891 shared_archive_member_spec=shr_64
7892 else
7893 shared_archive_member_spec=shr
7894 fi
7895 fi
7896 ;;
7897 *)
7898 with_aix_soname=aix
7899 ;;
7900 esac
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911 # This can be used to rebuild libtool when needed
7912 LIBTOOL_DEPS=$ltmain
7913
7914 # Always use our own libtool.
7915 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946 test -z "$LN_S" && LN_S="ln -s"
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961 if test -n "${ZSH_VERSION+set}"; then
7962 setopt NO_GLOB_SUBST
7963 fi
7964
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7966 $as_echo_n "checking for objdir... " >&6; }
7967 if ${lt_cv_objdir+:} false; then :
7968 $as_echo_n "(cached) " >&6
7969 else
7970 rm -f .libs 2>/dev/null
7971 mkdir .libs 2>/dev/null
7972 if test -d .libs; then
7973 lt_cv_objdir=.libs
7974 else
7975 # MS-DOS does not allow filenames that begin with a dot.
7976 lt_cv_objdir=_libs
7977 fi
7978 rmdir .libs 2>/dev/null
7979 fi
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7981 $as_echo "$lt_cv_objdir" >&6; }
7982 objdir=$lt_cv_objdir
7983
7984
7985
7986
7987
7988 cat >>confdefs.h <<_ACEOF
7989 #define LT_OBJDIR "$lt_cv_objdir/"
7990 _ACEOF
7991
7992
7993
7994
7995 case $host_os in
7996 aix3*)
7997 # AIX sometimes has problems with the GCC collect2 program. For some
7998 # reason, if we set the COLLECT_NAMES environment variable, the problems
7999 # vanish in a puff of smoke.
8000 if test set != "${COLLECT_NAMES+set}"; then
8001 COLLECT_NAMES=
8002 export COLLECT_NAMES
8003 fi
8004 ;;
8005 esac
8006
8007 # Global variables:
8008 ofile=libtool
8009 can_build_shared=yes
8010
8011 # All known linkers require a '.a' archive for static linking (except MSVC,
8012 # which needs '.lib').
8013 libext=a
8014
8015 with_gnu_ld=$lt_cv_prog_gnu_ld
8016
8017 old_CC=$CC
8018 old_CFLAGS=$CFLAGS
8019
8020 # Set sane defaults for various variables
8021 test -z "$CC" && CC=cc
8022 test -z "$LTCC" && LTCC=$CC
8023 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8024 test -z "$LD" && LD=ld
8025 test -z "$ac_objext" && ac_objext=o
8026
8027 func_cc_basename $compiler
8028 cc_basename=$func_cc_basename_result
8029
8030
8031 # Only perform the check for file, if the check method requires it
8032 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8033 case $deplibs_check_method in
8034 file_magic*)
8035 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8037 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8038 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8039 $as_echo_n "(cached) " >&6
8040 else
8041 case $MAGIC_CMD in
8042 [\\/*] | ?:[\\/]*)
8043 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8044 ;;
8045 *)
8046 lt_save_MAGIC_CMD=$MAGIC_CMD
8047 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8048 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8049 for ac_dir in $ac_dummy; do
8050 IFS=$lt_save_ifs
8051 test -z "$ac_dir" && ac_dir=.
8052 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8053 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8054 if test -n "$file_magic_test_file"; then
8055 case $deplibs_check_method in
8056 "file_magic "*)
8057 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8058 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8059 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8060 $EGREP "$file_magic_regex" > /dev/null; then
8061 :
8062 else
8063 cat <<_LT_EOF 1>&2
8064
8065 *** Warning: the command libtool uses to detect shared libraries,
8066 *** $file_magic_cmd, produces output that libtool cannot recognize.
8067 *** The result is that libtool may fail to recognize shared libraries
8068 *** as such. This will affect the creation of libtool libraries that
8069 *** depend on shared libraries, but programs linked with such libtool
8070 *** libraries will work regardless of this problem. Nevertheless, you
8071 *** may want to report the problem to your system manager and/or to
8072 *** [email protected]
8073
8074 _LT_EOF
8075 fi ;;
8076 esac
8077 fi
8078 break
8079 fi
8080 done
8081 IFS=$lt_save_ifs
8082 MAGIC_CMD=$lt_save_MAGIC_CMD
8083 ;;
8084 esac
8085 fi
8086
8087 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8088 if test -n "$MAGIC_CMD"; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8090 $as_echo "$MAGIC_CMD" >&6; }
8091 else
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8094 fi
8095
8096
8097
8098
8099
8100 if test -z "$lt_cv_path_MAGIC_CMD"; then
8101 if test -n "$ac_tool_prefix"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8103 $as_echo_n "checking for file... " >&6; }
8104 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8105 $as_echo_n "(cached) " >&6
8106 else
8107 case $MAGIC_CMD in
8108 [\\/*] | ?:[\\/]*)
8109 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8110 ;;
8111 *)
8112 lt_save_MAGIC_CMD=$MAGIC_CMD
8113 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8114 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8115 for ac_dir in $ac_dummy; do
8116 IFS=$lt_save_ifs
8117 test -z "$ac_dir" && ac_dir=.
8118 if test -f "$ac_dir/file"; then
8119 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8120 if test -n "$file_magic_test_file"; then
8121 case $deplibs_check_method in
8122 "file_magic "*)
8123 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8124 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8125 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8126 $EGREP "$file_magic_regex" > /dev/null; then
8127 :
8128 else
8129 cat <<_LT_EOF 1>&2
8130
8131 *** Warning: the command libtool uses to detect shared libraries,
8132 *** $file_magic_cmd, produces output that libtool cannot recognize.
8133 *** The result is that libtool may fail to recognize shared libraries
8134 *** as such. This will affect the creation of libtool libraries that
8135 *** depend on shared libraries, but programs linked with such libtool
8136 *** libraries will work regardless of this problem. Nevertheless, you
8137 *** may want to report the problem to your system manager and/or to
8138 *** [email protected]
8139
8140 _LT_EOF
8141 fi ;;
8142 esac
8143 fi
8144 break
8145 fi
8146 done
8147 IFS=$lt_save_ifs
8148 MAGIC_CMD=$lt_save_MAGIC_CMD
8149 ;;
8150 esac
8151 fi
8152
8153 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8154 if test -n "$MAGIC_CMD"; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8156 $as_echo "$MAGIC_CMD" >&6; }
8157 else
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 $as_echo "no" >&6; }
8160 fi
8161
8162
8163 else
8164 MAGIC_CMD=:
8165 fi
8166 fi
8167
8168 fi
8169 ;;
8170 esac
8171
8172 # Use C for the default configuration in the libtool script
8173
8174 lt_save_CC=$CC
8175 ac_ext=c
8176 ac_cpp='$CPP $CPPFLAGS'
8177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8180
8181
8182 # Source file extension for C test sources.
8183 ac_ext=c
8184
8185 # Object file extension for compiled C test sources.
8186 objext=o
8187 objext=$objext
8188
8189 # Code to be used in simple compile tests
8190 lt_simple_compile_test_code="int some_variable = 0;"
8191
8192 # Code to be used in simple link tests
8193 lt_simple_link_test_code='int main(){return(0);}'
8194
8195
8196
8197
8198
8199
8200
8201 # If no C compiler was specified, use CC.
8202 LTCC=${LTCC-"$CC"}
8203
8204 # If no C compiler flags were specified, use CFLAGS.
8205 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8206
8207 # Allow CC to be a program name with arguments.
8208 compiler=$CC
8209
8210 # Save the default compiler, since it gets overwritten when the other
8211 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8212 compiler_DEFAULT=$CC
8213
8214 # save warnings/boilerplate of simple test code
8215 ac_outfile=conftest.$ac_objext
8216 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8217 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8218 _lt_compiler_boilerplate=`cat conftest.err`
8219 $RM conftest*
8220
8221 ac_outfile=conftest.$ac_objext
8222 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8223 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8224 _lt_linker_boilerplate=`cat conftest.err`
8225 $RM -r conftest*
8226
8227
8228 if test -n "$compiler"; then
8229
8230 lt_prog_compiler_no_builtin_flag=
8231
8232 if test yes = "$GCC"; then
8233 case $cc_basename in
8234 nvcc*)
8235 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8236 *)
8237 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8238 esac
8239
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8241 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8242 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8243 $as_echo_n "(cached) " >&6
8244 else
8245 lt_cv_prog_compiler_rtti_exceptions=no
8246 ac_outfile=conftest.$ac_objext
8247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8248 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8249 # Insert the option either (1) after the last *FLAGS variable, or
8250 # (2) before a word containing "conftest.", or (3) at the end.
8251 # Note that $ac_compile itself does not contain backslashes and begins
8252 # with a dollar sign (not a hyphen), so the echo should work correctly.
8253 # The option is referenced via a variable to avoid confusing sed.
8254 lt_compile=`echo "$ac_compile" | $SED \
8255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8257 -e 's:$: $lt_compiler_flag:'`
8258 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8259 (eval "$lt_compile" 2>conftest.err)
8260 ac_status=$?
8261 cat conftest.err >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 if (exit $ac_status) && test -s "$ac_outfile"; then
8264 # The compiler can only warn and ignore the option if not recognized
8265 # So say no if there are warnings other than the usual output.
8266 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8268 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8269 lt_cv_prog_compiler_rtti_exceptions=yes
8270 fi
8271 fi
8272 $RM conftest*
8273
8274 fi
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8276 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8277
8278 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8279 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8280 else
8281 :
8282 fi
8283
8284 fi
8285
8286
8287
8288
8289
8290
8291 lt_prog_compiler_wl=
8292 lt_prog_compiler_pic=
8293 lt_prog_compiler_static=
8294
8295
8296 if test yes = "$GCC"; then
8297 lt_prog_compiler_wl='-Wl,'
8298 lt_prog_compiler_static='-static'
8299
8300 case $host_os in
8301 aix*)
8302 # All AIX code is PIC.
8303 if test ia64 = "$host_cpu"; then
8304 # AIX 5 now supports IA64 processor
8305 lt_prog_compiler_static='-Bstatic'
8306 fi
8307 lt_prog_compiler_pic='-fPIC'
8308 ;;
8309
8310 amigaos*)
8311 case $host_cpu in
8312 powerpc)
8313 # see comment about AmigaOS4 .so support
8314 lt_prog_compiler_pic='-fPIC'
8315 ;;
8316 m68k)
8317 # FIXME: we need at least 68020 code to build shared libraries, but
8318 # adding the '-m68020' flag to GCC prevents building anything better,
8319 # like '-m68040'.
8320 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8321 ;;
8322 esac
8323 ;;
8324
8325 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8326 # PIC is the default for these OSes.
8327 ;;
8328
8329 mingw* | cygwin* | pw32* | os2* | cegcc*)
8330 # This hack is so that the source file can tell whether it is being
8331 # built for inclusion in a dll (and should export symbols for example).
8332 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8333 # (--disable-auto-import) libraries
8334 lt_prog_compiler_pic='-DDLL_EXPORT'
8335 case $host_os in
8336 os2*)
8337 lt_prog_compiler_static='$wl-static'
8338 ;;
8339 esac
8340 ;;
8341
8342 darwin* | rhapsody*)
8343 # PIC is the default on this platform
8344 # Common symbols not allowed in MH_DYLIB files
8345 lt_prog_compiler_pic='-fno-common'
8346 ;;
8347
8348 haiku*)
8349 # PIC is the default for Haiku.
8350 # The "-static" flag exists, but is broken.
8351 lt_prog_compiler_static=
8352 ;;
8353
8354 hpux*)
8355 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8356 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8357 # sets the default TLS model and affects inlining.
8358 case $host_cpu in
8359 hppa*64*)
8360 # +Z the default
8361 ;;
8362 *)
8363 lt_prog_compiler_pic='-fPIC'
8364 ;;
8365 esac
8366 ;;
8367
8368 interix[3-9]*)
8369 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8370 # Instead, we relocate shared libraries at runtime.
8371 ;;
8372
8373 msdosdjgpp*)
8374 # Just because we use GCC doesn't mean we suddenly get shared libraries
8375 # on systems that don't support them.
8376 lt_prog_compiler_can_build_shared=no
8377 enable_shared=no
8378 ;;
8379
8380 *nto* | *qnx*)
8381 # QNX uses GNU C++, but need to define -shared option too, otherwise
8382 # it will coredump.
8383 lt_prog_compiler_pic='-fPIC -shared'
8384 ;;
8385
8386 sysv4*MP*)
8387 if test -d /usr/nec; then
8388 lt_prog_compiler_pic=-Kconform_pic
8389 fi
8390 ;;
8391
8392 *)
8393 lt_prog_compiler_pic='-fPIC'
8394 ;;
8395 esac
8396
8397 case $cc_basename in
8398 nvcc*) # Cuda Compiler Driver 2.2
8399 lt_prog_compiler_wl='-Xlinker '
8400 if test -n "$lt_prog_compiler_pic"; then
8401 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8402 fi
8403 ;;
8404 esac
8405 else
8406 # PORTME Check for flag to pass linker flags through the system compiler.
8407 case $host_os in
8408 aix*)
8409 lt_prog_compiler_wl='-Wl,'
8410 if test ia64 = "$host_cpu"; then
8411 # AIX 5 now supports IA64 processor
8412 lt_prog_compiler_static='-Bstatic'
8413 else
8414 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8415 fi
8416 ;;
8417
8418 darwin* | rhapsody*)
8419 # PIC is the default on this platform
8420 # Common symbols not allowed in MH_DYLIB files
8421 lt_prog_compiler_pic='-fno-common'
8422 case $cc_basename in
8423 nagfor*)
8424 # NAG Fortran compiler
8425 lt_prog_compiler_wl='-Wl,-Wl,,'
8426 lt_prog_compiler_pic='-PIC'
8427 lt_prog_compiler_static='-Bstatic'
8428 ;;
8429 esac
8430 ;;
8431
8432 mingw* | cygwin* | pw32* | os2* | cegcc*)
8433 # This hack is so that the source file can tell whether it is being
8434 # built for inclusion in a dll (and should export symbols for example).
8435 lt_prog_compiler_pic='-DDLL_EXPORT'
8436 case $host_os in
8437 os2*)
8438 lt_prog_compiler_static='$wl-static'
8439 ;;
8440 esac
8441 ;;
8442
8443 hpux9* | hpux10* | hpux11*)
8444 lt_prog_compiler_wl='-Wl,'
8445 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8446 # not for PA HP-UX.
8447 case $host_cpu in
8448 hppa*64*|ia64*)
8449 # +Z the default
8450 ;;
8451 *)
8452 lt_prog_compiler_pic='+Z'
8453 ;;
8454 esac
8455 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8456 lt_prog_compiler_static='$wl-a ${wl}archive'
8457 ;;
8458
8459 irix5* | irix6* | nonstopux*)
8460 lt_prog_compiler_wl='-Wl,'
8461 # PIC (with -KPIC) is the default.
8462 lt_prog_compiler_static='-non_shared'
8463 ;;
8464
8465 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8466 case $cc_basename in
8467 # old Intel for x86_64, which still supported -KPIC.
8468 ecc*)
8469 lt_prog_compiler_wl='-Wl,'
8470 lt_prog_compiler_pic='-KPIC'
8471 lt_prog_compiler_static='-static'
8472 ;;
8473 # icc used to be incompatible with GCC.
8474 # ICC 10 doesn't accept -KPIC any more.
8475 icc* | ifort*)
8476 lt_prog_compiler_wl='-Wl,'
8477 lt_prog_compiler_pic='-fPIC'
8478 lt_prog_compiler_static='-static'
8479 ;;
8480 # Lahey Fortran 8.1.
8481 lf95*)
8482 lt_prog_compiler_wl='-Wl,'
8483 lt_prog_compiler_pic='--shared'
8484 lt_prog_compiler_static='--static'
8485 ;;
8486 nagfor*)
8487 # NAG Fortran compiler
8488 lt_prog_compiler_wl='-Wl,-Wl,,'
8489 lt_prog_compiler_pic='-PIC'
8490 lt_prog_compiler_static='-Bstatic'
8491 ;;
8492 tcc*)
8493 # Fabrice Bellard et al's Tiny C Compiler
8494 lt_prog_compiler_wl='-Wl,'
8495 lt_prog_compiler_pic='-fPIC'
8496 lt_prog_compiler_static='-static'
8497 ;;
8498 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8499 # Portland Group compilers (*not* the Pentium gcc compiler,
8500 # which looks to be a dead project)
8501 lt_prog_compiler_wl='-Wl,'
8502 lt_prog_compiler_pic='-fpic'
8503 lt_prog_compiler_static='-Bstatic'
8504 ;;
8505 ccc*)
8506 lt_prog_compiler_wl='-Wl,'
8507 # All Alpha code is PIC.
8508 lt_prog_compiler_static='-non_shared'
8509 ;;
8510 xl* | bgxl* | bgf* | mpixl*)
8511 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8512 lt_prog_compiler_wl='-Wl,'
8513 lt_prog_compiler_pic='-qpic'
8514 lt_prog_compiler_static='-qstaticlink'
8515 ;;
8516 *)
8517 case `$CC -V 2>&1 | sed 5q` in
8518 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8519 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8520 lt_prog_compiler_pic='-KPIC'
8521 lt_prog_compiler_static='-Bstatic'
8522 lt_prog_compiler_wl=''
8523 ;;
8524 *Sun\ F* | *Sun*Fortran*)
8525 lt_prog_compiler_pic='-KPIC'
8526 lt_prog_compiler_static='-Bstatic'
8527 lt_prog_compiler_wl='-Qoption ld '
8528 ;;
8529 *Sun\ C*)
8530 # Sun C 5.9
8531 lt_prog_compiler_pic='-KPIC'
8532 lt_prog_compiler_static='-Bstatic'
8533 lt_prog_compiler_wl='-Wl,'
8534 ;;
8535 *Intel*\ [CF]*Compiler*)
8536 lt_prog_compiler_wl='-Wl,'
8537 lt_prog_compiler_pic='-fPIC'
8538 lt_prog_compiler_static='-static'
8539 ;;
8540 *Portland\ Group*)
8541 lt_prog_compiler_wl='-Wl,'
8542 lt_prog_compiler_pic='-fpic'
8543 lt_prog_compiler_static='-Bstatic'
8544 ;;
8545 esac
8546 ;;
8547 esac
8548 ;;
8549
8550 newsos6)
8551 lt_prog_compiler_pic='-KPIC'
8552 lt_prog_compiler_static='-Bstatic'
8553 ;;
8554
8555 *nto* | *qnx*)
8556 # QNX uses GNU C++, but need to define -shared option too, otherwise
8557 # it will coredump.
8558 lt_prog_compiler_pic='-fPIC -shared'
8559 ;;
8560
8561 osf3* | osf4* | osf5*)
8562 lt_prog_compiler_wl='-Wl,'
8563 # All OSF/1 code is PIC.
8564 lt_prog_compiler_static='-non_shared'
8565 ;;
8566
8567 rdos*)
8568 lt_prog_compiler_static='-non_shared'
8569 ;;
8570
8571 solaris*)
8572 lt_prog_compiler_pic='-KPIC'
8573 lt_prog_compiler_static='-Bstatic'
8574 case $cc_basename in
8575 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8576 lt_prog_compiler_wl='-Qoption ld ';;
8577 *)
8578 lt_prog_compiler_wl='-Wl,';;
8579 esac
8580 ;;
8581
8582 sunos4*)
8583 lt_prog_compiler_wl='-Qoption ld '
8584 lt_prog_compiler_pic='-PIC'
8585 lt_prog_compiler_static='-Bstatic'
8586 ;;
8587
8588 sysv4 | sysv4.2uw2* | sysv4.3*)
8589 lt_prog_compiler_wl='-Wl,'
8590 lt_prog_compiler_pic='-KPIC'
8591 lt_prog_compiler_static='-Bstatic'
8592 ;;
8593
8594 sysv4*MP*)
8595 if test -d /usr/nec; then
8596 lt_prog_compiler_pic='-Kconform_pic'
8597 lt_prog_compiler_static='-Bstatic'
8598 fi
8599 ;;
8600
8601 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8602 lt_prog_compiler_wl='-Wl,'
8603 lt_prog_compiler_pic='-KPIC'
8604 lt_prog_compiler_static='-Bstatic'
8605 ;;
8606
8607 unicos*)
8608 lt_prog_compiler_wl='-Wl,'
8609 lt_prog_compiler_can_build_shared=no
8610 ;;
8611
8612 uts4*)
8613 lt_prog_compiler_pic='-pic'
8614 lt_prog_compiler_static='-Bstatic'
8615 ;;
8616
8617 *)
8618 lt_prog_compiler_can_build_shared=no
8619 ;;
8620 esac
8621 fi
8622
8623 case $host_os in
8624 # For platforms that do not support PIC, -DPIC is meaningless:
8625 *djgpp*)
8626 lt_prog_compiler_pic=
8627 ;;
8628 *)
8629 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8630 ;;
8631 esac
8632
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8634 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8635 if ${lt_cv_prog_compiler_pic+:} false; then :
8636 $as_echo_n "(cached) " >&6
8637 else
8638 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8639 fi
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8641 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8642 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8643
8644 #
8645 # Check to make sure the PIC flag actually works.
8646 #
8647 if test -n "$lt_prog_compiler_pic"; then
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8649 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8650 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8651 $as_echo_n "(cached) " >&6
8652 else
8653 lt_cv_prog_compiler_pic_works=no
8654 ac_outfile=conftest.$ac_objext
8655 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8656 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8657 # Insert the option either (1) after the last *FLAGS variable, or
8658 # (2) before a word containing "conftest.", or (3) at the end.
8659 # Note that $ac_compile itself does not contain backslashes and begins
8660 # with a dollar sign (not a hyphen), so the echo should work correctly.
8661 # The option is referenced via a variable to avoid confusing sed.
8662 lt_compile=`echo "$ac_compile" | $SED \
8663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8665 -e 's:$: $lt_compiler_flag:'`
8666 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8667 (eval "$lt_compile" 2>conftest.err)
8668 ac_status=$?
8669 cat conftest.err >&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 if (exit $ac_status) && test -s "$ac_outfile"; then
8672 # The compiler can only warn and ignore the option if not recognized
8673 # So say no if there are warnings other than the usual output.
8674 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8675 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8676 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8677 lt_cv_prog_compiler_pic_works=yes
8678 fi
8679 fi
8680 $RM conftest*
8681
8682 fi
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8684 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8685
8686 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8687 case $lt_prog_compiler_pic in
8688 "" | " "*) ;;
8689 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8690 esac
8691 else
8692 lt_prog_compiler_pic=
8693 lt_prog_compiler_can_build_shared=no
8694 fi
8695
8696 fi
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708 #
8709 # Check to make sure the static flag actually works.
8710 #
8711 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8713 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8714 if ${lt_cv_prog_compiler_static_works+:} false; then :
8715 $as_echo_n "(cached) " >&6
8716 else
8717 lt_cv_prog_compiler_static_works=no
8718 save_LDFLAGS=$LDFLAGS
8719 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8720 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8721 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8722 # The linker can only warn and ignore the option if not recognized
8723 # So say no if there are warnings
8724 if test -s conftest.err; then
8725 # Append any errors to the config.log.
8726 cat conftest.err 1>&5
8727 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8728 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8729 if diff conftest.exp conftest.er2 >/dev/null; then
8730 lt_cv_prog_compiler_static_works=yes
8731 fi
8732 else
8733 lt_cv_prog_compiler_static_works=yes
8734 fi
8735 fi
8736 $RM -r conftest*
8737 LDFLAGS=$save_LDFLAGS
8738
8739 fi
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8741 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8742
8743 if test yes = "$lt_cv_prog_compiler_static_works"; then
8744 :
8745 else
8746 lt_prog_compiler_static=
8747 fi
8748
8749
8750
8751
8752
8753
8754
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8756 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8757 if ${lt_cv_prog_compiler_c_o+:} false; then :
8758 $as_echo_n "(cached) " >&6
8759 else
8760 lt_cv_prog_compiler_c_o=no
8761 $RM -r conftest 2>/dev/null
8762 mkdir conftest
8763 cd conftest
8764 mkdir out
8765 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8766
8767 lt_compiler_flag="-o out/conftest2.$ac_objext"
8768 # Insert the option either (1) after the last *FLAGS variable, or
8769 # (2) before a word containing "conftest.", or (3) at the end.
8770 # Note that $ac_compile itself does not contain backslashes and begins
8771 # with a dollar sign (not a hyphen), so the echo should work correctly.
8772 lt_compile=`echo "$ac_compile" | $SED \
8773 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8774 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8775 -e 's:$: $lt_compiler_flag:'`
8776 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8777 (eval "$lt_compile" 2>out/conftest.err)
8778 ac_status=$?
8779 cat out/conftest.err >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8782 then
8783 # The compiler can only warn and ignore the option if not recognized
8784 # So say no if there are warnings
8785 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8786 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8787 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8788 lt_cv_prog_compiler_c_o=yes
8789 fi
8790 fi
8791 chmod u+w . 2>&5
8792 $RM conftest*
8793 # SGI C++ compiler will create directory out/ii_files/ for
8794 # template instantiation
8795 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8796 $RM out/* && rmdir out
8797 cd ..
8798 $RM -r conftest
8799 $RM conftest*
8800
8801 fi
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8803 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8804
8805
8806
8807
8808
8809
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8811 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8812 if ${lt_cv_prog_compiler_c_o+:} false; then :
8813 $as_echo_n "(cached) " >&6
8814 else
8815 lt_cv_prog_compiler_c_o=no
8816 $RM -r conftest 2>/dev/null
8817 mkdir conftest
8818 cd conftest
8819 mkdir out
8820 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8821
8822 lt_compiler_flag="-o out/conftest2.$ac_objext"
8823 # Insert the option either (1) after the last *FLAGS variable, or
8824 # (2) before a word containing "conftest.", or (3) at the end.
8825 # Note that $ac_compile itself does not contain backslashes and begins
8826 # with a dollar sign (not a hyphen), so the echo should work correctly.
8827 lt_compile=`echo "$ac_compile" | $SED \
8828 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8830 -e 's:$: $lt_compiler_flag:'`
8831 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8832 (eval "$lt_compile" 2>out/conftest.err)
8833 ac_status=$?
8834 cat out/conftest.err >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8837 then
8838 # The compiler can only warn and ignore the option if not recognized
8839 # So say no if there are warnings
8840 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8841 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8842 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8843 lt_cv_prog_compiler_c_o=yes
8844 fi
8845 fi
8846 chmod u+w . 2>&5
8847 $RM conftest*
8848 # SGI C++ compiler will create directory out/ii_files/ for
8849 # template instantiation
8850 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8851 $RM out/* && rmdir out
8852 cd ..
8853 $RM -r conftest
8854 $RM conftest*
8855
8856 fi
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8858 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8859
8860
8861
8862
8863 hard_links=nottested
8864 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8865 # do not overwrite the value of need_locks provided by the user
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8867 $as_echo_n "checking if we can lock with hard links... " >&6; }
8868 hard_links=yes
8869 $RM conftest*
8870 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8871 touch conftest.a
8872 ln conftest.a conftest.b 2>&5 || hard_links=no
8873 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8875 $as_echo "$hard_links" >&6; }
8876 if test no = "$hard_links"; then
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8878 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8879 need_locks=warn
8880 fi
8881 else
8882 need_locks=no
8883 fi
8884
8885
8886
8887
8888
8889
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8891 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8892
8893 runpath_var=
8894 allow_undefined_flag=
8895 always_export_symbols=no
8896 archive_cmds=
8897 archive_expsym_cmds=
8898 compiler_needs_object=no
8899 enable_shared_with_static_runtimes=no
8900 export_dynamic_flag_spec=
8901 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8902 hardcode_automatic=no
8903 hardcode_direct=no
8904 hardcode_direct_absolute=no
8905 hardcode_libdir_flag_spec=
8906 hardcode_libdir_separator=
8907 hardcode_minus_L=no
8908 hardcode_shlibpath_var=unsupported
8909 inherit_rpath=no
8910 link_all_deplibs=unknown
8911 module_cmds=
8912 module_expsym_cmds=
8913 old_archive_from_new_cmds=
8914 old_archive_from_expsyms_cmds=
8915 thread_safe_flag_spec=
8916 whole_archive_flag_spec=
8917 # include_expsyms should be a list of space-separated symbols to be *always*
8918 # included in the symbol list
8919 include_expsyms=
8920 # exclude_expsyms can be an extended regexp of symbols to exclude
8921 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8922 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8923 # as well as any symbol that contains 'd'.
8924 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8925 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8926 # platforms (ab)use it in PIC code, but their linkers get confused if
8927 # the symbol is explicitly referenced. Since portable code cannot
8928 # rely on this symbol name, it's probably fine to never include it in
8929 # preloaded symbol tables.
8930 # Exclude shared library initialization/finalization symbols.
8931 extract_expsyms_cmds=
8932
8933 case $host_os in
8934 cygwin* | mingw* | pw32* | cegcc*)
8935 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8936 # When not using gcc, we currently assume that we are using
8937 # Microsoft Visual C++.
8938 if test yes != "$GCC"; then
8939 with_gnu_ld=no
8940 fi
8941 ;;
8942 interix*)
8943 # we just hope/assume this is gcc and not c89 (= MSVC++)
8944 with_gnu_ld=yes
8945 ;;
8946 openbsd* | bitrig*)
8947 with_gnu_ld=no
8948 ;;
8949 esac
8950
8951 ld_shlibs=yes
8952
8953 # On some targets, GNU ld is compatible enough with the native linker
8954 # that we're better off using the native interface for both.
8955 lt_use_gnu_ld_interface=no
8956 if test yes = "$with_gnu_ld"; then
8957 case $host_os in
8958 aix*)
8959 # The AIX port of GNU ld has always aspired to compatibility
8960 # with the native linker. However, as the warning in the GNU ld
8961 # block says, versions before 2.19.5* couldn't really create working
8962 # shared libraries, regardless of the interface used.
8963 case `$LD -v 2>&1` in
8964 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8965 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8966 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8967 *)
8968 lt_use_gnu_ld_interface=yes
8969 ;;
8970 esac
8971 ;;
8972 *)
8973 lt_use_gnu_ld_interface=yes
8974 ;;
8975 esac
8976 fi
8977
8978 if test yes = "$lt_use_gnu_ld_interface"; then
8979 # If archive_cmds runs LD, not CC, wlarc should be empty
8980 wlarc='$wl'
8981
8982 # Set some defaults for GNU ld with shared library support. These
8983 # are reset later if shared libraries are not supported. Putting them
8984 # here allows them to be overridden if necessary.
8985 runpath_var=LD_RUN_PATH
8986 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8987 export_dynamic_flag_spec='$wl--export-dynamic'
8988 # ancient GNU ld didn't support --whole-archive et. al.
8989 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8990 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8991 else
8992 whole_archive_flag_spec=
8993 fi
8994 supports_anon_versioning=no
8995 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8996 *GNU\ gold*) supports_anon_versioning=yes ;;
8997 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8998 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8999 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9000 *\ 2.11.*) ;; # other 2.11 versions
9001 *) supports_anon_versioning=yes ;;
9002 esac
9003
9004 # See if GNU ld supports shared libraries.
9005 case $host_os in
9006 aix[3-9]*)
9007 # On AIX/PPC, the GNU linker is very broken
9008 if test ia64 != "$host_cpu"; then
9009 ld_shlibs=no
9010 cat <<_LT_EOF 1>&2
9011
9012 *** Warning: the GNU linker, at least up to release 2.19, is reported
9013 *** to be unable to reliably create shared libraries on AIX.
9014 *** Therefore, libtool is disabling shared libraries support. If you
9015 *** really care for shared libraries, you may want to install binutils
9016 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9017 *** You will then need to restart the configuration process.
9018
9019 _LT_EOF
9020 fi
9021 ;;
9022
9023 amigaos*)
9024 case $host_cpu in
9025 powerpc)
9026 # see comment about AmigaOS4 .so support
9027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9028 archive_expsym_cmds=''
9029 ;;
9030 m68k)
9031 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)'
9032 hardcode_libdir_flag_spec='-L$libdir'
9033 hardcode_minus_L=yes
9034 ;;
9035 esac
9036 ;;
9037
9038 beos*)
9039 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9040 allow_undefined_flag=unsupported
9041 # Joseph Beckenbach <[email protected]> says some releases of gcc
9042 # support --undefined. This deserves some investigation. FIXME
9043 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9044 else
9045 ld_shlibs=no
9046 fi
9047 ;;
9048
9049 cygwin* | mingw* | pw32* | cegcc*)
9050 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9051 # as there is no search path for DLLs.
9052 hardcode_libdir_flag_spec='-L$libdir'
9053 export_dynamic_flag_spec='$wl--export-all-symbols'
9054 allow_undefined_flag=unsupported
9055 always_export_symbols=no
9056 enable_shared_with_static_runtimes=yes
9057 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9058 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9059
9060 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9061 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9062 # If the export-symbols file already is a .def file, use it as
9063 # is; otherwise, prepend EXPORTS...
9064 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9065 cp $export_symbols $output_objdir/$soname.def;
9066 else
9067 echo EXPORTS > $output_objdir/$soname.def;
9068 cat $export_symbols >> $output_objdir/$soname.def;
9069 fi~
9070 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9071 else
9072 ld_shlibs=no
9073 fi
9074 ;;
9075
9076 haiku*)
9077 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9078 link_all_deplibs=yes
9079 ;;
9080
9081 os2*)
9082 hardcode_libdir_flag_spec='-L$libdir'
9083 hardcode_minus_L=yes
9084 allow_undefined_flag=unsupported
9085 shrext_cmds=.dll
9086 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9087 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9088 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9089 $ECHO EXPORTS >> $output_objdir/$libname.def~
9090 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9091 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9092 emximp -o $lib $output_objdir/$libname.def'
9093 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9094 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9095 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9096 $ECHO EXPORTS >> $output_objdir/$libname.def~
9097 prefix_cmds="$SED"~
9098 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9099 prefix_cmds="$prefix_cmds -e 1d";
9100 fi~
9101 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9102 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9103 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9104 emximp -o $lib $output_objdir/$libname.def'
9105 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9106 enable_shared_with_static_runtimes=yes
9107 ;;
9108
9109 interix[3-9]*)
9110 hardcode_direct=no
9111 hardcode_shlibpath_var=no
9112 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9113 export_dynamic_flag_spec='$wl-E'
9114 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9115 # Instead, shared libraries are loaded at an image base (0x10000000 by
9116 # default) and relocated if they conflict, which is a slow very memory
9117 # consuming and fragmenting process. To avoid this, we pick a random,
9118 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9119 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9120 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9121 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'
9122 ;;
9123
9124 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9125 tmp_diet=no
9126 if test linux-dietlibc = "$host_os"; then
9127 case $cc_basename in
9128 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9129 esac
9130 fi
9131 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9132 && test no = "$tmp_diet"
9133 then
9134 tmp_addflag=' $pic_flag'
9135 tmp_sharedflag='-shared'
9136 case $cc_basename,$host_cpu in
9137 pgcc*) # Portland Group C compiler
9138 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9139 tmp_addflag=' $pic_flag'
9140 ;;
9141 pgf77* | pgf90* | pgf95* | pgfortran*)
9142 # Portland Group f77 and f90 compilers
9143 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9144 tmp_addflag=' $pic_flag -Mnomain' ;;
9145 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9146 tmp_addflag=' -i_dynamic' ;;
9147 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9148 tmp_addflag=' -i_dynamic -nofor_main' ;;
9149 ifc* | ifort*) # Intel Fortran compiler
9150 tmp_addflag=' -nofor_main' ;;
9151 lf95*) # Lahey Fortran 8.1
9152 whole_archive_flag_spec=
9153 tmp_sharedflag='--shared' ;;
9154 nagfor*) # NAGFOR 5.3
9155 tmp_sharedflag='-Wl,-shared' ;;
9156 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9157 tmp_sharedflag='-qmkshrobj'
9158 tmp_addflag= ;;
9159 nvcc*) # Cuda Compiler Driver 2.2
9160 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9161 compiler_needs_object=yes
9162 ;;
9163 esac
9164 case `$CC -V 2>&1 | sed 5q` in
9165 *Sun\ C*) # Sun C 5.9
9166 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9167 compiler_needs_object=yes
9168 tmp_sharedflag='-G' ;;
9169 *Sun\ F*) # Sun Fortran 8.3
9170 tmp_sharedflag='-G' ;;
9171 esac
9172 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9173
9174 if test yes = "$supports_anon_versioning"; then
9175 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9176 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9177 echo "local: *; };" >> $output_objdir/$libname.ver~
9178 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9179 fi
9180
9181 case $cc_basename in
9182 tcc*)
9183 export_dynamic_flag_spec='-rdynamic'
9184 ;;
9185 xlf* | bgf* | bgxlf* | mpixlf*)
9186 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9187 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9188 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9189 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9190 if test yes = "$supports_anon_versioning"; then
9191 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9192 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9193 echo "local: *; };" >> $output_objdir/$libname.ver~
9194 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9195 fi
9196 ;;
9197 esac
9198 else
9199 ld_shlibs=no
9200 fi
9201 ;;
9202
9203 netbsd*)
9204 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9205 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9206 wlarc=
9207 else
9208 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9209 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9210 fi
9211 ;;
9212
9213 solaris*)
9214 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9215 ld_shlibs=no
9216 cat <<_LT_EOF 1>&2
9217
9218 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9219 *** create shared libraries on Solaris systems. Therefore, libtool
9220 *** is disabling shared libraries support. We urge you to upgrade GNU
9221 *** binutils to release 2.9.1 or newer. Another option is to modify
9222 *** your PATH or compiler configuration so that the native linker is
9223 *** used, and then restart.
9224
9225 _LT_EOF
9226 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9227 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9228 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9229 else
9230 ld_shlibs=no
9231 fi
9232 ;;
9233
9234 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9235 case `$LD -v 2>&1` in
9236 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9237 ld_shlibs=no
9238 cat <<_LT_EOF 1>&2
9239
9240 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9241 *** reliably create shared libraries on SCO systems. Therefore, libtool
9242 *** is disabling shared libraries support. We urge you to upgrade GNU
9243 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9244 *** your PATH or compiler configuration so that the native linker is
9245 *** used, and then restart.
9246
9247 _LT_EOF
9248 ;;
9249 *)
9250 # For security reasons, it is highly recommended that you always
9251 # use absolute paths for naming shared libraries, and exclude the
9252 # DT_RUNPATH tag from executables and libraries. But doing so
9253 # requires that you compile everything twice, which is a pain.
9254 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9255 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9257 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9258 else
9259 ld_shlibs=no
9260 fi
9261 ;;
9262 esac
9263 ;;
9264
9265 sunos4*)
9266 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9267 wlarc=
9268 hardcode_direct=yes
9269 hardcode_shlibpath_var=no
9270 ;;
9271
9272 *)
9273 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9274 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9275 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9276 else
9277 ld_shlibs=no
9278 fi
9279 ;;
9280 esac
9281
9282 if test no = "$ld_shlibs"; then
9283 runpath_var=
9284 hardcode_libdir_flag_spec=
9285 export_dynamic_flag_spec=
9286 whole_archive_flag_spec=
9287 fi
9288 else
9289 # PORTME fill in a description of your system's linker (not GNU ld)
9290 case $host_os in
9291 aix3*)
9292 allow_undefined_flag=unsupported
9293 always_export_symbols=yes
9294 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'
9295 # Note: this linker hardcodes the directories in LIBPATH if there
9296 # are no directories specified by -L.
9297 hardcode_minus_L=yes
9298 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9299 # Neither direct hardcoding nor static linking is supported with a
9300 # broken collect2.
9301 hardcode_direct=unsupported
9302 fi
9303 ;;
9304
9305 aix[4-9]*)
9306 if test ia64 = "$host_cpu"; then
9307 # On IA64, the linker does run time linking by default, so we don't
9308 # have to do anything special.
9309 aix_use_runtimelinking=no
9310 exp_sym_flag='-Bexport'
9311 no_entry_flag=
9312 else
9313 # If we're using GNU nm, then we don't want the "-C" option.
9314 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9315 # Without the "-l" option, or with the "-B" option, AIX nm treats
9316 # weak defined symbols like other global defined symbols, whereas
9317 # GNU nm marks them as "W".
9318 # While the 'weak' keyword is ignored in the Export File, we need
9319 # it in the Import File for the 'aix-soname' feature, so we have
9320 # to replace the "-B" option with "-P" for AIX nm.
9321 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9322 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9323 else
9324 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9325 fi
9326 aix_use_runtimelinking=no
9327
9328 # Test if we are trying to use run time linking or normal
9329 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9330 # have runtime linking enabled, and use it for executables.
9331 # For shared libraries, we enable/disable runtime linking
9332 # depending on the kind of the shared library created -
9333 # when "with_aix_soname,aix_use_runtimelinking" is:
9334 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9335 # "aix,yes" lib.so shared, rtl:yes, for executables
9336 # lib.a static archive
9337 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9338 # lib.a(lib.so.V) shared, rtl:no, for executables
9339 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9340 # lib.a(lib.so.V) shared, rtl:no
9341 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9342 # lib.a static archive
9343 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9344 for ld_flag in $LDFLAGS; do
9345 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9346 aix_use_runtimelinking=yes
9347 break
9348 fi
9349 done
9350 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9351 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9352 # so we don't have lib.a shared libs to link our executables.
9353 # We have to force runtime linking in this case.
9354 aix_use_runtimelinking=yes
9355 LDFLAGS="$LDFLAGS -Wl,-brtl"
9356 fi
9357 ;;
9358 esac
9359
9360 exp_sym_flag='-bexport'
9361 no_entry_flag='-bnoentry'
9362 fi
9363
9364 # When large executables or shared objects are built, AIX ld can
9365 # have problems creating the table of contents. If linking a library
9366 # or program results in "error TOC overflow" add -mminimal-toc to
9367 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9368 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9369
9370 archive_cmds=''
9371 hardcode_direct=yes
9372 hardcode_direct_absolute=yes
9373 hardcode_libdir_separator=':'
9374 link_all_deplibs=yes
9375 file_list_spec='$wl-f,'
9376 case $with_aix_soname,$aix_use_runtimelinking in
9377 aix,*) ;; # traditional, no import file
9378 svr4,* | *,yes) # use import file
9379 # The Import File defines what to hardcode.
9380 hardcode_direct=no
9381 hardcode_direct_absolute=no
9382 ;;
9383 esac
9384
9385 if test yes = "$GCC"; then
9386 case $host_os in aix4.[012]|aix4.[012].*)
9387 # We only want to do this on AIX 4.2 and lower, the check
9388 # below for broken collect2 doesn't work under 4.3+
9389 collect2name=`$CC -print-prog-name=collect2`
9390 if test -f "$collect2name" &&
9391 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9392 then
9393 # We have reworked collect2
9394 :
9395 else
9396 # We have old collect2
9397 hardcode_direct=unsupported
9398 # It fails to find uninstalled libraries when the uninstalled
9399 # path is not listed in the libpath. Setting hardcode_minus_L
9400 # to unsupported forces relinking
9401 hardcode_minus_L=yes
9402 hardcode_libdir_flag_spec='-L$libdir'
9403 hardcode_libdir_separator=
9404 fi
9405 ;;
9406 esac
9407 shared_flag='-shared'
9408 if test yes = "$aix_use_runtimelinking"; then
9409 shared_flag="$shared_flag "'$wl-G'
9410 fi
9411 # Need to ensure runtime linking is disabled for the traditional
9412 # shared library, or the linker may eventually find shared libraries
9413 # /with/ Import File - we do not want to mix them.
9414 shared_flag_aix='-shared'
9415 shared_flag_svr4='-shared $wl-G'
9416 else
9417 # not using gcc
9418 if test ia64 = "$host_cpu"; then
9419 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9420 # chokes on -Wl,-G. The following line is correct:
9421 shared_flag='-G'
9422 else
9423 if test yes = "$aix_use_runtimelinking"; then
9424 shared_flag='$wl-G'
9425 else
9426 shared_flag='$wl-bM:SRE'
9427 fi
9428 shared_flag_aix='$wl-bM:SRE'
9429 shared_flag_svr4='$wl-G'
9430 fi
9431 fi
9432
9433 export_dynamic_flag_spec='$wl-bexpall'
9434 # It seems that -bexpall does not export symbols beginning with
9435 # underscore (_), so it is better to generate a list of symbols to export.
9436 always_export_symbols=yes
9437 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9438 # Warning - without using the other runtime loading flags (-brtl),
9439 # -berok will link without error, but may produce a broken library.
9440 allow_undefined_flag='-berok'
9441 # Determine the default libpath from the value encoded in an
9442 # empty executable.
9443 if test set = "${lt_cv_aix_libpath+set}"; then
9444 aix_libpath=$lt_cv_aix_libpath
9445 else
9446 if ${lt_cv_aix_libpath_+:} false; then :
9447 $as_echo_n "(cached) " >&6
9448 else
9449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450 /* end confdefs.h. */
9451
9452 int
9453 main ()
9454 {
9455
9456 ;
9457 return 0;
9458 }
9459 _ACEOF
9460 if ac_fn_c_try_link "$LINENO"; then :
9461
9462 lt_aix_libpath_sed='
9463 /Import File Strings/,/^$/ {
9464 /^0/ {
9465 s/^0 *\([^ ]*\) *$/\1/
9466 p
9467 }
9468 }'
9469 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9470 # Check for a 64-bit object if we didn't find anything.
9471 if test -z "$lt_cv_aix_libpath_"; then
9472 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9473 fi
9474 fi
9475 rm -f core conftest.err conftest.$ac_objext \
9476 conftest$ac_exeext conftest.$ac_ext
9477 if test -z "$lt_cv_aix_libpath_"; then
9478 lt_cv_aix_libpath_=/usr/lib:/lib
9479 fi
9480
9481 fi
9482
9483 aix_libpath=$lt_cv_aix_libpath_
9484 fi
9485
9486 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9487 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9488 else
9489 if test ia64 = "$host_cpu"; then
9490 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9491 allow_undefined_flag="-z nodefs"
9492 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"
9493 else
9494 # Determine the default libpath from the value encoded in an
9495 # empty executable.
9496 if test set = "${lt_cv_aix_libpath+set}"; then
9497 aix_libpath=$lt_cv_aix_libpath
9498 else
9499 if ${lt_cv_aix_libpath_+:} false; then :
9500 $as_echo_n "(cached) " >&6
9501 else
9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9504
9505 int
9506 main ()
9507 {
9508
9509 ;
9510 return 0;
9511 }
9512 _ACEOF
9513 if ac_fn_c_try_link "$LINENO"; then :
9514
9515 lt_aix_libpath_sed='
9516 /Import File Strings/,/^$/ {
9517 /^0/ {
9518 s/^0 *\([^ ]*\) *$/\1/
9519 p
9520 }
9521 }'
9522 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9523 # Check for a 64-bit object if we didn't find anything.
9524 if test -z "$lt_cv_aix_libpath_"; then
9525 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9526 fi
9527 fi
9528 rm -f core conftest.err conftest.$ac_objext \
9529 conftest$ac_exeext conftest.$ac_ext
9530 if test -z "$lt_cv_aix_libpath_"; then
9531 lt_cv_aix_libpath_=/usr/lib:/lib
9532 fi
9533
9534 fi
9535
9536 aix_libpath=$lt_cv_aix_libpath_
9537 fi
9538
9539 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9540 # Warning - without using the other run time loading flags,
9541 # -berok will link without error, but may produce a broken library.
9542 no_undefined_flag=' $wl-bernotok'
9543 allow_undefined_flag=' $wl-berok'
9544 if test yes = "$with_gnu_ld"; then
9545 # We only use this code for GNU lds that support --whole-archive.
9546 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9547 else
9548 # Exported symbols can be pulled into shared objects from archives
9549 whole_archive_flag_spec='$convenience'
9550 fi
9551 archive_cmds_need_lc=yes
9552 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9553 # -brtl affects multiple linker settings, -berok does not and is overridden later
9554 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9555 if test svr4 != "$with_aix_soname"; then
9556 # This is similar to how AIX traditionally builds its shared libraries.
9557 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9558 fi
9559 if test aix != "$with_aix_soname"; then
9560 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9561 else
9562 # used by -dlpreopen to get the symbols
9563 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9564 fi
9565 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9566 fi
9567 fi
9568 ;;
9569
9570 amigaos*)
9571 case $host_cpu in
9572 powerpc)
9573 # see comment about AmigaOS4 .so support
9574 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9575 archive_expsym_cmds=''
9576 ;;
9577 m68k)
9578 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)'
9579 hardcode_libdir_flag_spec='-L$libdir'
9580 hardcode_minus_L=yes
9581 ;;
9582 esac
9583 ;;
9584
9585 bsdi[45]*)
9586 export_dynamic_flag_spec=-rdynamic
9587 ;;
9588
9589 cygwin* | mingw* | pw32* | cegcc*)
9590 # When not using gcc, we currently assume that we are using
9591 # Microsoft Visual C++.
9592 # hardcode_libdir_flag_spec is actually meaningless, as there is
9593 # no search path for DLLs.
9594 case $cc_basename in
9595 cl*)
9596 # Native MSVC
9597 hardcode_libdir_flag_spec=' '
9598 allow_undefined_flag=unsupported
9599 always_export_symbols=yes
9600 file_list_spec='@'
9601 # Tell ltmain to make .lib files, not .a files.
9602 libext=lib
9603 # Tell ltmain to make .dll files, not .so files.
9604 shrext_cmds=.dll
9605 # FIXME: Setting linknames here is a bad hack.
9606 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9607 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9608 cp "$export_symbols" "$output_objdir/$soname.def";
9609 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9610 else
9611 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9612 fi~
9613 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9614 linknames='
9615 # The linker will not automatically build a static lib if we build a DLL.
9616 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9617 enable_shared_with_static_runtimes=yes
9618 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9619 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9620 # Don't use ranlib
9621 old_postinstall_cmds='chmod 644 $oldlib'
9622 postlink_cmds='lt_outputfile="@OUTPUT@"~
9623 lt_tool_outputfile="@TOOL_OUTPUT@"~
9624 case $lt_outputfile in
9625 *.exe|*.EXE) ;;
9626 *)
9627 lt_outputfile=$lt_outputfile.exe
9628 lt_tool_outputfile=$lt_tool_outputfile.exe
9629 ;;
9630 esac~
9631 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9632 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9633 $RM "$lt_outputfile.manifest";
9634 fi'
9635 ;;
9636 *)
9637 # Assume MSVC wrapper
9638 hardcode_libdir_flag_spec=' '
9639 allow_undefined_flag=unsupported
9640 # Tell ltmain to make .lib files, not .a files.
9641 libext=lib
9642 # Tell ltmain to make .dll files, not .so files.
9643 shrext_cmds=.dll
9644 # FIXME: Setting linknames here is a bad hack.
9645 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9646 # The linker will automatically build a .lib file if we build a DLL.
9647 old_archive_from_new_cmds='true'
9648 # FIXME: Should let the user specify the lib program.
9649 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9650 enable_shared_with_static_runtimes=yes
9651 ;;
9652 esac
9653 ;;
9654
9655 darwin* | rhapsody*)
9656
9657
9658 archive_cmds_need_lc=no
9659 hardcode_direct=no
9660 hardcode_automatic=yes
9661 hardcode_shlibpath_var=unsupported
9662 if test yes = "$lt_cv_ld_force_load"; then
9663 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9664
9665 else
9666 whole_archive_flag_spec=''
9667 fi
9668 link_all_deplibs=yes
9669 allow_undefined_flag=$_lt_dar_allow_undefined
9670 case $cc_basename in
9671 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9672 *) _lt_dar_can_shared=$GCC ;;
9673 esac
9674 if test yes = "$_lt_dar_can_shared"; then
9675 output_verbose_link_cmd=func_echo_all
9676 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9677 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9678 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"
9679 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"
9680
9681 else
9682 ld_shlibs=no
9683 fi
9684
9685 ;;
9686
9687 dgux*)
9688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9689 hardcode_libdir_flag_spec='-L$libdir'
9690 hardcode_shlibpath_var=no
9691 ;;
9692
9693 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9694 # support. Future versions do this automatically, but an explicit c++rt0.o
9695 # does not break anything, and helps significantly (at the cost of a little
9696 # extra space).
9697 freebsd2.2*)
9698 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9699 hardcode_libdir_flag_spec='-R$libdir'
9700 hardcode_direct=yes
9701 hardcode_shlibpath_var=no
9702 ;;
9703
9704 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9705 freebsd2.*)
9706 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9707 hardcode_direct=yes
9708 hardcode_minus_L=yes
9709 hardcode_shlibpath_var=no
9710 ;;
9711
9712 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9713 freebsd* | dragonfly*)
9714 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9715 hardcode_libdir_flag_spec='-R$libdir'
9716 hardcode_direct=yes
9717 hardcode_shlibpath_var=no
9718 ;;
9719
9720 hpux9*)
9721 if test yes = "$GCC"; then
9722 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9723 else
9724 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9725 fi
9726 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9727 hardcode_libdir_separator=:
9728 hardcode_direct=yes
9729
9730 # hardcode_minus_L: Not really in the search PATH,
9731 # but as the default location of the library.
9732 hardcode_minus_L=yes
9733 export_dynamic_flag_spec='$wl-E'
9734 ;;
9735
9736 hpux10*)
9737 if test yes,no = "$GCC,$with_gnu_ld"; then
9738 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9739 else
9740 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9741 fi
9742 if test no = "$with_gnu_ld"; then
9743 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9744 hardcode_libdir_separator=:
9745 hardcode_direct=yes
9746 hardcode_direct_absolute=yes
9747 export_dynamic_flag_spec='$wl-E'
9748 # hardcode_minus_L: Not really in the search PATH,
9749 # but as the default location of the library.
9750 hardcode_minus_L=yes
9751 fi
9752 ;;
9753
9754 hpux11*)
9755 if test yes,no = "$GCC,$with_gnu_ld"; then
9756 case $host_cpu in
9757 hppa*64*)
9758 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9759 ;;
9760 ia64*)
9761 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9762 ;;
9763 *)
9764 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9765 ;;
9766 esac
9767 else
9768 case $host_cpu in
9769 hppa*64*)
9770 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9771 ;;
9772 ia64*)
9773 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9774 ;;
9775 *)
9776
9777 # Older versions of the 11.00 compiler do not understand -b yet
9778 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9780 $as_echo_n "checking if $CC understands -b... " >&6; }
9781 if ${lt_cv_prog_compiler__b+:} false; then :
9782 $as_echo_n "(cached) " >&6
9783 else
9784 lt_cv_prog_compiler__b=no
9785 save_LDFLAGS=$LDFLAGS
9786 LDFLAGS="$LDFLAGS -b"
9787 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9788 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9789 # The linker can only warn and ignore the option if not recognized
9790 # So say no if there are warnings
9791 if test -s conftest.err; then
9792 # Append any errors to the config.log.
9793 cat conftest.err 1>&5
9794 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9795 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9796 if diff conftest.exp conftest.er2 >/dev/null; then
9797 lt_cv_prog_compiler__b=yes
9798 fi
9799 else
9800 lt_cv_prog_compiler__b=yes
9801 fi
9802 fi
9803 $RM -r conftest*
9804 LDFLAGS=$save_LDFLAGS
9805
9806 fi
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9808 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9809
9810 if test yes = "$lt_cv_prog_compiler__b"; then
9811 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9812 else
9813 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9814 fi
9815
9816 ;;
9817 esac
9818 fi
9819 if test no = "$with_gnu_ld"; then
9820 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9821 hardcode_libdir_separator=:
9822
9823 case $host_cpu in
9824 hppa*64*|ia64*)
9825 hardcode_direct=no
9826 hardcode_shlibpath_var=no
9827 ;;
9828 *)
9829 hardcode_direct=yes
9830 hardcode_direct_absolute=yes
9831 export_dynamic_flag_spec='$wl-E'
9832
9833 # hardcode_minus_L: Not really in the search PATH,
9834 # but as the default location of the library.
9835 hardcode_minus_L=yes
9836 ;;
9837 esac
9838 fi
9839 ;;
9840
9841 irix5* | irix6* | nonstopux*)
9842 if test yes = "$GCC"; then
9843 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9844 # Try to use the -exported_symbol ld option, if it does not
9845 # work, assume that -exports_file does not work either and
9846 # implicitly export all symbols.
9847 # This should be the same for all languages, so no per-tag cache variable.
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9849 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9850 if ${lt_cv_irix_exported_symbol+:} false; then :
9851 $as_echo_n "(cached) " >&6
9852 else
9853 save_LDFLAGS=$LDFLAGS
9854 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9856 /* end confdefs.h. */
9857 int foo (void) { return 0; }
9858 _ACEOF
9859 if ac_fn_c_try_link "$LINENO"; then :
9860 lt_cv_irix_exported_symbol=yes
9861 else
9862 lt_cv_irix_exported_symbol=no
9863 fi
9864 rm -f core conftest.err conftest.$ac_objext \
9865 conftest$ac_exeext conftest.$ac_ext
9866 LDFLAGS=$save_LDFLAGS
9867 fi
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9869 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9870 if test yes = "$lt_cv_irix_exported_symbol"; then
9871 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
9872 fi
9873 else
9874 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9875 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
9876 fi
9877 archive_cmds_need_lc='no'
9878 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9879 hardcode_libdir_separator=:
9880 inherit_rpath=yes
9881 link_all_deplibs=yes
9882 ;;
9883
9884 linux*)
9885 case $cc_basename in
9886 tcc*)
9887 # Fabrice Bellard et al's Tiny C Compiler
9888 ld_shlibs=yes
9889 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9890 ;;
9891 esac
9892 ;;
9893
9894 netbsd*)
9895 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9896 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9897 else
9898 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9899 fi
9900 hardcode_libdir_flag_spec='-R$libdir'
9901 hardcode_direct=yes
9902 hardcode_shlibpath_var=no
9903 ;;
9904
9905 newsos6)
9906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9907 hardcode_direct=yes
9908 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9909 hardcode_libdir_separator=:
9910 hardcode_shlibpath_var=no
9911 ;;
9912
9913 *nto* | *qnx*)
9914 ;;
9915
9916 openbsd* | bitrig*)
9917 if test -f /usr/libexec/ld.so; then
9918 hardcode_direct=yes
9919 hardcode_shlibpath_var=no
9920 hardcode_direct_absolute=yes
9921 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9922 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9923 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9924 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9925 export_dynamic_flag_spec='$wl-E'
9926 else
9927 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9928 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9929 fi
9930 else
9931 ld_shlibs=no
9932 fi
9933 ;;
9934
9935 os2*)
9936 hardcode_libdir_flag_spec='-L$libdir'
9937 hardcode_minus_L=yes
9938 allow_undefined_flag=unsupported
9939 shrext_cmds=.dll
9940 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9941 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9942 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9943 $ECHO EXPORTS >> $output_objdir/$libname.def~
9944 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9945 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9946 emximp -o $lib $output_objdir/$libname.def'
9947 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9948 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9949 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9950 $ECHO EXPORTS >> $output_objdir/$libname.def~
9951 prefix_cmds="$SED"~
9952 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9953 prefix_cmds="$prefix_cmds -e 1d";
9954 fi~
9955 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9956 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9957 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9958 emximp -o $lib $output_objdir/$libname.def'
9959 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9960 enable_shared_with_static_runtimes=yes
9961 ;;
9962
9963 osf3*)
9964 if test yes = "$GCC"; then
9965 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9966 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9967 else
9968 allow_undefined_flag=' -expect_unresolved \*'
9969 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9970 fi
9971 archive_cmds_need_lc='no'
9972 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9973 hardcode_libdir_separator=:
9974 ;;
9975
9976 osf4* | osf5*) # as osf3* with the addition of -msym flag
9977 if test yes = "$GCC"; then
9978 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9979 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9980 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9981 else
9982 allow_undefined_flag=' -expect_unresolved \*'
9983 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9984 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9985 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
9986
9987 # Both c and cxx compiler support -rpath directly
9988 hardcode_libdir_flag_spec='-rpath $libdir'
9989 fi
9990 archive_cmds_need_lc='no'
9991 hardcode_libdir_separator=:
9992 ;;
9993
9994 solaris*)
9995 no_undefined_flag=' -z defs'
9996 if test yes = "$GCC"; then
9997 wlarc='$wl'
9998 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9999 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10000 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10001 else
10002 case `$CC -V 2>&1` in
10003 *"Compilers 5.0"*)
10004 wlarc=''
10005 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10006 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10007 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10008 ;;
10009 *)
10010 wlarc='$wl'
10011 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10012 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10013 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10014 ;;
10015 esac
10016 fi
10017 hardcode_libdir_flag_spec='-R$libdir'
10018 hardcode_shlibpath_var=no
10019 case $host_os in
10020 solaris2.[0-5] | solaris2.[0-5].*) ;;
10021 *)
10022 # The compiler driver will combine and reorder linker options,
10023 # but understands '-z linker_flag'. GCC discards it without '$wl',
10024 # but is careful enough not to reorder.
10025 # Supported since Solaris 2.6 (maybe 2.5.1?)
10026 if test yes = "$GCC"; then
10027 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10028 else
10029 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10030 fi
10031 ;;
10032 esac
10033 link_all_deplibs=yes
10034 ;;
10035
10036 sunos4*)
10037 if test sequent = "$host_vendor"; then
10038 # Use $CC to link under sequent, because it throws in some extra .o
10039 # files that make .init and .fini sections work.
10040 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10041 else
10042 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10043 fi
10044 hardcode_libdir_flag_spec='-L$libdir'
10045 hardcode_direct=yes
10046 hardcode_minus_L=yes
10047 hardcode_shlibpath_var=no
10048 ;;
10049
10050 sysv4)
10051 case $host_vendor in
10052 sni)
10053 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10054 hardcode_direct=yes # is this really true???
10055 ;;
10056 siemens)
10057 ## LD is ld it makes a PLAMLIB
10058 ## CC just makes a GrossModule.
10059 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10060 reload_cmds='$CC -r -o $output$reload_objs'
10061 hardcode_direct=no
10062 ;;
10063 motorola)
10064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10065 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10066 ;;
10067 esac
10068 runpath_var='LD_RUN_PATH'
10069 hardcode_shlibpath_var=no
10070 ;;
10071
10072 sysv4.3*)
10073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10074 hardcode_shlibpath_var=no
10075 export_dynamic_flag_spec='-Bexport'
10076 ;;
10077
10078 sysv4*MP*)
10079 if test -d /usr/nec; then
10080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10081 hardcode_shlibpath_var=no
10082 runpath_var=LD_RUN_PATH
10083 hardcode_runpath_var=yes
10084 ld_shlibs=yes
10085 fi
10086 ;;
10087
10088 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10089 no_undefined_flag='$wl-z,text'
10090 archive_cmds_need_lc=no
10091 hardcode_shlibpath_var=no
10092 runpath_var='LD_RUN_PATH'
10093
10094 if test yes = "$GCC"; then
10095 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10096 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10097 else
10098 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10099 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10100 fi
10101 ;;
10102
10103 sysv5* | sco3.2v5* | sco5v6*)
10104 # Note: We CANNOT use -z defs as we might desire, because we do not
10105 # link with -lc, and that would cause any symbols used from libc to
10106 # always be unresolved, which means just about no library would
10107 # ever link correctly. If we're not using GNU ld we use -z text
10108 # though, which does catch some bad symbols but isn't as heavy-handed
10109 # as -z defs.
10110 no_undefined_flag='$wl-z,text'
10111 allow_undefined_flag='$wl-z,nodefs'
10112 archive_cmds_need_lc=no
10113 hardcode_shlibpath_var=no
10114 hardcode_libdir_flag_spec='$wl-R,$libdir'
10115 hardcode_libdir_separator=':'
10116 link_all_deplibs=yes
10117 export_dynamic_flag_spec='$wl-Bexport'
10118 runpath_var='LD_RUN_PATH'
10119
10120 if test yes = "$GCC"; then
10121 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10122 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10123 else
10124 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10125 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10126 fi
10127 ;;
10128
10129 uts4*)
10130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10131 hardcode_libdir_flag_spec='-L$libdir'
10132 hardcode_shlibpath_var=no
10133 ;;
10134
10135 *)
10136 ld_shlibs=no
10137 ;;
10138 esac
10139
10140 if test sni = "$host_vendor"; then
10141 case $host in
10142 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10143 export_dynamic_flag_spec='$wl-Blargedynsym'
10144 ;;
10145 esac
10146 fi
10147 fi
10148
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10150 $as_echo "$ld_shlibs" >&6; }
10151 test no = "$ld_shlibs" && can_build_shared=no
10152
10153 with_gnu_ld=$with_gnu_ld
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169 #
10170 # Do we need to explicitly link libc?
10171 #
10172 case "x$archive_cmds_need_lc" in
10173 x|xyes)
10174 # Assume -lc should be added
10175 archive_cmds_need_lc=yes
10176
10177 if test yes,yes = "$GCC,$enable_shared"; then
10178 case $archive_cmds in
10179 *'~'*)
10180 # FIXME: we may have to deal with multi-command sequences.
10181 ;;
10182 '$CC '*)
10183 # Test whether the compiler implicitly links with -lc since on some
10184 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10185 # to ld, don't add -lc before -lgcc.
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10187 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10188 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10189 $as_echo_n "(cached) " >&6
10190 else
10191 $RM conftest*
10192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10193
10194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10195 (eval $ac_compile) 2>&5
10196 ac_status=$?
10197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10198 test $ac_status = 0; } 2>conftest.err; then
10199 soname=conftest
10200 lib=conftest
10201 libobjs=conftest.$ac_objext
10202 deplibs=
10203 wl=$lt_prog_compiler_wl
10204 pic_flag=$lt_prog_compiler_pic
10205 compiler_flags=-v
10206 linker_flags=-v
10207 verstring=
10208 output_objdir=.
10209 libname=conftest
10210 lt_save_allow_undefined_flag=$allow_undefined_flag
10211 allow_undefined_flag=
10212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10213 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10214 ac_status=$?
10215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10216 test $ac_status = 0; }
10217 then
10218 lt_cv_archive_cmds_need_lc=no
10219 else
10220 lt_cv_archive_cmds_need_lc=yes
10221 fi
10222 allow_undefined_flag=$lt_save_allow_undefined_flag
10223 else
10224 cat conftest.err 1>&5
10225 fi
10226 $RM conftest*
10227
10228 fi
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10230 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10231 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10232 ;;
10233 esac
10234 fi
10235 ;;
10236 esac
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10390 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10391
10392 if test yes = "$GCC"; then
10393 case $host_os in
10394 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10395 *) lt_awk_arg='/^libraries:/' ;;
10396 esac
10397 case $host_os in
10398 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10399 *) lt_sed_strip_eq='s|=/|/|g' ;;
10400 esac
10401 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10402 case $lt_search_path_spec in
10403 *\;*)
10404 # if the path contains ";" then we assume it to be the separator
10405 # otherwise default to the standard path separator (i.e. ":") - it is
10406 # assumed that no part of a normal pathname contains ";" but that should
10407 # okay in the real world where ";" in dirpaths is itself problematic.
10408 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10409 ;;
10410 *)
10411 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10412 ;;
10413 esac
10414 # Ok, now we have the path, separated by spaces, we can step through it
10415 # and add multilib dir if necessary...
10416 lt_tmp_lt_search_path_spec=
10417 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10418 # ...but if some path component already ends with the multilib dir we assume
10419 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10420 case "$lt_multi_os_dir; $lt_search_path_spec " in
10421 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10422 lt_multi_os_dir=
10423 ;;
10424 esac
10425 for lt_sys_path in $lt_search_path_spec; do
10426 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10427 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10428 elif test -n "$lt_multi_os_dir"; then
10429 test -d "$lt_sys_path" && \
10430 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10431 fi
10432 done
10433 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10434 BEGIN {RS = " "; FS = "/|\n";} {
10435 lt_foo = "";
10436 lt_count = 0;
10437 for (lt_i = NF; lt_i > 0; lt_i--) {
10438 if ($lt_i != "" && $lt_i != ".") {
10439 if ($lt_i == "..") {
10440 lt_count++;
10441 } else {
10442 if (lt_count == 0) {
10443 lt_foo = "/" $lt_i lt_foo;
10444 } else {
10445 lt_count--;
10446 }
10447 }
10448 }
10449 }
10450 if (lt_foo != "") { lt_freq[lt_foo]++; }
10451 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10452 }'`
10453 # AWK program above erroneously prepends '/' to C:/dos/paths
10454 # for these hosts.
10455 case $host_os in
10456 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10457 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10458 esac
10459 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10460 else
10461 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10462 fi
10463 library_names_spec=
10464 libname_spec='lib$name'
10465 soname_spec=
10466 shrext_cmds=.so
10467 postinstall_cmds=
10468 postuninstall_cmds=
10469 finish_cmds=
10470 finish_eval=
10471 shlibpath_var=
10472 shlibpath_overrides_runpath=unknown
10473 version_type=none
10474 dynamic_linker="$host_os ld.so"
10475 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10476 need_lib_prefix=unknown
10477 hardcode_into_libs=no
10478
10479 # when you set need_version to no, make sure it does not cause -set_version
10480 # flags to be left without arguments
10481 need_version=unknown
10482
10483
10484
10485 case $host_os in
10486 aix3*)
10487 version_type=linux # correct to gnu/linux during the next big refactor
10488 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10489 shlibpath_var=LIBPATH
10490
10491 # AIX 3 has no versioning support, so we append a major version to the name.
10492 soname_spec='$libname$release$shared_ext$major'
10493 ;;
10494
10495 aix[4-9]*)
10496 version_type=linux # correct to gnu/linux during the next big refactor
10497 need_lib_prefix=no
10498 need_version=no
10499 hardcode_into_libs=yes
10500 if test ia64 = "$host_cpu"; then
10501 # AIX 5 supports IA64
10502 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10503 shlibpath_var=LD_LIBRARY_PATH
10504 else
10505 # With GCC up to 2.95.x, collect2 would create an import file
10506 # for dependence libraries. The import file would start with
10507 # the line '#! .'. This would cause the generated library to
10508 # depend on '.', always an invalid library. This was fixed in
10509 # development snapshots of GCC prior to 3.0.
10510 case $host_os in
10511 aix4 | aix4.[01] | aix4.[01].*)
10512 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10513 echo ' yes '
10514 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10515 :
10516 else
10517 can_build_shared=no
10518 fi
10519 ;;
10520 esac
10521 # Using Import Files as archive members, it is possible to support
10522 # filename-based versioning of shared library archives on AIX. While
10523 # this would work for both with and without runtime linking, it will
10524 # prevent static linking of such archives. So we do filename-based
10525 # shared library versioning with .so extension only, which is used
10526 # when both runtime linking and shared linking is enabled.
10527 # Unfortunately, runtime linking may impact performance, so we do
10528 # not want this to be the default eventually. Also, we use the
10529 # versioned .so libs for executables only if there is the -brtl
10530 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10531 # To allow for filename-based versioning support, we need to create
10532 # libNAME.so.V as an archive file, containing:
10533 # *) an Import File, referring to the versioned filename of the
10534 # archive as well as the shared archive member, telling the
10535 # bitwidth (32 or 64) of that shared object, and providing the
10536 # list of exported symbols of that shared object, eventually
10537 # decorated with the 'weak' keyword
10538 # *) the shared object with the F_LOADONLY flag set, to really avoid
10539 # it being seen by the linker.
10540 # At run time we better use the real file rather than another symlink,
10541 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10542
10543 case $with_aix_soname,$aix_use_runtimelinking in
10544 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10545 # soname into executable. Probably we can add versioning support to
10546 # collect2, so additional links can be useful in future.
10547 aix,yes) # traditional libtool
10548 dynamic_linker='AIX unversionable lib.so'
10549 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10550 # instead of lib<name>.a to let people know that these are not
10551 # typical AIX shared libraries.
10552 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10553 ;;
10554 aix,no) # traditional AIX only
10555 dynamic_linker='AIX lib.a(lib.so.V)'
10556 # We preserve .a as extension for shared libraries through AIX4.2
10557 # and later when we are not doing run time linking.
10558 library_names_spec='$libname$release.a $libname.a'
10559 soname_spec='$libname$release$shared_ext$major'
10560 ;;
10561 svr4,*) # full svr4 only
10562 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10563 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10564 # We do not specify a path in Import Files, so LIBPATH fires.
10565 shlibpath_overrides_runpath=yes
10566 ;;
10567 *,yes) # both, prefer svr4
10568 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10569 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10570 # unpreferred sharedlib libNAME.a needs extra handling
10571 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10572 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10573 # We do not specify a path in Import Files, so LIBPATH fires.
10574 shlibpath_overrides_runpath=yes
10575 ;;
10576 *,no) # both, prefer aix
10577 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10578 library_names_spec='$libname$release.a $libname.a'
10579 soname_spec='$libname$release$shared_ext$major'
10580 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10581 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10582 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10583 ;;
10584 esac
10585 shlibpath_var=LIBPATH
10586 fi
10587 ;;
10588
10589 amigaos*)
10590 case $host_cpu in
10591 powerpc)
10592 # Since July 2007 AmigaOS4 officially supports .so libraries.
10593 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10594 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10595 ;;
10596 m68k)
10597 library_names_spec='$libname.ixlibrary $libname.a'
10598 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10599 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10600 ;;
10601 esac
10602 ;;
10603
10604 beos*)
10605 library_names_spec='$libname$shared_ext'
10606 dynamic_linker="$host_os ld.so"
10607 shlibpath_var=LIBRARY_PATH
10608 ;;
10609
10610 bsdi[45]*)
10611 version_type=linux # correct to gnu/linux during the next big refactor
10612 need_version=no
10613 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10614 soname_spec='$libname$release$shared_ext$major'
10615 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10616 shlibpath_var=LD_LIBRARY_PATH
10617 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10618 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10619 # the default ld.so.conf also contains /usr/contrib/lib and
10620 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10621 # libtool to hard-code these into programs
10622 ;;
10623
10624 cygwin* | mingw* | pw32* | cegcc*)
10625 version_type=windows
10626 shrext_cmds=.dll
10627 need_version=no
10628 need_lib_prefix=no
10629
10630 case $GCC,$cc_basename in
10631 yes,*)
10632 # gcc
10633 library_names_spec='$libname.dll.a'
10634 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10635 postinstall_cmds='base_file=`basename \$file`~
10636 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10637 dldir=$destdir/`dirname \$dlpath`~
10638 test -d \$dldir || mkdir -p \$dldir~
10639 $install_prog $dir/$dlname \$dldir/$dlname~
10640 chmod a+x \$dldir/$dlname~
10641 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10642 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10643 fi'
10644 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10645 dlpath=$dir/\$dldll~
10646 $RM \$dlpath'
10647 shlibpath_overrides_runpath=yes
10648
10649 case $host_os in
10650 cygwin*)
10651 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10652 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10653
10654 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10655 ;;
10656 mingw* | cegcc*)
10657 # MinGW DLLs use traditional 'lib' prefix
10658 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10659 ;;
10660 pw32*)
10661 # pw32 DLLs use 'pw' prefix rather than 'lib'
10662 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10663 ;;
10664 esac
10665 dynamic_linker='Win32 ld.exe'
10666 ;;
10667
10668 *,cl*)
10669 # Native MSVC
10670 libname_spec='$name'
10671 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10672 library_names_spec='$libname.dll.lib'
10673
10674 case $build_os in
10675 mingw*)
10676 sys_lib_search_path_spec=
10677 lt_save_ifs=$IFS
10678 IFS=';'
10679 for lt_path in $LIB
10680 do
10681 IFS=$lt_save_ifs
10682 # Let DOS variable expansion print the short 8.3 style file name.
10683 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10684 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10685 done
10686 IFS=$lt_save_ifs
10687 # Convert to MSYS style.
10688 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10689 ;;
10690 cygwin*)
10691 # Convert to unix form, then to dos form, then back to unix form
10692 # but this time dos style (no spaces!) so that the unix form looks
10693 # like /cygdrive/c/PROGRA~1:/cygdr...
10694 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10695 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10696 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10697 ;;
10698 *)
10699 sys_lib_search_path_spec=$LIB
10700 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10701 # It is most probably a Windows format PATH.
10702 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10703 else
10704 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10705 fi
10706 # FIXME: find the short name or the path components, as spaces are
10707 # common. (e.g. "Program Files" -> "PROGRA~1")
10708 ;;
10709 esac
10710
10711 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10712 postinstall_cmds='base_file=`basename \$file`~
10713 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10714 dldir=$destdir/`dirname \$dlpath`~
10715 test -d \$dldir || mkdir -p \$dldir~
10716 $install_prog $dir/$dlname \$dldir/$dlname'
10717 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10718 dlpath=$dir/\$dldll~
10719 $RM \$dlpath'
10720 shlibpath_overrides_runpath=yes
10721 dynamic_linker='Win32 link.exe'
10722 ;;
10723
10724 *)
10725 # Assume MSVC wrapper
10726 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10727 dynamic_linker='Win32 ld.exe'
10728 ;;
10729 esac
10730 # FIXME: first we should search . and the directory the executable is in
10731 shlibpath_var=PATH
10732 ;;
10733
10734 darwin* | rhapsody*)
10735 dynamic_linker="$host_os dyld"
10736 version_type=darwin
10737 need_lib_prefix=no
10738 need_version=no
10739 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10740 soname_spec='$libname$release$major$shared_ext'
10741 shlibpath_overrides_runpath=yes
10742 shlibpath_var=DYLD_LIBRARY_PATH
10743 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10744
10745 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10746 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10747 ;;
10748
10749 dgux*)
10750 version_type=linux # correct to gnu/linux during the next big refactor
10751 need_lib_prefix=no
10752 need_version=no
10753 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10754 soname_spec='$libname$release$shared_ext$major'
10755 shlibpath_var=LD_LIBRARY_PATH
10756 ;;
10757
10758 freebsd* | dragonfly*)
10759 # DragonFly does not have aout. When/if they implement a new
10760 # versioning mechanism, adjust this.
10761 if test -x /usr/bin/objformat; then
10762 objformat=`/usr/bin/objformat`
10763 else
10764 case $host_os in
10765 freebsd[23].*) objformat=aout ;;
10766 *) objformat=elf ;;
10767 esac
10768 fi
10769 version_type=freebsd-$objformat
10770 case $version_type in
10771 freebsd-elf*)
10772 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10773 soname_spec='$libname$release$shared_ext$major'
10774 need_version=no
10775 need_lib_prefix=no
10776 ;;
10777 freebsd-*)
10778 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10779 need_version=yes
10780 ;;
10781 esac
10782 shlibpath_var=LD_LIBRARY_PATH
10783 case $host_os in
10784 freebsd2.*)
10785 shlibpath_overrides_runpath=yes
10786 ;;
10787 freebsd3.[01]* | freebsdelf3.[01]*)
10788 shlibpath_overrides_runpath=yes
10789 hardcode_into_libs=yes
10790 ;;
10791 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10792 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10793 shlibpath_overrides_runpath=no
10794 hardcode_into_libs=yes
10795 ;;
10796 *) # from 4.6 on, and DragonFly
10797 shlibpath_overrides_runpath=yes
10798 hardcode_into_libs=yes
10799 ;;
10800 esac
10801 ;;
10802
10803 haiku*)
10804 version_type=linux # correct to gnu/linux during the next big refactor
10805 need_lib_prefix=no
10806 need_version=no
10807 dynamic_linker="$host_os runtime_loader"
10808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10809 soname_spec='$libname$release$shared_ext$major'
10810 shlibpath_var=LIBRARY_PATH
10811 shlibpath_overrides_runpath=no
10812 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10813 hardcode_into_libs=yes
10814 ;;
10815
10816 hpux9* | hpux10* | hpux11*)
10817 # Give a soname corresponding to the major version so that dld.sl refuses to
10818 # link against other versions.
10819 version_type=sunos
10820 need_lib_prefix=no
10821 need_version=no
10822 case $host_cpu in
10823 ia64*)
10824 shrext_cmds='.so'
10825 hardcode_into_libs=yes
10826 dynamic_linker="$host_os dld.so"
10827 shlibpath_var=LD_LIBRARY_PATH
10828 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10829 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10830 soname_spec='$libname$release$shared_ext$major'
10831 if test 32 = "$HPUX_IA64_MODE"; then
10832 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10833 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10834 else
10835 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10836 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10837 fi
10838 ;;
10839 hppa*64*)
10840 shrext_cmds='.sl'
10841 hardcode_into_libs=yes
10842 dynamic_linker="$host_os dld.sl"
10843 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10844 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10845 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10846 soname_spec='$libname$release$shared_ext$major'
10847 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10848 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10849 ;;
10850 *)
10851 shrext_cmds='.sl'
10852 dynamic_linker="$host_os dld.sl"
10853 shlibpath_var=SHLIB_PATH
10854 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10855 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10856 soname_spec='$libname$release$shared_ext$major'
10857 ;;
10858 esac
10859 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10860 postinstall_cmds='chmod 555 $lib'
10861 # or fails outright, so override atomically:
10862 install_override_mode=555
10863 ;;
10864
10865 interix[3-9]*)
10866 version_type=linux # correct to gnu/linux during the next big refactor
10867 need_lib_prefix=no
10868 need_version=no
10869 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10870 soname_spec='$libname$release$shared_ext$major'
10871 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10872 shlibpath_var=LD_LIBRARY_PATH
10873 shlibpath_overrides_runpath=no
10874 hardcode_into_libs=yes
10875 ;;
10876
10877 irix5* | irix6* | nonstopux*)
10878 case $host_os in
10879 nonstopux*) version_type=nonstopux ;;
10880 *)
10881 if test yes = "$lt_cv_prog_gnu_ld"; then
10882 version_type=linux # correct to gnu/linux during the next big refactor
10883 else
10884 version_type=irix
10885 fi ;;
10886 esac
10887 need_lib_prefix=no
10888 need_version=no
10889 soname_spec='$libname$release$shared_ext$major'
10890 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10891 case $host_os in
10892 irix5* | nonstopux*)
10893 libsuff= shlibsuff=
10894 ;;
10895 *)
10896 case $LD in # libtool.m4 will add one of these switches to LD
10897 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10898 libsuff= shlibsuff= libmagic=32-bit;;
10899 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10900 libsuff=32 shlibsuff=N32 libmagic=N32;;
10901 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10902 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10903 *) libsuff= shlibsuff= libmagic=never-match;;
10904 esac
10905 ;;
10906 esac
10907 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10908 shlibpath_overrides_runpath=no
10909 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10910 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10911 hardcode_into_libs=yes
10912 ;;
10913
10914 # No shared lib support for Linux oldld, aout, or coff.
10915 linux*oldld* | linux*aout* | linux*coff*)
10916 dynamic_linker=no
10917 ;;
10918
10919 linux*android*)
10920 version_type=none # Android doesn't support versioned libraries.
10921 need_lib_prefix=no
10922 need_version=no
10923 library_names_spec='$libname$release$shared_ext'
10924 soname_spec='$libname$release$shared_ext'
10925 finish_cmds=
10926 shlibpath_var=LD_LIBRARY_PATH
10927 shlibpath_overrides_runpath=yes
10928
10929 # This implies no fast_install, which is unacceptable.
10930 # Some rework will be needed to allow for fast_install
10931 # before this can be enabled.
10932 hardcode_into_libs=yes
10933
10934 dynamic_linker='Android linker'
10935 # Don't embed -rpath directories since the linker doesn't support them.
10936 hardcode_libdir_flag_spec='-L$libdir'
10937 ;;
10938
10939 # This must be glibc/ELF.
10940 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10941 version_type=linux # correct to gnu/linux during the next big refactor
10942 need_lib_prefix=no
10943 need_version=no
10944 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10945 soname_spec='$libname$release$shared_ext$major'
10946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10947 shlibpath_var=LD_LIBRARY_PATH
10948 shlibpath_overrides_runpath=no
10949
10950 # Some binutils ld are patched to set DT_RUNPATH
10951 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10952 $as_echo_n "(cached) " >&6
10953 else
10954 lt_cv_shlibpath_overrides_runpath=no
10955 save_LDFLAGS=$LDFLAGS
10956 save_libdir=$libdir
10957 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10958 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10960 /* end confdefs.h. */
10961
10962 int
10963 main ()
10964 {
10965
10966 ;
10967 return 0;
10968 }
10969 _ACEOF
10970 if ac_fn_c_try_link "$LINENO"; then :
10971 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10972 lt_cv_shlibpath_overrides_runpath=yes
10973 fi
10974 fi
10975 rm -f core conftest.err conftest.$ac_objext \
10976 conftest$ac_exeext conftest.$ac_ext
10977 LDFLAGS=$save_LDFLAGS
10978 libdir=$save_libdir
10979
10980 fi
10981
10982 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10983
10984 # This implies no fast_install, which is unacceptable.
10985 # Some rework will be needed to allow for fast_install
10986 # before this can be enabled.
10987 hardcode_into_libs=yes
10988
10989 # Ideally, we could use ldconfig to report *all* directores which are
10990 # searched for libraries, however this is still not possible. Aside from not
10991 # being certain /sbin/ldconfig is available, command
10992 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10993 # even though it is searched at run-time. Try to do the best guess by
10994 # appending ld.so.conf contents (and includes) to the search path.
10995 if test -f /etc/ld.so.conf; then
10996 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10997 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10998 fi
10999
11000 # We used to test for /lib/ld.so.1 and disable shared libraries on
11001 # powerpc, because MkLinux only supported shared libraries with the
11002 # GNU dynamic linker. Since this was broken with cross compilers,
11003 # most powerpc-linux boxes support dynamic linking these days and
11004 # people can always --disable-shared, the test was removed, and we
11005 # assume the GNU/Linux dynamic linker is in use.
11006 dynamic_linker='GNU/Linux ld.so'
11007 ;;
11008
11009 netbsd*)
11010 version_type=sunos
11011 need_lib_prefix=no
11012 need_version=no
11013 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11014 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11016 dynamic_linker='NetBSD (a.out) ld.so'
11017 else
11018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11019 soname_spec='$libname$release$shared_ext$major'
11020 dynamic_linker='NetBSD ld.elf_so'
11021 fi
11022 shlibpath_var=LD_LIBRARY_PATH
11023 shlibpath_overrides_runpath=yes
11024 hardcode_into_libs=yes
11025 ;;
11026
11027 newsos6)
11028 version_type=linux # correct to gnu/linux during the next big refactor
11029 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11030 shlibpath_var=LD_LIBRARY_PATH
11031 shlibpath_overrides_runpath=yes
11032 ;;
11033
11034 *nto* | *qnx*)
11035 version_type=qnx
11036 need_lib_prefix=no
11037 need_version=no
11038 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11039 soname_spec='$libname$release$shared_ext$major'
11040 shlibpath_var=LD_LIBRARY_PATH
11041 shlibpath_overrides_runpath=no
11042 hardcode_into_libs=yes
11043 dynamic_linker='ldqnx.so'
11044 ;;
11045
11046 openbsd* | bitrig*)
11047 version_type=sunos
11048 sys_lib_dlsearch_path_spec=/usr/lib
11049 need_lib_prefix=no
11050 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11051 need_version=no
11052 else
11053 need_version=yes
11054 fi
11055 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11057 shlibpath_var=LD_LIBRARY_PATH
11058 shlibpath_overrides_runpath=yes
11059 ;;
11060
11061 os2*)
11062 libname_spec='$name'
11063 version_type=windows
11064 shrext_cmds=.dll
11065 need_version=no
11066 need_lib_prefix=no
11067 # OS/2 can only load a DLL with a base name of 8 characters or less.
11068 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11069 v=$($ECHO $release$versuffix | tr -d .-);
11070 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11071 $ECHO $n$v`$shared_ext'
11072 library_names_spec='${libname}_dll.$libext'
11073 dynamic_linker='OS/2 ld.exe'
11074 shlibpath_var=BEGINLIBPATH
11075 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11076 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11077 postinstall_cmds='base_file=`basename \$file`~
11078 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11079 dldir=$destdir/`dirname \$dlpath`~
11080 test -d \$dldir || mkdir -p \$dldir~
11081 $install_prog $dir/$dlname \$dldir/$dlname~
11082 chmod a+x \$dldir/$dlname~
11083 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11084 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11085 fi'
11086 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11087 dlpath=$dir/\$dldll~
11088 $RM \$dlpath'
11089 ;;
11090
11091 osf3* | osf4* | osf5*)
11092 version_type=osf
11093 need_lib_prefix=no
11094 need_version=no
11095 soname_spec='$libname$release$shared_ext$major'
11096 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11097 shlibpath_var=LD_LIBRARY_PATH
11098 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11100 ;;
11101
11102 rdos*)
11103 dynamic_linker=no
11104 ;;
11105
11106 solaris*)
11107 version_type=linux # correct to gnu/linux during the next big refactor
11108 need_lib_prefix=no
11109 need_version=no
11110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11111 soname_spec='$libname$release$shared_ext$major'
11112 shlibpath_var=LD_LIBRARY_PATH
11113 shlibpath_overrides_runpath=yes
11114 hardcode_into_libs=yes
11115 # ldd complains unless libraries are executable
11116 postinstall_cmds='chmod +x $lib'
11117 ;;
11118
11119 sunos4*)
11120 version_type=sunos
11121 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11122 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11123 shlibpath_var=LD_LIBRARY_PATH
11124 shlibpath_overrides_runpath=yes
11125 if test yes = "$with_gnu_ld"; then
11126 need_lib_prefix=no
11127 fi
11128 need_version=yes
11129 ;;
11130
11131 sysv4 | sysv4.3*)
11132 version_type=linux # correct to gnu/linux during the next big refactor
11133 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11134 soname_spec='$libname$release$shared_ext$major'
11135 shlibpath_var=LD_LIBRARY_PATH
11136 case $host_vendor in
11137 sni)
11138 shlibpath_overrides_runpath=no
11139 need_lib_prefix=no
11140 runpath_var=LD_RUN_PATH
11141 ;;
11142 siemens)
11143 need_lib_prefix=no
11144 ;;
11145 motorola)
11146 need_lib_prefix=no
11147 need_version=no
11148 shlibpath_overrides_runpath=no
11149 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11150 ;;
11151 esac
11152 ;;
11153
11154 sysv4*MP*)
11155 if test -d /usr/nec; then
11156 version_type=linux # correct to gnu/linux during the next big refactor
11157 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11158 soname_spec='$libname$shared_ext.$major'
11159 shlibpath_var=LD_LIBRARY_PATH
11160 fi
11161 ;;
11162
11163 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11164 version_type=sco
11165 need_lib_prefix=no
11166 need_version=no
11167 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11168 soname_spec='$libname$release$shared_ext$major'
11169 shlibpath_var=LD_LIBRARY_PATH
11170 shlibpath_overrides_runpath=yes
11171 hardcode_into_libs=yes
11172 if test yes = "$with_gnu_ld"; then
11173 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11174 else
11175 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11176 case $host_os in
11177 sco3.2v5*)
11178 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11179 ;;
11180 esac
11181 fi
11182 sys_lib_dlsearch_path_spec='/usr/lib'
11183 ;;
11184
11185 tpf*)
11186 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11187 version_type=linux # correct to gnu/linux during the next big refactor
11188 need_lib_prefix=no
11189 need_version=no
11190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11191 shlibpath_var=LD_LIBRARY_PATH
11192 shlibpath_overrides_runpath=no
11193 hardcode_into_libs=yes
11194 ;;
11195
11196 uts4*)
11197 version_type=linux # correct to gnu/linux during the next big refactor
11198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11199 soname_spec='$libname$release$shared_ext$major'
11200 shlibpath_var=LD_LIBRARY_PATH
11201 ;;
11202
11203 *)
11204 dynamic_linker=no
11205 ;;
11206 esac
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11208 $as_echo "$dynamic_linker" >&6; }
11209 test no = "$dynamic_linker" && can_build_shared=no
11210
11211 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11212 if test yes = "$GCC"; then
11213 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11214 fi
11215
11216 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11217 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11218 fi
11219
11220 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11221 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11222 fi
11223
11224 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11225 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11226
11227 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11228 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11229
11230 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11231 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11330 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11331 hardcode_action=
11332 if test -n "$hardcode_libdir_flag_spec" ||
11333 test -n "$runpath_var" ||
11334 test yes = "$hardcode_automatic"; then
11335
11336 # We can hardcode non-existent directories.
11337 if test no != "$hardcode_direct" &&
11338 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11339 # have to relink, otherwise we might link with an installed library
11340 # when we should be linking with a yet-to-be-installed one
11341 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11342 test no != "$hardcode_minus_L"; then
11343 # Linking always hardcodes the temporary library directory.
11344 hardcode_action=relink
11345 else
11346 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11347 hardcode_action=immediate
11348 fi
11349 else
11350 # We cannot hardcode anything, or else we can only hardcode existing
11351 # directories.
11352 hardcode_action=unsupported
11353 fi
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11355 $as_echo "$hardcode_action" >&6; }
11356
11357 if test relink = "$hardcode_action" ||
11358 test yes = "$inherit_rpath"; then
11359 # Fast installation is not supported
11360 enable_fast_install=no
11361 elif test yes = "$shlibpath_overrides_runpath" ||
11362 test no = "$enable_shared"; then
11363 # Fast installation is not necessary
11364 enable_fast_install=needless
11365 fi
11366
11367
11368
11369
11370
11371
11372 if test yes != "$enable_dlopen"; then
11373 enable_dlopen=unknown
11374 enable_dlopen_self=unknown
11375 enable_dlopen_self_static=unknown
11376 else
11377 lt_cv_dlopen=no
11378 lt_cv_dlopen_libs=
11379
11380 case $host_os in
11381 beos*)
11382 lt_cv_dlopen=load_add_on
11383 lt_cv_dlopen_libs=
11384 lt_cv_dlopen_self=yes
11385 ;;
11386
11387 mingw* | pw32* | cegcc*)
11388 lt_cv_dlopen=LoadLibrary
11389 lt_cv_dlopen_libs=
11390 ;;
11391
11392 cygwin*)
11393 lt_cv_dlopen=dlopen
11394 lt_cv_dlopen_libs=
11395 ;;
11396
11397 darwin*)
11398 # if libdl is installed we need to link against it
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11400 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11401 if ${ac_cv_lib_dl_dlopen+:} false; then :
11402 $as_echo_n "(cached) " >&6
11403 else
11404 ac_check_lib_save_LIBS=$LIBS
11405 LIBS="-ldl $LIBS"
11406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407 /* end confdefs.h. */
11408
11409 /* Override any GCC internal prototype to avoid an error.
11410 Use char because int might match the return type of a GCC
11411 builtin and then its argument prototype would still apply. */
11412 #ifdef __cplusplus
11413 extern "C"
11414 #endif
11415 char dlopen ();
11416 int
11417 main ()
11418 {
11419 return dlopen ();
11420 ;
11421 return 0;
11422 }
11423 _ACEOF
11424 if ac_fn_c_try_link "$LINENO"; then :
11425 ac_cv_lib_dl_dlopen=yes
11426 else
11427 ac_cv_lib_dl_dlopen=no
11428 fi
11429 rm -f core conftest.err conftest.$ac_objext \
11430 conftest$ac_exeext conftest.$ac_ext
11431 LIBS=$ac_check_lib_save_LIBS
11432 fi
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11434 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11435 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11436 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11437 else
11438
11439 lt_cv_dlopen=dyld
11440 lt_cv_dlopen_libs=
11441 lt_cv_dlopen_self=yes
11442
11443 fi
11444
11445 ;;
11446
11447 tpf*)
11448 # Don't try to run any link tests for TPF. We know it's impossible
11449 # because TPF is a cross-compiler, and we know how we open DSOs.
11450 lt_cv_dlopen=dlopen
11451 lt_cv_dlopen_libs=
11452 lt_cv_dlopen_self=no
11453 ;;
11454
11455 *)
11456 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11457 if test "x$ac_cv_func_shl_load" = xyes; then :
11458 lt_cv_dlopen=shl_load
11459 else
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11461 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11462 if ${ac_cv_lib_dld_shl_load+:} false; then :
11463 $as_echo_n "(cached) " >&6
11464 else
11465 ac_check_lib_save_LIBS=$LIBS
11466 LIBS="-ldld $LIBS"
11467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468 /* end confdefs.h. */
11469
11470 /* Override any GCC internal prototype to avoid an error.
11471 Use char because int might match the return type of a GCC
11472 builtin and then its argument prototype would still apply. */
11473 #ifdef __cplusplus
11474 extern "C"
11475 #endif
11476 char shl_load ();
11477 int
11478 main ()
11479 {
11480 return shl_load ();
11481 ;
11482 return 0;
11483 }
11484 _ACEOF
11485 if ac_fn_c_try_link "$LINENO"; then :
11486 ac_cv_lib_dld_shl_load=yes
11487 else
11488 ac_cv_lib_dld_shl_load=no
11489 fi
11490 rm -f core conftest.err conftest.$ac_objext \
11491 conftest$ac_exeext conftest.$ac_ext
11492 LIBS=$ac_check_lib_save_LIBS
11493 fi
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11495 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11496 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11497 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11498 else
11499 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11500 if test "x$ac_cv_func_dlopen" = xyes; then :
11501 lt_cv_dlopen=dlopen
11502 else
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11504 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11505 if ${ac_cv_lib_dl_dlopen+:} false; then :
11506 $as_echo_n "(cached) " >&6
11507 else
11508 ac_check_lib_save_LIBS=$LIBS
11509 LIBS="-ldl $LIBS"
11510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11511 /* end confdefs.h. */
11512
11513 /* Override any GCC internal prototype to avoid an error.
11514 Use char because int might match the return type of a GCC
11515 builtin and then its argument prototype would still apply. */
11516 #ifdef __cplusplus
11517 extern "C"
11518 #endif
11519 char dlopen ();
11520 int
11521 main ()
11522 {
11523 return dlopen ();
11524 ;
11525 return 0;
11526 }
11527 _ACEOF
11528 if ac_fn_c_try_link "$LINENO"; then :
11529 ac_cv_lib_dl_dlopen=yes
11530 else
11531 ac_cv_lib_dl_dlopen=no
11532 fi
11533 rm -f core conftest.err conftest.$ac_objext \
11534 conftest$ac_exeext conftest.$ac_ext
11535 LIBS=$ac_check_lib_save_LIBS
11536 fi
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11538 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11539 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11540 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11541 else
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11543 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11544 if ${ac_cv_lib_svld_dlopen+:} false; then :
11545 $as_echo_n "(cached) " >&6
11546 else
11547 ac_check_lib_save_LIBS=$LIBS
11548 LIBS="-lsvld $LIBS"
11549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11550 /* end confdefs.h. */
11551
11552 /* Override any GCC internal prototype to avoid an error.
11553 Use char because int might match the return type of a GCC
11554 builtin and then its argument prototype would still apply. */
11555 #ifdef __cplusplus
11556 extern "C"
11557 #endif
11558 char dlopen ();
11559 int
11560 main ()
11561 {
11562 return dlopen ();
11563 ;
11564 return 0;
11565 }
11566 _ACEOF
11567 if ac_fn_c_try_link "$LINENO"; then :
11568 ac_cv_lib_svld_dlopen=yes
11569 else
11570 ac_cv_lib_svld_dlopen=no
11571 fi
11572 rm -f core conftest.err conftest.$ac_objext \
11573 conftest$ac_exeext conftest.$ac_ext
11574 LIBS=$ac_check_lib_save_LIBS
11575 fi
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11577 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11578 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11579 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11580 else
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11582 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11583 if ${ac_cv_lib_dld_dld_link+:} false; then :
11584 $as_echo_n "(cached) " >&6
11585 else
11586 ac_check_lib_save_LIBS=$LIBS
11587 LIBS="-ldld $LIBS"
11588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589 /* end confdefs.h. */
11590
11591 /* Override any GCC internal prototype to avoid an error.
11592 Use char because int might match the return type of a GCC
11593 builtin and then its argument prototype would still apply. */
11594 #ifdef __cplusplus
11595 extern "C"
11596 #endif
11597 char dld_link ();
11598 int
11599 main ()
11600 {
11601 return dld_link ();
11602 ;
11603 return 0;
11604 }
11605 _ACEOF
11606 if ac_fn_c_try_link "$LINENO"; then :
11607 ac_cv_lib_dld_dld_link=yes
11608 else
11609 ac_cv_lib_dld_dld_link=no
11610 fi
11611 rm -f core conftest.err conftest.$ac_objext \
11612 conftest$ac_exeext conftest.$ac_ext
11613 LIBS=$ac_check_lib_save_LIBS
11614 fi
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11616 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11617 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11618 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11619 fi
11620
11621
11622 fi
11623
11624
11625 fi
11626
11627
11628 fi
11629
11630
11631 fi
11632
11633
11634 fi
11635
11636 ;;
11637 esac
11638
11639 if test no = "$lt_cv_dlopen"; then
11640 enable_dlopen=no
11641 else
11642 enable_dlopen=yes
11643 fi
11644
11645 case $lt_cv_dlopen in
11646 dlopen)
11647 save_CPPFLAGS=$CPPFLAGS
11648 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11649
11650 save_LDFLAGS=$LDFLAGS
11651 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11652
11653 save_LIBS=$LIBS
11654 LIBS="$lt_cv_dlopen_libs $LIBS"
11655
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11657 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11658 if ${lt_cv_dlopen_self+:} false; then :
11659 $as_echo_n "(cached) " >&6
11660 else
11661 if test yes = "$cross_compiling"; then :
11662 lt_cv_dlopen_self=cross
11663 else
11664 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11665 lt_status=$lt_dlunknown
11666 cat > conftest.$ac_ext <<_LT_EOF
11667 #line $LINENO "configure"
11668 #include "confdefs.h"
11669
11670 #if HAVE_DLFCN_H
11671 #include <dlfcn.h>
11672 #endif
11673
11674 #include <stdio.h>
11675
11676 #ifdef RTLD_GLOBAL
11677 # define LT_DLGLOBAL RTLD_GLOBAL
11678 #else
11679 # ifdef DL_GLOBAL
11680 # define LT_DLGLOBAL DL_GLOBAL
11681 # else
11682 # define LT_DLGLOBAL 0
11683 # endif
11684 #endif
11685
11686 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11687 find out it does not work in some platform. */
11688 #ifndef LT_DLLAZY_OR_NOW
11689 # ifdef RTLD_LAZY
11690 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11691 # else
11692 # ifdef DL_LAZY
11693 # define LT_DLLAZY_OR_NOW DL_LAZY
11694 # else
11695 # ifdef RTLD_NOW
11696 # define LT_DLLAZY_OR_NOW RTLD_NOW
11697 # else
11698 # ifdef DL_NOW
11699 # define LT_DLLAZY_OR_NOW DL_NOW
11700 # else
11701 # define LT_DLLAZY_OR_NOW 0
11702 # endif
11703 # endif
11704 # endif
11705 # endif
11706 #endif
11707
11708 /* When -fvisibility=hidden is used, assume the code has been annotated
11709 correspondingly for the symbols needed. */
11710 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11711 int fnord () __attribute__((visibility("default")));
11712 #endif
11713
11714 int fnord () { return 42; }
11715 int main ()
11716 {
11717 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11718 int status = $lt_dlunknown;
11719
11720 if (self)
11721 {
11722 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11723 else
11724 {
11725 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11726 else puts (dlerror ());
11727 }
11728 /* dlclose (self); */
11729 }
11730 else
11731 puts (dlerror ());
11732
11733 return status;
11734 }
11735 _LT_EOF
11736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11737 (eval $ac_link) 2>&5
11738 ac_status=$?
11739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11740 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11741 (./conftest; exit; ) >&5 2>/dev/null
11742 lt_status=$?
11743 case x$lt_status in
11744 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11745 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11746 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11747 esac
11748 else :
11749 # compilation failed
11750 lt_cv_dlopen_self=no
11751 fi
11752 fi
11753 rm -fr conftest*
11754
11755
11756 fi
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11758 $as_echo "$lt_cv_dlopen_self" >&6; }
11759
11760 if test yes = "$lt_cv_dlopen_self"; then
11761 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11763 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11764 if ${lt_cv_dlopen_self_static+:} false; then :
11765 $as_echo_n "(cached) " >&6
11766 else
11767 if test yes = "$cross_compiling"; then :
11768 lt_cv_dlopen_self_static=cross
11769 else
11770 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11771 lt_status=$lt_dlunknown
11772 cat > conftest.$ac_ext <<_LT_EOF
11773 #line $LINENO "configure"
11774 #include "confdefs.h"
11775
11776 #if HAVE_DLFCN_H
11777 #include <dlfcn.h>
11778 #endif
11779
11780 #include <stdio.h>
11781
11782 #ifdef RTLD_GLOBAL
11783 # define LT_DLGLOBAL RTLD_GLOBAL
11784 #else
11785 # ifdef DL_GLOBAL
11786 # define LT_DLGLOBAL DL_GLOBAL
11787 # else
11788 # define LT_DLGLOBAL 0
11789 # endif
11790 #endif
11791
11792 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11793 find out it does not work in some platform. */
11794 #ifndef LT_DLLAZY_OR_NOW
11795 # ifdef RTLD_LAZY
11796 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11797 # else
11798 # ifdef DL_LAZY
11799 # define LT_DLLAZY_OR_NOW DL_LAZY
11800 # else
11801 # ifdef RTLD_NOW
11802 # define LT_DLLAZY_OR_NOW RTLD_NOW
11803 # else
11804 # ifdef DL_NOW
11805 # define LT_DLLAZY_OR_NOW DL_NOW
11806 # else
11807 # define LT_DLLAZY_OR_NOW 0
11808 # endif
11809 # endif
11810 # endif
11811 # endif
11812 #endif
11813
11814 /* When -fvisibility=hidden is used, assume the code has been annotated
11815 correspondingly for the symbols needed. */
11816 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11817 int fnord () __attribute__((visibility("default")));
11818 #endif
11819
11820 int fnord () { return 42; }
11821 int main ()
11822 {
11823 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11824 int status = $lt_dlunknown;
11825
11826 if (self)
11827 {
11828 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11829 else
11830 {
11831 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11832 else puts (dlerror ());
11833 }
11834 /* dlclose (self); */
11835 }
11836 else
11837 puts (dlerror ());
11838
11839 return status;
11840 }
11841 _LT_EOF
11842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11843 (eval $ac_link) 2>&5
11844 ac_status=$?
11845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11846 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11847 (./conftest; exit; ) >&5 2>/dev/null
11848 lt_status=$?
11849 case x$lt_status in
11850 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11851 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11852 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11853 esac
11854 else :
11855 # compilation failed
11856 lt_cv_dlopen_self_static=no
11857 fi
11858 fi
11859 rm -fr conftest*
11860
11861
11862 fi
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11864 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11865 fi
11866
11867 CPPFLAGS=$save_CPPFLAGS
11868 LDFLAGS=$save_LDFLAGS
11869 LIBS=$save_LIBS
11870 ;;
11871 esac
11872
11873 case $lt_cv_dlopen_self in
11874 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11875 *) enable_dlopen_self=unknown ;;
11876 esac
11877
11878 case $lt_cv_dlopen_self_static in
11879 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11880 *) enable_dlopen_self_static=unknown ;;
11881 esac
11882 fi
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900 striplib=
11901 old_striplib=
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11903 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11904 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11905 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11906 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11908 $as_echo "yes" >&6; }
11909 else
11910 # FIXME - insert some real tests, host_os isn't really good enough
11911 case $host_os in
11912 darwin*)
11913 if test -n "$STRIP"; then
11914 striplib="$STRIP -x"
11915 old_striplib="$STRIP -S"
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11917 $as_echo "yes" >&6; }
11918 else
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920 $as_echo "no" >&6; }
11921 fi
11922 ;;
11923 *)
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 $as_echo "no" >&6; }
11926 ;;
11927 esac
11928 fi
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941 # Report what library types will actually be built
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11943 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11945 $as_echo "$can_build_shared" >&6; }
11946
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11948 $as_echo_n "checking whether to build shared libraries... " >&6; }
11949 test no = "$can_build_shared" && enable_shared=no
11950
11951 # On AIX, shared libraries and static libraries use the same namespace, and
11952 # are all built from PIC.
11953 case $host_os in
11954 aix3*)
11955 test yes = "$enable_shared" && enable_static=no
11956 if test -n "$RANLIB"; then
11957 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11958 postinstall_cmds='$RANLIB $lib'
11959 fi
11960 ;;
11961
11962 aix[4-9]*)
11963 if test ia64 != "$host_cpu"; then
11964 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11965 yes,aix,yes) ;; # shared object as lib.so file only
11966 yes,svr4,*) ;; # shared object as lib.so archive member only
11967 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11968 esac
11969 fi
11970 ;;
11971 esac
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11973 $as_echo "$enable_shared" >&6; }
11974
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11976 $as_echo_n "checking whether to build static libraries... " >&6; }
11977 # Make sure either enable_shared or enable_static is yes.
11978 test yes = "$enable_shared" || enable_static=yes
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11980 $as_echo "$enable_static" >&6; }
11981
11982
11983
11984
11985 fi
11986 ac_ext=c
11987 ac_cpp='$CPP $CPPFLAGS'
11988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11991
11992 CC=$lt_save_CC
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008 ac_config_commands="$ac_config_commands libtool"
12009
12010
12011
12012
12013 # Only expand once:
12014
12015
12016
12017 ac_config_headers="$ac_config_headers config.h"
12018
12019
12020 # Checks for programs.
12021 ac_ext=c
12022 ac_cpp='$CPP $CPPFLAGS'
12023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12026 if test -n "$ac_tool_prefix"; then
12027 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12028 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12030 $as_echo_n "checking for $ac_word... " >&6; }
12031 if ${ac_cv_prog_CC+:} false; then :
12032 $as_echo_n "(cached) " >&6
12033 else
12034 if test -n "$CC"; then
12035 ac_cv_prog_CC="$CC" # Let the user override the test.
12036 else
12037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12038 for as_dir in $PATH
12039 do
12040 IFS=$as_save_IFS
12041 test -z "$as_dir" && as_dir=.
12042 for ac_exec_ext in '' $ac_executable_extensions; do
12043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12044 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12046 break 2
12047 fi
12048 done
12049 done
12050 IFS=$as_save_IFS
12051
12052 fi
12053 fi
12054 CC=$ac_cv_prog_CC
12055 if test -n "$CC"; then
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12057 $as_echo "$CC" >&6; }
12058 else
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12060 $as_echo "no" >&6; }
12061 fi
12062
12063
12064 fi
12065 if test -z "$ac_cv_prog_CC"; then
12066 ac_ct_CC=$CC
12067 # Extract the first word of "gcc", so it can be a program name with args.
12068 set dummy gcc; ac_word=$2
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12070 $as_echo_n "checking for $ac_word... " >&6; }
12071 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12072 $as_echo_n "(cached) " >&6
12073 else
12074 if test -n "$ac_ct_CC"; then
12075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12076 else
12077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12078 for as_dir in $PATH
12079 do
12080 IFS=$as_save_IFS
12081 test -z "$as_dir" && as_dir=.
12082 for ac_exec_ext in '' $ac_executable_extensions; do
12083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12084 ac_cv_prog_ac_ct_CC="gcc"
12085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12086 break 2
12087 fi
12088 done
12089 done
12090 IFS=$as_save_IFS
12091
12092 fi
12093 fi
12094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12095 if test -n "$ac_ct_CC"; then
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12097 $as_echo "$ac_ct_CC" >&6; }
12098 else
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12100 $as_echo "no" >&6; }
12101 fi
12102
12103 if test "x$ac_ct_CC" = x; then
12104 CC=""
12105 else
12106 case $cross_compiling:$ac_tool_warned in
12107 yes:)
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12110 ac_tool_warned=yes ;;
12111 esac
12112 CC=$ac_ct_CC
12113 fi
12114 else
12115 CC="$ac_cv_prog_CC"
12116 fi
12117
12118 if test -z "$CC"; then
12119 if test -n "$ac_tool_prefix"; then
12120 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12121 set dummy ${ac_tool_prefix}cc; ac_word=$2
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12123 $as_echo_n "checking for $ac_word... " >&6; }
12124 if ${ac_cv_prog_CC+:} false; then :
12125 $as_echo_n "(cached) " >&6
12126 else
12127 if test -n "$CC"; then
12128 ac_cv_prog_CC="$CC" # Let the user override the test.
12129 else
12130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131 for as_dir in $PATH
12132 do
12133 IFS=$as_save_IFS
12134 test -z "$as_dir" && as_dir=.
12135 for ac_exec_ext in '' $ac_executable_extensions; do
12136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12137 ac_cv_prog_CC="${ac_tool_prefix}cc"
12138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12139 break 2
12140 fi
12141 done
12142 done
12143 IFS=$as_save_IFS
12144
12145 fi
12146 fi
12147 CC=$ac_cv_prog_CC
12148 if test -n "$CC"; then
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12150 $as_echo "$CC" >&6; }
12151 else
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153 $as_echo "no" >&6; }
12154 fi
12155
12156
12157 fi
12158 fi
12159 if test -z "$CC"; then
12160 # Extract the first word of "cc", so it can be a program name with args.
12161 set dummy cc; ac_word=$2
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12163 $as_echo_n "checking for $ac_word... " >&6; }
12164 if ${ac_cv_prog_CC+:} false; then :
12165 $as_echo_n "(cached) " >&6
12166 else
12167 if test -n "$CC"; then
12168 ac_cv_prog_CC="$CC" # Let the user override the test.
12169 else
12170 ac_prog_rejected=no
12171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12172 for as_dir in $PATH
12173 do
12174 IFS=$as_save_IFS
12175 test -z "$as_dir" && as_dir=.
12176 for ac_exec_ext in '' $ac_executable_extensions; do
12177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12178 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12179 ac_prog_rejected=yes
12180 continue
12181 fi
12182 ac_cv_prog_CC="cc"
12183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12184 break 2
12185 fi
12186 done
12187 done
12188 IFS=$as_save_IFS
12189
12190 if test $ac_prog_rejected = yes; then
12191 # We found a bogon in the path, so make sure we never use it.
12192 set dummy $ac_cv_prog_CC
12193 shift
12194 if test $# != 0; then
12195 # We chose a different compiler from the bogus one.
12196 # However, it has the same basename, so the bogon will be chosen
12197 # first if we set CC to just the basename; use the full file name.
12198 shift
12199 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12200 fi
12201 fi
12202 fi
12203 fi
12204 CC=$ac_cv_prog_CC
12205 if test -n "$CC"; then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12207 $as_echo "$CC" >&6; }
12208 else
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210 $as_echo "no" >&6; }
12211 fi
12212
12213
12214 fi
12215 if test -z "$CC"; then
12216 if test -n "$ac_tool_prefix"; then
12217 for ac_prog in cl.exe
12218 do
12219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12222 $as_echo_n "checking for $ac_word... " >&6; }
12223 if ${ac_cv_prog_CC+:} false; then :
12224 $as_echo_n "(cached) " >&6
12225 else
12226 if test -n "$CC"; then
12227 ac_cv_prog_CC="$CC" # Let the user override the test.
12228 else
12229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12230 for as_dir in $PATH
12231 do
12232 IFS=$as_save_IFS
12233 test -z "$as_dir" && as_dir=.
12234 for ac_exec_ext in '' $ac_executable_extensions; do
12235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12236 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12238 break 2
12239 fi
12240 done
12241 done
12242 IFS=$as_save_IFS
12243
12244 fi
12245 fi
12246 CC=$ac_cv_prog_CC
12247 if test -n "$CC"; then
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12249 $as_echo "$CC" >&6; }
12250 else
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252 $as_echo "no" >&6; }
12253 fi
12254
12255
12256 test -n "$CC" && break
12257 done
12258 fi
12259 if test -z "$CC"; then
12260 ac_ct_CC=$CC
12261 for ac_prog in cl.exe
12262 do
12263 # Extract the first word of "$ac_prog", so it can be a program name with args.
12264 set dummy $ac_prog; ac_word=$2
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12266 $as_echo_n "checking for $ac_word... " >&6; }
12267 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12268 $as_echo_n "(cached) " >&6
12269 else
12270 if test -n "$ac_ct_CC"; then
12271 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12272 else
12273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12274 for as_dir in $PATH
12275 do
12276 IFS=$as_save_IFS
12277 test -z "$as_dir" && as_dir=.
12278 for ac_exec_ext in '' $ac_executable_extensions; do
12279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12280 ac_cv_prog_ac_ct_CC="$ac_prog"
12281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12282 break 2
12283 fi
12284 done
12285 done
12286 IFS=$as_save_IFS
12287
12288 fi
12289 fi
12290 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12291 if test -n "$ac_ct_CC"; then
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12293 $as_echo "$ac_ct_CC" >&6; }
12294 else
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296 $as_echo "no" >&6; }
12297 fi
12298
12299
12300 test -n "$ac_ct_CC" && break
12301 done
12302
12303 if test "x$ac_ct_CC" = x; then
12304 CC=""
12305 else
12306 case $cross_compiling:$ac_tool_warned in
12307 yes:)
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12310 ac_tool_warned=yes ;;
12311 esac
12312 CC=$ac_ct_CC
12313 fi
12314 fi
12315
12316 fi
12317
12318
12319 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12321 as_fn_error $? "no acceptable C compiler found in \$PATH
12322 See \`config.log' for more details" "$LINENO" 5; }
12323
12324 # Provide some information about the compiler.
12325 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12326 set X $ac_compile
12327 ac_compiler=$2
12328 for ac_option in --version -v -V -qversion; do
12329 { { ac_try="$ac_compiler $ac_option >&5"
12330 case "(($ac_try" in
12331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12332 *) ac_try_echo=$ac_try;;
12333 esac
12334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12335 $as_echo "$ac_try_echo"; } >&5
12336 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12337 ac_status=$?
12338 if test -s conftest.err; then
12339 sed '10a\
12340 ... rest of stderr output deleted ...
12341 10q' conftest.err >conftest.er1
12342 cat conftest.er1 >&5
12343 fi
12344 rm -f conftest.er1 conftest.err
12345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12346 test $ac_status = 0; }
12347 done
12348
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12350 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12351 if ${ac_cv_c_compiler_gnu+:} false; then :
12352 $as_echo_n "(cached) " >&6
12353 else
12354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12355 /* end confdefs.h. */
12356
12357 int
12358 main ()
12359 {
12360 #ifndef __GNUC__
12361 choke me
12362 #endif
12363
12364 ;
12365 return 0;
12366 }
12367 _ACEOF
12368 if ac_fn_c_try_compile "$LINENO"; then :
12369 ac_compiler_gnu=yes
12370 else
12371 ac_compiler_gnu=no
12372 fi
12373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12374 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12375
12376 fi
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12378 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12379 if test $ac_compiler_gnu = yes; then
12380 GCC=yes
12381 else
12382 GCC=
12383 fi
12384 ac_test_CFLAGS=${CFLAGS+set}
12385 ac_save_CFLAGS=$CFLAGS
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12387 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12388 if ${ac_cv_prog_cc_g+:} false; then :
12389 $as_echo_n "(cached) " >&6
12390 else
12391 ac_save_c_werror_flag=$ac_c_werror_flag
12392 ac_c_werror_flag=yes
12393 ac_cv_prog_cc_g=no
12394 CFLAGS="-g"
12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h. */
12397
12398 int
12399 main ()
12400 {
12401
12402 ;
12403 return 0;
12404 }
12405 _ACEOF
12406 if ac_fn_c_try_compile "$LINENO"; then :
12407 ac_cv_prog_cc_g=yes
12408 else
12409 CFLAGS=""
12410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411 /* end confdefs.h. */
12412
12413 int
12414 main ()
12415 {
12416
12417 ;
12418 return 0;
12419 }
12420 _ACEOF
12421 if ac_fn_c_try_compile "$LINENO"; then :
12422
12423 else
12424 ac_c_werror_flag=$ac_save_c_werror_flag
12425 CFLAGS="-g"
12426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12427 /* end confdefs.h. */
12428
12429 int
12430 main ()
12431 {
12432
12433 ;
12434 return 0;
12435 }
12436 _ACEOF
12437 if ac_fn_c_try_compile "$LINENO"; then :
12438 ac_cv_prog_cc_g=yes
12439 fi
12440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12441 fi
12442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12443 fi
12444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12445 ac_c_werror_flag=$ac_save_c_werror_flag
12446 fi
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12448 $as_echo "$ac_cv_prog_cc_g" >&6; }
12449 if test "$ac_test_CFLAGS" = set; then
12450 CFLAGS=$ac_save_CFLAGS
12451 elif test $ac_cv_prog_cc_g = yes; then
12452 if test "$GCC" = yes; then
12453 CFLAGS="-g -O2"
12454 else
12455 CFLAGS="-g"
12456 fi
12457 else
12458 if test "$GCC" = yes; then
12459 CFLAGS="-O2"
12460 else
12461 CFLAGS=
12462 fi
12463 fi
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12465 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12466 if ${ac_cv_prog_cc_c89+:} false; then :
12467 $as_echo_n "(cached) " >&6
12468 else
12469 ac_cv_prog_cc_c89=no
12470 ac_save_CC=$CC
12471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472 /* end confdefs.h. */
12473 #include <stdarg.h>
12474 #include <stdio.h>
12475 struct stat;
12476 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12477 struct buf { int x; };
12478 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12479 static char *e (p, i)
12480 char **p;
12481 int i;
12482 {
12483 return p[i];
12484 }
12485 static char *f (char * (*g) (char **, int), char **p, ...)
12486 {
12487 char *s;
12488 va_list v;
12489 va_start (v,p);
12490 s = g (p, va_arg (v,int));
12491 va_end (v);
12492 return s;
12493 }
12494
12495 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12496 function prototypes and stuff, but not '\xHH' hex character constants.
12497 These don't provoke an error unfortunately, instead are silently treated
12498 as 'x'. The following induces an error, until -std is added to get
12499 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12500 array size at least. It's necessary to write '\x00'==0 to get something
12501 that's true only with -std. */
12502 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12503
12504 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12505 inside strings and character constants. */
12506 #define FOO(x) 'x'
12507 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12508
12509 int test (int i, double x);
12510 struct s1 {int (*f) (int a);};
12511 struct s2 {int (*f) (double a);};
12512 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12513 int argc;
12514 char **argv;
12515 int
12516 main ()
12517 {
12518 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12519 ;
12520 return 0;
12521 }
12522 _ACEOF
12523 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12524 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12525 do
12526 CC="$ac_save_CC $ac_arg"
12527 if ac_fn_c_try_compile "$LINENO"; then :
12528 ac_cv_prog_cc_c89=$ac_arg
12529 fi
12530 rm -f core conftest.err conftest.$ac_objext
12531 test "x$ac_cv_prog_cc_c89" != "xno" && break
12532 done
12533 rm -f conftest.$ac_ext
12534 CC=$ac_save_CC
12535
12536 fi
12537 # AC_CACHE_VAL
12538 case "x$ac_cv_prog_cc_c89" in
12539 x)
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12541 $as_echo "none needed" >&6; } ;;
12542 xno)
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12544 $as_echo "unsupported" >&6; } ;;
12545 *)
12546 CC="$CC $ac_cv_prog_cc_c89"
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12548 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12549 esac
12550 if test "x$ac_cv_prog_cc_c89" != xno; then :
12551
12552 fi
12553
12554 ac_ext=c
12555 ac_cpp='$CPP $CPPFLAGS'
12556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12559
12560 ac_ext=c
12561 ac_cpp='$CPP $CPPFLAGS'
12562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12566 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12567 if ${am_cv_prog_cc_c_o+:} false; then :
12568 $as_echo_n "(cached) " >&6
12569 else
12570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571 /* end confdefs.h. */
12572
12573 int
12574 main ()
12575 {
12576
12577 ;
12578 return 0;
12579 }
12580 _ACEOF
12581 # Make sure it works both with $CC and with simple cc.
12582 # Following AC_PROG_CC_C_O, we do the test twice because some
12583 # compilers refuse to overwrite an existing .o file with -o,
12584 # though they will create one.
12585 am_cv_prog_cc_c_o=yes
12586 for am_i in 1 2; do
12587 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12588 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12589 ac_status=$?
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } \
12592 && test -f conftest2.$ac_objext; then
12593 : OK
12594 else
12595 am_cv_prog_cc_c_o=no
12596 break
12597 fi
12598 done
12599 rm -f core conftest*
12600 unset am_i
12601 fi
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12603 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12604 if test "$am_cv_prog_cc_c_o" != yes; then
12605 # Losing compiler, so override with the script.
12606 # FIXME: It is wrong to rewrite CC.
12607 # But if we don't then we get into trouble of one sort or another.
12608 # A longer-term fix would be to have automake use am__CC in this case,
12609 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12610 CC="$am_aux_dir/compile $CC"
12611 fi
12612 ac_ext=c
12613 ac_cpp='$CPP $CPPFLAGS'
12614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12617
12618
12619 depcc="$CC" am_compiler_list=
12620
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12622 $as_echo_n "checking dependency style of $depcc... " >&6; }
12623 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12624 $as_echo_n "(cached) " >&6
12625 else
12626 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12627 # We make a subdir and do the tests there. Otherwise we can end up
12628 # making bogus files that we don't know about and never remove. For
12629 # instance it was reported that on HP-UX the gcc test will end up
12630 # making a dummy file named 'D' -- because '-MD' means "put the output
12631 # in D".
12632 rm -rf conftest.dir
12633 mkdir conftest.dir
12634 # Copy depcomp to subdir because otherwise we won't find it if we're
12635 # using a relative directory.
12636 cp "$am_depcomp" conftest.dir
12637 cd conftest.dir
12638 # We will build objects and dependencies in a subdirectory because
12639 # it helps to detect inapplicable dependency modes. For instance
12640 # both Tru64's cc and ICC support -MD to output dependencies as a
12641 # side effect of compilation, but ICC will put the dependencies in
12642 # the current directory while Tru64 will put them in the object
12643 # directory.
12644 mkdir sub
12645
12646 am_cv_CC_dependencies_compiler_type=none
12647 if test "$am_compiler_list" = ""; then
12648 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12649 fi
12650 am__universal=false
12651 case " $depcc " in #(
12652 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12653 esac
12654
12655 for depmode in $am_compiler_list; do
12656 # Setup a source with many dependencies, because some compilers
12657 # like to wrap large dependency lists on column 80 (with \), and
12658 # we should not choose a depcomp mode which is confused by this.
12659 #
12660 # We need to recreate these files for each test, as the compiler may
12661 # overwrite some of them when testing with obscure command lines.
12662 # This happens at least with the AIX C compiler.
12663 : > sub/conftest.c
12664 for i in 1 2 3 4 5 6; do
12665 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12666 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12667 # Solaris 10 /bin/sh.
12668 echo '/* dummy */' > sub/conftst$i.h
12669 done
12670 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12671
12672 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12673 # mode. It turns out that the SunPro C++ compiler does not properly
12674 # handle '-M -o', and we need to detect this. Also, some Intel
12675 # versions had trouble with output in subdirs.
12676 am__obj=sub/conftest.${OBJEXT-o}
12677 am__minus_obj="-o $am__obj"
12678 case $depmode in
12679 gcc)
12680 # This depmode causes a compiler race in universal mode.
12681 test "$am__universal" = false || continue
12682 ;;
12683 nosideeffect)
12684 # After this tag, mechanisms are not by side-effect, so they'll
12685 # only be used when explicitly requested.
12686 if test "x$enable_dependency_tracking" = xyes; then
12687 continue
12688 else
12689 break
12690 fi
12691 ;;
12692 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12693 # This compiler won't grok '-c -o', but also, the minuso test has
12694 # not run yet. These depmodes are late enough in the game, and
12695 # so weak that their functioning should not be impacted.
12696 am__obj=conftest.${OBJEXT-o}
12697 am__minus_obj=
12698 ;;
12699 none) break ;;
12700 esac
12701 if depmode=$depmode \
12702 source=sub/conftest.c object=$am__obj \
12703 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12704 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12705 >/dev/null 2>conftest.err &&
12706 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12707 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12708 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12709 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12710 # icc doesn't choke on unknown options, it will just issue warnings
12711 # or remarks (even with -Werror). So we grep stderr for any message
12712 # that says an option was ignored or not supported.
12713 # When given -MP, icc 7.0 and 7.1 complain thusly:
12714 # icc: Command line warning: ignoring option '-M'; no argument required
12715 # The diagnosis changed in icc 8.0:
12716 # icc: Command line remark: option '-MP' not supported
12717 if (grep 'ignoring option' conftest.err ||
12718 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12719 am_cv_CC_dependencies_compiler_type=$depmode
12720 break
12721 fi
12722 fi
12723 done
12724
12725 cd ..
12726 rm -rf conftest.dir
12727 else
12728 am_cv_CC_dependencies_compiler_type=none
12729 fi
12730
12731 fi
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12733 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12734 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12735
12736 if
12737 test "x$enable_dependency_tracking" != xno \
12738 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12739 am__fastdepCC_TRUE=
12740 am__fastdepCC_FALSE='#'
12741 else
12742 am__fastdepCC_TRUE='#'
12743 am__fastdepCC_FALSE=
12744 fi
12745
12746
12747 ac_ext=f
12748 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12749 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12750 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12751 if test -n "$ac_tool_prefix"; then
12752 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
12753 do
12754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12757 $as_echo_n "checking for $ac_word... " >&6; }
12758 if ${ac_cv_prog_F77+:} false; then :
12759 $as_echo_n "(cached) " >&6
12760 else
12761 if test -n "$F77"; then
12762 ac_cv_prog_F77="$F77" # Let the user override the test.
12763 else
12764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12765 for as_dir in $PATH
12766 do
12767 IFS=$as_save_IFS
12768 test -z "$as_dir" && as_dir=.
12769 for ac_exec_ext in '' $ac_executable_extensions; do
12770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12771 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12773 break 2
12774 fi
12775 done
12776 done
12777 IFS=$as_save_IFS
12778
12779 fi
12780 fi
12781 F77=$ac_cv_prog_F77
12782 if test -n "$F77"; then
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
12784 $as_echo "$F77" >&6; }
12785 else
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787 $as_echo "no" >&6; }
12788 fi
12789
12790
12791 test -n "$F77" && break
12792 done
12793 fi
12794 if test -z "$F77"; then
12795 ac_ct_F77=$F77
12796 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
12797 do
12798 # Extract the first word of "$ac_prog", so it can be a program name with args.
12799 set dummy $ac_prog; ac_word=$2
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12801 $as_echo_n "checking for $ac_word... " >&6; }
12802 if ${ac_cv_prog_ac_ct_F77+:} false; then :
12803 $as_echo_n "(cached) " >&6
12804 else
12805 if test -n "$ac_ct_F77"; then
12806 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12807 else
12808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12809 for as_dir in $PATH
12810 do
12811 IFS=$as_save_IFS
12812 test -z "$as_dir" && as_dir=.
12813 for ac_exec_ext in '' $ac_executable_extensions; do
12814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12815 ac_cv_prog_ac_ct_F77="$ac_prog"
12816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12817 break 2
12818 fi
12819 done
12820 done
12821 IFS=$as_save_IFS
12822
12823 fi
12824 fi
12825 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12826 if test -n "$ac_ct_F77"; then
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
12828 $as_echo "$ac_ct_F77" >&6; }
12829 else
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12831 $as_echo "no" >&6; }
12832 fi
12833
12834
12835 test -n "$ac_ct_F77" && break
12836 done
12837
12838 if test "x$ac_ct_F77" = x; then
12839 F77=""
12840 else
12841 case $cross_compiling:$ac_tool_warned in
12842 yes:)
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12845 ac_tool_warned=yes ;;
12846 esac
12847 F77=$ac_ct_F77
12848 fi
12849 fi
12850
12851
12852 # Provide some information about the compiler.
12853 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
12854 set X $ac_compile
12855 ac_compiler=$2
12856 for ac_option in --version -v -V -qversion; do
12857 { { ac_try="$ac_compiler $ac_option >&5"
12858 case "(($ac_try" in
12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860 *) ac_try_echo=$ac_try;;
12861 esac
12862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12863 $as_echo "$ac_try_echo"; } >&5
12864 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12865 ac_status=$?
12866 if test -s conftest.err; then
12867 sed '10a\
12868 ... rest of stderr output deleted ...
12869 10q' conftest.err >conftest.er1
12870 cat conftest.er1 >&5
12871 fi
12872 rm -f conftest.er1 conftest.err
12873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12874 test $ac_status = 0; }
12875 done
12876 rm -f a.out
12877
12878 # If we don't use `.F' as extension, the preprocessor is not run on the
12879 # input file. (Note that this only needs to work for GNU compilers.)
12880 ac_save_ext=$ac_ext
12881 ac_ext=F
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
12883 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
12884 if ${ac_cv_f77_compiler_gnu+:} false; then :
12885 $as_echo_n "(cached) " >&6
12886 else
12887 cat > conftest.$ac_ext <<_ACEOF
12888 program main
12889 #ifndef __GNUC__
12890 choke me
12891 #endif
12892
12893 end
12894 _ACEOF
12895 if ac_fn_f77_try_compile "$LINENO"; then :
12896 ac_compiler_gnu=yes
12897 else
12898 ac_compiler_gnu=no
12899 fi
12900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12901 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12902
12903 fi
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
12905 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
12906 ac_ext=$ac_save_ext
12907 ac_test_FFLAGS=${FFLAGS+set}
12908 ac_save_FFLAGS=$FFLAGS
12909 FFLAGS=
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
12911 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
12912 if ${ac_cv_prog_f77_g+:} false; then :
12913 $as_echo_n "(cached) " >&6
12914 else
12915 FFLAGS=-g
12916 cat > conftest.$ac_ext <<_ACEOF
12917 program main
12918
12919 end
12920 _ACEOF
12921 if ac_fn_f77_try_compile "$LINENO"; then :
12922 ac_cv_prog_f77_g=yes
12923 else
12924 ac_cv_prog_f77_g=no
12925 fi
12926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12927
12928 fi
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
12930 $as_echo "$ac_cv_prog_f77_g" >&6; }
12931 if test "$ac_test_FFLAGS" = set; then
12932 FFLAGS=$ac_save_FFLAGS
12933 elif test $ac_cv_prog_f77_g = yes; then
12934 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12935 FFLAGS="-g -O2"
12936 else
12937 FFLAGS="-g"
12938 fi
12939 else
12940 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12941 FFLAGS="-O2"
12942 else
12943 FFLAGS=
12944 fi
12945 fi
12946
12947 if test $ac_compiler_gnu = yes; then
12948 G77=yes
12949 else
12950 G77=
12951 fi
12952 ac_ext=c
12953 ac_cpp='$CPP $CPPFLAGS'
12954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12957
12958 ac_ext=f
12959 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12960 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12961 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12962
12963 if test -z "$F77" || test no = "$F77"; then
12964 _lt_disable_F77=yes
12965 fi
12966
12967 archive_cmds_need_lc_F77=no
12968 allow_undefined_flag_F77=
12969 always_export_symbols_F77=no
12970 archive_expsym_cmds_F77=
12971 export_dynamic_flag_spec_F77=
12972 hardcode_direct_F77=no
12973 hardcode_direct_absolute_F77=no
12974 hardcode_libdir_flag_spec_F77=
12975 hardcode_libdir_separator_F77=
12976 hardcode_minus_L_F77=no
12977 hardcode_automatic_F77=no
12978 inherit_rpath_F77=no
12979 module_cmds_F77=
12980 module_expsym_cmds_F77=
12981 link_all_deplibs_F77=unknown
12982 old_archive_cmds_F77=$old_archive_cmds
12983 reload_flag_F77=$reload_flag
12984 reload_cmds_F77=$reload_cmds
12985 no_undefined_flag_F77=
12986 whole_archive_flag_spec_F77=
12987 enable_shared_with_static_runtimes_F77=no
12988
12989 # Source file extension for f77 test sources.
12990 ac_ext=f
12991
12992 # Object file extension for compiled f77 test sources.
12993 objext=o
12994 objext_F77=$objext
12995
12996 # No sense in running all these tests if we already determined that
12997 # the F77 compiler isn't working. Some variables (like enable_shared)
12998 # are currently assumed to apply to all compilers on this platform,
12999 # and will be corrupted by setting them based on a non-working compiler.
13000 if test yes != "$_lt_disable_F77"; then
13001 # Code to be used in simple compile tests
13002 lt_simple_compile_test_code="\
13003 subroutine t
13004 return
13005 end
13006 "
13007
13008 # Code to be used in simple link tests
13009 lt_simple_link_test_code="\
13010 program t
13011 end
13012 "
13013
13014 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13015
13016
13017
13018
13019
13020
13021 # If no C compiler was specified, use CC.
13022 LTCC=${LTCC-"$CC"}
13023
13024 # If no C compiler flags were specified, use CFLAGS.
13025 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13026
13027 # Allow CC to be a program name with arguments.
13028 compiler=$CC
13029
13030
13031 # save warnings/boilerplate of simple test code
13032 ac_outfile=conftest.$ac_objext
13033 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13034 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13035 _lt_compiler_boilerplate=`cat conftest.err`
13036 $RM conftest*
13037
13038 ac_outfile=conftest.$ac_objext
13039 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13040 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13041 _lt_linker_boilerplate=`cat conftest.err`
13042 $RM -r conftest*
13043
13044
13045 # Allow CC to be a program name with arguments.
13046 lt_save_CC=$CC
13047 lt_save_GCC=$GCC
13048 lt_save_CFLAGS=$CFLAGS
13049 CC=${F77-"f77"}
13050 CFLAGS=$FFLAGS
13051 compiler=$CC
13052 compiler_F77=$CC
13053 func_cc_basename $compiler
13054 cc_basename=$func_cc_basename_result
13055
13056 GCC=$G77
13057 if test -n "$compiler"; then
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13059 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13061 $as_echo "$can_build_shared" >&6; }
13062
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13064 $as_echo_n "checking whether to build shared libraries... " >&6; }
13065 test no = "$can_build_shared" && enable_shared=no
13066
13067 # On AIX, shared libraries and static libraries use the same namespace, and
13068 # are all built from PIC.
13069 case $host_os in
13070 aix3*)
13071 test yes = "$enable_shared" && enable_static=no
13072 if test -n "$RANLIB"; then
13073 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13074 postinstall_cmds='$RANLIB $lib'
13075 fi
13076 ;;
13077 aix[4-9]*)
13078 if test ia64 != "$host_cpu"; then
13079 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13080 yes,aix,yes) ;; # shared object as lib.so file only
13081 yes,svr4,*) ;; # shared object as lib.so archive member only
13082 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13083 esac
13084 fi
13085 ;;
13086 esac
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13088 $as_echo "$enable_shared" >&6; }
13089
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13091 $as_echo_n "checking whether to build static libraries... " >&6; }
13092 # Make sure either enable_shared or enable_static is yes.
13093 test yes = "$enable_shared" || enable_static=yes
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13095 $as_echo "$enable_static" >&6; }
13096
13097 GCC_F77=$G77
13098 LD_F77=$LD
13099
13100 ## CAVEAT EMPTOR:
13101 ## There is no encapsulation within the following macros, do not change
13102 ## the running order or otherwise move them around unless you know exactly
13103 ## what you are doing...
13104 lt_prog_compiler_wl_F77=
13105 lt_prog_compiler_pic_F77=
13106 lt_prog_compiler_static_F77=
13107
13108
13109 if test yes = "$GCC"; then
13110 lt_prog_compiler_wl_F77='-Wl,'
13111 lt_prog_compiler_static_F77='-static'
13112
13113 case $host_os in
13114 aix*)
13115 # All AIX code is PIC.
13116 if test ia64 = "$host_cpu"; then
13117 # AIX 5 now supports IA64 processor
13118 lt_prog_compiler_static_F77='-Bstatic'
13119 fi
13120 lt_prog_compiler_pic_F77='-fPIC'
13121 ;;
13122
13123 amigaos*)
13124 case $host_cpu in
13125 powerpc)
13126 # see comment about AmigaOS4 .so support
13127 lt_prog_compiler_pic_F77='-fPIC'
13128 ;;
13129 m68k)
13130 # FIXME: we need at least 68020 code to build shared libraries, but
13131 # adding the '-m68020' flag to GCC prevents building anything better,
13132 # like '-m68040'.
13133 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13134 ;;
13135 esac
13136 ;;
13137
13138 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13139 # PIC is the default for these OSes.
13140 ;;
13141
13142 mingw* | cygwin* | pw32* | os2* | cegcc*)
13143 # This hack is so that the source file can tell whether it is being
13144 # built for inclusion in a dll (and should export symbols for example).
13145 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13146 # (--disable-auto-import) libraries
13147 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13148 case $host_os in
13149 os2*)
13150 lt_prog_compiler_static_F77='$wl-static'
13151 ;;
13152 esac
13153 ;;
13154
13155 darwin* | rhapsody*)
13156 # PIC is the default on this platform
13157 # Common symbols not allowed in MH_DYLIB files
13158 lt_prog_compiler_pic_F77='-fno-common'
13159 ;;
13160
13161 haiku*)
13162 # PIC is the default for Haiku.
13163 # The "-static" flag exists, but is broken.
13164 lt_prog_compiler_static_F77=
13165 ;;
13166
13167 hpux*)
13168 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13169 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13170 # sets the default TLS model and affects inlining.
13171 case $host_cpu in
13172 hppa*64*)
13173 # +Z the default
13174 ;;
13175 *)
13176 lt_prog_compiler_pic_F77='-fPIC'
13177 ;;
13178 esac
13179 ;;
13180
13181 interix[3-9]*)
13182 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13183 # Instead, we relocate shared libraries at runtime.
13184 ;;
13185
13186 msdosdjgpp*)
13187 # Just because we use GCC doesn't mean we suddenly get shared libraries
13188 # on systems that don't support them.
13189 lt_prog_compiler_can_build_shared_F77=no
13190 enable_shared=no
13191 ;;
13192
13193 *nto* | *qnx*)
13194 # QNX uses GNU C++, but need to define -shared option too, otherwise
13195 # it will coredump.
13196 lt_prog_compiler_pic_F77='-fPIC -shared'
13197 ;;
13198
13199 sysv4*MP*)
13200 if test -d /usr/nec; then
13201 lt_prog_compiler_pic_F77=-Kconform_pic
13202 fi
13203 ;;
13204
13205 *)
13206 lt_prog_compiler_pic_F77='-fPIC'
13207 ;;
13208 esac
13209
13210 case $cc_basename in
13211 nvcc*) # Cuda Compiler Driver 2.2
13212 lt_prog_compiler_wl_F77='-Xlinker '
13213 if test -n "$lt_prog_compiler_pic_F77"; then
13214 lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
13215 fi
13216 ;;
13217 esac
13218 else
13219 # PORTME Check for flag to pass linker flags through the system compiler.
13220 case $host_os in
13221 aix*)
13222 lt_prog_compiler_wl_F77='-Wl,'
13223 if test ia64 = "$host_cpu"; then
13224 # AIX 5 now supports IA64 processor
13225 lt_prog_compiler_static_F77='-Bstatic'
13226 else
13227 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13228 fi
13229 ;;
13230
13231 darwin* | rhapsody*)
13232 # PIC is the default on this platform
13233 # Common symbols not allowed in MH_DYLIB files
13234 lt_prog_compiler_pic_F77='-fno-common'
13235 case $cc_basename in
13236 nagfor*)
13237 # NAG Fortran compiler
13238 lt_prog_compiler_wl_F77='-Wl,-Wl,,'
13239 lt_prog_compiler_pic_F77='-PIC'
13240 lt_prog_compiler_static_F77='-Bstatic'
13241 ;;
13242 esac
13243 ;;
13244
13245 mingw* | cygwin* | pw32* | os2* | cegcc*)
13246 # This hack is so that the source file can tell whether it is being
13247 # built for inclusion in a dll (and should export symbols for example).
13248 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13249 case $host_os in
13250 os2*)
13251 lt_prog_compiler_static_F77='$wl-static'
13252 ;;
13253 esac
13254 ;;
13255
13256 hpux9* | hpux10* | hpux11*)
13257 lt_prog_compiler_wl_F77='-Wl,'
13258 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13259 # not for PA HP-UX.
13260 case $host_cpu in
13261 hppa*64*|ia64*)
13262 # +Z the default
13263 ;;
13264 *)
13265 lt_prog_compiler_pic_F77='+Z'
13266 ;;
13267 esac
13268 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13269 lt_prog_compiler_static_F77='$wl-a ${wl}archive'
13270 ;;
13271
13272 irix5* | irix6* | nonstopux*)
13273 lt_prog_compiler_wl_F77='-Wl,'
13274 # PIC (with -KPIC) is the default.
13275 lt_prog_compiler_static_F77='-non_shared'
13276 ;;
13277
13278 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13279 case $cc_basename in
13280 # old Intel for x86_64, which still supported -KPIC.
13281 ecc*)
13282 lt_prog_compiler_wl_F77='-Wl,'
13283 lt_prog_compiler_pic_F77='-KPIC'
13284 lt_prog_compiler_static_F77='-static'
13285 ;;
13286 # icc used to be incompatible with GCC.
13287 # ICC 10 doesn't accept -KPIC any more.
13288 icc* | ifort*)
13289 lt_prog_compiler_wl_F77='-Wl,'
13290 lt_prog_compiler_pic_F77='-fPIC'
13291 lt_prog_compiler_static_F77='-static'
13292 ;;
13293 # Lahey Fortran 8.1.
13294 lf95*)
13295 lt_prog_compiler_wl_F77='-Wl,'
13296 lt_prog_compiler_pic_F77='--shared'
13297 lt_prog_compiler_static_F77='--static'
13298 ;;
13299 nagfor*)
13300 # NAG Fortran compiler
13301 lt_prog_compiler_wl_F77='-Wl,-Wl,,'
13302 lt_prog_compiler_pic_F77='-PIC'
13303 lt_prog_compiler_static_F77='-Bstatic'
13304 ;;
13305 tcc*)
13306 # Fabrice Bellard et al's Tiny C Compiler
13307 lt_prog_compiler_wl_F77='-Wl,'
13308 lt_prog_compiler_pic_F77='-fPIC'
13309 lt_prog_compiler_static_F77='-static'
13310 ;;
13311 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13312 # Portland Group compilers (*not* the Pentium gcc compiler,
13313 # which looks to be a dead project)
13314 lt_prog_compiler_wl_F77='-Wl,'
13315 lt_prog_compiler_pic_F77='-fpic'
13316 lt_prog_compiler_static_F77='-Bstatic'
13317 ;;
13318 ccc*)
13319 lt_prog_compiler_wl_F77='-Wl,'
13320 # All Alpha code is PIC.
13321 lt_prog_compiler_static_F77='-non_shared'
13322 ;;
13323 xl* | bgxl* | bgf* | mpixl*)
13324 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13325 lt_prog_compiler_wl_F77='-Wl,'
13326 lt_prog_compiler_pic_F77='-qpic'
13327 lt_prog_compiler_static_F77='-qstaticlink'
13328 ;;
13329 *)
13330 case `$CC -V 2>&1 | sed 5q` in
13331 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13332 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13333 lt_prog_compiler_pic_F77='-KPIC'
13334 lt_prog_compiler_static_F77='-Bstatic'
13335 lt_prog_compiler_wl_F77=''
13336 ;;
13337 *Sun\ F* | *Sun*Fortran*)
13338 lt_prog_compiler_pic_F77='-KPIC'
13339 lt_prog_compiler_static_F77='-Bstatic'
13340 lt_prog_compiler_wl_F77='-Qoption ld '
13341 ;;
13342 *Sun\ C*)
13343 # Sun C 5.9
13344 lt_prog_compiler_pic_F77='-KPIC'
13345 lt_prog_compiler_static_F77='-Bstatic'
13346 lt_prog_compiler_wl_F77='-Wl,'
13347 ;;
13348 *Intel*\ [CF]*Compiler*)
13349 lt_prog_compiler_wl_F77='-Wl,'
13350 lt_prog_compiler_pic_F77='-fPIC'
13351 lt_prog_compiler_static_F77='-static'
13352 ;;
13353 *Portland\ Group*)
13354 lt_prog_compiler_wl_F77='-Wl,'
13355 lt_prog_compiler_pic_F77='-fpic'
13356 lt_prog_compiler_static_F77='-Bstatic'
13357 ;;
13358 esac
13359 ;;
13360 esac
13361 ;;
13362
13363 newsos6)
13364 lt_prog_compiler_pic_F77='-KPIC'
13365 lt_prog_compiler_static_F77='-Bstatic'
13366 ;;
13367
13368 *nto* | *qnx*)
13369 # QNX uses GNU C++, but need to define -shared option too, otherwise
13370 # it will coredump.
13371 lt_prog_compiler_pic_F77='-fPIC -shared'
13372 ;;
13373
13374 osf3* | osf4* | osf5*)
13375 lt_prog_compiler_wl_F77='-Wl,'
13376 # All OSF/1 code is PIC.
13377 lt_prog_compiler_static_F77='-non_shared'
13378 ;;
13379
13380 rdos*)
13381 lt_prog_compiler_static_F77='-non_shared'
13382 ;;
13383
13384 solaris*)
13385 lt_prog_compiler_pic_F77='-KPIC'
13386 lt_prog_compiler_static_F77='-Bstatic'
13387 case $cc_basename in
13388 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13389 lt_prog_compiler_wl_F77='-Qoption ld ';;
13390 *)
13391 lt_prog_compiler_wl_F77='-Wl,';;
13392 esac
13393 ;;
13394
13395 sunos4*)
13396 lt_prog_compiler_wl_F77='-Qoption ld '
13397 lt_prog_compiler_pic_F77='-PIC'
13398 lt_prog_compiler_static_F77='-Bstatic'
13399 ;;
13400
13401 sysv4 | sysv4.2uw2* | sysv4.3*)
13402 lt_prog_compiler_wl_F77='-Wl,'
13403 lt_prog_compiler_pic_F77='-KPIC'
13404 lt_prog_compiler_static_F77='-Bstatic'
13405 ;;
13406
13407 sysv4*MP*)
13408 if test -d /usr/nec; then
13409 lt_prog_compiler_pic_F77='-Kconform_pic'
13410 lt_prog_compiler_static_F77='-Bstatic'
13411 fi
13412 ;;
13413
13414 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13415 lt_prog_compiler_wl_F77='-Wl,'
13416 lt_prog_compiler_pic_F77='-KPIC'
13417 lt_prog_compiler_static_F77='-Bstatic'
13418 ;;
13419
13420 unicos*)
13421 lt_prog_compiler_wl_F77='-Wl,'
13422 lt_prog_compiler_can_build_shared_F77=no
13423 ;;
13424
13425 uts4*)
13426 lt_prog_compiler_pic_F77='-pic'
13427 lt_prog_compiler_static_F77='-Bstatic'
13428 ;;
13429
13430 *)
13431 lt_prog_compiler_can_build_shared_F77=no
13432 ;;
13433 esac
13434 fi
13435
13436 case $host_os in
13437 # For platforms that do not support PIC, -DPIC is meaningless:
13438 *djgpp*)
13439 lt_prog_compiler_pic_F77=
13440 ;;
13441 *)
13442 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13443 ;;
13444 esac
13445
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13447 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13448 if ${lt_cv_prog_compiler_pic_F77+:} false; then :
13449 $as_echo_n "(cached) " >&6
13450 else
13451 lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
13452 fi
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
13454 $as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
13455 lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
13456
13457 #
13458 # Check to make sure the PIC flag actually works.
13459 #
13460 if test -n "$lt_prog_compiler_pic_F77"; then
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13462 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13463 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
13464 $as_echo_n "(cached) " >&6
13465 else
13466 lt_cv_prog_compiler_pic_works_F77=no
13467 ac_outfile=conftest.$ac_objext
13468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13469 lt_compiler_flag="$lt_prog_compiler_pic_F77" ## exclude from sc_useless_quotes_in_assignment
13470 # Insert the option either (1) after the last *FLAGS variable, or
13471 # (2) before a word containing "conftest.", or (3) at the end.
13472 # Note that $ac_compile itself does not contain backslashes and begins
13473 # with a dollar sign (not a hyphen), so the echo should work correctly.
13474 # The option is referenced via a variable to avoid confusing sed.
13475 lt_compile=`echo "$ac_compile" | $SED \
13476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13478 -e 's:$: $lt_compiler_flag:'`
13479 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13480 (eval "$lt_compile" 2>conftest.err)
13481 ac_status=$?
13482 cat conftest.err >&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 if (exit $ac_status) && test -s "$ac_outfile"; then
13485 # The compiler can only warn and ignore the option if not recognized
13486 # So say no if there are warnings other than the usual output.
13487 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13489 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13490 lt_cv_prog_compiler_pic_works_F77=yes
13491 fi
13492 fi
13493 $RM conftest*
13494
13495 fi
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
13497 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
13498
13499 if test yes = "$lt_cv_prog_compiler_pic_works_F77"; then
13500 case $lt_prog_compiler_pic_F77 in
13501 "" | " "*) ;;
13502 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13503 esac
13504 else
13505 lt_prog_compiler_pic_F77=
13506 lt_prog_compiler_can_build_shared_F77=no
13507 fi
13508
13509 fi
13510
13511
13512
13513
13514
13515 #
13516 # Check to make sure the static flag actually works.
13517 #
13518 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13520 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13521 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
13522 $as_echo_n "(cached) " >&6
13523 else
13524 lt_cv_prog_compiler_static_works_F77=no
13525 save_LDFLAGS=$LDFLAGS
13526 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13527 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13528 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13529 # The linker can only warn and ignore the option if not recognized
13530 # So say no if there are warnings
13531 if test -s conftest.err; then
13532 # Append any errors to the config.log.
13533 cat conftest.err 1>&5
13534 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13536 if diff conftest.exp conftest.er2 >/dev/null; then
13537 lt_cv_prog_compiler_static_works_F77=yes
13538 fi
13539 else
13540 lt_cv_prog_compiler_static_works_F77=yes
13541 fi
13542 fi
13543 $RM -r conftest*
13544 LDFLAGS=$save_LDFLAGS
13545
13546 fi
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
13548 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
13549
13550 if test yes = "$lt_cv_prog_compiler_static_works_F77"; then
13551 :
13552 else
13553 lt_prog_compiler_static_F77=
13554 fi
13555
13556
13557
13558
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13560 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13561 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
13562 $as_echo_n "(cached) " >&6
13563 else
13564 lt_cv_prog_compiler_c_o_F77=no
13565 $RM -r conftest 2>/dev/null
13566 mkdir conftest
13567 cd conftest
13568 mkdir out
13569 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13570
13571 lt_compiler_flag="-o out/conftest2.$ac_objext"
13572 # Insert the option either (1) after the last *FLAGS variable, or
13573 # (2) before a word containing "conftest.", or (3) at the end.
13574 # Note that $ac_compile itself does not contain backslashes and begins
13575 # with a dollar sign (not a hyphen), so the echo should work correctly.
13576 lt_compile=`echo "$ac_compile" | $SED \
13577 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13579 -e 's:$: $lt_compiler_flag:'`
13580 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13581 (eval "$lt_compile" 2>out/conftest.err)
13582 ac_status=$?
13583 cat out/conftest.err >&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13586 then
13587 # The compiler can only warn and ignore the option if not recognized
13588 # So say no if there are warnings
13589 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13590 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13591 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13592 lt_cv_prog_compiler_c_o_F77=yes
13593 fi
13594 fi
13595 chmod u+w . 2>&5
13596 $RM conftest*
13597 # SGI C++ compiler will create directory out/ii_files/ for
13598 # template instantiation
13599 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13600 $RM out/* && rmdir out
13601 cd ..
13602 $RM -r conftest
13603 $RM conftest*
13604
13605 fi
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13607 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13608
13609
13610
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13612 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13613 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
13614 $as_echo_n "(cached) " >&6
13615 else
13616 lt_cv_prog_compiler_c_o_F77=no
13617 $RM -r conftest 2>/dev/null
13618 mkdir conftest
13619 cd conftest
13620 mkdir out
13621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13622
13623 lt_compiler_flag="-o out/conftest2.$ac_objext"
13624 # Insert the option either (1) after the last *FLAGS variable, or
13625 # (2) before a word containing "conftest.", or (3) at the end.
13626 # Note that $ac_compile itself does not contain backslashes and begins
13627 # with a dollar sign (not a hyphen), so the echo should work correctly.
13628 lt_compile=`echo "$ac_compile" | $SED \
13629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13631 -e 's:$: $lt_compiler_flag:'`
13632 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13633 (eval "$lt_compile" 2>out/conftest.err)
13634 ac_status=$?
13635 cat out/conftest.err >&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13638 then
13639 # The compiler can only warn and ignore the option if not recognized
13640 # So say no if there are warnings
13641 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13642 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13643 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13644 lt_cv_prog_compiler_c_o_F77=yes
13645 fi
13646 fi
13647 chmod u+w . 2>&5
13648 $RM conftest*
13649 # SGI C++ compiler will create directory out/ii_files/ for
13650 # template instantiation
13651 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13652 $RM out/* && rmdir out
13653 cd ..
13654 $RM -r conftest
13655 $RM conftest*
13656
13657 fi
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13659 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13660
13661
13662
13663
13664 hard_links=nottested
13665 if test no = "$lt_cv_prog_compiler_c_o_F77" && test no != "$need_locks"; then
13666 # do not overwrite the value of need_locks provided by the user
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13668 $as_echo_n "checking if we can lock with hard links... " >&6; }
13669 hard_links=yes
13670 $RM conftest*
13671 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13672 touch conftest.a
13673 ln conftest.a conftest.b 2>&5 || hard_links=no
13674 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13676 $as_echo "$hard_links" >&6; }
13677 if test no = "$hard_links"; then
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13679 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13680 need_locks=warn
13681 fi
13682 else
13683 need_locks=no
13684 fi
13685
13686
13687
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13689 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13690
13691 runpath_var=
13692 allow_undefined_flag_F77=
13693 always_export_symbols_F77=no
13694 archive_cmds_F77=
13695 archive_expsym_cmds_F77=
13696 compiler_needs_object_F77=no
13697 enable_shared_with_static_runtimes_F77=no
13698 export_dynamic_flag_spec_F77=
13699 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13700 hardcode_automatic_F77=no
13701 hardcode_direct_F77=no
13702 hardcode_direct_absolute_F77=no
13703 hardcode_libdir_flag_spec_F77=
13704 hardcode_libdir_separator_F77=
13705 hardcode_minus_L_F77=no
13706 hardcode_shlibpath_var_F77=unsupported
13707 inherit_rpath_F77=no
13708 link_all_deplibs_F77=unknown
13709 module_cmds_F77=
13710 module_expsym_cmds_F77=
13711 old_archive_from_new_cmds_F77=
13712 old_archive_from_expsyms_cmds_F77=
13713 thread_safe_flag_spec_F77=
13714 whole_archive_flag_spec_F77=
13715 # include_expsyms should be a list of space-separated symbols to be *always*
13716 # included in the symbol list
13717 include_expsyms_F77=
13718 # exclude_expsyms can be an extended regexp of symbols to exclude
13719 # it will be wrapped by ' (' and ')$', so one must not match beginning or
13720 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13721 # as well as any symbol that contains 'd'.
13722 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13723 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13724 # platforms (ab)use it in PIC code, but their linkers get confused if
13725 # the symbol is explicitly referenced. Since portable code cannot
13726 # rely on this symbol name, it's probably fine to never include it in
13727 # preloaded symbol tables.
13728 # Exclude shared library initialization/finalization symbols.
13729 extract_expsyms_cmds=
13730
13731 case $host_os in
13732 cygwin* | mingw* | pw32* | cegcc*)
13733 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13734 # When not using gcc, we currently assume that we are using
13735 # Microsoft Visual C++.
13736 if test yes != "$GCC"; then
13737 with_gnu_ld=no
13738 fi
13739 ;;
13740 interix*)
13741 # we just hope/assume this is gcc and not c89 (= MSVC++)
13742 with_gnu_ld=yes
13743 ;;
13744 openbsd* | bitrig*)
13745 with_gnu_ld=no
13746 ;;
13747 esac
13748
13749 ld_shlibs_F77=yes
13750
13751 # On some targets, GNU ld is compatible enough with the native linker
13752 # that we're better off using the native interface for both.
13753 lt_use_gnu_ld_interface=no
13754 if test yes = "$with_gnu_ld"; then
13755 case $host_os in
13756 aix*)
13757 # The AIX port of GNU ld has always aspired to compatibility
13758 # with the native linker. However, as the warning in the GNU ld
13759 # block says, versions before 2.19.5* couldn't really create working
13760 # shared libraries, regardless of the interface used.
13761 case `$LD -v 2>&1` in
13762 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13763 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13764 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13765 *)
13766 lt_use_gnu_ld_interface=yes
13767 ;;
13768 esac
13769 ;;
13770 *)
13771 lt_use_gnu_ld_interface=yes
13772 ;;
13773 esac
13774 fi
13775
13776 if test yes = "$lt_use_gnu_ld_interface"; then
13777 # If archive_cmds runs LD, not CC, wlarc should be empty
13778 wlarc='$wl'
13779
13780 # Set some defaults for GNU ld with shared library support. These
13781 # are reset later if shared libraries are not supported. Putting them
13782 # here allows them to be overridden if necessary.
13783 runpath_var=LD_RUN_PATH
13784 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
13785 export_dynamic_flag_spec_F77='$wl--export-dynamic'
13786 # ancient GNU ld didn't support --whole-archive et. al.
13787 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13788 whole_archive_flag_spec_F77=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13789 else
13790 whole_archive_flag_spec_F77=
13791 fi
13792 supports_anon_versioning=no
13793 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
13794 *GNU\ gold*) supports_anon_versioning=yes ;;
13795 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13796 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13797 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13798 *\ 2.11.*) ;; # other 2.11 versions
13799 *) supports_anon_versioning=yes ;;
13800 esac
13801
13802 # See if GNU ld supports shared libraries.
13803 case $host_os in
13804 aix[3-9]*)
13805 # On AIX/PPC, the GNU linker is very broken
13806 if test ia64 != "$host_cpu"; then
13807 ld_shlibs_F77=no
13808 cat <<_LT_EOF 1>&2
13809
13810 *** Warning: the GNU linker, at least up to release 2.19, is reported
13811 *** to be unable to reliably create shared libraries on AIX.
13812 *** Therefore, libtool is disabling shared libraries support. If you
13813 *** really care for shared libraries, you may want to install binutils
13814 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13815 *** You will then need to restart the configuration process.
13816
13817 _LT_EOF
13818 fi
13819 ;;
13820
13821 amigaos*)
13822 case $host_cpu in
13823 powerpc)
13824 # see comment about AmigaOS4 .so support
13825 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13826 archive_expsym_cmds_F77=''
13827 ;;
13828 m68k)
13829 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)'
13830 hardcode_libdir_flag_spec_F77='-L$libdir'
13831 hardcode_minus_L_F77=yes
13832 ;;
13833 esac
13834 ;;
13835
13836 beos*)
13837 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13838 allow_undefined_flag_F77=unsupported
13839 # Joseph Beckenbach <[email protected]> says some releases of gcc
13840 # support --undefined. This deserves some investigation. FIXME
13841 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13842 else
13843 ld_shlibs_F77=no
13844 fi
13845 ;;
13846
13847 cygwin* | mingw* | pw32* | cegcc*)
13848 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13849 # as there is no search path for DLLs.
13850 hardcode_libdir_flag_spec_F77='-L$libdir'
13851 export_dynamic_flag_spec_F77='$wl--export-all-symbols'
13852 allow_undefined_flag_F77=unsupported
13853 always_export_symbols_F77=no
13854 enable_shared_with_static_runtimes_F77=yes
13855 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13856 exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13857
13858 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13859 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13860 # If the export-symbols file already is a .def file, use it as
13861 # is; otherwise, prepend EXPORTS...
13862 archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13863 cp $export_symbols $output_objdir/$soname.def;
13864 else
13865 echo EXPORTS > $output_objdir/$soname.def;
13866 cat $export_symbols >> $output_objdir/$soname.def;
13867 fi~
13868 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13869 else
13870 ld_shlibs_F77=no
13871 fi
13872 ;;
13873
13874 haiku*)
13875 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13876 link_all_deplibs_F77=yes
13877 ;;
13878
13879 os2*)
13880 hardcode_libdir_flag_spec_F77='-L$libdir'
13881 hardcode_minus_L_F77=yes
13882 allow_undefined_flag_F77=unsupported
13883 shrext_cmds=.dll
13884 archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13885 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13886 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13887 $ECHO EXPORTS >> $output_objdir/$libname.def~
13888 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13889 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13890 emximp -o $lib $output_objdir/$libname.def'
13891 archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13892 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13893 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13894 $ECHO EXPORTS >> $output_objdir/$libname.def~
13895 prefix_cmds="$SED"~
13896 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13897 prefix_cmds="$prefix_cmds -e 1d";
13898 fi~
13899 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13900 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13901 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13902 emximp -o $lib $output_objdir/$libname.def'
13903 old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13904 enable_shared_with_static_runtimes_F77=yes
13905 ;;
13906
13907 interix[3-9]*)
13908 hardcode_direct_F77=no
13909 hardcode_shlibpath_var_F77=no
13910 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir'
13911 export_dynamic_flag_spec_F77='$wl-E'
13912 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13913 # Instead, shared libraries are loaded at an image base (0x10000000 by
13914 # default) and relocated if they conflict, which is a slow very memory
13915 # consuming and fragmenting process. To avoid this, we pick a random,
13916 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13917 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13918 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'
13919 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'
13920 ;;
13921
13922 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13923 tmp_diet=no
13924 if test linux-dietlibc = "$host_os"; then
13925 case $cc_basename in
13926 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13927 esac
13928 fi
13929 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13930 && test no = "$tmp_diet"
13931 then
13932 tmp_addflag=' $pic_flag'
13933 tmp_sharedflag='-shared'
13934 case $cc_basename,$host_cpu in
13935 pgcc*) # Portland Group C compiler
13936 whole_archive_flag_spec_F77='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
13937 tmp_addflag=' $pic_flag'
13938 ;;
13939 pgf77* | pgf90* | pgf95* | pgfortran*)
13940 # Portland Group f77 and f90 compilers
13941 whole_archive_flag_spec_F77='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
13942 tmp_addflag=' $pic_flag -Mnomain' ;;
13943 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13944 tmp_addflag=' -i_dynamic' ;;
13945 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13946 tmp_addflag=' -i_dynamic -nofor_main' ;;
13947 ifc* | ifort*) # Intel Fortran compiler
13948 tmp_addflag=' -nofor_main' ;;
13949 lf95*) # Lahey Fortran 8.1
13950 whole_archive_flag_spec_F77=
13951 tmp_sharedflag='--shared' ;;
13952 nagfor*) # NAGFOR 5.3
13953 tmp_sharedflag='-Wl,-shared' ;;
13954 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13955 tmp_sharedflag='-qmkshrobj'
13956 tmp_addflag= ;;
13957 nvcc*) # Cuda Compiler Driver 2.2
13958 whole_archive_flag_spec_F77='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
13959 compiler_needs_object_F77=yes
13960 ;;
13961 esac
13962 case `$CC -V 2>&1 | sed 5q` in
13963 *Sun\ C*) # Sun C 5.9
13964 whole_archive_flag_spec_F77='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
13965 compiler_needs_object_F77=yes
13966 tmp_sharedflag='-G' ;;
13967 *Sun\ F*) # Sun Fortran 8.3
13968 tmp_sharedflag='-G' ;;
13969 esac
13970 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13971
13972 if test yes = "$supports_anon_versioning"; then
13973 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
13974 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13975 echo "local: *; };" >> $output_objdir/$libname.ver~
13976 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13977 fi
13978
13979 case $cc_basename in
13980 tcc*)
13981 export_dynamic_flag_spec_F77='-rdynamic'
13982 ;;
13983 xlf* | bgf* | bgxlf* | mpixlf*)
13984 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13985 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
13986 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
13987 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13988 if test yes = "$supports_anon_versioning"; then
13989 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
13990 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13991 echo "local: *; };" >> $output_objdir/$libname.ver~
13992 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13993 fi
13994 ;;
13995 esac
13996 else
13997 ld_shlibs_F77=no
13998 fi
13999 ;;
14000
14001 netbsd*)
14002 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14003 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14004 wlarc=
14005 else
14006 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14007 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14008 fi
14009 ;;
14010
14011 solaris*)
14012 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14013 ld_shlibs_F77=no
14014 cat <<_LT_EOF 1>&2
14015
14016 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14017 *** create shared libraries on Solaris systems. Therefore, libtool
14018 *** is disabling shared libraries support. We urge you to upgrade GNU
14019 *** binutils to release 2.9.1 or newer. Another option is to modify
14020 *** your PATH or compiler configuration so that the native linker is
14021 *** used, and then restart.
14022
14023 _LT_EOF
14024 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14025 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14026 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14027 else
14028 ld_shlibs_F77=no
14029 fi
14030 ;;
14031
14032 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14033 case `$LD -v 2>&1` in
14034 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14035 ld_shlibs_F77=no
14036 cat <<_LT_EOF 1>&2
14037
14038 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
14039 *** reliably create shared libraries on SCO systems. Therefore, libtool
14040 *** is disabling shared libraries support. We urge you to upgrade GNU
14041 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14042 *** your PATH or compiler configuration so that the native linker is
14043 *** used, and then restart.
14044
14045 _LT_EOF
14046 ;;
14047 *)
14048 # For security reasons, it is highly recommended that you always
14049 # use absolute paths for naming shared libraries, and exclude the
14050 # DT_RUNPATH tag from executables and libraries. But doing so
14051 # requires that you compile everything twice, which is a pain.
14052 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14053 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
14054 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14055 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14056 else
14057 ld_shlibs_F77=no
14058 fi
14059 ;;
14060 esac
14061 ;;
14062
14063 sunos4*)
14064 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14065 wlarc=
14066 hardcode_direct_F77=yes
14067 hardcode_shlibpath_var_F77=no
14068 ;;
14069
14070 *)
14071 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14072 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14073 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14074 else
14075 ld_shlibs_F77=no
14076 fi
14077 ;;
14078 esac
14079
14080 if test no = "$ld_shlibs_F77"; then
14081 runpath_var=
14082 hardcode_libdir_flag_spec_F77=
14083 export_dynamic_flag_spec_F77=
14084 whole_archive_flag_spec_F77=
14085 fi
14086 else
14087 # PORTME fill in a description of your system's linker (not GNU ld)
14088 case $host_os in
14089 aix3*)
14090 allow_undefined_flag_F77=unsupported
14091 always_export_symbols_F77=yes
14092 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'
14093 # Note: this linker hardcodes the directories in LIBPATH if there
14094 # are no directories specified by -L.
14095 hardcode_minus_L_F77=yes
14096 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
14097 # Neither direct hardcoding nor static linking is supported with a
14098 # broken collect2.
14099 hardcode_direct_F77=unsupported
14100 fi
14101 ;;
14102
14103 aix[4-9]*)
14104 if test ia64 = "$host_cpu"; then
14105 # On IA64, the linker does run time linking by default, so we don't
14106 # have to do anything special.
14107 aix_use_runtimelinking=no
14108 exp_sym_flag='-Bexport'
14109 no_entry_flag=
14110 else
14111 # If we're using GNU nm, then we don't want the "-C" option.
14112 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14113 # Without the "-l" option, or with the "-B" option, AIX nm treats
14114 # weak defined symbols like other global defined symbols, whereas
14115 # GNU nm marks them as "W".
14116 # While the 'weak' keyword is ignored in the Export File, we need
14117 # it in the Import File for the 'aix-soname' feature, so we have
14118 # to replace the "-B" option with "-P" for AIX nm.
14119 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14120 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
14121 else
14122 export_symbols_cmds_F77='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
14123 fi
14124 aix_use_runtimelinking=no
14125
14126 # Test if we are trying to use run time linking or normal
14127 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14128 # have runtime linking enabled, and use it for executables.
14129 # For shared libraries, we enable/disable runtime linking
14130 # depending on the kind of the shared library created -
14131 # when "with_aix_soname,aix_use_runtimelinking" is:
14132 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14133 # "aix,yes" lib.so shared, rtl:yes, for executables
14134 # lib.a static archive
14135 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14136 # lib.a(lib.so.V) shared, rtl:no, for executables
14137 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14138 # lib.a(lib.so.V) shared, rtl:no
14139 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14140 # lib.a static archive
14141 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14142 for ld_flag in $LDFLAGS; do
14143 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
14144 aix_use_runtimelinking=yes
14145 break
14146 fi
14147 done
14148 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14149 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14150 # so we don't have lib.a shared libs to link our executables.
14151 # We have to force runtime linking in this case.
14152 aix_use_runtimelinking=yes
14153 LDFLAGS="$LDFLAGS -Wl,-brtl"
14154 fi
14155 ;;
14156 esac
14157
14158 exp_sym_flag='-bexport'
14159 no_entry_flag='-bnoentry'
14160 fi
14161
14162 # When large executables or shared objects are built, AIX ld can
14163 # have problems creating the table of contents. If linking a library
14164 # or program results in "error TOC overflow" add -mminimal-toc to
14165 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14166 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14167
14168 archive_cmds_F77=''
14169 hardcode_direct_F77=yes
14170 hardcode_direct_absolute_F77=yes
14171 hardcode_libdir_separator_F77=':'
14172 link_all_deplibs_F77=yes
14173 file_list_spec_F77='$wl-f,'
14174 case $with_aix_soname,$aix_use_runtimelinking in
14175 aix,*) ;; # traditional, no import file
14176 svr4,* | *,yes) # use import file
14177 # The Import File defines what to hardcode.
14178 hardcode_direct_F77=no
14179 hardcode_direct_absolute_F77=no
14180 ;;
14181 esac
14182
14183 if test yes = "$GCC"; then
14184 case $host_os in aix4.[012]|aix4.[012].*)
14185 # We only want to do this on AIX 4.2 and lower, the check
14186 # below for broken collect2 doesn't work under 4.3+
14187 collect2name=`$CC -print-prog-name=collect2`
14188 if test -f "$collect2name" &&
14189 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14190 then
14191 # We have reworked collect2
14192 :
14193 else
14194 # We have old collect2
14195 hardcode_direct_F77=unsupported
14196 # It fails to find uninstalled libraries when the uninstalled
14197 # path is not listed in the libpath. Setting hardcode_minus_L
14198 # to unsupported forces relinking
14199 hardcode_minus_L_F77=yes
14200 hardcode_libdir_flag_spec_F77='-L$libdir'
14201 hardcode_libdir_separator_F77=
14202 fi
14203 ;;
14204 esac
14205 shared_flag='-shared'
14206 if test yes = "$aix_use_runtimelinking"; then
14207 shared_flag="$shared_flag "'$wl-G'
14208 fi
14209 # Need to ensure runtime linking is disabled for the traditional
14210 # shared library, or the linker may eventually find shared libraries
14211 # /with/ Import File - we do not want to mix them.
14212 shared_flag_aix='-shared'
14213 shared_flag_svr4='-shared $wl-G'
14214 else
14215 # not using gcc
14216 if test ia64 = "$host_cpu"; then
14217 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14218 # chokes on -Wl,-G. The following line is correct:
14219 shared_flag='-G'
14220 else
14221 if test yes = "$aix_use_runtimelinking"; then
14222 shared_flag='$wl-G'
14223 else
14224 shared_flag='$wl-bM:SRE'
14225 fi
14226 shared_flag_aix='$wl-bM:SRE'
14227 shared_flag_svr4='$wl-G'
14228 fi
14229 fi
14230
14231 export_dynamic_flag_spec_F77='$wl-bexpall'
14232 # It seems that -bexpall does not export symbols beginning with
14233 # underscore (_), so it is better to generate a list of symbols to export.
14234 always_export_symbols_F77=yes
14235 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14236 # Warning - without using the other runtime loading flags (-brtl),
14237 # -berok will link without error, but may produce a broken library.
14238 allow_undefined_flag_F77='-berok'
14239 # Determine the default libpath from the value encoded in an
14240 # empty executable.
14241 if test set = "${lt_cv_aix_libpath+set}"; then
14242 aix_libpath=$lt_cv_aix_libpath
14243 else
14244 if ${lt_cv_aix_libpath__F77+:} false; then :
14245 $as_echo_n "(cached) " >&6
14246 else
14247 cat > conftest.$ac_ext <<_ACEOF
14248 program main
14249
14250 end
14251 _ACEOF
14252 if ac_fn_f77_try_link "$LINENO"; then :
14253
14254 lt_aix_libpath_sed='
14255 /Import File Strings/,/^$/ {
14256 /^0/ {
14257 s/^0 *\([^ ]*\) *$/\1/
14258 p
14259 }
14260 }'
14261 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14262 # Check for a 64-bit object if we didn't find anything.
14263 if test -z "$lt_cv_aix_libpath__F77"; then
14264 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14265 fi
14266 fi
14267 rm -f core conftest.err conftest.$ac_objext \
14268 conftest$ac_exeext conftest.$ac_ext
14269 if test -z "$lt_cv_aix_libpath__F77"; then
14270 lt_cv_aix_libpath__F77=/usr/lib:/lib
14271 fi
14272
14273 fi
14274
14275 aix_libpath=$lt_cv_aix_libpath__F77
14276 fi
14277
14278 hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath"
14279 archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14280 else
14281 if test ia64 = "$host_cpu"; then
14282 hardcode_libdir_flag_spec_F77='$wl-R $libdir:/usr/lib:/lib'
14283 allow_undefined_flag_F77="-z nodefs"
14284 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"
14285 else
14286 # Determine the default libpath from the value encoded in an
14287 # empty executable.
14288 if test set = "${lt_cv_aix_libpath+set}"; then
14289 aix_libpath=$lt_cv_aix_libpath
14290 else
14291 if ${lt_cv_aix_libpath__F77+:} false; then :
14292 $as_echo_n "(cached) " >&6
14293 else
14294 cat > conftest.$ac_ext <<_ACEOF
14295 program main
14296
14297 end
14298 _ACEOF
14299 if ac_fn_f77_try_link "$LINENO"; then :
14300
14301 lt_aix_libpath_sed='
14302 /Import File Strings/,/^$/ {
14303 /^0/ {
14304 s/^0 *\([^ ]*\) *$/\1/
14305 p
14306 }
14307 }'
14308 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14309 # Check for a 64-bit object if we didn't find anything.
14310 if test -z "$lt_cv_aix_libpath__F77"; then
14311 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14312 fi
14313 fi
14314 rm -f core conftest.err conftest.$ac_objext \
14315 conftest$ac_exeext conftest.$ac_ext
14316 if test -z "$lt_cv_aix_libpath__F77"; then
14317 lt_cv_aix_libpath__F77=/usr/lib:/lib
14318 fi
14319
14320 fi
14321
14322 aix_libpath=$lt_cv_aix_libpath__F77
14323 fi
14324
14325 hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath"
14326 # Warning - without using the other run time loading flags,
14327 # -berok will link without error, but may produce a broken library.
14328 no_undefined_flag_F77=' $wl-bernotok'
14329 allow_undefined_flag_F77=' $wl-berok'
14330 if test yes = "$with_gnu_ld"; then
14331 # We only use this code for GNU lds that support --whole-archive.
14332 whole_archive_flag_spec_F77='$wl--whole-archive$convenience $wl--no-whole-archive'
14333 else
14334 # Exported symbols can be pulled into shared objects from archives
14335 whole_archive_flag_spec_F77='$convenience'
14336 fi
14337 archive_cmds_need_lc_F77=yes
14338 archive_expsym_cmds_F77='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14339 # -brtl affects multiple linker settings, -berok does not and is overridden later
14340 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14341 if test svr4 != "$with_aix_soname"; then
14342 # This is similar to how AIX traditionally builds its shared libraries.
14343 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14344 fi
14345 if test aix != "$with_aix_soname"; then
14346 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14347 else
14348 # used by -dlpreopen to get the symbols
14349 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14350 fi
14351 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$RM -r $output_objdir/$realname.d'
14352 fi
14353 fi
14354 ;;
14355
14356 amigaos*)
14357 case $host_cpu in
14358 powerpc)
14359 # see comment about AmigaOS4 .so support
14360 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14361 archive_expsym_cmds_F77=''
14362 ;;
14363 m68k)
14364 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)'
14365 hardcode_libdir_flag_spec_F77='-L$libdir'
14366 hardcode_minus_L_F77=yes
14367 ;;
14368 esac
14369 ;;
14370
14371 bsdi[45]*)
14372 export_dynamic_flag_spec_F77=-rdynamic
14373 ;;
14374
14375 cygwin* | mingw* | pw32* | cegcc*)
14376 # When not using gcc, we currently assume that we are using
14377 # Microsoft Visual C++.
14378 # hardcode_libdir_flag_spec is actually meaningless, as there is
14379 # no search path for DLLs.
14380 case $cc_basename in
14381 cl*)
14382 # Native MSVC
14383 hardcode_libdir_flag_spec_F77=' '
14384 allow_undefined_flag_F77=unsupported
14385 always_export_symbols_F77=yes
14386 file_list_spec_F77='@'
14387 # Tell ltmain to make .lib files, not .a files.
14388 libext=lib
14389 # Tell ltmain to make .dll files, not .so files.
14390 shrext_cmds=.dll
14391 # FIXME: Setting linknames here is a bad hack.
14392 archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14393 archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14394 cp "$export_symbols" "$output_objdir/$soname.def";
14395 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14396 else
14397 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14398 fi~
14399 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14400 linknames='
14401 # The linker will not automatically build a static lib if we build a DLL.
14402 # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
14403 enable_shared_with_static_runtimes_F77=yes
14404 exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14405 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14406 # Don't use ranlib
14407 old_postinstall_cmds_F77='chmod 644 $oldlib'
14408 postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
14409 lt_tool_outputfile="@TOOL_OUTPUT@"~
14410 case $lt_outputfile in
14411 *.exe|*.EXE) ;;
14412 *)
14413 lt_outputfile=$lt_outputfile.exe
14414 lt_tool_outputfile=$lt_tool_outputfile.exe
14415 ;;
14416 esac~
14417 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14418 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14419 $RM "$lt_outputfile.manifest";
14420 fi'
14421 ;;
14422 *)
14423 # Assume MSVC wrapper
14424 hardcode_libdir_flag_spec_F77=' '
14425 allow_undefined_flag_F77=unsupported
14426 # Tell ltmain to make .lib files, not .a files.
14427 libext=lib
14428 # Tell ltmain to make .dll files, not .so files.
14429 shrext_cmds=.dll
14430 # FIXME: Setting linknames here is a bad hack.
14431 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14432 # The linker will automatically build a .lib file if we build a DLL.
14433 old_archive_from_new_cmds_F77='true'
14434 # FIXME: Should let the user specify the lib program.
14435 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14436 enable_shared_with_static_runtimes_F77=yes
14437 ;;
14438 esac
14439 ;;
14440
14441 darwin* | rhapsody*)
14442
14443
14444 archive_cmds_need_lc_F77=no
14445 hardcode_direct_F77=no
14446 hardcode_automatic_F77=yes
14447 hardcode_shlibpath_var_F77=unsupported
14448 if test yes = "$lt_cv_ld_force_load"; then
14449 whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14450 compiler_needs_object_F77=yes
14451 else
14452 whole_archive_flag_spec_F77=''
14453 fi
14454 link_all_deplibs_F77=yes
14455 allow_undefined_flag_F77=$_lt_dar_allow_undefined
14456 case $cc_basename in
14457 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14458 *) _lt_dar_can_shared=$GCC ;;
14459 esac
14460 if test yes = "$_lt_dar_can_shared"; then
14461 output_verbose_link_cmd=func_echo_all
14462 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"
14463 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14464 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"
14465 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"
14466
14467 else
14468 ld_shlibs_F77=no
14469 fi
14470
14471 ;;
14472
14473 dgux*)
14474 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14475 hardcode_libdir_flag_spec_F77='-L$libdir'
14476 hardcode_shlibpath_var_F77=no
14477 ;;
14478
14479 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14480 # support. Future versions do this automatically, but an explicit c++rt0.o
14481 # does not break anything, and helps significantly (at the cost of a little
14482 # extra space).
14483 freebsd2.2*)
14484 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14485 hardcode_libdir_flag_spec_F77='-R$libdir'
14486 hardcode_direct_F77=yes
14487 hardcode_shlibpath_var_F77=no
14488 ;;
14489
14490 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14491 freebsd2.*)
14492 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14493 hardcode_direct_F77=yes
14494 hardcode_minus_L_F77=yes
14495 hardcode_shlibpath_var_F77=no
14496 ;;
14497
14498 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14499 freebsd* | dragonfly*)
14500 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14501 hardcode_libdir_flag_spec_F77='-R$libdir'
14502 hardcode_direct_F77=yes
14503 hardcode_shlibpath_var_F77=no
14504 ;;
14505
14506 hpux9*)
14507 if test yes = "$GCC"; then
14508 archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14509 else
14510 archive_cmds_F77='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14511 fi
14512 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir'
14513 hardcode_libdir_separator_F77=:
14514 hardcode_direct_F77=yes
14515
14516 # hardcode_minus_L: Not really in the search PATH,
14517 # but as the default location of the library.
14518 hardcode_minus_L_F77=yes
14519 export_dynamic_flag_spec_F77='$wl-E'
14520 ;;
14521
14522 hpux10*)
14523 if test yes,no = "$GCC,$with_gnu_ld"; then
14524 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14525 else
14526 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14527 fi
14528 if test no = "$with_gnu_ld"; then
14529 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir'
14530 hardcode_libdir_separator_F77=:
14531 hardcode_direct_F77=yes
14532 hardcode_direct_absolute_F77=yes
14533 export_dynamic_flag_spec_F77='$wl-E'
14534 # hardcode_minus_L: Not really in the search PATH,
14535 # but as the default location of the library.
14536 hardcode_minus_L_F77=yes
14537 fi
14538 ;;
14539
14540 hpux11*)
14541 if test yes,no = "$GCC,$with_gnu_ld"; then
14542 case $host_cpu in
14543 hppa*64*)
14544 archive_cmds_F77='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14545 ;;
14546 ia64*)
14547 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14548 ;;
14549 *)
14550 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14551 ;;
14552 esac
14553 else
14554 case $host_cpu in
14555 hppa*64*)
14556 archive_cmds_F77='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14557 ;;
14558 ia64*)
14559 archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14560 ;;
14561 *)
14562 archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14563 ;;
14564 esac
14565 fi
14566 if test no = "$with_gnu_ld"; then
14567 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir'
14568 hardcode_libdir_separator_F77=:
14569
14570 case $host_cpu in
14571 hppa*64*|ia64*)
14572 hardcode_direct_F77=no
14573 hardcode_shlibpath_var_F77=no
14574 ;;
14575 *)
14576 hardcode_direct_F77=yes
14577 hardcode_direct_absolute_F77=yes
14578 export_dynamic_flag_spec_F77='$wl-E'
14579
14580 # hardcode_minus_L: Not really in the search PATH,
14581 # but as the default location of the library.
14582 hardcode_minus_L_F77=yes
14583 ;;
14584 esac
14585 fi
14586 ;;
14587
14588 irix5* | irix6* | nonstopux*)
14589 if test yes = "$GCC"; then
14590 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14591 # Try to use the -exported_symbol ld option, if it does not
14592 # work, assume that -exports_file does not work either and
14593 # implicitly export all symbols.
14594 # This should be the same for all languages, so no per-tag cache variable.
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14596 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14597 if ${lt_cv_irix_exported_symbol+:} false; then :
14598 $as_echo_n "(cached) " >&6
14599 else
14600 save_LDFLAGS=$LDFLAGS
14601 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14602 cat > conftest.$ac_ext <<_ACEOF
14603
14604 subroutine foo
14605 end
14606 _ACEOF
14607 if ac_fn_f77_try_link "$LINENO"; then :
14608 lt_cv_irix_exported_symbol=yes
14609 else
14610 lt_cv_irix_exported_symbol=no
14611 fi
14612 rm -f core conftest.err conftest.$ac_objext \
14613 conftest$ac_exeext conftest.$ac_ext
14614 LDFLAGS=$save_LDFLAGS
14615 fi
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14617 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
14618 if test yes = "$lt_cv_irix_exported_symbol"; then
14619 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
14620 fi
14621 else
14622 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14623 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
14624 fi
14625 archive_cmds_need_lc_F77='no'
14626 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
14627 hardcode_libdir_separator_F77=:
14628 inherit_rpath_F77=yes
14629 link_all_deplibs_F77=yes
14630 ;;
14631
14632 linux*)
14633 case $cc_basename in
14634 tcc*)
14635 # Fabrice Bellard et al's Tiny C Compiler
14636 ld_shlibs_F77=yes
14637 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14638 ;;
14639 esac
14640 ;;
14641
14642 netbsd*)
14643 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14644 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14645 else
14646 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14647 fi
14648 hardcode_libdir_flag_spec_F77='-R$libdir'
14649 hardcode_direct_F77=yes
14650 hardcode_shlibpath_var_F77=no
14651 ;;
14652
14653 newsos6)
14654 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14655 hardcode_direct_F77=yes
14656 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
14657 hardcode_libdir_separator_F77=:
14658 hardcode_shlibpath_var_F77=no
14659 ;;
14660
14661 *nto* | *qnx*)
14662 ;;
14663
14664 openbsd* | bitrig*)
14665 if test -f /usr/libexec/ld.so; then
14666 hardcode_direct_F77=yes
14667 hardcode_shlibpath_var_F77=no
14668 hardcode_direct_absolute_F77=yes
14669 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14670 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14671 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14672 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir'
14673 export_dynamic_flag_spec_F77='$wl-E'
14674 else
14675 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14676 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir'
14677 fi
14678 else
14679 ld_shlibs_F77=no
14680 fi
14681 ;;
14682
14683 os2*)
14684 hardcode_libdir_flag_spec_F77='-L$libdir'
14685 hardcode_minus_L_F77=yes
14686 allow_undefined_flag_F77=unsupported
14687 shrext_cmds=.dll
14688 archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14689 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14690 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14691 $ECHO EXPORTS >> $output_objdir/$libname.def~
14692 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14693 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14694 emximp -o $lib $output_objdir/$libname.def'
14695 archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14696 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14697 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14698 $ECHO EXPORTS >> $output_objdir/$libname.def~
14699 prefix_cmds="$SED"~
14700 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14701 prefix_cmds="$prefix_cmds -e 1d";
14702 fi~
14703 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14704 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14705 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14706 emximp -o $lib $output_objdir/$libname.def'
14707 old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14708 enable_shared_with_static_runtimes_F77=yes
14709 ;;
14710
14711 osf3*)
14712 if test yes = "$GCC"; then
14713 allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*'
14714 archive_cmds_F77='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14715 else
14716 allow_undefined_flag_F77=' -expect_unresolved \*'
14717 archive_cmds_F77='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14718 fi
14719 archive_cmds_need_lc_F77='no'
14720 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
14721 hardcode_libdir_separator_F77=:
14722 ;;
14723
14724 osf4* | osf5*) # as osf3* with the addition of -msym flag
14725 if test yes = "$GCC"; then
14726 allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*'
14727 archive_cmds_F77='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14728 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
14729 else
14730 allow_undefined_flag_F77=' -expect_unresolved \*'
14731 archive_cmds_F77='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14732 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
14733 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
14734
14735 # Both c and cxx compiler support -rpath directly
14736 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14737 fi
14738 archive_cmds_need_lc_F77='no'
14739 hardcode_libdir_separator_F77=:
14740 ;;
14741
14742 solaris*)
14743 no_undefined_flag_F77=' -z defs'
14744 if test yes = "$GCC"; then
14745 wlarc='$wl'
14746 archive_cmds_F77='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14747 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14748 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14749 else
14750 case `$CC -V 2>&1` in
14751 *"Compilers 5.0"*)
14752 wlarc=''
14753 archive_cmds_F77='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
14754 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14755 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14756 ;;
14757 *)
14758 wlarc='$wl'
14759 archive_cmds_F77='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14760 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14761 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14762 ;;
14763 esac
14764 fi
14765 hardcode_libdir_flag_spec_F77='-R$libdir'
14766 hardcode_shlibpath_var_F77=no
14767 case $host_os in
14768 solaris2.[0-5] | solaris2.[0-5].*) ;;
14769 *)
14770 # The compiler driver will combine and reorder linker options,
14771 # but understands '-z linker_flag'. GCC discards it without '$wl',
14772 # but is careful enough not to reorder.
14773 # Supported since Solaris 2.6 (maybe 2.5.1?)
14774 if test yes = "$GCC"; then
14775 whole_archive_flag_spec_F77='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14776 else
14777 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14778 fi
14779 ;;
14780 esac
14781 link_all_deplibs_F77=yes
14782 ;;
14783
14784 sunos4*)
14785 if test sequent = "$host_vendor"; then
14786 # Use $CC to link under sequent, because it throws in some extra .o
14787 # files that make .init and .fini sections work.
14788 archive_cmds_F77='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14789 else
14790 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14791 fi
14792 hardcode_libdir_flag_spec_F77='-L$libdir'
14793 hardcode_direct_F77=yes
14794 hardcode_minus_L_F77=yes
14795 hardcode_shlibpath_var_F77=no
14796 ;;
14797
14798 sysv4)
14799 case $host_vendor in
14800 sni)
14801 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14802 hardcode_direct_F77=yes # is this really true???
14803 ;;
14804 siemens)
14805 ## LD is ld it makes a PLAMLIB
14806 ## CC just makes a GrossModule.
14807 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14808 reload_cmds_F77='$CC -r -o $output$reload_objs'
14809 hardcode_direct_F77=no
14810 ;;
14811 motorola)
14812 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14813 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14814 ;;
14815 esac
14816 runpath_var='LD_RUN_PATH'
14817 hardcode_shlibpath_var_F77=no
14818 ;;
14819
14820 sysv4.3*)
14821 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14822 hardcode_shlibpath_var_F77=no
14823 export_dynamic_flag_spec_F77='-Bexport'
14824 ;;
14825
14826 sysv4*MP*)
14827 if test -d /usr/nec; then
14828 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14829 hardcode_shlibpath_var_F77=no
14830 runpath_var=LD_RUN_PATH
14831 hardcode_runpath_var=yes
14832 ld_shlibs_F77=yes
14833 fi
14834 ;;
14835
14836 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14837 no_undefined_flag_F77='$wl-z,text'
14838 archive_cmds_need_lc_F77=no
14839 hardcode_shlibpath_var_F77=no
14840 runpath_var='LD_RUN_PATH'
14841
14842 if test yes = "$GCC"; then
14843 archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14844 archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14845 else
14846 archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14847 archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14848 fi
14849 ;;
14850
14851 sysv5* | sco3.2v5* | sco5v6*)
14852 # Note: We CANNOT use -z defs as we might desire, because we do not
14853 # link with -lc, and that would cause any symbols used from libc to
14854 # always be unresolved, which means just about no library would
14855 # ever link correctly. If we're not using GNU ld we use -z text
14856 # though, which does catch some bad symbols but isn't as heavy-handed
14857 # as -z defs.
14858 no_undefined_flag_F77='$wl-z,text'
14859 allow_undefined_flag_F77='$wl-z,nodefs'
14860 archive_cmds_need_lc_F77=no
14861 hardcode_shlibpath_var_F77=no
14862 hardcode_libdir_flag_spec_F77='$wl-R,$libdir'
14863 hardcode_libdir_separator_F77=':'
14864 link_all_deplibs_F77=yes
14865 export_dynamic_flag_spec_F77='$wl-Bexport'
14866 runpath_var='LD_RUN_PATH'
14867
14868 if test yes = "$GCC"; then
14869 archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14870 archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14871 else
14872 archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14873 archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14874 fi
14875 ;;
14876
14877 uts4*)
14878 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14879 hardcode_libdir_flag_spec_F77='-L$libdir'
14880 hardcode_shlibpath_var_F77=no
14881 ;;
14882
14883 *)
14884 ld_shlibs_F77=no
14885 ;;
14886 esac
14887
14888 if test sni = "$host_vendor"; then
14889 case $host in
14890 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14891 export_dynamic_flag_spec_F77='$wl-Blargedynsym'
14892 ;;
14893 esac
14894 fi
14895 fi
14896
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14898 $as_echo "$ld_shlibs_F77" >&6; }
14899 test no = "$ld_shlibs_F77" && can_build_shared=no
14900
14901 with_gnu_ld_F77=$with_gnu_ld
14902
14903
14904
14905
14906
14907
14908 #
14909 # Do we need to explicitly link libc?
14910 #
14911 case "x$archive_cmds_need_lc_F77" in
14912 x|xyes)
14913 # Assume -lc should be added
14914 archive_cmds_need_lc_F77=yes
14915
14916 if test yes,yes = "$GCC,$enable_shared"; then
14917 case $archive_cmds_F77 in
14918 *'~'*)
14919 # FIXME: we may have to deal with multi-command sequences.
14920 ;;
14921 '$CC '*)
14922 # Test whether the compiler implicitly links with -lc since on some
14923 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14924 # to ld, don't add -lc before -lgcc.
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14926 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14927 if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
14928 $as_echo_n "(cached) " >&6
14929 else
14930 $RM conftest*
14931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14932
14933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14934 (eval $ac_compile) 2>&5
14935 ac_status=$?
14936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14937 test $ac_status = 0; } 2>conftest.err; then
14938 soname=conftest
14939 lib=conftest
14940 libobjs=conftest.$ac_objext
14941 deplibs=
14942 wl=$lt_prog_compiler_wl_F77
14943 pic_flag=$lt_prog_compiler_pic_F77
14944 compiler_flags=-v
14945 linker_flags=-v
14946 verstring=
14947 output_objdir=.
14948 libname=conftest
14949 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14950 allow_undefined_flag_F77=
14951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14952 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14953 ac_status=$?
14954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14955 test $ac_status = 0; }
14956 then
14957 lt_cv_archive_cmds_need_lc_F77=no
14958 else
14959 lt_cv_archive_cmds_need_lc_F77=yes
14960 fi
14961 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14962 else
14963 cat conftest.err 1>&5
14964 fi
14965 $RM conftest*
14966
14967 fi
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
14969 $as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
14970 archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
14971 ;;
14972 esac
14973 fi
14974 ;;
14975 esac
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15039 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15040
15041 library_names_spec=
15042 libname_spec='lib$name'
15043 soname_spec=
15044 shrext_cmds=.so
15045 postinstall_cmds=
15046 postuninstall_cmds=
15047 finish_cmds=
15048 finish_eval=
15049 shlibpath_var=
15050 shlibpath_overrides_runpath=unknown
15051 version_type=none
15052 dynamic_linker="$host_os ld.so"
15053 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15054 need_lib_prefix=unknown
15055 hardcode_into_libs=no
15056
15057 # when you set need_version to no, make sure it does not cause -set_version
15058 # flags to be left without arguments
15059 need_version=unknown
15060
15061
15062
15063 case $host_os in
15064 aix3*)
15065 version_type=linux # correct to gnu/linux during the next big refactor
15066 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15067 shlibpath_var=LIBPATH
15068
15069 # AIX 3 has no versioning support, so we append a major version to the name.
15070 soname_spec='$libname$release$shared_ext$major'
15071 ;;
15072
15073 aix[4-9]*)
15074 version_type=linux # correct to gnu/linux during the next big refactor
15075 need_lib_prefix=no
15076 need_version=no
15077 hardcode_into_libs=yes
15078 if test ia64 = "$host_cpu"; then
15079 # AIX 5 supports IA64
15080 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15081 shlibpath_var=LD_LIBRARY_PATH
15082 else
15083 # With GCC up to 2.95.x, collect2 would create an import file
15084 # for dependence libraries. The import file would start with
15085 # the line '#! .'. This would cause the generated library to
15086 # depend on '.', always an invalid library. This was fixed in
15087 # development snapshots of GCC prior to 3.0.
15088 case $host_os in
15089 aix4 | aix4.[01] | aix4.[01].*)
15090 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15091 echo ' yes '
15092 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15093 :
15094 else
15095 can_build_shared=no
15096 fi
15097 ;;
15098 esac
15099 # Using Import Files as archive members, it is possible to support
15100 # filename-based versioning of shared library archives on AIX. While
15101 # this would work for both with and without runtime linking, it will
15102 # prevent static linking of such archives. So we do filename-based
15103 # shared library versioning with .so extension only, which is used
15104 # when both runtime linking and shared linking is enabled.
15105 # Unfortunately, runtime linking may impact performance, so we do
15106 # not want this to be the default eventually. Also, we use the
15107 # versioned .so libs for executables only if there is the -brtl
15108 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15109 # To allow for filename-based versioning support, we need to create
15110 # libNAME.so.V as an archive file, containing:
15111 # *) an Import File, referring to the versioned filename of the
15112 # archive as well as the shared archive member, telling the
15113 # bitwidth (32 or 64) of that shared object, and providing the
15114 # list of exported symbols of that shared object, eventually
15115 # decorated with the 'weak' keyword
15116 # *) the shared object with the F_LOADONLY flag set, to really avoid
15117 # it being seen by the linker.
15118 # At run time we better use the real file rather than another symlink,
15119 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15120
15121 case $with_aix_soname,$aix_use_runtimelinking in
15122 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15123 # soname into executable. Probably we can add versioning support to
15124 # collect2, so additional links can be useful in future.
15125 aix,yes) # traditional libtool
15126 dynamic_linker='AIX unversionable lib.so'
15127 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15128 # instead of lib<name>.a to let people know that these are not
15129 # typical AIX shared libraries.
15130 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15131 ;;
15132 aix,no) # traditional AIX only
15133 dynamic_linker='AIX lib.a(lib.so.V)'
15134 # We preserve .a as extension for shared libraries through AIX4.2
15135 # and later when we are not doing run time linking.
15136 library_names_spec='$libname$release.a $libname.a'
15137 soname_spec='$libname$release$shared_ext$major'
15138 ;;
15139 svr4,*) # full svr4 only
15140 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15141 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15142 # We do not specify a path in Import Files, so LIBPATH fires.
15143 shlibpath_overrides_runpath=yes
15144 ;;
15145 *,yes) # both, prefer svr4
15146 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15147 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15148 # unpreferred sharedlib libNAME.a needs extra handling
15149 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15150 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15151 # We do not specify a path in Import Files, so LIBPATH fires.
15152 shlibpath_overrides_runpath=yes
15153 ;;
15154 *,no) # both, prefer aix
15155 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15156 library_names_spec='$libname$release.a $libname.a'
15157 soname_spec='$libname$release$shared_ext$major'
15158 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15159 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15160 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15161 ;;
15162 esac
15163 shlibpath_var=LIBPATH
15164 fi
15165 ;;
15166
15167 amigaos*)
15168 case $host_cpu in
15169 powerpc)
15170 # Since July 2007 AmigaOS4 officially supports .so libraries.
15171 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15172 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15173 ;;
15174 m68k)
15175 library_names_spec='$libname.ixlibrary $libname.a'
15176 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15177 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
15178 ;;
15179 esac
15180 ;;
15181
15182 beos*)
15183 library_names_spec='$libname$shared_ext'
15184 dynamic_linker="$host_os ld.so"
15185 shlibpath_var=LIBRARY_PATH
15186 ;;
15187
15188 bsdi[45]*)
15189 version_type=linux # correct to gnu/linux during the next big refactor
15190 need_version=no
15191 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15192 soname_spec='$libname$release$shared_ext$major'
15193 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15194 shlibpath_var=LD_LIBRARY_PATH
15195 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15196 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15197 # the default ld.so.conf also contains /usr/contrib/lib and
15198 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15199 # libtool to hard-code these into programs
15200 ;;
15201
15202 cygwin* | mingw* | pw32* | cegcc*)
15203 version_type=windows
15204 shrext_cmds=.dll
15205 need_version=no
15206 need_lib_prefix=no
15207
15208 case $GCC,$cc_basename in
15209 yes,*)
15210 # gcc
15211 library_names_spec='$libname.dll.a'
15212 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15213 postinstall_cmds='base_file=`basename \$file`~
15214 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15215 dldir=$destdir/`dirname \$dlpath`~
15216 test -d \$dldir || mkdir -p \$dldir~
15217 $install_prog $dir/$dlname \$dldir/$dlname~
15218 chmod a+x \$dldir/$dlname~
15219 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15220 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15221 fi'
15222 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15223 dlpath=$dir/\$dldll~
15224 $RM \$dlpath'
15225 shlibpath_overrides_runpath=yes
15226
15227 case $host_os in
15228 cygwin*)
15229 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15230 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15231
15232 ;;
15233 mingw* | cegcc*)
15234 # MinGW DLLs use traditional 'lib' prefix
15235 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15236 ;;
15237 pw32*)
15238 # pw32 DLLs use 'pw' prefix rather than 'lib'
15239 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15240 ;;
15241 esac
15242 dynamic_linker='Win32 ld.exe'
15243 ;;
15244
15245 *,cl*)
15246 # Native MSVC
15247 libname_spec='$name'
15248 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15249 library_names_spec='$libname.dll.lib'
15250
15251 case $build_os in
15252 mingw*)
15253 sys_lib_search_path_spec=
15254 lt_save_ifs=$IFS
15255 IFS=';'
15256 for lt_path in $LIB
15257 do
15258 IFS=$lt_save_ifs
15259 # Let DOS variable expansion print the short 8.3 style file name.
15260 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15261 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15262 done
15263 IFS=$lt_save_ifs
15264 # Convert to MSYS style.
15265 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15266 ;;
15267 cygwin*)
15268 # Convert to unix form, then to dos form, then back to unix form
15269 # but this time dos style (no spaces!) so that the unix form looks
15270 # like /cygdrive/c/PROGRA~1:/cygdr...
15271 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15272 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15273 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15274 ;;
15275 *)
15276 sys_lib_search_path_spec=$LIB
15277 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15278 # It is most probably a Windows format PATH.
15279 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15280 else
15281 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15282 fi
15283 # FIXME: find the short name or the path components, as spaces are
15284 # common. (e.g. "Program Files" -> "PROGRA~1")
15285 ;;
15286 esac
15287
15288 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15289 postinstall_cmds='base_file=`basename \$file`~
15290 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15291 dldir=$destdir/`dirname \$dlpath`~
15292 test -d \$dldir || mkdir -p \$dldir~
15293 $install_prog $dir/$dlname \$dldir/$dlname'
15294 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15295 dlpath=$dir/\$dldll~
15296 $RM \$dlpath'
15297 shlibpath_overrides_runpath=yes
15298 dynamic_linker='Win32 link.exe'
15299 ;;
15300
15301 *)
15302 # Assume MSVC wrapper
15303 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15304 dynamic_linker='Win32 ld.exe'
15305 ;;
15306 esac
15307 # FIXME: first we should search . and the directory the executable is in
15308 shlibpath_var=PATH
15309 ;;
15310
15311 darwin* | rhapsody*)
15312 dynamic_linker="$host_os dyld"
15313 version_type=darwin
15314 need_lib_prefix=no
15315 need_version=no
15316 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15317 soname_spec='$libname$release$major$shared_ext'
15318 shlibpath_overrides_runpath=yes
15319 shlibpath_var=DYLD_LIBRARY_PATH
15320 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15321
15322 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15323 ;;
15324
15325 dgux*)
15326 version_type=linux # correct to gnu/linux during the next big refactor
15327 need_lib_prefix=no
15328 need_version=no
15329 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15330 soname_spec='$libname$release$shared_ext$major'
15331 shlibpath_var=LD_LIBRARY_PATH
15332 ;;
15333
15334 freebsd* | dragonfly*)
15335 # DragonFly does not have aout. When/if they implement a new
15336 # versioning mechanism, adjust this.
15337 if test -x /usr/bin/objformat; then
15338 objformat=`/usr/bin/objformat`
15339 else
15340 case $host_os in
15341 freebsd[23].*) objformat=aout ;;
15342 *) objformat=elf ;;
15343 esac
15344 fi
15345 version_type=freebsd-$objformat
15346 case $version_type in
15347 freebsd-elf*)
15348 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15349 soname_spec='$libname$release$shared_ext$major'
15350 need_version=no
15351 need_lib_prefix=no
15352 ;;
15353 freebsd-*)
15354 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15355 need_version=yes
15356 ;;
15357 esac
15358 shlibpath_var=LD_LIBRARY_PATH
15359 case $host_os in
15360 freebsd2.*)
15361 shlibpath_overrides_runpath=yes
15362 ;;
15363 freebsd3.[01]* | freebsdelf3.[01]*)
15364 shlibpath_overrides_runpath=yes
15365 hardcode_into_libs=yes
15366 ;;
15367 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15368 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15369 shlibpath_overrides_runpath=no
15370 hardcode_into_libs=yes
15371 ;;
15372 *) # from 4.6 on, and DragonFly
15373 shlibpath_overrides_runpath=yes
15374 hardcode_into_libs=yes
15375 ;;
15376 esac
15377 ;;
15378
15379 haiku*)
15380 version_type=linux # correct to gnu/linux during the next big refactor
15381 need_lib_prefix=no
15382 need_version=no
15383 dynamic_linker="$host_os runtime_loader"
15384 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15385 soname_spec='$libname$release$shared_ext$major'
15386 shlibpath_var=LIBRARY_PATH
15387 shlibpath_overrides_runpath=no
15388 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15389 hardcode_into_libs=yes
15390 ;;
15391
15392 hpux9* | hpux10* | hpux11*)
15393 # Give a soname corresponding to the major version so that dld.sl refuses to
15394 # link against other versions.
15395 version_type=sunos
15396 need_lib_prefix=no
15397 need_version=no
15398 case $host_cpu in
15399 ia64*)
15400 shrext_cmds='.so'
15401 hardcode_into_libs=yes
15402 dynamic_linker="$host_os dld.so"
15403 shlibpath_var=LD_LIBRARY_PATH
15404 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15405 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15406 soname_spec='$libname$release$shared_ext$major'
15407 if test 32 = "$HPUX_IA64_MODE"; then
15408 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15409 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15410 else
15411 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15412 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15413 fi
15414 ;;
15415 hppa*64*)
15416 shrext_cmds='.sl'
15417 hardcode_into_libs=yes
15418 dynamic_linker="$host_os dld.sl"
15419 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15420 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15421 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15422 soname_spec='$libname$release$shared_ext$major'
15423 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15424 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15425 ;;
15426 *)
15427 shrext_cmds='.sl'
15428 dynamic_linker="$host_os dld.sl"
15429 shlibpath_var=SHLIB_PATH
15430 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15431 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15432 soname_spec='$libname$release$shared_ext$major'
15433 ;;
15434 esac
15435 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15436 postinstall_cmds='chmod 555 $lib'
15437 # or fails outright, so override atomically:
15438 install_override_mode=555
15439 ;;
15440
15441 interix[3-9]*)
15442 version_type=linux # correct to gnu/linux during the next big refactor
15443 need_lib_prefix=no
15444 need_version=no
15445 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15446 soname_spec='$libname$release$shared_ext$major'
15447 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15448 shlibpath_var=LD_LIBRARY_PATH
15449 shlibpath_overrides_runpath=no
15450 hardcode_into_libs=yes
15451 ;;
15452
15453 irix5* | irix6* | nonstopux*)
15454 case $host_os in
15455 nonstopux*) version_type=nonstopux ;;
15456 *)
15457 if test yes = "$lt_cv_prog_gnu_ld"; then
15458 version_type=linux # correct to gnu/linux during the next big refactor
15459 else
15460 version_type=irix
15461 fi ;;
15462 esac
15463 need_lib_prefix=no
15464 need_version=no
15465 soname_spec='$libname$release$shared_ext$major'
15466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15467 case $host_os in
15468 irix5* | nonstopux*)
15469 libsuff= shlibsuff=
15470 ;;
15471 *)
15472 case $LD in # libtool.m4 will add one of these switches to LD
15473 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15474 libsuff= shlibsuff= libmagic=32-bit;;
15475 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15476 libsuff=32 shlibsuff=N32 libmagic=N32;;
15477 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15478 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15479 *) libsuff= shlibsuff= libmagic=never-match;;
15480 esac
15481 ;;
15482 esac
15483 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15484 shlibpath_overrides_runpath=no
15485 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15486 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15487 hardcode_into_libs=yes
15488 ;;
15489
15490 # No shared lib support for Linux oldld, aout, or coff.
15491 linux*oldld* | linux*aout* | linux*coff*)
15492 dynamic_linker=no
15493 ;;
15494
15495 linux*android*)
15496 version_type=none # Android doesn't support versioned libraries.
15497 need_lib_prefix=no
15498 need_version=no
15499 library_names_spec='$libname$release$shared_ext'
15500 soname_spec='$libname$release$shared_ext'
15501 finish_cmds=
15502 shlibpath_var=LD_LIBRARY_PATH
15503 shlibpath_overrides_runpath=yes
15504
15505 # This implies no fast_install, which is unacceptable.
15506 # Some rework will be needed to allow for fast_install
15507 # before this can be enabled.
15508 hardcode_into_libs=yes
15509
15510 dynamic_linker='Android linker'
15511 # Don't embed -rpath directories since the linker doesn't support them.
15512 hardcode_libdir_flag_spec_F77='-L$libdir'
15513 ;;
15514
15515 # This must be glibc/ELF.
15516 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15517 version_type=linux # correct to gnu/linux during the next big refactor
15518 need_lib_prefix=no
15519 need_version=no
15520 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15521 soname_spec='$libname$release$shared_ext$major'
15522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15523 shlibpath_var=LD_LIBRARY_PATH
15524 shlibpath_overrides_runpath=no
15525
15526 # Some binutils ld are patched to set DT_RUNPATH
15527 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15528 $as_echo_n "(cached) " >&6
15529 else
15530 lt_cv_shlibpath_overrides_runpath=no
15531 save_LDFLAGS=$LDFLAGS
15532 save_libdir=$libdir
15533 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
15534 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
15535 cat > conftest.$ac_ext <<_ACEOF
15536 program main
15537
15538 end
15539 _ACEOF
15540 if ac_fn_f77_try_link "$LINENO"; then :
15541 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15542 lt_cv_shlibpath_overrides_runpath=yes
15543 fi
15544 fi
15545 rm -f core conftest.err conftest.$ac_objext \
15546 conftest$ac_exeext conftest.$ac_ext
15547 LDFLAGS=$save_LDFLAGS
15548 libdir=$save_libdir
15549
15550 fi
15551
15552 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15553
15554 # This implies no fast_install, which is unacceptable.
15555 # Some rework will be needed to allow for fast_install
15556 # before this can be enabled.
15557 hardcode_into_libs=yes
15558
15559 # Ideally, we could use ldconfig to report *all* directores which are
15560 # searched for libraries, however this is still not possible. Aside from not
15561 # being certain /sbin/ldconfig is available, command
15562 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15563 # even though it is searched at run-time. Try to do the best guess by
15564 # appending ld.so.conf contents (and includes) to the search path.
15565 if test -f /etc/ld.so.conf; then
15566 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15567 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15568 fi
15569
15570 # We used to test for /lib/ld.so.1 and disable shared libraries on
15571 # powerpc, because MkLinux only supported shared libraries with the
15572 # GNU dynamic linker. Since this was broken with cross compilers,
15573 # most powerpc-linux boxes support dynamic linking these days and
15574 # people can always --disable-shared, the test was removed, and we
15575 # assume the GNU/Linux dynamic linker is in use.
15576 dynamic_linker='GNU/Linux ld.so'
15577 ;;
15578
15579 netbsd*)
15580 version_type=sunos
15581 need_lib_prefix=no
15582 need_version=no
15583 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15584 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15585 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15586 dynamic_linker='NetBSD (a.out) ld.so'
15587 else
15588 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15589 soname_spec='$libname$release$shared_ext$major'
15590 dynamic_linker='NetBSD ld.elf_so'
15591 fi
15592 shlibpath_var=LD_LIBRARY_PATH
15593 shlibpath_overrides_runpath=yes
15594 hardcode_into_libs=yes
15595 ;;
15596
15597 newsos6)
15598 version_type=linux # correct to gnu/linux during the next big refactor
15599 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15600 shlibpath_var=LD_LIBRARY_PATH
15601 shlibpath_overrides_runpath=yes
15602 ;;
15603
15604 *nto* | *qnx*)
15605 version_type=qnx
15606 need_lib_prefix=no
15607 need_version=no
15608 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15609 soname_spec='$libname$release$shared_ext$major'
15610 shlibpath_var=LD_LIBRARY_PATH
15611 shlibpath_overrides_runpath=no
15612 hardcode_into_libs=yes
15613 dynamic_linker='ldqnx.so'
15614 ;;
15615
15616 openbsd* | bitrig*)
15617 version_type=sunos
15618 sys_lib_dlsearch_path_spec=/usr/lib
15619 need_lib_prefix=no
15620 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15621 need_version=no
15622 else
15623 need_version=yes
15624 fi
15625 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15626 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15627 shlibpath_var=LD_LIBRARY_PATH
15628 shlibpath_overrides_runpath=yes
15629 ;;
15630
15631 os2*)
15632 libname_spec='$name'
15633 version_type=windows
15634 shrext_cmds=.dll
15635 need_version=no
15636 need_lib_prefix=no
15637 # OS/2 can only load a DLL with a base name of 8 characters or less.
15638 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15639 v=$($ECHO $release$versuffix | tr -d .-);
15640 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15641 $ECHO $n$v`$shared_ext'
15642 library_names_spec='${libname}_dll.$libext'
15643 dynamic_linker='OS/2 ld.exe'
15644 shlibpath_var=BEGINLIBPATH
15645 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15646 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15647 postinstall_cmds='base_file=`basename \$file`~
15648 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15649 dldir=$destdir/`dirname \$dlpath`~
15650 test -d \$dldir || mkdir -p \$dldir~
15651 $install_prog $dir/$dlname \$dldir/$dlname~
15652 chmod a+x \$dldir/$dlname~
15653 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15654 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15655 fi'
15656 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15657 dlpath=$dir/\$dldll~
15658 $RM \$dlpath'
15659 ;;
15660
15661 osf3* | osf4* | osf5*)
15662 version_type=osf
15663 need_lib_prefix=no
15664 need_version=no
15665 soname_spec='$libname$release$shared_ext$major'
15666 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15667 shlibpath_var=LD_LIBRARY_PATH
15668 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15669 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15670 ;;
15671
15672 rdos*)
15673 dynamic_linker=no
15674 ;;
15675
15676 solaris*)
15677 version_type=linux # correct to gnu/linux during the next big refactor
15678 need_lib_prefix=no
15679 need_version=no
15680 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15681 soname_spec='$libname$release$shared_ext$major'
15682 shlibpath_var=LD_LIBRARY_PATH
15683 shlibpath_overrides_runpath=yes
15684 hardcode_into_libs=yes
15685 # ldd complains unless libraries are executable
15686 postinstall_cmds='chmod +x $lib'
15687 ;;
15688
15689 sunos4*)
15690 version_type=sunos
15691 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15692 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15693 shlibpath_var=LD_LIBRARY_PATH
15694 shlibpath_overrides_runpath=yes
15695 if test yes = "$with_gnu_ld"; then
15696 need_lib_prefix=no
15697 fi
15698 need_version=yes
15699 ;;
15700
15701 sysv4 | sysv4.3*)
15702 version_type=linux # correct to gnu/linux during the next big refactor
15703 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15704 soname_spec='$libname$release$shared_ext$major'
15705 shlibpath_var=LD_LIBRARY_PATH
15706 case $host_vendor in
15707 sni)
15708 shlibpath_overrides_runpath=no
15709 need_lib_prefix=no
15710 runpath_var=LD_RUN_PATH
15711 ;;
15712 siemens)
15713 need_lib_prefix=no
15714 ;;
15715 motorola)
15716 need_lib_prefix=no
15717 need_version=no
15718 shlibpath_overrides_runpath=no
15719 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15720 ;;
15721 esac
15722 ;;
15723
15724 sysv4*MP*)
15725 if test -d /usr/nec; then
15726 version_type=linux # correct to gnu/linux during the next big refactor
15727 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15728 soname_spec='$libname$shared_ext.$major'
15729 shlibpath_var=LD_LIBRARY_PATH
15730 fi
15731 ;;
15732
15733 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15734 version_type=sco
15735 need_lib_prefix=no
15736 need_version=no
15737 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15738 soname_spec='$libname$release$shared_ext$major'
15739 shlibpath_var=LD_LIBRARY_PATH
15740 shlibpath_overrides_runpath=yes
15741 hardcode_into_libs=yes
15742 if test yes = "$with_gnu_ld"; then
15743 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15744 else
15745 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15746 case $host_os in
15747 sco3.2v5*)
15748 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15749 ;;
15750 esac
15751 fi
15752 sys_lib_dlsearch_path_spec='/usr/lib'
15753 ;;
15754
15755 tpf*)
15756 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15757 version_type=linux # correct to gnu/linux during the next big refactor
15758 need_lib_prefix=no
15759 need_version=no
15760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15761 shlibpath_var=LD_LIBRARY_PATH
15762 shlibpath_overrides_runpath=no
15763 hardcode_into_libs=yes
15764 ;;
15765
15766 uts4*)
15767 version_type=linux # correct to gnu/linux during the next big refactor
15768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15769 soname_spec='$libname$release$shared_ext$major'
15770 shlibpath_var=LD_LIBRARY_PATH
15771 ;;
15772
15773 *)
15774 dynamic_linker=no
15775 ;;
15776 esac
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15778 $as_echo "$dynamic_linker" >&6; }
15779 test no = "$dynamic_linker" && can_build_shared=no
15780
15781 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15782 if test yes = "$GCC"; then
15783 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15784 fi
15785
15786 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15787 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15788 fi
15789
15790 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15791 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15792 fi
15793
15794 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15795 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15796
15797 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15798 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15799
15800 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15801 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15843 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15844 hardcode_action_F77=
15845 if test -n "$hardcode_libdir_flag_spec_F77" ||
15846 test -n "$runpath_var_F77" ||
15847 test yes = "$hardcode_automatic_F77"; then
15848
15849 # We can hardcode non-existent directories.
15850 if test no != "$hardcode_direct_F77" &&
15851 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15852 # have to relink, otherwise we might link with an installed library
15853 # when we should be linking with a yet-to-be-installed one
15854 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" &&
15855 test no != "$hardcode_minus_L_F77"; then
15856 # Linking always hardcodes the temporary library directory.
15857 hardcode_action_F77=relink
15858 else
15859 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15860 hardcode_action_F77=immediate
15861 fi
15862 else
15863 # We cannot hardcode anything, or else we can only hardcode existing
15864 # directories.
15865 hardcode_action_F77=unsupported
15866 fi
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15868 $as_echo "$hardcode_action_F77" >&6; }
15869
15870 if test relink = "$hardcode_action_F77" ||
15871 test yes = "$inherit_rpath_F77"; then
15872 # Fast installation is not supported
15873 enable_fast_install=no
15874 elif test yes = "$shlibpath_overrides_runpath" ||
15875 test no = "$enable_shared"; then
15876 # Fast installation is not necessary
15877 enable_fast_install=needless
15878 fi
15879
15880
15881
15882
15883
15884
15885
15886 fi # test -n "$compiler"
15887
15888 GCC=$lt_save_GCC
15889 CC=$lt_save_CC
15890 CFLAGS=$lt_save_CFLAGS
15891 fi # test yes != "$_lt_disable_F77"
15892
15893 ac_ext=c
15894 ac_cpp='$CPP $CPPFLAGS'
15895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15898
15899
15900
15901 # Checks for libraries.
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
15903 $as_echo_n "checking for sin in -lm... " >&6; }
15904 if ${ac_cv_lib_m_sin+:} false; then :
15905 $as_echo_n "(cached) " >&6
15906 else
15907 ac_check_lib_save_LIBS=$LIBS
15908 LIBS="-lm $LIBS"
15909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15910 /* end confdefs.h. */
15911
15912 /* Override any GCC internal prototype to avoid an error.
15913 Use char because int might match the return type of a GCC
15914 builtin and then its argument prototype would still apply. */
15915 #ifdef __cplusplus
15916 extern "C"
15917 #endif
15918 char sin ();
15919 int
15920 main ()
15921 {
15922 return sin ();
15923 ;
15924 return 0;
15925 }
15926 _ACEOF
15927 if ac_fn_c_try_link "$LINENO"; then :
15928 ac_cv_lib_m_sin=yes
15929 else
15930 ac_cv_lib_m_sin=no
15931 fi
15932 rm -f core conftest.err conftest.$ac_objext \
15933 conftest$ac_exeext conftest.$ac_ext
15934 LIBS=$ac_check_lib_save_LIBS
15935 fi
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
15937 $as_echo "$ac_cv_lib_m_sin" >&6; }
15938 if test "x$ac_cv_lib_m_sin" = xyes; then :
15939 cat >>confdefs.h <<_ACEOF
15940 #define HAVE_LIBM 1
15941 _ACEOF
15942
15943 LIBS="-lm $LIBS"
15944
15945 fi
15946
15947
15948 # Checks for header files.
15949 for ac_header in stdlib.h string.h
15950 do :
15951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15952 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15953 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15954 cat >>confdefs.h <<_ACEOF
15955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15956 _ACEOF
15957
15958 fi
15959
15960 done
15961
15962
15963 # Checks for library functions.
15964 for ac_func in pow sqrt sincos
15965 do :
15966 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15967 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15968 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15969 cat >>confdefs.h <<_ACEOF
15970 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15971 _ACEOF
15972
15973 fi
15974 done
15975
15976
15977 ac_config_files="$ac_config_files Makefile source/Makefile"
15978
15979 cat >confcache <<\_ACEOF
15980 # This file is a shell script that caches the results of configure
15981 # tests run on this system so they can be shared between configure
15982 # scripts and configure runs, see configure's option --config-cache.
15983 # It is not useful on other systems. If it contains results you don't
15984 # want to keep, you may remove or edit it.
15985 #
15986 # config.status only pays attention to the cache file if you give it
15987 # the --recheck option to rerun configure.
15988 #
15989 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15990 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15991 # following values.
15992
15993 _ACEOF
15994
15995 # The following way of writing the cache mishandles newlines in values,
15996 # but we know of no workaround that is simple, portable, and efficient.
15997 # So, we kill variables containing newlines.
15998 # Ultrix sh set writes to stderr and can't be redirected directly,
15999 # and sets the high bit in the cache file unless we assign to the vars.
16000 (
16001 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16002 eval ac_val=\$$ac_var
16003 case $ac_val in #(
16004 *${as_nl}*)
16005 case $ac_var in #(
16006 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16007 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16008 esac
16009 case $ac_var in #(
16010 _ | IFS | as_nl) ;; #(
16011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16012 *) { eval $ac_var=; unset $ac_var;} ;;
16013 esac ;;
16014 esac
16015 done
16016
16017 (set) 2>&1 |
16018 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16019 *${as_nl}ac_space=\ *)
16020 # `set' does not quote correctly, so add quotes: double-quote
16021 # substitution turns \\\\ into \\, and sed turns \\ into \.
16022 sed -n \
16023 "s/'/'\\\\''/g;
16024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16025 ;; #(
16026 *)
16027 # `set' quotes correctly as required by POSIX, so do not add quotes.
16028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16029 ;;
16030 esac |
16031 sort
16032 ) |
16033 sed '
16034 /^ac_cv_env_/b end
16035 t clear
16036 :clear
16037 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16038 t end
16039 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16040 :end' >>confcache
16041 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16042 if test -w "$cache_file"; then
16043 if test "x$cache_file" != "x/dev/null"; then
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16045 $as_echo "$as_me: updating cache $cache_file" >&6;}
16046 if test ! -f "$cache_file" || test -h "$cache_file"; then
16047 cat confcache >"$cache_file"
16048 else
16049 case $cache_file in #(
16050 */* | ?:*)
16051 mv -f confcache "$cache_file"$$ &&
16052 mv -f "$cache_file"$$ "$cache_file" ;; #(
16053 *)
16054 mv -f confcache "$cache_file" ;;
16055 esac
16056 fi
16057 fi
16058 else
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16060 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16061 fi
16062 fi
16063 rm -f confcache
16064
16065 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16066 # Let make expand exec_prefix.
16067 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16068
16069 DEFS=-DHAVE_CONFIG_H
16070
16071 ac_libobjs=
16072 ac_ltlibobjs=
16073 U=
16074 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16075 # 1. Remove the extension, and $U if already installed.
16076 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16077 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16078 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16079 # will be set to the directory where LIBOBJS objects are built.
16080 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16081 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16082 done
16083 LIBOBJS=$ac_libobjs
16084
16085 LTLIBOBJS=$ac_ltlibobjs
16086
16087
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16089 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16090 if test -n "$am_sleep_pid"; then
16091 # Hide warnings about reused PIDs.
16092 wait $am_sleep_pid 2>/dev/null
16093 fi
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16095 $as_echo "done" >&6; }
16096 if test -n "$EXEEXT"; then
16097 am__EXEEXT_TRUE=
16098 am__EXEEXT_FALSE='#'
16099 else
16100 am__EXEEXT_TRUE='#'
16101 am__EXEEXT_FALSE=
16102 fi
16103
16104 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16105 as_fn_error $? "conditional \"AMDEP\" was never defined.
16106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16107 fi
16108 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16109 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16111 fi
16112 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16113 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16115 fi
16116
16117 : "${CONFIG_STATUS=./config.status}"
16118 ac_write_fail=0
16119 ac_clean_files_save=$ac_clean_files
16120 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16122 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16123 as_write_fail=0
16124 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16125 #! $SHELL
16126 # Generated by $as_me.
16127 # Run this file to recreate the current configuration.
16128 # Compiler output produced by configure, useful for debugging
16129 # configure, is in config.log if it exists.
16130
16131 debug=false
16132 ac_cs_recheck=false
16133 ac_cs_silent=false
16134
16135 SHELL=\${CONFIG_SHELL-$SHELL}
16136 export SHELL
16137 _ASEOF
16138 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16139 ## -------------------- ##
16140 ## M4sh Initialization. ##
16141 ## -------------------- ##
16142
16143 # Be more Bourne compatible
16144 DUALCASE=1; export DUALCASE # for MKS sh
16145 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16146 emulate sh
16147 NULLCMD=:
16148 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16149 # is contrary to our usage. Disable this feature.
16150 alias -g '${1+"$@"}'='"$@"'
16151 setopt NO_GLOB_SUBST
16152 else
16153 case `(set -o) 2>/dev/null` in #(
16154 *posix*) :
16155 set -o posix ;; #(
16156 *) :
16157 ;;
16158 esac
16159 fi
16160
16161
16162 as_nl='
16163 '
16164 export as_nl
16165 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16166 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16167 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16168 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16169 # Prefer a ksh shell builtin over an external printf program on Solaris,
16170 # but without wasting forks for bash or zsh.
16171 if test -z "$BASH_VERSION$ZSH_VERSION" \
16172 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16173 as_echo='print -r --'
16174 as_echo_n='print -rn --'
16175 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16176 as_echo='printf %s\n'
16177 as_echo_n='printf %s'
16178 else
16179 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16180 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16181 as_echo_n='/usr/ucb/echo -n'
16182 else
16183 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16184 as_echo_n_body='eval
16185 arg=$1;
16186 case $arg in #(
16187 *"$as_nl"*)
16188 expr "X$arg" : "X\\(.*\\)$as_nl";
16189 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16190 esac;
16191 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16192 '
16193 export as_echo_n_body
16194 as_echo_n='sh -c $as_echo_n_body as_echo'
16195 fi
16196 export as_echo_body
16197 as_echo='sh -c $as_echo_body as_echo'
16198 fi
16199
16200 # The user is always right.
16201 if test "${PATH_SEPARATOR+set}" != set; then
16202 PATH_SEPARATOR=:
16203 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16204 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16205 PATH_SEPARATOR=';'
16206 }
16207 fi
16208
16209
16210 # IFS
16211 # We need space, tab and new line, in precisely that order. Quoting is
16212 # there to prevent editors from complaining about space-tab.
16213 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16214 # splitting by setting IFS to empty value.)
16215 IFS=" "" $as_nl"
16216
16217 # Find who we are. Look in the path if we contain no directory separator.
16218 as_myself=
16219 case $0 in #((
16220 *[\\/]* ) as_myself=$0 ;;
16221 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16222 for as_dir in $PATH
16223 do
16224 IFS=$as_save_IFS
16225 test -z "$as_dir" && as_dir=.
16226 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16227 done
16228 IFS=$as_save_IFS
16229
16230 ;;
16231 esac
16232 # We did not find ourselves, most probably we were run as `sh COMMAND'
16233 # in which case we are not to be found in the path.
16234 if test "x$as_myself" = x; then
16235 as_myself=$0
16236 fi
16237 if test ! -f "$as_myself"; then
16238 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16239 exit 1
16240 fi
16241
16242 # Unset variables that we do not need and which cause bugs (e.g. in
16243 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16244 # suppresses any "Segmentation fault" message there. '((' could
16245 # trigger a bug in pdksh 5.2.14.
16246 for as_var in BASH_ENV ENV MAIL MAILPATH
16247 do eval test x\${$as_var+set} = xset \
16248 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16249 done
16250 PS1='$ '
16251 PS2='> '
16252 PS4='+ '
16253
16254 # NLS nuisances.
16255 LC_ALL=C
16256 export LC_ALL
16257 LANGUAGE=C
16258 export LANGUAGE
16259
16260 # CDPATH.
16261 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16262
16263
16264 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16265 # ----------------------------------------
16266 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16267 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16268 # script with STATUS, using 1 if that was 0.
16269 as_fn_error ()
16270 {
16271 as_status=$1; test $as_status -eq 0 && as_status=1
16272 if test "$4"; then
16273 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16274 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16275 fi
16276 $as_echo "$as_me: error: $2" >&2
16277 as_fn_exit $as_status
16278 } # as_fn_error
16279
16280
16281 # as_fn_set_status STATUS
16282 # -----------------------
16283 # Set $? to STATUS, without forking.
16284 as_fn_set_status ()
16285 {
16286 return $1
16287 } # as_fn_set_status
16288
16289 # as_fn_exit STATUS
16290 # -----------------
16291 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16292 as_fn_exit ()
16293 {
16294 set +e
16295 as_fn_set_status $1
16296 exit $1
16297 } # as_fn_exit
16298
16299 # as_fn_unset VAR
16300 # ---------------
16301 # Portably unset VAR.
16302 as_fn_unset ()
16303 {
16304 { eval $1=; unset $1;}
16305 }
16306 as_unset=as_fn_unset
16307 # as_fn_append VAR VALUE
16308 # ----------------------
16309 # Append the text in VALUE to the end of the definition contained in VAR. Take
16310 # advantage of any shell optimizations that allow amortized linear growth over
16311 # repeated appends, instead of the typical quadratic growth present in naive
16312 # implementations.
16313 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16314 eval 'as_fn_append ()
16315 {
16316 eval $1+=\$2
16317 }'
16318 else
16319 as_fn_append ()
16320 {
16321 eval $1=\$$1\$2
16322 }
16323 fi # as_fn_append
16324
16325 # as_fn_arith ARG...
16326 # ------------------
16327 # Perform arithmetic evaluation on the ARGs, and store the result in the
16328 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16329 # must be portable across $(()) and expr.
16330 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16331 eval 'as_fn_arith ()
16332 {
16333 as_val=$(( $* ))
16334 }'
16335 else
16336 as_fn_arith ()
16337 {
16338 as_val=`expr "$@" || test $? -eq 1`
16339 }
16340 fi # as_fn_arith
16341
16342
16343 if expr a : '\(a\)' >/dev/null 2>&1 &&
16344 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16345 as_expr=expr
16346 else
16347 as_expr=false
16348 fi
16349
16350 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16351 as_basename=basename
16352 else
16353 as_basename=false
16354 fi
16355
16356 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16357 as_dirname=dirname
16358 else
16359 as_dirname=false
16360 fi
16361
16362 as_me=`$as_basename -- "$0" ||
16363 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16364 X"$0" : 'X\(//\)$' \| \
16365 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16366 $as_echo X/"$0" |
16367 sed '/^.*\/\([^/][^/]*\)\/*$/{
16368 s//\1/
16369 q
16370 }
16371 /^X\/\(\/\/\)$/{
16372 s//\1/
16373 q
16374 }
16375 /^X\/\(\/\).*/{
16376 s//\1/
16377 q
16378 }
16379 s/.*/./; q'`
16380
16381 # Avoid depending upon Character Ranges.
16382 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16383 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16384 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16385 as_cr_digits='0123456789'
16386 as_cr_alnum=$as_cr_Letters$as_cr_digits
16387
16388 ECHO_C= ECHO_N= ECHO_T=
16389 case `echo -n x` in #(((((
16390 -n*)
16391 case `echo 'xy\c'` in
16392 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16393 xy) ECHO_C='\c';;
16394 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16395 ECHO_T=' ';;
16396 esac;;
16397 *)
16398 ECHO_N='-n';;
16399 esac
16400
16401 rm -f conf$$ conf$$.exe conf$$.file
16402 if test -d conf$$.dir; then
16403 rm -f conf$$.dir/conf$$.file
16404 else
16405 rm -f conf$$.dir
16406 mkdir conf$$.dir 2>/dev/null
16407 fi
16408 if (echo >conf$$.file) 2>/dev/null; then
16409 if ln -s conf$$.file conf$$ 2>/dev/null; then
16410 as_ln_s='ln -s'
16411 # ... but there are two gotchas:
16412 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16413 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16414 # In both cases, we have to default to `cp -pR'.
16415 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16416 as_ln_s='cp -pR'
16417 elif ln conf$$.file conf$$ 2>/dev/null; then
16418 as_ln_s=ln
16419 else
16420 as_ln_s='cp -pR'
16421 fi
16422 else
16423 as_ln_s='cp -pR'
16424 fi
16425 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16426 rmdir conf$$.dir 2>/dev/null
16427
16428
16429 # as_fn_mkdir_p
16430 # -------------
16431 # Create "$as_dir" as a directory, including parents if necessary.
16432 as_fn_mkdir_p ()
16433 {
16434
16435 case $as_dir in #(
16436 -*) as_dir=./$as_dir;;
16437 esac
16438 test -d "$as_dir" || eval $as_mkdir_p || {
16439 as_dirs=
16440 while :; do
16441 case $as_dir in #(
16442 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16443 *) as_qdir=$as_dir;;
16444 esac
16445 as_dirs="'$as_qdir' $as_dirs"
16446 as_dir=`$as_dirname -- "$as_dir" ||
16447 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16448 X"$as_dir" : 'X\(//\)[^/]' \| \
16449 X"$as_dir" : 'X\(//\)$' \| \
16450 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16451 $as_echo X"$as_dir" |
16452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16453 s//\1/
16454 q
16455 }
16456 /^X\(\/\/\)[^/].*/{
16457 s//\1/
16458 q
16459 }
16460 /^X\(\/\/\)$/{
16461 s//\1/
16462 q
16463 }
16464 /^X\(\/\).*/{
16465 s//\1/
16466 q
16467 }
16468 s/.*/./; q'`
16469 test -d "$as_dir" && break
16470 done
16471 test -z "$as_dirs" || eval "mkdir $as_dirs"
16472 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16473
16474
16475 } # as_fn_mkdir_p
16476 if mkdir -p . 2>/dev/null; then
16477 as_mkdir_p='mkdir -p "$as_dir"'
16478 else
16479 test -d ./-p && rmdir ./-p
16480 as_mkdir_p=false
16481 fi
16482
16483
16484 # as_fn_executable_p FILE
16485 # -----------------------
16486 # Test if FILE is an executable regular file.
16487 as_fn_executable_p ()
16488 {
16489 test -f "$1" && test -x "$1"
16490 } # as_fn_executable_p
16491 as_test_x='test -x'
16492 as_executable_p=as_fn_executable_p
16493
16494 # Sed expression to map a string onto a valid CPP name.
16495 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16496
16497 # Sed expression to map a string onto a valid variable name.
16498 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16499
16500
16501 exec 6>&1
16502 ## ----------------------------------- ##
16503 ## Main body of $CONFIG_STATUS script. ##
16504 ## ----------------------------------- ##
16505 _ASEOF
16506 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16507
16508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16509 # Save the log message, to keep $0 and so on meaningful, and to
16510 # report actual input values of CONFIG_FILES etc. instead of their
16511 # values after options handling.
16512 ac_log="
16513 This file was extended by gctp $as_me 2.0, which was
16514 generated by GNU Autoconf 2.69. Invocation command line was
16515
16516 CONFIG_FILES = $CONFIG_FILES
16517 CONFIG_HEADERS = $CONFIG_HEADERS
16518 CONFIG_LINKS = $CONFIG_LINKS
16519 CONFIG_COMMANDS = $CONFIG_COMMANDS
16520 $ $0 $@
16521
16522 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16523 "
16524
16525 _ACEOF
16526
16527 case $ac_config_files in *"
16528 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16529 esac
16530
16531 case $ac_config_headers in *"
16532 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16533 esac
16534
16535
16536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16537 # Files that config.status was made for.
16538 config_files="$ac_config_files"
16539 config_headers="$ac_config_headers"
16540 config_commands="$ac_config_commands"
16541
16542 _ACEOF
16543
16544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16545 ac_cs_usage="\
16546 \`$as_me' instantiates files and other configuration actions
16547 from templates according to the current configuration. Unless the files
16548 and actions are specified as TAGs, all are instantiated by default.
16549
16550 Usage: $0 [OPTION]... [TAG]...
16551
16552 -h, --help print this help, then exit
16553 -V, --version print version number and configuration settings, then exit
16554 --config print configuration, then exit
16555 -q, --quiet, --silent
16556 do not print progress messages
16557 -d, --debug don't remove temporary files
16558 --recheck update $as_me by reconfiguring in the same conditions
16559 --file=FILE[:TEMPLATE]
16560 instantiate the configuration file FILE
16561 --header=FILE[:TEMPLATE]
16562 instantiate the configuration header FILE
16563
16564 Configuration files:
16565 $config_files
16566
16567 Configuration headers:
16568 $config_headers
16569
16570 Configuration commands:
16571 $config_commands
16572
16573 Report bugs to <[email protected]>."
16574
16575 _ACEOF
16576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16577 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16578 ac_cs_version="\\
16579 gctp config.status 2.0
16580 configured by $0, generated by GNU Autoconf 2.69,
16581 with options \\"\$ac_cs_config\\"
16582
16583 Copyright (C) 2012 Free Software Foundation, Inc.
16584 This config.status script is free software; the Free Software Foundation
16585 gives unlimited permission to copy, distribute and modify it."
16586
16587 ac_pwd='$ac_pwd'
16588 srcdir='$srcdir'
16589 INSTALL='$INSTALL'
16590 MKDIR_P='$MKDIR_P'
16591 AWK='$AWK'
16592 test -n "\$AWK" || AWK=awk
16593 _ACEOF
16594
16595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16596 # The default lists apply if the user does not specify any file.
16597 ac_need_defaults=:
16598 while test $# != 0
16599 do
16600 case $1 in
16601 --*=?*)
16602 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16603 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16604 ac_shift=:
16605 ;;
16606 --*=)
16607 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16608 ac_optarg=
16609 ac_shift=:
16610 ;;
16611 *)
16612 ac_option=$1
16613 ac_optarg=$2
16614 ac_shift=shift
16615 ;;
16616 esac
16617
16618 case $ac_option in
16619 # Handling of the options.
16620 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16621 ac_cs_recheck=: ;;
16622 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16623 $as_echo "$ac_cs_version"; exit ;;
16624 --config | --confi | --conf | --con | --co | --c )
16625 $as_echo "$ac_cs_config"; exit ;;
16626 --debug | --debu | --deb | --de | --d | -d )
16627 debug=: ;;
16628 --file | --fil | --fi | --f )
16629 $ac_shift
16630 case $ac_optarg in
16631 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16632 '') as_fn_error $? "missing file argument" ;;
16633 esac
16634 as_fn_append CONFIG_FILES " '$ac_optarg'"
16635 ac_need_defaults=false;;
16636 --header | --heade | --head | --hea )
16637 $ac_shift
16638 case $ac_optarg in
16639 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16640 esac
16641 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16642 ac_need_defaults=false;;
16643 --he | --h)
16644 # Conflict between --help and --header
16645 as_fn_error $? "ambiguous option: \`$1'
16646 Try \`$0 --help' for more information.";;
16647 --help | --hel | -h )
16648 $as_echo "$ac_cs_usage"; exit ;;
16649 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16650 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16651 ac_cs_silent=: ;;
16652
16653 # This is an error.
16654 -*) as_fn_error $? "unrecognized option: \`$1'
16655 Try \`$0 --help' for more information." ;;
16656
16657 *) as_fn_append ac_config_targets " $1"
16658 ac_need_defaults=false ;;
16659
16660 esac
16661 shift
16662 done
16663
16664 ac_configure_extra_args=
16665
16666 if $ac_cs_silent; then
16667 exec 6>/dev/null
16668 ac_configure_extra_args="$ac_configure_extra_args --silent"
16669 fi
16670
16671 _ACEOF
16672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16673 if \$ac_cs_recheck; then
16674 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16675 shift
16676 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16677 CONFIG_SHELL='$SHELL'
16678 export CONFIG_SHELL
16679 exec "\$@"
16680 fi
16681
16682 _ACEOF
16683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16684 exec 5>>config.log
16685 {
16686 echo
16687 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16688 ## Running $as_me. ##
16689 _ASBOX
16690 $as_echo "$ac_log"
16691 } >&5
16692
16693 _ACEOF
16694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16695 #
16696 # INIT-COMMANDS
16697 #
16698 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16699
16700
16701 # The HP-UX ksh and POSIX shell print the target directory to stdout
16702 # if CDPATH is set.
16703 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16704
16705 sed_quote_subst='$sed_quote_subst'
16706 double_quote_subst='$double_quote_subst'
16707 delay_variable_subst='$delay_variable_subst'
16708 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16709 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16710 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16711 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16712 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16713 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16714 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16715 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16716 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16717 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16718 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16719 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16720 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16721 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16722 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16723 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16724 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16725 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16726 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16727 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16728 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16729 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16730 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16731 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16732 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16733 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16734 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16735 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16736 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16737 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16738 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16739 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16740 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16741 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16742 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16743 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16744 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16745 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16746 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16747 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16748 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16749 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16750 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16751 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16752 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16753 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16754 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16755 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16756 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16757 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16758 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16759 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16760 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16761 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16762 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16763 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16764 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16765 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16766 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16767 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16768 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16769 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16770 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16771 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16772 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16773 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16774 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16775 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16776 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16777 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16778 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16779 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16780 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16781 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16782 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16783 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16784 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16785 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16786 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16787 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16788 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16789 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16790 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16791 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16792 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16793 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16794 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16795 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16796 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16797 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16798 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16799 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16800 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16801 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16802 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16803 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16804 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16805 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16806 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16807 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16808 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16809 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16810 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16811 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16812 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16813 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16814 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16815 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16816 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16817 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16818 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16819 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16820 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16821 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16822 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16823 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16824 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16825 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16826 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16827 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16828 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16829 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16830 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16831 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16832 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16833 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16834 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16835 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16836 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16837 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16838 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16839 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16840 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16841 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16842 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16843 LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
16844 reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
16845 reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
16846 old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
16847 compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
16848 GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
16849 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
16850 lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
16851 lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
16852 lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
16853 lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
16854 archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
16855 enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
16856 export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
16857 whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
16858 compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
16859 old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
16860 old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
16861 archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
16862 archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
16863 module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
16864 module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
16865 with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
16866 allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
16867 no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
16868 hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
16869 hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
16870 hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
16871 hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
16872 hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
16873 hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
16874 hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
16875 inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
16876 link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
16877 always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
16878 export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
16879 exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
16880 include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
16881 prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
16882 postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
16883 file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
16884 hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
16885
16886 LTCC='$LTCC'
16887 LTCFLAGS='$LTCFLAGS'
16888 compiler='$compiler_DEFAULT'
16889
16890 # A function that is used when there is no print builtin or printf.
16891 func_fallback_echo ()
16892 {
16893 eval 'cat <<_LTECHO_EOF
16894 \$1
16895 _LTECHO_EOF'
16896 }
16897
16898 # Quote evaled strings.
16899 for var in SHELL \
16900 ECHO \
16901 PATH_SEPARATOR \
16902 SED \
16903 GREP \
16904 EGREP \
16905 FGREP \
16906 LD \
16907 NM \
16908 LN_S \
16909 lt_SP2NL \
16910 lt_NL2SP \
16911 reload_flag \
16912 OBJDUMP \
16913 deplibs_check_method \
16914 file_magic_cmd \
16915 file_magic_glob \
16916 want_nocaseglob \
16917 DLLTOOL \
16918 sharedlib_from_linklib_cmd \
16919 AR \
16920 AR_FLAGS \
16921 archiver_list_spec \
16922 STRIP \
16923 RANLIB \
16924 CC \
16925 CFLAGS \
16926 compiler \
16927 lt_cv_sys_global_symbol_pipe \
16928 lt_cv_sys_global_symbol_to_cdecl \
16929 lt_cv_sys_global_symbol_to_import \
16930 lt_cv_sys_global_symbol_to_c_name_address \
16931 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16932 lt_cv_nm_interface \
16933 nm_file_list_spec \
16934 lt_cv_truncate_bin \
16935 lt_prog_compiler_no_builtin_flag \
16936 lt_prog_compiler_pic \
16937 lt_prog_compiler_wl \
16938 lt_prog_compiler_static \
16939 lt_cv_prog_compiler_c_o \
16940 need_locks \
16941 MANIFEST_TOOL \
16942 DSYMUTIL \
16943 NMEDIT \
16944 LIPO \
16945 OTOOL \
16946 OTOOL64 \
16947 shrext_cmds \
16948 export_dynamic_flag_spec \
16949 whole_archive_flag_spec \
16950 compiler_needs_object \
16951 with_gnu_ld \
16952 allow_undefined_flag \
16953 no_undefined_flag \
16954 hardcode_libdir_flag_spec \
16955 hardcode_libdir_separator \
16956 exclude_expsyms \
16957 include_expsyms \
16958 file_list_spec \
16959 variables_saved_for_relink \
16960 libname_spec \
16961 library_names_spec \
16962 soname_spec \
16963 install_override_mode \
16964 finish_eval \
16965 old_striplib \
16966 striplib \
16967 LD_F77 \
16968 reload_flag_F77 \
16969 compiler_F77 \
16970 lt_prog_compiler_no_builtin_flag_F77 \
16971 lt_prog_compiler_pic_F77 \
16972 lt_prog_compiler_wl_F77 \
16973 lt_prog_compiler_static_F77 \
16974 lt_cv_prog_compiler_c_o_F77 \
16975 export_dynamic_flag_spec_F77 \
16976 whole_archive_flag_spec_F77 \
16977 compiler_needs_object_F77 \
16978 with_gnu_ld_F77 \
16979 allow_undefined_flag_F77 \
16980 no_undefined_flag_F77 \
16981 hardcode_libdir_flag_spec_F77 \
16982 hardcode_libdir_separator_F77 \
16983 exclude_expsyms_F77 \
16984 include_expsyms_F77 \
16985 file_list_spec_F77; do
16986 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16987 *[\\\\\\\`\\"\\\$]*)
16988 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16989 ;;
16990 *)
16991 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16992 ;;
16993 esac
16994 done
16995
16996 # Double-quote double-evaled strings.
16997 for var in reload_cmds \
16998 old_postinstall_cmds \
16999 old_postuninstall_cmds \
17000 old_archive_cmds \
17001 extract_expsyms_cmds \
17002 old_archive_from_new_cmds \
17003 old_archive_from_expsyms_cmds \
17004 archive_cmds \
17005 archive_expsym_cmds \
17006 module_cmds \
17007 module_expsym_cmds \
17008 export_symbols_cmds \
17009 prelink_cmds \
17010 postlink_cmds \
17011 postinstall_cmds \
17012 postuninstall_cmds \
17013 finish_cmds \
17014 sys_lib_search_path_spec \
17015 configure_time_dlsearch_path \
17016 configure_time_lt_sys_library_path \
17017 reload_cmds_F77 \
17018 old_archive_cmds_F77 \
17019 old_archive_from_new_cmds_F77 \
17020 old_archive_from_expsyms_cmds_F77 \
17021 archive_cmds_F77 \
17022 archive_expsym_cmds_F77 \
17023 module_cmds_F77 \
17024 module_expsym_cmds_F77 \
17025 export_symbols_cmds_F77 \
17026 prelink_cmds_F77 \
17027 postlink_cmds_F77; do
17028 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17029 *[\\\\\\\`\\"\\\$]*)
17030 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17031 ;;
17032 *)
17033 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17034 ;;
17035 esac
17036 done
17037
17038 ac_aux_dir='$ac_aux_dir'
17039
17040 # See if we are running on zsh, and set the options that allow our
17041 # commands through without removal of \ escapes INIT.
17042 if test -n "\${ZSH_VERSION+set}"; then
17043 setopt NO_GLOB_SUBST
17044 fi
17045
17046
17047 PACKAGE='$PACKAGE'
17048 VERSION='$VERSION'
17049 RM='$RM'
17050 ofile='$ofile'
17051
17052
17053
17054
17055
17056
17057 _ACEOF
17058
17059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17060
17061 # Handling of arguments.
17062 for ac_config_target in $ac_config_targets
17063 do
17064 case $ac_config_target in
17065 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17066 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17067 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17068 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17069 "source/Makefile") CONFIG_FILES="$CONFIG_FILES source/Makefile" ;;
17070
17071 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17072 esac
17073 done
17074
17075
17076 # If the user did not use the arguments to specify the items to instantiate,
17077 # then the envvar interface is used. Set only those that are not.
17078 # We use the long form for the default assignment because of an extremely
17079 # bizarre bug on SunOS 4.1.3.
17080 if $ac_need_defaults; then
17081 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17082 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17083 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17084 fi
17085
17086 # Have a temporary directory for convenience. Make it in the build tree
17087 # simply because there is no reason against having it here, and in addition,
17088 # creating and moving files from /tmp can sometimes cause problems.
17089 # Hook for its removal unless debugging.
17090 # Note that there is a small window in which the directory will not be cleaned:
17091 # after its creation but before its name has been assigned to `$tmp'.
17092 $debug ||
17093 {
17094 tmp= ac_tmp=
17095 trap 'exit_status=$?
17096 : "${ac_tmp:=$tmp}"
17097 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17098 ' 0
17099 trap 'as_fn_exit 1' 1 2 13 15
17100 }
17101 # Create a (secure) tmp directory for tmp files.
17102
17103 {
17104 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17105 test -d "$tmp"
17106 } ||
17107 {
17108 tmp=./conf$$-$RANDOM
17109 (umask 077 && mkdir "$tmp")
17110 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17111 ac_tmp=$tmp
17112
17113 # Set up the scripts for CONFIG_FILES section.
17114 # No need to generate them if there are no CONFIG_FILES.
17115 # This happens for instance with `./config.status config.h'.
17116 if test -n "$CONFIG_FILES"; then
17117
17118
17119 ac_cr=`echo X | tr X '\015'`
17120 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17121 # But we know of no other shell where ac_cr would be empty at this
17122 # point, so we can use a bashism as a fallback.
17123 if test "x$ac_cr" = x; then
17124 eval ac_cr=\$\'\\r\'
17125 fi
17126 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17127 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17128 ac_cs_awk_cr='\\r'
17129 else
17130 ac_cs_awk_cr=$ac_cr
17131 fi
17132
17133 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17134 _ACEOF
17135
17136
17137 {
17138 echo "cat >conf$$subs.awk <<_ACEOF" &&
17139 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17140 echo "_ACEOF"
17141 } >conf$$subs.sh ||
17142 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17143 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17144 ac_delim='%!_!# '
17145 for ac_last_try in false false false false false :; do
17146 . ./conf$$subs.sh ||
17147 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17148
17149 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17150 if test $ac_delim_n = $ac_delim_num; then
17151 break
17152 elif $ac_last_try; then
17153 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17154 else
17155 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17156 fi
17157 done
17158 rm -f conf$$subs.sh
17159
17160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17161 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17162 _ACEOF
17163 sed -n '
17164 h
17165 s/^/S["/; s/!.*/"]=/
17166 p
17167 g
17168 s/^[^!]*!//
17169 :repl
17170 t repl
17171 s/'"$ac_delim"'$//
17172 t delim
17173 :nl
17174 h
17175 s/\(.\{148\}\)..*/\1/
17176 t more1
17177 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17178 p
17179 n
17180 b repl
17181 :more1
17182 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17183 p
17184 g
17185 s/.\{148\}//
17186 t nl
17187 :delim
17188 h
17189 s/\(.\{148\}\)..*/\1/
17190 t more2
17191 s/["\\]/\\&/g; s/^/"/; s/$/"/
17192 p
17193 b
17194 :more2
17195 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17196 p
17197 g
17198 s/.\{148\}//
17199 t delim
17200 ' <conf$$subs.awk | sed '
17201 /^[^""]/{
17202 N
17203 s/\n//
17204 }
17205 ' >>$CONFIG_STATUS || ac_write_fail=1
17206 rm -f conf$$subs.awk
17207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17208 _ACAWK
17209 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17210 for (key in S) S_is_set[key] = 1
17211 FS = ""
17212
17213 }
17214 {
17215 line = $ 0
17216 nfields = split(line, field, "@")
17217 substed = 0
17218 len = length(field[1])
17219 for (i = 2; i < nfields; i++) {
17220 key = field[i]
17221 keylen = length(key)
17222 if (S_is_set[key]) {
17223 value = S[key]
17224 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17225 len += length(value) + length(field[++i])
17226 substed = 1
17227 } else
17228 len += 1 + keylen
17229 }
17230
17231 print line
17232 }
17233
17234 _ACAWK
17235 _ACEOF
17236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17237 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17238 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17239 else
17240 cat
17241 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17242 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17243 _ACEOF
17244
17245 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17246 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17247 # trailing colons and then remove the whole line if VPATH becomes empty
17248 # (actually we leave an empty line to preserve line numbers).
17249 if test "x$srcdir" = x.; then
17250 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17251 h
17252 s///
17253 s/^/:/
17254 s/[ ]*$/:/
17255 s/:\$(srcdir):/:/g
17256 s/:\${srcdir}:/:/g
17257 s/:@srcdir@:/:/g
17258 s/^:*//
17259 s/:*$//
17260 x
17261 s/\(=[ ]*\).*/\1/
17262 G
17263 s/\n//
17264 s/^[^=]*=[ ]*$//
17265 }'
17266 fi
17267
17268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17269 fi # test -n "$CONFIG_FILES"
17270
17271 # Set up the scripts for CONFIG_HEADERS section.
17272 # No need to generate them if there are no CONFIG_HEADERS.
17273 # This happens for instance with `./config.status Makefile'.
17274 if test -n "$CONFIG_HEADERS"; then
17275 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17276 BEGIN {
17277 _ACEOF
17278
17279 # Transform confdefs.h into an awk script `defines.awk', embedded as
17280 # here-document in config.status, that substitutes the proper values into
17281 # config.h.in to produce config.h.
17282
17283 # Create a delimiter string that does not exist in confdefs.h, to ease
17284 # handling of long lines.
17285 ac_delim='%!_!# '
17286 for ac_last_try in false false :; do
17287 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17288 if test -z "$ac_tt"; then
17289 break
17290 elif $ac_last_try; then
17291 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17292 else
17293 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17294 fi
17295 done
17296
17297 # For the awk script, D is an array of macro values keyed by name,
17298 # likewise P contains macro parameters if any. Preserve backslash
17299 # newline sequences.
17300
17301 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17302 sed -n '
17303 s/.\{148\}/&'"$ac_delim"'/g
17304 t rset
17305 :rset
17306 s/^[ ]*#[ ]*define[ ][ ]*/ /
17307 t def
17308 d
17309 :def
17310 s/\\$//
17311 t bsnl
17312 s/["\\]/\\&/g
17313 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17314 D["\1"]=" \3"/p
17315 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17316 d
17317 :bsnl
17318 s/["\\]/\\&/g
17319 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17320 D["\1"]=" \3\\\\\\n"\\/p
17321 t cont
17322 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17323 t cont
17324 d
17325 :cont
17326 n
17327 s/.\{148\}/&'"$ac_delim"'/g
17328 t clear
17329 :clear
17330 s/\\$//
17331 t bsnlc
17332 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17333 d
17334 :bsnlc
17335 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17336 b cont
17337 ' <confdefs.h | sed '
17338 s/'"$ac_delim"'/"\\\
17339 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17340
17341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17342 for (key in D) D_is_set[key] = 1
17343 FS = ""
17344 }
17345 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17346 line = \$ 0
17347 split(line, arg, " ")
17348 if (arg[1] == "#") {
17349 defundef = arg[2]
17350 mac1 = arg[3]
17351 } else {
17352 defundef = substr(arg[1], 2)
17353 mac1 = arg[2]
17354 }
17355 split(mac1, mac2, "(") #)
17356 macro = mac2[1]
17357 prefix = substr(line, 1, index(line, defundef) - 1)
17358 if (D_is_set[macro]) {
17359 # Preserve the white space surrounding the "#".
17360 print prefix "define", macro P[macro] D[macro]
17361 next
17362 } else {
17363 # Replace #undef with comments. This is necessary, for example,
17364 # in the case of _POSIX_SOURCE, which is predefined and required
17365 # on some systems where configure will not decide to define it.
17366 if (defundef == "undef") {
17367 print "/*", prefix defundef, macro, "*/"
17368 next
17369 }
17370 }
17371 }
17372 { print }
17373 _ACAWK
17374 _ACEOF
17375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17376 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17377 fi # test -n "$CONFIG_HEADERS"
17378
17379
17380 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17381 shift
17382 for ac_tag
17383 do
17384 case $ac_tag in
17385 :[FHLC]) ac_mode=$ac_tag; continue;;
17386 esac
17387 case $ac_mode$ac_tag in
17388 :[FHL]*:*);;
17389 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17390 :[FH]-) ac_tag=-:-;;
17391 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17392 esac
17393 ac_save_IFS=$IFS
17394 IFS=:
17395 set x $ac_tag
17396 IFS=$ac_save_IFS
17397 shift
17398 ac_file=$1
17399 shift
17400
17401 case $ac_mode in
17402 :L) ac_source=$1;;
17403 :[FH])
17404 ac_file_inputs=
17405 for ac_f
17406 do
17407 case $ac_f in
17408 -) ac_f="$ac_tmp/stdin";;
17409 *) # Look for the file first in the build tree, then in the source tree
17410 # (if the path is not absolute). The absolute path cannot be DOS-style,
17411 # because $ac_f cannot contain `:'.
17412 test -f "$ac_f" ||
17413 case $ac_f in
17414 [\\/$]*) false;;
17415 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17416 esac ||
17417 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17418 esac
17419 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17420 as_fn_append ac_file_inputs " '$ac_f'"
17421 done
17422
17423 # Let's still pretend it is `configure' which instantiates (i.e., don't
17424 # use $as_me), people would be surprised to read:
17425 # /* config.h. Generated by config.status. */
17426 configure_input='Generated from '`
17427 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17428 `' by configure.'
17429 if test x"$ac_file" != x-; then
17430 configure_input="$ac_file. $configure_input"
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17432 $as_echo "$as_me: creating $ac_file" >&6;}
17433 fi
17434 # Neutralize special characters interpreted by sed in replacement strings.
17435 case $configure_input in #(
17436 *\&* | *\|* | *\\* )
17437 ac_sed_conf_input=`$as_echo "$configure_input" |
17438 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17439 *) ac_sed_conf_input=$configure_input;;
17440 esac
17441
17442 case $ac_tag in
17443 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17444 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17445 esac
17446 ;;
17447 esac
17448
17449 ac_dir=`$as_dirname -- "$ac_file" ||
17450 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17451 X"$ac_file" : 'X\(//\)[^/]' \| \
17452 X"$ac_file" : 'X\(//\)$' \| \
17453 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17454 $as_echo X"$ac_file" |
17455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17456 s//\1/
17457 q
17458 }
17459 /^X\(\/\/\)[^/].*/{
17460 s//\1/
17461 q
17462 }
17463 /^X\(\/\/\)$/{
17464 s//\1/
17465 q
17466 }
17467 /^X\(\/\).*/{
17468 s//\1/
17469 q
17470 }
17471 s/.*/./; q'`
17472 as_dir="$ac_dir"; as_fn_mkdir_p
17473 ac_builddir=.
17474
17475 case "$ac_dir" in
17476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17477 *)
17478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17479 # A ".." for each directory in $ac_dir_suffix.
17480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17481 case $ac_top_builddir_sub in
17482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17484 esac ;;
17485 esac
17486 ac_abs_top_builddir=$ac_pwd
17487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17488 # for backward compatibility:
17489 ac_top_builddir=$ac_top_build_prefix
17490
17491 case $srcdir in
17492 .) # We are building in place.
17493 ac_srcdir=.
17494 ac_top_srcdir=$ac_top_builddir_sub
17495 ac_abs_top_srcdir=$ac_pwd ;;
17496 [\\/]* | ?:[\\/]* ) # Absolute name.
17497 ac_srcdir=$srcdir$ac_dir_suffix;
17498 ac_top_srcdir=$srcdir
17499 ac_abs_top_srcdir=$srcdir ;;
17500 *) # Relative name.
17501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17502 ac_top_srcdir=$ac_top_build_prefix$srcdir
17503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17504 esac
17505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17506
17507
17508 case $ac_mode in
17509 :F)
17510 #
17511 # CONFIG_FILE
17512 #
17513
17514 case $INSTALL in
17515 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17516 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17517 esac
17518 ac_MKDIR_P=$MKDIR_P
17519 case $MKDIR_P in
17520 [\\/$]* | ?:[\\/]* ) ;;
17521 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17522 esac
17523 _ACEOF
17524
17525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17526 # If the template does not know about datarootdir, expand it.
17527 # FIXME: This hack should be removed a few years after 2.60.
17528 ac_datarootdir_hack=; ac_datarootdir_seen=
17529 ac_sed_dataroot='
17530 /datarootdir/ {
17531 p
17532 q
17533 }
17534 /@datadir@/p
17535 /@docdir@/p
17536 /@infodir@/p
17537 /@localedir@/p
17538 /@mandir@/p'
17539 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17540 *datarootdir*) ac_datarootdir_seen=yes;;
17541 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17543 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17544 _ACEOF
17545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17546 ac_datarootdir_hack='
17547 s&@datadir@&$datadir&g
17548 s&@docdir@&$docdir&g
17549 s&@infodir@&$infodir&g
17550 s&@localedir@&$localedir&g
17551 s&@mandir@&$mandir&g
17552 s&\\\${datarootdir}&$datarootdir&g' ;;
17553 esac
17554 _ACEOF
17555
17556 # Neutralize VPATH when `$srcdir' = `.'.
17557 # Shell code in configure.ac might set extrasub.
17558 # FIXME: do we really want to maintain this feature?
17559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17560 ac_sed_extra="$ac_vpsub
17561 $extrasub
17562 _ACEOF
17563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17564 :t
17565 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17566 s|@configure_input@|$ac_sed_conf_input|;t t
17567 s&@top_builddir@&$ac_top_builddir_sub&;t t
17568 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17569 s&@srcdir@&$ac_srcdir&;t t
17570 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17571 s&@top_srcdir@&$ac_top_srcdir&;t t
17572 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17573 s&@builddir@&$ac_builddir&;t t
17574 s&@abs_builddir@&$ac_abs_builddir&;t t
17575 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17576 s&@INSTALL@&$ac_INSTALL&;t t
17577 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17578 $ac_datarootdir_hack
17579 "
17580 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17581 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17582
17583 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17584 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17585 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17586 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17588 which seems to be undefined. Please make sure it is defined" >&5
17589 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17590 which seems to be undefined. Please make sure it is defined" >&2;}
17591
17592 rm -f "$ac_tmp/stdin"
17593 case $ac_file in
17594 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17595 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17596 esac \
17597 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17598 ;;
17599 :H)
17600 #
17601 # CONFIG_HEADER
17602 #
17603 if test x"$ac_file" != x-; then
17604 {
17605 $as_echo "/* $configure_input */" \
17606 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17607 } >"$ac_tmp/config.h" \
17608 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17609 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17611 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17612 else
17613 rm -f "$ac_file"
17614 mv "$ac_tmp/config.h" "$ac_file" \
17615 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17616 fi
17617 else
17618 $as_echo "/* $configure_input */" \
17619 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17620 || as_fn_error $? "could not create -" "$LINENO" 5
17621 fi
17622 # Compute "$ac_file"'s index in $config_headers.
17623 _am_arg="$ac_file"
17624 _am_stamp_count=1
17625 for _am_header in $config_headers :; do
17626 case $_am_header in
17627 $_am_arg | $_am_arg:* )
17628 break ;;
17629 * )
17630 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17631 esac
17632 done
17633 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17634 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17635 X"$_am_arg" : 'X\(//\)[^/]' \| \
17636 X"$_am_arg" : 'X\(//\)$' \| \
17637 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17638 $as_echo X"$_am_arg" |
17639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17640 s//\1/
17641 q
17642 }
17643 /^X\(\/\/\)[^/].*/{
17644 s//\1/
17645 q
17646 }
17647 /^X\(\/\/\)$/{
17648 s//\1/
17649 q
17650 }
17651 /^X\(\/\).*/{
17652 s//\1/
17653 q
17654 }
17655 s/.*/./; q'`/stamp-h$_am_stamp_count
17656 ;;
17657
17658 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17659 $as_echo "$as_me: executing $ac_file commands" >&6;}
17660 ;;
17661 esac
17662
17663
17664 case $ac_file$ac_mode in
17665 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17666 # Older Autoconf quotes --file arguments for eval, but not when files
17667 # are listed without --file. Let's play safe and only enable the eval
17668 # if we detect the quoting.
17669 case $CONFIG_FILES in
17670 *\'*) eval set x "$CONFIG_FILES" ;;
17671 *) set x $CONFIG_FILES ;;
17672 esac
17673 shift
17674 for mf
17675 do
17676 # Strip MF so we end up with the name of the file.
17677 mf=`echo "$mf" | sed -e 's/:.*$//'`
17678 # Check whether this is an Automake generated Makefile or not.
17679 # We used to match only the files named 'Makefile.in', but
17680 # some people rename them; so instead we look at the file content.
17681 # Grep'ing the first line is not enough: some people post-process
17682 # each Makefile.in and add a new line on top of each file to say so.
17683 # Grep'ing the whole file is not good either: AIX grep has a line
17684 # limit of 2048, but all sed's we know have understand at least 4000.
17685 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17686 dirpart=`$as_dirname -- "$mf" ||
17687 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17688 X"$mf" : 'X\(//\)[^/]' \| \
17689 X"$mf" : 'X\(//\)$' \| \
17690 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17691 $as_echo X"$mf" |
17692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17693 s//\1/
17694 q
17695 }
17696 /^X\(\/\/\)[^/].*/{
17697 s//\1/
17698 q
17699 }
17700 /^X\(\/\/\)$/{
17701 s//\1/
17702 q
17703 }
17704 /^X\(\/\).*/{
17705 s//\1/
17706 q
17707 }
17708 s/.*/./; q'`
17709 else
17710 continue
17711 fi
17712 # Extract the definition of DEPDIR, am__include, and am__quote
17713 # from the Makefile without running 'make'.
17714 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17715 test -z "$DEPDIR" && continue
17716 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17717 test -z "$am__include" && continue
17718 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17719 # Find all dependency output files, they are included files with
17720 # $(DEPDIR) in their names. We invoke sed twice because it is the
17721 # simplest approach to changing $(DEPDIR) to its actual value in the
17722 # expansion.
17723 for file in `sed -n "
17724 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17725 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17726 # Make sure the directory exists.
17727 test -f "$dirpart/$file" && continue
17728 fdir=`$as_dirname -- "$file" ||
17729 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17730 X"$file" : 'X\(//\)[^/]' \| \
17731 X"$file" : 'X\(//\)$' \| \
17732 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17733 $as_echo X"$file" |
17734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17735 s//\1/
17736 q
17737 }
17738 /^X\(\/\/\)[^/].*/{
17739 s//\1/
17740 q
17741 }
17742 /^X\(\/\/\)$/{
17743 s//\1/
17744 q
17745 }
17746 /^X\(\/\).*/{
17747 s//\1/
17748 q
17749 }
17750 s/.*/./; q'`
17751 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17752 # echo "creating $dirpart/$file"
17753 echo '# dummy' > "$dirpart/$file"
17754 done
17755 done
17756 }
17757 ;;
17758 "libtool":C)
17759
17760 # See if we are running on zsh, and set the options that allow our
17761 # commands through without removal of \ escapes.
17762 if test -n "${ZSH_VERSION+set}"; then
17763 setopt NO_GLOB_SUBST
17764 fi
17765
17766 cfgfile=${ofile}T
17767 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17768 $RM "$cfgfile"
17769
17770 cat <<_LT_EOF >> "$cfgfile"
17771 #! $SHELL
17772 # Generated automatically by $as_me ($PACKAGE) $VERSION
17773 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17774 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17775
17776 # Provide generalized library-building support services.
17777 # Written by Gordon Matzigkeit, 1996
17778
17779 # Copyright (C) 2014 Free Software Foundation, Inc.
17780 # This is free software; see the source for copying conditions. There is NO
17781 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17782
17783 # GNU Libtool is free software; you can redistribute it and/or modify
17784 # it under the terms of the GNU General Public License as published by
17785 # the Free Software Foundation; either version 2 of of the License, or
17786 # (at your option) any later version.
17787 #
17788 # As a special exception to the GNU General Public License, if you
17789 # distribute this file as part of a program or library that is built
17790 # using GNU Libtool, you may include this file under the same
17791 # distribution terms that you use for the rest of that program.
17792 #
17793 # GNU Libtool is distributed in the hope that it will be useful, but
17794 # WITHOUT ANY WARRANTY; without even the implied warranty of
17795 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17796 # GNU General Public License for more details.
17797 #
17798 # You should have received a copy of the GNU General Public License
17799 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17800
17801
17802 # The names of the tagged configurations supported by this script.
17803 available_tags='F77 '
17804
17805 # Configured defaults for sys_lib_dlsearch_path munging.
17806 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17807
17808 # ### BEGIN LIBTOOL CONFIG
17809
17810 # Which release of libtool.m4 was used?
17811 macro_version=$macro_version
17812 macro_revision=$macro_revision
17813
17814 # Whether or not to build shared libraries.
17815 build_libtool_libs=$enable_shared
17816
17817 # Whether or not to build static libraries.
17818 build_old_libs=$enable_static
17819
17820 # What type of objects to build.
17821 pic_mode=$pic_mode
17822
17823 # Whether or not to optimize for fast installation.
17824 fast_install=$enable_fast_install
17825
17826 # Shared archive member basename,for filename based shared library versioning on AIX.
17827 shared_archive_member_spec=$shared_archive_member_spec
17828
17829 # Shell to use when invoking shell scripts.
17830 SHELL=$lt_SHELL
17831
17832 # An echo program that protects backslashes.
17833 ECHO=$lt_ECHO
17834
17835 # The PATH separator for the build system.
17836 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17837
17838 # The host system.
17839 host_alias=$host_alias
17840 host=$host
17841 host_os=$host_os
17842
17843 # The build system.
17844 build_alias=$build_alias
17845 build=$build
17846 build_os=$build_os
17847
17848 # A sed program that does not truncate output.
17849 SED=$lt_SED
17850
17851 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17852 Xsed="\$SED -e 1s/^X//"
17853
17854 # A grep program that handles long lines.
17855 GREP=$lt_GREP
17856
17857 # An ERE matcher.
17858 EGREP=$lt_EGREP
17859
17860 # A literal string matcher.
17861 FGREP=$lt_FGREP
17862
17863 # A BSD- or MS-compatible name lister.
17864 NM=$lt_NM
17865
17866 # Whether we need soft or hard links.
17867 LN_S=$lt_LN_S
17868
17869 # What is the maximum length of a command?
17870 max_cmd_len=$max_cmd_len
17871
17872 # Object file suffix (normally "o").
17873 objext=$ac_objext
17874
17875 # Executable file suffix (normally "").
17876 exeext=$exeext
17877
17878 # whether the shell understands "unset".
17879 lt_unset=$lt_unset
17880
17881 # turn spaces into newlines.
17882 SP2NL=$lt_lt_SP2NL
17883
17884 # turn newlines into spaces.
17885 NL2SP=$lt_lt_NL2SP
17886
17887 # convert \$build file names to \$host format.
17888 to_host_file_cmd=$lt_cv_to_host_file_cmd
17889
17890 # convert \$build files to toolchain format.
17891 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17892
17893 # An object symbol dumper.
17894 OBJDUMP=$lt_OBJDUMP
17895
17896 # Method to check whether dependent libraries are shared objects.
17897 deplibs_check_method=$lt_deplibs_check_method
17898
17899 # Command to use when deplibs_check_method = "file_magic".
17900 file_magic_cmd=$lt_file_magic_cmd
17901
17902 # How to find potential files when deplibs_check_method = "file_magic".
17903 file_magic_glob=$lt_file_magic_glob
17904
17905 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17906 want_nocaseglob=$lt_want_nocaseglob
17907
17908 # DLL creation program.
17909 DLLTOOL=$lt_DLLTOOL
17910
17911 # Command to associate shared and link libraries.
17912 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17913
17914 # The archiver.
17915 AR=$lt_AR
17916
17917 # Flags to create an archive.
17918 AR_FLAGS=$lt_AR_FLAGS
17919
17920 # How to feed a file listing to the archiver.
17921 archiver_list_spec=$lt_archiver_list_spec
17922
17923 # A symbol stripping program.
17924 STRIP=$lt_STRIP
17925
17926 # Commands used to install an old-style archive.
17927 RANLIB=$lt_RANLIB
17928 old_postinstall_cmds=$lt_old_postinstall_cmds
17929 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17930
17931 # Whether to use a lock for old archive extraction.
17932 lock_old_archive_extraction=$lock_old_archive_extraction
17933
17934 # A C compiler.
17935 LTCC=$lt_CC
17936
17937 # LTCC compiler flags.
17938 LTCFLAGS=$lt_CFLAGS
17939
17940 # Take the output of nm and produce a listing of raw symbols and C names.
17941 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17942
17943 # Transform the output of nm in a proper C declaration.
17944 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17945
17946 # Transform the output of nm into a list of symbols to manually relocate.
17947 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17948
17949 # Transform the output of nm in a C name address pair.
17950 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17951
17952 # Transform the output of nm in a C name address pair when lib prefix is needed.
17953 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17954
17955 # The name lister interface.
17956 nm_interface=$lt_lt_cv_nm_interface
17957
17958 # Specify filename containing input files for \$NM.
17959 nm_file_list_spec=$lt_nm_file_list_spec
17960
17961 # The root where to search for dependent libraries,and where our libraries should be installed.
17962 lt_sysroot=$lt_sysroot
17963
17964 # Command to truncate a binary pipe.
17965 lt_truncate_bin=$lt_lt_cv_truncate_bin
17966
17967 # The name of the directory that contains temporary libtool files.
17968 objdir=$objdir
17969
17970 # Used to examine libraries when file_magic_cmd begins with "file".
17971 MAGIC_CMD=$MAGIC_CMD
17972
17973 # Must we lock files when doing compilation?
17974 need_locks=$lt_need_locks
17975
17976 # Manifest tool.
17977 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17978
17979 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17980 DSYMUTIL=$lt_DSYMUTIL
17981
17982 # Tool to change global to local symbols on Mac OS X.
17983 NMEDIT=$lt_NMEDIT
17984
17985 # Tool to manipulate fat objects and archives on Mac OS X.
17986 LIPO=$lt_LIPO
17987
17988 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17989 OTOOL=$lt_OTOOL
17990
17991 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17992 OTOOL64=$lt_OTOOL64
17993
17994 # Old archive suffix (normally "a").
17995 libext=$libext
17996
17997 # Shared library suffix (normally ".so").
17998 shrext_cmds=$lt_shrext_cmds
17999
18000 # The commands to extract the exported symbol list from a shared archive.
18001 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18002
18003 # Variables whose values should be saved in libtool wrapper scripts and
18004 # restored at link time.
18005 variables_saved_for_relink=$lt_variables_saved_for_relink
18006
18007 # Do we need the "lib" prefix for modules?
18008 need_lib_prefix=$need_lib_prefix
18009
18010 # Do we need a version for libraries?
18011 need_version=$need_version
18012
18013 # Library versioning type.
18014 version_type=$version_type
18015
18016 # Shared library runtime path variable.
18017 runpath_var=$runpath_var
18018
18019 # Shared library path variable.
18020 shlibpath_var=$shlibpath_var
18021
18022 # Is shlibpath searched before the hard-coded library search path?
18023 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18024
18025 # Format of library name prefix.
18026 libname_spec=$lt_libname_spec
18027
18028 # List of archive names. First name is the real one, the rest are links.
18029 # The last name is the one that the linker finds with -lNAME
18030 library_names_spec=$lt_library_names_spec
18031
18032 # The coded name of the library, if different from the real name.
18033 soname_spec=$lt_soname_spec
18034
18035 # Permission mode override for installation of shared libraries.
18036 install_override_mode=$lt_install_override_mode
18037
18038 # Command to use after installation of a shared archive.
18039 postinstall_cmds=$lt_postinstall_cmds
18040
18041 # Command to use after uninstallation of a shared archive.
18042 postuninstall_cmds=$lt_postuninstall_cmds
18043
18044 # Commands used to finish a libtool library installation in a directory.
18045 finish_cmds=$lt_finish_cmds
18046
18047 # As "finish_cmds", except a single script fragment to be evaled but
18048 # not shown.
18049 finish_eval=$lt_finish_eval
18050
18051 # Whether we should hardcode library paths into libraries.
18052 hardcode_into_libs=$hardcode_into_libs
18053
18054 # Compile-time system search path for libraries.
18055 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18056
18057 # Detected run-time system search path for libraries.
18058 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18059
18060 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18061 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18062
18063 # Whether dlopen is supported.
18064 dlopen_support=$enable_dlopen
18065
18066 # Whether dlopen of programs is supported.
18067 dlopen_self=$enable_dlopen_self
18068
18069 # Whether dlopen of statically linked programs is supported.
18070 dlopen_self_static=$enable_dlopen_self_static
18071
18072 # Commands to strip libraries.
18073 old_striplib=$lt_old_striplib
18074 striplib=$lt_striplib
18075
18076
18077 # The linker used to build libraries.
18078 LD=$lt_LD
18079
18080 # How to create reloadable object files.
18081 reload_flag=$lt_reload_flag
18082 reload_cmds=$lt_reload_cmds
18083
18084 # Commands used to build an old-style archive.
18085 old_archive_cmds=$lt_old_archive_cmds
18086
18087 # A language specific compiler.
18088 CC=$lt_compiler
18089
18090 # Is the compiler the GNU compiler?
18091 with_gcc=$GCC
18092
18093 # Compiler flag to turn off builtin functions.
18094 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18095
18096 # Additional compiler flags for building library objects.
18097 pic_flag=$lt_lt_prog_compiler_pic
18098
18099 # How to pass a linker flag through the compiler.
18100 wl=$lt_lt_prog_compiler_wl
18101
18102 # Compiler flag to prevent dynamic linking.
18103 link_static_flag=$lt_lt_prog_compiler_static
18104
18105 # Does compiler simultaneously support -c and -o options?
18106 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18107
18108 # Whether or not to add -lc for building shared libraries.
18109 build_libtool_need_lc=$archive_cmds_need_lc
18110
18111 # Whether or not to disallow shared libs when runtime libs are static.
18112 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18113
18114 # Compiler flag to allow reflexive dlopens.
18115 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18116
18117 # Compiler flag to generate shared objects directly from archives.
18118 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18119
18120 # Whether the compiler copes with passing no objects directly.
18121 compiler_needs_object=$lt_compiler_needs_object
18122
18123 # Create an old-style archive from a shared archive.
18124 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18125
18126 # Create a temporary old-style archive to link instead of a shared archive.
18127 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18128
18129 # Commands used to build a shared archive.
18130 archive_cmds=$lt_archive_cmds
18131 archive_expsym_cmds=$lt_archive_expsym_cmds
18132
18133 # Commands used to build a loadable module if different from building
18134 # a shared archive.
18135 module_cmds=$lt_module_cmds
18136 module_expsym_cmds=$lt_module_expsym_cmds
18137
18138 # Whether we are building with GNU ld or not.
18139 with_gnu_ld=$lt_with_gnu_ld
18140
18141 # Flag that allows shared libraries with undefined symbols to be built.
18142 allow_undefined_flag=$lt_allow_undefined_flag
18143
18144 # Flag that enforces no undefined symbols.
18145 no_undefined_flag=$lt_no_undefined_flag
18146
18147 # Flag to hardcode \$libdir into a binary during linking.
18148 # This must work even if \$libdir does not exist
18149 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18150
18151 # Whether we need a single "-rpath" flag with a separated argument.
18152 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18153
18154 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18155 # DIR into the resulting binary.
18156 hardcode_direct=$hardcode_direct
18157
18158 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18159 # DIR into the resulting binary and the resulting library dependency is
18160 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18161 # library is relocated.
18162 hardcode_direct_absolute=$hardcode_direct_absolute
18163
18164 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18165 # into the resulting binary.
18166 hardcode_minus_L=$hardcode_minus_L
18167
18168 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18169 # into the resulting binary.
18170 hardcode_shlibpath_var=$hardcode_shlibpath_var
18171
18172 # Set to "yes" if building a shared library automatically hardcodes DIR
18173 # into the library and all subsequent libraries and executables linked
18174 # against it.
18175 hardcode_automatic=$hardcode_automatic
18176
18177 # Set to yes if linker adds runtime paths of dependent libraries
18178 # to runtime path list.
18179 inherit_rpath=$inherit_rpath
18180
18181 # Whether libtool must link a program against all its dependency libraries.
18182 link_all_deplibs=$link_all_deplibs
18183
18184 # Set to "yes" if exported symbols are required.
18185 always_export_symbols=$always_export_symbols
18186
18187 # The commands to list exported symbols.
18188 export_symbols_cmds=$lt_export_symbols_cmds
18189
18190 # Symbols that should not be listed in the preloaded symbols.
18191 exclude_expsyms=$lt_exclude_expsyms
18192
18193 # Symbols that must always be exported.
18194 include_expsyms=$lt_include_expsyms
18195
18196 # Commands necessary for linking programs (against libraries) with templates.
18197 prelink_cmds=$lt_prelink_cmds
18198
18199 # Commands necessary for finishing linking programs.
18200 postlink_cmds=$lt_postlink_cmds
18201
18202 # Specify filename containing input files.
18203 file_list_spec=$lt_file_list_spec
18204
18205 # How to hardcode a shared library path into an executable.
18206 hardcode_action=$hardcode_action
18207
18208 # ### END LIBTOOL CONFIG
18209
18210 _LT_EOF
18211
18212 cat <<'_LT_EOF' >> "$cfgfile"
18213
18214 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18215
18216 # func_munge_path_list VARIABLE PATH
18217 # -----------------------------------
18218 # VARIABLE is name of variable containing _space_ separated list of
18219 # directories to be munged by the contents of PATH, which is string
18220 # having a format:
18221 # "DIR[:DIR]:"
18222 # string "DIR[ DIR]" will be prepended to VARIABLE
18223 # ":DIR[:DIR]"
18224 # string "DIR[ DIR]" will be appended to VARIABLE
18225 # "DIRP[:DIRP]::[DIRA:]DIRA"
18226 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18227 # "DIRA[ DIRA]" will be appended to VARIABLE
18228 # "DIR[:DIR]"
18229 # VARIABLE will be replaced by "DIR[ DIR]"
18230 func_munge_path_list ()
18231 {
18232 case x$2 in
18233 x)
18234 ;;
18235 *:)
18236 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18237 ;;
18238 x:*)
18239 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18240 ;;
18241 *::*)
18242 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18243 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18244 ;;
18245 *)
18246 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18247 ;;
18248 esac
18249 }
18250
18251
18252 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18253 func_cc_basename ()
18254 {
18255 for cc_temp in $*""; do
18256 case $cc_temp in
18257 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18258 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18259 \-*) ;;
18260 *) break;;
18261 esac
18262 done
18263 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18264 }
18265
18266
18267 # ### END FUNCTIONS SHARED WITH CONFIGURE
18268
18269 _LT_EOF
18270
18271 case $host_os in
18272 aix3*)
18273 cat <<\_LT_EOF >> "$cfgfile"
18274 # AIX sometimes has problems with the GCC collect2 program. For some
18275 # reason, if we set the COLLECT_NAMES environment variable, the problems
18276 # vanish in a puff of smoke.
18277 if test set != "${COLLECT_NAMES+set}"; then
18278 COLLECT_NAMES=
18279 export COLLECT_NAMES
18280 fi
18281 _LT_EOF
18282 ;;
18283 esac
18284
18285
18286 ltmain=$ac_aux_dir/ltmain.sh
18287
18288
18289 # We use sed instead of cat because bash on DJGPP gets confused if
18290 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18291 # text mode, it properly converts lines to CR/LF. This bash problem
18292 # is reportedly fixed, but why not run on old versions too?
18293 sed '$q' "$ltmain" >> "$cfgfile" \
18294 || (rm -f "$cfgfile"; exit 1)
18295
18296 mv -f "$cfgfile" "$ofile" ||
18297 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18298 chmod +x "$ofile"
18299
18300
18301 cat <<_LT_EOF >> "$ofile"
18302
18303 # ### BEGIN LIBTOOL TAG CONFIG: F77
18304
18305 # The linker used to build libraries.
18306 LD=$lt_LD_F77
18307
18308 # How to create reloadable object files.
18309 reload_flag=$lt_reload_flag_F77
18310 reload_cmds=$lt_reload_cmds_F77
18311
18312 # Commands used to build an old-style archive.
18313 old_archive_cmds=$lt_old_archive_cmds_F77
18314
18315 # A language specific compiler.
18316 CC=$lt_compiler_F77
18317
18318 # Is the compiler the GNU compiler?
18319 with_gcc=$GCC_F77
18320
18321 # Compiler flag to turn off builtin functions.
18322 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18323
18324 # Additional compiler flags for building library objects.
18325 pic_flag=$lt_lt_prog_compiler_pic_F77
18326
18327 # How to pass a linker flag through the compiler.
18328 wl=$lt_lt_prog_compiler_wl_F77
18329
18330 # Compiler flag to prevent dynamic linking.
18331 link_static_flag=$lt_lt_prog_compiler_static_F77
18332
18333 # Does compiler simultaneously support -c and -o options?
18334 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18335
18336 # Whether or not to add -lc for building shared libraries.
18337 build_libtool_need_lc=$archive_cmds_need_lc_F77
18338
18339 # Whether or not to disallow shared libs when runtime libs are static.
18340 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18341
18342 # Compiler flag to allow reflexive dlopens.
18343 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18344
18345 # Compiler flag to generate shared objects directly from archives.
18346 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18347
18348 # Whether the compiler copes with passing no objects directly.
18349 compiler_needs_object=$lt_compiler_needs_object_F77
18350
18351 # Create an old-style archive from a shared archive.
18352 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18353
18354 # Create a temporary old-style archive to link instead of a shared archive.
18355 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18356
18357 # Commands used to build a shared archive.
18358 archive_cmds=$lt_archive_cmds_F77
18359 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18360
18361 # Commands used to build a loadable module if different from building
18362 # a shared archive.
18363 module_cmds=$lt_module_cmds_F77
18364 module_expsym_cmds=$lt_module_expsym_cmds_F77
18365
18366 # Whether we are building with GNU ld or not.
18367 with_gnu_ld=$lt_with_gnu_ld_F77
18368
18369 # Flag that allows shared libraries with undefined symbols to be built.
18370 allow_undefined_flag=$lt_allow_undefined_flag_F77
18371
18372 # Flag that enforces no undefined symbols.
18373 no_undefined_flag=$lt_no_undefined_flag_F77
18374
18375 # Flag to hardcode \$libdir into a binary during linking.
18376 # This must work even if \$libdir does not exist
18377 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18378
18379 # Whether we need a single "-rpath" flag with a separated argument.
18380 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18381
18382 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18383 # DIR into the resulting binary.
18384 hardcode_direct=$hardcode_direct_F77
18385
18386 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18387 # DIR into the resulting binary and the resulting library dependency is
18388 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18389 # library is relocated.
18390 hardcode_direct_absolute=$hardcode_direct_absolute_F77
18391
18392 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18393 # into the resulting binary.
18394 hardcode_minus_L=$hardcode_minus_L_F77
18395
18396 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18397 # into the resulting binary.
18398 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18399
18400 # Set to "yes" if building a shared library automatically hardcodes DIR
18401 # into the library and all subsequent libraries and executables linked
18402 # against it.
18403 hardcode_automatic=$hardcode_automatic_F77
18404
18405 # Set to yes if linker adds runtime paths of dependent libraries
18406 # to runtime path list.
18407 inherit_rpath=$inherit_rpath_F77
18408
18409 # Whether libtool must link a program against all its dependency libraries.
18410 link_all_deplibs=$link_all_deplibs_F77
18411
18412 # Set to "yes" if exported symbols are required.
18413 always_export_symbols=$always_export_symbols_F77
18414
18415 # The commands to list exported symbols.
18416 export_symbols_cmds=$lt_export_symbols_cmds_F77
18417
18418 # Symbols that should not be listed in the preloaded symbols.
18419 exclude_expsyms=$lt_exclude_expsyms_F77
18420
18421 # Symbols that must always be exported.
18422 include_expsyms=$lt_include_expsyms_F77
18423
18424 # Commands necessary for linking programs (against libraries) with templates.
18425 prelink_cmds=$lt_prelink_cmds_F77
18426
18427 # Commands necessary for finishing linking programs.
18428 postlink_cmds=$lt_postlink_cmds_F77
18429
18430 # Specify filename containing input files.
18431 file_list_spec=$lt_file_list_spec_F77
18432
18433 # How to hardcode a shared library path into an executable.
18434 hardcode_action=$hardcode_action_F77
18435
18436 # ### END LIBTOOL TAG CONFIG: F77
18437 _LT_EOF
18438
18439 ;;
18440
18441 esac
18442 done # for ac_tag
18443
18444
18445 as_fn_exit 0
18446 _ACEOF
18447 ac_clean_files=$ac_clean_files_save
18448
18449 test $ac_write_fail = 0 ||
18450 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18451
18452
18453 # configure is writing to config.log, and then calls config.status.
18454 # config.status does its own redirection, appending to config.log.
18455 # Unfortunately, on DOS this fails, as config.log is still kept open
18456 # by configure, so config.status won't be able to write to it; its
18457 # output is simply discarded. So we exec the FD to /dev/null,
18458 # effectively closing config.log, so it can be properly (re)opened and
18459 # appended to by config.status. When coming back to configure, we
18460 # need to make the FD available again.
18461 if test "$no_create" != yes; then
18462 ac_cs_success=:
18463 ac_config_status_args=
18464 test "$silent" = yes &&
18465 ac_config_status_args="$ac_config_status_args --quiet"
18466 exec 5>/dev/null
18467 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18468 exec 5>>config.log
18469 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18470 # would make configure fail if this is the last instruction.
18471 $ac_cs_success || as_fn_exit 1
18472 fi
18473 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18475 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18476 fi
18477