Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for IML 1.0.4.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='IML'
589 PACKAGE_TARNAME='iml'
590 PACKAGE_VERSION='1.0.4'
591 PACKAGE_STRING='IML 1.0.4'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="src/RNSop.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 ac_aux_dir
636 LIBIML_LDFLAGS
637 CBLAS_LIBS
638 CBLAS_CFLAGS
639 ATLAS_LIBS
640 ATLAS_CFLAGS
641 GMP_VERSION
642 GMP_LIBS
643 GMP_CFLAGS
644 LIBOBJS
645 OTOOL64
646 OTOOL
647 LIPO
648 NMEDIT
649 DSYMUTIL
650 MANIFEST_TOOL
651 RANLIB
652 ac_ct_AR
653 AR
654 LN_S
655 NM
656 ac_ct_DUMPBIN
657 DUMPBIN
658 LD
659 FGREP
660 SED
661 host_os
662 host_vendor
663 host_cpu
664 host
665 build_os
666 build_vendor
667 build_cpu
668 build
669 LIBTOOL
670 OBJDUMP
671 DLLTOOL
672 AS
673 EGREP
674 GREP
675 CPP
676 am__fastdepCC_FALSE
677 am__fastdepCC_TRUE
678 CCDEPMODE
679 am__nodep
680 AMDEPBACKSLASH
681 AMDEP_FALSE
682 AMDEP_TRUE
683 am__quote
684 am__include
685 DEPDIR
686 OBJEXT
687 EXEEXT
688 ac_ct_CC
689 CPPFLAGS
690 LDFLAGS
691 CFLAGS
692 CC
693 am__untar
694 am__tar
695 AMTAR
696 am__leading_dot
697 SET_MAKE
698 AWK
699 mkdir_p
700 MKDIR_P
701 INSTALL_STRIP_PROGRAM
702 STRIP
703 install_sh
704 MAKEINFO
705 AUTOHEADER
706 AUTOMAKE
707 AUTOCONF
708 ACLOCAL
709 VERSION
710 PACKAGE
711 CYGPATH_W
712 am__isrc
713 INSTALL_DATA
714 INSTALL_SCRIPT
715 INSTALL_PROGRAM
716 target_alias
717 host_alias
718 build_alias
719 LIBS
720 ECHO_T
721 ECHO_N
722 ECHO_C
723 DEFS
724 mandir
725 localedir
726 libdir
727 psdir
728 pdfdir
729 dvidir
730 htmldir
731 infodir
732 docdir
733 oldincludedir
734 includedir
735 localstatedir
736 sharedstatedir
737 sysconfdir
738 datadir
739 datarootdir
740 libexecdir
741 sbindir
742 bindir
743 program_transform_name
744 prefix
745 exec_prefix
746 PACKAGE_URL
747 PACKAGE_BUGREPORT
748 PACKAGE_STRING
749 PACKAGE_VERSION
750 PACKAGE_TARNAME
751 PACKAGE_NAME
752 PATH_SEPARATOR
753 SHELL'
754 ac_subst_files=''
755 ac_user_opts='
756 enable_option_checking
757 enable_dependency_tracking
758 enable_shared
759 enable_static
760 with_pic
761 enable_fast_install
762 with_gnu_ld
763 with_sysroot
764 enable_libtool_lock
765 enable_verbose_mode
766 with_default
767 with_gmp_include
768 with_gmp_lib
769 with_cblas
770 with_cblas_include
771 with_cblas_lib
772 with_atlas_include
773 with_atlas_lib
774 '
775 ac_precious_vars='build_alias
776 host_alias
777 target_alias
778 CC
779 CFLAGS
780 LDFLAGS
781 LIBS
782 CPPFLAGS
783 CPP'
784
785
786 # Initialize some variables set by options.
787 ac_init_help=
788 ac_init_version=false
789 ac_unrecognized_opts=
790 ac_unrecognized_sep=
791 # The variables have the same names as the options, with
792 # dashes changed to underlines.
793 cache_file=/dev/null
794 exec_prefix=NONE
795 no_create=
796 no_recursion=
797 prefix=NONE
798 program_prefix=NONE
799 program_suffix=NONE
800 program_transform_name=s,x,x,
801 silent=
802 site=
803 srcdir=
804 verbose=
805 x_includes=NONE
806 x_libraries=NONE
807
808 # Installation directory options.
809 # These are left unexpanded so users can "make install exec_prefix=/foo"
810 # and all the variables that are supposed to be based on exec_prefix
811 # by default will actually change.
812 # Use braces instead of parens because sh, perl, etc. also accept them.
813 # (The list follows the same order as the GNU Coding Standards.)
814 bindir='${exec_prefix}/bin'
815 sbindir='${exec_prefix}/sbin'
816 libexecdir='${exec_prefix}/libexec'
817 datarootdir='${prefix}/share'
818 datadir='${datarootdir}'
819 sysconfdir='${prefix}/etc'
820 sharedstatedir='${prefix}/com'
821 localstatedir='${prefix}/var'
822 includedir='${prefix}/include'
823 oldincludedir='/usr/include'
824 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
825 infodir='${datarootdir}/info'
826 htmldir='${docdir}'
827 dvidir='${docdir}'
828 pdfdir='${docdir}'
829 psdir='${docdir}'
830 libdir='${exec_prefix}/lib'
831 localedir='${datarootdir}/locale'
832 mandir='${datarootdir}/man'
833
834 ac_prev=
835 ac_dashdash=
836 for ac_option
837 do
838 # If the previous option needs an argument, assign it.
839 if test -n "$ac_prev"; then
840 eval $ac_prev=\$ac_option
841 ac_prev=
842 continue
843 fi
844
845 case $ac_option in
846 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 *=) ac_optarg= ;;
848 *) ac_optarg=yes ;;
849 esac
850
851 # Accept the important Cygnus configure options, so we can diagnose typos.
852
853 case $ac_dashdash$ac_option in
854 --)
855 ac_dashdash=yes ;;
856
857 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 ac_prev=bindir ;;
859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
860 bindir=$ac_optarg ;;
861
862 -build | --build | --buil | --bui | --bu)
863 ac_prev=build_alias ;;
864 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865 build_alias=$ac_optarg ;;
866
867 -cache-file | --cache-file | --cache-fil | --cache-fi \
868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869 ac_prev=cache_file ;;
870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872 cache_file=$ac_optarg ;;
873
874 --config-cache | -C)
875 cache_file=config.cache ;;
876
877 -datadir | --datadir | --datadi | --datad)
878 ac_prev=datadir ;;
879 -datadir=* | --datadir=* | --datadi=* | --datad=*)
880 datadir=$ac_optarg ;;
881
882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883 | --dataroo | --dataro | --datar)
884 ac_prev=datarootdir ;;
885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887 datarootdir=$ac_optarg ;;
888
889 -disable-* | --disable-*)
890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error $? "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
897 *"
898 "enable_$ac_useropt"
899 "*) ;;
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
902 esac
903 eval enable_$ac_useropt=no ;;
904
905 -docdir | --docdir | --docdi | --doc | --do)
906 ac_prev=docdir ;;
907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908 docdir=$ac_optarg ;;
909
910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 ac_prev=dvidir ;;
912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913 dvidir=$ac_optarg ;;
914
915 -enable-* | --enable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error $? "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
923 *"
924 "enable_$ac_useropt"
925 "*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=\$ac_optarg ;;
930
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
939
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
942 with_gas=yes ;;
943
944 -help | --help | --hel | --he | -h)
945 ac_init_help=long ;;
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
950
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
955
956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 ac_prev=htmldir ;;
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 | --ht=*)
960 htmldir=$ac_optarg ;;
961
962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
968
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 ac_prev=infodir ;;
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
973
974 -libdir | --libdir | --libdi | --libd)
975 ac_prev=libdir ;;
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
977 libdir=$ac_optarg ;;
978
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
985
986 -localedir | --localedir | --localedi | --localed | --locale)
987 ac_prev=localedir ;;
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
990
991 -localstatedir | --localstatedir | --localstatedi | --localstated \
992 | --localstate | --localstat | --localsta | --localst | --locals)
993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996 localstatedir=$ac_optarg ;;
997
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 ac_prev=mandir ;;
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1002
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1005 with_fp=no ;;
1006
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1009 no_create=yes ;;
1010
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1013 no_recursion=yes ;;
1014
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1023
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 ac_prev=prefix ;;
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1028
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1035
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1042
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1059
1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 ac_prev=pdfdir ;;
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1064
1065 -psdir | --psdir | --psdi | --psd | --ps)
1066 ac_prev=psdir ;;
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1068 psdir=$ac_optarg ;;
1069
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1072 silent=yes ;;
1073
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1079
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1090
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1095
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1100
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1107
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1112
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1115
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1118
1119 -with-* | --with-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error $? "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128 "with_$ac_useropt"
1129 "*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=\$ac_optarg ;;
1134
1135 -without-* | --without-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=no ;;
1150
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1154
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1161
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1168
1169 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1170 Try \`$0 --help' for more information"
1171 ;;
1172
1173 *=*)
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
1176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1179 esac
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1182
1183 *)
1184 # FIXME: should be removed in autoconf 3.0.
1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1189 ;;
1190
1191 esac
1192 done
1193
1194 if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 as_fn_error $? "missing argument to $ac_option"
1197 fi
1198
1199 if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1201 no) ;;
1202 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204 esac
1205 fi
1206
1207 # Check all directory arguments for consistency.
1208 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
1212 do
1213 eval ac_val=\$$ac_var
1214 # Remove trailing slashes.
1215 case $ac_val in
1216 */ )
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1219 esac
1220 # Be sure to have absolute directory names.
1221 case $ac_val in
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 esac
1225 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1226 done
1227
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1231 build=$build_alias
1232 host=$host_alias
1233 target=$target_alias
1234
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
1239 elif test "x$build_alias" != "x$host_alias"; then
1240 cross_compiling=yes
1241 fi
1242 fi
1243
1244 ac_tool_prefix=
1245 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
1247 test "$silent" = yes && exec 6>/dev/null
1248
1249
1250 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251 ac_ls_di=`ls -di .` &&
1252 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253 as_fn_error $? "working directory cannot be determined"
1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255 as_fn_error $? "pwd does not report name of working directory"
1256
1257
1258 # Find the source files, if location was not specified.
1259 if test -z "$srcdir"; then
1260 ac_srcdir_defaulted=yes
1261 # Try the directory containing this script, then the parent directory.
1262 ac_confdir=`$as_dirname -- "$as_myself" ||
1263 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264 X"$as_myself" : 'X\(//\)[^/]' \| \
1265 X"$as_myself" : 'X\(//\)$' \| \
1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267 $as_echo X"$as_myself" |
1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)[^/].*/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\).*/{
1281 s//\1/
1282 q
1283 }
1284 s/.*/./; q'`
1285 srcdir=$ac_confdir
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 srcdir=..
1288 fi
1289 else
1290 ac_srcdir_defaulted=no
1291 fi
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1295 fi
1296 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297 ac_abs_confdir=`(
1298 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1299 pwd)`
1300 # When building in place, set srcdir=.
1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 srcdir=.
1303 fi
1304 # Remove unnecessary trailing slashes from srcdir.
1305 # Double slashes in file names in object file debugging info
1306 # mess up M-x gdb in Emacs.
1307 case $srcdir in
1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 esac
1310 for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 done
1316
1317 #
1318 # Report the --help message.
1319 #
1320 if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1323 cat <<_ACEOF
1324 \`configure' configures IML 1.0.4 to adapt to many kinds of systems.
1325
1326 Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329 VAR=VALUE. See below for descriptions of some of the useful variables.
1330
1331 Defaults for the options are specified in brackets.
1332
1333 Configuration:
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
1338 -q, --quiet, --silent do not print \`checking ...' messages
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for \`--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343
1344 Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
1346 [$ac_default_prefix]
1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 [PREFIX]
1349
1350 By default, \`make install' will install all the files in
1351 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1352 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353 for instance \`--prefix=\$HOME'.
1354
1355 For better control, use the options below.
1356
1357 Fine tuning of the installation directories:
1358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --libdir=DIR object code libraries [EPREFIX/lib]
1365 --includedir=DIR C header files [PREFIX/include]
1366 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1369 --infodir=DIR info documentation [DATAROOTDIR/info]
1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1371 --mandir=DIR man documentation [DATAROOTDIR/man]
1372 --docdir=DIR documentation root [DATAROOTDIR/doc/iml]
1373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
1377 _ACEOF
1378
1379 cat <<\_ACEOF
1380
1381 Program names:
1382 --program-prefix=PREFIX prepend PREFIX to installed program names
1383 --program-suffix=SUFFIX append SUFFIX to installed program names
1384 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1385
1386 System types:
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 _ACEOF
1390 fi
1391
1392 if test -n "$ac_init_help"; then
1393 case $ac_init_help in
1394 short | recursive ) echo "Configuration of IML 1.0.4:";;
1395 esac
1396 cat <<\_ACEOF
1397
1398 Optional Features:
1399 --disable-option-checking ignore unrecognized --enable/--with options
1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1402 --enable-dependency-tracking
1403 do not reject slow dependency extractors
1404 --disable-dependency-tracking
1405 speeds up one-time build
1406 --enable-shared[=PKGS] build shared libraries [default=no]
1407 --enable-static[=PKGS] build static libraries [default=yes]
1408 --enable-fast-install[=PKGS]
1409 optimize for fast installation [default=yes]
1410 --disable-libtool-lock avoid locking (might break parallel builds)
1411 --enable-verbose-mode
1412 The program will output additional information such as
1413 timings, intermidate results and so on.
1414
1415
1416 Optional Packages:
1417 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1418 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1419 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1420 both]
1421 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1422 --with-sysroot=DIR Search for dependent libraries within DIR
1423 (or the compiler's sysroot if not specified).
1424 --with-default=<path>
1425 Add <path> to the default path for package GMP and
1426 ATLAS searching. The default path without setting this
1427 argument is /usr and /usr/local
1428
1429 --with-gmp-include=<path>
1430 Specify the path of GMP header gmp.h
1431 If argument is <empty> that means the header is reachable
1432 with the default search path: /usr/include or /usr/local/include
1433 or other path you add as default path using --with-default.
1434 Otherwise you give the <path> to the directory which contains
1435 the header gmp.h.
1436
1437 --with-gmp-lib=<path>
1438 Specify the path of GMP library.
1439 If argument is <empty> that means the header is reachable
1440 with the default search path: /usr/include or /usr/local/include
1441 or path you add as default path using --with-default.
1442 Otherwise you give the <path> to the directory which contains
1443 the GMP library.
1444
1445 --with-cblas=<linker flags>
1446 Specify the flags to use to link to cblas.
1447 If argument is <empty> that means that ATLAS is installed
1448 and -lcblas -latlas should be used.
1449
1450 --with-cblas-include=<path>
1451 Specify the path of cblas header cblas.h
1452 If argument is <empty> that means the header is reachable
1453 with the default search path: /usr/include or /usr/local/include
1454 or other path you add as default path using --with-default.
1455 If not the case a default header provided by IML will be used.
1456 Otherwise you give the <path> to the directory which contains
1457 the ATLAS header cblas.h.
1458
1459 --with-cblas-lib=<path>
1460 Specify the path of CBLAS library.
1461 If argument is <empty> that means the header is reachable
1462 with the default search path: /usr/include or /usr/local/include
1463 or path you add as default path using --with-default.
1464 Otherwise you give the <path> to the directory which contains
1465 the CBLAS library.
1466
1467 --with-atlas-include=<path>
1468 Specify the path of ATLAS header cblas.h
1469 If argument is <empty> that means the header is reachable
1470 with the default search path: /usr/include or /usr/local/include
1471 or other path you add as default path using --with-default.
1472 Otherwise you give the <path> to the directory which contains
1473 the ATLAS header cblas.h.
1474
1475 --with-atlas-lib=<path>
1476 Specify the path of ATLAS library.
1477 If argument is <empty> that means the header is reachable
1478 with the default search path: /usr/include or /usr/local/include
1479 or path you add as default path using --with-default.
1480 Otherwise you give the <path> to the directory which contains
1481 the ATLAS library.
1482
1483
1484 Some influential environment variables:
1485 CC C compiler command
1486 CFLAGS C compiler flags
1487 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1488 nonstandard directory <lib dir>
1489 LIBS libraries to pass to the linker, e.g. -l<library>
1490 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1491 you have headers in a nonstandard directory <include dir>
1492 CPP C preprocessor
1493
1494 Use these variables to override the choices made by `configure' or to help
1495 it to find libraries and programs with nonstandard names/locations.
1496
1497 Report bugs to the package provider.
1498 _ACEOF
1499 ac_status=$?
1500 fi
1501
1502 if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1505 test -d "$ac_dir" ||
1506 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1507 continue
1508 ac_builddir=.
1509
1510 case "$ac_dir" in
1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *)
1513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 esac ;;
1520 esac
1521 ac_abs_top_builddir=$ac_pwd
1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523 # for backward compatibility:
1524 ac_top_builddir=$ac_top_build_prefix
1525
1526 case $srcdir in
1527 .) # We are building in place.
1528 ac_srcdir=.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1535 *) # Relative name.
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 esac
1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1545 echo &&
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure" --help=recursive
1550 else
1551 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 fi || ac_status=$?
1553 cd "$ac_pwd" || { ac_status=$?; break; }
1554 done
1555 fi
1556
1557 test -n "$ac_init_help" && exit $ac_status
1558 if $ac_init_version; then
1559 cat <<\_ACEOF
1560 IML configure 1.0.4
1561 generated by GNU Autoconf 2.69
1562
1563 Copyright (C) 2012 Free Software Foundation, Inc.
1564 This configure script is free software; the Free Software Foundation
1565 gives unlimited permission to copy, distribute and modify it.
1566 _ACEOF
1567 exit
1568 fi
1569
1570 ## ------------------------ ##
1571 ## Autoconf initialization. ##
1572 ## ------------------------ ##
1573
1574 # ac_fn_c_try_compile LINENO
1575 # --------------------------
1576 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_compile ()
1578 {
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext
1581 if { { ac_try="$ac_compile"
1582 case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_compile") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest.$ac_objext; then :
1600 ac_retval=0
1601 else
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1
1606 fi
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 as_fn_set_status $ac_retval
1609
1610 } # ac_fn_c_try_compile
1611
1612 # ac_fn_c_try_cpp LINENO
1613 # ----------------------
1614 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1615 ac_fn_c_try_cpp ()
1616 {
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 if { { ac_try="$ac_cpp conftest.$ac_ext"
1619 case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1631 fi
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } > conftest.i && {
1634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 }; then :
1637 ac_retval=0
1638 else
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1
1643 fi
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1646
1647 } # ac_fn_c_try_cpp
1648
1649 # ac_fn_c_try_run LINENO
1650 # ----------------------
1651 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1652 # that executables *can* be run.
1653 ac_fn_c_try_run ()
1654 {
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 if { { ac_try="$ac_link"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_link") 2>&5
1664 ac_status=$?
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1667 { { case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670 esac
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_try") 2>&5
1674 ac_status=$?
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; }; }; then :
1677 ac_retval=0
1678 else
1679 $as_echo "$as_me: program exited with status $ac_status" >&5
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_retval=$ac_status
1684 fi
1685 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 as_fn_set_status $ac_retval
1688
1689 } # ac_fn_c_try_run
1690
1691 # ac_fn_c_try_link LINENO
1692 # -----------------------
1693 # Try to link conftest.$ac_ext, and return whether this succeeded.
1694 ac_fn_c_try_link ()
1695 {
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 rm -f conftest.$ac_objext conftest$ac_exeext
1698 if { { ac_try="$ac_link"
1699 case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_link") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1711 fi
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && {
1714 test -z "$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 } && test -s conftest$ac_exeext && {
1717 test "$cross_compiling" = yes ||
1718 test -x conftest$ac_exeext
1719 }; then :
1720 ac_retval=0
1721 else
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=1
1726 fi
1727 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1728 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1729 # interfere with the next link command; also delete a directory that is
1730 # left behind by Apple's compiler. We do this before executing the actions.
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_link
1736
1737 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1738 # -------------------------------------------------------
1739 # Tests whether HEADER exists and can be compiled using the include files in
1740 # INCLUDES, setting the cache variable VAR accordingly.
1741 ac_fn_c_check_header_compile ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval \${$3+:} false; then :
1747 $as_echo_n "(cached) " >&6
1748 else
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 $4
1752 #include <$2>
1753 _ACEOF
1754 if ac_fn_c_try_compile "$LINENO"; then :
1755 eval "$3=yes"
1756 else
1757 eval "$3=no"
1758 fi
1759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760 fi
1761 eval ac_res=\$$3
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765
1766 } # ac_fn_c_check_header_compile
1767
1768 # ac_fn_c_check_func LINENO FUNC VAR
1769 # ----------------------------------
1770 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1771 ac_fn_c_check_func ()
1772 {
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if eval \${$3+:} false; then :
1777 $as_echo_n "(cached) " >&6
1778 else
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1781 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1783 #define $2 innocuous_$2
1784
1785 /* System header to define __stub macros and hopefully few prototypes,
1786 which can conflict with char $2 (); below.
1787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1788 <limits.h> exists even on freestanding compilers. */
1789
1790 #ifdef __STDC__
1791 # include <limits.h>
1792 #else
1793 # include <assert.h>
1794 #endif
1795
1796 #undef $2
1797
1798 /* Override any GCC internal prototype to avoid an error.
1799 Use char because int might match the return type of a GCC
1800 builtin and then its argument prototype would still apply. */
1801 #ifdef __cplusplus
1802 extern "C"
1803 #endif
1804 char $2 ();
1805 /* The GNU C library defines this for functions which it implements
1806 to always fail with ENOSYS. Some functions are actually named
1807 something starting with __ and the normal name is an alias. */
1808 #if defined __stub_$2 || defined __stub___$2
1809 choke me
1810 #endif
1811
1812 int
1813 main ()
1814 {
1815 return $2 ();
1816 ;
1817 return 0;
1818 }
1819 _ACEOF
1820 if ac_fn_c_try_link "$LINENO"; then :
1821 eval "$3=yes"
1822 else
1823 eval "$3=no"
1824 fi
1825 rm -f core conftest.err conftest.$ac_objext \
1826 conftest$ac_exeext conftest.$ac_ext
1827 fi
1828 eval ac_res=\$$3
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832
1833 } # ac_fn_c_check_func
1834
1835 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1836 # -------------------------------------------------------
1837 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1838 # the include files in INCLUDES and setting the cache variable VAR
1839 # accordingly.
1840 ac_fn_c_check_header_mongrel ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 if eval \${$3+:} false; then :
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 $as_echo_n "checking for $2... " >&6; }
1846 if eval \${$3+:} false; then :
1847 $as_echo_n "(cached) " >&6
1848 fi
1849 eval ac_res=\$$3
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 else
1853 # Is the header compilable?
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1855 $as_echo_n "checking $2 usability... " >&6; }
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1858 $4
1859 #include <$2>
1860 _ACEOF
1861 if ac_fn_c_try_compile "$LINENO"; then :
1862 ac_header_compiler=yes
1863 else
1864 ac_header_compiler=no
1865 fi
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1868 $as_echo "$ac_header_compiler" >&6; }
1869
1870 # Is the header present?
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1872 $as_echo_n "checking $2 presence... " >&6; }
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1875 #include <$2>
1876 _ACEOF
1877 if ac_fn_c_try_cpp "$LINENO"; then :
1878 ac_header_preproc=yes
1879 else
1880 ac_header_preproc=no
1881 fi
1882 rm -f conftest.err conftest.i conftest.$ac_ext
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1884 $as_echo "$ac_header_preproc" >&6; }
1885
1886 # So? What about this header?
1887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1888 yes:no: )
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1890 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1892 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1893 ;;
1894 no:yes:* )
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1896 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1898 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1900 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1902 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1904 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1905 ;;
1906 esac
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908 $as_echo_n "checking for $2... " >&6; }
1909 if eval \${$3+:} false; then :
1910 $as_echo_n "(cached) " >&6
1911 else
1912 eval "$3=\$ac_header_compiler"
1913 fi
1914 eval ac_res=\$$3
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 fi
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919
1920 } # ac_fn_c_check_header_mongrel
1921
1922 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1923 # -------------------------------------------
1924 # Tests whether TYPE exists after having included INCLUDES, setting cache
1925 # variable VAR accordingly.
1926 ac_fn_c_check_type ()
1927 {
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930 $as_echo_n "checking for $2... " >&6; }
1931 if eval \${$3+:} false; then :
1932 $as_echo_n "(cached) " >&6
1933 else
1934 eval "$3=no"
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1937 $4
1938 int
1939 main ()
1940 {
1941 if (sizeof ($2))
1942 return 0;
1943 ;
1944 return 0;
1945 }
1946 _ACEOF
1947 if ac_fn_c_try_compile "$LINENO"; then :
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1950 $4
1951 int
1952 main ()
1953 {
1954 if (sizeof (($2)))
1955 return 0;
1956 ;
1957 return 0;
1958 }
1959 _ACEOF
1960 if ac_fn_c_try_compile "$LINENO"; then :
1961
1962 else
1963 eval "$3=yes"
1964 fi
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 fi
1969 eval ac_res=\$$3
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973
1974 } # ac_fn_c_check_type
1975 cat >config.log <<_ACEOF
1976 This file contains any messages produced by compilers while
1977 running configure, to aid debugging if configure makes a mistake.
1978
1979 It was created by IML $as_me 1.0.4, which was
1980 generated by GNU Autoconf 2.69. Invocation command line was
1981
1982 $ $0 $@
1983
1984 _ACEOF
1985 exec 5>>config.log
1986 {
1987 cat <<_ASUNAME
1988 ## --------- ##
1989 ## Platform. ##
1990 ## --------- ##
1991
1992 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1993 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1994 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1995 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1996 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1997
1998 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1999 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2000
2001 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2002 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2003 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2004 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2005 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2006 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2007 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2008
2009 _ASUNAME
2010
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014 IFS=$as_save_IFS
2015 test -z "$as_dir" && as_dir=.
2016 $as_echo "PATH: $as_dir"
2017 done
2018 IFS=$as_save_IFS
2019
2020 } >&5
2021
2022 cat >&5 <<_ACEOF
2023
2024
2025 ## ----------- ##
2026 ## Core tests. ##
2027 ## ----------- ##
2028
2029 _ACEOF
2030
2031
2032 # Keep a trace of the command line.
2033 # Strip out --no-create and --no-recursion so they do not pile up.
2034 # Strip out --silent because we don't want to record it for future runs.
2035 # Also quote any args containing shell meta-characters.
2036 # Make two passes to allow for proper duplicate-argument suppression.
2037 ac_configure_args=
2038 ac_configure_args0=
2039 ac_configure_args1=
2040 ac_must_keep_next=false
2041 for ac_pass in 1 2
2042 do
2043 for ac_arg
2044 do
2045 case $ac_arg in
2046 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2048 | -silent | --silent | --silen | --sile | --sil)
2049 continue ;;
2050 *\'*)
2051 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2052 esac
2053 case $ac_pass in
2054 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2055 2)
2056 as_fn_append ac_configure_args1 " '$ac_arg'"
2057 if test $ac_must_keep_next = true; then
2058 ac_must_keep_next=false # Got value, back to normal.
2059 else
2060 case $ac_arg in
2061 *=* | --config-cache | -C | -disable-* | --disable-* \
2062 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2063 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2064 | -with-* | --with-* | -without-* | --without-* | --x)
2065 case "$ac_configure_args0 " in
2066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2067 esac
2068 ;;
2069 -* ) ac_must_keep_next=true ;;
2070 esac
2071 fi
2072 as_fn_append ac_configure_args " '$ac_arg'"
2073 ;;
2074 esac
2075 done
2076 done
2077 { ac_configure_args0=; unset ac_configure_args0;}
2078 { ac_configure_args1=; unset ac_configure_args1;}
2079
2080 # When interrupted or exit'd, cleanup temporary files, and complete
2081 # config.log. We remove comments because anyway the quotes in there
2082 # would cause problems or look ugly.
2083 # WARNING: Use '\'' to represent an apostrophe within the trap.
2084 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2085 trap 'exit_status=$?
2086 # Save into config.log some information that might help in debugging.
2087 {
2088 echo
2089
2090 $as_echo "## ---------------- ##
2091 ## Cache variables. ##
2092 ## ---------------- ##"
2093 echo
2094 # The following way of writing the cache mishandles newlines in values,
2095 (
2096 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2097 eval ac_val=\$$ac_var
2098 case $ac_val in #(
2099 *${as_nl}*)
2100 case $ac_var in #(
2101 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2102 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2103 esac
2104 case $ac_var in #(
2105 _ | IFS | as_nl) ;; #(
2106 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2107 *) { eval $ac_var=; unset $ac_var;} ;;
2108 esac ;;
2109 esac
2110 done
2111 (set) 2>&1 |
2112 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2113 *${as_nl}ac_space=\ *)
2114 sed -n \
2115 "s/'\''/'\''\\\\'\'''\''/g;
2116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2117 ;; #(
2118 *)
2119 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2120 ;;
2121 esac |
2122 sort
2123 )
2124 echo
2125
2126 $as_echo "## ----------------- ##
2127 ## Output variables. ##
2128 ## ----------------- ##"
2129 echo
2130 for ac_var in $ac_subst_vars
2131 do
2132 eval ac_val=\$$ac_var
2133 case $ac_val in
2134 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2135 esac
2136 $as_echo "$ac_var='\''$ac_val'\''"
2137 done | sort
2138 echo
2139
2140 if test -n "$ac_subst_files"; then
2141 $as_echo "## ------------------- ##
2142 ## File substitutions. ##
2143 ## ------------------- ##"
2144 echo
2145 for ac_var in $ac_subst_files
2146 do
2147 eval ac_val=\$$ac_var
2148 case $ac_val in
2149 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2150 esac
2151 $as_echo "$ac_var='\''$ac_val'\''"
2152 done | sort
2153 echo
2154 fi
2155
2156 if test -s confdefs.h; then
2157 $as_echo "## ----------- ##
2158 ## confdefs.h. ##
2159 ## ----------- ##"
2160 echo
2161 cat confdefs.h
2162 echo
2163 fi
2164 test "$ac_signal" != 0 &&
2165 $as_echo "$as_me: caught signal $ac_signal"
2166 $as_echo "$as_me: exit $exit_status"
2167 } >&5
2168 rm -f core *.core core.conftest.* &&
2169 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2170 exit $exit_status
2171 ' 0
2172 for ac_signal in 1 2 13 15; do
2173 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2174 done
2175 ac_signal=0
2176
2177 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2178 rm -f -r conftest* confdefs.h
2179
2180 $as_echo "/* confdefs.h */" > confdefs.h
2181
2182 # Predefined preprocessor variables.
2183
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_NAME "$PACKAGE_NAME"
2186 _ACEOF
2187
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2190 _ACEOF
2191
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2194 _ACEOF
2195
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_STRING "$PACKAGE_STRING"
2198 _ACEOF
2199
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2202 _ACEOF
2203
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_URL "$PACKAGE_URL"
2206 _ACEOF
2207
2208
2209 # Let the site file select an alternate cache file if it wants to.
2210 # Prefer an explicitly selected file to automatically selected ones.
2211 ac_site_file1=NONE
2212 ac_site_file2=NONE
2213 if test -n "$CONFIG_SITE"; then
2214 # We do not want a PATH search for config.site.
2215 case $CONFIG_SITE in #((
2216 -*) ac_site_file1=./$CONFIG_SITE;;
2217 */*) ac_site_file1=$CONFIG_SITE;;
2218 *) ac_site_file1=./$CONFIG_SITE;;
2219 esac
2220 elif test "x$prefix" != xNONE; then
2221 ac_site_file1=$prefix/share/config.site
2222 ac_site_file2=$prefix/etc/config.site
2223 else
2224 ac_site_file1=$ac_default_prefix/share/config.site
2225 ac_site_file2=$ac_default_prefix/etc/config.site
2226 fi
2227 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2228 do
2229 test "x$ac_site_file" = xNONE && continue
2230 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2232 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2233 sed 's/^/| /' "$ac_site_file" >&5
2234 . "$ac_site_file" \
2235 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2237 as_fn_error $? "failed to load site script $ac_site_file
2238 See \`config.log' for more details" "$LINENO" 5; }
2239 fi
2240 done
2241
2242 if test -r "$cache_file"; then
2243 # Some versions of bash will fail to source /dev/null (special files
2244 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2245 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2247 $as_echo "$as_me: loading cache $cache_file" >&6;}
2248 case $cache_file in
2249 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2250 *) . "./$cache_file";;
2251 esac
2252 fi
2253 else
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2255 $as_echo "$as_me: creating cache $cache_file" >&6;}
2256 >$cache_file
2257 fi
2258
2259 # Check that the precious variables saved in the cache have kept the same
2260 # value.
2261 ac_cache_corrupted=false
2262 for ac_var in $ac_precious_vars; do
2263 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2264 eval ac_new_set=\$ac_env_${ac_var}_set
2265 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2266 eval ac_new_val=\$ac_env_${ac_var}_value
2267 case $ac_old_set,$ac_new_set in
2268 set,)
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2270 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2271 ac_cache_corrupted=: ;;
2272 ,set)
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2274 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2275 ac_cache_corrupted=: ;;
2276 ,);;
2277 *)
2278 if test "x$ac_old_val" != "x$ac_new_val"; then
2279 # differences in whitespace do not lead to failure.
2280 ac_old_val_w=`echo x $ac_old_val`
2281 ac_new_val_w=`echo x $ac_new_val`
2282 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2284 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2285 ac_cache_corrupted=:
2286 else
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2288 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2289 eval $ac_var=\$ac_old_val
2290 fi
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2292 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2294 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2295 fi;;
2296 esac
2297 # Pass precious variables to config.status.
2298 if test "$ac_new_set" = set; then
2299 case $ac_new_val in
2300 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2301 *) ac_arg=$ac_var=$ac_new_val ;;
2302 esac
2303 case " $ac_configure_args " in
2304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2305 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2306 esac
2307 fi
2308 done
2309 if $ac_cache_corrupted; then
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2313 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2314 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2315 fi
2316 ## -------------------- ##
2317 ## Main body of script. ##
2318 ## -------------------- ##
2319
2320 ac_ext=c
2321 ac_cpp='$CPP $CPPFLAGS'
2322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2325
2326
2327
2328 ac_config_headers="$ac_config_headers config.h:config-h.in"
2329
2330
2331 am__api_version='1.12'
2332
2333 ac_aux_dir=
2334 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2335 if test -f "$ac_dir/install-sh"; then
2336 ac_aux_dir=$ac_dir
2337 ac_install_sh="$ac_aux_dir/install-sh -c"
2338 break
2339 elif test -f "$ac_dir/install.sh"; then
2340 ac_aux_dir=$ac_dir
2341 ac_install_sh="$ac_aux_dir/install.sh -c"
2342 break
2343 elif test -f "$ac_dir/shtool"; then
2344 ac_aux_dir=$ac_dir
2345 ac_install_sh="$ac_aux_dir/shtool install -c"
2346 break
2347 fi
2348 done
2349 if test -z "$ac_aux_dir"; then
2350 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2351 fi
2352
2353 # These three variables are undocumented and unsupported,
2354 # and are intended to be withdrawn in a future Autoconf release.
2355 # They can cause serious problems if a builder's source tree is in a directory
2356 # whose full name contains unusual characters.
2357 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2358 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2359 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2360
2361
2362 # Find a good install program. We prefer a C program (faster),
2363 # so one script is as good as another. But avoid the broken or
2364 # incompatible versions:
2365 # SysV /etc/install, /usr/sbin/install
2366 # SunOS /usr/etc/install
2367 # IRIX /sbin/install
2368 # AIX /bin/install
2369 # AmigaOS /C/install, which installs bootblocks on floppy discs
2370 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2371 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2372 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2373 # OS/2's system install, which has a completely different semantic
2374 # ./install, which can be erroneously created by make from ./install.sh.
2375 # Reject install programs that cannot install multiple files.
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2377 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2378 if test -z "$INSTALL"; then
2379 if ${ac_cv_path_install+:} false; then :
2380 $as_echo_n "(cached) " >&6
2381 else
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH
2384 do
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 # Account for people who put trailing slashes in PATH elements.
2388 case $as_dir/ in #((
2389 ./ | .// | /[cC]/* | \
2390 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2391 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2392 /usr/ucb/* ) ;;
2393 *)
2394 # OSF1 and SCO ODT 3.0 have their own names for install.
2395 # Don't use installbsd from OSF since it installs stuff as root
2396 # by default.
2397 for ac_prog in ginstall scoinst install; do
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2400 if test $ac_prog = install &&
2401 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2402 # AIX install. It has an incompatible calling convention.
2403 :
2404 elif test $ac_prog = install &&
2405 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2406 # program-specific install script used by HP pwplus--don't use.
2407 :
2408 else
2409 rm -rf conftest.one conftest.two conftest.dir
2410 echo one > conftest.one
2411 echo two > conftest.two
2412 mkdir conftest.dir
2413 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2414 test -s conftest.one && test -s conftest.two &&
2415 test -s conftest.dir/conftest.one &&
2416 test -s conftest.dir/conftest.two
2417 then
2418 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2419 break 3
2420 fi
2421 fi
2422 fi
2423 done
2424 done
2425 ;;
2426 esac
2427
2428 done
2429 IFS=$as_save_IFS
2430
2431 rm -rf conftest.one conftest.two conftest.dir
2432
2433 fi
2434 if test "${ac_cv_path_install+set}" = set; then
2435 INSTALL=$ac_cv_path_install
2436 else
2437 # As a last resort, use the slow shell script. Don't cache a
2438 # value for INSTALL within a source directory, because that will
2439 # break other packages using the cache if that directory is
2440 # removed, or if the value is a relative name.
2441 INSTALL=$ac_install_sh
2442 fi
2443 fi
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2445 $as_echo "$INSTALL" >&6; }
2446
2447 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2448 # It thinks the first close brace ends the variable substitution.
2449 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2450
2451 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2452
2453 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2454
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2456 $as_echo_n "checking whether build environment is sane... " >&6; }
2457 # Reject unsafe characters in $srcdir or the absolute working directory
2458 # name. Accept space and tab only in the latter.
2459 am_lf='
2460 '
2461 case `pwd` in
2462 *[\\\"\#\$\&\'\`$am_lf]*)
2463 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2464 esac
2465 case $srcdir in
2466 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2467 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2468 esac
2469
2470 # Do 'set' in a subshell so we don't clobber the current shell's
2471 # arguments. Must try -L first in case configure is actually a
2472 # symlink; some systems play weird games with the mod time of symlinks
2473 # (eg FreeBSD returns the mod time of the symlink's containing
2474 # directory).
2475 if (
2476 am_has_slept=no
2477 for am_try in 1 2; do
2478 echo "timestamp, slept: $am_has_slept" > conftest.file
2479 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2480 if test "$*" = "X"; then
2481 # -L didn't work.
2482 set X `ls -t "$srcdir/configure" conftest.file`
2483 fi
2484 if test "$*" != "X $srcdir/configure conftest.file" \
2485 && test "$*" != "X conftest.file $srcdir/configure"; then
2486
2487 # If neither matched, then we have a broken ls. This can happen
2488 # if, for instance, CONFIG_SHELL is bash and it inherits a
2489 # broken ls alias from the environment. This has actually
2490 # happened. Such a system could not be considered "sane".
2491 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2492 alias in your environment" "$LINENO" 5
2493 fi
2494 if test "$2" = conftest.file || test $am_try -eq 2; then
2495 break
2496 fi
2497 # Just in case.
2498 sleep 1
2499 am_has_slept=yes
2500 done
2501 test "$2" = conftest.file
2502 )
2503 then
2504 # Ok.
2505 :
2506 else
2507 as_fn_error $? "newly created file is older than distributed files!
2508 Check your system clock" "$LINENO" 5
2509 fi
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2511 $as_echo "yes" >&6; }
2512 # If we didn't sleep, we still need to ensure time stamps of config.status and
2513 # generated files are strictly newer.
2514 am_sleep_pid=
2515 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2516 ( sleep 1 ) &
2517 am_sleep_pid=$!
2518 fi
2519
2520 rm -f conftest.file
2521
2522 test "$program_prefix" != NONE &&
2523 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2524 # Use a double $ so make ignores it.
2525 test "$program_suffix" != NONE &&
2526 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2527 # Double any \ or $.
2528 # By default was `s,x,x', remove it if useless.
2529 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2530 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2531
2532 # expand $ac_aux_dir to an absolute path
2533 am_aux_dir=`cd $ac_aux_dir && pwd`
2534
2535 if test x"${MISSING+set}" != xset; then
2536 case $am_aux_dir in
2537 *\ * | *\ *)
2538 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2539 *)
2540 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2541 esac
2542 fi
2543 # Use eval to expand $SHELL
2544 if eval "$MISSING --run true"; then
2545 am_missing_run="$MISSING --run "
2546 else
2547 am_missing_run=
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2549 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2550 fi
2551
2552 if test x"${install_sh}" != xset; then
2553 case $am_aux_dir in
2554 *\ * | *\ *)
2555 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2556 *)
2557 install_sh="\${SHELL} $am_aux_dir/install-sh"
2558 esac
2559 fi
2560
2561 # Installed binaries are usually stripped using 'strip' when the user
2562 # run "make install-strip". However 'strip' might not be the right
2563 # tool to use in cross-compilation environments, therefore Automake
2564 # will honor the 'STRIP' environment variable to overrule this program.
2565 if test "$cross_compiling" != no; then
2566 if test -n "$ac_tool_prefix"; then
2567 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2568 set dummy ${ac_tool_prefix}strip; ac_word=$2
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2570 $as_echo_n "checking for $ac_word... " >&6; }
2571 if ${ac_cv_prog_STRIP+:} false; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 if test -n "$STRIP"; then
2575 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2576 else
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH
2579 do
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2584 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 break 2
2587 fi
2588 done
2589 done
2590 IFS=$as_save_IFS
2591
2592 fi
2593 fi
2594 STRIP=$ac_cv_prog_STRIP
2595 if test -n "$STRIP"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2597 $as_echo "$STRIP" >&6; }
2598 else
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600 $as_echo "no" >&6; }
2601 fi
2602
2603
2604 fi
2605 if test -z "$ac_cv_prog_STRIP"; then
2606 ac_ct_STRIP=$STRIP
2607 # Extract the first word of "strip", so it can be a program name with args.
2608 set dummy strip; ac_word=$2
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2610 $as_echo_n "checking for $ac_word... " >&6; }
2611 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2612 $as_echo_n "(cached) " >&6
2613 else
2614 if test -n "$ac_ct_STRIP"; then
2615 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2616 else
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2619 do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2624 ac_cv_prog_ac_ct_STRIP="strip"
2625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 break 2
2627 fi
2628 done
2629 done
2630 IFS=$as_save_IFS
2631
2632 fi
2633 fi
2634 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2635 if test -n "$ac_ct_STRIP"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2637 $as_echo "$ac_ct_STRIP" >&6; }
2638 else
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2640 $as_echo "no" >&6; }
2641 fi
2642
2643 if test "x$ac_ct_STRIP" = x; then
2644 STRIP=":"
2645 else
2646 case $cross_compiling:$ac_tool_warned in
2647 yes:)
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2650 ac_tool_warned=yes ;;
2651 esac
2652 STRIP=$ac_ct_STRIP
2653 fi
2654 else
2655 STRIP="$ac_cv_prog_STRIP"
2656 fi
2657
2658 fi
2659 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2660
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2662 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2663 if test -z "$MKDIR_P"; then
2664 if ${ac_cv_path_mkdir+:} false; then :
2665 $as_echo_n "(cached) " >&6
2666 else
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2669 do
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 for ac_prog in mkdir gmkdir; do
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2675 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2676 'mkdir (GNU coreutils) '* | \
2677 'mkdir (coreutils) '* | \
2678 'mkdir (fileutils) '4.1*)
2679 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2680 break 3;;
2681 esac
2682 done
2683 done
2684 done
2685 IFS=$as_save_IFS
2686
2687 fi
2688
2689 test -d ./--version && rmdir ./--version
2690 if test "${ac_cv_path_mkdir+set}" = set; then
2691 MKDIR_P="$ac_cv_path_mkdir -p"
2692 else
2693 # As a last resort, use the slow shell script. Don't cache a
2694 # value for MKDIR_P within a source directory, because that will
2695 # break other packages using the cache if that directory is
2696 # removed, or if the value is a relative name.
2697 MKDIR_P="$ac_install_sh -d"
2698 fi
2699 fi
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2701 $as_echo "$MKDIR_P" >&6; }
2702
2703 for ac_prog in gawk mawk nawk awk
2704 do
2705 # Extract the first word of "$ac_prog", so it can be a program name with args.
2706 set dummy $ac_prog; ac_word=$2
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708 $as_echo_n "checking for $ac_word... " >&6; }
2709 if ${ac_cv_prog_AWK+:} false; then :
2710 $as_echo_n "(cached) " >&6
2711 else
2712 if test -n "$AWK"; then
2713 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2714 else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2717 do
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2722 ac_cv_prog_AWK="$ac_prog"
2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 break 2
2725 fi
2726 done
2727 done
2728 IFS=$as_save_IFS
2729
2730 fi
2731 fi
2732 AWK=$ac_cv_prog_AWK
2733 if test -n "$AWK"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2735 $as_echo "$AWK" >&6; }
2736 else
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2739 fi
2740
2741
2742 test -n "$AWK" && break
2743 done
2744
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2746 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2747 set x ${MAKE-make}
2748 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2749 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2750 $as_echo_n "(cached) " >&6
2751 else
2752 cat >conftest.make <<\_ACEOF
2753 SHELL = /bin/sh
2754 all:
2755 @echo '@@@%%%=$(MAKE)=@@@%%%'
2756 _ACEOF
2757 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2758 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2759 *@@@%%%=?*=@@@%%%*)
2760 eval ac_cv_prog_make_${ac_make}_set=yes;;
2761 *)
2762 eval ac_cv_prog_make_${ac_make}_set=no;;
2763 esac
2764 rm -f conftest.make
2765 fi
2766 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2768 $as_echo "yes" >&6; }
2769 SET_MAKE=
2770 else
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772 $as_echo "no" >&6; }
2773 SET_MAKE="MAKE=${MAKE-make}"
2774 fi
2775
2776 rm -rf .tst 2>/dev/null
2777 mkdir .tst 2>/dev/null
2778 if test -d .tst; then
2779 am__leading_dot=.
2780 else
2781 am__leading_dot=_
2782 fi
2783 rmdir .tst 2>/dev/null
2784
2785 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2786 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2787 # is not polluted with repeated "-I."
2788 am__isrc=' -I$(srcdir)'
2789 # test to see if srcdir already configured
2790 if test -f $srcdir/config.status; then
2791 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2792 fi
2793 fi
2794
2795 # test whether we have cygpath
2796 if test -z "$CYGPATH_W"; then
2797 if (cygpath --version) >/dev/null 2>/dev/null; then
2798 CYGPATH_W='cygpath -w'
2799 else
2800 CYGPATH_W=echo
2801 fi
2802 fi
2803
2804
2805 # Define the identity of the package.
2806 PACKAGE='iml'
2807 VERSION='1.0.4'
2808
2809
2810 cat >>confdefs.h <<_ACEOF
2811 #define PACKAGE "$PACKAGE"
2812 _ACEOF
2813
2814
2815 cat >>confdefs.h <<_ACEOF
2816 #define VERSION "$VERSION"
2817 _ACEOF
2818
2819 # Some tools Automake needs.
2820
2821 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2822
2823
2824 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2825
2826
2827 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2828
2829
2830 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2831
2832
2833 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2834
2835 # For better backward compatibility. To be removed once Automake 1.9.x
2836 # dies out for good. For more background, see:
2837 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2838 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2839 mkdir_p='$(MKDIR_P)'
2840
2841 # We need awk for the "check" target. The system "awk" is bad on
2842 # some platforms.
2843 # Always define AMTAR for backward compatibility. Yes, it's still used
2844 # in the wild :-( We should find a proper way to deprecate it ...
2845 AMTAR='$${TAR-tar}'
2846
2847 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2848
2849
2850
2851
2852
2853
2854 # Adds special linker flag for icc
2855 case "x$CC" in
2856 x*icc) LDFLAGS="$LDFLAGS -lm -no_cpprt"
2857 ;;
2858 *) LDFLAGS="$LDFLAGS -lm"
2859 ;;
2860 esac
2861
2862 # Checks for programs.
2863 ac_ext=c
2864 ac_cpp='$CPP $CPPFLAGS'
2865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868 if test -n "$ac_tool_prefix"; then
2869 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2870 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if ${ac_cv_prog_CC+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2889 fi
2890 done
2891 done
2892 IFS=$as_save_IFS
2893
2894 fi
2895 fi
2896 CC=$ac_cv_prog_CC
2897 if test -n "$CC"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
2900 else
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2903 fi
2904
2905
2906 fi
2907 if test -z "$ac_cv_prog_CC"; then
2908 ac_ct_CC=$CC
2909 # Extract the first word of "gcc", so it can be a program name with args.
2910 set dummy gcc; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2914 $as_echo_n "(cached) " >&6
2915 else
2916 if test -n "$ac_ct_CC"; then
2917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_ac_ct_CC="gcc"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2929 fi
2930 done
2931 done
2932 IFS=$as_save_IFS
2933
2934 fi
2935 fi
2936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2937 if test -n "$ac_ct_CC"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2939 $as_echo "$ac_ct_CC" >&6; }
2940 else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2943 fi
2944
2945 if test "x$ac_ct_CC" = x; then
2946 CC=""
2947 else
2948 case $cross_compiling:$ac_tool_warned in
2949 yes:)
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2952 ac_tool_warned=yes ;;
2953 esac
2954 CC=$ac_ct_CC
2955 fi
2956 else
2957 CC="$ac_cv_prog_CC"
2958 fi
2959
2960 if test -z "$CC"; then
2961 if test -n "$ac_tool_prefix"; then
2962 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}cc; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if ${ac_cv_prog_CC+:} false; then :
2967 $as_echo_n "(cached) " >&6
2968 else
2969 if test -n "$CC"; then
2970 ac_cv_prog_CC="$CC" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979 ac_cv_prog_CC="${ac_tool_prefix}cc"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 break 2
2982 fi
2983 done
2984 done
2985 IFS=$as_save_IFS
2986
2987 fi
2988 fi
2989 CC=$ac_cv_prog_CC
2990 if test -n "$CC"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2992 $as_echo "$CC" >&6; }
2993 else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2996 fi
2997
2998
2999 fi
3000 fi
3001 if test -z "$CC"; then
3002 # Extract the first word of "cc", so it can be a program name with args.
3003 set dummy cc; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_CC+:} false; then :
3007 $as_echo_n "(cached) " >&6
3008 else
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3011 else
3012 ac_prog_rejected=no
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3015 do
3016 IFS=$as_save_IFS
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3021 ac_prog_rejected=yes
3022 continue
3023 fi
3024 ac_cv_prog_CC="cc"
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3027 fi
3028 done
3029 done
3030 IFS=$as_save_IFS
3031
3032 if test $ac_prog_rejected = yes; then
3033 # We found a bogon in the path, so make sure we never use it.
3034 set dummy $ac_cv_prog_CC
3035 shift
3036 if test $# != 0; then
3037 # We chose a different compiler from the bogus one.
3038 # However, it has the same basename, so the bogon will be chosen
3039 # first if we set CC to just the basename; use the full file name.
3040 shift
3041 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3042 fi
3043 fi
3044 fi
3045 fi
3046 CC=$ac_cv_prog_CC
3047 if test -n "$CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049 $as_echo "$CC" >&6; }
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 fi
3054
3055
3056 fi
3057 if test -z "$CC"; then
3058 if test -n "$ac_tool_prefix"; then
3059 for ac_prog in cl.exe
3060 do
3061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_CC+:} false; then :
3066 $as_echo_n "(cached) " >&6
3067 else
3068 if test -n "$CC"; then
3069 ac_cv_prog_CC="$CC" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3081 fi
3082 done
3083 done
3084 IFS=$as_save_IFS
3085
3086 fi
3087 fi
3088 CC=$ac_cv_prog_CC
3089 if test -n "$CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3092 else
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3095 fi
3096
3097
3098 test -n "$CC" && break
3099 done
3100 fi
3101 if test -z "$CC"; then
3102 ac_ct_CC=$CC
3103 for ac_prog in cl.exe
3104 do
3105 # Extract the first word of "$ac_prog", so it can be a program name with args.
3106 set dummy $ac_prog; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3110 $as_echo_n "(cached) " >&6
3111 else
3112 if test -n "$ac_ct_CC"; then
3113 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3117 do
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122 ac_cv_prog_ac_ct_CC="$ac_prog"
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 break 2
3125 fi
3126 done
3127 done
3128 IFS=$as_save_IFS
3129
3130 fi
3131 fi
3132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3133 if test -n "$ac_ct_CC"; then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3135 $as_echo "$ac_ct_CC" >&6; }
3136 else
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3139 fi
3140
3141
3142 test -n "$ac_ct_CC" && break
3143 done
3144
3145 if test "x$ac_ct_CC" = x; then
3146 CC=""
3147 else
3148 case $cross_compiling:$ac_tool_warned in
3149 yes:)
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152 ac_tool_warned=yes ;;
3153 esac
3154 CC=$ac_ct_CC
3155 fi
3156 fi
3157
3158 fi
3159
3160
3161 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163 as_fn_error $? "no acceptable C compiler found in \$PATH
3164 See \`config.log' for more details" "$LINENO" 5; }
3165
3166 # Provide some information about the compiler.
3167 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3168 set X $ac_compile
3169 ac_compiler=$2
3170 for ac_option in --version -v -V -qversion; do
3171 { { ac_try="$ac_compiler $ac_option >&5"
3172 case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175 esac
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 $as_echo "$ac_try_echo"; } >&5
3178 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3179 ac_status=$?
3180 if test -s conftest.err; then
3181 sed '10a\
3182 ... rest of stderr output deleted ...
3183 10q' conftest.err >conftest.er1
3184 cat conftest.er1 >&5
3185 fi
3186 rm -f conftest.er1 conftest.err
3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188 test $ac_status = 0; }
3189 done
3190
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3193
3194 int
3195 main ()
3196 {
3197
3198 ;
3199 return 0;
3200 }
3201 _ACEOF
3202 ac_clean_files_save=$ac_clean_files
3203 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3204 # Try to create an executable without -o first, disregard a.out.
3205 # It will help us diagnose broken compilers, and finding out an intuition
3206 # of exeext.
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3208 $as_echo_n "checking whether the C compiler works... " >&6; }
3209 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3210
3211 # The possible output files:
3212 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3213
3214 ac_rmfiles=
3215 for ac_file in $ac_files
3216 do
3217 case $ac_file in
3218 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3219 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3220 esac
3221 done
3222 rm -f $ac_rmfiles
3223
3224 if { { ac_try="$ac_link_default"
3225 case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_link_default") 2>&5
3232 ac_status=$?
3233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234 test $ac_status = 0; }; then :
3235 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3236 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3237 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3238 # so that the user can short-circuit this test for compilers unknown to
3239 # Autoconf.
3240 for ac_file in $ac_files ''
3241 do
3242 test -f "$ac_file" || continue
3243 case $ac_file in
3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3245 ;;
3246 [ab].out )
3247 # We found the default executable, but exeext='' is most
3248 # certainly right.
3249 break;;
3250 *.* )
3251 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3252 then :; else
3253 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3254 fi
3255 # We set ac_cv_exeext here because the later test for it is not
3256 # safe: cross compilers may not add the suffix if given an `-o'
3257 # argument, so we may need to know it at that point already.
3258 # Even if this section looks crufty: it has the advantage of
3259 # actually working.
3260 break;;
3261 * )
3262 break;;
3263 esac
3264 done
3265 test "$ac_cv_exeext" = no && ac_cv_exeext=
3266
3267 else
3268 ac_file=''
3269 fi
3270 if test -z "$ac_file"; then :
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 $as_echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3275
3276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278 as_fn_error 77 "C compiler cannot create executables
3279 See \`config.log' for more details" "$LINENO" 5; }
3280 else
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282 $as_echo "yes" >&6; }
3283 fi
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3285 $as_echo_n "checking for C compiler default output file name... " >&6; }
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3287 $as_echo "$ac_file" >&6; }
3288 ac_exeext=$ac_cv_exeext
3289
3290 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3291 ac_clean_files=$ac_clean_files_save
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3293 $as_echo_n "checking for suffix of executables... " >&6; }
3294 if { { ac_try="$ac_link"
3295 case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298 esac
3299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300 $as_echo "$ac_try_echo"; } >&5
3301 (eval "$ac_link") 2>&5
3302 ac_status=$?
3303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }; then :
3305 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3306 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3307 # work properly (i.e., refer to `conftest.exe'), while it won't with
3308 # `rm'.
3309 for ac_file in conftest.exe conftest conftest.*; do
3310 test -f "$ac_file" || continue
3311 case $ac_file in
3312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3314 break;;
3315 * ) break;;
3316 esac
3317 done
3318 else
3319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3322 See \`config.log' for more details" "$LINENO" 5; }
3323 fi
3324 rm -f conftest conftest$ac_cv_exeext
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3326 $as_echo "$ac_cv_exeext" >&6; }
3327
3328 rm -f conftest.$ac_ext
3329 EXEEXT=$ac_cv_exeext
3330 ac_exeext=$EXEEXT
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3333 #include <stdio.h>
3334 int
3335 main ()
3336 {
3337 FILE *f = fopen ("conftest.out", "w");
3338 return ferror (f) || fclose (f) != 0;
3339
3340 ;
3341 return 0;
3342 }
3343 _ACEOF
3344 ac_clean_files="$ac_clean_files conftest.out"
3345 # Check that the compiler produces executables we can run. If not, either
3346 # the compiler is broken, or we cross compile.
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3348 $as_echo_n "checking whether we are cross compiling... " >&6; }
3349 if test "$cross_compiling" != yes; then
3350 { { ac_try="$ac_link"
3351 case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354 esac
3355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356 $as_echo "$ac_try_echo"; } >&5
3357 (eval "$ac_link") 2>&5
3358 ac_status=$?
3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360 test $ac_status = 0; }
3361 if { ac_try='./conftest$ac_cv_exeext'
3362 { { case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367 $as_echo "$ac_try_echo"; } >&5
3368 (eval "$ac_try") 2>&5
3369 ac_status=$?
3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371 test $ac_status = 0; }; }; then
3372 cross_compiling=no
3373 else
3374 if test "$cross_compiling" = maybe; then
3375 cross_compiling=yes
3376 else
3377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379 as_fn_error $? "cannot run C compiled programs.
3380 If you meant to cross compile, use \`--host'.
3381 See \`config.log' for more details" "$LINENO" 5; }
3382 fi
3383 fi
3384 fi
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3386 $as_echo "$cross_compiling" >&6; }
3387
3388 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3389 ac_clean_files=$ac_clean_files_save
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3391 $as_echo_n "checking for suffix of object files... " >&6; }
3392 if ${ac_cv_objext+:} false; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3397
3398 int
3399 main ()
3400 {
3401
3402 ;
3403 return 0;
3404 }
3405 _ACEOF
3406 rm -f conftest.o conftest.obj
3407 if { { ac_try="$ac_compile"
3408 case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411 esac
3412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413 $as_echo "$ac_try_echo"; } >&5
3414 (eval "$ac_compile") 2>&5
3415 ac_status=$?
3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }; then :
3418 for ac_file in conftest.o conftest.obj conftest.*; do
3419 test -f "$ac_file" || continue;
3420 case $ac_file in
3421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3422 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3423 break;;
3424 esac
3425 done
3426 else
3427 $as_echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error $? "cannot compute suffix of object files: cannot compile
3433 See \`config.log' for more details" "$LINENO" 5; }
3434 fi
3435 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3436 fi
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3438 $as_echo "$ac_cv_objext" >&6; }
3439 OBJEXT=$ac_cv_objext
3440 ac_objext=$OBJEXT
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3442 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3443 if ${ac_cv_c_compiler_gnu+:} false; then :
3444 $as_echo_n "(cached) " >&6
3445 else
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3448
3449 int
3450 main ()
3451 {
3452 #ifndef __GNUC__
3453 choke me
3454 #endif
3455
3456 ;
3457 return 0;
3458 }
3459 _ACEOF
3460 if ac_fn_c_try_compile "$LINENO"; then :
3461 ac_compiler_gnu=yes
3462 else
3463 ac_compiler_gnu=no
3464 fi
3465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3467
3468 fi
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3470 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3471 if test $ac_compiler_gnu = yes; then
3472 GCC=yes
3473 else
3474 GCC=
3475 fi
3476 ac_test_CFLAGS=${CFLAGS+set}
3477 ac_save_CFLAGS=$CFLAGS
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3479 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3480 if ${ac_cv_prog_cc_g+:} false; then :
3481 $as_echo_n "(cached) " >&6
3482 else
3483 ac_save_c_werror_flag=$ac_c_werror_flag
3484 ac_c_werror_flag=yes
3485 ac_cv_prog_cc_g=no
3486 CFLAGS="-g"
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3489
3490 int
3491 main ()
3492 {
3493
3494 ;
3495 return 0;
3496 }
3497 _ACEOF
3498 if ac_fn_c_try_compile "$LINENO"; then :
3499 ac_cv_prog_cc_g=yes
3500 else
3501 CFLAGS=""
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3504
3505 int
3506 main ()
3507 {
3508
3509 ;
3510 return 0;
3511 }
3512 _ACEOF
3513 if ac_fn_c_try_compile "$LINENO"; then :
3514
3515 else
3516 ac_c_werror_flag=$ac_save_c_werror_flag
3517 CFLAGS="-g"
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3520
3521 int
3522 main ()
3523 {
3524
3525 ;
3526 return 0;
3527 }
3528 _ACEOF
3529 if ac_fn_c_try_compile "$LINENO"; then :
3530 ac_cv_prog_cc_g=yes
3531 fi
3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533 fi
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535 fi
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537 ac_c_werror_flag=$ac_save_c_werror_flag
3538 fi
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3540 $as_echo "$ac_cv_prog_cc_g" >&6; }
3541 if test "$ac_test_CFLAGS" = set; then
3542 CFLAGS=$ac_save_CFLAGS
3543 elif test $ac_cv_prog_cc_g = yes; then
3544 if test "$GCC" = yes; then
3545 CFLAGS="-g -O2"
3546 else
3547 CFLAGS="-g"
3548 fi
3549 else
3550 if test "$GCC" = yes; then
3551 CFLAGS="-O2"
3552 else
3553 CFLAGS=
3554 fi
3555 fi
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3557 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3558 if ${ac_cv_prog_cc_c89+:} false; then :
3559 $as_echo_n "(cached) " >&6
3560 else
3561 ac_cv_prog_cc_c89=no
3562 ac_save_CC=$CC
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3565 #include <stdarg.h>
3566 #include <stdio.h>
3567 struct stat;
3568 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3569 struct buf { int x; };
3570 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3571 static char *e (p, i)
3572 char **p;
3573 int i;
3574 {
3575 return p[i];
3576 }
3577 static char *f (char * (*g) (char **, int), char **p, ...)
3578 {
3579 char *s;
3580 va_list v;
3581 va_start (v,p);
3582 s = g (p, va_arg (v,int));
3583 va_end (v);
3584 return s;
3585 }
3586
3587 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3588 function prototypes and stuff, but not '\xHH' hex character constants.
3589 These don't provoke an error unfortunately, instead are silently treated
3590 as 'x'. The following induces an error, until -std is added to get
3591 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3592 array size at least. It's necessary to write '\x00'==0 to get something
3593 that's true only with -std. */
3594 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3595
3596 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3597 inside strings and character constants. */
3598 #define FOO(x) 'x'
3599 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3600
3601 int test (int i, double x);
3602 struct s1 {int (*f) (int a);};
3603 struct s2 {int (*f) (double a);};
3604 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3605 int argc;
3606 char **argv;
3607 int
3608 main ()
3609 {
3610 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3611 ;
3612 return 0;
3613 }
3614 _ACEOF
3615 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3616 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3617 do
3618 CC="$ac_save_CC $ac_arg"
3619 if ac_fn_c_try_compile "$LINENO"; then :
3620 ac_cv_prog_cc_c89=$ac_arg
3621 fi
3622 rm -f core conftest.err conftest.$ac_objext
3623 test "x$ac_cv_prog_cc_c89" != "xno" && break
3624 done
3625 rm -f conftest.$ac_ext
3626 CC=$ac_save_CC
3627
3628 fi
3629 # AC_CACHE_VAL
3630 case "x$ac_cv_prog_cc_c89" in
3631 x)
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3633 $as_echo "none needed" >&6; } ;;
3634 xno)
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3636 $as_echo "unsupported" >&6; } ;;
3637 *)
3638 CC="$CC $ac_cv_prog_cc_c89"
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3640 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3641 esac
3642 if test "x$ac_cv_prog_cc_c89" != xno; then :
3643
3644 fi
3645
3646 ac_ext=c
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651 DEPDIR="${am__leading_dot}deps"
3652
3653 ac_config_commands="$ac_config_commands depfiles"
3654
3655
3656 am_make=${MAKE-make}
3657 cat > confinc << 'END'
3658 am__doit:
3659 @echo this is the am__doit target
3660 .PHONY: am__doit
3661 END
3662 # If we don't find an include directive, just comment out the code.
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3664 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3665 am__include="#"
3666 am__quote=
3667 _am_result=none
3668 # First try GNU make style include.
3669 echo "include confinc" > confmf
3670 # Ignore all kinds of additional output from 'make'.
3671 case `$am_make -s -f confmf 2> /dev/null` in #(
3672 *the\ am__doit\ target*)
3673 am__include=include
3674 am__quote=
3675 _am_result=GNU
3676 ;;
3677 esac
3678 # Now try BSD make style include.
3679 if test "$am__include" = "#"; then
3680 echo '.include "confinc"' > confmf
3681 case `$am_make -s -f confmf 2> /dev/null` in #(
3682 *the\ am__doit\ target*)
3683 am__include=.include
3684 am__quote="\""
3685 _am_result=BSD
3686 ;;
3687 esac
3688 fi
3689
3690
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3692 $as_echo "$_am_result" >&6; }
3693 rm -f confinc confmf
3694
3695 # Check whether --enable-dependency-tracking was given.
3696 if test "${enable_dependency_tracking+set}" = set; then :
3697 enableval=$enable_dependency_tracking;
3698 fi
3699
3700 if test "x$enable_dependency_tracking" != xno; then
3701 am_depcomp="$ac_aux_dir/depcomp"
3702 AMDEPBACKSLASH='\'
3703 am__nodep='_no'
3704 fi
3705 if test "x$enable_dependency_tracking" != xno; then
3706 AMDEP_TRUE=
3707 AMDEP_FALSE='#'
3708 else
3709 AMDEP_TRUE='#'
3710 AMDEP_FALSE=
3711 fi
3712
3713
3714
3715 depcc="$CC" am_compiler_list=
3716
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3718 $as_echo_n "checking dependency style of $depcc... " >&6; }
3719 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3720 $as_echo_n "(cached) " >&6
3721 else
3722 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3723 # We make a subdir and do the tests there. Otherwise we can end up
3724 # making bogus files that we don't know about and never remove. For
3725 # instance it was reported that on HP-UX the gcc test will end up
3726 # making a dummy file named 'D' -- because '-MD' means "put the output
3727 # in D".
3728 rm -rf conftest.dir
3729 mkdir conftest.dir
3730 # Copy depcomp to subdir because otherwise we won't find it if we're
3731 # using a relative directory.
3732 cp "$am_depcomp" conftest.dir
3733 cd conftest.dir
3734 # We will build objects and dependencies in a subdirectory because
3735 # it helps to detect inapplicable dependency modes. For instance
3736 # both Tru64's cc and ICC support -MD to output dependencies as a
3737 # side effect of compilation, but ICC will put the dependencies in
3738 # the current directory while Tru64 will put them in the object
3739 # directory.
3740 mkdir sub
3741
3742 am_cv_CC_dependencies_compiler_type=none
3743 if test "$am_compiler_list" = ""; then
3744 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3745 fi
3746 am__universal=false
3747 case " $depcc " in #(
3748 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3749 esac
3750
3751 for depmode in $am_compiler_list; do
3752 # Setup a source with many dependencies, because some compilers
3753 # like to wrap large dependency lists on column 80 (with \), and
3754 # we should not choose a depcomp mode which is confused by this.
3755 #
3756 # We need to recreate these files for each test, as the compiler may
3757 # overwrite some of them when testing with obscure command lines.
3758 # This happens at least with the AIX C compiler.
3759 : > sub/conftest.c
3760 for i in 1 2 3 4 5 6; do
3761 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3762 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3763 # Solaris 10 /bin/sh.
3764 echo '/* dummy */' > sub/conftst$i.h
3765 done
3766 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3767
3768 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3769 # mode. It turns out that the SunPro C++ compiler does not properly
3770 # handle '-M -o', and we need to detect this. Also, some Intel
3771 # versions had trouble with output in subdirs.
3772 am__obj=sub/conftest.${OBJEXT-o}
3773 am__minus_obj="-o $am__obj"
3774 case $depmode in
3775 gcc)
3776 # This depmode causes a compiler race in universal mode.
3777 test "$am__universal" = false || continue
3778 ;;
3779 nosideeffect)
3780 # After this tag, mechanisms are not by side-effect, so they'll
3781 # only be used when explicitly requested.
3782 if test "x$enable_dependency_tracking" = xyes; then
3783 continue
3784 else
3785 break
3786 fi
3787 ;;
3788 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3789 # This compiler won't grok '-c -o', but also, the minuso test has
3790 # not run yet. These depmodes are late enough in the game, and
3791 # so weak that their functioning should not be impacted.
3792 am__obj=conftest.${OBJEXT-o}
3793 am__minus_obj=
3794 ;;
3795 none) break ;;
3796 esac
3797 if depmode=$depmode \
3798 source=sub/conftest.c object=$am__obj \
3799 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3800 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3801 >/dev/null 2>conftest.err &&
3802 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3803 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3804 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3805 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3806 # icc doesn't choke on unknown options, it will just issue warnings
3807 # or remarks (even with -Werror). So we grep stderr for any message
3808 # that says an option was ignored or not supported.
3809 # When given -MP, icc 7.0 and 7.1 complain thusly:
3810 # icc: Command line warning: ignoring option '-M'; no argument required
3811 # The diagnosis changed in icc 8.0:
3812 # icc: Command line remark: option '-MP' not supported
3813 if (grep 'ignoring option' conftest.err ||
3814 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3815 am_cv_CC_dependencies_compiler_type=$depmode
3816 break
3817 fi
3818 fi
3819 done
3820
3821 cd ..
3822 rm -rf conftest.dir
3823 else
3824 am_cv_CC_dependencies_compiler_type=none
3825 fi
3826
3827 fi
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3829 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3830 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3831
3832 if
3833 test "x$enable_dependency_tracking" != xno \
3834 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3835 am__fastdepCC_TRUE=
3836 am__fastdepCC_FALSE='#'
3837 else
3838 am__fastdepCC_TRUE='#'
3839 am__fastdepCC_FALSE=
3840 fi
3841
3842
3843 if test "x$CC" != xcc; then
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3845 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3846 else
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3848 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3849 fi
3850 set dummy $CC; ac_cc=`$as_echo "$2" |
3851 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3852 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3853 $as_echo_n "(cached) " >&6
3854 else
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3857
3858 int
3859 main ()
3860 {
3861
3862 ;
3863 return 0;
3864 }
3865 _ACEOF
3866 # Make sure it works both with $CC and with simple cc.
3867 # We do the test twice because some compilers refuse to overwrite an
3868 # existing .o file with -o, though they will create one.
3869 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3870 rm -f conftest2.*
3871 if { { case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874 esac
3875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876 $as_echo "$ac_try_echo"; } >&5
3877 (eval "$ac_try") 2>&5
3878 ac_status=$?
3879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880 test $ac_status = 0; } &&
3881 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884 esac
3885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3886 $as_echo "$ac_try_echo"; } >&5
3887 (eval "$ac_try") 2>&5
3888 ac_status=$?
3889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3890 test $ac_status = 0; };
3891 then
3892 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3893 if test "x$CC" != xcc; then
3894 # Test first that cc exists at all.
3895 if { ac_try='cc -c conftest.$ac_ext >&5'
3896 { { case "(($ac_try" in
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3899 esac
3900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3901 $as_echo "$ac_try_echo"; } >&5
3902 (eval "$ac_try") 2>&5
3903 ac_status=$?
3904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3905 test $ac_status = 0; }; }; then
3906 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3907 rm -f conftest2.*
3908 if { { case "(($ac_try" in
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3911 esac
3912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3913 $as_echo "$ac_try_echo"; } >&5
3914 (eval "$ac_try") 2>&5
3915 ac_status=$?
3916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3917 test $ac_status = 0; } &&
3918 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3920 *) ac_try_echo=$ac_try;;
3921 esac
3922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3923 $as_echo "$ac_try_echo"; } >&5
3924 (eval "$ac_try") 2>&5
3925 ac_status=$?
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; };
3928 then
3929 # cc works too.
3930 :
3931 else
3932 # cc exists but doesn't like -o.
3933 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3934 fi
3935 fi
3936 fi
3937 else
3938 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3939 fi
3940 rm -f core conftest*
3941
3942 fi
3943 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3945 $as_echo "yes" >&6; }
3946 else
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948 $as_echo "no" >&6; }
3949
3950 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3951
3952 fi
3953
3954 # FIXME: we rely on the cache variable name because
3955 # there is no other way.
3956 set dummy $CC
3957 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3958 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3959 if test "$am_t" != yes; then
3960 # Losing compiler, so override with the script.
3961 # FIXME: It is wrong to rewrite CC.
3962 # But if we don't then we get into trouble of one sort or another.
3963 # A longer-term fix would be to have automake use am__CC in this case,
3964 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3965 CC="$am_aux_dir/compile $CC"
3966 fi
3967
3968
3969
3970 # Checks for libraries.
3971
3972
3973 # Checks for header files.
3974
3975 ac_ext=c
3976 ac_cpp='$CPP $CPPFLAGS'
3977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3981 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3982 # On Suns, sometimes $CPP names a directory.
3983 if test -n "$CPP" && test -d "$CPP"; then
3984 CPP=
3985 fi
3986 if test -z "$CPP"; then
3987 if ${ac_cv_prog_CPP+:} false; then :
3988 $as_echo_n "(cached) " >&6
3989 else
3990 # Double quotes because CPP needs to be expanded
3991 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3992 do
3993 ac_preproc_ok=false
3994 for ac_c_preproc_warn_flag in '' yes
3995 do
3996 # Use a header file that comes with gcc, so configuring glibc
3997 # with a fresh cross-compiler works.
3998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3999 # <limits.h> exists even on freestanding compilers.
4000 # On the NeXT, cc -E runs the code through the compiler's parser,
4001 # not just through cpp. "Syntax error" is here to catch this case.
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4004 #ifdef __STDC__
4005 # include <limits.h>
4006 #else
4007 # include <assert.h>
4008 #endif
4009 Syntax error
4010 _ACEOF
4011 if ac_fn_c_try_cpp "$LINENO"; then :
4012
4013 else
4014 # Broken: fails on valid input.
4015 continue
4016 fi
4017 rm -f conftest.err conftest.i conftest.$ac_ext
4018
4019 # OK, works on sane cases. Now check whether nonexistent headers
4020 # can be detected and how.
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4023 #include <ac_nonexistent.h>
4024 _ACEOF
4025 if ac_fn_c_try_cpp "$LINENO"; then :
4026 # Broken: success on invalid input.
4027 continue
4028 else
4029 # Passes both tests.
4030 ac_preproc_ok=:
4031 break
4032 fi
4033 rm -f conftest.err conftest.i conftest.$ac_ext
4034
4035 done
4036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4037 rm -f conftest.i conftest.err conftest.$ac_ext
4038 if $ac_preproc_ok; then :
4039 break
4040 fi
4041
4042 done
4043 ac_cv_prog_CPP=$CPP
4044
4045 fi
4046 CPP=$ac_cv_prog_CPP
4047 else
4048 ac_cv_prog_CPP=$CPP
4049 fi
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4051 $as_echo "$CPP" >&6; }
4052 ac_preproc_ok=false
4053 for ac_c_preproc_warn_flag in '' yes
4054 do
4055 # Use a header file that comes with gcc, so configuring glibc
4056 # with a fresh cross-compiler works.
4057 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4058 # <limits.h> exists even on freestanding compilers.
4059 # On the NeXT, cc -E runs the code through the compiler's parser,
4060 # not just through cpp. "Syntax error" is here to catch this case.
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4063 #ifdef __STDC__
4064 # include <limits.h>
4065 #else
4066 # include <assert.h>
4067 #endif
4068 Syntax error
4069 _ACEOF
4070 if ac_fn_c_try_cpp "$LINENO"; then :
4071
4072 else
4073 # Broken: fails on valid input.
4074 continue
4075 fi
4076 rm -f conftest.err conftest.i conftest.$ac_ext
4077
4078 # OK, works on sane cases. Now check whether nonexistent headers
4079 # can be detected and how.
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4082 #include <ac_nonexistent.h>
4083 _ACEOF
4084 if ac_fn_c_try_cpp "$LINENO"; then :
4085 # Broken: success on invalid input.
4086 continue
4087 else
4088 # Passes both tests.
4089 ac_preproc_ok=:
4090 break
4091 fi
4092 rm -f conftest.err conftest.i conftest.$ac_ext
4093
4094 done
4095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4096 rm -f conftest.i conftest.err conftest.$ac_ext
4097 if $ac_preproc_ok; then :
4098
4099 else
4100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4102 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4103 See \`config.log' for more details" "$LINENO" 5; }
4104 fi
4105
4106 ac_ext=c
4107 ac_cpp='$CPP $CPPFLAGS'
4108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4111
4112
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4114 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4115 if ${ac_cv_path_GREP+:} false; then :
4116 $as_echo_n "(cached) " >&6
4117 else
4118 if test -z "$GREP"; then
4119 ac_path_GREP_found=false
4120 # Loop through the user's path and test for each of PROGNAME-LIST
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4123 do
4124 IFS=$as_save_IFS
4125 test -z "$as_dir" && as_dir=.
4126 for ac_prog in grep ggrep; do
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4129 as_fn_executable_p "$ac_path_GREP" || continue
4130 # Check for GNU ac_path_GREP and select it if it is found.
4131 # Check for GNU $ac_path_GREP
4132 case `"$ac_path_GREP" --version 2>&1` in
4133 *GNU*)
4134 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4135 *)
4136 ac_count=0
4137 $as_echo_n 0123456789 >"conftest.in"
4138 while :
4139 do
4140 cat "conftest.in" "conftest.in" >"conftest.tmp"
4141 mv "conftest.tmp" "conftest.in"
4142 cp "conftest.in" "conftest.nl"
4143 $as_echo 'GREP' >> "conftest.nl"
4144 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4145 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4146 as_fn_arith $ac_count + 1 && ac_count=$as_val
4147 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4148 # Best one so far, save it but keep looking for a better one
4149 ac_cv_path_GREP="$ac_path_GREP"
4150 ac_path_GREP_max=$ac_count
4151 fi
4152 # 10*(2^10) chars as input seems more than enough
4153 test $ac_count -gt 10 && break
4154 done
4155 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4156 esac
4157
4158 $ac_path_GREP_found && break 3
4159 done
4160 done
4161 done
4162 IFS=$as_save_IFS
4163 if test -z "$ac_cv_path_GREP"; then
4164 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4165 fi
4166 else
4167 ac_cv_path_GREP=$GREP
4168 fi
4169
4170 fi
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4172 $as_echo "$ac_cv_path_GREP" >&6; }
4173 GREP="$ac_cv_path_GREP"
4174
4175
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4177 $as_echo_n "checking for egrep... " >&6; }
4178 if ${ac_cv_path_EGREP+:} false; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4182 then ac_cv_path_EGREP="$GREP -E"
4183 else
4184 if test -z "$EGREP"; then
4185 ac_path_EGREP_found=false
4186 # Loop through the user's path and test for each of PROGNAME-LIST
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4189 do
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
4192 for ac_prog in egrep; do
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4195 as_fn_executable_p "$ac_path_EGREP" || continue
4196 # Check for GNU ac_path_EGREP and select it if it is found.
4197 # Check for GNU $ac_path_EGREP
4198 case `"$ac_path_EGREP" --version 2>&1` in
4199 *GNU*)
4200 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4201 *)
4202 ac_count=0
4203 $as_echo_n 0123456789 >"conftest.in"
4204 while :
4205 do
4206 cat "conftest.in" "conftest.in" >"conftest.tmp"
4207 mv "conftest.tmp" "conftest.in"
4208 cp "conftest.in" "conftest.nl"
4209 $as_echo 'EGREP' >> "conftest.nl"
4210 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4211 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4212 as_fn_arith $ac_count + 1 && ac_count=$as_val
4213 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4214 # Best one so far, save it but keep looking for a better one
4215 ac_cv_path_EGREP="$ac_path_EGREP"
4216 ac_path_EGREP_max=$ac_count
4217 fi
4218 # 10*(2^10) chars as input seems more than enough
4219 test $ac_count -gt 10 && break
4220 done
4221 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4222 esac
4223
4224 $ac_path_EGREP_found && break 3
4225 done
4226 done
4227 done
4228 IFS=$as_save_IFS
4229 if test -z "$ac_cv_path_EGREP"; then
4230 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4231 fi
4232 else
4233 ac_cv_path_EGREP=$EGREP
4234 fi
4235
4236 fi
4237 fi
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4239 $as_echo "$ac_cv_path_EGREP" >&6; }
4240 EGREP="$ac_cv_path_EGREP"
4241
4242
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4244 $as_echo_n "checking for ANSI C header files... " >&6; }
4245 if ${ac_cv_header_stdc+:} false; then :
4246 $as_echo_n "(cached) " >&6
4247 else
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4250 #include <stdlib.h>
4251 #include <stdarg.h>
4252 #include <string.h>
4253 #include <float.h>
4254
4255 int
4256 main ()
4257 {
4258
4259 ;
4260 return 0;
4261 }
4262 _ACEOF
4263 if ac_fn_c_try_compile "$LINENO"; then :
4264 ac_cv_header_stdc=yes
4265 else
4266 ac_cv_header_stdc=no
4267 fi
4268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269
4270 if test $ac_cv_header_stdc = yes; then
4271 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4274 #include <string.h>
4275
4276 _ACEOF
4277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4278 $EGREP "memchr" >/dev/null 2>&1; then :
4279
4280 else
4281 ac_cv_header_stdc=no
4282 fi
4283 rm -f conftest*
4284
4285 fi
4286
4287 if test $ac_cv_header_stdc = yes; then
4288 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 /* end confdefs.h. */
4291 #include <stdlib.h>
4292
4293 _ACEOF
4294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4295 $EGREP "free" >/dev/null 2>&1; then :
4296
4297 else
4298 ac_cv_header_stdc=no
4299 fi
4300 rm -f conftest*
4301
4302 fi
4303
4304 if test $ac_cv_header_stdc = yes; then
4305 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4306 if test "$cross_compiling" = yes; then :
4307 :
4308 else
4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310 /* end confdefs.h. */
4311 #include <ctype.h>
4312 #include <stdlib.h>
4313 #if ((' ' & 0x0FF) == 0x020)
4314 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4315 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4316 #else
4317 # define ISLOWER(c) \
4318 (('a' <= (c) && (c) <= 'i') \
4319 || ('j' <= (c) && (c) <= 'r') \
4320 || ('s' <= (c) && (c) <= 'z'))
4321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4322 #endif
4323
4324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4325 int
4326 main ()
4327 {
4328 int i;
4329 for (i = 0; i < 256; i++)
4330 if (XOR (islower (i), ISLOWER (i))
4331 || toupper (i) != TOUPPER (i))
4332 return 2;
4333 return 0;
4334 }
4335 _ACEOF
4336 if ac_fn_c_try_run "$LINENO"; then :
4337
4338 else
4339 ac_cv_header_stdc=no
4340 fi
4341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4342 conftest.$ac_objext conftest.beam conftest.$ac_ext
4343 fi
4344
4345 fi
4346 fi
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4348 $as_echo "$ac_cv_header_stdc" >&6; }
4349 if test $ac_cv_header_stdc = yes; then
4350
4351 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4352
4353 fi
4354
4355
4356 # support windows libraries, disable shared library by default
4357 case `pwd` in
4358 *\ * | *\ *)
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4360 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4361 esac
4362
4363
4364
4365 macro_version='2.4.2'
4366 macro_revision='1.3337'
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380 ltmain="$ac_aux_dir/ltmain.sh"
4381
4382 # Make sure we can run config.sub.
4383 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4384 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4385
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4387 $as_echo_n "checking build system type... " >&6; }
4388 if ${ac_cv_build+:} false; then :
4389 $as_echo_n "(cached) " >&6
4390 else
4391 ac_build_alias=$build_alias
4392 test "x$ac_build_alias" = x &&
4393 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4394 test "x$ac_build_alias" = x &&
4395 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4396 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4397 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4398
4399 fi
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4401 $as_echo "$ac_cv_build" >&6; }
4402 case $ac_cv_build in
4403 *-*-*) ;;
4404 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4405 esac
4406 build=$ac_cv_build
4407 ac_save_IFS=$IFS; IFS='-'
4408 set x $ac_cv_build
4409 shift
4410 build_cpu=$1
4411 build_vendor=$2
4412 shift; shift
4413 # Remember, the first character of IFS is used to create $*,
4414 # except with old shells:
4415 build_os=$*
4416 IFS=$ac_save_IFS
4417 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4418
4419
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4421 $as_echo_n "checking host system type... " >&6; }
4422 if ${ac_cv_host+:} false; then :
4423 $as_echo_n "(cached) " >&6
4424 else
4425 if test "x$host_alias" = x; then
4426 ac_cv_host=$ac_cv_build
4427 else
4428 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4429 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4430 fi
4431
4432 fi
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4434 $as_echo "$ac_cv_host" >&6; }
4435 case $ac_cv_host in
4436 *-*-*) ;;
4437 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4438 esac
4439 host=$ac_cv_host
4440 ac_save_IFS=$IFS; IFS='-'
4441 set x $ac_cv_host
4442 shift
4443 host_cpu=$1
4444 host_vendor=$2
4445 shift; shift
4446 # Remember, the first character of IFS is used to create $*,
4447 # except with old shells:
4448 host_os=$*
4449 IFS=$ac_save_IFS
4450 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4451
4452
4453 # Backslashify metacharacters that are still active within
4454 # double-quoted strings.
4455 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4456
4457 # Same as above, but do not quote variable references.
4458 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4459
4460 # Sed substitution to delay expansion of an escaped shell variable in a
4461 # double_quote_subst'ed string.
4462 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4463
4464 # Sed substitution to delay expansion of an escaped single quote.
4465 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4466
4467 # Sed substitution to avoid accidental globbing in evaled expressions
4468 no_glob_subst='s/\*/\\\*/g'
4469
4470 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4471 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4472 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4473
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4475 $as_echo_n "checking how to print strings... " >&6; }
4476 # Test print first, because it will be a builtin if present.
4477 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4478 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4479 ECHO='print -r --'
4480 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4481 ECHO='printf %s\n'
4482 else
4483 # Use this function as a fallback that always works.
4484 func_fallback_echo ()
4485 {
4486 eval 'cat <<_LTECHO_EOF
4487 $1
4488 _LTECHO_EOF'
4489 }
4490 ECHO='func_fallback_echo'
4491 fi
4492
4493 # func_echo_all arg...
4494 # Invoke $ECHO with all args, space-separated.
4495 func_echo_all ()
4496 {
4497 $ECHO ""
4498 }
4499
4500 case "$ECHO" in
4501 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4502 $as_echo "printf" >&6; } ;;
4503 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4504 $as_echo "print -r" >&6; } ;;
4505 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4506 $as_echo "cat" >&6; } ;;
4507 esac
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4523 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4524 if ${ac_cv_path_SED+:} false; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4528 for ac_i in 1 2 3 4 5 6 7; do
4529 ac_script="$ac_script$as_nl$ac_script"
4530 done
4531 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4532 { ac_script=; unset ac_script;}
4533 if test -z "$SED"; then
4534 ac_path_SED_found=false
4535 # Loop through the user's path and test for each of PROGNAME-LIST
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4538 do
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_prog in sed gsed; do
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4544 as_fn_executable_p "$ac_path_SED" || continue
4545 # Check for GNU ac_path_SED and select it if it is found.
4546 # Check for GNU $ac_path_SED
4547 case `"$ac_path_SED" --version 2>&1` in
4548 *GNU*)
4549 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4550 *)
4551 ac_count=0
4552 $as_echo_n 0123456789 >"conftest.in"
4553 while :
4554 do
4555 cat "conftest.in" "conftest.in" >"conftest.tmp"
4556 mv "conftest.tmp" "conftest.in"
4557 cp "conftest.in" "conftest.nl"
4558 $as_echo '' >> "conftest.nl"
4559 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4560 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4561 as_fn_arith $ac_count + 1 && ac_count=$as_val
4562 if test $ac_count -gt ${ac_path_SED_max-0}; then
4563 # Best one so far, save it but keep looking for a better one
4564 ac_cv_path_SED="$ac_path_SED"
4565 ac_path_SED_max=$ac_count
4566 fi
4567 # 10*(2^10) chars as input seems more than enough
4568 test $ac_count -gt 10 && break
4569 done
4570 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4571 esac
4572
4573 $ac_path_SED_found && break 3
4574 done
4575 done
4576 done
4577 IFS=$as_save_IFS
4578 if test -z "$ac_cv_path_SED"; then
4579 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4580 fi
4581 else
4582 ac_cv_path_SED=$SED
4583 fi
4584
4585 fi
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4587 $as_echo "$ac_cv_path_SED" >&6; }
4588 SED="$ac_cv_path_SED"
4589 rm -f conftest.sed
4590
4591 test -z "$SED" && SED=sed
4592 Xsed="$SED -e 1s/^X//"
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4605 $as_echo_n "checking for fgrep... " >&6; }
4606 if ${ac_cv_path_FGREP+:} false; then :
4607 $as_echo_n "(cached) " >&6
4608 else
4609 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4610 then ac_cv_path_FGREP="$GREP -F"
4611 else
4612 if test -z "$FGREP"; then
4613 ac_path_FGREP_found=false
4614 # Loop through the user's path and test for each of PROGNAME-LIST
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4617 do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_prog in fgrep; do
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4623 as_fn_executable_p "$ac_path_FGREP" || continue
4624 # Check for GNU ac_path_FGREP and select it if it is found.
4625 # Check for GNU $ac_path_FGREP
4626 case `"$ac_path_FGREP" --version 2>&1` in
4627 *GNU*)
4628 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4629 *)
4630 ac_count=0
4631 $as_echo_n 0123456789 >"conftest.in"
4632 while :
4633 do
4634 cat "conftest.in" "conftest.in" >"conftest.tmp"
4635 mv "conftest.tmp" "conftest.in"
4636 cp "conftest.in" "conftest.nl"
4637 $as_echo 'FGREP' >> "conftest.nl"
4638 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4639 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4640 as_fn_arith $ac_count + 1 && ac_count=$as_val
4641 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4642 # Best one so far, save it but keep looking for a better one
4643 ac_cv_path_FGREP="$ac_path_FGREP"
4644 ac_path_FGREP_max=$ac_count
4645 fi
4646 # 10*(2^10) chars as input seems more than enough
4647 test $ac_count -gt 10 && break
4648 done
4649 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4650 esac
4651
4652 $ac_path_FGREP_found && break 3
4653 done
4654 done
4655 done
4656 IFS=$as_save_IFS
4657 if test -z "$ac_cv_path_FGREP"; then
4658 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4659 fi
4660 else
4661 ac_cv_path_FGREP=$FGREP
4662 fi
4663
4664 fi
4665 fi
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4667 $as_echo "$ac_cv_path_FGREP" >&6; }
4668 FGREP="$ac_cv_path_FGREP"
4669
4670
4671 test -z "$GREP" && GREP=grep
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691 # Check whether --with-gnu-ld was given.
4692 if test "${with_gnu_ld+set}" = set; then :
4693 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4694 else
4695 with_gnu_ld=no
4696 fi
4697
4698 ac_prog=ld
4699 if test "$GCC" = yes; then
4700 # Check if gcc -print-prog-name=ld gives a path.
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4702 $as_echo_n "checking for ld used by $CC... " >&6; }
4703 case $host in
4704 *-*-mingw*)
4705 # gcc leaves a trailing carriage return which upsets mingw
4706 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4707 *)
4708 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4709 esac
4710 case $ac_prog in
4711 # Accept absolute paths.
4712 [\\/]* | ?:[\\/]*)
4713 re_direlt='/[^/][^/]*/\.\./'
4714 # Canonicalize the pathname of ld
4715 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4716 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4717 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4718 done
4719 test -z "$LD" && LD="$ac_prog"
4720 ;;
4721 "")
4722 # If it fails, then pretend we aren't using GCC.
4723 ac_prog=ld
4724 ;;
4725 *)
4726 # If it is relative, then search for the first ld in PATH.
4727 with_gnu_ld=unknown
4728 ;;
4729 esac
4730 elif test "$with_gnu_ld" = yes; then
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4732 $as_echo_n "checking for GNU ld... " >&6; }
4733 else
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4735 $as_echo_n "checking for non-GNU ld... " >&6; }
4736 fi
4737 if ${lt_cv_path_LD+:} false; then :
4738 $as_echo_n "(cached) " >&6
4739 else
4740 if test -z "$LD"; then
4741 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4742 for ac_dir in $PATH; do
4743 IFS="$lt_save_ifs"
4744 test -z "$ac_dir" && ac_dir=.
4745 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4746 lt_cv_path_LD="$ac_dir/$ac_prog"
4747 # Check to see if the program is GNU ld. I'd rather use --version,
4748 # but apparently some variants of GNU ld only accept -v.
4749 # Break only if it was the GNU/non-GNU ld that we prefer.
4750 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4751 *GNU* | *'with BFD'*)
4752 test "$with_gnu_ld" != no && break
4753 ;;
4754 *)
4755 test "$with_gnu_ld" != yes && break
4756 ;;
4757 esac
4758 fi
4759 done
4760 IFS="$lt_save_ifs"
4761 else
4762 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4763 fi
4764 fi
4765
4766 LD="$lt_cv_path_LD"
4767 if test -n "$LD"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4769 $as_echo "$LD" >&6; }
4770 else
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4773 fi
4774 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4776 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4777 if ${lt_cv_prog_gnu_ld+:} false; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4781 case `$LD -v 2>&1 </dev/null` in
4782 *GNU* | *'with BFD'*)
4783 lt_cv_prog_gnu_ld=yes
4784 ;;
4785 *)
4786 lt_cv_prog_gnu_ld=no
4787 ;;
4788 esac
4789 fi
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4791 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4792 with_gnu_ld=$lt_cv_prog_gnu_ld
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4803 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4804 if ${lt_cv_path_NM+:} false; then :
4805 $as_echo_n "(cached) " >&6
4806 else
4807 if test -n "$NM"; then
4808 # Let the user override the test.
4809 lt_cv_path_NM="$NM"
4810 else
4811 lt_nm_to_check="${ac_tool_prefix}nm"
4812 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4813 lt_nm_to_check="$lt_nm_to_check nm"
4814 fi
4815 for lt_tmp_nm in $lt_nm_to_check; do
4816 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4817 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4818 IFS="$lt_save_ifs"
4819 test -z "$ac_dir" && ac_dir=.
4820 tmp_nm="$ac_dir/$lt_tmp_nm"
4821 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4822 # Check to see if the nm accepts a BSD-compat flag.
4823 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4824 # nm: unknown option "B" ignored
4825 # Tru64's nm complains that /dev/null is an invalid object file
4826 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4827 */dev/null* | *'Invalid file or object type'*)
4828 lt_cv_path_NM="$tmp_nm -B"
4829 break
4830 ;;
4831 *)
4832 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4833 */dev/null*)
4834 lt_cv_path_NM="$tmp_nm -p"
4835 break
4836 ;;
4837 *)
4838 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4839 continue # so that we can try to find one that supports BSD flags
4840 ;;
4841 esac
4842 ;;
4843 esac
4844 fi
4845 done
4846 IFS="$lt_save_ifs"
4847 done
4848 : ${lt_cv_path_NM=no}
4849 fi
4850 fi
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4852 $as_echo "$lt_cv_path_NM" >&6; }
4853 if test "$lt_cv_path_NM" != "no"; then
4854 NM="$lt_cv_path_NM"
4855 else
4856 # Didn't find any BSD compatible name lister, look for dumpbin.
4857 if test -n "$DUMPBIN"; then :
4858 # Let the user override the test.
4859 else
4860 if test -n "$ac_tool_prefix"; then
4861 for ac_prog in dumpbin "link -dump"
4862 do
4863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4864 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 $as_echo_n "checking for $ac_word... " >&6; }
4867 if ${ac_cv_prog_DUMPBIN+:} false; then :
4868 $as_echo_n "(cached) " >&6
4869 else
4870 if test -n "$DUMPBIN"; then
4871 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4872 else
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4875 do
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4880 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 break 2
4883 fi
4884 done
4885 done
4886 IFS=$as_save_IFS
4887
4888 fi
4889 fi
4890 DUMPBIN=$ac_cv_prog_DUMPBIN
4891 if test -n "$DUMPBIN"; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4893 $as_echo "$DUMPBIN" >&6; }
4894 else
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4897 fi
4898
4899
4900 test -n "$DUMPBIN" && break
4901 done
4902 fi
4903 if test -z "$DUMPBIN"; then
4904 ac_ct_DUMPBIN=$DUMPBIN
4905 for ac_prog in dumpbin "link -dump"
4906 do
4907 # Extract the first word of "$ac_prog", so it can be a program name with args.
4908 set dummy $ac_prog; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 if test -n "$ac_ct_DUMPBIN"; then
4915 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4916 else
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4919 do
4920 IFS=$as_save_IFS
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4924 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 break 2
4927 fi
4928 done
4929 done
4930 IFS=$as_save_IFS
4931
4932 fi
4933 fi
4934 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4935 if test -n "$ac_ct_DUMPBIN"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4937 $as_echo "$ac_ct_DUMPBIN" >&6; }
4938 else
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4941 fi
4942
4943
4944 test -n "$ac_ct_DUMPBIN" && break
4945 done
4946
4947 if test "x$ac_ct_DUMPBIN" = x; then
4948 DUMPBIN=":"
4949 else
4950 case $cross_compiling:$ac_tool_warned in
4951 yes:)
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4954 ac_tool_warned=yes ;;
4955 esac
4956 DUMPBIN=$ac_ct_DUMPBIN
4957 fi
4958 fi
4959
4960 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4961 *COFF*)
4962 DUMPBIN="$DUMPBIN -symbols"
4963 ;;
4964 *)
4965 DUMPBIN=:
4966 ;;
4967 esac
4968 fi
4969
4970 if test "$DUMPBIN" != ":"; then
4971 NM="$DUMPBIN"
4972 fi
4973 fi
4974 test -z "$NM" && NM=nm
4975
4976
4977
4978
4979
4980
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4982 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4983 if ${lt_cv_nm_interface+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 lt_cv_nm_interface="BSD nm"
4987 echo "int some_variable = 0;" > conftest.$ac_ext
4988 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4989 (eval "$ac_compile" 2>conftest.err)
4990 cat conftest.err >&5
4991 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4992 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4993 cat conftest.err >&5
4994 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4995 cat conftest.out >&5
4996 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4997 lt_cv_nm_interface="MS dumpbin"
4998 fi
4999 rm -f conftest*
5000 fi
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5002 $as_echo "$lt_cv_nm_interface" >&6; }
5003
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5005 $as_echo_n "checking whether ln -s works... " >&6; }
5006 LN_S=$as_ln_s
5007 if test "$LN_S" = "ln -s"; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5009 $as_echo "yes" >&6; }
5010 else
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5012 $as_echo "no, using $LN_S" >&6; }
5013 fi
5014
5015 # find the maximum length of command line arguments
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5017 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5018 if ${lt_cv_sys_max_cmd_len+:} false; then :
5019 $as_echo_n "(cached) " >&6
5020 else
5021 i=0
5022 teststring="ABCD"
5023
5024 case $build_os in
5025 msdosdjgpp*)
5026 # On DJGPP, this test can blow up pretty badly due to problems in libc
5027 # (any single argument exceeding 2000 bytes causes a buffer overrun
5028 # during glob expansion). Even if it were fixed, the result of this
5029 # check would be larger than it should be.
5030 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5031 ;;
5032
5033 gnu*)
5034 # Under GNU Hurd, this test is not required because there is
5035 # no limit to the length of command line arguments.
5036 # Libtool will interpret -1 as no limit whatsoever
5037 lt_cv_sys_max_cmd_len=-1;
5038 ;;
5039
5040 cygwin* | mingw* | cegcc*)
5041 # On Win9x/ME, this test blows up -- it succeeds, but takes
5042 # about 5 minutes as the teststring grows exponentially.
5043 # Worse, since 9x/ME are not pre-emptively multitasking,
5044 # you end up with a "frozen" computer, even though with patience
5045 # the test eventually succeeds (with a max line length of 256k).
5046 # Instead, let's just punt: use the minimum linelength reported by
5047 # all of the supported platforms: 8192 (on NT/2K/XP).
5048 lt_cv_sys_max_cmd_len=8192;
5049 ;;
5050
5051 mint*)
5052 # On MiNT this can take a long time and run out of memory.
5053 lt_cv_sys_max_cmd_len=8192;
5054 ;;
5055
5056 amigaos*)
5057 # On AmigaOS with pdksh, this test takes hours, literally.
5058 # So we just punt and use a minimum line length of 8192.
5059 lt_cv_sys_max_cmd_len=8192;
5060 ;;
5061
5062 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5063 # This has been around since 386BSD, at least. Likely further.
5064 if test -x /sbin/sysctl; then
5065 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5066 elif test -x /usr/sbin/sysctl; then
5067 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5068 else
5069 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5070 fi
5071 # And add a safety zone
5072 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5073 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5074 ;;
5075
5076 interix*)
5077 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5078 lt_cv_sys_max_cmd_len=196608
5079 ;;
5080
5081 os2*)
5082 # The test takes a long time on OS/2.
5083 lt_cv_sys_max_cmd_len=8192
5084 ;;
5085
5086 osf*)
5087 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5088 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5089 # nice to cause kernel panics so lets avoid the loop below.
5090 # First set a reasonable default.
5091 lt_cv_sys_max_cmd_len=16384
5092 #
5093 if test -x /sbin/sysconfig; then
5094 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5095 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5096 esac
5097 fi
5098 ;;
5099 sco3.2v5*)
5100 lt_cv_sys_max_cmd_len=102400
5101 ;;
5102 sysv5* | sco5v6* | sysv4.2uw2*)
5103 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5104 if test -n "$kargmax"; then
5105 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5106 else
5107 lt_cv_sys_max_cmd_len=32768
5108 fi
5109 ;;
5110 *)
5111 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5112 if test -n "$lt_cv_sys_max_cmd_len" && \
5113 test undefined != "$lt_cv_sys_max_cmd_len"; then
5114 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5115 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5116 else
5117 # Make teststring a little bigger before we do anything with it.
5118 # a 1K string should be a reasonable start.
5119 for i in 1 2 3 4 5 6 7 8 ; do
5120 teststring=$teststring$teststring
5121 done
5122 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5123 # If test is not a shell built-in, we'll probably end up computing a
5124 # maximum length that is only half of the actual maximum length, but
5125 # we can't tell.
5126 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5127 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5128 test $i != 17 # 1/2 MB should be enough
5129 do
5130 i=`expr $i + 1`
5131 teststring=$teststring$teststring
5132 done
5133 # Only check the string length outside the loop.
5134 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5135 teststring=
5136 # Add a significant safety factor because C++ compilers can tack on
5137 # massive amounts of additional arguments before passing them to the
5138 # linker. It appears as though 1/2 is a usable value.
5139 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5140 fi
5141 ;;
5142 esac
5143
5144 fi
5145
5146 if test -n $lt_cv_sys_max_cmd_len ; then
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5148 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5149 else
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5151 $as_echo "none" >&6; }
5152 fi
5153 max_cmd_len=$lt_cv_sys_max_cmd_len
5154
5155
5156
5157
5158
5159
5160 : ${CP="cp -f"}
5161 : ${MV="mv -f"}
5162 : ${RM="rm -f"}
5163
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5165 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5166 # Try some XSI features
5167 xsi_shell=no
5168 ( _lt_dummy="a/b/c"
5169 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5170 = c,a/b,b/c, \
5171 && eval 'test $(( 1 + 1 )) -eq 2 \
5172 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5173 && xsi_shell=yes
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5175 $as_echo "$xsi_shell" >&6; }
5176
5177
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5179 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5180 lt_shell_append=no
5181 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5182 >/dev/null 2>&1 \
5183 && lt_shell_append=yes
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5185 $as_echo "$lt_shell_append" >&6; }
5186
5187
5188 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5189 lt_unset=unset
5190 else
5191 lt_unset=false
5192 fi
5193
5194
5195
5196
5197
5198 # test EBCDIC or ASCII
5199 case `echo X|tr X '\101'` in
5200 A) # ASCII based system
5201 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5202 lt_SP2NL='tr \040 \012'
5203 lt_NL2SP='tr \015\012 \040\040'
5204 ;;
5205 *) # EBCDIC based system
5206 lt_SP2NL='tr \100 \n'
5207 lt_NL2SP='tr \r\n \100\100'
5208 ;;
5209 esac
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5220 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5221 if ${lt_cv_to_host_file_cmd+:} false; then :
5222 $as_echo_n "(cached) " >&6
5223 else
5224 case $host in
5225 *-*-mingw* )
5226 case $build in
5227 *-*-mingw* ) # actually msys
5228 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5229 ;;
5230 *-*-cygwin* )
5231 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5232 ;;
5233 * ) # otherwise, assume *nix
5234 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5235 ;;
5236 esac
5237 ;;
5238 *-*-cygwin* )
5239 case $build in
5240 *-*-mingw* ) # actually msys
5241 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5242 ;;
5243 *-*-cygwin* )
5244 lt_cv_to_host_file_cmd=func_convert_file_noop
5245 ;;
5246 * ) # otherwise, assume *nix
5247 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5248 ;;
5249 esac
5250 ;;
5251 * ) # unhandled hosts (and "normal" native builds)
5252 lt_cv_to_host_file_cmd=func_convert_file_noop
5253 ;;
5254 esac
5255
5256 fi
5257
5258 to_host_file_cmd=$lt_cv_to_host_file_cmd
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5260 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5261
5262
5263
5264
5265
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5267 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5268 if ${lt_cv_to_tool_file_cmd+:} false; then :
5269 $as_echo_n "(cached) " >&6
5270 else
5271 #assume ordinary cross tools, or native build.
5272 lt_cv_to_tool_file_cmd=func_convert_file_noop
5273 case $host in
5274 *-*-mingw* )
5275 case $build in
5276 *-*-mingw* ) # actually msys
5277 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5278 ;;
5279 esac
5280 ;;
5281 esac
5282
5283 fi
5284
5285 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5287 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5288
5289
5290
5291
5292
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5294 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5295 if ${lt_cv_ld_reload_flag+:} false; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5298 lt_cv_ld_reload_flag='-r'
5299 fi
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5301 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5302 reload_flag=$lt_cv_ld_reload_flag
5303 case $reload_flag in
5304 "" | " "*) ;;
5305 *) reload_flag=" $reload_flag" ;;
5306 esac
5307 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5308 case $host_os in
5309 cygwin* | mingw* | pw32* | cegcc*)
5310 if test "$GCC" != yes; then
5311 reload_cmds=false
5312 fi
5313 ;;
5314 darwin*)
5315 if test "$GCC" = yes; then
5316 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5317 else
5318 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5319 fi
5320 ;;
5321 esac
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331 if test -n "$ac_tool_prefix"; then
5332 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5333 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335 $as_echo_n "checking for $ac_word... " >&6; }
5336 if ${ac_cv_prog_OBJDUMP+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 if test -n "$OBJDUMP"; then
5340 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5341 else
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 for as_dir in $PATH
5344 do
5345 IFS=$as_save_IFS
5346 test -z "$as_dir" && as_dir=.
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5349 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 break 2
5352 fi
5353 done
5354 done
5355 IFS=$as_save_IFS
5356
5357 fi
5358 fi
5359 OBJDUMP=$ac_cv_prog_OBJDUMP
5360 if test -n "$OBJDUMP"; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5362 $as_echo "$OBJDUMP" >&6; }
5363 else
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365 $as_echo "no" >&6; }
5366 fi
5367
5368
5369 fi
5370 if test -z "$ac_cv_prog_OBJDUMP"; then
5371 ac_ct_OBJDUMP=$OBJDUMP
5372 # Extract the first word of "objdump", so it can be a program name with args.
5373 set dummy objdump; ac_word=$2
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5375 $as_echo_n "checking for $ac_word... " >&6; }
5376 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5377 $as_echo_n "(cached) " >&6
5378 else
5379 if test -n "$ac_ct_OBJDUMP"; then
5380 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5381 else
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 for as_dir in $PATH
5384 do
5385 IFS=$as_save_IFS
5386 test -z "$as_dir" && as_dir=.
5387 for ac_exec_ext in '' $ac_executable_extensions; do
5388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5389 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5391 break 2
5392 fi
5393 done
5394 done
5395 IFS=$as_save_IFS
5396
5397 fi
5398 fi
5399 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5400 if test -n "$ac_ct_OBJDUMP"; then
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5402 $as_echo "$ac_ct_OBJDUMP" >&6; }
5403 else
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5406 fi
5407
5408 if test "x$ac_ct_OBJDUMP" = x; then
5409 OBJDUMP="false"
5410 else
5411 case $cross_compiling:$ac_tool_warned in
5412 yes:)
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5415 ac_tool_warned=yes ;;
5416 esac
5417 OBJDUMP=$ac_ct_OBJDUMP
5418 fi
5419 else
5420 OBJDUMP="$ac_cv_prog_OBJDUMP"
5421 fi
5422
5423 test -z "$OBJDUMP" && OBJDUMP=objdump
5424
5425
5426
5427
5428
5429
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5431 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5432 if ${lt_cv_deplibs_check_method+:} false; then :
5433 $as_echo_n "(cached) " >&6
5434 else
5435 lt_cv_file_magic_cmd='$MAGIC_CMD'
5436 lt_cv_file_magic_test_file=
5437 lt_cv_deplibs_check_method='unknown'
5438 # Need to set the preceding variable on all platforms that support
5439 # interlibrary dependencies.
5440 # 'none' -- dependencies not supported.
5441 # `unknown' -- same as none, but documents that we really don't know.
5442 # 'pass_all' -- all dependencies passed with no checks.
5443 # 'test_compile' -- check by making test program.
5444 # 'file_magic [[regex]]' -- check by looking for files in library path
5445 # which responds to the $file_magic_cmd with a given extended regex.
5446 # If you have `file' or equivalent on your system and you're not sure
5447 # whether `pass_all' will *always* work, you probably want this one.
5448
5449 case $host_os in
5450 aix[4-9]*)
5451 lt_cv_deplibs_check_method=pass_all
5452 ;;
5453
5454 beos*)
5455 lt_cv_deplibs_check_method=pass_all
5456 ;;
5457
5458 bsdi[45]*)
5459 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5460 lt_cv_file_magic_cmd='/usr/bin/file -L'
5461 lt_cv_file_magic_test_file=/shlib/libc.so
5462 ;;
5463
5464 cygwin*)
5465 # func_win32_libid is a shell function defined in ltmain.sh
5466 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5467 lt_cv_file_magic_cmd='func_win32_libid'
5468 ;;
5469
5470 mingw* | pw32*)
5471 # Base MSYS/MinGW do not provide the 'file' command needed by
5472 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5473 # unless we find 'file', for example because we are cross-compiling.
5474 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5475 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5476 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5477 lt_cv_file_magic_cmd='func_win32_libid'
5478 else
5479 # Keep this pattern in sync with the one in func_win32_libid.
5480 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5481 lt_cv_file_magic_cmd='$OBJDUMP -f'
5482 fi
5483 ;;
5484
5485 cegcc*)
5486 # use the weaker test based on 'objdump'. See mingw*.
5487 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5488 lt_cv_file_magic_cmd='$OBJDUMP -f'
5489 ;;
5490
5491 darwin* | rhapsody*)
5492 lt_cv_deplibs_check_method=pass_all
5493 ;;
5494
5495 freebsd* | dragonfly*)
5496 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5497 case $host_cpu in
5498 i*86 )
5499 # Not sure whether the presence of OpenBSD here was a mistake.
5500 # Let's accept both of them until this is cleared up.
5501 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5502 lt_cv_file_magic_cmd=/usr/bin/file
5503 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5504 ;;
5505 esac
5506 else
5507 lt_cv_deplibs_check_method=pass_all
5508 fi
5509 ;;
5510
5511 haiku*)
5512 lt_cv_deplibs_check_method=pass_all
5513 ;;
5514
5515 hpux10.20* | hpux11*)
5516 lt_cv_file_magic_cmd=/usr/bin/file
5517 case $host_cpu in
5518 ia64*)
5519 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5520 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5521 ;;
5522 hppa*64*)
5523 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]'
5524 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5525 ;;
5526 *)
5527 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5528 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5529 ;;
5530 esac
5531 ;;
5532
5533 interix[3-9]*)
5534 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5535 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5536 ;;
5537
5538 irix5* | irix6* | nonstopux*)
5539 case $LD in
5540 *-32|*"-32 ") libmagic=32-bit;;
5541 *-n32|*"-n32 ") libmagic=N32;;
5542 *-64|*"-64 ") libmagic=64-bit;;
5543 *) libmagic=never-match;;
5544 esac
5545 lt_cv_deplibs_check_method=pass_all
5546 ;;
5547
5548 # This must be glibc/ELF.
5549 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5550 lt_cv_deplibs_check_method=pass_all
5551 ;;
5552
5553 netbsd* | netbsdelf*-gnu)
5554 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5555 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5556 else
5557 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5558 fi
5559 ;;
5560
5561 newos6*)
5562 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5563 lt_cv_file_magic_cmd=/usr/bin/file
5564 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5565 ;;
5566
5567 *nto* | *qnx*)
5568 lt_cv_deplibs_check_method=pass_all
5569 ;;
5570
5571 openbsd*)
5572 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5573 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5574 else
5575 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5576 fi
5577 ;;
5578
5579 osf3* | osf4* | osf5*)
5580 lt_cv_deplibs_check_method=pass_all
5581 ;;
5582
5583 rdos*)
5584 lt_cv_deplibs_check_method=pass_all
5585 ;;
5586
5587 solaris*)
5588 lt_cv_deplibs_check_method=pass_all
5589 ;;
5590
5591 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5592 lt_cv_deplibs_check_method=pass_all
5593 ;;
5594
5595 sysv4 | sysv4.3*)
5596 case $host_vendor in
5597 motorola)
5598 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]'
5599 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5600 ;;
5601 ncr)
5602 lt_cv_deplibs_check_method=pass_all
5603 ;;
5604 sequent)
5605 lt_cv_file_magic_cmd='/bin/file'
5606 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5607 ;;
5608 sni)
5609 lt_cv_file_magic_cmd='/bin/file'
5610 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5611 lt_cv_file_magic_test_file=/lib/libc.so
5612 ;;
5613 siemens)
5614 lt_cv_deplibs_check_method=pass_all
5615 ;;
5616 pc)
5617 lt_cv_deplibs_check_method=pass_all
5618 ;;
5619 esac
5620 ;;
5621
5622 tpf*)
5623 lt_cv_deplibs_check_method=pass_all
5624 ;;
5625 esac
5626
5627 fi
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5629 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5630
5631 file_magic_glob=
5632 want_nocaseglob=no
5633 if test "$build" = "$host"; then
5634 case $host_os in
5635 mingw* | pw32*)
5636 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5637 want_nocaseglob=yes
5638 else
5639 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5640 fi
5641 ;;
5642 esac
5643 fi
5644
5645 file_magic_cmd=$lt_cv_file_magic_cmd
5646 deplibs_check_method=$lt_cv_deplibs_check_method
5647 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670 if test -n "$ac_tool_prefix"; then
5671 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5672 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if ${ac_cv_prog_DLLTOOL+:} false; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 if test -n "$DLLTOOL"; then
5679 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5680 else
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH
5683 do
5684 IFS=$as_save_IFS
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5688 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 break 2
5691 fi
5692 done
5693 done
5694 IFS=$as_save_IFS
5695
5696 fi
5697 fi
5698 DLLTOOL=$ac_cv_prog_DLLTOOL
5699 if test -n "$DLLTOOL"; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5701 $as_echo "$DLLTOOL" >&6; }
5702 else
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }
5705 fi
5706
5707
5708 fi
5709 if test -z "$ac_cv_prog_DLLTOOL"; then
5710 ac_ct_DLLTOOL=$DLLTOOL
5711 # Extract the first word of "dlltool", so it can be a program name with args.
5712 set dummy dlltool; ac_word=$2
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714 $as_echo_n "checking for $ac_word... " >&6; }
5715 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5716 $as_echo_n "(cached) " >&6
5717 else
5718 if test -n "$ac_ct_DLLTOOL"; then
5719 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5720 else
5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 for as_dir in $PATH
5723 do
5724 IFS=$as_save_IFS
5725 test -z "$as_dir" && as_dir=.
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5728 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5730 break 2
5731 fi
5732 done
5733 done
5734 IFS=$as_save_IFS
5735
5736 fi
5737 fi
5738 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5739 if test -n "$ac_ct_DLLTOOL"; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5741 $as_echo "$ac_ct_DLLTOOL" >&6; }
5742 else
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744 $as_echo "no" >&6; }
5745 fi
5746
5747 if test "x$ac_ct_DLLTOOL" = x; then
5748 DLLTOOL="false"
5749 else
5750 case $cross_compiling:$ac_tool_warned in
5751 yes:)
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5754 ac_tool_warned=yes ;;
5755 esac
5756 DLLTOOL=$ac_ct_DLLTOOL
5757 fi
5758 else
5759 DLLTOOL="$ac_cv_prog_DLLTOOL"
5760 fi
5761
5762 test -z "$DLLTOOL" && DLLTOOL=dlltool
5763
5764
5765
5766
5767
5768
5769
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5771 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5772 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5773 $as_echo_n "(cached) " >&6
5774 else
5775 lt_cv_sharedlib_from_linklib_cmd='unknown'
5776
5777 case $host_os in
5778 cygwin* | mingw* | pw32* | cegcc*)
5779 # two different shell functions defined in ltmain.sh
5780 # decide which to use based on capabilities of $DLLTOOL
5781 case `$DLLTOOL --help 2>&1` in
5782 *--identify-strict*)
5783 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5784 ;;
5785 *)
5786 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5787 ;;
5788 esac
5789 ;;
5790 *)
5791 # fallback: assume linklib IS sharedlib
5792 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5793 ;;
5794 esac
5795
5796 fi
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5798 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5799 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5800 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5801
5802
5803
5804
5805
5806
5807
5808 if test -n "$ac_tool_prefix"; then
5809 for ac_prog in ar
5810 do
5811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814 $as_echo_n "checking for $ac_word... " >&6; }
5815 if ${ac_cv_prog_AR+:} false; then :
5816 $as_echo_n "(cached) " >&6
5817 else
5818 if test -n "$AR"; then
5819 ac_cv_prog_AR="$AR" # Let the user override the test.
5820 else
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5823 do
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5828 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5831 fi
5832 done
5833 done
5834 IFS=$as_save_IFS
5835
5836 fi
5837 fi
5838 AR=$ac_cv_prog_AR
5839 if test -n "$AR"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5841 $as_echo "$AR" >&6; }
5842 else
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 $as_echo "no" >&6; }
5845 fi
5846
5847
5848 test -n "$AR" && break
5849 done
5850 fi
5851 if test -z "$AR"; then
5852 ac_ct_AR=$AR
5853 for ac_prog in ar
5854 do
5855 # Extract the first word of "$ac_prog", so it can be a program name with args.
5856 set dummy $ac_prog; ac_word=$2
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858 $as_echo_n "checking for $ac_word... " >&6; }
5859 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5860 $as_echo_n "(cached) " >&6
5861 else
5862 if test -n "$ac_ct_AR"; then
5863 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5864 else
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH
5867 do
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5872 ac_cv_prog_ac_ct_AR="$ac_prog"
5873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 break 2
5875 fi
5876 done
5877 done
5878 IFS=$as_save_IFS
5879
5880 fi
5881 fi
5882 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5883 if test -n "$ac_ct_AR"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5885 $as_echo "$ac_ct_AR" >&6; }
5886 else
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888 $as_echo "no" >&6; }
5889 fi
5890
5891
5892 test -n "$ac_ct_AR" && break
5893 done
5894
5895 if test "x$ac_ct_AR" = x; then
5896 AR="false"
5897 else
5898 case $cross_compiling:$ac_tool_warned in
5899 yes:)
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5902 ac_tool_warned=yes ;;
5903 esac
5904 AR=$ac_ct_AR
5905 fi
5906 fi
5907
5908 : ${AR=ar}
5909 : ${AR_FLAGS=cru}
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5922 $as_echo_n "checking for archiver @FILE support... " >&6; }
5923 if ${lt_cv_ar_at_file+:} false; then :
5924 $as_echo_n "(cached) " >&6
5925 else
5926 lt_cv_ar_at_file=no
5927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928 /* end confdefs.h. */
5929
5930 int
5931 main ()
5932 {
5933
5934 ;
5935 return 0;
5936 }
5937 _ACEOF
5938 if ac_fn_c_try_compile "$LINENO"; then :
5939 echo conftest.$ac_objext > conftest.lst
5940 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5942 (eval $lt_ar_try) 2>&5
5943 ac_status=$?
5944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5945 test $ac_status = 0; }
5946 if test "$ac_status" -eq 0; then
5947 # Ensure the archiver fails upon bogus file names.
5948 rm -f conftest.$ac_objext libconftest.a
5949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5950 (eval $lt_ar_try) 2>&5
5951 ac_status=$?
5952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5953 test $ac_status = 0; }
5954 if test "$ac_status" -ne 0; then
5955 lt_cv_ar_at_file=@
5956 fi
5957 fi
5958 rm -f conftest.* libconftest.a
5959
5960 fi
5961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5962
5963 fi
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5965 $as_echo "$lt_cv_ar_at_file" >&6; }
5966
5967 if test "x$lt_cv_ar_at_file" = xno; then
5968 archiver_list_spec=
5969 else
5970 archiver_list_spec=$lt_cv_ar_at_file
5971 fi
5972
5973
5974
5975
5976
5977
5978
5979 if test -n "$ac_tool_prefix"; then
5980 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5981 set dummy ${ac_tool_prefix}strip; ac_word=$2
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5983 $as_echo_n "checking for $ac_word... " >&6; }
5984 if ${ac_cv_prog_STRIP+:} false; then :
5985 $as_echo_n "(cached) " >&6
5986 else
5987 if test -n "$STRIP"; then
5988 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5989 else
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 for as_dir in $PATH
5992 do
5993 IFS=$as_save_IFS
5994 test -z "$as_dir" && as_dir=.
5995 for ac_exec_ext in '' $ac_executable_extensions; do
5996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5997 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5999 break 2
6000 fi
6001 done
6002 done
6003 IFS=$as_save_IFS
6004
6005 fi
6006 fi
6007 STRIP=$ac_cv_prog_STRIP
6008 if test -n "$STRIP"; then
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6010 $as_echo "$STRIP" >&6; }
6011 else
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6013 $as_echo "no" >&6; }
6014 fi
6015
6016
6017 fi
6018 if test -z "$ac_cv_prog_STRIP"; then
6019 ac_ct_STRIP=$STRIP
6020 # Extract the first word of "strip", so it can be a program name with args.
6021 set dummy strip; ac_word=$2
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6023 $as_echo_n "checking for $ac_word... " >&6; }
6024 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6025 $as_echo_n "(cached) " >&6
6026 else
6027 if test -n "$ac_ct_STRIP"; then
6028 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6029 else
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 for as_dir in $PATH
6032 do
6033 IFS=$as_save_IFS
6034 test -z "$as_dir" && as_dir=.
6035 for ac_exec_ext in '' $ac_executable_extensions; do
6036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6037 ac_cv_prog_ac_ct_STRIP="strip"
6038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6039 break 2
6040 fi
6041 done
6042 done
6043 IFS=$as_save_IFS
6044
6045 fi
6046 fi
6047 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6048 if test -n "$ac_ct_STRIP"; then
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6050 $as_echo "$ac_ct_STRIP" >&6; }
6051 else
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6053 $as_echo "no" >&6; }
6054 fi
6055
6056 if test "x$ac_ct_STRIP" = x; then
6057 STRIP=":"
6058 else
6059 case $cross_compiling:$ac_tool_warned in
6060 yes:)
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6063 ac_tool_warned=yes ;;
6064 esac
6065 STRIP=$ac_ct_STRIP
6066 fi
6067 else
6068 STRIP="$ac_cv_prog_STRIP"
6069 fi
6070
6071 test -z "$STRIP" && STRIP=:
6072
6073
6074
6075
6076
6077
6078 if test -n "$ac_tool_prefix"; then
6079 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6080 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082 $as_echo_n "checking for $ac_word... " >&6; }
6083 if ${ac_cv_prog_RANLIB+:} false; then :
6084 $as_echo_n "(cached) " >&6
6085 else
6086 if test -n "$RANLIB"; then
6087 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6088 else
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH
6091 do
6092 IFS=$as_save_IFS
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6096 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 break 2
6099 fi
6100 done
6101 done
6102 IFS=$as_save_IFS
6103
6104 fi
6105 fi
6106 RANLIB=$ac_cv_prog_RANLIB
6107 if test -n "$RANLIB"; then
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6109 $as_echo "$RANLIB" >&6; }
6110 else
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112 $as_echo "no" >&6; }
6113 fi
6114
6115
6116 fi
6117 if test -z "$ac_cv_prog_RANLIB"; then
6118 ac_ct_RANLIB=$RANLIB
6119 # Extract the first word of "ranlib", so it can be a program name with args.
6120 set dummy ranlib; ac_word=$2
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122 $as_echo_n "checking for $ac_word... " >&6; }
6123 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6124 $as_echo_n "(cached) " >&6
6125 else
6126 if test -n "$ac_ct_RANLIB"; then
6127 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6128 else
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH
6131 do
6132 IFS=$as_save_IFS
6133 test -z "$as_dir" && as_dir=.
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6136 ac_cv_prog_ac_ct_RANLIB="ranlib"
6137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 break 2
6139 fi
6140 done
6141 done
6142 IFS=$as_save_IFS
6143
6144 fi
6145 fi
6146 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6147 if test -n "$ac_ct_RANLIB"; then
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6149 $as_echo "$ac_ct_RANLIB" >&6; }
6150 else
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152 $as_echo "no" >&6; }
6153 fi
6154
6155 if test "x$ac_ct_RANLIB" = x; then
6156 RANLIB=":"
6157 else
6158 case $cross_compiling:$ac_tool_warned in
6159 yes:)
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6162 ac_tool_warned=yes ;;
6163 esac
6164 RANLIB=$ac_ct_RANLIB
6165 fi
6166 else
6167 RANLIB="$ac_cv_prog_RANLIB"
6168 fi
6169
6170 test -z "$RANLIB" && RANLIB=:
6171
6172
6173
6174
6175
6176
6177 # Determine commands to create old-style static archives.
6178 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6179 old_postinstall_cmds='chmod 644 $oldlib'
6180 old_postuninstall_cmds=
6181
6182 if test -n "$RANLIB"; then
6183 case $host_os in
6184 openbsd*)
6185 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6186 ;;
6187 *)
6188 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6189 ;;
6190 esac
6191 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6192 fi
6193
6194 case $host_os in
6195 darwin*)
6196 lock_old_archive_extraction=yes ;;
6197 *)
6198 lock_old_archive_extraction=no ;;
6199 esac
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239 # If no C compiler was specified, use CC.
6240 LTCC=${LTCC-"$CC"}
6241
6242 # If no C compiler flags were specified, use CFLAGS.
6243 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6244
6245 # Allow CC to be a program name with arguments.
6246 compiler=$CC
6247
6248
6249 # Check for command to grab the raw symbol name followed by C symbol from nm.
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6251 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6252 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6253 $as_echo_n "(cached) " >&6
6254 else
6255
6256 # These are sane defaults that work on at least a few old systems.
6257 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6258
6259 # Character class describing NM global symbol codes.
6260 symcode='[BCDEGRST]'
6261
6262 # Regexp to match symbols that can be accessed directly from C.
6263 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6264
6265 # Define system-specific variables.
6266 case $host_os in
6267 aix*)
6268 symcode='[BCDT]'
6269 ;;
6270 cygwin* | mingw* | pw32* | cegcc*)
6271 symcode='[ABCDGISTW]'
6272 ;;
6273 hpux*)
6274 if test "$host_cpu" = ia64; then
6275 symcode='[ABCDEGRST]'
6276 fi
6277 ;;
6278 irix* | nonstopux*)
6279 symcode='[BCDEGRST]'
6280 ;;
6281 osf*)
6282 symcode='[BCDEGQRST]'
6283 ;;
6284 solaris*)
6285 symcode='[BDRT]'
6286 ;;
6287 sco3.2v5*)
6288 symcode='[DT]'
6289 ;;
6290 sysv4.2uw2*)
6291 symcode='[DT]'
6292 ;;
6293 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6294 symcode='[ABDT]'
6295 ;;
6296 sysv4)
6297 symcode='[DFNSTU]'
6298 ;;
6299 esac
6300
6301 # If we're using GNU nm, then use its standard symbol codes.
6302 case `$NM -V 2>&1` in
6303 *GNU* | *'with BFD'*)
6304 symcode='[ABCDGIRSTW]' ;;
6305 esac
6306
6307 # Transform an extracted symbol line into a proper C declaration.
6308 # Some systems (esp. on ia64) link data and code symbols differently,
6309 # so use this general approach.
6310 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6311
6312 # Transform an extracted symbol line into symbol name and symbol address
6313 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6314 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6315
6316 # Handle CRLF in mingw tool chain
6317 opt_cr=
6318 case $build_os in
6319 mingw*)
6320 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6321 ;;
6322 esac
6323
6324 # Try without a prefix underscore, then with it.
6325 for ac_symprfx in "" "_"; do
6326
6327 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6328 symxfrm="\\1 $ac_symprfx\\2 \\2"
6329
6330 # Write the raw and C identifiers.
6331 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6332 # Fake it for dumpbin and say T for any non-static function
6333 # and D for any global variable.
6334 # Also find C++ and __fastcall symbols from MSVC++,
6335 # which start with @ or ?.
6336 lt_cv_sys_global_symbol_pipe="$AWK '"\
6337 " {last_section=section; section=\$ 3};"\
6338 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6339 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6340 " \$ 0!~/External *\|/{next};"\
6341 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6342 " {if(hide[section]) next};"\
6343 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6344 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6345 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6346 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6347 " ' prfx=^$ac_symprfx"
6348 else
6349 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6350 fi
6351 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6352
6353 # Check to see that the pipe works correctly.
6354 pipe_works=no
6355
6356 rm -f conftest*
6357 cat > conftest.$ac_ext <<_LT_EOF
6358 #ifdef __cplusplus
6359 extern "C" {
6360 #endif
6361 char nm_test_var;
6362 void nm_test_func(void);
6363 void nm_test_func(void){}
6364 #ifdef __cplusplus
6365 }
6366 #endif
6367 int main(){nm_test_var='a';nm_test_func();return(0);}
6368 _LT_EOF
6369
6370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6371 (eval $ac_compile) 2>&5
6372 ac_status=$?
6373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6374 test $ac_status = 0; }; then
6375 # Now try to grab the symbols.
6376 nlist=conftest.nm
6377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6378 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6379 ac_status=$?
6380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6381 test $ac_status = 0; } && test -s "$nlist"; then
6382 # Try sorting and uniquifying the output.
6383 if sort "$nlist" | uniq > "$nlist"T; then
6384 mv -f "$nlist"T "$nlist"
6385 else
6386 rm -f "$nlist"T
6387 fi
6388
6389 # Make sure that we snagged all the symbols we need.
6390 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6391 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6392 cat <<_LT_EOF > conftest.$ac_ext
6393 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6394 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6395 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6396 relocations are performed -- see ld's documentation on pseudo-relocs. */
6397 # define LT_DLSYM_CONST
6398 #elif defined(__osf__)
6399 /* This system does not cope well with relocations in const data. */
6400 # define LT_DLSYM_CONST
6401 #else
6402 # define LT_DLSYM_CONST const
6403 #endif
6404
6405 #ifdef __cplusplus
6406 extern "C" {
6407 #endif
6408
6409 _LT_EOF
6410 # Now generate the symbol file.
6411 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6412
6413 cat <<_LT_EOF >> conftest.$ac_ext
6414
6415 /* The mapping between symbol names and symbols. */
6416 LT_DLSYM_CONST struct {
6417 const char *name;
6418 void *address;
6419 }
6420 lt__PROGRAM__LTX_preloaded_symbols[] =
6421 {
6422 { "@PROGRAM@", (void *) 0 },
6423 _LT_EOF
6424 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6425 cat <<\_LT_EOF >> conftest.$ac_ext
6426 {0, (void *) 0}
6427 };
6428
6429 /* This works around a problem in FreeBSD linker */
6430 #ifdef FREEBSD_WORKAROUND
6431 static const void *lt_preloaded_setup() {
6432 return lt__PROGRAM__LTX_preloaded_symbols;
6433 }
6434 #endif
6435
6436 #ifdef __cplusplus
6437 }
6438 #endif
6439 _LT_EOF
6440 # Now try linking the two files.
6441 mv conftest.$ac_objext conftstm.$ac_objext
6442 lt_globsym_save_LIBS=$LIBS
6443 lt_globsym_save_CFLAGS=$CFLAGS
6444 LIBS="conftstm.$ac_objext"
6445 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6447 (eval $ac_link) 2>&5
6448 ac_status=$?
6449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6450 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6451 pipe_works=yes
6452 fi
6453 LIBS=$lt_globsym_save_LIBS
6454 CFLAGS=$lt_globsym_save_CFLAGS
6455 else
6456 echo "cannot find nm_test_func in $nlist" >&5
6457 fi
6458 else
6459 echo "cannot find nm_test_var in $nlist" >&5
6460 fi
6461 else
6462 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6463 fi
6464 else
6465 echo "$progname: failed program was:" >&5
6466 cat conftest.$ac_ext >&5
6467 fi
6468 rm -rf conftest* conftst*
6469
6470 # Do not use the global_symbol_pipe unless it works.
6471 if test "$pipe_works" = yes; then
6472 break
6473 else
6474 lt_cv_sys_global_symbol_pipe=
6475 fi
6476 done
6477
6478 fi
6479
6480 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6481 lt_cv_sys_global_symbol_to_cdecl=
6482 fi
6483 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6485 $as_echo "failed" >&6; }
6486 else
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6488 $as_echo "ok" >&6; }
6489 fi
6490
6491 # Response file support.
6492 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6493 nm_file_list_spec='@'
6494 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6495 nm_file_list_spec='@'
6496 fi
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6525 $as_echo_n "checking for sysroot... " >&6; }
6526
6527 # Check whether --with-sysroot was given.
6528 if test "${with_sysroot+set}" = set; then :
6529 withval=$with_sysroot;
6530 else
6531 with_sysroot=no
6532 fi
6533
6534
6535 lt_sysroot=
6536 case ${with_sysroot} in #(
6537 yes)
6538 if test "$GCC" = yes; then
6539 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6540 fi
6541 ;; #(
6542 /*)
6543 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6544 ;; #(
6545 no|'')
6546 ;; #(
6547 *)
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6549 $as_echo "${with_sysroot}" >&6; }
6550 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6551 ;;
6552 esac
6553
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6555 $as_echo "${lt_sysroot:-no}" >&6; }
6556
6557
6558
6559
6560
6561 # Check whether --enable-libtool-lock was given.
6562 if test "${enable_libtool_lock+set}" = set; then :
6563 enableval=$enable_libtool_lock;
6564 fi
6565
6566 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6567
6568 # Some flags need to be propagated to the compiler or linker for good
6569 # libtool support.
6570 case $host in
6571 ia64-*-hpux*)
6572 # Find out which ABI we are using.
6573 echo 'int i;' > conftest.$ac_ext
6574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6575 (eval $ac_compile) 2>&5
6576 ac_status=$?
6577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6578 test $ac_status = 0; }; then
6579 case `/usr/bin/file conftest.$ac_objext` in
6580 *ELF-32*)
6581 HPUX_IA64_MODE="32"
6582 ;;
6583 *ELF-64*)
6584 HPUX_IA64_MODE="64"
6585 ;;
6586 esac
6587 fi
6588 rm -rf conftest*
6589 ;;
6590 *-*-irix6*)
6591 # Find out which ABI we are using.
6592 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6594 (eval $ac_compile) 2>&5
6595 ac_status=$?
6596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6597 test $ac_status = 0; }; then
6598 if test "$lt_cv_prog_gnu_ld" = yes; then
6599 case `/usr/bin/file conftest.$ac_objext` in
6600 *32-bit*)
6601 LD="${LD-ld} -melf32bsmip"
6602 ;;
6603 *N32*)
6604 LD="${LD-ld} -melf32bmipn32"
6605 ;;
6606 *64-bit*)
6607 LD="${LD-ld} -melf64bmip"
6608 ;;
6609 esac
6610 else
6611 case `/usr/bin/file conftest.$ac_objext` in
6612 *32-bit*)
6613 LD="${LD-ld} -32"
6614 ;;
6615 *N32*)
6616 LD="${LD-ld} -n32"
6617 ;;
6618 *64-bit*)
6619 LD="${LD-ld} -64"
6620 ;;
6621 esac
6622 fi
6623 fi
6624 rm -rf conftest*
6625 ;;
6626
6627 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6628 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6629 # Find out which ABI we are using.
6630 echo 'int i;' > conftest.$ac_ext
6631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6632 (eval $ac_compile) 2>&5
6633 ac_status=$?
6634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6635 test $ac_status = 0; }; then
6636 case `/usr/bin/file conftest.o` in
6637 *32-bit*)
6638 case $host in
6639 x86_64-*kfreebsd*-gnu)
6640 LD="${LD-ld} -m elf_i386_fbsd"
6641 ;;
6642 x86_64-*linux*)
6643 case `/usr/bin/file conftest.o` in
6644 *x86-64*)
6645 LD="${LD-ld} -m elf32_x86_64"
6646 ;;
6647 *)
6648 LD="${LD-ld} -m elf_i386"
6649 ;;
6650 esac
6651 ;;
6652 powerpc64le-*)
6653 LD="${LD-ld} -m elf32lppclinux"
6654 ;;
6655 powerpc64-*)
6656 LD="${LD-ld} -m elf32ppclinux"
6657 ;;
6658 s390x-*linux*)
6659 LD="${LD-ld} -m elf_s390"
6660 ;;
6661 sparc64-*linux*)
6662 LD="${LD-ld} -m elf32_sparc"
6663 ;;
6664 esac
6665 ;;
6666 *64-bit*)
6667 case $host in
6668 x86_64-*kfreebsd*-gnu)
6669 LD="${LD-ld} -m elf_x86_64_fbsd"
6670 ;;
6671 x86_64-*linux*)
6672 LD="${LD-ld} -m elf_x86_64"
6673 ;;
6674 powerpcle-*)
6675 LD="${LD-ld} -m elf64lppc"
6676 ;;
6677 powerpc-*)
6678 LD="${LD-ld} -m elf64ppc"
6679 ;;
6680 s390*-*linux*|s390*-*tpf*)
6681 LD="${LD-ld} -m elf64_s390"
6682 ;;
6683 sparc*-*linux*)
6684 LD="${LD-ld} -m elf64_sparc"
6685 ;;
6686 esac
6687 ;;
6688 esac
6689 fi
6690 rm -rf conftest*
6691 ;;
6692
6693 *-*-sco3.2v5*)
6694 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6695 SAVE_CFLAGS="$CFLAGS"
6696 CFLAGS="$CFLAGS -belf"
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6698 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6699 if ${lt_cv_cc_needs_belf+:} false; then :
6700 $as_echo_n "(cached) " >&6
6701 else
6702 ac_ext=c
6703 ac_cpp='$CPP $CPPFLAGS'
6704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6707
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6710
6711 int
6712 main ()
6713 {
6714
6715 ;
6716 return 0;
6717 }
6718 _ACEOF
6719 if ac_fn_c_try_link "$LINENO"; then :
6720 lt_cv_cc_needs_belf=yes
6721 else
6722 lt_cv_cc_needs_belf=no
6723 fi
6724 rm -f core conftest.err conftest.$ac_objext \
6725 conftest$ac_exeext conftest.$ac_ext
6726 ac_ext=c
6727 ac_cpp='$CPP $CPPFLAGS'
6728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6731
6732 fi
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6734 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6735 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6736 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6737 CFLAGS="$SAVE_CFLAGS"
6738 fi
6739 ;;
6740 *-*solaris*)
6741 # Find out which ABI we are using.
6742 echo 'int i;' > conftest.$ac_ext
6743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6744 (eval $ac_compile) 2>&5
6745 ac_status=$?
6746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6747 test $ac_status = 0; }; then
6748 case `/usr/bin/file conftest.o` in
6749 *64-bit*)
6750 case $lt_cv_prog_gnu_ld in
6751 yes*)
6752 case $host in
6753 i?86-*-solaris*)
6754 LD="${LD-ld} -m elf_x86_64"
6755 ;;
6756 sparc*-*-solaris*)
6757 LD="${LD-ld} -m elf64_sparc"
6758 ;;
6759 esac
6760 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6761 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6762 LD="${LD-ld}_sol2"
6763 fi
6764 ;;
6765 *)
6766 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6767 LD="${LD-ld} -64"
6768 fi
6769 ;;
6770 esac
6771 ;;
6772 esac
6773 fi
6774 rm -rf conftest*
6775 ;;
6776 esac
6777
6778 need_locks="$enable_libtool_lock"
6779
6780 if test -n "$ac_tool_prefix"; then
6781 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6782 set dummy ${ac_tool_prefix}mt; ac_word=$2
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784 $as_echo_n "checking for $ac_word... " >&6; }
6785 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6786 $as_echo_n "(cached) " >&6
6787 else
6788 if test -n "$MANIFEST_TOOL"; then
6789 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6790 else
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6793 do
6794 IFS=$as_save_IFS
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6798 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 break 2
6801 fi
6802 done
6803 done
6804 IFS=$as_save_IFS
6805
6806 fi
6807 fi
6808 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6809 if test -n "$MANIFEST_TOOL"; then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6811 $as_echo "$MANIFEST_TOOL" >&6; }
6812 else
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814 $as_echo "no" >&6; }
6815 fi
6816
6817
6818 fi
6819 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6820 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6821 # Extract the first word of "mt", so it can be a program name with args.
6822 set dummy mt; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 if test -n "$ac_ct_MANIFEST_TOOL"; then
6829 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834 IFS=$as_save_IFS
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6838 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 break 2
6841 fi
6842 done
6843 done
6844 IFS=$as_save_IFS
6845
6846 fi
6847 fi
6848 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6849 if test -n "$ac_ct_MANIFEST_TOOL"; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6851 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6852 else
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6855 fi
6856
6857 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6858 MANIFEST_TOOL=":"
6859 else
6860 case $cross_compiling:$ac_tool_warned in
6861 yes:)
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6864 ac_tool_warned=yes ;;
6865 esac
6866 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6867 fi
6868 else
6869 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6870 fi
6871
6872 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6874 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6875 if ${lt_cv_path_mainfest_tool+:} false; then :
6876 $as_echo_n "(cached) " >&6
6877 else
6878 lt_cv_path_mainfest_tool=no
6879 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6880 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6881 cat conftest.err >&5
6882 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6883 lt_cv_path_mainfest_tool=yes
6884 fi
6885 rm -f conftest*
6886 fi
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6888 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6889 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6890 MANIFEST_TOOL=:
6891 fi
6892
6893
6894
6895
6896
6897
6898 case $host_os in
6899 rhapsody* | darwin*)
6900 if test -n "$ac_tool_prefix"; then
6901 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6902 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904 $as_echo_n "checking for $ac_word... " >&6; }
6905 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6906 $as_echo_n "(cached) " >&6
6907 else
6908 if test -n "$DSYMUTIL"; then
6909 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6910 else
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 for as_dir in $PATH
6913 do
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6918 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 break 2
6921 fi
6922 done
6923 done
6924 IFS=$as_save_IFS
6925
6926 fi
6927 fi
6928 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6929 if test -n "$DSYMUTIL"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6931 $as_echo "$DSYMUTIL" >&6; }
6932 else
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934 $as_echo "no" >&6; }
6935 fi
6936
6937
6938 fi
6939 if test -z "$ac_cv_prog_DSYMUTIL"; then
6940 ac_ct_DSYMUTIL=$DSYMUTIL
6941 # Extract the first word of "dsymutil", so it can be a program name with args.
6942 set dummy dsymutil; ac_word=$2
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944 $as_echo_n "checking for $ac_word... " >&6; }
6945 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6946 $as_echo_n "(cached) " >&6
6947 else
6948 if test -n "$ac_ct_DSYMUTIL"; then
6949 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6950 else
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6953 do
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6958 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 break 2
6961 fi
6962 done
6963 done
6964 IFS=$as_save_IFS
6965
6966 fi
6967 fi
6968 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6969 if test -n "$ac_ct_DSYMUTIL"; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6971 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6972 else
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 $as_echo "no" >&6; }
6975 fi
6976
6977 if test "x$ac_ct_DSYMUTIL" = x; then
6978 DSYMUTIL=":"
6979 else
6980 case $cross_compiling:$ac_tool_warned in
6981 yes:)
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6984 ac_tool_warned=yes ;;
6985 esac
6986 DSYMUTIL=$ac_ct_DSYMUTIL
6987 fi
6988 else
6989 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6990 fi
6991
6992 if test -n "$ac_tool_prefix"; then
6993 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6994 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996 $as_echo_n "checking for $ac_word... " >&6; }
6997 if ${ac_cv_prog_NMEDIT+:} false; then :
6998 $as_echo_n "(cached) " >&6
6999 else
7000 if test -n "$NMEDIT"; then
7001 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7002 else
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 for as_dir in $PATH
7005 do
7006 IFS=$as_save_IFS
7007 test -z "$as_dir" && as_dir=.
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7010 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 break 2
7013 fi
7014 done
7015 done
7016 IFS=$as_save_IFS
7017
7018 fi
7019 fi
7020 NMEDIT=$ac_cv_prog_NMEDIT
7021 if test -n "$NMEDIT"; then
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7023 $as_echo "$NMEDIT" >&6; }
7024 else
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026 $as_echo "no" >&6; }
7027 fi
7028
7029
7030 fi
7031 if test -z "$ac_cv_prog_NMEDIT"; then
7032 ac_ct_NMEDIT=$NMEDIT
7033 # Extract the first word of "nmedit", so it can be a program name with args.
7034 set dummy nmedit; ac_word=$2
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036 $as_echo_n "checking for $ac_word... " >&6; }
7037 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7038 $as_echo_n "(cached) " >&6
7039 else
7040 if test -n "$ac_ct_NMEDIT"; then
7041 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7042 else
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH
7045 do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7050 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 break 2
7053 fi
7054 done
7055 done
7056 IFS=$as_save_IFS
7057
7058 fi
7059 fi
7060 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7061 if test -n "$ac_ct_NMEDIT"; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7063 $as_echo "$ac_ct_NMEDIT" >&6; }
7064 else
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 $as_echo "no" >&6; }
7067 fi
7068
7069 if test "x$ac_ct_NMEDIT" = x; then
7070 NMEDIT=":"
7071 else
7072 case $cross_compiling:$ac_tool_warned in
7073 yes:)
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7076 ac_tool_warned=yes ;;
7077 esac
7078 NMEDIT=$ac_ct_NMEDIT
7079 fi
7080 else
7081 NMEDIT="$ac_cv_prog_NMEDIT"
7082 fi
7083
7084 if test -n "$ac_tool_prefix"; then
7085 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7086 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7088 $as_echo_n "checking for $ac_word... " >&6; }
7089 if ${ac_cv_prog_LIPO+:} false; then :
7090 $as_echo_n "(cached) " >&6
7091 else
7092 if test -n "$LIPO"; then
7093 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7094 else
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7097 do
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7102 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 break 2
7105 fi
7106 done
7107 done
7108 IFS=$as_save_IFS
7109
7110 fi
7111 fi
7112 LIPO=$ac_cv_prog_LIPO
7113 if test -n "$LIPO"; then
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7115 $as_echo "$LIPO" >&6; }
7116 else
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118 $as_echo "no" >&6; }
7119 fi
7120
7121
7122 fi
7123 if test -z "$ac_cv_prog_LIPO"; then
7124 ac_ct_LIPO=$LIPO
7125 # Extract the first word of "lipo", so it can be a program name with args.
7126 set dummy lipo; ac_word=$2
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128 $as_echo_n "checking for $ac_word... " >&6; }
7129 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7130 $as_echo_n "(cached) " >&6
7131 else
7132 if test -n "$ac_ct_LIPO"; then
7133 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7142 ac_cv_prog_ac_ct_LIPO="lipo"
7143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 break 2
7145 fi
7146 done
7147 done
7148 IFS=$as_save_IFS
7149
7150 fi
7151 fi
7152 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7153 if test -n "$ac_ct_LIPO"; then
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7155 $as_echo "$ac_ct_LIPO" >&6; }
7156 else
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 $as_echo "no" >&6; }
7159 fi
7160
7161 if test "x$ac_ct_LIPO" = x; then
7162 LIPO=":"
7163 else
7164 case $cross_compiling:$ac_tool_warned in
7165 yes:)
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7168 ac_tool_warned=yes ;;
7169 esac
7170 LIPO=$ac_ct_LIPO
7171 fi
7172 else
7173 LIPO="$ac_cv_prog_LIPO"
7174 fi
7175
7176 if test -n "$ac_tool_prefix"; then
7177 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7178 set dummy ${ac_tool_prefix}otool; ac_word=$2
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7180 $as_echo_n "checking for $ac_word... " >&6; }
7181 if ${ac_cv_prog_OTOOL+:} false; then :
7182 $as_echo_n "(cached) " >&6
7183 else
7184 if test -n "$OTOOL"; then
7185 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7186 else
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 for as_dir in $PATH
7189 do
7190 IFS=$as_save_IFS
7191 test -z "$as_dir" && as_dir=.
7192 for ac_exec_ext in '' $ac_executable_extensions; do
7193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7194 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 break 2
7197 fi
7198 done
7199 done
7200 IFS=$as_save_IFS
7201
7202 fi
7203 fi
7204 OTOOL=$ac_cv_prog_OTOOL
7205 if test -n "$OTOOL"; then
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7207 $as_echo "$OTOOL" >&6; }
7208 else
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7210 $as_echo "no" >&6; }
7211 fi
7212
7213
7214 fi
7215 if test -z "$ac_cv_prog_OTOOL"; then
7216 ac_ct_OTOOL=$OTOOL
7217 # Extract the first word of "otool", so it can be a program name with args.
7218 set dummy otool; ac_word=$2
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220 $as_echo_n "checking for $ac_word... " >&6; }
7221 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7222 $as_echo_n "(cached) " >&6
7223 else
7224 if test -n "$ac_ct_OTOOL"; then
7225 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7226 else
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 for as_dir in $PATH
7229 do
7230 IFS=$as_save_IFS
7231 test -z "$as_dir" && as_dir=.
7232 for ac_exec_ext in '' $ac_executable_extensions; do
7233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7234 ac_cv_prog_ac_ct_OTOOL="otool"
7235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7236 break 2
7237 fi
7238 done
7239 done
7240 IFS=$as_save_IFS
7241
7242 fi
7243 fi
7244 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7245 if test -n "$ac_ct_OTOOL"; then
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7247 $as_echo "$ac_ct_OTOOL" >&6; }
7248 else
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250 $as_echo "no" >&6; }
7251 fi
7252
7253 if test "x$ac_ct_OTOOL" = x; then
7254 OTOOL=":"
7255 else
7256 case $cross_compiling:$ac_tool_warned in
7257 yes:)
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7260 ac_tool_warned=yes ;;
7261 esac
7262 OTOOL=$ac_ct_OTOOL
7263 fi
7264 else
7265 OTOOL="$ac_cv_prog_OTOOL"
7266 fi
7267
7268 if test -n "$ac_tool_prefix"; then
7269 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7270 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7272 $as_echo_n "checking for $ac_word... " >&6; }
7273 if ${ac_cv_prog_OTOOL64+:} false; then :
7274 $as_echo_n "(cached) " >&6
7275 else
7276 if test -n "$OTOOL64"; then
7277 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7278 else
7279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 for as_dir in $PATH
7281 do
7282 IFS=$as_save_IFS
7283 test -z "$as_dir" && as_dir=.
7284 for ac_exec_ext in '' $ac_executable_extensions; do
7285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7286 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 break 2
7289 fi
7290 done
7291 done
7292 IFS=$as_save_IFS
7293
7294 fi
7295 fi
7296 OTOOL64=$ac_cv_prog_OTOOL64
7297 if test -n "$OTOOL64"; then
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7299 $as_echo "$OTOOL64" >&6; }
7300 else
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302 $as_echo "no" >&6; }
7303 fi
7304
7305
7306 fi
7307 if test -z "$ac_cv_prog_OTOOL64"; then
7308 ac_ct_OTOOL64=$OTOOL64
7309 # Extract the first word of "otool64", so it can be a program name with args.
7310 set dummy otool64; ac_word=$2
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312 $as_echo_n "checking for $ac_word... " >&6; }
7313 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7314 $as_echo_n "(cached) " >&6
7315 else
7316 if test -n "$ac_ct_OTOOL64"; then
7317 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7318 else
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7321 do
7322 IFS=$as_save_IFS
7323 test -z "$as_dir" && as_dir=.
7324 for ac_exec_ext in '' $ac_executable_extensions; do
7325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7326 ac_cv_prog_ac_ct_OTOOL64="otool64"
7327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 break 2
7329 fi
7330 done
7331 done
7332 IFS=$as_save_IFS
7333
7334 fi
7335 fi
7336 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7337 if test -n "$ac_ct_OTOOL64"; then
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7339 $as_echo "$ac_ct_OTOOL64" >&6; }
7340 else
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342 $as_echo "no" >&6; }
7343 fi
7344
7345 if test "x$ac_ct_OTOOL64" = x; then
7346 OTOOL64=":"
7347 else
7348 case $cross_compiling:$ac_tool_warned in
7349 yes:)
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7352 ac_tool_warned=yes ;;
7353 esac
7354 OTOOL64=$ac_ct_OTOOL64
7355 fi
7356 else
7357 OTOOL64="$ac_cv_prog_OTOOL64"
7358 fi
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7387 $as_echo_n "checking for -single_module linker flag... " >&6; }
7388 if ${lt_cv_apple_cc_single_mod+:} false; then :
7389 $as_echo_n "(cached) " >&6
7390 else
7391 lt_cv_apple_cc_single_mod=no
7392 if test -z "${LT_MULTI_MODULE}"; then
7393 # By default we will add the -single_module flag. You can override
7394 # by either setting the environment variable LT_MULTI_MODULE
7395 # non-empty at configure time, or by adding -multi_module to the
7396 # link flags.
7397 rm -rf libconftest.dylib*
7398 echo "int foo(void){return 1;}" > conftest.c
7399 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7400 -dynamiclib -Wl,-single_module conftest.c" >&5
7401 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7402 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7403 _lt_result=$?
7404 # If there is a non-empty error log, and "single_module"
7405 # appears in it, assume the flag caused a linker warning
7406 if test -s conftest.err && $GREP single_module conftest.err; then
7407 cat conftest.err >&5
7408 # Otherwise, if the output was created with a 0 exit code from
7409 # the compiler, it worked.
7410 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7411 lt_cv_apple_cc_single_mod=yes
7412 else
7413 cat conftest.err >&5
7414 fi
7415 rm -rf libconftest.dylib*
7416 rm -f conftest.*
7417 fi
7418 fi
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7420 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7421
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7423 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7424 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7425 $as_echo_n "(cached) " >&6
7426 else
7427 lt_cv_ld_exported_symbols_list=no
7428 save_LDFLAGS=$LDFLAGS
7429 echo "_main" > conftest.sym
7430 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7433
7434 int
7435 main ()
7436 {
7437
7438 ;
7439 return 0;
7440 }
7441 _ACEOF
7442 if ac_fn_c_try_link "$LINENO"; then :
7443 lt_cv_ld_exported_symbols_list=yes
7444 else
7445 lt_cv_ld_exported_symbols_list=no
7446 fi
7447 rm -f core conftest.err conftest.$ac_objext \
7448 conftest$ac_exeext conftest.$ac_ext
7449 LDFLAGS="$save_LDFLAGS"
7450
7451 fi
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7453 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7454
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7456 $as_echo_n "checking for -force_load linker flag... " >&6; }
7457 if ${lt_cv_ld_force_load+:} false; then :
7458 $as_echo_n "(cached) " >&6
7459 else
7460 lt_cv_ld_force_load=no
7461 cat > conftest.c << _LT_EOF
7462 int forced_loaded() { return 2;}
7463 _LT_EOF
7464 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7465 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7466 echo "$AR cru libconftest.a conftest.o" >&5
7467 $AR cru libconftest.a conftest.o 2>&5
7468 echo "$RANLIB libconftest.a" >&5
7469 $RANLIB libconftest.a 2>&5
7470 cat > conftest.c << _LT_EOF
7471 int main() { return 0;}
7472 _LT_EOF
7473 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7474 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7475 _lt_result=$?
7476 if test -s conftest.err && $GREP force_load conftest.err; then
7477 cat conftest.err >&5
7478 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7479 lt_cv_ld_force_load=yes
7480 else
7481 cat conftest.err >&5
7482 fi
7483 rm -f conftest.err libconftest.a conftest conftest.c
7484 rm -rf conftest.dSYM
7485
7486 fi
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7488 $as_echo "$lt_cv_ld_force_load" >&6; }
7489 case $host_os in
7490 rhapsody* | darwin1.[012])
7491 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7492 darwin1.*)
7493 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7494 darwin*) # darwin 5.x on
7495 # if running on 10.5 or later, the deployment target defaults
7496 # to the OS version, if on x86, and 10.4, the deployment
7497 # target defaults to 10.4. Don't you love it?
7498 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7499 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7500 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7501 10.[012]*)
7502 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7503 10.*)
7504 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7505 esac
7506 ;;
7507 esac
7508 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7509 _lt_dar_single_mod='$single_module'
7510 fi
7511 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7512 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7513 else
7514 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7515 fi
7516 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7517 _lt_dsymutil='~$DSYMUTIL $lib || :'
7518 else
7519 _lt_dsymutil=
7520 fi
7521 ;;
7522 esac
7523
7524 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7525 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7526 inttypes.h stdint.h unistd.h
7527 do :
7528 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7529 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7530 "
7531 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7532 cat >>confdefs.h <<_ACEOF
7533 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7534 _ACEOF
7535
7536 fi
7537
7538 done
7539
7540
7541 for ac_header in dlfcn.h
7542 do :
7543 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7544 "
7545 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7546 cat >>confdefs.h <<_ACEOF
7547 #define HAVE_DLFCN_H 1
7548 _ACEOF
7549
7550 fi
7551
7552 done
7553
7554
7555
7556
7557
7558 # Set options
7559 enable_win32_dll=yes
7560
7561 case $host in
7562 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7563 if test -n "$ac_tool_prefix"; then
7564 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7565 set dummy ${ac_tool_prefix}as; ac_word=$2
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7567 $as_echo_n "checking for $ac_word... " >&6; }
7568 if ${ac_cv_prog_AS+:} false; then :
7569 $as_echo_n "(cached) " >&6
7570 else
7571 if test -n "$AS"; then
7572 ac_cv_prog_AS="$AS" # Let the user override the test.
7573 else
7574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575 for as_dir in $PATH
7576 do
7577 IFS=$as_save_IFS
7578 test -z "$as_dir" && as_dir=.
7579 for ac_exec_ext in '' $ac_executable_extensions; do
7580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7581 ac_cv_prog_AS="${ac_tool_prefix}as"
7582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7583 break 2
7584 fi
7585 done
7586 done
7587 IFS=$as_save_IFS
7588
7589 fi
7590 fi
7591 AS=$ac_cv_prog_AS
7592 if test -n "$AS"; then
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7594 $as_echo "$AS" >&6; }
7595 else
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7597 $as_echo "no" >&6; }
7598 fi
7599
7600
7601 fi
7602 if test -z "$ac_cv_prog_AS"; then
7603 ac_ct_AS=$AS
7604 # Extract the first word of "as", so it can be a program name with args.
7605 set dummy as; ac_word=$2
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607 $as_echo_n "checking for $ac_word... " >&6; }
7608 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7609 $as_echo_n "(cached) " >&6
7610 else
7611 if test -n "$ac_ct_AS"; then
7612 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7613 else
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 for as_dir in $PATH
7616 do
7617 IFS=$as_save_IFS
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7621 ac_cv_prog_ac_ct_AS="as"
7622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 break 2
7624 fi
7625 done
7626 done
7627 IFS=$as_save_IFS
7628
7629 fi
7630 fi
7631 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7632 if test -n "$ac_ct_AS"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7634 $as_echo "$ac_ct_AS" >&6; }
7635 else
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7638 fi
7639
7640 if test "x$ac_ct_AS" = x; then
7641 AS="false"
7642 else
7643 case $cross_compiling:$ac_tool_warned in
7644 yes:)
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7647 ac_tool_warned=yes ;;
7648 esac
7649 AS=$ac_ct_AS
7650 fi
7651 else
7652 AS="$ac_cv_prog_AS"
7653 fi
7654
7655 if test -n "$ac_tool_prefix"; then
7656 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7657 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7659 $as_echo_n "checking for $ac_word... " >&6; }
7660 if ${ac_cv_prog_DLLTOOL+:} false; then :
7661 $as_echo_n "(cached) " >&6
7662 else
7663 if test -n "$DLLTOOL"; then
7664 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7665 else
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 for as_dir in $PATH
7668 do
7669 IFS=$as_save_IFS
7670 test -z "$as_dir" && as_dir=.
7671 for ac_exec_ext in '' $ac_executable_extensions; do
7672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7673 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7675 break 2
7676 fi
7677 done
7678 done
7679 IFS=$as_save_IFS
7680
7681 fi
7682 fi
7683 DLLTOOL=$ac_cv_prog_DLLTOOL
7684 if test -n "$DLLTOOL"; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7686 $as_echo "$DLLTOOL" >&6; }
7687 else
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7690 fi
7691
7692
7693 fi
7694 if test -z "$ac_cv_prog_DLLTOOL"; then
7695 ac_ct_DLLTOOL=$DLLTOOL
7696 # Extract the first word of "dlltool", so it can be a program name with args.
7697 set dummy dlltool; ac_word=$2
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699 $as_echo_n "checking for $ac_word... " >&6; }
7700 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7701 $as_echo_n "(cached) " >&6
7702 else
7703 if test -n "$ac_ct_DLLTOOL"; then
7704 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7705 else
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 for as_dir in $PATH
7708 do
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7713 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 break 2
7716 fi
7717 done
7718 done
7719 IFS=$as_save_IFS
7720
7721 fi
7722 fi
7723 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7724 if test -n "$ac_ct_DLLTOOL"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7726 $as_echo "$ac_ct_DLLTOOL" >&6; }
7727 else
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7730 fi
7731
7732 if test "x$ac_ct_DLLTOOL" = x; then
7733 DLLTOOL="false"
7734 else
7735 case $cross_compiling:$ac_tool_warned in
7736 yes:)
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7739 ac_tool_warned=yes ;;
7740 esac
7741 DLLTOOL=$ac_ct_DLLTOOL
7742 fi
7743 else
7744 DLLTOOL="$ac_cv_prog_DLLTOOL"
7745 fi
7746
7747 if test -n "$ac_tool_prefix"; then
7748 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7749 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7751 $as_echo_n "checking for $ac_word... " >&6; }
7752 if ${ac_cv_prog_OBJDUMP+:} false; then :
7753 $as_echo_n "(cached) " >&6
7754 else
7755 if test -n "$OBJDUMP"; then
7756 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7757 else
7758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759 for as_dir in $PATH
7760 do
7761 IFS=$as_save_IFS
7762 test -z "$as_dir" && as_dir=.
7763 for ac_exec_ext in '' $ac_executable_extensions; do
7764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7765 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7767 break 2
7768 fi
7769 done
7770 done
7771 IFS=$as_save_IFS
7772
7773 fi
7774 fi
7775 OBJDUMP=$ac_cv_prog_OBJDUMP
7776 if test -n "$OBJDUMP"; then
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7778 $as_echo "$OBJDUMP" >&6; }
7779 else
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781 $as_echo "no" >&6; }
7782 fi
7783
7784
7785 fi
7786 if test -z "$ac_cv_prog_OBJDUMP"; then
7787 ac_ct_OBJDUMP=$OBJDUMP
7788 # Extract the first word of "objdump", so it can be a program name with args.
7789 set dummy objdump; ac_word=$2
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7791 $as_echo_n "checking for $ac_word... " >&6; }
7792 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7793 $as_echo_n "(cached) " >&6
7794 else
7795 if test -n "$ac_ct_OBJDUMP"; then
7796 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7797 else
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 for as_dir in $PATH
7800 do
7801 IFS=$as_save_IFS
7802 test -z "$as_dir" && as_dir=.
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7805 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 break 2
7808 fi
7809 done
7810 done
7811 IFS=$as_save_IFS
7812
7813 fi
7814 fi
7815 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7816 if test -n "$ac_ct_OBJDUMP"; then
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7818 $as_echo "$ac_ct_OBJDUMP" >&6; }
7819 else
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821 $as_echo "no" >&6; }
7822 fi
7823
7824 if test "x$ac_ct_OBJDUMP" = x; then
7825 OBJDUMP="false"
7826 else
7827 case $cross_compiling:$ac_tool_warned in
7828 yes:)
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7831 ac_tool_warned=yes ;;
7832 esac
7833 OBJDUMP=$ac_ct_OBJDUMP
7834 fi
7835 else
7836 OBJDUMP="$ac_cv_prog_OBJDUMP"
7837 fi
7838
7839 ;;
7840 esac
7841
7842 test -z "$AS" && AS=as
7843
7844
7845
7846
7847
7848 test -z "$DLLTOOL" && DLLTOOL=dlltool
7849
7850
7851
7852
7853
7854 test -z "$OBJDUMP" && OBJDUMP=objdump
7855
7856
7857
7858
7859 # Check whether --enable-shared was given.
7860 if test "${enable_shared+set}" = set; then :
7861 enableval=$enable_shared; p=${PACKAGE-default}
7862 case $enableval in
7863 yes) enable_shared=yes ;;
7864 no) enable_shared=no ;;
7865 *)
7866 enable_shared=no
7867 # Look at the argument we got. We use all the common list separators.
7868 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7869 for pkg in $enableval; do
7870 IFS="$lt_save_ifs"
7871 if test "X$pkg" = "X$p"; then
7872 enable_shared=yes
7873 fi
7874 done
7875 IFS="$lt_save_ifs"
7876 ;;
7877 esac
7878 else
7879 enable_shared=no
7880 fi
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891 enable_dlopen=no
7892
7893
7894
7895
7896 # Check whether --enable-static was given.
7897 if test "${enable_static+set}" = set; then :
7898 enableval=$enable_static; p=${PACKAGE-default}
7899 case $enableval in
7900 yes) enable_static=yes ;;
7901 no) enable_static=no ;;
7902 *)
7903 enable_static=no
7904 # Look at the argument we got. We use all the common list separators.
7905 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7906 for pkg in $enableval; do
7907 IFS="$lt_save_ifs"
7908 if test "X$pkg" = "X$p"; then
7909 enable_static=yes
7910 fi
7911 done
7912 IFS="$lt_save_ifs"
7913 ;;
7914 esac
7915 else
7916 enable_static=yes
7917 fi
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928 # Check whether --with-pic was given.
7929 if test "${with_pic+set}" = set; then :
7930 withval=$with_pic; lt_p=${PACKAGE-default}
7931 case $withval in
7932 yes|no) pic_mode=$withval ;;
7933 *)
7934 pic_mode=default
7935 # Look at the argument we got. We use all the common list separators.
7936 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7937 for lt_pkg in $withval; do
7938 IFS="$lt_save_ifs"
7939 if test "X$lt_pkg" = "X$lt_p"; then
7940 pic_mode=yes
7941 fi
7942 done
7943 IFS="$lt_save_ifs"
7944 ;;
7945 esac
7946 else
7947 pic_mode=default
7948 fi
7949
7950
7951 test -z "$pic_mode" && pic_mode=default
7952
7953
7954
7955
7956
7957
7958
7959 # Check whether --enable-fast-install was given.
7960 if test "${enable_fast_install+set}" = set; then :
7961 enableval=$enable_fast_install; p=${PACKAGE-default}
7962 case $enableval in
7963 yes) enable_fast_install=yes ;;
7964 no) enable_fast_install=no ;;
7965 *)
7966 enable_fast_install=no
7967 # Look at the argument we got. We use all the common list separators.
7968 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7969 for pkg in $enableval; do
7970 IFS="$lt_save_ifs"
7971 if test "X$pkg" = "X$p"; then
7972 enable_fast_install=yes
7973 fi
7974 done
7975 IFS="$lt_save_ifs"
7976 ;;
7977 esac
7978 else
7979 enable_fast_install=yes
7980 fi
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992 # This can be used to rebuild libtool when needed
7993 LIBTOOL_DEPS="$ltmain"
7994
7995 # Always use our own libtool.
7996 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027 test -z "$LN_S" && LN_S="ln -s"
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042 if test -n "${ZSH_VERSION+set}" ; then
8043 setopt NO_GLOB_SUBST
8044 fi
8045
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8047 $as_echo_n "checking for objdir... " >&6; }
8048 if ${lt_cv_objdir+:} false; then :
8049 $as_echo_n "(cached) " >&6
8050 else
8051 rm -f .libs 2>/dev/null
8052 mkdir .libs 2>/dev/null
8053 if test -d .libs; then
8054 lt_cv_objdir=.libs
8055 else
8056 # MS-DOS does not allow filenames that begin with a dot.
8057 lt_cv_objdir=_libs
8058 fi
8059 rmdir .libs 2>/dev/null
8060 fi
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8062 $as_echo "$lt_cv_objdir" >&6; }
8063 objdir=$lt_cv_objdir
8064
8065
8066
8067
8068
8069 cat >>confdefs.h <<_ACEOF
8070 #define LT_OBJDIR "$lt_cv_objdir/"
8071 _ACEOF
8072
8073
8074
8075
8076 case $host_os in
8077 aix3*)
8078 # AIX sometimes has problems with the GCC collect2 program. For some
8079 # reason, if we set the COLLECT_NAMES environment variable, the problems
8080 # vanish in a puff of smoke.
8081 if test "X${COLLECT_NAMES+set}" != Xset; then
8082 COLLECT_NAMES=
8083 export COLLECT_NAMES
8084 fi
8085 ;;
8086 esac
8087
8088 # Global variables:
8089 ofile=libtool
8090 can_build_shared=yes
8091
8092 # All known linkers require a `.a' archive for static linking (except MSVC,
8093 # which needs '.lib').
8094 libext=a
8095
8096 with_gnu_ld="$lt_cv_prog_gnu_ld"
8097
8098 old_CC="$CC"
8099 old_CFLAGS="$CFLAGS"
8100
8101 # Set sane defaults for various variables
8102 test -z "$CC" && CC=cc
8103 test -z "$LTCC" && LTCC=$CC
8104 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8105 test -z "$LD" && LD=ld
8106 test -z "$ac_objext" && ac_objext=o
8107
8108 for cc_temp in $compiler""; do
8109 case $cc_temp in
8110 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8111 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8112 \-*) ;;
8113 *) break;;
8114 esac
8115 done
8116 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8117
8118
8119 # Only perform the check for file, if the check method requires it
8120 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8121 case $deplibs_check_method in
8122 file_magic*)
8123 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8125 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8126 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8127 $as_echo_n "(cached) " >&6
8128 else
8129 case $MAGIC_CMD in
8130 [\\/*] | ?:[\\/]*)
8131 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8132 ;;
8133 *)
8134 lt_save_MAGIC_CMD="$MAGIC_CMD"
8135 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8136 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8137 for ac_dir in $ac_dummy; do
8138 IFS="$lt_save_ifs"
8139 test -z "$ac_dir" && ac_dir=.
8140 if test -f $ac_dir/${ac_tool_prefix}file; then
8141 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8142 if test -n "$file_magic_test_file"; then
8143 case $deplibs_check_method in
8144 "file_magic "*)
8145 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8146 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8147 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8148 $EGREP "$file_magic_regex" > /dev/null; then
8149 :
8150 else
8151 cat <<_LT_EOF 1>&2
8152
8153 *** Warning: the command libtool uses to detect shared libraries,
8154 *** $file_magic_cmd, produces output that libtool cannot recognize.
8155 *** The result is that libtool may fail to recognize shared libraries
8156 *** as such. This will affect the creation of libtool libraries that
8157 *** depend on shared libraries, but programs linked with such libtool
8158 *** libraries will work regardless of this problem. Nevertheless, you
8159 *** may want to report the problem to your system manager and/or to
8160 *** [email protected]
8161
8162 _LT_EOF
8163 fi ;;
8164 esac
8165 fi
8166 break
8167 fi
8168 done
8169 IFS="$lt_save_ifs"
8170 MAGIC_CMD="$lt_save_MAGIC_CMD"
8171 ;;
8172 esac
8173 fi
8174
8175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8176 if test -n "$MAGIC_CMD"; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8178 $as_echo "$MAGIC_CMD" >&6; }
8179 else
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181 $as_echo "no" >&6; }
8182 fi
8183
8184
8185
8186
8187
8188 if test -z "$lt_cv_path_MAGIC_CMD"; then
8189 if test -n "$ac_tool_prefix"; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8191 $as_echo_n "checking for file... " >&6; }
8192 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8193 $as_echo_n "(cached) " >&6
8194 else
8195 case $MAGIC_CMD in
8196 [\\/*] | ?:[\\/]*)
8197 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8198 ;;
8199 *)
8200 lt_save_MAGIC_CMD="$MAGIC_CMD"
8201 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8202 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8203 for ac_dir in $ac_dummy; do
8204 IFS="$lt_save_ifs"
8205 test -z "$ac_dir" && ac_dir=.
8206 if test -f $ac_dir/file; then
8207 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8208 if test -n "$file_magic_test_file"; then
8209 case $deplibs_check_method in
8210 "file_magic "*)
8211 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8212 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8213 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8214 $EGREP "$file_magic_regex" > /dev/null; then
8215 :
8216 else
8217 cat <<_LT_EOF 1>&2
8218
8219 *** Warning: the command libtool uses to detect shared libraries,
8220 *** $file_magic_cmd, produces output that libtool cannot recognize.
8221 *** The result is that libtool may fail to recognize shared libraries
8222 *** as such. This will affect the creation of libtool libraries that
8223 *** depend on shared libraries, but programs linked with such libtool
8224 *** libraries will work regardless of this problem. Nevertheless, you
8225 *** may want to report the problem to your system manager and/or to
8226 *** [email protected]
8227
8228 _LT_EOF
8229 fi ;;
8230 esac
8231 fi
8232 break
8233 fi
8234 done
8235 IFS="$lt_save_ifs"
8236 MAGIC_CMD="$lt_save_MAGIC_CMD"
8237 ;;
8238 esac
8239 fi
8240
8241 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8242 if test -n "$MAGIC_CMD"; then
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8244 $as_echo "$MAGIC_CMD" >&6; }
8245 else
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247 $as_echo "no" >&6; }
8248 fi
8249
8250
8251 else
8252 MAGIC_CMD=:
8253 fi
8254 fi
8255
8256 fi
8257 ;;
8258 esac
8259
8260 # Use C for the default configuration in the libtool script
8261
8262 lt_save_CC="$CC"
8263 ac_ext=c
8264 ac_cpp='$CPP $CPPFLAGS'
8265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8268
8269
8270 # Source file extension for C test sources.
8271 ac_ext=c
8272
8273 # Object file extension for compiled C test sources.
8274 objext=o
8275 objext=$objext
8276
8277 # Code to be used in simple compile tests
8278 lt_simple_compile_test_code="int some_variable = 0;"
8279
8280 # Code to be used in simple link tests
8281 lt_simple_link_test_code='int main(){return(0);}'
8282
8283
8284
8285
8286
8287
8288
8289 # If no C compiler was specified, use CC.
8290 LTCC=${LTCC-"$CC"}
8291
8292 # If no C compiler flags were specified, use CFLAGS.
8293 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8294
8295 # Allow CC to be a program name with arguments.
8296 compiler=$CC
8297
8298 # Save the default compiler, since it gets overwritten when the other
8299 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8300 compiler_DEFAULT=$CC
8301
8302 # save warnings/boilerplate of simple test code
8303 ac_outfile=conftest.$ac_objext
8304 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8305 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8306 _lt_compiler_boilerplate=`cat conftest.err`
8307 $RM conftest*
8308
8309 ac_outfile=conftest.$ac_objext
8310 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8311 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8312 _lt_linker_boilerplate=`cat conftest.err`
8313 $RM -r conftest*
8314
8315
8316 ## CAVEAT EMPTOR:
8317 ## There is no encapsulation within the following macros, do not change
8318 ## the running order or otherwise move them around unless you know exactly
8319 ## what you are doing...
8320 if test -n "$compiler"; then
8321
8322 lt_prog_compiler_no_builtin_flag=
8323
8324 if test "$GCC" = yes; then
8325 case $cc_basename in
8326 nvcc*)
8327 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8328 *)
8329 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8330 esac
8331
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8333 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8334 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8335 $as_echo_n "(cached) " >&6
8336 else
8337 lt_cv_prog_compiler_rtti_exceptions=no
8338 ac_outfile=conftest.$ac_objext
8339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8340 lt_compiler_flag="-fno-rtti -fno-exceptions"
8341 # Insert the option either (1) after the last *FLAGS variable, or
8342 # (2) before a word containing "conftest.", or (3) at the end.
8343 # Note that $ac_compile itself does not contain backslashes and begins
8344 # with a dollar sign (not a hyphen), so the echo should work correctly.
8345 # The option is referenced via a variable to avoid confusing sed.
8346 lt_compile=`echo "$ac_compile" | $SED \
8347 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8349 -e 's:$: $lt_compiler_flag:'`
8350 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8351 (eval "$lt_compile" 2>conftest.err)
8352 ac_status=$?
8353 cat conftest.err >&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 if (exit $ac_status) && test -s "$ac_outfile"; then
8356 # The compiler can only warn and ignore the option if not recognized
8357 # So say no if there are warnings other than the usual output.
8358 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8359 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8360 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8361 lt_cv_prog_compiler_rtti_exceptions=yes
8362 fi
8363 fi
8364 $RM conftest*
8365
8366 fi
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8368 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8369
8370 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8371 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8372 else
8373 :
8374 fi
8375
8376 fi
8377
8378
8379
8380
8381
8382
8383 lt_prog_compiler_wl=
8384 lt_prog_compiler_pic=
8385 lt_prog_compiler_static=
8386
8387
8388 if test "$GCC" = yes; then
8389 lt_prog_compiler_wl='-Wl,'
8390 lt_prog_compiler_static='-static'
8391
8392 case $host_os in
8393 aix*)
8394 # All AIX code is PIC.
8395 if test "$host_cpu" = ia64; then
8396 # AIX 5 now supports IA64 processor
8397 lt_prog_compiler_static='-Bstatic'
8398 fi
8399 ;;
8400
8401 amigaos*)
8402 case $host_cpu in
8403 powerpc)
8404 # see comment about AmigaOS4 .so support
8405 lt_prog_compiler_pic='-fPIC'
8406 ;;
8407 m68k)
8408 # FIXME: we need at least 68020 code to build shared libraries, but
8409 # adding the `-m68020' flag to GCC prevents building anything better,
8410 # like `-m68040'.
8411 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8412 ;;
8413 esac
8414 ;;
8415
8416 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8417 # PIC is the default for these OSes.
8418 ;;
8419
8420 mingw* | cygwin* | pw32* | os2* | cegcc*)
8421 # This hack is so that the source file can tell whether it is being
8422 # built for inclusion in a dll (and should export symbols for example).
8423 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8424 # (--disable-auto-import) libraries
8425 lt_prog_compiler_pic='-DDLL_EXPORT'
8426 ;;
8427
8428 darwin* | rhapsody*)
8429 # PIC is the default on this platform
8430 # Common symbols not allowed in MH_DYLIB files
8431 lt_prog_compiler_pic='-fno-common'
8432 ;;
8433
8434 haiku*)
8435 # PIC is the default for Haiku.
8436 # The "-static" flag exists, but is broken.
8437 lt_prog_compiler_static=
8438 ;;
8439
8440 hpux*)
8441 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8442 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8443 # sets the default TLS model and affects inlining.
8444 case $host_cpu in
8445 hppa*64*)
8446 # +Z the default
8447 ;;
8448 *)
8449 lt_prog_compiler_pic='-fPIC'
8450 ;;
8451 esac
8452 ;;
8453
8454 interix[3-9]*)
8455 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8456 # Instead, we relocate shared libraries at runtime.
8457 ;;
8458
8459 msdosdjgpp*)
8460 # Just because we use GCC doesn't mean we suddenly get shared libraries
8461 # on systems that don't support them.
8462 lt_prog_compiler_can_build_shared=no
8463 enable_shared=no
8464 ;;
8465
8466 *nto* | *qnx*)
8467 # QNX uses GNU C++, but need to define -shared option too, otherwise
8468 # it will coredump.
8469 lt_prog_compiler_pic='-fPIC -shared'
8470 ;;
8471
8472 sysv4*MP*)
8473 if test -d /usr/nec; then
8474 lt_prog_compiler_pic=-Kconform_pic
8475 fi
8476 ;;
8477
8478 *)
8479 lt_prog_compiler_pic='-fPIC'
8480 ;;
8481 esac
8482
8483 case $cc_basename in
8484 nvcc*) # Cuda Compiler Driver 2.2
8485 lt_prog_compiler_wl='-Xlinker '
8486 if test -n "$lt_prog_compiler_pic"; then
8487 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8488 fi
8489 ;;
8490 esac
8491 else
8492 # PORTME Check for flag to pass linker flags through the system compiler.
8493 case $host_os in
8494 aix*)
8495 lt_prog_compiler_wl='-Wl,'
8496 if test "$host_cpu" = ia64; then
8497 # AIX 5 now supports IA64 processor
8498 lt_prog_compiler_static='-Bstatic'
8499 else
8500 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8501 fi
8502 ;;
8503
8504 mingw* | cygwin* | pw32* | os2* | cegcc*)
8505 # This hack is so that the source file can tell whether it is being
8506 # built for inclusion in a dll (and should export symbols for example).
8507 lt_prog_compiler_pic='-DDLL_EXPORT'
8508 ;;
8509
8510 hpux9* | hpux10* | hpux11*)
8511 lt_prog_compiler_wl='-Wl,'
8512 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8513 # not for PA HP-UX.
8514 case $host_cpu in
8515 hppa*64*|ia64*)
8516 # +Z the default
8517 ;;
8518 *)
8519 lt_prog_compiler_pic='+Z'
8520 ;;
8521 esac
8522 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8523 lt_prog_compiler_static='${wl}-a ${wl}archive'
8524 ;;
8525
8526 irix5* | irix6* | nonstopux*)
8527 lt_prog_compiler_wl='-Wl,'
8528 # PIC (with -KPIC) is the default.
8529 lt_prog_compiler_static='-non_shared'
8530 ;;
8531
8532 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8533 case $cc_basename in
8534 # old Intel for x86_64 which still supported -KPIC.
8535 ecc*)
8536 lt_prog_compiler_wl='-Wl,'
8537 lt_prog_compiler_pic='-KPIC'
8538 lt_prog_compiler_static='-static'
8539 ;;
8540 # icc used to be incompatible with GCC.
8541 # ICC 10 doesn't accept -KPIC any more.
8542 icc* | ifort*)
8543 lt_prog_compiler_wl='-Wl,'
8544 lt_prog_compiler_pic='-fPIC'
8545 lt_prog_compiler_static='-static'
8546 ;;
8547 # Lahey Fortran 8.1.
8548 lf95*)
8549 lt_prog_compiler_wl='-Wl,'
8550 lt_prog_compiler_pic='--shared'
8551 lt_prog_compiler_static='--static'
8552 ;;
8553 nagfor*)
8554 # NAG Fortran compiler
8555 lt_prog_compiler_wl='-Wl,-Wl,,'
8556 lt_prog_compiler_pic='-PIC'
8557 lt_prog_compiler_static='-Bstatic'
8558 ;;
8559 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8560 # Portland Group compilers (*not* the Pentium gcc compiler,
8561 # which looks to be a dead project)
8562 lt_prog_compiler_wl='-Wl,'
8563 lt_prog_compiler_pic='-fpic'
8564 lt_prog_compiler_static='-Bstatic'
8565 ;;
8566 ccc*)
8567 lt_prog_compiler_wl='-Wl,'
8568 # All Alpha code is PIC.
8569 lt_prog_compiler_static='-non_shared'
8570 ;;
8571 xl* | bgxl* | bgf* | mpixl*)
8572 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8573 lt_prog_compiler_wl='-Wl,'
8574 lt_prog_compiler_pic='-qpic'
8575 lt_prog_compiler_static='-qstaticlink'
8576 ;;
8577 *)
8578 case `$CC -V 2>&1 | sed 5q` in
8579 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8580 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8581 lt_prog_compiler_pic='-KPIC'
8582 lt_prog_compiler_static='-Bstatic'
8583 lt_prog_compiler_wl=''
8584 ;;
8585 *Sun\ F* | *Sun*Fortran*)
8586 lt_prog_compiler_pic='-KPIC'
8587 lt_prog_compiler_static='-Bstatic'
8588 lt_prog_compiler_wl='-Qoption ld '
8589 ;;
8590 *Sun\ C*)
8591 # Sun C 5.9
8592 lt_prog_compiler_pic='-KPIC'
8593 lt_prog_compiler_static='-Bstatic'
8594 lt_prog_compiler_wl='-Wl,'
8595 ;;
8596 *Intel*\ [CF]*Compiler*)
8597 lt_prog_compiler_wl='-Wl,'
8598 lt_prog_compiler_pic='-fPIC'
8599 lt_prog_compiler_static='-static'
8600 ;;
8601 *Portland\ Group*)
8602 lt_prog_compiler_wl='-Wl,'
8603 lt_prog_compiler_pic='-fpic'
8604 lt_prog_compiler_static='-Bstatic'
8605 ;;
8606 esac
8607 ;;
8608 esac
8609 ;;
8610
8611 newsos6)
8612 lt_prog_compiler_pic='-KPIC'
8613 lt_prog_compiler_static='-Bstatic'
8614 ;;
8615
8616 *nto* | *qnx*)
8617 # QNX uses GNU C++, but need to define -shared option too, otherwise
8618 # it will coredump.
8619 lt_prog_compiler_pic='-fPIC -shared'
8620 ;;
8621
8622 osf3* | osf4* | osf5*)
8623 lt_prog_compiler_wl='-Wl,'
8624 # All OSF/1 code is PIC.
8625 lt_prog_compiler_static='-non_shared'
8626 ;;
8627
8628 rdos*)
8629 lt_prog_compiler_static='-non_shared'
8630 ;;
8631
8632 solaris*)
8633 lt_prog_compiler_pic='-KPIC'
8634 lt_prog_compiler_static='-Bstatic'
8635 case $cc_basename in
8636 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8637 lt_prog_compiler_wl='-Qoption ld ';;
8638 *)
8639 lt_prog_compiler_wl='-Wl,';;
8640 esac
8641 ;;
8642
8643 sunos4*)
8644 lt_prog_compiler_wl='-Qoption ld '
8645 lt_prog_compiler_pic='-PIC'
8646 lt_prog_compiler_static='-Bstatic'
8647 ;;
8648
8649 sysv4 | sysv4.2uw2* | sysv4.3*)
8650 lt_prog_compiler_wl='-Wl,'
8651 lt_prog_compiler_pic='-KPIC'
8652 lt_prog_compiler_static='-Bstatic'
8653 ;;
8654
8655 sysv4*MP*)
8656 if test -d /usr/nec ;then
8657 lt_prog_compiler_pic='-Kconform_pic'
8658 lt_prog_compiler_static='-Bstatic'
8659 fi
8660 ;;
8661
8662 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8663 lt_prog_compiler_wl='-Wl,'
8664 lt_prog_compiler_pic='-KPIC'
8665 lt_prog_compiler_static='-Bstatic'
8666 ;;
8667
8668 unicos*)
8669 lt_prog_compiler_wl='-Wl,'
8670 lt_prog_compiler_can_build_shared=no
8671 ;;
8672
8673 uts4*)
8674 lt_prog_compiler_pic='-pic'
8675 lt_prog_compiler_static='-Bstatic'
8676 ;;
8677
8678 *)
8679 lt_prog_compiler_can_build_shared=no
8680 ;;
8681 esac
8682 fi
8683
8684 case $host_os in
8685 # For platforms which do not support PIC, -DPIC is meaningless:
8686 *djgpp*)
8687 lt_prog_compiler_pic=
8688 ;;
8689 *)
8690 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8691 ;;
8692 esac
8693
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8695 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8696 if ${lt_cv_prog_compiler_pic+:} false; then :
8697 $as_echo_n "(cached) " >&6
8698 else
8699 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8700 fi
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8702 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8703 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8704
8705 #
8706 # Check to make sure the PIC flag actually works.
8707 #
8708 if test -n "$lt_prog_compiler_pic"; then
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8710 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8711 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8712 $as_echo_n "(cached) " >&6
8713 else
8714 lt_cv_prog_compiler_pic_works=no
8715 ac_outfile=conftest.$ac_objext
8716 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8717 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8718 # Insert the option either (1) after the last *FLAGS variable, or
8719 # (2) before a word containing "conftest.", or (3) at the end.
8720 # Note that $ac_compile itself does not contain backslashes and begins
8721 # with a dollar sign (not a hyphen), so the echo should work correctly.
8722 # The option is referenced via a variable to avoid confusing sed.
8723 lt_compile=`echo "$ac_compile" | $SED \
8724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8726 -e 's:$: $lt_compiler_flag:'`
8727 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8728 (eval "$lt_compile" 2>conftest.err)
8729 ac_status=$?
8730 cat conftest.err >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 if (exit $ac_status) && test -s "$ac_outfile"; then
8733 # The compiler can only warn and ignore the option if not recognized
8734 # So say no if there are warnings other than the usual output.
8735 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8737 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8738 lt_cv_prog_compiler_pic_works=yes
8739 fi
8740 fi
8741 $RM conftest*
8742
8743 fi
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8745 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8746
8747 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8748 case $lt_prog_compiler_pic in
8749 "" | " "*) ;;
8750 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8751 esac
8752 else
8753 lt_prog_compiler_pic=
8754 lt_prog_compiler_can_build_shared=no
8755 fi
8756
8757 fi
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769 #
8770 # Check to make sure the static flag actually works.
8771 #
8772 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8774 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8775 if ${lt_cv_prog_compiler_static_works+:} false; then :
8776 $as_echo_n "(cached) " >&6
8777 else
8778 lt_cv_prog_compiler_static_works=no
8779 save_LDFLAGS="$LDFLAGS"
8780 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8781 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8782 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8783 # The linker can only warn and ignore the option if not recognized
8784 # So say no if there are warnings
8785 if test -s conftest.err; then
8786 # Append any errors to the config.log.
8787 cat conftest.err 1>&5
8788 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8790 if diff conftest.exp conftest.er2 >/dev/null; then
8791 lt_cv_prog_compiler_static_works=yes
8792 fi
8793 else
8794 lt_cv_prog_compiler_static_works=yes
8795 fi
8796 fi
8797 $RM -r conftest*
8798 LDFLAGS="$save_LDFLAGS"
8799
8800 fi
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8802 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8803
8804 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8805 :
8806 else
8807 lt_prog_compiler_static=
8808 fi
8809
8810
8811
8812
8813
8814
8815
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8817 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8818 if ${lt_cv_prog_compiler_c_o+:} false; then :
8819 $as_echo_n "(cached) " >&6
8820 else
8821 lt_cv_prog_compiler_c_o=no
8822 $RM -r conftest 2>/dev/null
8823 mkdir conftest
8824 cd conftest
8825 mkdir out
8826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8827
8828 lt_compiler_flag="-o out/conftest2.$ac_objext"
8829 # Insert the option either (1) after the last *FLAGS variable, or
8830 # (2) before a word containing "conftest.", or (3) at the end.
8831 # Note that $ac_compile itself does not contain backslashes and begins
8832 # with a dollar sign (not a hyphen), so the echo should work correctly.
8833 lt_compile=`echo "$ac_compile" | $SED \
8834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8836 -e 's:$: $lt_compiler_flag:'`
8837 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8838 (eval "$lt_compile" 2>out/conftest.err)
8839 ac_status=$?
8840 cat out/conftest.err >&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8843 then
8844 # The compiler can only warn and ignore the option if not recognized
8845 # So say no if there are warnings
8846 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8847 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8848 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8849 lt_cv_prog_compiler_c_o=yes
8850 fi
8851 fi
8852 chmod u+w . 2>&5
8853 $RM conftest*
8854 # SGI C++ compiler will create directory out/ii_files/ for
8855 # template instantiation
8856 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8857 $RM out/* && rmdir out
8858 cd ..
8859 $RM -r conftest
8860 $RM conftest*
8861
8862 fi
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8864 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8865
8866
8867
8868
8869
8870
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8872 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8873 if ${lt_cv_prog_compiler_c_o+:} false; then :
8874 $as_echo_n "(cached) " >&6
8875 else
8876 lt_cv_prog_compiler_c_o=no
8877 $RM -r conftest 2>/dev/null
8878 mkdir conftest
8879 cd conftest
8880 mkdir out
8881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8882
8883 lt_compiler_flag="-o out/conftest2.$ac_objext"
8884 # Insert the option either (1) after the last *FLAGS variable, or
8885 # (2) before a word containing "conftest.", or (3) at the end.
8886 # Note that $ac_compile itself does not contain backslashes and begins
8887 # with a dollar sign (not a hyphen), so the echo should work correctly.
8888 lt_compile=`echo "$ac_compile" | $SED \
8889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8891 -e 's:$: $lt_compiler_flag:'`
8892 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8893 (eval "$lt_compile" 2>out/conftest.err)
8894 ac_status=$?
8895 cat out/conftest.err >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8898 then
8899 # The compiler can only warn and ignore the option if not recognized
8900 # So say no if there are warnings
8901 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8902 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8903 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8904 lt_cv_prog_compiler_c_o=yes
8905 fi
8906 fi
8907 chmod u+w . 2>&5
8908 $RM conftest*
8909 # SGI C++ compiler will create directory out/ii_files/ for
8910 # template instantiation
8911 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8912 $RM out/* && rmdir out
8913 cd ..
8914 $RM -r conftest
8915 $RM conftest*
8916
8917 fi
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8919 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8920
8921
8922
8923
8924 hard_links="nottested"
8925 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8926 # do not overwrite the value of need_locks provided by the user
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8928 $as_echo_n "checking if we can lock with hard links... " >&6; }
8929 hard_links=yes
8930 $RM conftest*
8931 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8932 touch conftest.a
8933 ln conftest.a conftest.b 2>&5 || hard_links=no
8934 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8936 $as_echo "$hard_links" >&6; }
8937 if test "$hard_links" = no; then
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8939 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8940 need_locks=warn
8941 fi
8942 else
8943 need_locks=no
8944 fi
8945
8946
8947
8948
8949
8950
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8952 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8953
8954 runpath_var=
8955 allow_undefined_flag=
8956 always_export_symbols=no
8957 archive_cmds=
8958 archive_expsym_cmds=
8959 compiler_needs_object=no
8960 enable_shared_with_static_runtimes=no
8961 export_dynamic_flag_spec=
8962 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8963 hardcode_automatic=no
8964 hardcode_direct=no
8965 hardcode_direct_absolute=no
8966 hardcode_libdir_flag_spec=
8967 hardcode_libdir_separator=
8968 hardcode_minus_L=no
8969 hardcode_shlibpath_var=unsupported
8970 inherit_rpath=no
8971 link_all_deplibs=unknown
8972 module_cmds=
8973 module_expsym_cmds=
8974 old_archive_from_new_cmds=
8975 old_archive_from_expsyms_cmds=
8976 thread_safe_flag_spec=
8977 whole_archive_flag_spec=
8978 # include_expsyms should be a list of space-separated symbols to be *always*
8979 # included in the symbol list
8980 include_expsyms=
8981 # exclude_expsyms can be an extended regexp of symbols to exclude
8982 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8983 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8984 # as well as any symbol that contains `d'.
8985 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8986 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8987 # platforms (ab)use it in PIC code, but their linkers get confused if
8988 # the symbol is explicitly referenced. Since portable code cannot
8989 # rely on this symbol name, it's probably fine to never include it in
8990 # preloaded symbol tables.
8991 # Exclude shared library initialization/finalization symbols.
8992 extract_expsyms_cmds=
8993
8994 case $host_os in
8995 cygwin* | mingw* | pw32* | cegcc*)
8996 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8997 # When not using gcc, we currently assume that we are using
8998 # Microsoft Visual C++.
8999 if test "$GCC" != yes; then
9000 with_gnu_ld=no
9001 fi
9002 ;;
9003 interix*)
9004 # we just hope/assume this is gcc and not c89 (= MSVC++)
9005 with_gnu_ld=yes
9006 ;;
9007 openbsd*)
9008 with_gnu_ld=no
9009 ;;
9010 linux* | k*bsd*-gnu | gnu*)
9011 link_all_deplibs=no
9012 ;;
9013 esac
9014
9015 ld_shlibs=yes
9016
9017 # On some targets, GNU ld is compatible enough with the native linker
9018 # that we're better off using the native interface for both.
9019 lt_use_gnu_ld_interface=no
9020 if test "$with_gnu_ld" = yes; then
9021 case $host_os in
9022 aix*)
9023 # The AIX port of GNU ld has always aspired to compatibility
9024 # with the native linker. However, as the warning in the GNU ld
9025 # block says, versions before 2.19.5* couldn't really create working
9026 # shared libraries, regardless of the interface used.
9027 case `$LD -v 2>&1` in
9028 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9029 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9030 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9031 *)
9032 lt_use_gnu_ld_interface=yes
9033 ;;
9034 esac
9035 ;;
9036 *)
9037 lt_use_gnu_ld_interface=yes
9038 ;;
9039 esac
9040 fi
9041
9042 if test "$lt_use_gnu_ld_interface" = yes; then
9043 # If archive_cmds runs LD, not CC, wlarc should be empty
9044 wlarc='${wl}'
9045
9046 # Set some defaults for GNU ld with shared library support. These
9047 # are reset later if shared libraries are not supported. Putting them
9048 # here allows them to be overridden if necessary.
9049 runpath_var=LD_RUN_PATH
9050 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9051 export_dynamic_flag_spec='${wl}--export-dynamic'
9052 # ancient GNU ld didn't support --whole-archive et. al.
9053 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9054 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9055 else
9056 whole_archive_flag_spec=
9057 fi
9058 supports_anon_versioning=no
9059 case `$LD -v 2>&1` in
9060 *GNU\ gold*) supports_anon_versioning=yes ;;
9061 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9062 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9063 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9064 *\ 2.11.*) ;; # other 2.11 versions
9065 *) supports_anon_versioning=yes ;;
9066 esac
9067
9068 # See if GNU ld supports shared libraries.
9069 case $host_os in
9070 aix[3-9]*)
9071 # On AIX/PPC, the GNU linker is very broken
9072 if test "$host_cpu" != ia64; then
9073 ld_shlibs=no
9074 cat <<_LT_EOF 1>&2
9075
9076 *** Warning: the GNU linker, at least up to release 2.19, is reported
9077 *** to be unable to reliably create shared libraries on AIX.
9078 *** Therefore, libtool is disabling shared libraries support. If you
9079 *** really care for shared libraries, you may want to install binutils
9080 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9081 *** You will then need to restart the configuration process.
9082
9083 _LT_EOF
9084 fi
9085 ;;
9086
9087 amigaos*)
9088 case $host_cpu in
9089 powerpc)
9090 # see comment about AmigaOS4 .so support
9091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9092 archive_expsym_cmds=''
9093 ;;
9094 m68k)
9095 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)'
9096 hardcode_libdir_flag_spec='-L$libdir'
9097 hardcode_minus_L=yes
9098 ;;
9099 esac
9100 ;;
9101
9102 beos*)
9103 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9104 allow_undefined_flag=unsupported
9105 # Joseph Beckenbach <[email protected]> says some releases of gcc
9106 # support --undefined. This deserves some investigation. FIXME
9107 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9108 else
9109 ld_shlibs=no
9110 fi
9111 ;;
9112
9113 cygwin* | mingw* | pw32* | cegcc*)
9114 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9115 # as there is no search path for DLLs.
9116 hardcode_libdir_flag_spec='-L$libdir'
9117 export_dynamic_flag_spec='${wl}--export-all-symbols'
9118 allow_undefined_flag=unsupported
9119 always_export_symbols=no
9120 enable_shared_with_static_runtimes=yes
9121 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'
9122 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9123
9124 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9126 # If the export-symbols file already is a .def file (1st line
9127 # is EXPORTS), use it as is; otherwise, prepend...
9128 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9129 cp $export_symbols $output_objdir/$soname.def;
9130 else
9131 echo EXPORTS > $output_objdir/$soname.def;
9132 cat $export_symbols >> $output_objdir/$soname.def;
9133 fi~
9134 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9135 else
9136 ld_shlibs=no
9137 fi
9138 ;;
9139
9140 haiku*)
9141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9142 link_all_deplibs=yes
9143 ;;
9144
9145 interix[3-9]*)
9146 hardcode_direct=no
9147 hardcode_shlibpath_var=no
9148 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9149 export_dynamic_flag_spec='${wl}-E'
9150 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9151 # Instead, shared libraries are loaded at an image base (0x10000000 by
9152 # default) and relocated if they conflict, which is a slow very memory
9153 # consuming and fragmenting process. To avoid this, we pick a random,
9154 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9155 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9156 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9157 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'
9158 ;;
9159
9160 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9161 tmp_diet=no
9162 if test "$host_os" = linux-dietlibc; then
9163 case $cc_basename in
9164 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9165 esac
9166 fi
9167 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9168 && test "$tmp_diet" = no
9169 then
9170 tmp_addflag=' $pic_flag'
9171 tmp_sharedflag='-shared'
9172 case $cc_basename,$host_cpu in
9173 pgcc*) # Portland Group C compiler
9174 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'
9175 tmp_addflag=' $pic_flag'
9176 ;;
9177 pgf77* | pgf90* | pgf95* | pgfortran*)
9178 # Portland Group f77 and f90 compilers
9179 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'
9180 tmp_addflag=' $pic_flag -Mnomain' ;;
9181 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9182 tmp_addflag=' -i_dynamic' ;;
9183 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9184 tmp_addflag=' -i_dynamic -nofor_main' ;;
9185 ifc* | ifort*) # Intel Fortran compiler
9186 tmp_addflag=' -nofor_main' ;;
9187 lf95*) # Lahey Fortran 8.1
9188 whole_archive_flag_spec=
9189 tmp_sharedflag='--shared' ;;
9190 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9191 tmp_sharedflag='-qmkshrobj'
9192 tmp_addflag= ;;
9193 nvcc*) # Cuda Compiler Driver 2.2
9194 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'
9195 compiler_needs_object=yes
9196 ;;
9197 esac
9198 case `$CC -V 2>&1 | sed 5q` in
9199 *Sun\ C*) # Sun C 5.9
9200 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'
9201 compiler_needs_object=yes
9202 tmp_sharedflag='-G' ;;
9203 *Sun\ F*) # Sun Fortran 8.3
9204 tmp_sharedflag='-G' ;;
9205 esac
9206 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9207
9208 if test "x$supports_anon_versioning" = xyes; then
9209 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9210 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9211 echo "local: *; };" >> $output_objdir/$libname.ver~
9212 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9213 fi
9214
9215 case $cc_basename in
9216 xlf* | bgf* | bgxlf* | mpixlf*)
9217 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9218 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9219 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9220 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9221 if test "x$supports_anon_versioning" = xyes; then
9222 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9223 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9224 echo "local: *; };" >> $output_objdir/$libname.ver~
9225 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9226 fi
9227 ;;
9228 esac
9229 else
9230 ld_shlibs=no
9231 fi
9232 ;;
9233
9234 netbsd* | netbsdelf*-gnu)
9235 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9236 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9237 wlarc=
9238 else
9239 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9240 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9241 fi
9242 ;;
9243
9244 solaris*)
9245 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9246 ld_shlibs=no
9247 cat <<_LT_EOF 1>&2
9248
9249 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9250 *** create shared libraries on Solaris systems. Therefore, libtool
9251 *** is disabling shared libraries support. We urge you to upgrade GNU
9252 *** binutils to release 2.9.1 or newer. Another option is to modify
9253 *** your PATH or compiler configuration so that the native linker is
9254 *** used, and then restart.
9255
9256 _LT_EOF
9257 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9258 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9259 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9260 else
9261 ld_shlibs=no
9262 fi
9263 ;;
9264
9265 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9266 case `$LD -v 2>&1` in
9267 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9268 ld_shlibs=no
9269 cat <<_LT_EOF 1>&2
9270
9271 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9272 *** reliably create shared libraries on SCO systems. Therefore, libtool
9273 *** is disabling shared libraries support. We urge you to upgrade GNU
9274 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9275 *** your PATH or compiler configuration so that the native linker is
9276 *** used, and then restart.
9277
9278 _LT_EOF
9279 ;;
9280 *)
9281 # For security reasons, it is highly recommended that you always
9282 # use absolute paths for naming shared libraries, and exclude the
9283 # DT_RUNPATH tag from executables and libraries. But doing so
9284 # requires that you compile everything twice, which is a pain.
9285 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9286 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9288 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9289 else
9290 ld_shlibs=no
9291 fi
9292 ;;
9293 esac
9294 ;;
9295
9296 sunos4*)
9297 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9298 wlarc=
9299 hardcode_direct=yes
9300 hardcode_shlibpath_var=no
9301 ;;
9302
9303 *)
9304 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9305 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9306 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9307 else
9308 ld_shlibs=no
9309 fi
9310 ;;
9311 esac
9312
9313 if test "$ld_shlibs" = no; then
9314 runpath_var=
9315 hardcode_libdir_flag_spec=
9316 export_dynamic_flag_spec=
9317 whole_archive_flag_spec=
9318 fi
9319 else
9320 # PORTME fill in a description of your system's linker (not GNU ld)
9321 case $host_os in
9322 aix3*)
9323 allow_undefined_flag=unsupported
9324 always_export_symbols=yes
9325 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'
9326 # Note: this linker hardcodes the directories in LIBPATH if there
9327 # are no directories specified by -L.
9328 hardcode_minus_L=yes
9329 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9330 # Neither direct hardcoding nor static linking is supported with a
9331 # broken collect2.
9332 hardcode_direct=unsupported
9333 fi
9334 ;;
9335
9336 aix[4-9]*)
9337 if test "$host_cpu" = ia64; then
9338 # On IA64, the linker does run time linking by default, so we don't
9339 # have to do anything special.
9340 aix_use_runtimelinking=no
9341 exp_sym_flag='-Bexport'
9342 no_entry_flag=""
9343 else
9344 # If we're using GNU nm, then we don't want the "-C" option.
9345 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9346 # Also, AIX nm treats weak defined symbols like other global
9347 # defined symbols, whereas GNU nm marks them as "W".
9348 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9349 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9350 else
9351 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9352 fi
9353 aix_use_runtimelinking=no
9354
9355 # Test if we are trying to use run time linking or normal
9356 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9357 # need to do runtime linking.
9358 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9359 for ld_flag in $LDFLAGS; do
9360 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9361 aix_use_runtimelinking=yes
9362 break
9363 fi
9364 done
9365 ;;
9366 esac
9367
9368 exp_sym_flag='-bexport'
9369 no_entry_flag='-bnoentry'
9370 fi
9371
9372 # When large executables or shared objects are built, AIX ld can
9373 # have problems creating the table of contents. If linking a library
9374 # or program results in "error TOC overflow" add -mminimal-toc to
9375 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9376 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9377
9378 archive_cmds=''
9379 hardcode_direct=yes
9380 hardcode_direct_absolute=yes
9381 hardcode_libdir_separator=':'
9382 link_all_deplibs=yes
9383 file_list_spec='${wl}-f,'
9384
9385 if test "$GCC" = yes; 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 "$aix_use_runtimelinking" = yes; then
9409 shared_flag="$shared_flag "'${wl}-G'
9410 fi
9411 link_all_deplibs=no
9412 else
9413 # not using gcc
9414 if test "$host_cpu" = ia64; then
9415 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9416 # chokes on -Wl,-G. The following line is correct:
9417 shared_flag='-G'
9418 else
9419 if test "$aix_use_runtimelinking" = yes; then
9420 shared_flag='${wl}-G'
9421 else
9422 shared_flag='${wl}-bM:SRE'
9423 fi
9424 fi
9425 fi
9426
9427 export_dynamic_flag_spec='${wl}-bexpall'
9428 # It seems that -bexpall does not export symbols beginning with
9429 # underscore (_), so it is better to generate a list of symbols to export.
9430 always_export_symbols=yes
9431 if test "$aix_use_runtimelinking" = yes; then
9432 # Warning - without using the other runtime loading flags (-brtl),
9433 # -berok will link without error, but may produce a broken library.
9434 allow_undefined_flag='-berok'
9435 # Determine the default libpath from the value encoded in an
9436 # empty executable.
9437 if test "${lt_cv_aix_libpath+set}" = set; then
9438 aix_libpath=$lt_cv_aix_libpath
9439 else
9440 if ${lt_cv_aix_libpath_+:} false; then :
9441 $as_echo_n "(cached) " >&6
9442 else
9443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9444 /* end confdefs.h. */
9445
9446 int
9447 main ()
9448 {
9449
9450 ;
9451 return 0;
9452 }
9453 _ACEOF
9454 if ac_fn_c_try_link "$LINENO"; then :
9455
9456 lt_aix_libpath_sed='
9457 /Import File Strings/,/^$/ {
9458 /^0/ {
9459 s/^0 *\([^ ]*\) *$/\1/
9460 p
9461 }
9462 }'
9463 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9464 # Check for a 64-bit object if we didn't find anything.
9465 if test -z "$lt_cv_aix_libpath_"; then
9466 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9467 fi
9468 fi
9469 rm -f core conftest.err conftest.$ac_objext \
9470 conftest$ac_exeext conftest.$ac_ext
9471 if test -z "$lt_cv_aix_libpath_"; then
9472 lt_cv_aix_libpath_="/usr/lib:/lib"
9473 fi
9474
9475 fi
9476
9477 aix_libpath=$lt_cv_aix_libpath_
9478 fi
9479
9480 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9481 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9482 else
9483 if test "$host_cpu" = ia64; then
9484 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9485 allow_undefined_flag="-z nodefs"
9486 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"
9487 else
9488 # Determine the default libpath from the value encoded in an
9489 # empty executable.
9490 if test "${lt_cv_aix_libpath+set}" = set; then
9491 aix_libpath=$lt_cv_aix_libpath
9492 else
9493 if ${lt_cv_aix_libpath_+:} false; then :
9494 $as_echo_n "(cached) " >&6
9495 else
9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9498
9499 int
9500 main ()
9501 {
9502
9503 ;
9504 return 0;
9505 }
9506 _ACEOF
9507 if ac_fn_c_try_link "$LINENO"; then :
9508
9509 lt_aix_libpath_sed='
9510 /Import File Strings/,/^$/ {
9511 /^0/ {
9512 s/^0 *\([^ ]*\) *$/\1/
9513 p
9514 }
9515 }'
9516 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9517 # Check for a 64-bit object if we didn't find anything.
9518 if test -z "$lt_cv_aix_libpath_"; then
9519 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9520 fi
9521 fi
9522 rm -f core conftest.err conftest.$ac_objext \
9523 conftest$ac_exeext conftest.$ac_ext
9524 if test -z "$lt_cv_aix_libpath_"; then
9525 lt_cv_aix_libpath_="/usr/lib:/lib"
9526 fi
9527
9528 fi
9529
9530 aix_libpath=$lt_cv_aix_libpath_
9531 fi
9532
9533 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9534 # Warning - without using the other run time loading flags,
9535 # -berok will link without error, but may produce a broken library.
9536 no_undefined_flag=' ${wl}-bernotok'
9537 allow_undefined_flag=' ${wl}-berok'
9538 if test "$with_gnu_ld" = yes; then
9539 # We only use this code for GNU lds that support --whole-archive.
9540 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9541 else
9542 # Exported symbols can be pulled into shared objects from archives
9543 whole_archive_flag_spec='$convenience'
9544 fi
9545 archive_cmds_need_lc=yes
9546 # This is similar to how AIX traditionally builds its shared libraries.
9547 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9548 fi
9549 fi
9550 ;;
9551
9552 amigaos*)
9553 case $host_cpu in
9554 powerpc)
9555 # see comment about AmigaOS4 .so support
9556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9557 archive_expsym_cmds=''
9558 ;;
9559 m68k)
9560 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)'
9561 hardcode_libdir_flag_spec='-L$libdir'
9562 hardcode_minus_L=yes
9563 ;;
9564 esac
9565 ;;
9566
9567 bsdi[45]*)
9568 export_dynamic_flag_spec=-rdynamic
9569 ;;
9570
9571 cygwin* | mingw* | pw32* | cegcc*)
9572 # When not using gcc, we currently assume that we are using
9573 # Microsoft Visual C++.
9574 # hardcode_libdir_flag_spec is actually meaningless, as there is
9575 # no search path for DLLs.
9576 case $cc_basename in
9577 cl*)
9578 # Native MSVC
9579 hardcode_libdir_flag_spec=' '
9580 allow_undefined_flag=unsupported
9581 always_export_symbols=yes
9582 file_list_spec='@'
9583 # Tell ltmain to make .lib files, not .a files.
9584 libext=lib
9585 # Tell ltmain to make .dll files, not .so files.
9586 shrext_cmds=".dll"
9587 # FIXME: Setting linknames here is a bad hack.
9588 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9589 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9590 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9591 else
9592 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9593 fi~
9594 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9595 linknames='
9596 # The linker will not automatically build a static lib if we build a DLL.
9597 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9598 enable_shared_with_static_runtimes=yes
9599 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9600 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9601 # Don't use ranlib
9602 old_postinstall_cmds='chmod 644 $oldlib'
9603 postlink_cmds='lt_outputfile="@OUTPUT@"~
9604 lt_tool_outputfile="@TOOL_OUTPUT@"~
9605 case $lt_outputfile in
9606 *.exe|*.EXE) ;;
9607 *)
9608 lt_outputfile="$lt_outputfile.exe"
9609 lt_tool_outputfile="$lt_tool_outputfile.exe"
9610 ;;
9611 esac~
9612 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9613 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9614 $RM "$lt_outputfile.manifest";
9615 fi'
9616 ;;
9617 *)
9618 # Assume MSVC wrapper
9619 hardcode_libdir_flag_spec=' '
9620 allow_undefined_flag=unsupported
9621 # Tell ltmain to make .lib files, not .a files.
9622 libext=lib
9623 # Tell ltmain to make .dll files, not .so files.
9624 shrext_cmds=".dll"
9625 # FIXME: Setting linknames here is a bad hack.
9626 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9627 # The linker will automatically build a .lib file if we build a DLL.
9628 old_archive_from_new_cmds='true'
9629 # FIXME: Should let the user specify the lib program.
9630 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9631 enable_shared_with_static_runtimes=yes
9632 ;;
9633 esac
9634 ;;
9635
9636 darwin* | rhapsody*)
9637
9638
9639 archive_cmds_need_lc=no
9640 hardcode_direct=no
9641 hardcode_automatic=yes
9642 hardcode_shlibpath_var=unsupported
9643 if test "$lt_cv_ld_force_load" = "yes"; then
9644 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\"`'
9645
9646 else
9647 whole_archive_flag_spec=''
9648 fi
9649 link_all_deplibs=yes
9650 allow_undefined_flag="$_lt_dar_allow_undefined"
9651 case $cc_basename in
9652 ifort*) _lt_dar_can_shared=yes ;;
9653 *) _lt_dar_can_shared=$GCC ;;
9654 esac
9655 if test "$_lt_dar_can_shared" = "yes"; then
9656 output_verbose_link_cmd=func_echo_all
9657 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9658 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9659 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}"
9660 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}"
9661
9662 else
9663 ld_shlibs=no
9664 fi
9665
9666 ;;
9667
9668 dgux*)
9669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9670 hardcode_libdir_flag_spec='-L$libdir'
9671 hardcode_shlibpath_var=no
9672 ;;
9673
9674 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9675 # support. Future versions do this automatically, but an explicit c++rt0.o
9676 # does not break anything, and helps significantly (at the cost of a little
9677 # extra space).
9678 freebsd2.2*)
9679 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9680 hardcode_libdir_flag_spec='-R$libdir'
9681 hardcode_direct=yes
9682 hardcode_shlibpath_var=no
9683 ;;
9684
9685 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9686 freebsd2.*)
9687 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9688 hardcode_direct=yes
9689 hardcode_minus_L=yes
9690 hardcode_shlibpath_var=no
9691 ;;
9692
9693 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9694 freebsd* | dragonfly*)
9695 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9696 hardcode_libdir_flag_spec='-R$libdir'
9697 hardcode_direct=yes
9698 hardcode_shlibpath_var=no
9699 ;;
9700
9701 hpux9*)
9702 if test "$GCC" = yes; then
9703 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9704 else
9705 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9706 fi
9707 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9708 hardcode_libdir_separator=:
9709 hardcode_direct=yes
9710
9711 # hardcode_minus_L: Not really in the search PATH,
9712 # but as the default location of the library.
9713 hardcode_minus_L=yes
9714 export_dynamic_flag_spec='${wl}-E'
9715 ;;
9716
9717 hpux10*)
9718 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9719 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9720 else
9721 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9722 fi
9723 if test "$with_gnu_ld" = no; then
9724 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9725 hardcode_libdir_separator=:
9726 hardcode_direct=yes
9727 hardcode_direct_absolute=yes
9728 export_dynamic_flag_spec='${wl}-E'
9729 # hardcode_minus_L: Not really in the search PATH,
9730 # but as the default location of the library.
9731 hardcode_minus_L=yes
9732 fi
9733 ;;
9734
9735 hpux11*)
9736 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9737 case $host_cpu in
9738 hppa*64*)
9739 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9740 ;;
9741 ia64*)
9742 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9743 ;;
9744 *)
9745 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9746 ;;
9747 esac
9748 else
9749 case $host_cpu in
9750 hppa*64*)
9751 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9752 ;;
9753 ia64*)
9754 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9755 ;;
9756 *)
9757
9758 # Older versions of the 11.00 compiler do not understand -b yet
9759 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9761 $as_echo_n "checking if $CC understands -b... " >&6; }
9762 if ${lt_cv_prog_compiler__b+:} false; then :
9763 $as_echo_n "(cached) " >&6
9764 else
9765 lt_cv_prog_compiler__b=no
9766 save_LDFLAGS="$LDFLAGS"
9767 LDFLAGS="$LDFLAGS -b"
9768 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9769 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9770 # The linker can only warn and ignore the option if not recognized
9771 # So say no if there are warnings
9772 if test -s conftest.err; then
9773 # Append any errors to the config.log.
9774 cat conftest.err 1>&5
9775 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9777 if diff conftest.exp conftest.er2 >/dev/null; then
9778 lt_cv_prog_compiler__b=yes
9779 fi
9780 else
9781 lt_cv_prog_compiler__b=yes
9782 fi
9783 fi
9784 $RM -r conftest*
9785 LDFLAGS="$save_LDFLAGS"
9786
9787 fi
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9789 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9790
9791 if test x"$lt_cv_prog_compiler__b" = xyes; then
9792 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9793 else
9794 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9795 fi
9796
9797 ;;
9798 esac
9799 fi
9800 if test "$with_gnu_ld" = no; then
9801 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9802 hardcode_libdir_separator=:
9803
9804 case $host_cpu in
9805 hppa*64*|ia64*)
9806 hardcode_direct=no
9807 hardcode_shlibpath_var=no
9808 ;;
9809 *)
9810 hardcode_direct=yes
9811 hardcode_direct_absolute=yes
9812 export_dynamic_flag_spec='${wl}-E'
9813
9814 # hardcode_minus_L: Not really in the search PATH,
9815 # but as the default location of the library.
9816 hardcode_minus_L=yes
9817 ;;
9818 esac
9819 fi
9820 ;;
9821
9822 irix5* | irix6* | nonstopux*)
9823 if test "$GCC" = yes; then
9824 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'
9825 # Try to use the -exported_symbol ld option, if it does not
9826 # work, assume that -exports_file does not work either and
9827 # implicitly export all symbols.
9828 # This should be the same for all languages, so no per-tag cache variable.
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9830 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9831 if ${lt_cv_irix_exported_symbol+:} false; then :
9832 $as_echo_n "(cached) " >&6
9833 else
9834 save_LDFLAGS="$LDFLAGS"
9835 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9837 /* end confdefs.h. */
9838 int foo (void) { return 0; }
9839 _ACEOF
9840 if ac_fn_c_try_link "$LINENO"; then :
9841 lt_cv_irix_exported_symbol=yes
9842 else
9843 lt_cv_irix_exported_symbol=no
9844 fi
9845 rm -f core conftest.err conftest.$ac_objext \
9846 conftest$ac_exeext conftest.$ac_ext
9847 LDFLAGS="$save_LDFLAGS"
9848 fi
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9850 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9851 if test "$lt_cv_irix_exported_symbol" = yes; then
9852 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'
9853 fi
9854 else
9855 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'
9856 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'
9857 fi
9858 archive_cmds_need_lc='no'
9859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9860 hardcode_libdir_separator=:
9861 inherit_rpath=yes
9862 link_all_deplibs=yes
9863 ;;
9864
9865 netbsd* | netbsdelf*-gnu)
9866 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9867 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9868 else
9869 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9870 fi
9871 hardcode_libdir_flag_spec='-R$libdir'
9872 hardcode_direct=yes
9873 hardcode_shlibpath_var=no
9874 ;;
9875
9876 newsos6)
9877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9878 hardcode_direct=yes
9879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9880 hardcode_libdir_separator=:
9881 hardcode_shlibpath_var=no
9882 ;;
9883
9884 *nto* | *qnx*)
9885 ;;
9886
9887 openbsd*)
9888 if test -f /usr/libexec/ld.so; then
9889 hardcode_direct=yes
9890 hardcode_shlibpath_var=no
9891 hardcode_direct_absolute=yes
9892 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9893 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9894 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9895 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9896 export_dynamic_flag_spec='${wl}-E'
9897 else
9898 case $host_os in
9899 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9901 hardcode_libdir_flag_spec='-R$libdir'
9902 ;;
9903 *)
9904 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9905 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9906 ;;
9907 esac
9908 fi
9909 else
9910 ld_shlibs=no
9911 fi
9912 ;;
9913
9914 os2*)
9915 hardcode_libdir_flag_spec='-L$libdir'
9916 hardcode_minus_L=yes
9917 allow_undefined_flag=unsupported
9918 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9919 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9920 ;;
9921
9922 osf3*)
9923 if test "$GCC" = yes; then
9924 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9925 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'
9926 else
9927 allow_undefined_flag=' -expect_unresolved \*'
9928 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'
9929 fi
9930 archive_cmds_need_lc='no'
9931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9932 hardcode_libdir_separator=:
9933 ;;
9934
9935 osf4* | osf5*) # as osf3* with the addition of -msym flag
9936 if test "$GCC" = yes; then
9937 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9938 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'
9939 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9940 else
9941 allow_undefined_flag=' -expect_unresolved \*'
9942 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'
9943 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~
9944 $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'
9945
9946 # Both c and cxx compiler support -rpath directly
9947 hardcode_libdir_flag_spec='-rpath $libdir'
9948 fi
9949 archive_cmds_need_lc='no'
9950 hardcode_libdir_separator=:
9951 ;;
9952
9953 solaris*)
9954 no_undefined_flag=' -z defs'
9955 if test "$GCC" = yes; then
9956 wlarc='${wl}'
9957 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9958 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9959 $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'
9960 else
9961 case `$CC -V 2>&1` in
9962 *"Compilers 5.0"*)
9963 wlarc=''
9964 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9965 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9966 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9967 ;;
9968 *)
9969 wlarc='${wl}'
9970 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9971 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9972 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9973 ;;
9974 esac
9975 fi
9976 hardcode_libdir_flag_spec='-R$libdir'
9977 hardcode_shlibpath_var=no
9978 case $host_os in
9979 solaris2.[0-5] | solaris2.[0-5].*) ;;
9980 *)
9981 # The compiler driver will combine and reorder linker options,
9982 # but understands `-z linker_flag'. GCC discards it without `$wl',
9983 # but is careful enough not to reorder.
9984 # Supported since Solaris 2.6 (maybe 2.5.1?)
9985 if test "$GCC" = yes; then
9986 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9987 else
9988 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9989 fi
9990 ;;
9991 esac
9992 link_all_deplibs=yes
9993 ;;
9994
9995 sunos4*)
9996 if test "x$host_vendor" = xsequent; then
9997 # Use $CC to link under sequent, because it throws in some extra .o
9998 # files that make .init and .fini sections work.
9999 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10000 else
10001 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10002 fi
10003 hardcode_libdir_flag_spec='-L$libdir'
10004 hardcode_direct=yes
10005 hardcode_minus_L=yes
10006 hardcode_shlibpath_var=no
10007 ;;
10008
10009 sysv4)
10010 case $host_vendor in
10011 sni)
10012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10013 hardcode_direct=yes # is this really true???
10014 ;;
10015 siemens)
10016 ## LD is ld it makes a PLAMLIB
10017 ## CC just makes a GrossModule.
10018 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10019 reload_cmds='$CC -r -o $output$reload_objs'
10020 hardcode_direct=no
10021 ;;
10022 motorola)
10023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10024 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10025 ;;
10026 esac
10027 runpath_var='LD_RUN_PATH'
10028 hardcode_shlibpath_var=no
10029 ;;
10030
10031 sysv4.3*)
10032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10033 hardcode_shlibpath_var=no
10034 export_dynamic_flag_spec='-Bexport'
10035 ;;
10036
10037 sysv4*MP*)
10038 if test -d /usr/nec; then
10039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10040 hardcode_shlibpath_var=no
10041 runpath_var=LD_RUN_PATH
10042 hardcode_runpath_var=yes
10043 ld_shlibs=yes
10044 fi
10045 ;;
10046
10047 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10048 no_undefined_flag='${wl}-z,text'
10049 archive_cmds_need_lc=no
10050 hardcode_shlibpath_var=no
10051 runpath_var='LD_RUN_PATH'
10052
10053 if test "$GCC" = yes; then
10054 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10055 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10056 else
10057 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10058 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10059 fi
10060 ;;
10061
10062 sysv5* | sco3.2v5* | sco5v6*)
10063 # Note: We can NOT use -z defs as we might desire, because we do not
10064 # link with -lc, and that would cause any symbols used from libc to
10065 # always be unresolved, which means just about no library would
10066 # ever link correctly. If we're not using GNU ld we use -z text
10067 # though, which does catch some bad symbols but isn't as heavy-handed
10068 # as -z defs.
10069 no_undefined_flag='${wl}-z,text'
10070 allow_undefined_flag='${wl}-z,nodefs'
10071 archive_cmds_need_lc=no
10072 hardcode_shlibpath_var=no
10073 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10074 hardcode_libdir_separator=':'
10075 link_all_deplibs=yes
10076 export_dynamic_flag_spec='${wl}-Bexport'
10077 runpath_var='LD_RUN_PATH'
10078
10079 if test "$GCC" = yes; then
10080 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10081 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10082 else
10083 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10084 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10085 fi
10086 ;;
10087
10088 uts4*)
10089 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10090 hardcode_libdir_flag_spec='-L$libdir'
10091 hardcode_shlibpath_var=no
10092 ;;
10093
10094 *)
10095 ld_shlibs=no
10096 ;;
10097 esac
10098
10099 if test x$host_vendor = xsni; then
10100 case $host in
10101 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10102 export_dynamic_flag_spec='${wl}-Blargedynsym'
10103 ;;
10104 esac
10105 fi
10106 fi
10107
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10109 $as_echo "$ld_shlibs" >&6; }
10110 test "$ld_shlibs" = no && can_build_shared=no
10111
10112 with_gnu_ld=$with_gnu_ld
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128 #
10129 # Do we need to explicitly link libc?
10130 #
10131 case "x$archive_cmds_need_lc" in
10132 x|xyes)
10133 # Assume -lc should be added
10134 archive_cmds_need_lc=yes
10135
10136 if test "$enable_shared" = yes && test "$GCC" = yes; then
10137 case $archive_cmds in
10138 *'~'*)
10139 # FIXME: we may have to deal with multi-command sequences.
10140 ;;
10141 '$CC '*)
10142 # Test whether the compiler implicitly links with -lc since on some
10143 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10144 # to ld, don't add -lc before -lgcc.
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10146 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10147 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10148 $as_echo_n "(cached) " >&6
10149 else
10150 $RM conftest*
10151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10152
10153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10154 (eval $ac_compile) 2>&5
10155 ac_status=$?
10156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10157 test $ac_status = 0; } 2>conftest.err; then
10158 soname=conftest
10159 lib=conftest
10160 libobjs=conftest.$ac_objext
10161 deplibs=
10162 wl=$lt_prog_compiler_wl
10163 pic_flag=$lt_prog_compiler_pic
10164 compiler_flags=-v
10165 linker_flags=-v
10166 verstring=
10167 output_objdir=.
10168 libname=conftest
10169 lt_save_allow_undefined_flag=$allow_undefined_flag
10170 allow_undefined_flag=
10171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10172 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10173 ac_status=$?
10174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10175 test $ac_status = 0; }
10176 then
10177 lt_cv_archive_cmds_need_lc=no
10178 else
10179 lt_cv_archive_cmds_need_lc=yes
10180 fi
10181 allow_undefined_flag=$lt_save_allow_undefined_flag
10182 else
10183 cat conftest.err 1>&5
10184 fi
10185 $RM conftest*
10186
10187 fi
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10189 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10190 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10191 ;;
10192 esac
10193 fi
10194 ;;
10195 esac
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10349 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10350
10351 if test "$GCC" = yes; then
10352 case $host_os in
10353 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10354 *) lt_awk_arg="/^libraries:/" ;;
10355 esac
10356 case $host_os in
10357 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10358 *) lt_sed_strip_eq="s,=/,/,g" ;;
10359 esac
10360 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10361 case $lt_search_path_spec in
10362 *\;*)
10363 # if the path contains ";" then we assume it to be the separator
10364 # otherwise default to the standard path separator (i.e. ":") - it is
10365 # assumed that no part of a normal pathname contains ";" but that should
10366 # okay in the real world where ";" in dirpaths is itself problematic.
10367 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10368 ;;
10369 *)
10370 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10371 ;;
10372 esac
10373 # Ok, now we have the path, separated by spaces, we can step through it
10374 # and add multilib dir if necessary.
10375 lt_tmp_lt_search_path_spec=
10376 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10377 for lt_sys_path in $lt_search_path_spec; do
10378 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10379 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10380 else
10381 test -d "$lt_sys_path" && \
10382 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10383 fi
10384 done
10385 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10386 BEGIN {RS=" "; FS="/|\n";} {
10387 lt_foo="";
10388 lt_count=0;
10389 for (lt_i = NF; lt_i > 0; lt_i--) {
10390 if ($lt_i != "" && $lt_i != ".") {
10391 if ($lt_i == "..") {
10392 lt_count++;
10393 } else {
10394 if (lt_count == 0) {
10395 lt_foo="/" $lt_i lt_foo;
10396 } else {
10397 lt_count--;
10398 }
10399 }
10400 }
10401 }
10402 if (lt_foo != "") { lt_freq[lt_foo]++; }
10403 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10404 }'`
10405 # AWK program above erroneously prepends '/' to C:/dos/paths
10406 # for these hosts.
10407 case $host_os in
10408 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10409 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10410 esac
10411 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10412 else
10413 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10414 fi
10415 library_names_spec=
10416 libname_spec='lib$name'
10417 soname_spec=
10418 shrext_cmds=".so"
10419 postinstall_cmds=
10420 postuninstall_cmds=
10421 finish_cmds=
10422 finish_eval=
10423 shlibpath_var=
10424 shlibpath_overrides_runpath=unknown
10425 version_type=none
10426 dynamic_linker="$host_os ld.so"
10427 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10428 need_lib_prefix=unknown
10429 hardcode_into_libs=no
10430
10431 # when you set need_version to no, make sure it does not cause -set_version
10432 # flags to be left without arguments
10433 need_version=unknown
10434
10435 case $host_os in
10436 aix3*)
10437 version_type=linux # correct to gnu/linux during the next big refactor
10438 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10439 shlibpath_var=LIBPATH
10440
10441 # AIX 3 has no versioning support, so we append a major version to the name.
10442 soname_spec='${libname}${release}${shared_ext}$major'
10443 ;;
10444
10445 aix[4-9]*)
10446 version_type=linux # correct to gnu/linux during the next big refactor
10447 need_lib_prefix=no
10448 need_version=no
10449 hardcode_into_libs=yes
10450 if test "$host_cpu" = ia64; then
10451 # AIX 5 supports IA64
10452 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10453 shlibpath_var=LD_LIBRARY_PATH
10454 else
10455 # With GCC up to 2.95.x, collect2 would create an import file
10456 # for dependence libraries. The import file would start with
10457 # the line `#! .'. This would cause the generated library to
10458 # depend on `.', always an invalid library. This was fixed in
10459 # development snapshots of GCC prior to 3.0.
10460 case $host_os in
10461 aix4 | aix4.[01] | aix4.[01].*)
10462 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10463 echo ' yes '
10464 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10465 :
10466 else
10467 can_build_shared=no
10468 fi
10469 ;;
10470 esac
10471 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10472 # soname into executable. Probably we can add versioning support to
10473 # collect2, so additional links can be useful in future.
10474 if test "$aix_use_runtimelinking" = yes; then
10475 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10476 # instead of lib<name>.a to let people know that these are not
10477 # typical AIX shared libraries.
10478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479 else
10480 # We preserve .a as extension for shared libraries through AIX4.2
10481 # and later when we are not doing run time linking.
10482 library_names_spec='${libname}${release}.a $libname.a'
10483 soname_spec='${libname}${release}${shared_ext}$major'
10484 fi
10485 shlibpath_var=LIBPATH
10486 fi
10487 ;;
10488
10489 amigaos*)
10490 case $host_cpu in
10491 powerpc)
10492 # Since July 2007 AmigaOS4 officially supports .so libraries.
10493 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10495 ;;
10496 m68k)
10497 library_names_spec='$libname.ixlibrary $libname.a'
10498 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10499 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10500 ;;
10501 esac
10502 ;;
10503
10504 beos*)
10505 library_names_spec='${libname}${shared_ext}'
10506 dynamic_linker="$host_os ld.so"
10507 shlibpath_var=LIBRARY_PATH
10508 ;;
10509
10510 bsdi[45]*)
10511 version_type=linux # correct to gnu/linux during the next big refactor
10512 need_version=no
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10514 soname_spec='${libname}${release}${shared_ext}$major'
10515 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10516 shlibpath_var=LD_LIBRARY_PATH
10517 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10518 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10519 # the default ld.so.conf also contains /usr/contrib/lib and
10520 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10521 # libtool to hard-code these into programs
10522 ;;
10523
10524 cygwin* | mingw* | pw32* | cegcc*)
10525 version_type=windows
10526 shrext_cmds=".dll"
10527 need_version=no
10528 need_lib_prefix=no
10529
10530 case $GCC,$cc_basename in
10531 yes,*)
10532 # gcc
10533 library_names_spec='$libname.dll.a'
10534 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10535 postinstall_cmds='base_file=`basename \${file}`~
10536 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10537 dldir=$destdir/`dirname \$dlpath`~
10538 test -d \$dldir || mkdir -p \$dldir~
10539 $install_prog $dir/$dlname \$dldir/$dlname~
10540 chmod a+x \$dldir/$dlname~
10541 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10542 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10543 fi'
10544 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10545 dlpath=$dir/\$dldll~
10546 $RM \$dlpath'
10547 shlibpath_overrides_runpath=yes
10548
10549 case $host_os in
10550 cygwin*)
10551 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10552 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10553
10554 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10555 ;;
10556 mingw* | cegcc*)
10557 # MinGW DLLs use traditional 'lib' prefix
10558 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10559 ;;
10560 pw32*)
10561 # pw32 DLLs use 'pw' prefix rather than 'lib'
10562 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10563 ;;
10564 esac
10565 dynamic_linker='Win32 ld.exe'
10566 ;;
10567
10568 *,cl*)
10569 # Native MSVC
10570 libname_spec='$name'
10571 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10572 library_names_spec='${libname}.dll.lib'
10573
10574 case $build_os in
10575 mingw*)
10576 sys_lib_search_path_spec=
10577 lt_save_ifs=$IFS
10578 IFS=';'
10579 for lt_path in $LIB
10580 do
10581 IFS=$lt_save_ifs
10582 # Let DOS variable expansion print the short 8.3 style file name.
10583 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10584 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10585 done
10586 IFS=$lt_save_ifs
10587 # Convert to MSYS style.
10588 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10589 ;;
10590 cygwin*)
10591 # Convert to unix form, then to dos form, then back to unix form
10592 # but this time dos style (no spaces!) so that the unix form looks
10593 # like /cygdrive/c/PROGRA~1:/cygdr...
10594 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10595 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10596 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10597 ;;
10598 *)
10599 sys_lib_search_path_spec="$LIB"
10600 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10601 # It is most probably a Windows format PATH.
10602 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10603 else
10604 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10605 fi
10606 # FIXME: find the short name or the path components, as spaces are
10607 # common. (e.g. "Program Files" -> "PROGRA~1")
10608 ;;
10609 esac
10610
10611 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10612 postinstall_cmds='base_file=`basename \${file}`~
10613 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10614 dldir=$destdir/`dirname \$dlpath`~
10615 test -d \$dldir || mkdir -p \$dldir~
10616 $install_prog $dir/$dlname \$dldir/$dlname'
10617 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10618 dlpath=$dir/\$dldll~
10619 $RM \$dlpath'
10620 shlibpath_overrides_runpath=yes
10621 dynamic_linker='Win32 link.exe'
10622 ;;
10623
10624 *)
10625 # Assume MSVC wrapper
10626 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10627 dynamic_linker='Win32 ld.exe'
10628 ;;
10629 esac
10630 # FIXME: first we should search . and the directory the executable is in
10631 shlibpath_var=PATH
10632 ;;
10633
10634 darwin* | rhapsody*)
10635 dynamic_linker="$host_os dyld"
10636 version_type=darwin
10637 need_lib_prefix=no
10638 need_version=no
10639 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10640 soname_spec='${libname}${release}${major}$shared_ext'
10641 shlibpath_overrides_runpath=yes
10642 shlibpath_var=DYLD_LIBRARY_PATH
10643 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10644
10645 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10646 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10647 ;;
10648
10649 dgux*)
10650 version_type=linux # correct to gnu/linux during the next big refactor
10651 need_lib_prefix=no
10652 need_version=no
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10654 soname_spec='${libname}${release}${shared_ext}$major'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 ;;
10657
10658 freebsd* | dragonfly*)
10659 # DragonFly does not have aout. When/if they implement a new
10660 # versioning mechanism, adjust this.
10661 if test -x /usr/bin/objformat; then
10662 objformat=`/usr/bin/objformat`
10663 else
10664 case $host_os in
10665 freebsd[23].*) objformat=aout ;;
10666 *) objformat=elf ;;
10667 esac
10668 fi
10669 version_type=freebsd-$objformat
10670 case $version_type in
10671 freebsd-elf*)
10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10673 need_version=no
10674 need_lib_prefix=no
10675 ;;
10676 freebsd-*)
10677 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10678 need_version=yes
10679 ;;
10680 esac
10681 shlibpath_var=LD_LIBRARY_PATH
10682 case $host_os in
10683 freebsd2.*)
10684 shlibpath_overrides_runpath=yes
10685 ;;
10686 freebsd3.[01]* | freebsdelf3.[01]*)
10687 shlibpath_overrides_runpath=yes
10688 hardcode_into_libs=yes
10689 ;;
10690 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10691 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10692 shlibpath_overrides_runpath=no
10693 hardcode_into_libs=yes
10694 ;;
10695 *) # from 4.6 on, and DragonFly
10696 shlibpath_overrides_runpath=yes
10697 hardcode_into_libs=yes
10698 ;;
10699 esac
10700 ;;
10701
10702 haiku*)
10703 version_type=linux # correct to gnu/linux during the next big refactor
10704 need_lib_prefix=no
10705 need_version=no
10706 dynamic_linker="$host_os runtime_loader"
10707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10708 soname_spec='${libname}${release}${shared_ext}$major'
10709 shlibpath_var=LIBRARY_PATH
10710 shlibpath_overrides_runpath=yes
10711 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10712 hardcode_into_libs=yes
10713 ;;
10714
10715 hpux9* | hpux10* | hpux11*)
10716 # Give a soname corresponding to the major version so that dld.sl refuses to
10717 # link against other versions.
10718 version_type=sunos
10719 need_lib_prefix=no
10720 need_version=no
10721 case $host_cpu in
10722 ia64*)
10723 shrext_cmds='.so'
10724 hardcode_into_libs=yes
10725 dynamic_linker="$host_os dld.so"
10726 shlibpath_var=LD_LIBRARY_PATH
10727 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10729 soname_spec='${libname}${release}${shared_ext}$major'
10730 if test "X$HPUX_IA64_MODE" = X32; then
10731 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10732 else
10733 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10734 fi
10735 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10736 ;;
10737 hppa*64*)
10738 shrext_cmds='.sl'
10739 hardcode_into_libs=yes
10740 dynamic_linker="$host_os dld.sl"
10741 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10742 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744 soname_spec='${libname}${release}${shared_ext}$major'
10745 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10746 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10747 ;;
10748 *)
10749 shrext_cmds='.sl'
10750 dynamic_linker="$host_os dld.sl"
10751 shlibpath_var=SHLIB_PATH
10752 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
10756 esac
10757 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10758 postinstall_cmds='chmod 555 $lib'
10759 # or fails outright, so override atomically:
10760 install_override_mode=555
10761 ;;
10762
10763 interix[3-9]*)
10764 version_type=linux # correct to gnu/linux during the next big refactor
10765 need_lib_prefix=no
10766 need_version=no
10767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10768 soname_spec='${libname}${release}${shared_ext}$major'
10769 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10770 shlibpath_var=LD_LIBRARY_PATH
10771 shlibpath_overrides_runpath=no
10772 hardcode_into_libs=yes
10773 ;;
10774
10775 irix5* | irix6* | nonstopux*)
10776 case $host_os in
10777 nonstopux*) version_type=nonstopux ;;
10778 *)
10779 if test "$lt_cv_prog_gnu_ld" = yes; then
10780 version_type=linux # correct to gnu/linux during the next big refactor
10781 else
10782 version_type=irix
10783 fi ;;
10784 esac
10785 need_lib_prefix=no
10786 need_version=no
10787 soname_spec='${libname}${release}${shared_ext}$major'
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10789 case $host_os in
10790 irix5* | nonstopux*)
10791 libsuff= shlibsuff=
10792 ;;
10793 *)
10794 case $LD in # libtool.m4 will add one of these switches to LD
10795 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10796 libsuff= shlibsuff= libmagic=32-bit;;
10797 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10798 libsuff=32 shlibsuff=N32 libmagic=N32;;
10799 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10800 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10801 *) libsuff= shlibsuff= libmagic=never-match;;
10802 esac
10803 ;;
10804 esac
10805 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10806 shlibpath_overrides_runpath=no
10807 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10808 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10809 hardcode_into_libs=yes
10810 ;;
10811
10812 # No shared lib support for Linux oldld, aout, or coff.
10813 linux*oldld* | linux*aout* | linux*coff*)
10814 dynamic_linker=no
10815 ;;
10816
10817 # This must be glibc/ELF.
10818 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10819 version_type=linux # correct to gnu/linux during the next big refactor
10820 need_lib_prefix=no
10821 need_version=no
10822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10823 soname_spec='${libname}${release}${shared_ext}$major'
10824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10825 shlibpath_var=LD_LIBRARY_PATH
10826 shlibpath_overrides_runpath=no
10827
10828 # Some binutils ld are patched to set DT_RUNPATH
10829 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10830 $as_echo_n "(cached) " >&6
10831 else
10832 lt_cv_shlibpath_overrides_runpath=no
10833 save_LDFLAGS=$LDFLAGS
10834 save_libdir=$libdir
10835 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10836 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10838 /* end confdefs.h. */
10839
10840 int
10841 main ()
10842 {
10843
10844 ;
10845 return 0;
10846 }
10847 _ACEOF
10848 if ac_fn_c_try_link "$LINENO"; then :
10849 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10850 lt_cv_shlibpath_overrides_runpath=yes
10851 fi
10852 fi
10853 rm -f core conftest.err conftest.$ac_objext \
10854 conftest$ac_exeext conftest.$ac_ext
10855 LDFLAGS=$save_LDFLAGS
10856 libdir=$save_libdir
10857
10858 fi
10859
10860 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10861
10862 # This implies no fast_install, which is unacceptable.
10863 # Some rework will be needed to allow for fast_install
10864 # before this can be enabled.
10865 hardcode_into_libs=yes
10866
10867 # Append ld.so.conf contents to the search path
10868 if test -f /etc/ld.so.conf; then
10869 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' ' '`
10870 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10871 fi
10872
10873 # We used to test for /lib/ld.so.1 and disable shared libraries on
10874 # powerpc, because MkLinux only supported shared libraries with the
10875 # GNU dynamic linker. Since this was broken with cross compilers,
10876 # most powerpc-linux boxes support dynamic linking these days and
10877 # people can always --disable-shared, the test was removed, and we
10878 # assume the GNU/Linux dynamic linker is in use.
10879 dynamic_linker='GNU/Linux ld.so'
10880 ;;
10881
10882 netbsdelf*-gnu)
10883 version_type=linux
10884 need_lib_prefix=no
10885 need_version=no
10886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10887 soname_spec='${libname}${release}${shared_ext}$major'
10888 shlibpath_var=LD_LIBRARY_PATH
10889 shlibpath_overrides_runpath=no
10890 hardcode_into_libs=yes
10891 dynamic_linker='NetBSD ld.elf_so'
10892 ;;
10893
10894 netbsd*)
10895 version_type=sunos
10896 need_lib_prefix=no
10897 need_version=no
10898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10901 dynamic_linker='NetBSD (a.out) ld.so'
10902 else
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10904 soname_spec='${libname}${release}${shared_ext}$major'
10905 dynamic_linker='NetBSD ld.elf_so'
10906 fi
10907 shlibpath_var=LD_LIBRARY_PATH
10908 shlibpath_overrides_runpath=yes
10909 hardcode_into_libs=yes
10910 ;;
10911
10912 newsos6)
10913 version_type=linux # correct to gnu/linux during the next big refactor
10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10915 shlibpath_var=LD_LIBRARY_PATH
10916 shlibpath_overrides_runpath=yes
10917 ;;
10918
10919 *nto* | *qnx*)
10920 version_type=qnx
10921 need_lib_prefix=no
10922 need_version=no
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10924 soname_spec='${libname}${release}${shared_ext}$major'
10925 shlibpath_var=LD_LIBRARY_PATH
10926 shlibpath_overrides_runpath=no
10927 hardcode_into_libs=yes
10928 dynamic_linker='ldqnx.so'
10929 ;;
10930
10931 openbsd*)
10932 version_type=sunos
10933 sys_lib_dlsearch_path_spec="/usr/lib"
10934 need_lib_prefix=no
10935 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10936 case $host_os in
10937 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10938 *) need_version=no ;;
10939 esac
10940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10942 shlibpath_var=LD_LIBRARY_PATH
10943 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10944 case $host_os in
10945 openbsd2.[89] | openbsd2.[89].*)
10946 shlibpath_overrides_runpath=no
10947 ;;
10948 *)
10949 shlibpath_overrides_runpath=yes
10950 ;;
10951 esac
10952 else
10953 shlibpath_overrides_runpath=yes
10954 fi
10955 ;;
10956
10957 os2*)
10958 libname_spec='$name'
10959 shrext_cmds=".dll"
10960 need_lib_prefix=no
10961 library_names_spec='$libname${shared_ext} $libname.a'
10962 dynamic_linker='OS/2 ld.exe'
10963 shlibpath_var=LIBPATH
10964 ;;
10965
10966 osf3* | osf4* | osf5*)
10967 version_type=osf
10968 need_lib_prefix=no
10969 need_version=no
10970 soname_spec='${libname}${release}${shared_ext}$major'
10971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10972 shlibpath_var=LD_LIBRARY_PATH
10973 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10974 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10975 ;;
10976
10977 rdos*)
10978 dynamic_linker=no
10979 ;;
10980
10981 solaris*)
10982 version_type=linux # correct to gnu/linux during the next big refactor
10983 need_lib_prefix=no
10984 need_version=no
10985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986 soname_spec='${libname}${release}${shared_ext}$major'
10987 shlibpath_var=LD_LIBRARY_PATH
10988 shlibpath_overrides_runpath=yes
10989 hardcode_into_libs=yes
10990 # ldd complains unless libraries are executable
10991 postinstall_cmds='chmod +x $lib'
10992 ;;
10993
10994 sunos4*)
10995 version_type=sunos
10996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10997 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10998 shlibpath_var=LD_LIBRARY_PATH
10999 shlibpath_overrides_runpath=yes
11000 if test "$with_gnu_ld" = yes; then
11001 need_lib_prefix=no
11002 fi
11003 need_version=yes
11004 ;;
11005
11006 sysv4 | sysv4.3*)
11007 version_type=linux # correct to gnu/linux during the next big refactor
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11009 soname_spec='${libname}${release}${shared_ext}$major'
11010 shlibpath_var=LD_LIBRARY_PATH
11011 case $host_vendor in
11012 sni)
11013 shlibpath_overrides_runpath=no
11014 need_lib_prefix=no
11015 runpath_var=LD_RUN_PATH
11016 ;;
11017 siemens)
11018 need_lib_prefix=no
11019 ;;
11020 motorola)
11021 need_lib_prefix=no
11022 need_version=no
11023 shlibpath_overrides_runpath=no
11024 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11025 ;;
11026 esac
11027 ;;
11028
11029 sysv4*MP*)
11030 if test -d /usr/nec ;then
11031 version_type=linux # correct to gnu/linux during the next big refactor
11032 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11033 soname_spec='$libname${shared_ext}.$major'
11034 shlibpath_var=LD_LIBRARY_PATH
11035 fi
11036 ;;
11037
11038 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11039 version_type=freebsd-elf
11040 need_lib_prefix=no
11041 need_version=no
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11043 soname_spec='${libname}${release}${shared_ext}$major'
11044 shlibpath_var=LD_LIBRARY_PATH
11045 shlibpath_overrides_runpath=yes
11046 hardcode_into_libs=yes
11047 if test "$with_gnu_ld" = yes; then
11048 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11049 else
11050 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11051 case $host_os in
11052 sco3.2v5*)
11053 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11054 ;;
11055 esac
11056 fi
11057 sys_lib_dlsearch_path_spec='/usr/lib'
11058 ;;
11059
11060 tpf*)
11061 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11062 version_type=linux # correct to gnu/linux during the next big refactor
11063 need_lib_prefix=no
11064 need_version=no
11065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11066 shlibpath_var=LD_LIBRARY_PATH
11067 shlibpath_overrides_runpath=no
11068 hardcode_into_libs=yes
11069 ;;
11070
11071 uts4*)
11072 version_type=linux # correct to gnu/linux during the next big refactor
11073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11074 soname_spec='${libname}${release}${shared_ext}$major'
11075 shlibpath_var=LD_LIBRARY_PATH
11076 ;;
11077
11078 *)
11079 dynamic_linker=no
11080 ;;
11081 esac
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11083 $as_echo "$dynamic_linker" >&6; }
11084 test "$dynamic_linker" = no && can_build_shared=no
11085
11086 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11087 if test "$GCC" = yes; then
11088 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11089 fi
11090
11091 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11092 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11093 fi
11094 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11095 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11096 fi
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11190 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11191 hardcode_action=
11192 if test -n "$hardcode_libdir_flag_spec" ||
11193 test -n "$runpath_var" ||
11194 test "X$hardcode_automatic" = "Xyes" ; then
11195
11196 # We can hardcode non-existent directories.
11197 if test "$hardcode_direct" != no &&
11198 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11199 # have to relink, otherwise we might link with an installed library
11200 # when we should be linking with a yet-to-be-installed one
11201 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11202 test "$hardcode_minus_L" != no; then
11203 # Linking always hardcodes the temporary library directory.
11204 hardcode_action=relink
11205 else
11206 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11207 hardcode_action=immediate
11208 fi
11209 else
11210 # We cannot hardcode anything, or else we can only hardcode existing
11211 # directories.
11212 hardcode_action=unsupported
11213 fi
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11215 $as_echo "$hardcode_action" >&6; }
11216
11217 if test "$hardcode_action" = relink ||
11218 test "$inherit_rpath" = yes; then
11219 # Fast installation is not supported
11220 enable_fast_install=no
11221 elif test "$shlibpath_overrides_runpath" = yes ||
11222 test "$enable_shared" = no; then
11223 # Fast installation is not necessary
11224 enable_fast_install=needless
11225 fi
11226
11227
11228
11229
11230
11231
11232 if test "x$enable_dlopen" != xyes; then
11233 enable_dlopen=unknown
11234 enable_dlopen_self=unknown
11235 enable_dlopen_self_static=unknown
11236 else
11237 lt_cv_dlopen=no
11238 lt_cv_dlopen_libs=
11239
11240 case $host_os in
11241 beos*)
11242 lt_cv_dlopen="load_add_on"
11243 lt_cv_dlopen_libs=
11244 lt_cv_dlopen_self=yes
11245 ;;
11246
11247 mingw* | pw32* | cegcc*)
11248 lt_cv_dlopen="LoadLibrary"
11249 lt_cv_dlopen_libs=
11250 ;;
11251
11252 cygwin*)
11253 lt_cv_dlopen="dlopen"
11254 lt_cv_dlopen_libs=
11255 ;;
11256
11257 darwin*)
11258 # if libdl is installed we need to link against it
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11260 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11261 if ${ac_cv_lib_dl_dlopen+:} false; then :
11262 $as_echo_n "(cached) " >&6
11263 else
11264 ac_check_lib_save_LIBS=$LIBS
11265 LIBS="-ldl $LIBS"
11266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h. */
11268
11269 /* Override any GCC internal prototype to avoid an error.
11270 Use char because int might match the return type of a GCC
11271 builtin and then its argument prototype would still apply. */
11272 #ifdef __cplusplus
11273 extern "C"
11274 #endif
11275 char dlopen ();
11276 int
11277 main ()
11278 {
11279 return dlopen ();
11280 ;
11281 return 0;
11282 }
11283 _ACEOF
11284 if ac_fn_c_try_link "$LINENO"; then :
11285 ac_cv_lib_dl_dlopen=yes
11286 else
11287 ac_cv_lib_dl_dlopen=no
11288 fi
11289 rm -f core conftest.err conftest.$ac_objext \
11290 conftest$ac_exeext conftest.$ac_ext
11291 LIBS=$ac_check_lib_save_LIBS
11292 fi
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11294 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11295 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11297 else
11298
11299 lt_cv_dlopen="dyld"
11300 lt_cv_dlopen_libs=
11301 lt_cv_dlopen_self=yes
11302
11303 fi
11304
11305 ;;
11306
11307 *)
11308 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11309 if test "x$ac_cv_func_shl_load" = xyes; then :
11310 lt_cv_dlopen="shl_load"
11311 else
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11313 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11314 if ${ac_cv_lib_dld_shl_load+:} false; then :
11315 $as_echo_n "(cached) " >&6
11316 else
11317 ac_check_lib_save_LIBS=$LIBS
11318 LIBS="-ldld $LIBS"
11319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320 /* end confdefs.h. */
11321
11322 /* Override any GCC internal prototype to avoid an error.
11323 Use char because int might match the return type of a GCC
11324 builtin and then its argument prototype would still apply. */
11325 #ifdef __cplusplus
11326 extern "C"
11327 #endif
11328 char shl_load ();
11329 int
11330 main ()
11331 {
11332 return shl_load ();
11333 ;
11334 return 0;
11335 }
11336 _ACEOF
11337 if ac_fn_c_try_link "$LINENO"; then :
11338 ac_cv_lib_dld_shl_load=yes
11339 else
11340 ac_cv_lib_dld_shl_load=no
11341 fi
11342 rm -f core conftest.err conftest.$ac_objext \
11343 conftest$ac_exeext conftest.$ac_ext
11344 LIBS=$ac_check_lib_save_LIBS
11345 fi
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11347 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11348 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11349 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11350 else
11351 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11352 if test "x$ac_cv_func_dlopen" = xyes; then :
11353 lt_cv_dlopen="dlopen"
11354 else
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11356 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11357 if ${ac_cv_lib_dl_dlopen+:} false; then :
11358 $as_echo_n "(cached) " >&6
11359 else
11360 ac_check_lib_save_LIBS=$LIBS
11361 LIBS="-ldl $LIBS"
11362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11363 /* end confdefs.h. */
11364
11365 /* Override any GCC internal prototype to avoid an error.
11366 Use char because int might match the return type of a GCC
11367 builtin and then its argument prototype would still apply. */
11368 #ifdef __cplusplus
11369 extern "C"
11370 #endif
11371 char dlopen ();
11372 int
11373 main ()
11374 {
11375 return dlopen ();
11376 ;
11377 return 0;
11378 }
11379 _ACEOF
11380 if ac_fn_c_try_link "$LINENO"; then :
11381 ac_cv_lib_dl_dlopen=yes
11382 else
11383 ac_cv_lib_dl_dlopen=no
11384 fi
11385 rm -f core conftest.err conftest.$ac_objext \
11386 conftest$ac_exeext conftest.$ac_ext
11387 LIBS=$ac_check_lib_save_LIBS
11388 fi
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11390 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11391 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11392 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11393 else
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11395 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11396 if ${ac_cv_lib_svld_dlopen+:} false; then :
11397 $as_echo_n "(cached) " >&6
11398 else
11399 ac_check_lib_save_LIBS=$LIBS
11400 LIBS="-lsvld $LIBS"
11401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11402 /* end confdefs.h. */
11403
11404 /* Override any GCC internal prototype to avoid an error.
11405 Use char because int might match the return type of a GCC
11406 builtin and then its argument prototype would still apply. */
11407 #ifdef __cplusplus
11408 extern "C"
11409 #endif
11410 char dlopen ();
11411 int
11412 main ()
11413 {
11414 return dlopen ();
11415 ;
11416 return 0;
11417 }
11418 _ACEOF
11419 if ac_fn_c_try_link "$LINENO"; then :
11420 ac_cv_lib_svld_dlopen=yes
11421 else
11422 ac_cv_lib_svld_dlopen=no
11423 fi
11424 rm -f core conftest.err conftest.$ac_objext \
11425 conftest$ac_exeext conftest.$ac_ext
11426 LIBS=$ac_check_lib_save_LIBS
11427 fi
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11429 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11430 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11431 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11432 else
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11434 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11435 if ${ac_cv_lib_dld_dld_link+:} false; then :
11436 $as_echo_n "(cached) " >&6
11437 else
11438 ac_check_lib_save_LIBS=$LIBS
11439 LIBS="-ldld $LIBS"
11440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11441 /* end confdefs.h. */
11442
11443 /* Override any GCC internal prototype to avoid an error.
11444 Use char because int might match the return type of a GCC
11445 builtin and then its argument prototype would still apply. */
11446 #ifdef __cplusplus
11447 extern "C"
11448 #endif
11449 char dld_link ();
11450 int
11451 main ()
11452 {
11453 return dld_link ();
11454 ;
11455 return 0;
11456 }
11457 _ACEOF
11458 if ac_fn_c_try_link "$LINENO"; then :
11459 ac_cv_lib_dld_dld_link=yes
11460 else
11461 ac_cv_lib_dld_dld_link=no
11462 fi
11463 rm -f core conftest.err conftest.$ac_objext \
11464 conftest$ac_exeext conftest.$ac_ext
11465 LIBS=$ac_check_lib_save_LIBS
11466 fi
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11468 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11469 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11470 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11471 fi
11472
11473
11474 fi
11475
11476
11477 fi
11478
11479
11480 fi
11481
11482
11483 fi
11484
11485
11486 fi
11487
11488 ;;
11489 esac
11490
11491 if test "x$lt_cv_dlopen" != xno; then
11492 enable_dlopen=yes
11493 else
11494 enable_dlopen=no
11495 fi
11496
11497 case $lt_cv_dlopen in
11498 dlopen)
11499 save_CPPFLAGS="$CPPFLAGS"
11500 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11501
11502 save_LDFLAGS="$LDFLAGS"
11503 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11504
11505 save_LIBS="$LIBS"
11506 LIBS="$lt_cv_dlopen_libs $LIBS"
11507
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11509 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11510 if ${lt_cv_dlopen_self+:} false; then :
11511 $as_echo_n "(cached) " >&6
11512 else
11513 if test "$cross_compiling" = yes; then :
11514 lt_cv_dlopen_self=cross
11515 else
11516 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11517 lt_status=$lt_dlunknown
11518 cat > conftest.$ac_ext <<_LT_EOF
11519 #line $LINENO "configure"
11520 #include "confdefs.h"
11521
11522 #if HAVE_DLFCN_H
11523 #include <dlfcn.h>
11524 #endif
11525
11526 #include <stdio.h>
11527
11528 #ifdef RTLD_GLOBAL
11529 # define LT_DLGLOBAL RTLD_GLOBAL
11530 #else
11531 # ifdef DL_GLOBAL
11532 # define LT_DLGLOBAL DL_GLOBAL
11533 # else
11534 # define LT_DLGLOBAL 0
11535 # endif
11536 #endif
11537
11538 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11539 find out it does not work in some platform. */
11540 #ifndef LT_DLLAZY_OR_NOW
11541 # ifdef RTLD_LAZY
11542 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11543 # else
11544 # ifdef DL_LAZY
11545 # define LT_DLLAZY_OR_NOW DL_LAZY
11546 # else
11547 # ifdef RTLD_NOW
11548 # define LT_DLLAZY_OR_NOW RTLD_NOW
11549 # else
11550 # ifdef DL_NOW
11551 # define LT_DLLAZY_OR_NOW DL_NOW
11552 # else
11553 # define LT_DLLAZY_OR_NOW 0
11554 # endif
11555 # endif
11556 # endif
11557 # endif
11558 #endif
11559
11560 /* When -fvisbility=hidden is used, assume the code has been annotated
11561 correspondingly for the symbols needed. */
11562 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11563 int fnord () __attribute__((visibility("default")));
11564 #endif
11565
11566 int fnord () { return 42; }
11567 int main ()
11568 {
11569 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11570 int status = $lt_dlunknown;
11571
11572 if (self)
11573 {
11574 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11575 else
11576 {
11577 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11578 else puts (dlerror ());
11579 }
11580 /* dlclose (self); */
11581 }
11582 else
11583 puts (dlerror ());
11584
11585 return status;
11586 }
11587 _LT_EOF
11588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11589 (eval $ac_link) 2>&5
11590 ac_status=$?
11591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11592 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11593 (./conftest; exit; ) >&5 2>/dev/null
11594 lt_status=$?
11595 case x$lt_status in
11596 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11597 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11598 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11599 esac
11600 else :
11601 # compilation failed
11602 lt_cv_dlopen_self=no
11603 fi
11604 fi
11605 rm -fr conftest*
11606
11607
11608 fi
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11610 $as_echo "$lt_cv_dlopen_self" >&6; }
11611
11612 if test "x$lt_cv_dlopen_self" = xyes; then
11613 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11615 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11616 if ${lt_cv_dlopen_self_static+:} false; then :
11617 $as_echo_n "(cached) " >&6
11618 else
11619 if test "$cross_compiling" = yes; then :
11620 lt_cv_dlopen_self_static=cross
11621 else
11622 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11623 lt_status=$lt_dlunknown
11624 cat > conftest.$ac_ext <<_LT_EOF
11625 #line $LINENO "configure"
11626 #include "confdefs.h"
11627
11628 #if HAVE_DLFCN_H
11629 #include <dlfcn.h>
11630 #endif
11631
11632 #include <stdio.h>
11633
11634 #ifdef RTLD_GLOBAL
11635 # define LT_DLGLOBAL RTLD_GLOBAL
11636 #else
11637 # ifdef DL_GLOBAL
11638 # define LT_DLGLOBAL DL_GLOBAL
11639 # else
11640 # define LT_DLGLOBAL 0
11641 # endif
11642 #endif
11643
11644 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11645 find out it does not work in some platform. */
11646 #ifndef LT_DLLAZY_OR_NOW
11647 # ifdef RTLD_LAZY
11648 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11649 # else
11650 # ifdef DL_LAZY
11651 # define LT_DLLAZY_OR_NOW DL_LAZY
11652 # else
11653 # ifdef RTLD_NOW
11654 # define LT_DLLAZY_OR_NOW RTLD_NOW
11655 # else
11656 # ifdef DL_NOW
11657 # define LT_DLLAZY_OR_NOW DL_NOW
11658 # else
11659 # define LT_DLLAZY_OR_NOW 0
11660 # endif
11661 # endif
11662 # endif
11663 # endif
11664 #endif
11665
11666 /* When -fvisbility=hidden is used, assume the code has been annotated
11667 correspondingly for the symbols needed. */
11668 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11669 int fnord () __attribute__((visibility("default")));
11670 #endif
11671
11672 int fnord () { return 42; }
11673 int main ()
11674 {
11675 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11676 int status = $lt_dlunknown;
11677
11678 if (self)
11679 {
11680 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11681 else
11682 {
11683 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11684 else puts (dlerror ());
11685 }
11686 /* dlclose (self); */
11687 }
11688 else
11689 puts (dlerror ());
11690
11691 return status;
11692 }
11693 _LT_EOF
11694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11695 (eval $ac_link) 2>&5
11696 ac_status=$?
11697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11698 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11699 (./conftest; exit; ) >&5 2>/dev/null
11700 lt_status=$?
11701 case x$lt_status in
11702 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11703 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11704 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11705 esac
11706 else :
11707 # compilation failed
11708 lt_cv_dlopen_self_static=no
11709 fi
11710 fi
11711 rm -fr conftest*
11712
11713
11714 fi
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11716 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11717 fi
11718
11719 CPPFLAGS="$save_CPPFLAGS"
11720 LDFLAGS="$save_LDFLAGS"
11721 LIBS="$save_LIBS"
11722 ;;
11723 esac
11724
11725 case $lt_cv_dlopen_self in
11726 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11727 *) enable_dlopen_self=unknown ;;
11728 esac
11729
11730 case $lt_cv_dlopen_self_static in
11731 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11732 *) enable_dlopen_self_static=unknown ;;
11733 esac
11734 fi
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752 striplib=
11753 old_striplib=
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11755 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11756 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11757 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11758 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11760 $as_echo "yes" >&6; }
11761 else
11762 # FIXME - insert some real tests, host_os isn't really good enough
11763 case $host_os in
11764 darwin*)
11765 if test -n "$STRIP" ; then
11766 striplib="$STRIP -x"
11767 old_striplib="$STRIP -S"
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11769 $as_echo "yes" >&6; }
11770 else
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11772 $as_echo "no" >&6; }
11773 fi
11774 ;;
11775 *)
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777 $as_echo "no" >&6; }
11778 ;;
11779 esac
11780 fi
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793 # Report which library types will actually be built
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11795 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11797 $as_echo "$can_build_shared" >&6; }
11798
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11800 $as_echo_n "checking whether to build shared libraries... " >&6; }
11801 test "$can_build_shared" = "no" && enable_shared=no
11802
11803 # On AIX, shared libraries and static libraries use the same namespace, and
11804 # are all built from PIC.
11805 case $host_os in
11806 aix3*)
11807 test "$enable_shared" = yes && enable_static=no
11808 if test -n "$RANLIB"; then
11809 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11810 postinstall_cmds='$RANLIB $lib'
11811 fi
11812 ;;
11813
11814 aix[4-9]*)
11815 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11816 test "$enable_shared" = yes && enable_static=no
11817 fi
11818 ;;
11819 esac
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11821 $as_echo "$enable_shared" >&6; }
11822
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11824 $as_echo_n "checking whether to build static libraries... " >&6; }
11825 # Make sure either enable_shared or enable_static is yes.
11826 test "$enable_shared" = yes || enable_static=yes
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11828 $as_echo "$enable_static" >&6; }
11829
11830
11831
11832
11833 fi
11834 ac_ext=c
11835 ac_cpp='$CPP $CPPFLAGS'
11836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11839
11840 CC="$lt_save_CC"
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856 ac_config_commands="$ac_config_commands libtool"
11857
11858
11859
11860
11861 # Only expand once:
11862
11863
11864
11865 # support shared library on Cygwin
11866
11867 case $host in
11868 *-*-cygwin* | *-*-mingw*)
11869 # By default, build only static.
11870 if test -z "$enable_shared"; then
11871 enable_shared=no
11872 fi
11873 # "-no-undefined" is required when building a DLL, see documentation on
11874 # AC_LIBTOOL_WIN32_DLL.
11875 #
11876 # "-Wl,--export-all-symbols" is a bit of a hack, it gets all functions
11877 # and variables exported. This is what libtool did in the past, and
11878 # it's convenient.
11879 if test "$enable_shared" = yes; then
11880 LIBIML_LDFLAGS="$LIBIML_LDFLAGS -no-undefined -Wl,--export-all-symbols"
11881 fi
11882 ;;
11883 esac
11884
11885 DEFAULT_CFLAGS="-O3 -Wall"
11886 CFLAGS="-I. ${CFLAGS:-$DEFAULT_CFLAGS}"
11887
11888 for ac_header in stdlib.h time.h
11889 do :
11890 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11891 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11892 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11893 cat >>confdefs.h <<_ACEOF
11894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11895 _ACEOF
11896
11897 fi
11898
11899 done
11900
11901
11902 for ac_header in math.h
11903 do :
11904 ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
11905 if test "x$ac_cv_header_math_h" = xyes; then :
11906 cat >>confdefs.h <<_ACEOF
11907 #define HAVE_MATH_H 1
11908 _ACEOF
11909
11910 else
11911 echo 'error: could not find required header math.h, configuration aborted.' exit 1
11912 fi
11913
11914 done
11915
11916
11917 # Checks for typedefs, structures, and compiler characteristics.
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11919 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11920 if ${ac_cv_c_const+:} false; then :
11921 $as_echo_n "(cached) " >&6
11922 else
11923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924 /* end confdefs.h. */
11925
11926 int
11927 main ()
11928 {
11929
11930 #ifndef __cplusplus
11931 /* Ultrix mips cc rejects this sort of thing. */
11932 typedef int charset[2];
11933 const charset cs = { 0, 0 };
11934 /* SunOS 4.1.1 cc rejects this. */
11935 char const *const *pcpcc;
11936 char **ppc;
11937 /* NEC SVR4.0.2 mips cc rejects this. */
11938 struct point {int x, y;};
11939 static struct point const zero = {0,0};
11940 /* AIX XL C 1.02.0.0 rejects this.
11941 It does not let you subtract one const X* pointer from another in
11942 an arm of an if-expression whose if-part is not a constant
11943 expression */
11944 const char *g = "string";
11945 pcpcc = &g + (g ? g-g : 0);
11946 /* HPUX 7.0 cc rejects these. */
11947 ++pcpcc;
11948 ppc = (char**) pcpcc;
11949 pcpcc = (char const *const *) ppc;
11950 { /* SCO 3.2v4 cc rejects this sort of thing. */
11951 char tx;
11952 char *t = &tx;
11953 char const *s = 0 ? (char *) 0 : (char const *) 0;
11954
11955 *t++ = 0;
11956 if (s) return 0;
11957 }
11958 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11959 int x[] = {25, 17};
11960 const int *foo = &x[0];
11961 ++foo;
11962 }
11963 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11964 typedef const int *iptr;
11965 iptr p = 0;
11966 ++p;
11967 }
11968 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11969 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11970 struct s { int j; const int *ap[3]; } bx;
11971 struct s *b = &bx; b->j = 5;
11972 }
11973 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11974 const int foo = 10;
11975 if (!foo) return 0;
11976 }
11977 return !cs[0] && !zero.x;
11978 #endif
11979
11980 ;
11981 return 0;
11982 }
11983 _ACEOF
11984 if ac_fn_c_try_compile "$LINENO"; then :
11985 ac_cv_c_const=yes
11986 else
11987 ac_cv_c_const=no
11988 fi
11989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11990 fi
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11992 $as_echo "$ac_cv_c_const" >&6; }
11993 if test $ac_cv_c_const = no; then
11994
11995 $as_echo "#define const /**/" >>confdefs.h
11996
11997 fi
11998
11999 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12000 if test "x$ac_cv_type_size_t" = xyes; then :
12001
12002 else
12003
12004 cat >>confdefs.h <<_ACEOF
12005 #define size_t unsigned int
12006 _ACEOF
12007
12008 fi
12009
12010
12011 # Checks for library functions.
12012 for ac_header in stdlib.h
12013 do :
12014 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12015 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12016 cat >>confdefs.h <<_ACEOF
12017 #define HAVE_STDLIB_H 1
12018 _ACEOF
12019
12020 fi
12021
12022 done
12023
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
12025 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
12026 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
12027 $as_echo_n "(cached) " >&6
12028 else
12029 if test "$cross_compiling" = yes; then :
12030 ac_cv_func_realloc_0_nonnull=no
12031 else
12032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12033 /* end confdefs.h. */
12034 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12035 # include <stdlib.h>
12036 #else
12037 char *realloc ();
12038 #endif
12039
12040 int
12041 main ()
12042 {
12043 return ! realloc (0, 0);
12044 ;
12045 return 0;
12046 }
12047 _ACEOF
12048 if ac_fn_c_try_run "$LINENO"; then :
12049 ac_cv_func_realloc_0_nonnull=yes
12050 else
12051 ac_cv_func_realloc_0_nonnull=no
12052 fi
12053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12054 conftest.$ac_objext conftest.beam conftest.$ac_ext
12055 fi
12056
12057 fi
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
12059 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
12060 if test $ac_cv_func_realloc_0_nonnull = yes; then :
12061
12062 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
12063
12064 else
12065 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
12066
12067 case " $LIBOBJS " in
12068 *" realloc.$ac_objext "* ) ;;
12069 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
12070 ;;
12071 esac
12072
12073
12074 $as_echo "#define realloc rpl_realloc" >>confdefs.h
12075
12076 fi
12077
12078
12079
12080 for ac_func in bzero memset
12081 do :
12082 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12083 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12084 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12085 cat >>confdefs.h <<_ACEOF
12086 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12087 _ACEOF
12088 break
12089 fi
12090 done
12091
12092
12093 for ac_func in calloc floor
12094 do :
12095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12096 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12097 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12098 cat >>confdefs.h <<_ACEOF
12099 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12100 _ACEOF
12101
12102 fi
12103 done
12104
12105
12106
12107 # Check whether --enable-verbose-mode was given.
12108 if test "${enable_verbose_mode+set}" = set; then :
12109 enableval=$enable_verbose_mode;
12110
12111 $as_echo "#define HAVE_VERBOSE_MODE 1" >>confdefs.h
12112
12113
12114 fi
12115
12116
12117
12118
12119
12120 # Check whether --with-default was given.
12121 if test "${with_default+set}" = set; then :
12122 withval=$with_default; echo "Default checking path = $withval /usr /usr/local"
12123 DEFAULT_CHECKING_PATH="$withval /usr /usr/local"
12124
12125 else
12126
12127 echo "Default checking path = /usr /usr/local"
12128 DEFAULT_CHECKING_PATH="/usr /usr/local"
12129
12130 fi
12131
12132
12133
12134
12135
12136 # Check whether --with-gmp-include was given.
12137 if test "${with_gmp_include+set}" = set; then :
12138 withval=$with_gmp_include;
12139 GMP_INPUT_HEADER=$withval
12140 GMP_HEADER_PATH="${GMP_INPUT_HEADER}"
12141 for GMP_HOME in ${DEFAULT_CHECKING_PATH}
12142 do
12143 GMP_HEADER_PATH="${GMP_HEADER_PATH} ${GMP_HOME}/include"
12144 done
12145
12146 else
12147
12148 for GMP_HOME in ${DEFAULT_CHECKING_PATH}
12149 do
12150 GMP_HEADER_PATH="${GMP_HEADER_PATH} ${GMP_HOME}/include"
12151 done
12152
12153 fi
12154
12155
12156
12157 # Check whether --with-gmp-lib was given.
12158 if test "${with_gmp_lib+set}" = set; then :
12159 withval=$with_gmp_lib;
12160 GMP_INPUT_LIB=$withval
12161 GMP_LIBRARY_PATH="${GMP_INPUT_LIB}"
12162 for GMP_HOME in ${DEFAULT_CHECKING_PATH}
12163 do
12164 GMP_LIBRARY_PATH="${GMP_LIBRARY_PATH} ${GMP_HOME}/lib"
12165 done
12166
12167 else
12168
12169 for GMP_HOME in ${DEFAULT_CHECKING_PATH}
12170 do
12171 GMP_LIBRARY_PATH="${GMP_LIBRARY_PATH} ${GMP_HOME}/lib"
12172 done
12173
12174 fi
12175
12176
12177
12178 if test "x${GMP_INPUT_HEADER}" != x; then
12179 if test -z "${GMP_INPUT_LIB}"; then
12180 echo 'error: since you have specified the GMP header path, you must specify the'
12181 echo 'GMP library path using --with-gmp-lib.'
12182 exit 1
12183 fi
12184 fi
12185
12186 if test "x${GMP_INPUT_LIB}" != x; then
12187 if test -z "${GMP_INPUT_HEADER}"; then
12188 echo 'error: since you have specified the GMP library path, you must specify the'
12189 echo 'GMP header path using --with-gmp-include.'
12190 exit 1
12191 fi
12192 fi
12193
12194 min_gmp_version=3.1.1
12195
12196 BACKUP_CFLAGS=${CFLAGS}
12197 BACKUP_LIBS=${LIBS}
12198
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMP >= $min_gmp_version" >&5
12200 $as_echo_n "checking for GMP >= $min_gmp_version... " >&6; }
12201
12202 gmp_found="no"
12203
12204
12205 for GMP_HEADER in ${GMP_HEADER_PATH}
12206 do
12207 if test -r "${GMP_HEADER}/gmp.h"; then
12208 if test "x${GMP_HEADER}" != "x/usr/include" -a "x${GMP_HEADER}" != "x/usr/local/include"; then
12209 for GMP_LIBRARY in ${GMP_LIBRARY_PATH}
12210 do
12211 if test "x${GMP_LIBRARY}" != "x/usr/lib" -a "x${GMP_LIBRARY}" != "x/usr/local/lib"; then
12212 GMP_CFLAGS="-I${GMP_HEADER}"
12213 GMP_LIBS="${GMP_LIBS} -L${GMP_LIBRARY} -lgmp"
12214 fi
12215 done
12216 else
12217 GMP_CFLAGS=
12218 GMP_LIBS="-lgmp"
12219 fi
12220
12221 CFLAGS="${CFLAGS} ${GMP_CFLAGS}"
12222 LIBS="${LIBS} ${GMP_LIBS}"
12223
12224
12225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12226 /* end confdefs.h. */
12227 #include <gmp.h>
12228 int
12229 main ()
12230 {
12231 mpz_t a; mpz_init (a);
12232 ;
12233 return 0;
12234 }
12235 _ACEOF
12236 if ac_fn_c_try_link "$LINENO"; then :
12237
12238 if test "$cross_compiling" = yes; then :
12239
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12241 $as_echo "unknown" >&6; }
12242 gmp_found="yes"
12243 echo 'You appear to be cross compiling, so there is'
12244 echo 'no way to determine whether your GMP version is new enough.'
12245 echo 'I am assuming it is'
12246
12247
12248
12249 $as_echo "#define HAVE_GMP 1" >>confdefs.h
12250
12251 :
12252 break
12253
12254 else
12255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12256 /* end confdefs.h. */
12257 #include <gmp.h>
12258 int main() { if (__GNU_MP_VERSION < 3) return -1;
12259 else return 0; }
12260
12261 _ACEOF
12262 if ac_fn_c_try_run "$LINENO"; then :
12263
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12265 $as_echo "found" >&6; }
12266 gmp_found="yes"
12267
12268
12269
12270 $as_echo "#define HAVE_GMP 1" >>confdefs.h
12271
12272 # See if we are running GMP 4.0
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GMP is 4.0 or greater" >&5
12274 $as_echo_n "checking whether GMP is 4.0 or greater... " >&6; }
12275 if test "$cross_compiling" = yes; then :
12276
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278 $as_echo "no" >&6; }
12279
12280 else
12281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h. */
12283 #include <gmp.h>
12284 int main () { if (__GNU_MP_VERSION < 4) return -1; else return 0; }
12285
12286 _ACEOF
12287 if ac_fn_c_try_run "$LINENO"; then :
12288
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12290 $as_echo "yes" >&6; }
12291
12292 else
12293
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295 $as_echo "no" >&6; }
12296
12297 $as_echo "#define GMP_VERSION_3 1" >>confdefs.h
12298
12299 GMP_VERSION="-DGMP_VERSION_3"
12300
12301
12302 fi
12303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12304 conftest.$ac_objext conftest.beam conftest.$ac_ext
12305 fi
12306
12307 :
12308 break
12309
12310 else
12311
12312 gmp_problem="$gmp_problem $GMP_HEADER"
12313 unset GMP_CFLAGS
12314 unset GMP_LIBS
12315
12316 fi
12317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12318 conftest.$ac_objext conftest.beam conftest.$ac_ext
12319 fi
12320
12321
12322 else
12323
12324 unset GMP_CFLAGS
12325 unset GMP_LIBS
12326
12327 fi
12328 rm -f core conftest.err conftest.$ac_objext \
12329 conftest$ac_exeext conftest.$ac_ext
12330 fi
12331 done
12332
12333 if test "x$gmp_found" = "xno"; then
12334 if test -n "$gmp_problem"; then
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: problem: your GMP version is too old. Disabling." >&5
12336 $as_echo "problem: your GMP version is too old. Disabling." >&6; }
12337 else
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12339 $as_echo "not found" >&6; }
12340 fi
12341 as_fn_error $? "GMP not found!
12342 GMP version 3.1.1 or greater is required for this library to compile.
12343 Please make sure GMP is installed and specify the header and libraries
12344 location with the options --with-gmp-include=<path> and --with-gmp-lib=<path>
12345 respectively when running configure.
12346 " "$LINENO" 5
12347 fi
12348
12349 CFLAGS=${BACKUP_CFLAGS}
12350 LIBS=${BACKUP_LIBS}
12351 #unset LD_LIBRARY_PATH
12352
12353
12354
12355
12356
12357 # Check whether --with-cblas was given.
12358 if test "${with_cblas+set}" = set; then :
12359 withval=$with_cblas;
12360 CBLAS_LIBS=$withval
12361
12362 else
12363
12364 CBLAS_LIBS="-lcblas -latlas"
12365
12366 fi
12367
12368
12369
12370
12371 # Check whether --with-cblas-include was given.
12372 if test "${with_cblas_include+set}" = set; then :
12373 withval=$with_cblas_include;
12374 CBLAS_INPUT_HEADER=$withval
12375 CBLAS_HEADER_PATH="${CBLAS_INPUT_HEADER}"
12376 for CBLAS_HOME in ${DEFAULT_CHECKING_PATH}
12377 do
12378 CBLAS_HEADER_PATH="${CBLAS_HEADER_PATH} ${CBLAS_HOME}/include"
12379 done
12380 CBLAS_HEADER_PATH="${CBLAS_HEADER_PATH} ${srcdir}"
12381
12382 else
12383
12384 for CBLAS_HOME in ${DEFAULT_CHECKING_PATH}
12385 do
12386 CBLAS_HEADER_PATH="${CBLAS_HEADER_PATH} ${CBLAS_HOME}/include"
12387 done
12388 CBLAS_HEADER_PATH="${CBLAS_HEADER_PATH} ${srcdir}"
12389
12390 fi
12391
12392
12393
12394 # Check whether --with-cblas-lib was given.
12395 if test "${with_cblas_lib+set}" = set; then :
12396 withval=$with_cblas_lib;
12397 CBLAS_INPUT_LIB=$withval
12398 CBLAS_LIBRARY_PATH="${CBLAS_INPUT_LIB}"
12399 for CBLAS_HOME in ${DEFAULT_CHECKING_PATH}
12400 do
12401 CBLAS_LIBRARY_PATH="${CBLAS_LIBRARY_PATH} ${CBLAS_HOME}/lib"
12402 done
12403
12404 else
12405
12406 for CBLAS_HOME in ${DEFAULT_CHECKING_PATH}
12407 do
12408 CBLAS_LIBRARY_PATH="${CBLAS_LIBRARY_PATH} ${CBLAS_HOME}/lib"
12409 done
12410
12411 fi
12412
12413
12414
12415
12416
12417 BACKUP_CFLAGS=${CFLAGS}
12418 BACKUP_LIBS=${LIBS}
12419
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CBLAS" >&5
12421 $as_echo_n "checking for CBLAS... " >&6; }
12422
12423 cblas_found="no"
12424
12425 for CBLAS_HEADER in ${CBLAS_HEADER_PATH}
12426 do
12427 if test -r "${CBLAS_HEADER}/cblas.h"; then
12428 if test "x${CBLAS_HEADER}" != "x/usr/include" -a "x${CBLAS_HEADER}" != "x/usr/local/include"; then
12429 CBLAS_CFLAGS="-I${CBLAS_HEADER}"
12430 else
12431 CBLAS_CFLAGS=
12432 fi
12433 for CBLAS_LIBRARY in ${CBLAS_LIBRARY_PATH}
12434 do
12435 if test "x${CBLAS_LIBRARY}" != "x/usr/lib" -a "x${CBLAS_LIBRARY}" != "x/usr/local/lib"; then
12436 CBLAS_LIBS="-L${CBLAS_LIBRARY} ${CBLAS_LIBS}"
12437 else
12438 CBLAS_LIBS="${CBLAS_LIBS}"
12439 fi
12440 done
12441
12442 CFLAGS="${BACKUP_CFLAGS} ${CBLAS_CFLAGS} ${GMP_CFLAGS}"
12443 LIBS="${BACKUP_LIBS} ${CBLAS_LIBS} ${GMP_LIBS}"
12444
12445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446 /* end confdefs.h. */
12447 #include <cblas.h>
12448 int
12449 main ()
12450 {
12451 double a;
12452 ;
12453 return 0;
12454 }
12455 _ACEOF
12456 if ac_fn_c_try_link "$LINENO"; then :
12457
12458 cblas_found="yes"
12459 break
12460
12461 else
12462
12463 unset CBLAS_CFLAGS
12464 unset CBLAS_LIBS
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CBLAS not found!
12466 Please make sure that --with-cblas=<linker flags> and optional --with-cblas-include=<path> and --with-cblas-lib=<path> are correctly set.
12467 Trying legacy ATLAS configuration." >&5
12468 $as_echo "$as_me: WARNING: CBLAS not found!
12469 Please make sure that --with-cblas=<linker flags> and optional --with-cblas-include=<path> and --with-cblas-lib=<path> are correctly set.
12470 Trying legacy ATLAS configuration." >&2;}
12471
12472
12473
12474 # Check whether --with-atlas-include was given.
12475 if test "${with_atlas_include+set}" = set; then :
12476 withval=$with_atlas_include;
12477 ATLAS_INPUT_HEADER=$withval
12478 ATLAS_HEADER_PATH="${ATLAS_INPUT_HEADER}"
12479 for ATLAS_HOME in ${DEFAULT_CHECKING_PATH}
12480 do
12481 ATLAS_HEADER_PATH="${ATLAS_HEADER_PATH} ${ATLAS_HOME}/include"
12482 done
12483
12484 else
12485
12486 for ATLAS_HOME in ${DEFAULT_CHECKING_PATH}
12487 do
12488 ATLAS_HEADER_PATH="${ATLAS_HEADER_PATH} ${ATLAS_HOME}/include"
12489 done
12490
12491 fi
12492
12493
12494
12495 # Check whether --with-atlas-lib was given.
12496 if test "${with_atlas_lib+set}" = set; then :
12497 withval=$with_atlas_lib;
12498 ATLAS_INPUT_LIB=$withval
12499 ATLAS_LIBRARY_PATH="${ATLAS_INPUT_LIB}"
12500 for ATLAS_HOME in ${DEFAULT_CHECKING_PATH}
12501 do
12502 ATLAS_LIBRARY_PATH="${ATLAS_LIBRARY_PATH} ${ATLAS_HOME}/lib"
12503 done
12504
12505 else
12506
12507 for ATLAS_HOME in ${DEFAULT_CHECKING_PATH}
12508 do
12509 ATLAS_LIBRARY_PATH="${ATLAS_LIBRARY_PATH} ${ATLAS_HOME}/lib"
12510 done
12511
12512 fi
12513
12514
12515
12516 if test "x${ATLAS_INPUT_HEADER}" != x; then
12517 if test -z "${ATLAS_INPUT_LIB}"; then
12518 echo 'error: since you have specified the ATLAS header path, you must specify the'
12519 echo 'ATLAS library path using --with-atlas-lib.'
12520 exit 1
12521 fi
12522 fi
12523
12524 if test "x${ATLAS_INPUT_LIB}" != x; then
12525 if test -z "${ATLAS_INPUT_HEADER}"; then
12526 echo 'error: since you have specified the ATLAS library path, you must specify the'
12527 echo 'ATLAS header path using --with-atlas-include.'
12528 exit 1
12529 fi
12530 fi
12531
12532
12533 min_atlas_version=3.0
12534
12535
12536 BACKUP_CFLAGS=${CFLAGS}
12537 BACKUP_LIBS=${LIBS}
12538
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATLAS >= ${min_atlas_version}" >&5
12540 $as_echo_n "checking for ATLAS >= ${min_atlas_version}... " >&6; }
12541
12542 atlas_found="no"
12543
12544 for ATLAS_HEADER in ${ATLAS_HEADER_PATH}
12545 do
12546 if test -r "${ATLAS_HEADER}/cblas.h"; then
12547 if test "x${ATLAS_HEADER}" != "x/usr/include" -a "x${ATLAS_HEADER}" != "x/usr/local/include"; then
12548 for ATLAS_LIBRARY in ${ATLAS_LIBRARY_PATH}
12549 do
12550 if test "x${ATLAS_LIBRARY}" != "x/usr/lib" -a "x${ATLAS_LIBRARY}" != "x/usr/local/lib"; then
12551 ATLAS_CFLAGS="-I${ATLAS_HEADER}"
12552 ATLAS_LIBS="${ATLAS_LIBS} -L${ATLAS_LIBRARY} -lcblas -latlas"
12553 fi
12554 done
12555 else
12556 ATLAS_CFLAGS=
12557 ATLAS_LIBS="-lcblas -latlas"
12558 fi
12559
12560 CFLAGS="${BACKUP_CFLAGS} ${ATLAS_CFLAGS} ${GMP_CFLAGS}"
12561 LIBS="${BACKUP_LIBS} ${ATLAS_LIBS} ${GMP_LIBS}"
12562
12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564 /* end confdefs.h. */
12565 #include <cblas.h>
12566 int
12567 main ()
12568 {
12569 double a;
12570 ;
12571 return 0;
12572 }
12573 _ACEOF
12574 if ac_fn_c_try_link "$LINENO"; then :
12575
12576 atlas_found="yes"
12577 break
12578
12579 else
12580
12581 unset ATLAS_CFLAGS
12582 unset ATLAS_LIBS
12583 as_fn_error $? "ATLAS not found!
12584 ATLAS version 3.0 or greater is required for this library to compile. Please make sure ATLAS is installed and specify the header and libraries location with the options --with-atlas-include=<path> and --with-atlas-lib=<path> respectively when running configure." "$LINENO" 5
12585
12586
12587 fi
12588 rm -f core conftest.err conftest.$ac_objext \
12589 conftest$ac_exeext conftest.$ac_ext
12590 fi
12591 done
12592
12593 if test "x$atlas_found" = "xyes" ; then
12594
12595
12596
12597 $as_echo "#define HAVE_ATLAS 1" >>confdefs.h
12598
12599
12600 $as_echo "#define BLAS_AVAILABLE /**/" >>confdefs.h
12601
12602 HAVE_ATLAS=yes
12603 if test "x$atlas_cross" != "xyes"; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12605 $as_echo "found" >&6; }
12606 else
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12608 $as_echo "unknown" >&6; }
12609 echo 'WARNING: You appear to be cross compiling, so there is'
12610 echo 'no way to determine whether your ATLAS version is new'
12611 echo 'enough. I am assuming it is.'
12612 fi
12613 :
12614 elif test -n "$atlas_problem"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: problem" >&5
12616 $as_echo "problem" >&6; }
12617 as_fn_error $? "ATLAS not found!
12618 ATLAS version 3.0 or greater is required for this library to compile. Please make sure ATLAS is installed and specify the header and libraries location with the options --with-atlas-include=<path> and --with-atlas-lib=<path> respectively when running configure." "$LINENO" 5
12619
12620 elif test "x$atlas_found" = "xno" ; then
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12622 $as_echo "not found" >&6; }
12623 as_fn_error $? "ATLAS not found!
12624 ATLAS version 3.0 or greater is required for this library to compile. Please make sure ATLAS is installed and specify the header and libraries location with the options --with-atlas-include=<path> and --with-atlas-lib=<path> respectively when running configure." "$LINENO" 5
12625
12626 fi
12627
12628 CFLAGS=${BACKUP_CFLAGS}
12629 LIBS=${BACKUP_LIBS}
12630 #unset LD_LIBRARY_PATH
12631
12632
12633
12634
12635 fi
12636 rm -f core conftest.err conftest.$ac_objext \
12637 conftest$ac_exeext conftest.$ac_ext
12638 fi
12639 done
12640
12641 if test "x$cblas_found" = "xyes" ; then
12642
12643
12644
12645 $as_echo "#define HAVE_CBLAS 1" >>confdefs.h
12646
12647
12648 $as_echo "#define BLAS_AVAILABLE /**/" >>confdefs.h
12649
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12651 $as_echo "found" >&6; }
12652 :
12653 elif test "x$cblas_found" = "xno" ; then
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12655 $as_echo "not found" >&6; }
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CBLAS not found!
12657 Please make sure that --with-cblas=<linker flags> and optional --with-cblas-include=<path> and --with-cblas-lib=<path> are correctly set.
12658 Trying legacy ATLAS configuration." >&5
12659 $as_echo "$as_me: WARNING: CBLAS not found!
12660 Please make sure that --with-cblas=<linker flags> and optional --with-cblas-include=<path> and --with-cblas-lib=<path> are correctly set.
12661 Trying legacy ATLAS configuration." >&2;}
12662
12663
12664
12665 # Check whether --with-atlas-include was given.
12666 if test "${with_atlas_include+set}" = set; then :
12667 withval=$with_atlas_include;
12668 ATLAS_INPUT_HEADER=$withval
12669 ATLAS_HEADER_PATH="${ATLAS_INPUT_HEADER}"
12670 for ATLAS_HOME in ${DEFAULT_CHECKING_PATH}
12671 do
12672 ATLAS_HEADER_PATH="${ATLAS_HEADER_PATH} ${ATLAS_HOME}/include"
12673 done
12674
12675 else
12676
12677 for ATLAS_HOME in ${DEFAULT_CHECKING_PATH}
12678 do
12679 ATLAS_HEADER_PATH="${ATLAS_HEADER_PATH} ${ATLAS_HOME}/include"
12680 done
12681
12682 fi
12683
12684
12685
12686 # Check whether --with-atlas-lib was given.
12687 if test "${with_atlas_lib+set}" = set; then :
12688 withval=$with_atlas_lib;
12689 ATLAS_INPUT_LIB=$withval
12690 ATLAS_LIBRARY_PATH="${ATLAS_INPUT_LIB}"
12691 for ATLAS_HOME in ${DEFAULT_CHECKING_PATH}
12692 do
12693 ATLAS_LIBRARY_PATH="${ATLAS_LIBRARY_PATH} ${ATLAS_HOME}/lib"
12694 done
12695
12696 else
12697
12698 for ATLAS_HOME in ${DEFAULT_CHECKING_PATH}
12699 do
12700 ATLAS_LIBRARY_PATH="${ATLAS_LIBRARY_PATH} ${ATLAS_HOME}/lib"
12701 done
12702
12703 fi
12704
12705
12706
12707 if test "x${ATLAS_INPUT_HEADER}" != x; then
12708 if test -z "${ATLAS_INPUT_LIB}"; then
12709 echo 'error: since you have specified the ATLAS header path, you must specify the'
12710 echo 'ATLAS library path using --with-atlas-lib.'
12711 exit 1
12712 fi
12713 fi
12714
12715 if test "x${ATLAS_INPUT_LIB}" != x; then
12716 if test -z "${ATLAS_INPUT_HEADER}"; then
12717 echo 'error: since you have specified the ATLAS library path, you must specify the'
12718 echo 'ATLAS header path using --with-atlas-include.'
12719 exit 1
12720 fi
12721 fi
12722
12723
12724 min_atlas_version=3.0
12725
12726
12727 BACKUP_CFLAGS=${CFLAGS}
12728 BACKUP_LIBS=${LIBS}
12729
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATLAS >= ${min_atlas_version}" >&5
12731 $as_echo_n "checking for ATLAS >= ${min_atlas_version}... " >&6; }
12732
12733 atlas_found="no"
12734
12735 for ATLAS_HEADER in ${ATLAS_HEADER_PATH}
12736 do
12737 if test -r "${ATLAS_HEADER}/cblas.h"; then
12738 if test "x${ATLAS_HEADER}" != "x/usr/include" -a "x${ATLAS_HEADER}" != "x/usr/local/include"; then
12739 for ATLAS_LIBRARY in ${ATLAS_LIBRARY_PATH}
12740 do
12741 if test "x${ATLAS_LIBRARY}" != "x/usr/lib" -a "x${ATLAS_LIBRARY}" != "x/usr/local/lib"; then
12742 ATLAS_CFLAGS="-I${ATLAS_HEADER}"
12743 ATLAS_LIBS="${ATLAS_LIBS} -L${ATLAS_LIBRARY} -lcblas -latlas"
12744 fi
12745 done
12746 else
12747 ATLAS_CFLAGS=
12748 ATLAS_LIBS="-lcblas -latlas"
12749 fi
12750
12751 CFLAGS="${BACKUP_CFLAGS} ${ATLAS_CFLAGS} ${GMP_CFLAGS}"
12752 LIBS="${BACKUP_LIBS} ${ATLAS_LIBS} ${GMP_LIBS}"
12753
12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h. */
12756 #include <cblas.h>
12757 int
12758 main ()
12759 {
12760 double a;
12761 ;
12762 return 0;
12763 }
12764 _ACEOF
12765 if ac_fn_c_try_link "$LINENO"; then :
12766
12767 atlas_found="yes"
12768 break
12769
12770 else
12771
12772 unset ATLAS_CFLAGS
12773 unset ATLAS_LIBS
12774 as_fn_error $? "ATLAS not found!
12775 ATLAS version 3.0 or greater is required for this library to compile. Please make sure ATLAS is installed and specify the header and libraries location with the options --with-atlas-include=<path> and --with-atlas-lib=<path> respectively when running configure." "$LINENO" 5
12776
12777
12778 fi
12779 rm -f core conftest.err conftest.$ac_objext \
12780 conftest$ac_exeext conftest.$ac_ext
12781 fi
12782 done
12783
12784 if test "x$atlas_found" = "xyes" ; then
12785
12786
12787
12788 $as_echo "#define HAVE_ATLAS 1" >>confdefs.h
12789
12790
12791 $as_echo "#define BLAS_AVAILABLE /**/" >>confdefs.h
12792
12793 HAVE_ATLAS=yes
12794 if test "x$atlas_cross" != "xyes"; then
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12796 $as_echo "found" >&6; }
12797 else
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12799 $as_echo "unknown" >&6; }
12800 echo 'WARNING: You appear to be cross compiling, so there is'
12801 echo 'no way to determine whether your ATLAS version is new'
12802 echo 'enough. I am assuming it is.'
12803 fi
12804 :
12805 elif test -n "$atlas_problem"; then
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: problem" >&5
12807 $as_echo "problem" >&6; }
12808 as_fn_error $? "ATLAS not found!
12809 ATLAS version 3.0 or greater is required for this library to compile. Please make sure ATLAS is installed and specify the header and libraries location with the options --with-atlas-include=<path> and --with-atlas-lib=<path> respectively when running configure." "$LINENO" 5
12810
12811 elif test "x$atlas_found" = "xno" ; then
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12813 $as_echo "not found" >&6; }
12814 as_fn_error $? "ATLAS not found!
12815 ATLAS version 3.0 or greater is required for this library to compile. Please make sure ATLAS is installed and specify the header and libraries location with the options --with-atlas-include=<path> and --with-atlas-lib=<path> respectively when running configure." "$LINENO" 5
12816
12817 fi
12818
12819 CFLAGS=${BACKUP_CFLAGS}
12820 LIBS=${BACKUP_LIBS}
12821 #unset LD_LIBRARY_PATH
12822
12823
12824
12825 fi
12826
12827 CFLAGS=${BACKUP_CFLAGS}
12828 LIBS=${BACKUP_LIBS}
12829 #unset LD_LIBRARY_PATH
12830
12831
12832
12833
12834
12835
12836
12837 ac_config_files="$ac_config_files Makefile config/Makefile src/Makefile doc/Makefile examples/Makefile tests/Makefile"
12838
12839 cat >confcache <<\_ACEOF
12840 # This file is a shell script that caches the results of configure
12841 # tests run on this system so they can be shared between configure
12842 # scripts and configure runs, see configure's option --config-cache.
12843 # It is not useful on other systems. If it contains results you don't
12844 # want to keep, you may remove or edit it.
12845 #
12846 # config.status only pays attention to the cache file if you give it
12847 # the --recheck option to rerun configure.
12848 #
12849 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12850 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12851 # following values.
12852
12853 _ACEOF
12854
12855 # The following way of writing the cache mishandles newlines in values,
12856 # but we know of no workaround that is simple, portable, and efficient.
12857 # So, we kill variables containing newlines.
12858 # Ultrix sh set writes to stderr and can't be redirected directly,
12859 # and sets the high bit in the cache file unless we assign to the vars.
12860 (
12861 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12862 eval ac_val=\$$ac_var
12863 case $ac_val in #(
12864 *${as_nl}*)
12865 case $ac_var in #(
12866 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12867 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12868 esac
12869 case $ac_var in #(
12870 _ | IFS | as_nl) ;; #(
12871 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12872 *) { eval $ac_var=; unset $ac_var;} ;;
12873 esac ;;
12874 esac
12875 done
12876
12877 (set) 2>&1 |
12878 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12879 *${as_nl}ac_space=\ *)
12880 # `set' does not quote correctly, so add quotes: double-quote
12881 # substitution turns \\\\ into \\, and sed turns \\ into \.
12882 sed -n \
12883 "s/'/'\\\\''/g;
12884 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12885 ;; #(
12886 *)
12887 # `set' quotes correctly as required by POSIX, so do not add quotes.
12888 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12889 ;;
12890 esac |
12891 sort
12892 ) |
12893 sed '
12894 /^ac_cv_env_/b end
12895 t clear
12896 :clear
12897 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12898 t end
12899 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12900 :end' >>confcache
12901 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12902 if test -w "$cache_file"; then
12903 if test "x$cache_file" != "x/dev/null"; then
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12905 $as_echo "$as_me: updating cache $cache_file" >&6;}
12906 if test ! -f "$cache_file" || test -h "$cache_file"; then
12907 cat confcache >"$cache_file"
12908 else
12909 case $cache_file in #(
12910 */* | ?:*)
12911 mv -f confcache "$cache_file"$$ &&
12912 mv -f "$cache_file"$$ "$cache_file" ;; #(
12913 *)
12914 mv -f confcache "$cache_file" ;;
12915 esac
12916 fi
12917 fi
12918 else
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12920 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12921 fi
12922 fi
12923 rm -f confcache
12924
12925 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12926 # Let make expand exec_prefix.
12927 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12928
12929 DEFS=-DHAVE_CONFIG_H
12930
12931 ac_libobjs=
12932 ac_ltlibobjs=
12933 U=
12934 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12935 # 1. Remove the extension, and $U if already installed.
12936 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12937 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12938 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12939 # will be set to the directory where LIBOBJS objects are built.
12940 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12941 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12942 done
12943 LIBOBJS=$ac_libobjs
12944
12945 LTLIBOBJS=$ac_ltlibobjs
12946
12947
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12949 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12950 if test -n "$am_sleep_pid"; then
12951 # Hide warnings about reused PIDs.
12952 wait $am_sleep_pid 2>/dev/null
12953 fi
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12955 $as_echo "done" >&6; }
12956 if test -n "$EXEEXT"; then
12957 am__EXEEXT_TRUE=
12958 am__EXEEXT_FALSE='#'
12959 else
12960 am__EXEEXT_TRUE='#'
12961 am__EXEEXT_FALSE=
12962 fi
12963
12964 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12965 as_fn_error $? "conditional \"AMDEP\" was never defined.
12966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12967 fi
12968 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12969 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12971 fi
12972
12973 : "${CONFIG_STATUS=./config.status}"
12974 ac_write_fail=0
12975 ac_clean_files_save=$ac_clean_files
12976 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12978 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12979 as_write_fail=0
12980 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12981 #! $SHELL
12982 # Generated by $as_me.
12983 # Run this file to recreate the current configuration.
12984 # Compiler output produced by configure, useful for debugging
12985 # configure, is in config.log if it exists.
12986
12987 debug=false
12988 ac_cs_recheck=false
12989 ac_cs_silent=false
12990
12991 SHELL=\${CONFIG_SHELL-$SHELL}
12992 export SHELL
12993 _ASEOF
12994 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12995 ## -------------------- ##
12996 ## M4sh Initialization. ##
12997 ## -------------------- ##
12998
12999 # Be more Bourne compatible
13000 DUALCASE=1; export DUALCASE # for MKS sh
13001 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13002 emulate sh
13003 NULLCMD=:
13004 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13005 # is contrary to our usage. Disable this feature.
13006 alias -g '${1+"$@"}'='"$@"'
13007 setopt NO_GLOB_SUBST
13008 else
13009 case `(set -o) 2>/dev/null` in #(
13010 *posix*) :
13011 set -o posix ;; #(
13012 *) :
13013 ;;
13014 esac
13015 fi
13016
13017
13018 as_nl='
13019 '
13020 export as_nl
13021 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13022 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13023 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13024 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13025 # Prefer a ksh shell builtin over an external printf program on Solaris,
13026 # but without wasting forks for bash or zsh.
13027 if test -z "$BASH_VERSION$ZSH_VERSION" \
13028 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13029 as_echo='print -r --'
13030 as_echo_n='print -rn --'
13031 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13032 as_echo='printf %s\n'
13033 as_echo_n='printf %s'
13034 else
13035 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13036 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13037 as_echo_n='/usr/ucb/echo -n'
13038 else
13039 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13040 as_echo_n_body='eval
13041 arg=$1;
13042 case $arg in #(
13043 *"$as_nl"*)
13044 expr "X$arg" : "X\\(.*\\)$as_nl";
13045 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13046 esac;
13047 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13048 '
13049 export as_echo_n_body
13050 as_echo_n='sh -c $as_echo_n_body as_echo'
13051 fi
13052 export as_echo_body
13053 as_echo='sh -c $as_echo_body as_echo'
13054 fi
13055
13056 # The user is always right.
13057 if test "${PATH_SEPARATOR+set}" != set; then
13058 PATH_SEPARATOR=:
13059 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13060 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13061 PATH_SEPARATOR=';'
13062 }
13063 fi
13064
13065
13066 # IFS
13067 # We need space, tab and new line, in precisely that order. Quoting is
13068 # there to prevent editors from complaining about space-tab.
13069 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13070 # splitting by setting IFS to empty value.)
13071 IFS=" "" $as_nl"
13072
13073 # Find who we are. Look in the path if we contain no directory separator.
13074 as_myself=
13075 case $0 in #((
13076 *[\\/]* ) as_myself=$0 ;;
13077 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13078 for as_dir in $PATH
13079 do
13080 IFS=$as_save_IFS
13081 test -z "$as_dir" && as_dir=.
13082 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13083 done
13084 IFS=$as_save_IFS
13085
13086 ;;
13087 esac
13088 # We did not find ourselves, most probably we were run as `sh COMMAND'
13089 # in which case we are not to be found in the path.
13090 if test "x$as_myself" = x; then
13091 as_myself=$0
13092 fi
13093 if test ! -f "$as_myself"; then
13094 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13095 exit 1
13096 fi
13097
13098 # Unset variables that we do not need and which cause bugs (e.g. in
13099 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13100 # suppresses any "Segmentation fault" message there. '((' could
13101 # trigger a bug in pdksh 5.2.14.
13102 for as_var in BASH_ENV ENV MAIL MAILPATH
13103 do eval test x\${$as_var+set} = xset \
13104 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13105 done
13106 PS1='$ '
13107 PS2='> '
13108 PS4='+ '
13109
13110 # NLS nuisances.
13111 LC_ALL=C
13112 export LC_ALL
13113 LANGUAGE=C
13114 export LANGUAGE
13115
13116 # CDPATH.
13117 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13118
13119
13120 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13121 # ----------------------------------------
13122 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13123 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13124 # script with STATUS, using 1 if that was 0.
13125 as_fn_error ()
13126 {
13127 as_status=$1; test $as_status -eq 0 && as_status=1
13128 if test "$4"; then
13129 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13130 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13131 fi
13132 $as_echo "$as_me: error: $2" >&2
13133 as_fn_exit $as_status
13134 } # as_fn_error
13135
13136
13137 # as_fn_set_status STATUS
13138 # -----------------------
13139 # Set $? to STATUS, without forking.
13140 as_fn_set_status ()
13141 {
13142 return $1
13143 } # as_fn_set_status
13144
13145 # as_fn_exit STATUS
13146 # -----------------
13147 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13148 as_fn_exit ()
13149 {
13150 set +e
13151 as_fn_set_status $1
13152 exit $1
13153 } # as_fn_exit
13154
13155 # as_fn_unset VAR
13156 # ---------------
13157 # Portably unset VAR.
13158 as_fn_unset ()
13159 {
13160 { eval $1=; unset $1;}
13161 }
13162 as_unset=as_fn_unset
13163 # as_fn_append VAR VALUE
13164 # ----------------------
13165 # Append the text in VALUE to the end of the definition contained in VAR. Take
13166 # advantage of any shell optimizations that allow amortized linear growth over
13167 # repeated appends, instead of the typical quadratic growth present in naive
13168 # implementations.
13169 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13170 eval 'as_fn_append ()
13171 {
13172 eval $1+=\$2
13173 }'
13174 else
13175 as_fn_append ()
13176 {
13177 eval $1=\$$1\$2
13178 }
13179 fi # as_fn_append
13180
13181 # as_fn_arith ARG...
13182 # ------------------
13183 # Perform arithmetic evaluation on the ARGs, and store the result in the
13184 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13185 # must be portable across $(()) and expr.
13186 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13187 eval 'as_fn_arith ()
13188 {
13189 as_val=$(( $* ))
13190 }'
13191 else
13192 as_fn_arith ()
13193 {
13194 as_val=`expr "$@" || test $? -eq 1`
13195 }
13196 fi # as_fn_arith
13197
13198
13199 if expr a : '\(a\)' >/dev/null 2>&1 &&
13200 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13201 as_expr=expr
13202 else
13203 as_expr=false
13204 fi
13205
13206 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13207 as_basename=basename
13208 else
13209 as_basename=false
13210 fi
13211
13212 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13213 as_dirname=dirname
13214 else
13215 as_dirname=false
13216 fi
13217
13218 as_me=`$as_basename -- "$0" ||
13219 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13220 X"$0" : 'X\(//\)$' \| \
13221 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13222 $as_echo X/"$0" |
13223 sed '/^.*\/\([^/][^/]*\)\/*$/{
13224 s//\1/
13225 q
13226 }
13227 /^X\/\(\/\/\)$/{
13228 s//\1/
13229 q
13230 }
13231 /^X\/\(\/\).*/{
13232 s//\1/
13233 q
13234 }
13235 s/.*/./; q'`
13236
13237 # Avoid depending upon Character Ranges.
13238 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13239 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13240 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13241 as_cr_digits='0123456789'
13242 as_cr_alnum=$as_cr_Letters$as_cr_digits
13243
13244 ECHO_C= ECHO_N= ECHO_T=
13245 case `echo -n x` in #(((((
13246 -n*)
13247 case `echo 'xy\c'` in
13248 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13249 xy) ECHO_C='\c';;
13250 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13251 ECHO_T=' ';;
13252 esac;;
13253 *)
13254 ECHO_N='-n';;
13255 esac
13256
13257 rm -f conf$$ conf$$.exe conf$$.file
13258 if test -d conf$$.dir; then
13259 rm -f conf$$.dir/conf$$.file
13260 else
13261 rm -f conf$$.dir
13262 mkdir conf$$.dir 2>/dev/null
13263 fi
13264 if (echo >conf$$.file) 2>/dev/null; then
13265 if ln -s conf$$.file conf$$ 2>/dev/null; then
13266 as_ln_s='ln -s'
13267 # ... but there are two gotchas:
13268 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13269 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13270 # In both cases, we have to default to `cp -pR'.
13271 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13272 as_ln_s='cp -pR'
13273 elif ln conf$$.file conf$$ 2>/dev/null; then
13274 as_ln_s=ln
13275 else
13276 as_ln_s='cp -pR'
13277 fi
13278 else
13279 as_ln_s='cp -pR'
13280 fi
13281 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13282 rmdir conf$$.dir 2>/dev/null
13283
13284
13285 # as_fn_mkdir_p
13286 # -------------
13287 # Create "$as_dir" as a directory, including parents if necessary.
13288 as_fn_mkdir_p ()
13289 {
13290
13291 case $as_dir in #(
13292 -*) as_dir=./$as_dir;;
13293 esac
13294 test -d "$as_dir" || eval $as_mkdir_p || {
13295 as_dirs=
13296 while :; do
13297 case $as_dir in #(
13298 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13299 *) as_qdir=$as_dir;;
13300 esac
13301 as_dirs="'$as_qdir' $as_dirs"
13302 as_dir=`$as_dirname -- "$as_dir" ||
13303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13304 X"$as_dir" : 'X\(//\)[^/]' \| \
13305 X"$as_dir" : 'X\(//\)$' \| \
13306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13307 $as_echo X"$as_dir" |
13308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13309 s//\1/
13310 q
13311 }
13312 /^X\(\/\/\)[^/].*/{
13313 s//\1/
13314 q
13315 }
13316 /^X\(\/\/\)$/{
13317 s//\1/
13318 q
13319 }
13320 /^X\(\/\).*/{
13321 s//\1/
13322 q
13323 }
13324 s/.*/./; q'`
13325 test -d "$as_dir" && break
13326 done
13327 test -z "$as_dirs" || eval "mkdir $as_dirs"
13328 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13329
13330
13331 } # as_fn_mkdir_p
13332 if mkdir -p . 2>/dev/null; then
13333 as_mkdir_p='mkdir -p "$as_dir"'
13334 else
13335 test -d ./-p && rmdir ./-p
13336 as_mkdir_p=false
13337 fi
13338
13339
13340 # as_fn_executable_p FILE
13341 # -----------------------
13342 # Test if FILE is an executable regular file.
13343 as_fn_executable_p ()
13344 {
13345 test -f "$1" && test -x "$1"
13346 } # as_fn_executable_p
13347 as_test_x='test -x'
13348 as_executable_p=as_fn_executable_p
13349
13350 # Sed expression to map a string onto a valid CPP name.
13351 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13352
13353 # Sed expression to map a string onto a valid variable name.
13354 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13355
13356
13357 exec 6>&1
13358 ## ----------------------------------- ##
13359 ## Main body of $CONFIG_STATUS script. ##
13360 ## ----------------------------------- ##
13361 _ASEOF
13362 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13363
13364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13365 # Save the log message, to keep $0 and so on meaningful, and to
13366 # report actual input values of CONFIG_FILES etc. instead of their
13367 # values after options handling.
13368 ac_log="
13369 This file was extended by IML $as_me 1.0.4, which was
13370 generated by GNU Autoconf 2.69. Invocation command line was
13371
13372 CONFIG_FILES = $CONFIG_FILES
13373 CONFIG_HEADERS = $CONFIG_HEADERS
13374 CONFIG_LINKS = $CONFIG_LINKS
13375 CONFIG_COMMANDS = $CONFIG_COMMANDS
13376 $ $0 $@
13377
13378 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13379 "
13380
13381 _ACEOF
13382
13383 case $ac_config_files in *"
13384 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13385 esac
13386
13387 case $ac_config_headers in *"
13388 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13389 esac
13390
13391
13392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13393 # Files that config.status was made for.
13394 config_files="$ac_config_files"
13395 config_headers="$ac_config_headers"
13396 config_commands="$ac_config_commands"
13397
13398 _ACEOF
13399
13400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13401 ac_cs_usage="\
13402 \`$as_me' instantiates files and other configuration actions
13403 from templates according to the current configuration. Unless the files
13404 and actions are specified as TAGs, all are instantiated by default.
13405
13406 Usage: $0 [OPTION]... [TAG]...
13407
13408 -h, --help print this help, then exit
13409 -V, --version print version number and configuration settings, then exit
13410 --config print configuration, then exit
13411 -q, --quiet, --silent
13412 do not print progress messages
13413 -d, --debug don't remove temporary files
13414 --recheck update $as_me by reconfiguring in the same conditions
13415 --file=FILE[:TEMPLATE]
13416 instantiate the configuration file FILE
13417 --header=FILE[:TEMPLATE]
13418 instantiate the configuration header FILE
13419
13420 Configuration files:
13421 $config_files
13422
13423 Configuration headers:
13424 $config_headers
13425
13426 Configuration commands:
13427 $config_commands
13428
13429 Report bugs to the package provider."
13430
13431 _ACEOF
13432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13433 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13434 ac_cs_version="\\
13435 IML config.status 1.0.4
13436 configured by $0, generated by GNU Autoconf 2.69,
13437 with options \\"\$ac_cs_config\\"
13438
13439 Copyright (C) 2012 Free Software Foundation, Inc.
13440 This config.status script is free software; the Free Software Foundation
13441 gives unlimited permission to copy, distribute and modify it."
13442
13443 ac_pwd='$ac_pwd'
13444 srcdir='$srcdir'
13445 INSTALL='$INSTALL'
13446 MKDIR_P='$MKDIR_P'
13447 AWK='$AWK'
13448 test -n "\$AWK" || AWK=awk
13449 _ACEOF
13450
13451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13452 # The default lists apply if the user does not specify any file.
13453 ac_need_defaults=:
13454 while test $# != 0
13455 do
13456 case $1 in
13457 --*=?*)
13458 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13459 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13460 ac_shift=:
13461 ;;
13462 --*=)
13463 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13464 ac_optarg=
13465 ac_shift=:
13466 ;;
13467 *)
13468 ac_option=$1
13469 ac_optarg=$2
13470 ac_shift=shift
13471 ;;
13472 esac
13473
13474 case $ac_option in
13475 # Handling of the options.
13476 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13477 ac_cs_recheck=: ;;
13478 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13479 $as_echo "$ac_cs_version"; exit ;;
13480 --config | --confi | --conf | --con | --co | --c )
13481 $as_echo "$ac_cs_config"; exit ;;
13482 --debug | --debu | --deb | --de | --d | -d )
13483 debug=: ;;
13484 --file | --fil | --fi | --f )
13485 $ac_shift
13486 case $ac_optarg in
13487 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13488 '') as_fn_error $? "missing file argument" ;;
13489 esac
13490 as_fn_append CONFIG_FILES " '$ac_optarg'"
13491 ac_need_defaults=false;;
13492 --header | --heade | --head | --hea )
13493 $ac_shift
13494 case $ac_optarg in
13495 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13496 esac
13497 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13498 ac_need_defaults=false;;
13499 --he | --h)
13500 # Conflict between --help and --header
13501 as_fn_error $? "ambiguous option: \`$1'
13502 Try \`$0 --help' for more information.";;
13503 --help | --hel | -h )
13504 $as_echo "$ac_cs_usage"; exit ;;
13505 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13506 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13507 ac_cs_silent=: ;;
13508
13509 # This is an error.
13510 -*) as_fn_error $? "unrecognized option: \`$1'
13511 Try \`$0 --help' for more information." ;;
13512
13513 *) as_fn_append ac_config_targets " $1"
13514 ac_need_defaults=false ;;
13515
13516 esac
13517 shift
13518 done
13519
13520 ac_configure_extra_args=
13521
13522 if $ac_cs_silent; then
13523 exec 6>/dev/null
13524 ac_configure_extra_args="$ac_configure_extra_args --silent"
13525 fi
13526
13527 _ACEOF
13528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13529 if \$ac_cs_recheck; then
13530 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13531 shift
13532 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13533 CONFIG_SHELL='$SHELL'
13534 export CONFIG_SHELL
13535 exec "\$@"
13536 fi
13537
13538 _ACEOF
13539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13540 exec 5>>config.log
13541 {
13542 echo
13543 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13544 ## Running $as_me. ##
13545 _ASBOX
13546 $as_echo "$ac_log"
13547 } >&5
13548
13549 _ACEOF
13550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13551 #
13552 # INIT-COMMANDS
13553 #
13554 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13555
13556
13557 # The HP-UX ksh and POSIX shell print the target directory to stdout
13558 # if CDPATH is set.
13559 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13560
13561 sed_quote_subst='$sed_quote_subst'
13562 double_quote_subst='$double_quote_subst'
13563 delay_variable_subst='$delay_variable_subst'
13564 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13565 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13566 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13567 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13568 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13569 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13570 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13571 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13572 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13573 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13574 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13575 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13576 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13577 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13578 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13579 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13580 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13581 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13582 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13583 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13584 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13585 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13586 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13587 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13588 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13589 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13590 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13591 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13592 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13593 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13594 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13595 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13596 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13597 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13598 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13599 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13600 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13601 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13602 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13603 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13604 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13605 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13606 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13607 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13608 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13609 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13610 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13611 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13612 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13613 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13614 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13615 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13616 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13617 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13618 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13619 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13620 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13621 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"`'
13622 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13623 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13624 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13625 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13626 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13627 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13628 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13629 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13630 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13631 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13632 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13633 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13634 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13635 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13636 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13637 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13638 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13639 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13640 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13641 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13642 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13643 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13644 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13645 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13646 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13647 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13648 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13649 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13650 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13651 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13652 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13653 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13654 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13655 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13656 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13657 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13658 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13659 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13660 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13661 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13662 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13663 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13664 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13665 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13666 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13667 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13668 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13669 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13670 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13671 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13672 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13673 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13674 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13675 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13676 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13677 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13678 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13679 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13680 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13681 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13682 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13683 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13684 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13685 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13686 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13687 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13688 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13689 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13690 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13691 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13692 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13693 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13694 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13695
13696 LTCC='$LTCC'
13697 LTCFLAGS='$LTCFLAGS'
13698 compiler='$compiler_DEFAULT'
13699
13700 # A function that is used when there is no print builtin or printf.
13701 func_fallback_echo ()
13702 {
13703 eval 'cat <<_LTECHO_EOF
13704 \$1
13705 _LTECHO_EOF'
13706 }
13707
13708 # Quote evaled strings.
13709 for var in AS \
13710 DLLTOOL \
13711 OBJDUMP \
13712 SHELL \
13713 ECHO \
13714 PATH_SEPARATOR \
13715 SED \
13716 GREP \
13717 EGREP \
13718 FGREP \
13719 LD \
13720 NM \
13721 LN_S \
13722 lt_SP2NL \
13723 lt_NL2SP \
13724 reload_flag \
13725 deplibs_check_method \
13726 file_magic_cmd \
13727 file_magic_glob \
13728 want_nocaseglob \
13729 sharedlib_from_linklib_cmd \
13730 AR \
13731 AR_FLAGS \
13732 archiver_list_spec \
13733 STRIP \
13734 RANLIB \
13735 CC \
13736 CFLAGS \
13737 compiler \
13738 lt_cv_sys_global_symbol_pipe \
13739 lt_cv_sys_global_symbol_to_cdecl \
13740 lt_cv_sys_global_symbol_to_c_name_address \
13741 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13742 nm_file_list_spec \
13743 lt_prog_compiler_no_builtin_flag \
13744 lt_prog_compiler_pic \
13745 lt_prog_compiler_wl \
13746 lt_prog_compiler_static \
13747 lt_cv_prog_compiler_c_o \
13748 need_locks \
13749 MANIFEST_TOOL \
13750 DSYMUTIL \
13751 NMEDIT \
13752 LIPO \
13753 OTOOL \
13754 OTOOL64 \
13755 shrext_cmds \
13756 export_dynamic_flag_spec \
13757 whole_archive_flag_spec \
13758 compiler_needs_object \
13759 with_gnu_ld \
13760 allow_undefined_flag \
13761 no_undefined_flag \
13762 hardcode_libdir_flag_spec \
13763 hardcode_libdir_separator \
13764 exclude_expsyms \
13765 include_expsyms \
13766 file_list_spec \
13767 variables_saved_for_relink \
13768 libname_spec \
13769 library_names_spec \
13770 soname_spec \
13771 install_override_mode \
13772 finish_eval \
13773 old_striplib \
13774 striplib; do
13775 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13776 *[\\\\\\\`\\"\\\$]*)
13777 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13778 ;;
13779 *)
13780 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13781 ;;
13782 esac
13783 done
13784
13785 # Double-quote double-evaled strings.
13786 for var in reload_cmds \
13787 old_postinstall_cmds \
13788 old_postuninstall_cmds \
13789 old_archive_cmds \
13790 extract_expsyms_cmds \
13791 old_archive_from_new_cmds \
13792 old_archive_from_expsyms_cmds \
13793 archive_cmds \
13794 archive_expsym_cmds \
13795 module_cmds \
13796 module_expsym_cmds \
13797 export_symbols_cmds \
13798 prelink_cmds \
13799 postlink_cmds \
13800 postinstall_cmds \
13801 postuninstall_cmds \
13802 finish_cmds \
13803 sys_lib_search_path_spec \
13804 sys_lib_dlsearch_path_spec; do
13805 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13806 *[\\\\\\\`\\"\\\$]*)
13807 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13808 ;;
13809 *)
13810 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13811 ;;
13812 esac
13813 done
13814
13815 ac_aux_dir='$ac_aux_dir'
13816 xsi_shell='$xsi_shell'
13817 lt_shell_append='$lt_shell_append'
13818
13819 # See if we are running on zsh, and set the options which allow our
13820 # commands through without removal of \ escapes INIT.
13821 if test -n "\${ZSH_VERSION+set}" ; then
13822 setopt NO_GLOB_SUBST
13823 fi
13824
13825
13826 PACKAGE='$PACKAGE'
13827 VERSION='$VERSION'
13828 TIMESTAMP='$TIMESTAMP'
13829 RM='$RM'
13830 ofile='$ofile'
13831
13832
13833
13834
13835 _ACEOF
13836
13837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13838
13839 # Handling of arguments.
13840 for ac_config_target in $ac_config_targets
13841 do
13842 case $ac_config_target in
13843 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
13844 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13845 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13846 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13847 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
13848 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13849 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13850 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
13851 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13852
13853 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13854 esac
13855 done
13856
13857
13858 # If the user did not use the arguments to specify the items to instantiate,
13859 # then the envvar interface is used. Set only those that are not.
13860 # We use the long form for the default assignment because of an extremely
13861 # bizarre bug on SunOS 4.1.3.
13862 if $ac_need_defaults; then
13863 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13864 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13865 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13866 fi
13867
13868 # Have a temporary directory for convenience. Make it in the build tree
13869 # simply because there is no reason against having it here, and in addition,
13870 # creating and moving files from /tmp can sometimes cause problems.
13871 # Hook for its removal unless debugging.
13872 # Note that there is a small window in which the directory will not be cleaned:
13873 # after its creation but before its name has been assigned to `$tmp'.
13874 $debug ||
13875 {
13876 tmp= ac_tmp=
13877 trap 'exit_status=$?
13878 : "${ac_tmp:=$tmp}"
13879 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13880 ' 0
13881 trap 'as_fn_exit 1' 1 2 13 15
13882 }
13883 # Create a (secure) tmp directory for tmp files.
13884
13885 {
13886 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13887 test -d "$tmp"
13888 } ||
13889 {
13890 tmp=./conf$$-$RANDOM
13891 (umask 077 && mkdir "$tmp")
13892 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13893 ac_tmp=$tmp
13894
13895 # Set up the scripts for CONFIG_FILES section.
13896 # No need to generate them if there are no CONFIG_FILES.
13897 # This happens for instance with `./config.status config.h'.
13898 if test -n "$CONFIG_FILES"; then
13899
13900
13901 ac_cr=`echo X | tr X '\015'`
13902 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13903 # But we know of no other shell where ac_cr would be empty at this
13904 # point, so we can use a bashism as a fallback.
13905 if test "x$ac_cr" = x; then
13906 eval ac_cr=\$\'\\r\'
13907 fi
13908 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13909 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13910 ac_cs_awk_cr='\\r'
13911 else
13912 ac_cs_awk_cr=$ac_cr
13913 fi
13914
13915 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13916 _ACEOF
13917
13918
13919 {
13920 echo "cat >conf$$subs.awk <<_ACEOF" &&
13921 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13922 echo "_ACEOF"
13923 } >conf$$subs.sh ||
13924 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13925 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13926 ac_delim='%!_!# '
13927 for ac_last_try in false false false false false :; do
13928 . ./conf$$subs.sh ||
13929 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13930
13931 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13932 if test $ac_delim_n = $ac_delim_num; then
13933 break
13934 elif $ac_last_try; then
13935 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13936 else
13937 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13938 fi
13939 done
13940 rm -f conf$$subs.sh
13941
13942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13943 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13944 _ACEOF
13945 sed -n '
13946 h
13947 s/^/S["/; s/!.*/"]=/
13948 p
13949 g
13950 s/^[^!]*!//
13951 :repl
13952 t repl
13953 s/'"$ac_delim"'$//
13954 t delim
13955 :nl
13956 h
13957 s/\(.\{148\}\)..*/\1/
13958 t more1
13959 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13960 p
13961 n
13962 b repl
13963 :more1
13964 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13965 p
13966 g
13967 s/.\{148\}//
13968 t nl
13969 :delim
13970 h
13971 s/\(.\{148\}\)..*/\1/
13972 t more2
13973 s/["\\]/\\&/g; s/^/"/; s/$/"/
13974 p
13975 b
13976 :more2
13977 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13978 p
13979 g
13980 s/.\{148\}//
13981 t delim
13982 ' <conf$$subs.awk | sed '
13983 /^[^""]/{
13984 N
13985 s/\n//
13986 }
13987 ' >>$CONFIG_STATUS || ac_write_fail=1
13988 rm -f conf$$subs.awk
13989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13990 _ACAWK
13991 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13992 for (key in S) S_is_set[key] = 1
13993 FS = ""
13994
13995 }
13996 {
13997 line = $ 0
13998 nfields = split(line, field, "@")
13999 substed = 0
14000 len = length(field[1])
14001 for (i = 2; i < nfields; i++) {
14002 key = field[i]
14003 keylen = length(key)
14004 if (S_is_set[key]) {
14005 value = S[key]
14006 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14007 len += length(value) + length(field[++i])
14008 substed = 1
14009 } else
14010 len += 1 + keylen
14011 }
14012
14013 print line
14014 }
14015
14016 _ACAWK
14017 _ACEOF
14018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14019 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14020 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14021 else
14022 cat
14023 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14024 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14025 _ACEOF
14026
14027 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14028 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14029 # trailing colons and then remove the whole line if VPATH becomes empty
14030 # (actually we leave an empty line to preserve line numbers).
14031 if test "x$srcdir" = x.; then
14032 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14033 h
14034 s///
14035 s/^/:/
14036 s/[ ]*$/:/
14037 s/:\$(srcdir):/:/g
14038 s/:\${srcdir}:/:/g
14039 s/:@srcdir@:/:/g
14040 s/^:*//
14041 s/:*$//
14042 x
14043 s/\(=[ ]*\).*/\1/
14044 G
14045 s/\n//
14046 s/^[^=]*=[ ]*$//
14047 }'
14048 fi
14049
14050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14051 fi # test -n "$CONFIG_FILES"
14052
14053 # Set up the scripts for CONFIG_HEADERS section.
14054 # No need to generate them if there are no CONFIG_HEADERS.
14055 # This happens for instance with `./config.status Makefile'.
14056 if test -n "$CONFIG_HEADERS"; then
14057 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14058 BEGIN {
14059 _ACEOF
14060
14061 # Transform confdefs.h into an awk script `defines.awk', embedded as
14062 # here-document in config.status, that substitutes the proper values into
14063 # config.h.in to produce config.h.
14064
14065 # Create a delimiter string that does not exist in confdefs.h, to ease
14066 # handling of long lines.
14067 ac_delim='%!_!# '
14068 for ac_last_try in false false :; do
14069 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14070 if test -z "$ac_tt"; then
14071 break
14072 elif $ac_last_try; then
14073 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14074 else
14075 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14076 fi
14077 done
14078
14079 # For the awk script, D is an array of macro values keyed by name,
14080 # likewise P contains macro parameters if any. Preserve backslash
14081 # newline sequences.
14082
14083 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14084 sed -n '
14085 s/.\{148\}/&'"$ac_delim"'/g
14086 t rset
14087 :rset
14088 s/^[ ]*#[ ]*define[ ][ ]*/ /
14089 t def
14090 d
14091 :def
14092 s/\\$//
14093 t bsnl
14094 s/["\\]/\\&/g
14095 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14096 D["\1"]=" \3"/p
14097 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14098 d
14099 :bsnl
14100 s/["\\]/\\&/g
14101 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14102 D["\1"]=" \3\\\\\\n"\\/p
14103 t cont
14104 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14105 t cont
14106 d
14107 :cont
14108 n
14109 s/.\{148\}/&'"$ac_delim"'/g
14110 t clear
14111 :clear
14112 s/\\$//
14113 t bsnlc
14114 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14115 d
14116 :bsnlc
14117 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14118 b cont
14119 ' <confdefs.h | sed '
14120 s/'"$ac_delim"'/"\\\
14121 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14122
14123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14124 for (key in D) D_is_set[key] = 1
14125 FS = ""
14126 }
14127 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14128 line = \$ 0
14129 split(line, arg, " ")
14130 if (arg[1] == "#") {
14131 defundef = arg[2]
14132 mac1 = arg[3]
14133 } else {
14134 defundef = substr(arg[1], 2)
14135 mac1 = arg[2]
14136 }
14137 split(mac1, mac2, "(") #)
14138 macro = mac2[1]
14139 prefix = substr(line, 1, index(line, defundef) - 1)
14140 if (D_is_set[macro]) {
14141 # Preserve the white space surrounding the "#".
14142 print prefix "define", macro P[macro] D[macro]
14143 next
14144 } else {
14145 # Replace #undef with comments. This is necessary, for example,
14146 # in the case of _POSIX_SOURCE, which is predefined and required
14147 # on some systems where configure will not decide to define it.
14148 if (defundef == "undef") {
14149 print "/*", prefix defundef, macro, "*/"
14150 next
14151 }
14152 }
14153 }
14154 { print }
14155 _ACAWK
14156 _ACEOF
14157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14158 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14159 fi # test -n "$CONFIG_HEADERS"
14160
14161
14162 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14163 shift
14164 for ac_tag
14165 do
14166 case $ac_tag in
14167 :[FHLC]) ac_mode=$ac_tag; continue;;
14168 esac
14169 case $ac_mode$ac_tag in
14170 :[FHL]*:*);;
14171 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14172 :[FH]-) ac_tag=-:-;;
14173 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14174 esac
14175 ac_save_IFS=$IFS
14176 IFS=:
14177 set x $ac_tag
14178 IFS=$ac_save_IFS
14179 shift
14180 ac_file=$1
14181 shift
14182
14183 case $ac_mode in
14184 :L) ac_source=$1;;
14185 :[FH])
14186 ac_file_inputs=
14187 for ac_f
14188 do
14189 case $ac_f in
14190 -) ac_f="$ac_tmp/stdin";;
14191 *) # Look for the file first in the build tree, then in the source tree
14192 # (if the path is not absolute). The absolute path cannot be DOS-style,
14193 # because $ac_f cannot contain `:'.
14194 test -f "$ac_f" ||
14195 case $ac_f in
14196 [\\/$]*) false;;
14197 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14198 esac ||
14199 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14200 esac
14201 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14202 as_fn_append ac_file_inputs " '$ac_f'"
14203 done
14204
14205 # Let's still pretend it is `configure' which instantiates (i.e., don't
14206 # use $as_me), people would be surprised to read:
14207 # /* config.h. Generated by config.status. */
14208 configure_input='Generated from '`
14209 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14210 `' by configure.'
14211 if test x"$ac_file" != x-; then
14212 configure_input="$ac_file. $configure_input"
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14214 $as_echo "$as_me: creating $ac_file" >&6;}
14215 fi
14216 # Neutralize special characters interpreted by sed in replacement strings.
14217 case $configure_input in #(
14218 *\&* | *\|* | *\\* )
14219 ac_sed_conf_input=`$as_echo "$configure_input" |
14220 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14221 *) ac_sed_conf_input=$configure_input;;
14222 esac
14223
14224 case $ac_tag in
14225 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14226 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14227 esac
14228 ;;
14229 esac
14230
14231 ac_dir=`$as_dirname -- "$ac_file" ||
14232 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14233 X"$ac_file" : 'X\(//\)[^/]' \| \
14234 X"$ac_file" : 'X\(//\)$' \| \
14235 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14236 $as_echo X"$ac_file" |
14237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14238 s//\1/
14239 q
14240 }
14241 /^X\(\/\/\)[^/].*/{
14242 s//\1/
14243 q
14244 }
14245 /^X\(\/\/\)$/{
14246 s//\1/
14247 q
14248 }
14249 /^X\(\/\).*/{
14250 s//\1/
14251 q
14252 }
14253 s/.*/./; q'`
14254 as_dir="$ac_dir"; as_fn_mkdir_p
14255 ac_builddir=.
14256
14257 case "$ac_dir" in
14258 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14259 *)
14260 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14261 # A ".." for each directory in $ac_dir_suffix.
14262 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14263 case $ac_top_builddir_sub in
14264 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14265 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14266 esac ;;
14267 esac
14268 ac_abs_top_builddir=$ac_pwd
14269 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14270 # for backward compatibility:
14271 ac_top_builddir=$ac_top_build_prefix
14272
14273 case $srcdir in
14274 .) # We are building in place.
14275 ac_srcdir=.
14276 ac_top_srcdir=$ac_top_builddir_sub
14277 ac_abs_top_srcdir=$ac_pwd ;;
14278 [\\/]* | ?:[\\/]* ) # Absolute name.
14279 ac_srcdir=$srcdir$ac_dir_suffix;
14280 ac_top_srcdir=$srcdir
14281 ac_abs_top_srcdir=$srcdir ;;
14282 *) # Relative name.
14283 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14284 ac_top_srcdir=$ac_top_build_prefix$srcdir
14285 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14286 esac
14287 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14288
14289
14290 case $ac_mode in
14291 :F)
14292 #
14293 # CONFIG_FILE
14294 #
14295
14296 case $INSTALL in
14297 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14298 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14299 esac
14300 ac_MKDIR_P=$MKDIR_P
14301 case $MKDIR_P in
14302 [\\/$]* | ?:[\\/]* ) ;;
14303 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14304 esac
14305 _ACEOF
14306
14307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14308 # If the template does not know about datarootdir, expand it.
14309 # FIXME: This hack should be removed a few years after 2.60.
14310 ac_datarootdir_hack=; ac_datarootdir_seen=
14311 ac_sed_dataroot='
14312 /datarootdir/ {
14313 p
14314 q
14315 }
14316 /@datadir@/p
14317 /@docdir@/p
14318 /@infodir@/p
14319 /@localedir@/p
14320 /@mandir@/p'
14321 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14322 *datarootdir*) ac_datarootdir_seen=yes;;
14323 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14325 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14326 _ACEOF
14327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14328 ac_datarootdir_hack='
14329 s&@datadir@&$datadir&g
14330 s&@docdir@&$docdir&g
14331 s&@infodir@&$infodir&g
14332 s&@localedir@&$localedir&g
14333 s&@mandir@&$mandir&g
14334 s&\\\${datarootdir}&$datarootdir&g' ;;
14335 esac
14336 _ACEOF
14337
14338 # Neutralize VPATH when `$srcdir' = `.'.
14339 # Shell code in configure.ac might set extrasub.
14340 # FIXME: do we really want to maintain this feature?
14341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14342 ac_sed_extra="$ac_vpsub
14343 $extrasub
14344 _ACEOF
14345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14346 :t
14347 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14348 s|@configure_input@|$ac_sed_conf_input|;t t
14349 s&@top_builddir@&$ac_top_builddir_sub&;t t
14350 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14351 s&@srcdir@&$ac_srcdir&;t t
14352 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14353 s&@top_srcdir@&$ac_top_srcdir&;t t
14354 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14355 s&@builddir@&$ac_builddir&;t t
14356 s&@abs_builddir@&$ac_abs_builddir&;t t
14357 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14358 s&@INSTALL@&$ac_INSTALL&;t t
14359 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14360 $ac_datarootdir_hack
14361 "
14362 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14363 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14364
14365 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14366 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14367 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14368 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14370 which seems to be undefined. Please make sure it is defined" >&5
14371 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14372 which seems to be undefined. Please make sure it is defined" >&2;}
14373
14374 rm -f "$ac_tmp/stdin"
14375 case $ac_file in
14376 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14377 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14378 esac \
14379 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14380 ;;
14381 :H)
14382 #
14383 # CONFIG_HEADER
14384 #
14385 if test x"$ac_file" != x-; then
14386 {
14387 $as_echo "/* $configure_input */" \
14388 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14389 } >"$ac_tmp/config.h" \
14390 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14391 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14393 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14394 else
14395 rm -f "$ac_file"
14396 mv "$ac_tmp/config.h" "$ac_file" \
14397 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14398 fi
14399 else
14400 $as_echo "/* $configure_input */" \
14401 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14402 || as_fn_error $? "could not create -" "$LINENO" 5
14403 fi
14404 # Compute "$ac_file"'s index in $config_headers.
14405 _am_arg="$ac_file"
14406 _am_stamp_count=1
14407 for _am_header in $config_headers :; do
14408 case $_am_header in
14409 $_am_arg | $_am_arg:* )
14410 break ;;
14411 * )
14412 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14413 esac
14414 done
14415 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14416 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14417 X"$_am_arg" : 'X\(//\)[^/]' \| \
14418 X"$_am_arg" : 'X\(//\)$' \| \
14419 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14420 $as_echo X"$_am_arg" |
14421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14422 s//\1/
14423 q
14424 }
14425 /^X\(\/\/\)[^/].*/{
14426 s//\1/
14427 q
14428 }
14429 /^X\(\/\/\)$/{
14430 s//\1/
14431 q
14432 }
14433 /^X\(\/\).*/{
14434 s//\1/
14435 q
14436 }
14437 s/.*/./; q'`/stamp-h$_am_stamp_count
14438 ;;
14439
14440 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14441 $as_echo "$as_me: executing $ac_file commands" >&6;}
14442 ;;
14443 esac
14444
14445
14446 case $ac_file$ac_mode in
14447 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14448 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14449 # are listed without --file. Let's play safe and only enable the eval
14450 # if we detect the quoting.
14451 case $CONFIG_FILES in
14452 *\'*) eval set x "$CONFIG_FILES" ;;
14453 *) set x $CONFIG_FILES ;;
14454 esac
14455 shift
14456 for mf
14457 do
14458 # Strip MF so we end up with the name of the file.
14459 mf=`echo "$mf" | sed -e 's/:.*$//'`
14460 # Check whether this is an Automake generated Makefile or not.
14461 # We used to match only the files named 'Makefile.in', but
14462 # some people rename them; so instead we look at the file content.
14463 # Grep'ing the first line is not enough: some people post-process
14464 # each Makefile.in and add a new line on top of each file to say so.
14465 # Grep'ing the whole file is not good either: AIX grep has a line
14466 # limit of 2048, but all sed's we know have understand at least 4000.
14467 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14468 dirpart=`$as_dirname -- "$mf" ||
14469 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14470 X"$mf" : 'X\(//\)[^/]' \| \
14471 X"$mf" : 'X\(//\)$' \| \
14472 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14473 $as_echo X"$mf" |
14474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14475 s//\1/
14476 q
14477 }
14478 /^X\(\/\/\)[^/].*/{
14479 s//\1/
14480 q
14481 }
14482 /^X\(\/\/\)$/{
14483 s//\1/
14484 q
14485 }
14486 /^X\(\/\).*/{
14487 s//\1/
14488 q
14489 }
14490 s/.*/./; q'`
14491 else
14492 continue
14493 fi
14494 # Extract the definition of DEPDIR, am__include, and am__quote
14495 # from the Makefile without running 'make'.
14496 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14497 test -z "$DEPDIR" && continue
14498 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14499 test -z "am__include" && continue
14500 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14501 # Find all dependency output files, they are included files with
14502 # $(DEPDIR) in their names. We invoke sed twice because it is the
14503 # simplest approach to changing $(DEPDIR) to its actual value in the
14504 # expansion.
14505 for file in `sed -n "
14506 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14507 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14508 # Make sure the directory exists.
14509 test -f "$dirpart/$file" && continue
14510 fdir=`$as_dirname -- "$file" ||
14511 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14512 X"$file" : 'X\(//\)[^/]' \| \
14513 X"$file" : 'X\(//\)$' \| \
14514 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14515 $as_echo X"$file" |
14516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14517 s//\1/
14518 q
14519 }
14520 /^X\(\/\/\)[^/].*/{
14521 s//\1/
14522 q
14523 }
14524 /^X\(\/\/\)$/{
14525 s//\1/
14526 q
14527 }
14528 /^X\(\/\).*/{
14529 s//\1/
14530 q
14531 }
14532 s/.*/./; q'`
14533 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14534 # echo "creating $dirpart/$file"
14535 echo '# dummy' > "$dirpart/$file"
14536 done
14537 done
14538 }
14539 ;;
14540 "libtool":C)
14541
14542 # See if we are running on zsh, and set the options which allow our
14543 # commands through without removal of \ escapes.
14544 if test -n "${ZSH_VERSION+set}" ; then
14545 setopt NO_GLOB_SUBST
14546 fi
14547
14548 cfgfile="${ofile}T"
14549 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14550 $RM "$cfgfile"
14551
14552 cat <<_LT_EOF >> "$cfgfile"
14553 #! $SHELL
14554
14555 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14556 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14557 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14558 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14559 #
14560 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14561 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14562 # Foundation, Inc.
14563 # Written by Gordon Matzigkeit, 1996
14564 #
14565 # This file is part of GNU Libtool.
14566 #
14567 # GNU Libtool is free software; you can redistribute it and/or
14568 # modify it under the terms of the GNU General Public License as
14569 # published by the Free Software Foundation; either version 2 of
14570 # the License, or (at your option) any later version.
14571 #
14572 # As a special exception to the GNU General Public License,
14573 # if you distribute this file as part of a program or library that
14574 # is built using GNU Libtool, you may include this file under the
14575 # same distribution terms that you use for the rest of that program.
14576 #
14577 # GNU Libtool is distributed in the hope that it will be useful,
14578 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14579 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14580 # GNU General Public License for more details.
14581 #
14582 # You should have received a copy of the GNU General Public License
14583 # along with GNU Libtool; see the file COPYING. If not, a copy
14584 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14585 # obtained by writing to the Free Software Foundation, Inc.,
14586 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14587
14588
14589 # The names of the tagged configurations supported by this script.
14590 available_tags=""
14591
14592 # ### BEGIN LIBTOOL CONFIG
14593
14594 # Which release of libtool.m4 was used?
14595 macro_version=$macro_version
14596 macro_revision=$macro_revision
14597
14598 # Assembler program.
14599 AS=$lt_AS
14600
14601 # DLL creation program.
14602 DLLTOOL=$lt_DLLTOOL
14603
14604 # Object dumper program.
14605 OBJDUMP=$lt_OBJDUMP
14606
14607 # Whether or not to build shared libraries.
14608 build_libtool_libs=$enable_shared
14609
14610 # Whether or not to build static libraries.
14611 build_old_libs=$enable_static
14612
14613 # What type of objects to build.
14614 pic_mode=$pic_mode
14615
14616 # Whether or not to optimize for fast installation.
14617 fast_install=$enable_fast_install
14618
14619 # Shell to use when invoking shell scripts.
14620 SHELL=$lt_SHELL
14621
14622 # An echo program that protects backslashes.
14623 ECHO=$lt_ECHO
14624
14625 # The PATH separator for the build system.
14626 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14627
14628 # The host system.
14629 host_alias=$host_alias
14630 host=$host
14631 host_os=$host_os
14632
14633 # The build system.
14634 build_alias=$build_alias
14635 build=$build
14636 build_os=$build_os
14637
14638 # A sed program that does not truncate output.
14639 SED=$lt_SED
14640
14641 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14642 Xsed="\$SED -e 1s/^X//"
14643
14644 # A grep program that handles long lines.
14645 GREP=$lt_GREP
14646
14647 # An ERE matcher.
14648 EGREP=$lt_EGREP
14649
14650 # A literal string matcher.
14651 FGREP=$lt_FGREP
14652
14653 # A BSD- or MS-compatible name lister.
14654 NM=$lt_NM
14655
14656 # Whether we need soft or hard links.
14657 LN_S=$lt_LN_S
14658
14659 # What is the maximum length of a command?
14660 max_cmd_len=$max_cmd_len
14661
14662 # Object file suffix (normally "o").
14663 objext=$ac_objext
14664
14665 # Executable file suffix (normally "").
14666 exeext=$exeext
14667
14668 # whether the shell understands "unset".
14669 lt_unset=$lt_unset
14670
14671 # turn spaces into newlines.
14672 SP2NL=$lt_lt_SP2NL
14673
14674 # turn newlines into spaces.
14675 NL2SP=$lt_lt_NL2SP
14676
14677 # convert \$build file names to \$host format.
14678 to_host_file_cmd=$lt_cv_to_host_file_cmd
14679
14680 # convert \$build files to toolchain format.
14681 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14682
14683 # Method to check whether dependent libraries are shared objects.
14684 deplibs_check_method=$lt_deplibs_check_method
14685
14686 # Command to use when deplibs_check_method = "file_magic".
14687 file_magic_cmd=$lt_file_magic_cmd
14688
14689 # How to find potential files when deplibs_check_method = "file_magic".
14690 file_magic_glob=$lt_file_magic_glob
14691
14692 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14693 want_nocaseglob=$lt_want_nocaseglob
14694
14695 # Command to associate shared and link libraries.
14696 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14697
14698 # The archiver.
14699 AR=$lt_AR
14700
14701 # Flags to create an archive.
14702 AR_FLAGS=$lt_AR_FLAGS
14703
14704 # How to feed a file listing to the archiver.
14705 archiver_list_spec=$lt_archiver_list_spec
14706
14707 # A symbol stripping program.
14708 STRIP=$lt_STRIP
14709
14710 # Commands used to install an old-style archive.
14711 RANLIB=$lt_RANLIB
14712 old_postinstall_cmds=$lt_old_postinstall_cmds
14713 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14714
14715 # Whether to use a lock for old archive extraction.
14716 lock_old_archive_extraction=$lock_old_archive_extraction
14717
14718 # A C compiler.
14719 LTCC=$lt_CC
14720
14721 # LTCC compiler flags.
14722 LTCFLAGS=$lt_CFLAGS
14723
14724 # Take the output of nm and produce a listing of raw symbols and C names.
14725 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14726
14727 # Transform the output of nm in a proper C declaration.
14728 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14729
14730 # Transform the output of nm in a C name address pair.
14731 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14732
14733 # Transform the output of nm in a C name address pair when lib prefix is needed.
14734 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14735
14736 # Specify filename containing input files for \$NM.
14737 nm_file_list_spec=$lt_nm_file_list_spec
14738
14739 # The root where to search for dependent libraries,and in which our libraries should be installed.
14740 lt_sysroot=$lt_sysroot
14741
14742 # The name of the directory that contains temporary libtool files.
14743 objdir=$objdir
14744
14745 # Used to examine libraries when file_magic_cmd begins with "file".
14746 MAGIC_CMD=$MAGIC_CMD
14747
14748 # Must we lock files when doing compilation?
14749 need_locks=$lt_need_locks
14750
14751 # Manifest tool.
14752 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14753
14754 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14755 DSYMUTIL=$lt_DSYMUTIL
14756
14757 # Tool to change global to local symbols on Mac OS X.
14758 NMEDIT=$lt_NMEDIT
14759
14760 # Tool to manipulate fat objects and archives on Mac OS X.
14761 LIPO=$lt_LIPO
14762
14763 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14764 OTOOL=$lt_OTOOL
14765
14766 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14767 OTOOL64=$lt_OTOOL64
14768
14769 # Old archive suffix (normally "a").
14770 libext=$libext
14771
14772 # Shared library suffix (normally ".so").
14773 shrext_cmds=$lt_shrext_cmds
14774
14775 # The commands to extract the exported symbol list from a shared archive.
14776 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14777
14778 # Variables whose values should be saved in libtool wrapper scripts and
14779 # restored at link time.
14780 variables_saved_for_relink=$lt_variables_saved_for_relink
14781
14782 # Do we need the "lib" prefix for modules?
14783 need_lib_prefix=$need_lib_prefix
14784
14785 # Do we need a version for libraries?
14786 need_version=$need_version
14787
14788 # Library versioning type.
14789 version_type=$version_type
14790
14791 # Shared library runtime path variable.
14792 runpath_var=$runpath_var
14793
14794 # Shared library path variable.
14795 shlibpath_var=$shlibpath_var
14796
14797 # Is shlibpath searched before the hard-coded library search path?
14798 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14799
14800 # Format of library name prefix.
14801 libname_spec=$lt_libname_spec
14802
14803 # List of archive names. First name is the real one, the rest are links.
14804 # The last name is the one that the linker finds with -lNAME
14805 library_names_spec=$lt_library_names_spec
14806
14807 # The coded name of the library, if different from the real name.
14808 soname_spec=$lt_soname_spec
14809
14810 # Permission mode override for installation of shared libraries.
14811 install_override_mode=$lt_install_override_mode
14812
14813 # Command to use after installation of a shared archive.
14814 postinstall_cmds=$lt_postinstall_cmds
14815
14816 # Command to use after uninstallation of a shared archive.
14817 postuninstall_cmds=$lt_postuninstall_cmds
14818
14819 # Commands used to finish a libtool library installation in a directory.
14820 finish_cmds=$lt_finish_cmds
14821
14822 # As "finish_cmds", except a single script fragment to be evaled but
14823 # not shown.
14824 finish_eval=$lt_finish_eval
14825
14826 # Whether we should hardcode library paths into libraries.
14827 hardcode_into_libs=$hardcode_into_libs
14828
14829 # Compile-time system search path for libraries.
14830 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14831
14832 # Run-time system search path for libraries.
14833 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14834
14835 # Whether dlopen is supported.
14836 dlopen_support=$enable_dlopen
14837
14838 # Whether dlopen of programs is supported.
14839 dlopen_self=$enable_dlopen_self
14840
14841 # Whether dlopen of statically linked programs is supported.
14842 dlopen_self_static=$enable_dlopen_self_static
14843
14844 # Commands to strip libraries.
14845 old_striplib=$lt_old_striplib
14846 striplib=$lt_striplib
14847
14848
14849 # The linker used to build libraries.
14850 LD=$lt_LD
14851
14852 # How to create reloadable object files.
14853 reload_flag=$lt_reload_flag
14854 reload_cmds=$lt_reload_cmds
14855
14856 # Commands used to build an old-style archive.
14857 old_archive_cmds=$lt_old_archive_cmds
14858
14859 # A language specific compiler.
14860 CC=$lt_compiler
14861
14862 # Is the compiler the GNU compiler?
14863 with_gcc=$GCC
14864
14865 # Compiler flag to turn off builtin functions.
14866 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14867
14868 # Additional compiler flags for building library objects.
14869 pic_flag=$lt_lt_prog_compiler_pic
14870
14871 # How to pass a linker flag through the compiler.
14872 wl=$lt_lt_prog_compiler_wl
14873
14874 # Compiler flag to prevent dynamic linking.
14875 link_static_flag=$lt_lt_prog_compiler_static
14876
14877 # Does compiler simultaneously support -c and -o options?
14878 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14879
14880 # Whether or not to add -lc for building shared libraries.
14881 build_libtool_need_lc=$archive_cmds_need_lc
14882
14883 # Whether or not to disallow shared libs when runtime libs are static.
14884 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14885
14886 # Compiler flag to allow reflexive dlopens.
14887 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14888
14889 # Compiler flag to generate shared objects directly from archives.
14890 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14891
14892 # Whether the compiler copes with passing no objects directly.
14893 compiler_needs_object=$lt_compiler_needs_object
14894
14895 # Create an old-style archive from a shared archive.
14896 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14897
14898 # Create a temporary old-style archive to link instead of a shared archive.
14899 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14900
14901 # Commands used to build a shared archive.
14902 archive_cmds=$lt_archive_cmds
14903 archive_expsym_cmds=$lt_archive_expsym_cmds
14904
14905 # Commands used to build a loadable module if different from building
14906 # a shared archive.
14907 module_cmds=$lt_module_cmds
14908 module_expsym_cmds=$lt_module_expsym_cmds
14909
14910 # Whether we are building with GNU ld or not.
14911 with_gnu_ld=$lt_with_gnu_ld
14912
14913 # Flag that allows shared libraries with undefined symbols to be built.
14914 allow_undefined_flag=$lt_allow_undefined_flag
14915
14916 # Flag that enforces no undefined symbols.
14917 no_undefined_flag=$lt_no_undefined_flag
14918
14919 # Flag to hardcode \$libdir into a binary during linking.
14920 # This must work even if \$libdir does not exist
14921 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14922
14923 # Whether we need a single "-rpath" flag with a separated argument.
14924 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14925
14926 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14927 # DIR into the resulting binary.
14928 hardcode_direct=$hardcode_direct
14929
14930 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14931 # DIR into the resulting binary and the resulting library dependency is
14932 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14933 # library is relocated.
14934 hardcode_direct_absolute=$hardcode_direct_absolute
14935
14936 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14937 # into the resulting binary.
14938 hardcode_minus_L=$hardcode_minus_L
14939
14940 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14941 # into the resulting binary.
14942 hardcode_shlibpath_var=$hardcode_shlibpath_var
14943
14944 # Set to "yes" if building a shared library automatically hardcodes DIR
14945 # into the library and all subsequent libraries and executables linked
14946 # against it.
14947 hardcode_automatic=$hardcode_automatic
14948
14949 # Set to yes if linker adds runtime paths of dependent libraries
14950 # to runtime path list.
14951 inherit_rpath=$inherit_rpath
14952
14953 # Whether libtool must link a program against all its dependency libraries.
14954 link_all_deplibs=$link_all_deplibs
14955
14956 # Set to "yes" if exported symbols are required.
14957 always_export_symbols=$always_export_symbols
14958
14959 # The commands to list exported symbols.
14960 export_symbols_cmds=$lt_export_symbols_cmds
14961
14962 # Symbols that should not be listed in the preloaded symbols.
14963 exclude_expsyms=$lt_exclude_expsyms
14964
14965 # Symbols that must always be exported.
14966 include_expsyms=$lt_include_expsyms
14967
14968 # Commands necessary for linking programs (against libraries) with templates.
14969 prelink_cmds=$lt_prelink_cmds
14970
14971 # Commands necessary for finishing linking programs.
14972 postlink_cmds=$lt_postlink_cmds
14973
14974 # Specify filename containing input files.
14975 file_list_spec=$lt_file_list_spec
14976
14977 # How to hardcode a shared library path into an executable.
14978 hardcode_action=$hardcode_action
14979
14980 # ### END LIBTOOL CONFIG
14981
14982 _LT_EOF
14983
14984 case $host_os in
14985 aix3*)
14986 cat <<\_LT_EOF >> "$cfgfile"
14987 # AIX sometimes has problems with the GCC collect2 program. For some
14988 # reason, if we set the COLLECT_NAMES environment variable, the problems
14989 # vanish in a puff of smoke.
14990 if test "X${COLLECT_NAMES+set}" != Xset; then
14991 COLLECT_NAMES=
14992 export COLLECT_NAMES
14993 fi
14994 _LT_EOF
14995 ;;
14996 esac
14997
14998
14999 ltmain="$ac_aux_dir/ltmain.sh"
15000
15001
15002 # We use sed instead of cat because bash on DJGPP gets confused if
15003 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15004 # text mode, it properly converts lines to CR/LF. This bash problem
15005 # is reportedly fixed, but why not run on old versions too?
15006 sed '$q' "$ltmain" >> "$cfgfile" \
15007 || (rm -f "$cfgfile"; exit 1)
15008
15009 if test x"$xsi_shell" = xyes; then
15010 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15011 func_dirname ()\
15012 {\
15013 \ case ${1} in\
15014 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15015 \ * ) func_dirname_result="${3}" ;;\
15016 \ esac\
15017 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15018 && mv -f "$cfgfile.tmp" "$cfgfile" \
15019 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15020 test 0 -eq $? || _lt_function_replace_fail=:
15021
15022
15023 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15024 func_basename ()\
15025 {\
15026 \ func_basename_result="${1##*/}"\
15027 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15028 && mv -f "$cfgfile.tmp" "$cfgfile" \
15029 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15030 test 0 -eq $? || _lt_function_replace_fail=:
15031
15032
15033 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15034 func_dirname_and_basename ()\
15035 {\
15036 \ case ${1} in\
15037 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15038 \ * ) func_dirname_result="${3}" ;;\
15039 \ esac\
15040 \ func_basename_result="${1##*/}"\
15041 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15042 && mv -f "$cfgfile.tmp" "$cfgfile" \
15043 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15044 test 0 -eq $? || _lt_function_replace_fail=:
15045
15046
15047 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15048 func_stripname ()\
15049 {\
15050 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15051 \ # positional parameters, so assign one to ordinary parameter first.\
15052 \ func_stripname_result=${3}\
15053 \ func_stripname_result=${func_stripname_result#"${1}"}\
15054 \ func_stripname_result=${func_stripname_result%"${2}"}\
15055 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15056 && mv -f "$cfgfile.tmp" "$cfgfile" \
15057 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15058 test 0 -eq $? || _lt_function_replace_fail=:
15059
15060
15061 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15062 func_split_long_opt ()\
15063 {\
15064 \ func_split_long_opt_name=${1%%=*}\
15065 \ func_split_long_opt_arg=${1#*=}\
15066 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15067 && mv -f "$cfgfile.tmp" "$cfgfile" \
15068 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15069 test 0 -eq $? || _lt_function_replace_fail=:
15070
15071
15072 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15073 func_split_short_opt ()\
15074 {\
15075 \ func_split_short_opt_arg=${1#??}\
15076 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15077 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15078 && mv -f "$cfgfile.tmp" "$cfgfile" \
15079 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15080 test 0 -eq $? || _lt_function_replace_fail=:
15081
15082
15083 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15084 func_lo2o ()\
15085 {\
15086 \ case ${1} in\
15087 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15088 \ *) func_lo2o_result=${1} ;;\
15089 \ esac\
15090 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15091 && mv -f "$cfgfile.tmp" "$cfgfile" \
15092 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15093 test 0 -eq $? || _lt_function_replace_fail=:
15094
15095
15096 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15097 func_xform ()\
15098 {\
15099 func_xform_result=${1%.*}.lo\
15100 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15101 && mv -f "$cfgfile.tmp" "$cfgfile" \
15102 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15103 test 0 -eq $? || _lt_function_replace_fail=:
15104
15105
15106 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15107 func_arith ()\
15108 {\
15109 func_arith_result=$(( $* ))\
15110 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15111 && mv -f "$cfgfile.tmp" "$cfgfile" \
15112 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15113 test 0 -eq $? || _lt_function_replace_fail=:
15114
15115
15116 sed -e '/^func_len ()$/,/^} # func_len /c\
15117 func_len ()\
15118 {\
15119 func_len_result=${#1}\
15120 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15121 && mv -f "$cfgfile.tmp" "$cfgfile" \
15122 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15123 test 0 -eq $? || _lt_function_replace_fail=:
15124
15125 fi
15126
15127 if test x"$lt_shell_append" = xyes; then
15128 sed -e '/^func_append ()$/,/^} # func_append /c\
15129 func_append ()\
15130 {\
15131 eval "${1}+=\\${2}"\
15132 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15133 && mv -f "$cfgfile.tmp" "$cfgfile" \
15134 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15135 test 0 -eq $? || _lt_function_replace_fail=:
15136
15137
15138 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15139 func_append_quoted ()\
15140 {\
15141 \ func_quote_for_eval "${2}"\
15142 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15143 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15144 && mv -f "$cfgfile.tmp" "$cfgfile" \
15145 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15146 test 0 -eq $? || _lt_function_replace_fail=:
15147
15148
15149 # Save a `func_append' function call where possible by direct use of '+='
15150 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15151 && mv -f "$cfgfile.tmp" "$cfgfile" \
15152 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15153 test 0 -eq $? || _lt_function_replace_fail=:
15154 else
15155 # Save a `func_append' function call even when '+=' is not available
15156 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15157 && mv -f "$cfgfile.tmp" "$cfgfile" \
15158 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15159 test 0 -eq $? || _lt_function_replace_fail=:
15160 fi
15161
15162 if test x"$_lt_function_replace_fail" = x":"; then
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15164 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15165 fi
15166
15167
15168 mv -f "$cfgfile" "$ofile" ||
15169 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15170 chmod +x "$ofile"
15171
15172 ;;
15173
15174 esac
15175 done # for ac_tag
15176
15177
15178 as_fn_exit 0
15179 _ACEOF
15180 ac_clean_files=$ac_clean_files_save
15181
15182 test $ac_write_fail = 0 ||
15183 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15184
15185
15186 # configure is writing to config.log, and then calls config.status.
15187 # config.status does its own redirection, appending to config.log.
15188 # Unfortunately, on DOS this fails, as config.log is still kept open
15189 # by configure, so config.status won't be able to write to it; its
15190 # output is simply discarded. So we exec the FD to /dev/null,
15191 # effectively closing config.log, so it can be properly (re)opened and
15192 # appended to by config.status. When coming back to configure, we
15193 # need to make the FD available again.
15194 if test "$no_create" != yes; then
15195 ac_cs_success=:
15196 ac_config_status_args=
15197 test "$silent" = yes &&
15198 ac_config_status_args="$ac_config_status_args --quiet"
15199 exec 5>/dev/null
15200 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15201 exec 5>>config.log
15202 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15203 # would make configure fail if this is the last instruction.
15204 $ac_cs_success || as_fn_exit 1
15205 fi
15206 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15208 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15209 fi
15210
15211
15212 echo \
15213 "------------------------------------------------------------------------
15214 Configuration:
15215
15216 Source code location: ${srcdir}
15217 Compiler: ${CC}
15218 Compiler flags: ${CFLAGS}
15219 Linker flags: ${LDFLAGS}
15220 Host System Type: ${host}
15221 Install path: ${prefix}
15222
15223 See config.h for further configuration information.
15224 ------------------------------------------------------------------------"