1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for TI IPC 3.0.0.
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 ## -------------------- ##
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
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
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
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"
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
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
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='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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; }
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 :
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
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || 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 :
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
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
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 bug-autoconf@gnu.org 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
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
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
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
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
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"
366 } # as_fn_mkdir_p
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
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
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
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
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
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
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'`
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
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; }
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 }
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
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
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
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
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'"
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'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
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`
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=
587 # Identity of this package.
588 PACKAGE_NAME='TI IPC'
589 PACKAGE_TARNAME='ti-ipc'
590 PACKAGE_VERSION='3.0.0'
591 PACKAGE_STRING='TI IPC 3.0.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="packages/ti/ipc/MessageQ.h"
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"
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 AF_RPMSG_FALSE
637 AF_RPMSG_TRUE
638 DRM_FALSE
639 DRM_TRUE
640 KERNEL_INSTALL_DIR_FALSE
641 KERNEL_INSTALL_DIR_TRUE
642 KDIR_FALSE
643 KDIR_TRUE
644 CMEM_FALSE
645 CMEM_TRUE
646 AM65XX_FALSE
647 AM65XX_TRUE
648 DRA7XX_FALSE
649 DRA7XX_TRUE
650 OMAP54XX_SMP_FALSE
651 OMAP54XX_SMP_TRUE
652 C66AK2G_FALSE
653 C66AK2G_TRUE
654 TCI6638_FALSE
655 TCI6638_TRUE
656 TCI6636_FALSE
657 TCI6636_TRUE
658 TCI6630_FALSE
659 TCI6630_TRUE
660 TCI6614_FALSE
661 TCI6614_TRUE
662 C66AK2E_FALSE
663 C66AK2E_TRUE
664 OMAPL138_FALSE
665 OMAPL138_TRUE
666 DRM_PREFIX
667 AF_RPMSG
668 KERNEL_INSTALL_DIR
669 CMEM_INSTALL_DIR
670 PLATFORM
671 AM_LDFLAGS
672 AM_CFLAGS
673 CPP
674 LT_SYS_LIBRARY_PATH
675 OTOOL64
676 OTOOL
677 LIPO
678 NMEDIT
679 DSYMUTIL
680 MANIFEST_TOOL
681 RANLIB
682 ac_ct_AR
683 AR
684 DLLTOOL
685 OBJDUMP
686 LN_S
687 NM
688 ac_ct_DUMPBIN
689 DUMPBIN
690 LD
691 FGREP
692 EGREP
693 GREP
694 SED
695 am__fastdepCC_FALSE
696 am__fastdepCC_TRUE
697 CCDEPMODE
698 am__nodep
699 AMDEPBACKSLASH
700 AMDEP_FALSE
701 AMDEP_TRUE
702 am__quote
703 am__include
704 DEPDIR
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
711 CC
712 host_os
713 host_vendor
714 host_cpu
715 host
716 build_os
717 build_vendor
718 build_cpu
719 build
720 LIBTOOL
721 MAINT
722 MAINTAINER_MODE_FALSE
723 MAINTAINER_MODE_TRUE
724 AM_BACKSLASH
725 AM_DEFAULT_VERBOSITY
726 AM_DEFAULT_V
727 AM_V
728 am__untar
729 am__tar
730 AMTAR
731 am__leading_dot
732 SET_MAKE
733 AWK
734 mkdir_p
735 MKDIR_P
736 INSTALL_STRIP_PROGRAM
737 STRIP
738 install_sh
739 MAKEINFO
740 AUTOHEADER
741 AUTOMAKE
742 AUTOCONF
743 ACLOCAL
744 VERSION
745 PACKAGE
746 CYGPATH_W
747 am__isrc
748 INSTALL_DATA
749 INSTALL_SCRIPT
750 INSTALL_PROGRAM
751 target_alias
752 host_alias
753 build_alias
754 LIBS
755 ECHO_T
756 ECHO_N
757 ECHO_C
758 DEFS
759 mandir
760 localedir
761 libdir
762 psdir
763 pdfdir
764 dvidir
765 htmldir
766 infodir
767 docdir
768 oldincludedir
769 includedir
770 runstatedir
771 localstatedir
772 sharedstatedir
773 sysconfdir
774 datadir
775 datarootdir
776 libexecdir
777 sbindir
778 bindir
779 program_transform_name
780 prefix
781 exec_prefix
782 PACKAGE_URL
783 PACKAGE_BUGREPORT
784 PACKAGE_STRING
785 PACKAGE_VERSION
786 PACKAGE_TARNAME
787 PACKAGE_NAME
788 PATH_SEPARATOR
789 SHELL'
790 ac_subst_files=''
791 ac_user_opts='
792 enable_option_checking
793 enable_silent_rules
794 enable_maintainer_mode
795 enable_shared
796 enable_static
797 with_pic
798 enable_fast_install
799 with_aix_soname
800 enable_dependency_tracking
801 with_gnu_ld
802 with_sysroot
803 enable_libtool_lock
804 '
805 ac_precious_vars='build_alias
806 host_alias
807 target_alias
808 CC
809 CFLAGS
810 LDFLAGS
811 LIBS
812 CPPFLAGS
813 LT_SYS_LIBRARY_PATH
814 CPP
815 PLATFORM
816 CMEM_INSTALL_DIR
817 KERNEL_INSTALL_DIR
818 AF_RPMSG
819 DRM_PREFIX'
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 ac_unrecognized_opts=
826 ac_unrecognized_sep=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 runstatedir='${localstatedir}/run'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir='${datarootdir}/info'
863 htmldir='${docdir}'
864 dvidir='${docdir}'
865 pdfdir='${docdir}'
866 psdir='${docdir}'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
871 ac_prev=
872 ac_dashdash=
873 for ac_option
874 do
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
877 eval $ac_prev=\$ac_option
878 ac_prev=
879 continue
880 fi
882 case $ac_option in
883 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 *=) ac_optarg= ;;
885 *) ac_optarg=yes ;;
886 esac
888 # Accept the important Cygnus configure options, so we can diagnose typos.
890 case $ac_dashdash$ac_option in
891 --)
892 ac_dashdash=yes ;;
894 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 ac_prev=bindir ;;
896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897 bindir=$ac_optarg ;;
899 -build | --build | --buil | --bui | --bu)
900 ac_prev=build_alias ;;
901 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902 build_alias=$ac_optarg ;;
904 -cache-file | --cache-file | --cache-fil | --cache-fi \
905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906 ac_prev=cache_file ;;
907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909 cache_file=$ac_optarg ;;
911 --config-cache | -C)
912 cache_file=config.cache ;;
914 -datadir | --datadir | --datadi | --datad)
915 ac_prev=datadir ;;
916 -datadir=* | --datadir=* | --datadi=* | --datad=*)
917 datadir=$ac_optarg ;;
919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920 | --dataroo | --dataro | --datar)
921 ac_prev=datarootdir ;;
922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924 datarootdir=$ac_optarg ;;
926 -disable-* | --disable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error $? "invalid feature name: $ac_useropt"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
934 *"
935 "enable_$ac_useropt"
936 "*) ;;
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
939 esac
940 eval enable_$ac_useropt=no ;;
942 -docdir | --docdir | --docdi | --doc | --do)
943 ac_prev=docdir ;;
944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945 docdir=$ac_optarg ;;
947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 ac_prev=dvidir ;;
949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950 dvidir=$ac_optarg ;;
952 -enable-* | --enable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error $? "invalid feature name: $ac_useropt"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
960 *"
961 "enable_$ac_useropt"
962 "*) ;;
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
965 esac
966 eval enable_$ac_useropt=\$ac_optarg ;;
968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970 | --exec | --exe | --ex)
971 ac_prev=exec_prefix ;;
972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974 | --exec=* | --exe=* | --ex=*)
975 exec_prefix=$ac_optarg ;;
977 -gas | --gas | --ga | --g)
978 # Obsolete; use --with-gas.
979 with_gas=yes ;;
981 -help | --help | --hel | --he | -h)
982 ac_init_help=long ;;
983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984 ac_init_help=recursive ;;
985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986 ac_init_help=short ;;
988 -host | --host | --hos | --ho)
989 ac_prev=host_alias ;;
990 -host=* | --host=* | --hos=* | --ho=*)
991 host_alias=$ac_optarg ;;
993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994 ac_prev=htmldir ;;
995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996 | --ht=*)
997 htmldir=$ac_optarg ;;
999 -includedir | --includedir | --includedi | --included | --include \
1000 | --includ | --inclu | --incl | --inc)
1001 ac_prev=includedir ;;
1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003 | --includ=* | --inclu=* | --incl=* | --inc=*)
1004 includedir=$ac_optarg ;;
1006 -infodir | --infodir | --infodi | --infod | --info | --inf)
1007 ac_prev=infodir ;;
1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009 infodir=$ac_optarg ;;
1011 -libdir | --libdir | --libdi | --libd)
1012 ac_prev=libdir ;;
1013 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014 libdir=$ac_optarg ;;
1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017 | --libexe | --libex | --libe)
1018 ac_prev=libexecdir ;;
1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020 | --libexe=* | --libex=* | --libe=*)
1021 libexecdir=$ac_optarg ;;
1023 -localedir | --localedir | --localedi | --localed | --locale)
1024 ac_prev=localedir ;;
1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026 localedir=$ac_optarg ;;
1028 -localstatedir | --localstatedir | --localstatedi | --localstated \
1029 | --localstate | --localstat | --localsta | --localst | --locals)
1030 ac_prev=localstatedir ;;
1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033 localstatedir=$ac_optarg ;;
1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036 ac_prev=mandir ;;
1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038 mandir=$ac_optarg ;;
1040 -nfp | --nfp | --nf)
1041 # Obsolete; use --without-fp.
1042 with_fp=no ;;
1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045 | --no-cr | --no-c | -n)
1046 no_create=yes ;;
1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050 no_recursion=yes ;;
1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054 | --oldin | --oldi | --old | --ol | --o)
1055 ac_prev=oldincludedir ;;
1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059 oldincludedir=$ac_optarg ;;
1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062 ac_prev=prefix ;;
1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064 prefix=$ac_optarg ;;
1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067 | --program-pre | --program-pr | --program-p)
1068 ac_prev=program_prefix ;;
1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071 program_prefix=$ac_optarg ;;
1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074 | --program-suf | --program-su | --program-s)
1075 ac_prev=program_suffix ;;
1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078 program_suffix=$ac_optarg ;;
1080 -program-transform-name | --program-transform-name \
1081 | --program-transform-nam | --program-transform-na \
1082 | --program-transform-n | --program-transform- \
1083 | --program-transform | --program-transfor \
1084 | --program-transfo | --program-transf \
1085 | --program-trans | --program-tran \
1086 | --progr-tra | --program-tr | --program-t)
1087 ac_prev=program_transform_name ;;
1088 -program-transform-name=* | --program-transform-name=* \
1089 | --program-transform-nam=* | --program-transform-na=* \
1090 | --program-transform-n=* | --program-transform-=* \
1091 | --program-transform=* | --program-transfor=* \
1092 | --program-transfo=* | --program-transf=* \
1093 | --program-trans=* | --program-tran=* \
1094 | --progr-tra=* | --program-tr=* | --program-t=*)
1095 program_transform_name=$ac_optarg ;;
1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098 ac_prev=pdfdir ;;
1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100 pdfdir=$ac_optarg ;;
1102 -psdir | --psdir | --psdi | --psd | --ps)
1103 ac_prev=psdir ;;
1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105 psdir=$ac_optarg ;;
1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108 | -silent | --silent | --silen | --sile | --sil)
1109 silent=yes ;;
1111 -runstatedir | --runstatedir | --runstatedi | --runstated \
1112 | --runstate | --runstat | --runsta | --runst | --runs \
1113 | --run | --ru | --r)
1114 ac_prev=runstatedir ;;
1115 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1116 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1117 | --run=* | --ru=* | --r=*)
1118 runstatedir=$ac_optarg ;;
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 ac_prev=sbindir ;;
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 | --sbi=* | --sb=*)
1124 sbindir=$ac_optarg ;;
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1129 | --sha | --sh)
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 | --sha=* | --sh=*)
1135 sharedstatedir=$ac_optarg ;;
1137 -site | --site | --sit)
1138 ac_prev=site ;;
1139 -site=* | --site=* | --sit=*)
1140 site=$ac_optarg ;;
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 ac_prev=srcdir ;;
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145 srcdir=$ac_optarg ;;
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152 sysconfdir=$ac_optarg ;;
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
1155 ac_prev=target_alias ;;
1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157 target_alias=$ac_optarg ;;
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 verbose=yes ;;
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
1165 -with-* | --with-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=\$ac_optarg ;;
1181 -without-* | --without-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error $? "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=no ;;
1197 --x)
1198 # Obsolete; use --with-x.
1199 with_x=yes ;;
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206 x_includes=$ac_optarg ;;
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213 x_libraries=$ac_optarg ;;
1215 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1216 Try \`$0 --help' for more information"
1217 ;;
1219 *=*)
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
1222 case $ac_envvar in #(
1223 '' | [0-9]* | *[!_$as_cr_alnum]* )
1224 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225 esac
1226 eval $ac_envvar=\$ac_optarg
1227 export $ac_envvar ;;
1229 *)
1230 # FIXME: should be removed in autoconf 3.0.
1231 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235 ;;
1237 esac
1238 done
1240 if test -n "$ac_prev"; then
1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242 as_fn_error $? "missing argument to $ac_option"
1243 fi
1245 if test -n "$ac_unrecognized_opts"; then
1246 case $enable_option_checking in
1247 no) ;;
1248 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1249 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250 esac
1251 fi
1253 # Check all directory arguments for consistency.
1254 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255 datadir sysconfdir sharedstatedir localstatedir includedir \
1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257 libdir localedir mandir runstatedir
1258 do
1259 eval ac_val=\$$ac_var
1260 # Remove trailing slashes.
1261 case $ac_val in
1262 */ )
1263 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264 eval $ac_var=\$ac_val;;
1265 esac
1266 # Be sure to have absolute directory names.
1267 case $ac_val in
1268 [\\/$]* | ?:[\\/]* ) continue;;
1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270 esac
1271 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1272 done
1274 # There might be people who depend on the old broken behavior: `$host'
1275 # used to hold the argument of --host etc.
1276 # FIXME: To remove some day.
1277 build=$build_alias
1278 host=$host_alias
1279 target=$target_alias
1281 # FIXME: To remove some day.
1282 if test "x$host_alias" != x; then
1283 if test "x$build_alias" = x; then
1284 cross_compiling=maybe
1285 elif test "x$build_alias" != "x$host_alias"; then
1286 cross_compiling=yes
1287 fi
1288 fi
1290 ac_tool_prefix=
1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293 test "$silent" = yes && exec 6>/dev/null
1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di=`ls -di .` &&
1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 as_fn_error $? "working directory cannot be determined"
1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301 as_fn_error $? "pwd does not report name of working directory"
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313 $as_echo X"$as_myself" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\).*/{
1327 s//\1/
1328 q
1329 }
1330 s/.*/./; q'`
1331 srcdir=$ac_confdir
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 srcdir=..
1334 fi
1335 else
1336 ac_srcdir_defaulted=no
1337 fi
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341 fi
1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 ac_abs_confdir=`(
1344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345 pwd)`
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 srcdir=.
1349 fi
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1353 case $srcdir in
1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 esac
1356 for ac_var in $ac_precious_vars; do
1357 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_env_${ac_var}_value=\$${ac_var}
1359 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361 done
1363 #
1364 # Report the --help message.
1365 #
1366 if test "$ac_init_help" = "long"; then
1367 # Omit some internal or obsolete options to make the list less imposing.
1368 # This message is too long to be a string in the A/UX 3.1 sh.
1369 cat <<_ACEOF
1370 \`configure' configures TI IPC 3.0.0 to adapt to many kinds of systems.
1372 Usage: $0 [OPTION]... [VAR=VALUE]...
1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375 VAR=VALUE. See below for descriptions of some of the useful variables.
1377 Defaults for the options are specified in brackets.
1379 Configuration:
1380 -h, --help display this help and exit
1381 --help=short display options specific to this package
1382 --help=recursive display the short help of all the included packages
1383 -V, --version display version information and exit
1384 -q, --quiet, --silent do not print \`checking ...' messages
1385 --cache-file=FILE cache test results in FILE [disabled]
1386 -C, --config-cache alias for \`--cache-file=config.cache'
1387 -n, --no-create do not create output files
1388 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390 Installation directories:
1391 --prefix=PREFIX install architecture-independent files in PREFIX
1392 [$ac_default_prefix]
1393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1394 [PREFIX]
1396 By default, \`make install' will install all the files in
1397 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1398 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399 for instance \`--prefix=\$HOME'.
1401 For better control, use the options below.
1403 Fine tuning of the installation directories:
1404 --bindir=DIR user executables [EPREFIX/bin]
1405 --sbindir=DIR system admin executables [EPREFIX/sbin]
1406 --libexecdir=DIR program executables [EPREFIX/libexec]
1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1410 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/ti-ipc]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424 _ACEOF
1426 cat <<\_ACEOF
1428 Program names:
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1433 System types:
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1436 _ACEOF
1437 fi
1439 if test -n "$ac_init_help"; then
1440 case $ac_init_help in
1441 short | recursive ) echo "Configuration of TI IPC 3.0.0:";;
1442 esac
1443 cat <<\_ACEOF
1445 Optional Features:
1446 --disable-option-checking ignore unrecognized --enable/--with options
1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1449 --enable-silent-rules less verbose build output (undo: "make V=1")
1450 --disable-silent-rules verbose build output (undo: "make V=0")
1451 --enable-maintainer-mode
1452 enable make rules and dependencies not useful (and
1453 sometimes confusing) to the casual installer
1454 --enable-shared[=PKGS] build shared libraries [default=yes]
1455 --enable-static[=PKGS] build static libraries [default=yes]
1456 --enable-fast-install[=PKGS]
1457 optimize for fast installation [default=yes]
1458 --enable-dependency-tracking
1459 do not reject slow dependency extractors
1460 --disable-dependency-tracking
1461 speeds up one-time build
1462 --disable-libtool-lock avoid locking (might break parallel builds)
1464 Optional Packages:
1465 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1467 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1468 both]
1469 --with-aix-soname=aix|svr4|both
1470 shared library versioning (aka "SONAME") variant to
1471 provide on AIX, [default=aix].
1472 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1473 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1474 compiler's sysroot if not specified).
1476 Some influential environment variables:
1477 CC C compiler command
1478 CFLAGS C compiler flags
1479 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1480 nonstandard directory <lib dir>
1481 LIBS libraries to pass to the linker, e.g. -l<library>
1482 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1483 you have headers in a nonstandard directory <include dir>
1484 LT_SYS_LIBRARY_PATH
1485 User-defined run-time library search path.
1486 CPP C preprocessor
1487 PLATFORM Platform to build. Options are: 'OMAPL138' 'OMAP54XX' '66AK2E'
1488 'TCI6630' 'TCI6636' 'TCI6638' '66AK2G' 'DRA7XX' and 'AM65XX'. If
1489 not defined all platforms will be built.
1490 CMEM_INSTALL_DIR
1491 Installation path directory to the CMEM libraries
1492 KERNEL_INSTALL_DIR
1493 Installation path to the Linux kernel.
1494 AF_RPMSG Address Family used by the RPMSG driver
1495 DRM_PREFIX Installation location to the DRM library.
1497 Use these variables to override the choices made by `configure' or to help
1498 it to find libraries and programs with nonstandard names/locations.
1500 Report bugs to the package provider.
1501 _ACEOF
1502 ac_status=$?
1503 fi
1505 if test "$ac_init_help" = "recursive"; then
1506 # If there are subdirs, report their specific --help.
1507 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508 test -d "$ac_dir" ||
1509 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1510 continue
1511 ac_builddir=.
1513 case "$ac_dir" in
1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1515 *)
1516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1517 # A ".." for each directory in $ac_dir_suffix.
1518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1519 case $ac_top_builddir_sub in
1520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522 esac ;;
1523 esac
1524 ac_abs_top_builddir=$ac_pwd
1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526 # for backward compatibility:
1527 ac_top_builddir=$ac_top_build_prefix
1529 case $srcdir in
1530 .) # We are building in place.
1531 ac_srcdir=.
1532 ac_top_srcdir=$ac_top_builddir_sub
1533 ac_abs_top_srcdir=$ac_pwd ;;
1534 [\\/]* | ?:[\\/]* ) # Absolute name.
1535 ac_srcdir=$srcdir$ac_dir_suffix;
1536 ac_top_srcdir=$srcdir
1537 ac_abs_top_srcdir=$srcdir ;;
1538 *) # Relative name.
1539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540 ac_top_srcdir=$ac_top_build_prefix$srcdir
1541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 esac
1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545 cd "$ac_dir" || { ac_status=$?; continue; }
1546 # Check for guested configure.
1547 if test -f "$ac_srcdir/configure.gnu"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550 elif test -f "$ac_srcdir/configure"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure" --help=recursive
1553 else
1554 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555 fi || ac_status=$?
1556 cd "$ac_pwd" || { ac_status=$?; break; }
1557 done
1558 fi
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1562 cat <<\_ACEOF
1563 TI IPC configure 3.0.0
1564 generated by GNU Autoconf 2.69
1566 Copyright (C) 2012 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1569 _ACEOF
1570 exit
1571 fi
1573 ## ------------------------ ##
1574 ## Autoconf initialization. ##
1575 ## ------------------------ ##
1577 # ac_fn_c_try_compile LINENO
1578 # --------------------------
1579 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_compile ()
1581 {
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext
1584 if { { ac_try="$ac_compile"
1585 case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_compile") 2>conftest.err
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1597 fi
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest.$ac_objext; then :
1603 ac_retval=0
1604 else
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1608 ac_retval=1
1609 fi
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1613 } # ac_fn_c_try_compile
1615 # ac_fn_c_try_link LINENO
1616 # -----------------------
1617 # Try to link conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_link ()
1619 {
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 rm -f conftest.$ac_objext conftest$ac_exeext
1622 if { { ac_try="$ac_link"
1623 case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_link") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1635 fi
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && {
1638 test -z "$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1640 } && test -s conftest$ac_exeext && {
1641 test "$cross_compiling" = yes ||
1642 test -x conftest$ac_exeext
1643 }; then :
1644 ac_retval=0
1645 else
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1649 ac_retval=1
1650 fi
1651 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1652 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1653 # interfere with the next link command; also delete a directory that is
1654 # left behind by Apple's compiler. We do this before executing the actions.
1655 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1659 } # ac_fn_c_try_link
1661 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1662 # -------------------------------------------------------
1663 # Tests whether HEADER exists and can be compiled using the include files in
1664 # INCLUDES, setting the cache variable VAR accordingly.
1665 ac_fn_c_check_header_compile ()
1666 {
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669 $as_echo_n "checking for $2... " >&6; }
1670 if eval \${$3+:} false; then :
1671 $as_echo_n "(cached) " >&6
1672 else
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h. */
1675 $4
1676 #include <$2>
1677 _ACEOF
1678 if ac_fn_c_try_compile "$LINENO"; then :
1679 eval "$3=yes"
1680 else
1681 eval "$3=no"
1682 fi
1683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684 fi
1685 eval ac_res=\$$3
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687 $as_echo "$ac_res" >&6; }
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 } # ac_fn_c_check_header_compile
1692 # ac_fn_c_try_cpp LINENO
1693 # ----------------------
1694 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_c_try_cpp ()
1696 {
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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; } > conftest.i && {
1714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 }; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1722 ac_retval=1
1723 fi
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1727 } # ac_fn_c_try_cpp
1729 # ac_fn_c_try_run LINENO
1730 # ----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1732 # that executables *can* be run.
1733 ac_fn_c_try_run ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 if { { ac_try="$ac_link"
1737 case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>&5
1744 ac_status=$?
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1747 { { case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_try") 2>&5
1754 ac_status=$?
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; }; }; then :
1757 ac_retval=0
1758 else
1759 $as_echo "$as_me: program exited with status $ac_status" >&5
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1763 ac_retval=$ac_status
1764 fi
1765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1769 } # ac_fn_c_try_run
1771 # ac_fn_c_check_func LINENO FUNC VAR
1772 # ----------------------------------
1773 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1774 ac_fn_c_check_func ()
1775 {
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1781 else
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1784 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1786 #define $2 innocuous_$2
1788 /* System header to define __stub macros and hopefully few prototypes,
1789 which can conflict with char $2 (); below.
1790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1791 <limits.h> exists even on freestanding compilers. */
1793 #ifdef __STDC__
1794 # include <limits.h>
1795 #else
1796 # include <assert.h>
1797 #endif
1799 #undef $2
1801 /* Override any GCC internal prototype to avoid an error.
1802 Use char because int might match the return type of a GCC
1803 builtin and then its argument prototype would still apply. */
1804 #ifdef __cplusplus
1805 extern "C"
1806 #endif
1807 char $2 ();
1808 /* The GNU C library defines this for functions which it implements
1809 to always fail with ENOSYS. Some functions are actually named
1810 something starting with __ and the normal name is an alias. */
1811 #if defined __stub_$2 || defined __stub___$2
1812 choke me
1813 #endif
1815 int
1816 main ()
1817 {
1818 return $2 ();
1819 ;
1820 return 0;
1821 }
1822 _ACEOF
1823 if ac_fn_c_try_link "$LINENO"; then :
1824 eval "$3=yes"
1825 else
1826 eval "$3=no"
1827 fi
1828 rm -f core conftest.err conftest.$ac_objext \
1829 conftest$ac_exeext conftest.$ac_ext
1830 fi
1831 eval ac_res=\$$3
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 } # ac_fn_c_check_func
1838 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1839 # -------------------------------------------------------
1840 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1841 # the include files in INCLUDES and setting the cache variable VAR
1842 # accordingly.
1843 ac_fn_c_check_header_mongrel ()
1844 {
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 if eval \${$3+:} false; then :
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1851 fi
1852 eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1855 else
1856 # Is the header compilable?
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1858 $as_echo_n "checking $2 usability... " >&6; }
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1861 $4
1862 #include <$2>
1863 _ACEOF
1864 if ac_fn_c_try_compile "$LINENO"; then :
1865 ac_header_compiler=yes
1866 else
1867 ac_header_compiler=no
1868 fi
1869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1871 $as_echo "$ac_header_compiler" >&6; }
1873 # Is the header present?
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1875 $as_echo_n "checking $2 presence... " >&6; }
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1878 #include <$2>
1879 _ACEOF
1880 if ac_fn_c_try_cpp "$LINENO"; then :
1881 ac_header_preproc=yes
1882 else
1883 ac_header_preproc=no
1884 fi
1885 rm -f conftest.err conftest.i conftest.$ac_ext
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1887 $as_echo "$ac_header_preproc" >&6; }
1889 # So? What about this header?
1890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1891 yes:no: )
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1893 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1895 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1896 ;;
1897 no:yes:* )
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1899 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1901 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1903 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1905 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1907 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1908 ;;
1909 esac
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval \${$3+:} false; then :
1913 $as_echo_n "(cached) " >&6
1914 else
1915 eval "$3=\$ac_header_compiler"
1916 fi
1917 eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1920 fi
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 } # ac_fn_c_check_header_mongrel
1924 cat >config.log <<_ACEOF
1925 This file contains any messages produced by compilers while
1926 running configure, to aid debugging if configure makes a mistake.
1928 It was created by TI IPC $as_me 3.0.0, which was
1929 generated by GNU Autoconf 2.69. Invocation command line was
1931 $ $0 $@
1933 _ACEOF
1934 exec 5>>config.log
1935 {
1936 cat <<_ASUNAME
1937 ## --------- ##
1938 ## Platform. ##
1939 ## --------- ##
1941 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1942 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1943 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1944 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1945 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1947 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1948 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1950 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1951 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1952 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1953 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1954 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1955 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1956 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1958 _ASUNAME
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961 for as_dir in $PATH
1962 do
1963 IFS=$as_save_IFS
1964 test -z "$as_dir" && as_dir=.
1965 $as_echo "PATH: $as_dir"
1966 done
1967 IFS=$as_save_IFS
1969 } >&5
1971 cat >&5 <<_ACEOF
1974 ## ----------- ##
1975 ## Core tests. ##
1976 ## ----------- ##
1978 _ACEOF
1981 # Keep a trace of the command line.
1982 # Strip out --no-create and --no-recursion so they do not pile up.
1983 # Strip out --silent because we don't want to record it for future runs.
1984 # Also quote any args containing shell meta-characters.
1985 # Make two passes to allow for proper duplicate-argument suppression.
1986 ac_configure_args=
1987 ac_configure_args0=
1988 ac_configure_args1=
1989 ac_must_keep_next=false
1990 for ac_pass in 1 2
1991 do
1992 for ac_arg
1993 do
1994 case $ac_arg in
1995 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1997 | -silent | --silent | --silen | --sile | --sil)
1998 continue ;;
1999 *\'*)
2000 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2001 esac
2002 case $ac_pass in
2003 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2004 2)
2005 as_fn_append ac_configure_args1 " '$ac_arg'"
2006 if test $ac_must_keep_next = true; then
2007 ac_must_keep_next=false # Got value, back to normal.
2008 else
2009 case $ac_arg in
2010 *=* | --config-cache | -C | -disable-* | --disable-* \
2011 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2012 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2013 | -with-* | --with-* | -without-* | --without-* | --x)
2014 case "$ac_configure_args0 " in
2015 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2016 esac
2017 ;;
2018 -* ) ac_must_keep_next=true ;;
2019 esac
2020 fi
2021 as_fn_append ac_configure_args " '$ac_arg'"
2022 ;;
2023 esac
2024 done
2025 done
2026 { ac_configure_args0=; unset ac_configure_args0;}
2027 { ac_configure_args1=; unset ac_configure_args1;}
2029 # When interrupted or exit'd, cleanup temporary files, and complete
2030 # config.log. We remove comments because anyway the quotes in there
2031 # would cause problems or look ugly.
2032 # WARNING: Use '\'' to represent an apostrophe within the trap.
2033 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2034 trap 'exit_status=$?
2035 # Save into config.log some information that might help in debugging.
2036 {
2037 echo
2039 $as_echo "## ---------------- ##
2040 ## Cache variables. ##
2041 ## ---------------- ##"
2042 echo
2043 # The following way of writing the cache mishandles newlines in values,
2044 (
2045 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2046 eval ac_val=\$$ac_var
2047 case $ac_val in #(
2048 *${as_nl}*)
2049 case $ac_var in #(
2050 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2051 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2052 esac
2053 case $ac_var in #(
2054 _ | IFS | as_nl) ;; #(
2055 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2056 *) { eval $ac_var=; unset $ac_var;} ;;
2057 esac ;;
2058 esac
2059 done
2060 (set) 2>&1 |
2061 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2062 *${as_nl}ac_space=\ *)
2063 sed -n \
2064 "s/'\''/'\''\\\\'\'''\''/g;
2065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2066 ;; #(
2067 *)
2068 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2069 ;;
2070 esac |
2071 sort
2072 )
2073 echo
2075 $as_echo "## ----------------- ##
2076 ## Output variables. ##
2077 ## ----------------- ##"
2078 echo
2079 for ac_var in $ac_subst_vars
2080 do
2081 eval ac_val=\$$ac_var
2082 case $ac_val in
2083 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084 esac
2085 $as_echo "$ac_var='\''$ac_val'\''"
2086 done | sort
2087 echo
2089 if test -n "$ac_subst_files"; then
2090 $as_echo "## ------------------- ##
2091 ## File substitutions. ##
2092 ## ------------------- ##"
2093 echo
2094 for ac_var in $ac_subst_files
2095 do
2096 eval ac_val=\$$ac_var
2097 case $ac_val in
2098 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2099 esac
2100 $as_echo "$ac_var='\''$ac_val'\''"
2101 done | sort
2102 echo
2103 fi
2105 if test -s confdefs.h; then
2106 $as_echo "## ----------- ##
2107 ## confdefs.h. ##
2108 ## ----------- ##"
2109 echo
2110 cat confdefs.h
2111 echo
2112 fi
2113 test "$ac_signal" != 0 &&
2114 $as_echo "$as_me: caught signal $ac_signal"
2115 $as_echo "$as_me: exit $exit_status"
2116 } >&5
2117 rm -f core *.core core.conftest.* &&
2118 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2119 exit $exit_status
2120 ' 0
2121 for ac_signal in 1 2 13 15; do
2122 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2123 done
2124 ac_signal=0
2126 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2127 rm -f -r conftest* confdefs.h
2129 $as_echo "/* confdefs.h */" > confdefs.h
2131 # Predefined preprocessor variables.
2133 cat >>confdefs.h <<_ACEOF
2134 #define PACKAGE_NAME "$PACKAGE_NAME"
2135 _ACEOF
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2139 _ACEOF
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2143 _ACEOF
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_STRING "$PACKAGE_STRING"
2147 _ACEOF
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2151 _ACEOF
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_URL "$PACKAGE_URL"
2155 _ACEOF
2158 # Let the site file select an alternate cache file if it wants to.
2159 # Prefer an explicitly selected file to automatically selected ones.
2160 ac_site_file1=NONE
2161 ac_site_file2=NONE
2162 if test -n "$CONFIG_SITE"; then
2163 # We do not want a PATH search for config.site.
2164 case $CONFIG_SITE in #((
2165 -*) ac_site_file1=./$CONFIG_SITE;;
2166 */*) ac_site_file1=$CONFIG_SITE;;
2167 *) ac_site_file1=./$CONFIG_SITE;;
2168 esac
2169 elif test "x$prefix" != xNONE; then
2170 ac_site_file1=$prefix/share/config.site
2171 ac_site_file2=$prefix/etc/config.site
2172 else
2173 ac_site_file1=$ac_default_prefix/share/config.site
2174 ac_site_file2=$ac_default_prefix/etc/config.site
2175 fi
2176 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2177 do
2178 test "x$ac_site_file" = xNONE && continue
2179 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2181 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2182 sed 's/^/| /' "$ac_site_file" >&5
2183 . "$ac_site_file" \
2184 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2186 as_fn_error $? "failed to load site script $ac_site_file
2187 See \`config.log' for more details" "$LINENO" 5; }
2188 fi
2189 done
2191 if test -r "$cache_file"; then
2192 # Some versions of bash will fail to source /dev/null (special files
2193 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2194 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2196 $as_echo "$as_me: loading cache $cache_file" >&6;}
2197 case $cache_file in
2198 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2199 *) . "./$cache_file";;
2200 esac
2201 fi
2202 else
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2204 $as_echo "$as_me: creating cache $cache_file" >&6;}
2205 >$cache_file
2206 fi
2208 # Check that the precious variables saved in the cache have kept the same
2209 # value.
2210 ac_cache_corrupted=false
2211 for ac_var in $ac_precious_vars; do
2212 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2213 eval ac_new_set=\$ac_env_${ac_var}_set
2214 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2215 eval ac_new_val=\$ac_env_${ac_var}_value
2216 case $ac_old_set,$ac_new_set in
2217 set,)
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2219 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2220 ac_cache_corrupted=: ;;
2221 ,set)
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2223 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2224 ac_cache_corrupted=: ;;
2225 ,);;
2226 *)
2227 if test "x$ac_old_val" != "x$ac_new_val"; then
2228 # differences in whitespace do not lead to failure.
2229 ac_old_val_w=`echo x $ac_old_val`
2230 ac_new_val_w=`echo x $ac_new_val`
2231 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2233 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2234 ac_cache_corrupted=:
2235 else
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2237 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2238 eval $ac_var=\$ac_old_val
2239 fi
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2241 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2243 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2244 fi;;
2245 esac
2246 # Pass precious variables to config.status.
2247 if test "$ac_new_set" = set; then
2248 case $ac_new_val in
2249 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2250 *) ac_arg=$ac_var=$ac_new_val ;;
2251 esac
2252 case " $ac_configure_args " in
2253 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2254 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2255 esac
2256 fi
2257 done
2258 if $ac_cache_corrupted; then
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2262 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2263 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2264 fi
2265 ## -------------------- ##
2266 ## Main body of script. ##
2267 ## -------------------- ##
2269 ac_ext=c
2270 ac_cpp='$CPP $CPPFLAGS'
2271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2277 # Check common src files to ensure integrity of the package
2280 # Set auxiliary build tools directory
2281 ac_aux_dir=
2282 for ac_dir in linux/build-aux "$srcdir"/linux/build-aux; do
2283 if test -f "$ac_dir/install-sh"; then
2284 ac_aux_dir=$ac_dir
2285 ac_install_sh="$ac_aux_dir/install-sh -c"
2286 break
2287 elif test -f "$ac_dir/install.sh"; then
2288 ac_aux_dir=$ac_dir
2289 ac_install_sh="$ac_aux_dir/install.sh -c"
2290 break
2291 elif test -f "$ac_dir/shtool"; then
2292 ac_aux_dir=$ac_dir
2293 ac_install_sh="$ac_aux_dir/shtool install -c"
2294 break
2295 fi
2296 done
2297 if test -z "$ac_aux_dir"; then
2298 as_fn_error $? "cannot find install-sh, install.sh, or shtool in linux/build-aux \"$srcdir\"/linux/build-aux" "$LINENO" 5
2299 fi
2301 # These three variables are undocumented and unsupported,
2302 # and are intended to be withdrawn in a future Autoconf release.
2303 # They can cause serious problems if a builder's source tree is in a directory
2304 # whose full name contains unusual characters.
2305 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2306 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2307 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2311 # Initilize automake
2312 am__api_version='1.15'
2314 # Find a good install program. We prefer a C program (faster),
2315 # so one script is as good as another. But avoid the broken or
2316 # incompatible versions:
2317 # SysV /etc/install, /usr/sbin/install
2318 # SunOS /usr/etc/install
2319 # IRIX /sbin/install
2320 # AIX /bin/install
2321 # AmigaOS /C/install, which installs bootblocks on floppy discs
2322 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2323 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2324 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2325 # OS/2's system install, which has a completely different semantic
2326 # ./install, which can be erroneously created by make from ./install.sh.
2327 # Reject install programs that cannot install multiple files.
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2329 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2330 if test -z "$INSTALL"; then
2331 if ${ac_cv_path_install+:} false; then :
2332 $as_echo_n "(cached) " >&6
2333 else
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 for as_dir in $PATH
2336 do
2337 IFS=$as_save_IFS
2338 test -z "$as_dir" && as_dir=.
2339 # Account for people who put trailing slashes in PATH elements.
2340 case $as_dir/ in #((
2341 ./ | .// | /[cC]/* | \
2342 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2343 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2344 /usr/ucb/* ) ;;
2345 *)
2346 # OSF1 and SCO ODT 3.0 have their own names for install.
2347 # Don't use installbsd from OSF since it installs stuff as root
2348 # by default.
2349 for ac_prog in ginstall scoinst install; do
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2352 if test $ac_prog = install &&
2353 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2354 # AIX install. It has an incompatible calling convention.
2355 :
2356 elif test $ac_prog = install &&
2357 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2358 # program-specific install script used by HP pwplus--don't use.
2359 :
2360 else
2361 rm -rf conftest.one conftest.two conftest.dir
2362 echo one > conftest.one
2363 echo two > conftest.two
2364 mkdir conftest.dir
2365 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2366 test -s conftest.one && test -s conftest.two &&
2367 test -s conftest.dir/conftest.one &&
2368 test -s conftest.dir/conftest.two
2369 then
2370 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2371 break 3
2372 fi
2373 fi
2374 fi
2375 done
2376 done
2377 ;;
2378 esac
2380 done
2381 IFS=$as_save_IFS
2383 rm -rf conftest.one conftest.two conftest.dir
2385 fi
2386 if test "${ac_cv_path_install+set}" = set; then
2387 INSTALL=$ac_cv_path_install
2388 else
2389 # As a last resort, use the slow shell script. Don't cache a
2390 # value for INSTALL within a source directory, because that will
2391 # break other packages using the cache if that directory is
2392 # removed, or if the value is a relative name.
2393 INSTALL=$ac_install_sh
2394 fi
2395 fi
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2397 $as_echo "$INSTALL" >&6; }
2399 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2400 # It thinks the first close brace ends the variable substitution.
2401 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2403 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2405 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2408 $as_echo_n "checking whether build environment is sane... " >&6; }
2409 # Reject unsafe characters in $srcdir or the absolute working directory
2410 # name. Accept space and tab only in the latter.
2411 am_lf='
2412 '
2413 case `pwd` in
2414 *[\\\"\#\$\&\'\`$am_lf]*)
2415 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2416 esac
2417 case $srcdir in
2418 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2419 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2420 esac
2422 # Do 'set' in a subshell so we don't clobber the current shell's
2423 # arguments. Must try -L first in case configure is actually a
2424 # symlink; some systems play weird games with the mod time of symlinks
2425 # (eg FreeBSD returns the mod time of the symlink's containing
2426 # directory).
2427 if (
2428 am_has_slept=no
2429 for am_try in 1 2; do
2430 echo "timestamp, slept: $am_has_slept" > conftest.file
2431 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2432 if test "$*" = "X"; then
2433 # -L didn't work.
2434 set X `ls -t "$srcdir/configure" conftest.file`
2435 fi
2436 if test "$*" != "X $srcdir/configure conftest.file" \
2437 && test "$*" != "X conftest.file $srcdir/configure"; then
2439 # If neither matched, then we have a broken ls. This can happen
2440 # if, for instance, CONFIG_SHELL is bash and it inherits a
2441 # broken ls alias from the environment. This has actually
2442 # happened. Such a system could not be considered "sane".
2443 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2444 alias in your environment" "$LINENO" 5
2445 fi
2446 if test "$2" = conftest.file || test $am_try -eq 2; then
2447 break
2448 fi
2449 # Just in case.
2450 sleep 1
2451 am_has_slept=yes
2452 done
2453 test "$2" = conftest.file
2454 )
2455 then
2456 # Ok.
2457 :
2458 else
2459 as_fn_error $? "newly created file is older than distributed files!
2460 Check your system clock" "$LINENO" 5
2461 fi
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2463 $as_echo "yes" >&6; }
2464 # If we didn't sleep, we still need to ensure time stamps of config.status and
2465 # generated files are strictly newer.
2466 am_sleep_pid=
2467 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2468 ( sleep 1 ) &
2469 am_sleep_pid=$!
2470 fi
2472 rm -f conftest.file
2474 test "$program_prefix" != NONE &&
2475 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2476 # Use a double $ so make ignores it.
2477 test "$program_suffix" != NONE &&
2478 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2479 # Double any \ or $.
2480 # By default was `s,x,x', remove it if useless.
2481 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2482 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2484 # Expand $ac_aux_dir to an absolute path.
2485 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2487 if test x"${MISSING+set}" != xset; then
2488 case $am_aux_dir in
2489 *\ * | *\ *)
2490 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2491 *)
2492 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2493 esac
2494 fi
2495 # Use eval to expand $SHELL
2496 if eval "$MISSING --is-lightweight"; then
2497 am_missing_run="$MISSING "
2498 else
2499 am_missing_run=
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2501 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2502 fi
2504 if test x"${install_sh+set}" != xset; then
2505 case $am_aux_dir in
2506 *\ * | *\ *)
2507 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2508 *)
2509 install_sh="\${SHELL} $am_aux_dir/install-sh"
2510 esac
2511 fi
2513 # Installed binaries are usually stripped using 'strip' when the user
2514 # run "make install-strip". However 'strip' might not be the right
2515 # tool to use in cross-compilation environments, therefore Automake
2516 # will honor the 'STRIP' environment variable to overrule this program.
2517 if test "$cross_compiling" != no; then
2518 if test -n "$ac_tool_prefix"; then
2519 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2520 set dummy ${ac_tool_prefix}strip; ac_word=$2
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2522 $as_echo_n "checking for $ac_word... " >&6; }
2523 if ${ac_cv_prog_STRIP+:} false; then :
2524 $as_echo_n "(cached) " >&6
2525 else
2526 if test -n "$STRIP"; then
2527 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2528 else
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH
2531 do
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2536 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 break 2
2539 fi
2540 done
2541 done
2542 IFS=$as_save_IFS
2544 fi
2545 fi
2546 STRIP=$ac_cv_prog_STRIP
2547 if test -n "$STRIP"; then
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2549 $as_echo "$STRIP" >&6; }
2550 else
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2552 $as_echo "no" >&6; }
2553 fi
2556 fi
2557 if test -z "$ac_cv_prog_STRIP"; then
2558 ac_ct_STRIP=$STRIP
2559 # Extract the first word of "strip", so it can be a program name with args.
2560 set dummy strip; ac_word=$2
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2562 $as_echo_n "checking for $ac_word... " >&6; }
2563 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2564 $as_echo_n "(cached) " >&6
2565 else
2566 if test -n "$ac_ct_STRIP"; then
2567 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2568 else
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 for as_dir in $PATH
2571 do
2572 IFS=$as_save_IFS
2573 test -z "$as_dir" && as_dir=.
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2576 ac_cv_prog_ac_ct_STRIP="strip"
2577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 break 2
2579 fi
2580 done
2581 done
2582 IFS=$as_save_IFS
2584 fi
2585 fi
2586 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2587 if test -n "$ac_ct_STRIP"; then
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2589 $as_echo "$ac_ct_STRIP" >&6; }
2590 else
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2592 $as_echo "no" >&6; }
2593 fi
2595 if test "x$ac_ct_STRIP" = x; then
2596 STRIP=":"
2597 else
2598 case $cross_compiling:$ac_tool_warned in
2599 yes:)
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2602 ac_tool_warned=yes ;;
2603 esac
2604 STRIP=$ac_ct_STRIP
2605 fi
2606 else
2607 STRIP="$ac_cv_prog_STRIP"
2608 fi
2610 fi
2611 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2614 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2615 if test -z "$MKDIR_P"; then
2616 if ${ac_cv_path_mkdir+:} false; then :
2617 $as_echo_n "(cached) " >&6
2618 else
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2621 do
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_prog in mkdir gmkdir; do
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2627 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2628 'mkdir (GNU coreutils) '* | \
2629 'mkdir (coreutils) '* | \
2630 'mkdir (fileutils) '4.1*)
2631 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2632 break 3;;
2633 esac
2634 done
2635 done
2636 done
2637 IFS=$as_save_IFS
2639 fi
2641 test -d ./--version && rmdir ./--version
2642 if test "${ac_cv_path_mkdir+set}" = set; then
2643 MKDIR_P="$ac_cv_path_mkdir -p"
2644 else
2645 # As a last resort, use the slow shell script. Don't cache a
2646 # value for MKDIR_P within a source directory, because that will
2647 # break other packages using the cache if that directory is
2648 # removed, or if the value is a relative name.
2649 MKDIR_P="$ac_install_sh -d"
2650 fi
2651 fi
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2653 $as_echo "$MKDIR_P" >&6; }
2655 for ac_prog in gawk mawk nawk awk
2656 do
2657 # Extract the first word of "$ac_prog", so it can be a program name with args.
2658 set dummy $ac_prog; ac_word=$2
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660 $as_echo_n "checking for $ac_word... " >&6; }
2661 if ${ac_cv_prog_AWK+:} false; then :
2662 $as_echo_n "(cached) " >&6
2663 else
2664 if test -n "$AWK"; then
2665 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2666 else
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2669 do
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2674 ac_cv_prog_AWK="$ac_prog"
2675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 break 2
2677 fi
2678 done
2679 done
2680 IFS=$as_save_IFS
2682 fi
2683 fi
2684 AWK=$ac_cv_prog_AWK
2685 if test -n "$AWK"; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2687 $as_echo "$AWK" >&6; }
2688 else
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690 $as_echo "no" >&6; }
2691 fi
2694 test -n "$AWK" && break
2695 done
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2698 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2699 set x ${MAKE-make}
2700 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2701 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2702 $as_echo_n "(cached) " >&6
2703 else
2704 cat >conftest.make <<\_ACEOF
2705 SHELL = /bin/sh
2706 all:
2707 @echo '@@@%%%=$(MAKE)=@@@%%%'
2708 _ACEOF
2709 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2710 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2711 *@@@%%%=?*=@@@%%%*)
2712 eval ac_cv_prog_make_${ac_make}_set=yes;;
2713 *)
2714 eval ac_cv_prog_make_${ac_make}_set=no;;
2715 esac
2716 rm -f conftest.make
2717 fi
2718 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2720 $as_echo "yes" >&6; }
2721 SET_MAKE=
2722 else
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 $as_echo "no" >&6; }
2725 SET_MAKE="MAKE=${MAKE-make}"
2726 fi
2728 rm -rf .tst 2>/dev/null
2729 mkdir .tst 2>/dev/null
2730 if test -d .tst; then
2731 am__leading_dot=.
2732 else
2733 am__leading_dot=_
2734 fi
2735 rmdir .tst 2>/dev/null
2737 # Check whether --enable-silent-rules was given.
2738 if test "${enable_silent_rules+set}" = set; then :
2739 enableval=$enable_silent_rules;
2740 fi
2742 case $enable_silent_rules in # (((
2743 yes) AM_DEFAULT_VERBOSITY=0;;
2744 no) AM_DEFAULT_VERBOSITY=1;;
2745 *) AM_DEFAULT_VERBOSITY=1;;
2746 esac
2747 am_make=${MAKE-make}
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2749 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2750 if ${am_cv_make_support_nested_variables+:} false; then :
2751 $as_echo_n "(cached) " >&6
2752 else
2753 if $as_echo 'TRUE=$(BAR$(V))
2754 BAR0=false
2755 BAR1=true
2756 V=1
2757 am__doit:
2758 @$(TRUE)
2759 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2760 am_cv_make_support_nested_variables=yes
2761 else
2762 am_cv_make_support_nested_variables=no
2763 fi
2764 fi
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2766 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2767 if test $am_cv_make_support_nested_variables = yes; then
2768 AM_V='$(V)'
2769 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2770 else
2771 AM_V=$AM_DEFAULT_VERBOSITY
2772 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2773 fi
2774 AM_BACKSLASH='\'
2776 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2777 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2778 # is not polluted with repeated "-I."
2779 am__isrc=' -I$(srcdir)'
2780 # test to see if srcdir already configured
2781 if test -f $srcdir/config.status; then
2782 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2783 fi
2784 fi
2786 # test whether we have cygpath
2787 if test -z "$CYGPATH_W"; then
2788 if (cygpath --version) >/dev/null 2>/dev/null; then
2789 CYGPATH_W='cygpath -w'
2790 else
2791 CYGPATH_W=echo
2792 fi
2793 fi
2796 # Define the identity of the package.
2797 PACKAGE='ti-ipc'
2798 VERSION='3.0.0'
2801 cat >>confdefs.h <<_ACEOF
2802 #define PACKAGE "$PACKAGE"
2803 _ACEOF
2806 cat >>confdefs.h <<_ACEOF
2807 #define VERSION "$VERSION"
2808 _ACEOF
2810 # Some tools Automake needs.
2812 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2815 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2818 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2821 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2824 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2826 # For better backward compatibility. To be removed once Automake 1.9.x
2827 # dies out for good. For more background, see:
2828 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2829 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2830 mkdir_p='$(MKDIR_P)'
2832 # We need awk for the "check" target (and possibly the TAP driver). The
2833 # system "awk" is bad on some platforms.
2834 # Always define AMTAR for backward compatibility. Yes, it's still used
2835 # in the wild :-( We should find a proper way to deprecate it ...
2836 AMTAR='$${TAR-tar}'
2839 # We'll loop over all known methods to create a tar archive until one works.
2840 _am_tools='gnutar pax cpio none'
2842 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2849 # POSIX will say in a future version that running "rm -f" with no argument
2850 # is OK; and we want to be able to make that assumption in our Makefile
2851 # recipes. So use an aggressive probe to check that the usage we want is
2852 # actually supported "in the wild" to an acceptable degree.
2853 # See automake bug#10828.
2854 # To make any issue more visible, cause the running configure to be aborted
2855 # by default if the 'rm' program in use doesn't match our expectations; the
2856 # user can still override this though.
2857 if rm -f && rm -fr && rm -rf; then : OK; else
2858 cat >&2 <<'END'
2859 Oops!
2861 Your 'rm' program seems unable to run without file operands specified
2862 on the command line, even when the '-f' option is present. This is contrary
2863 to the behaviour of most rm programs out there, and not conforming with
2864 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2866 Please tell bug-automake@gnu.org about your system, including the value
2867 of your $PATH and any error possibly output before this message. This
2868 can help us improve future automake versions.
2870 END
2871 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2872 echo 'Configuration will proceed anyway, since you have set the' >&2
2873 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2874 echo >&2
2875 else
2876 cat >&2 <<'END'
2877 Aborting the configuration process, to ensure you take notice of the issue.
2879 You can download and install GNU coreutils to get an 'rm' implementation
2880 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2882 If you want to complete the configuration process using your problematic
2883 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2884 to "yes", and re-run configure.
2886 END
2887 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2888 fi
2889 fi
2892 # Disabling maintainer mode to prevent rebuild of configure script
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2895 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2896 # Check whether --enable-maintainer-mode was given.
2897 if test "${enable_maintainer_mode+set}" = set; then :
2898 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2899 else
2900 USE_MAINTAINER_MODE=no
2901 fi
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2904 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2905 if test $USE_MAINTAINER_MODE = yes; then
2906 MAINTAINER_MODE_TRUE=
2907 MAINTAINER_MODE_FALSE='#'
2908 else
2909 MAINTAINER_MODE_TRUE='#'
2910 MAINTAINER_MODE_FALSE=
2911 fi
2913 MAINT=$MAINTAINER_MODE_TRUE
2917 # Initalize libtool but disable fortran check
2918 case `pwd` in
2919 *\ * | *\ *)
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2921 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2922 esac
2926 macro_version='2.4.6'
2927 macro_revision='2.4.6'
2941 ltmain=$ac_aux_dir/ltmain.sh
2943 # Make sure we can run config.sub.
2944 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2945 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2948 $as_echo_n "checking build system type... " >&6; }
2949 if ${ac_cv_build+:} false; then :
2950 $as_echo_n "(cached) " >&6
2951 else
2952 ac_build_alias=$build_alias
2953 test "x$ac_build_alias" = x &&
2954 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2955 test "x$ac_build_alias" = x &&
2956 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2957 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2958 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2960 fi
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2962 $as_echo "$ac_cv_build" >&6; }
2963 case $ac_cv_build in
2964 *-*-*) ;;
2965 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2966 esac
2967 build=$ac_cv_build
2968 ac_save_IFS=$IFS; IFS='-'
2969 set x $ac_cv_build
2970 shift
2971 build_cpu=$1
2972 build_vendor=$2
2973 shift; shift
2974 # Remember, the first character of IFS is used to create $*,
2975 # except with old shells:
2976 build_os=$*
2977 IFS=$ac_save_IFS
2978 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2982 $as_echo_n "checking host system type... " >&6; }
2983 if ${ac_cv_host+:} false; then :
2984 $as_echo_n "(cached) " >&6
2985 else
2986 if test "x$host_alias" = x; then
2987 ac_cv_host=$ac_cv_build
2988 else
2989 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2990 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2991 fi
2993 fi
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2995 $as_echo "$ac_cv_host" >&6; }
2996 case $ac_cv_host in
2997 *-*-*) ;;
2998 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2999 esac
3000 host=$ac_cv_host
3001 ac_save_IFS=$IFS; IFS='-'
3002 set x $ac_cv_host
3003 shift
3004 host_cpu=$1
3005 host_vendor=$2
3006 shift; shift
3007 # Remember, the first character of IFS is used to create $*,
3008 # except with old shells:
3009 host_os=$*
3010 IFS=$ac_save_IFS
3011 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3014 # Backslashify metacharacters that are still active within
3015 # double-quoted strings.
3016 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3018 # Same as above, but do not quote variable references.
3019 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3021 # Sed substitution to delay expansion of an escaped shell variable in a
3022 # double_quote_subst'ed string.
3023 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3025 # Sed substitution to delay expansion of an escaped single quote.
3026 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3028 # Sed substitution to avoid accidental globbing in evaled expressions
3029 no_glob_subst='s/\*/\\\*/g'
3031 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3032 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3033 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3036 $as_echo_n "checking how to print strings... " >&6; }
3037 # Test print first, because it will be a builtin if present.
3038 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3039 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3040 ECHO='print -r --'
3041 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3042 ECHO='printf %s\n'
3043 else
3044 # Use this function as a fallback that always works.
3045 func_fallback_echo ()
3046 {
3047 eval 'cat <<_LTECHO_EOF
3048 $1
3049 _LTECHO_EOF'
3050 }
3051 ECHO='func_fallback_echo'
3052 fi
3054 # func_echo_all arg...
3055 # Invoke $ECHO with all args, space-separated.
3056 func_echo_all ()
3057 {
3058 $ECHO ""
3059 }
3061 case $ECHO in
3062 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3063 $as_echo "printf" >&6; } ;;
3064 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3065 $as_echo "print -r" >&6; } ;;
3066 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3067 $as_echo "cat" >&6; } ;;
3068 esac
3083 DEPDIR="${am__leading_dot}deps"
3085 ac_config_commands="$ac_config_commands depfiles"
3088 am_make=${MAKE-make}
3089 cat > confinc << 'END'
3090 am__doit:
3091 @echo this is the am__doit target
3092 .PHONY: am__doit
3093 END
3094 # If we don't find an include directive, just comment out the code.
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3096 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3097 am__include="#"
3098 am__quote=
3099 _am_result=none
3100 # First try GNU make style include.
3101 echo "include confinc" > confmf
3102 # Ignore all kinds of additional output from 'make'.
3103 case `$am_make -s -f confmf 2> /dev/null` in #(
3104 *the\ am__doit\ target*)
3105 am__include=include
3106 am__quote=
3107 _am_result=GNU
3108 ;;
3109 esac
3110 # Now try BSD make style include.
3111 if test "$am__include" = "#"; then
3112 echo '.include "confinc"' > confmf
3113 case `$am_make -s -f confmf 2> /dev/null` in #(
3114 *the\ am__doit\ target*)
3115 am__include=.include
3116 am__quote="\""
3117 _am_result=BSD
3118 ;;
3119 esac
3120 fi
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3124 $as_echo "$_am_result" >&6; }
3125 rm -f confinc confmf
3127 # Check whether --enable-dependency-tracking was given.
3128 if test "${enable_dependency_tracking+set}" = set; then :
3129 enableval=$enable_dependency_tracking;
3130 fi
3132 if test "x$enable_dependency_tracking" != xno; then
3133 am_depcomp="$ac_aux_dir/depcomp"
3134 AMDEPBACKSLASH='\'
3135 am__nodep='_no'
3136 fi
3137 if test "x$enable_dependency_tracking" != xno; then
3138 AMDEP_TRUE=
3139 AMDEP_FALSE='#'
3140 else
3141 AMDEP_TRUE='#'
3142 AMDEP_FALSE=
3143 fi
3146 ac_ext=c
3147 ac_cpp='$CPP $CPPFLAGS'
3148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151 if test -n "$ac_tool_prefix"; then
3152 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3153 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if ${ac_cv_prog_CC+:} false; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3164 do
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3169 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 break 2
3172 fi
3173 done
3174 done
3175 IFS=$as_save_IFS
3177 fi
3178 fi
3179 CC=$ac_cv_prog_CC
3180 if test -n "$CC"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182 $as_echo "$CC" >&6; }
3183 else
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186 fi
3189 fi
3190 if test -z "$ac_cv_prog_CC"; then
3191 ac_ct_CC=$CC
3192 # Extract the first word of "gcc", so it can be a program name with args.
3193 set dummy gcc; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3197 $as_echo_n "(cached) " >&6
3198 else
3199 if test -n "$ac_ct_CC"; then
3200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3201 else
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH
3204 do
3205 IFS=$as_save_IFS
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209 ac_cv_prog_ac_ct_CC="gcc"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 break 2
3212 fi
3213 done
3214 done
3215 IFS=$as_save_IFS
3217 fi
3218 fi
3219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3220 if test -n "$ac_ct_CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3222 $as_echo "$ac_ct_CC" >&6; }
3223 else
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3226 fi
3228 if test "x$ac_ct_CC" = x; then
3229 CC=""
3230 else
3231 case $cross_compiling:$ac_tool_warned in
3232 yes:)
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3235 ac_tool_warned=yes ;;
3236 esac
3237 CC=$ac_ct_CC
3238 fi
3239 else
3240 CC="$ac_cv_prog_CC"
3241 fi
3243 if test -z "$CC"; then
3244 if test -n "$ac_tool_prefix"; then
3245 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3246 set dummy ${ac_tool_prefix}cc; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if ${ac_cv_prog_CC+:} false; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3254 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3257 do
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3262 ac_cv_prog_CC="${ac_tool_prefix}cc"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266 done
3267 done
3268 IFS=$as_save_IFS
3270 fi
3271 fi
3272 CC=$ac_cv_prog_CC
3273 if test -n "$CC"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275 $as_echo "$CC" >&6; }
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3279 fi
3282 fi
3283 fi
3284 if test -z "$CC"; then
3285 # Extract the first word of "cc", so it can be a program name with args.
3286 set dummy cc; ac_word=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if ${ac_cv_prog_CC+:} false; then :
3290 $as_echo_n "(cached) " >&6
3291 else
3292 if test -n "$CC"; then
3293 ac_cv_prog_CC="$CC" # Let the user override the test.
3294 else
3295 ac_prog_rejected=no
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3298 do
3299 IFS=$as_save_IFS
3300 test -z "$as_dir" && as_dir=.
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3303 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3304 ac_prog_rejected=yes
3305 continue
3306 fi
3307 ac_cv_prog_CC="cc"
3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 break 2
3310 fi
3311 done
3312 done
3313 IFS=$as_save_IFS
3315 if test $ac_prog_rejected = yes; then
3316 # We found a bogon in the path, so make sure we never use it.
3317 set dummy $ac_cv_prog_CC
3318 shift
3319 if test $# != 0; then
3320 # We chose a different compiler from the bogus one.
3321 # However, it has the same basename, so the bogon will be chosen
3322 # first if we set CC to just the basename; use the full file name.
3323 shift
3324 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3325 fi
3326 fi
3327 fi
3328 fi
3329 CC=$ac_cv_prog_CC
3330 if test -n "$CC"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3332 $as_echo "$CC" >&6; }
3333 else
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3336 fi
3339 fi
3340 if test -z "$CC"; then
3341 if test -n "$ac_tool_prefix"; then
3342 for ac_prog in cl.exe
3343 do
3344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if ${ac_cv_prog_CC+:} false; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 if test -n "$CC"; then
3352 ac_cv_prog_CC="$CC" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3356 do
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 break 2
3364 fi
3365 done
3366 done
3367 IFS=$as_save_IFS
3369 fi
3370 fi
3371 CC=$ac_cv_prog_CC
3372 if test -n "$CC"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3374 $as_echo "$CC" >&6; }
3375 else
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3378 fi
3381 test -n "$CC" && break
3382 done
3383 fi
3384 if test -z "$CC"; then
3385 ac_ct_CC=$CC
3386 for ac_prog in cl.exe
3387 do
3388 # Extract the first word of "$ac_prog", so it can be a program name with args.
3389 set dummy $ac_prog; ac_word=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 if test -n "$ac_ct_CC"; then
3396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405 ac_cv_prog_ac_ct_CC="$ac_prog"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 break 2
3408 fi
3409 done
3410 done
3411 IFS=$as_save_IFS
3413 fi
3414 fi
3415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3416 if test -n "$ac_ct_CC"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3418 $as_echo "$ac_ct_CC" >&6; }
3419 else
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3422 fi
3425 test -n "$ac_ct_CC" && break
3426 done
3428 if test "x$ac_ct_CC" = x; then
3429 CC=""
3430 else
3431 case $cross_compiling:$ac_tool_warned in
3432 yes:)
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3435 ac_tool_warned=yes ;;
3436 esac
3437 CC=$ac_ct_CC
3438 fi
3439 fi
3441 fi
3444 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446 as_fn_error $? "no acceptable C compiler found in \$PATH
3447 See \`config.log' for more details" "$LINENO" 5; }
3449 # Provide some information about the compiler.
3450 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3451 set X $ac_compile
3452 ac_compiler=$2
3453 for ac_option in --version -v -V -qversion; do
3454 { { ac_try="$ac_compiler $ac_option >&5"
3455 case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458 esac
3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460 $as_echo "$ac_try_echo"; } >&5
3461 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3462 ac_status=$?
3463 if test -s conftest.err; then
3464 sed '10a\
3465 ... rest of stderr output deleted ...
3466 10q' conftest.err >conftest.er1
3467 cat conftest.er1 >&5
3468 fi
3469 rm -f conftest.er1 conftest.err
3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471 test $ac_status = 0; }
3472 done
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3477 int
3478 main ()
3479 {
3481 ;
3482 return 0;
3483 }
3484 _ACEOF
3485 ac_clean_files_save=$ac_clean_files
3486 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3487 # Try to create an executable without -o first, disregard a.out.
3488 # It will help us diagnose broken compilers, and finding out an intuition
3489 # of exeext.
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3491 $as_echo_n "checking whether the C compiler works... " >&6; }
3492 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3494 # The possible output files:
3495 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3497 ac_rmfiles=
3498 for ac_file in $ac_files
3499 do
3500 case $ac_file in
3501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3502 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3503 esac
3504 done
3505 rm -f $ac_rmfiles
3507 if { { ac_try="$ac_link_default"
3508 case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511 esac
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514 (eval "$ac_link_default") 2>&5
3515 ac_status=$?
3516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517 test $ac_status = 0; }; then :
3518 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3519 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3520 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3521 # so that the user can short-circuit this test for compilers unknown to
3522 # Autoconf.
3523 for ac_file in $ac_files ''
3524 do
3525 test -f "$ac_file" || continue
3526 case $ac_file in
3527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3528 ;;
3529 [ab].out )
3530 # We found the default executable, but exeext='' is most
3531 # certainly right.
3532 break;;
3533 *.* )
3534 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3535 then :; else
3536 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3537 fi
3538 # We set ac_cv_exeext here because the later test for it is not
3539 # safe: cross compilers may not add the suffix if given an `-o'
3540 # argument, so we may need to know it at that point already.
3541 # Even if this section looks crufty: it has the advantage of
3542 # actually working.
3543 break;;
3544 * )
3545 break;;
3546 esac
3547 done
3548 test "$ac_cv_exeext" = no && ac_cv_exeext=
3550 else
3551 ac_file=''
3552 fi
3553 if test -z "$ac_file"; then :
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3556 $as_echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561 as_fn_error 77 "C compiler cannot create executables
3562 See \`config.log' for more details" "$LINENO" 5; }
3563 else
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3565 $as_echo "yes" >&6; }
3566 fi
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3568 $as_echo_n "checking for C compiler default output file name... " >&6; }
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3570 $as_echo "$ac_file" >&6; }
3571 ac_exeext=$ac_cv_exeext
3573 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3574 ac_clean_files=$ac_clean_files_save
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3576 $as_echo_n "checking for suffix of executables... " >&6; }
3577 if { { ac_try="$ac_link"
3578 case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3581 esac
3582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3583 $as_echo "$ac_try_echo"; } >&5
3584 (eval "$ac_link") 2>&5
3585 ac_status=$?
3586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3587 test $ac_status = 0; }; then :
3588 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3589 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3590 # work properly (i.e., refer to `conftest.exe'), while it won't with
3591 # `rm'.
3592 for ac_file in conftest.exe conftest conftest.*; do
3593 test -f "$ac_file" || continue
3594 case $ac_file in
3595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3596 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3597 break;;
3598 * ) break;;
3599 esac
3600 done
3601 else
3602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3605 See \`config.log' for more details" "$LINENO" 5; }
3606 fi
3607 rm -f conftest conftest$ac_cv_exeext
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3609 $as_echo "$ac_cv_exeext" >&6; }
3611 rm -f conftest.$ac_ext
3612 EXEEXT=$ac_cv_exeext
3613 ac_exeext=$EXEEXT
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3616 #include <stdio.h>
3617 int
3618 main ()
3619 {
3620 FILE *f = fopen ("conftest.out", "w");
3621 return ferror (f) || fclose (f) != 0;
3623 ;
3624 return 0;
3625 }
3626 _ACEOF
3627 ac_clean_files="$ac_clean_files conftest.out"
3628 # Check that the compiler produces executables we can run. If not, either
3629 # the compiler is broken, or we cross compile.
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3631 $as_echo_n "checking whether we are cross compiling... " >&6; }
3632 if test "$cross_compiling" != yes; then
3633 { { ac_try="$ac_link"
3634 case "(($ac_try" in
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3637 esac
3638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639 $as_echo "$ac_try_echo"; } >&5
3640 (eval "$ac_link") 2>&5
3641 ac_status=$?
3642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3643 test $ac_status = 0; }
3644 if { ac_try='./conftest$ac_cv_exeext'
3645 { { case "(($ac_try" in
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3648 esac
3649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650 $as_echo "$ac_try_echo"; } >&5
3651 (eval "$ac_try") 2>&5
3652 ac_status=$?
3653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654 test $ac_status = 0; }; }; then
3655 cross_compiling=no
3656 else
3657 if test "$cross_compiling" = maybe; then
3658 cross_compiling=yes
3659 else
3660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662 as_fn_error $? "cannot run C compiled programs.
3663 If you meant to cross compile, use \`--host'.
3664 See \`config.log' for more details" "$LINENO" 5; }
3665 fi
3666 fi
3667 fi
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3669 $as_echo "$cross_compiling" >&6; }
3671 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3672 ac_clean_files=$ac_clean_files_save
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3674 $as_echo_n "checking for suffix of object files... " >&6; }
3675 if ${ac_cv_objext+:} false; then :
3676 $as_echo_n "(cached) " >&6
3677 else
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3681 int
3682 main ()
3683 {
3685 ;
3686 return 0;
3687 }
3688 _ACEOF
3689 rm -f conftest.o conftest.obj
3690 if { { ac_try="$ac_compile"
3691 case "(($ac_try" in
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3694 esac
3695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3696 $as_echo "$ac_try_echo"; } >&5
3697 (eval "$ac_compile") 2>&5
3698 ac_status=$?
3699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3700 test $ac_status = 0; }; then :
3701 for ac_file in conftest.o conftest.obj conftest.*; do
3702 test -f "$ac_file" || continue;
3703 case $ac_file in
3704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3705 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3706 break;;
3707 esac
3708 done
3709 else
3710 $as_echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715 as_fn_error $? "cannot compute suffix of object files: cannot compile
3716 See \`config.log' for more details" "$LINENO" 5; }
3717 fi
3718 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3719 fi
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3721 $as_echo "$ac_cv_objext" >&6; }
3722 OBJEXT=$ac_cv_objext
3723 ac_objext=$OBJEXT
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3725 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3726 if ${ac_cv_c_compiler_gnu+:} false; then :
3727 $as_echo_n "(cached) " >&6
3728 else
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3732 int
3733 main ()
3734 {
3735 #ifndef __GNUC__
3736 choke me
3737 #endif
3739 ;
3740 return 0;
3741 }
3742 _ACEOF
3743 if ac_fn_c_try_compile "$LINENO"; then :
3744 ac_compiler_gnu=yes
3745 else
3746 ac_compiler_gnu=no
3747 fi
3748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3751 fi
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3753 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3754 if test $ac_compiler_gnu = yes; then
3755 GCC=yes
3756 else
3757 GCC=
3758 fi
3759 ac_test_CFLAGS=${CFLAGS+set}
3760 ac_save_CFLAGS=$CFLAGS
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3762 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3763 if ${ac_cv_prog_cc_g+:} false; then :
3764 $as_echo_n "(cached) " >&6
3765 else
3766 ac_save_c_werror_flag=$ac_c_werror_flag
3767 ac_c_werror_flag=yes
3768 ac_cv_prog_cc_g=no
3769 CFLAGS="-g"
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771 /* end confdefs.h. */
3773 int
3774 main ()
3775 {
3777 ;
3778 return 0;
3779 }
3780 _ACEOF
3781 if ac_fn_c_try_compile "$LINENO"; then :
3782 ac_cv_prog_cc_g=yes
3783 else
3784 CFLAGS=""
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3788 int
3789 main ()
3790 {
3792 ;
3793 return 0;
3794 }
3795 _ACEOF
3796 if ac_fn_c_try_compile "$LINENO"; then :
3798 else
3799 ac_c_werror_flag=$ac_save_c_werror_flag
3800 CFLAGS="-g"
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3804 int
3805 main ()
3806 {
3808 ;
3809 return 0;
3810 }
3811 _ACEOF
3812 if ac_fn_c_try_compile "$LINENO"; then :
3813 ac_cv_prog_cc_g=yes
3814 fi
3815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816 fi
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818 fi
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 ac_c_werror_flag=$ac_save_c_werror_flag
3821 fi
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3823 $as_echo "$ac_cv_prog_cc_g" >&6; }
3824 if test "$ac_test_CFLAGS" = set; then
3825 CFLAGS=$ac_save_CFLAGS
3826 elif test $ac_cv_prog_cc_g = yes; then
3827 if test "$GCC" = yes; then
3828 CFLAGS="-g -O2"
3829 else
3830 CFLAGS="-g"
3831 fi
3832 else
3833 if test "$GCC" = yes; then
3834 CFLAGS="-O2"
3835 else
3836 CFLAGS=
3837 fi
3838 fi
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3840 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3841 if ${ac_cv_prog_cc_c89+:} false; then :
3842 $as_echo_n "(cached) " >&6
3843 else
3844 ac_cv_prog_cc_c89=no
3845 ac_save_CC=$CC
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3848 #include <stdarg.h>
3849 #include <stdio.h>
3850 struct stat;
3851 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3852 struct buf { int x; };
3853 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3854 static char *e (p, i)
3855 char **p;
3856 int i;
3857 {
3858 return p[i];
3859 }
3860 static char *f (char * (*g) (char **, int), char **p, ...)
3861 {
3862 char *s;
3863 va_list v;
3864 va_start (v,p);
3865 s = g (p, va_arg (v,int));
3866 va_end (v);
3867 return s;
3868 }
3870 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3871 function prototypes and stuff, but not '\xHH' hex character constants.
3872 These don't provoke an error unfortunately, instead are silently treated
3873 as 'x'. The following induces an error, until -std is added to get
3874 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3875 array size at least. It's necessary to write '\x00'==0 to get something
3876 that's true only with -std. */
3877 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3879 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3880 inside strings and character constants. */
3881 #define FOO(x) 'x'
3882 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3884 int test (int i, double x);
3885 struct s1 {int (*f) (int a);};
3886 struct s2 {int (*f) (double a);};
3887 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3888 int argc;
3889 char **argv;
3890 int
3891 main ()
3892 {
3893 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3894 ;
3895 return 0;
3896 }
3897 _ACEOF
3898 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3899 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3900 do
3901 CC="$ac_save_CC $ac_arg"
3902 if ac_fn_c_try_compile "$LINENO"; then :
3903 ac_cv_prog_cc_c89=$ac_arg
3904 fi
3905 rm -f core conftest.err conftest.$ac_objext
3906 test "x$ac_cv_prog_cc_c89" != "xno" && break
3907 done
3908 rm -f conftest.$ac_ext
3909 CC=$ac_save_CC
3911 fi
3912 # AC_CACHE_VAL
3913 case "x$ac_cv_prog_cc_c89" in
3914 x)
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3916 $as_echo "none needed" >&6; } ;;
3917 xno)
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3919 $as_echo "unsupported" >&6; } ;;
3920 *)
3921 CC="$CC $ac_cv_prog_cc_c89"
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3923 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3924 esac
3925 if test "x$ac_cv_prog_cc_c89" != xno; then :
3927 fi
3929 ac_ext=c
3930 ac_cpp='$CPP $CPPFLAGS'
3931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3935 ac_ext=c
3936 ac_cpp='$CPP $CPPFLAGS'
3937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3941 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3942 if ${am_cv_prog_cc_c_o+:} false; then :
3943 $as_echo_n "(cached) " >&6
3944 else
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h. */
3948 int
3949 main ()
3950 {
3952 ;
3953 return 0;
3954 }
3955 _ACEOF
3956 # Make sure it works both with $CC and with simple cc.
3957 # Following AC_PROG_CC_C_O, we do the test twice because some
3958 # compilers refuse to overwrite an existing .o file with -o,
3959 # though they will create one.
3960 am_cv_prog_cc_c_o=yes
3961 for am_i in 1 2; do
3962 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3963 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3964 ac_status=$?
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); } \
3967 && test -f conftest2.$ac_objext; then
3968 : OK
3969 else
3970 am_cv_prog_cc_c_o=no
3971 break
3972 fi
3973 done
3974 rm -f core conftest*
3975 unset am_i
3976 fi
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3978 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3979 if test "$am_cv_prog_cc_c_o" != yes; then
3980 # Losing compiler, so override with the script.
3981 # FIXME: It is wrong to rewrite CC.
3982 # But if we don't then we get into trouble of one sort or another.
3983 # A longer-term fix would be to have automake use am__CC in this case,
3984 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3985 CC="$am_aux_dir/compile $CC"
3986 fi
3987 ac_ext=c
3988 ac_cpp='$CPP $CPPFLAGS'
3989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3994 depcc="$CC" am_compiler_list=
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3997 $as_echo_n "checking dependency style of $depcc... " >&6; }
3998 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3999 $as_echo_n "(cached) " >&6
4000 else
4001 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4002 # We make a subdir and do the tests there. Otherwise we can end up
4003 # making bogus files that we don't know about and never remove. For
4004 # instance it was reported that on HP-UX the gcc test will end up
4005 # making a dummy file named 'D' -- because '-MD' means "put the output
4006 # in D".
4007 rm -rf conftest.dir
4008 mkdir conftest.dir
4009 # Copy depcomp to subdir because otherwise we won't find it if we're
4010 # using a relative directory.
4011 cp "$am_depcomp" conftest.dir
4012 cd conftest.dir
4013 # We will build objects and dependencies in a subdirectory because
4014 # it helps to detect inapplicable dependency modes. For instance
4015 # both Tru64's cc and ICC support -MD to output dependencies as a
4016 # side effect of compilation, but ICC will put the dependencies in
4017 # the current directory while Tru64 will put them in the object
4018 # directory.
4019 mkdir sub
4021 am_cv_CC_dependencies_compiler_type=none
4022 if test "$am_compiler_list" = ""; then
4023 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4024 fi
4025 am__universal=false
4026 case " $depcc " in #(
4027 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4028 esac
4030 for depmode in $am_compiler_list; do
4031 # Setup a source with many dependencies, because some compilers
4032 # like to wrap large dependency lists on column 80 (with \), and
4033 # we should not choose a depcomp mode which is confused by this.
4034 #
4035 # We need to recreate these files for each test, as the compiler may
4036 # overwrite some of them when testing with obscure command lines.
4037 # This happens at least with the AIX C compiler.
4038 : > sub/conftest.c
4039 for i in 1 2 3 4 5 6; do
4040 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4041 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4042 # Solaris 10 /bin/sh.
4043 echo '/* dummy */' > sub/conftst$i.h
4044 done
4045 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4047 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4048 # mode. It turns out that the SunPro C++ compiler does not properly
4049 # handle '-M -o', and we need to detect this. Also, some Intel
4050 # versions had trouble with output in subdirs.
4051 am__obj=sub/conftest.${OBJEXT-o}
4052 am__minus_obj="-o $am__obj"
4053 case $depmode in
4054 gcc)
4055 # This depmode causes a compiler race in universal mode.
4056 test "$am__universal" = false || continue
4057 ;;
4058 nosideeffect)
4059 # After this tag, mechanisms are not by side-effect, so they'll
4060 # only be used when explicitly requested.
4061 if test "x$enable_dependency_tracking" = xyes; then
4062 continue
4063 else
4064 break
4065 fi
4066 ;;
4067 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4068 # This compiler won't grok '-c -o', but also, the minuso test has
4069 # not run yet. These depmodes are late enough in the game, and
4070 # so weak that their functioning should not be impacted.
4071 am__obj=conftest.${OBJEXT-o}
4072 am__minus_obj=
4073 ;;
4074 none) break ;;
4075 esac
4076 if depmode=$depmode \
4077 source=sub/conftest.c object=$am__obj \
4078 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4079 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4080 >/dev/null 2>conftest.err &&
4081 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4082 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4083 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4084 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4085 # icc doesn't choke on unknown options, it will just issue warnings
4086 # or remarks (even with -Werror). So we grep stderr for any message
4087 # that says an option was ignored or not supported.
4088 # When given -MP, icc 7.0 and 7.1 complain thusly:
4089 # icc: Command line warning: ignoring option '-M'; no argument required
4090 # The diagnosis changed in icc 8.0:
4091 # icc: Command line remark: option '-MP' not supported
4092 if (grep 'ignoring option' conftest.err ||
4093 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4094 am_cv_CC_dependencies_compiler_type=$depmode
4095 break
4096 fi
4097 fi
4098 done
4100 cd ..
4101 rm -rf conftest.dir
4102 else
4103 am_cv_CC_dependencies_compiler_type=none
4104 fi
4106 fi
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4108 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4109 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4111 if
4112 test "x$enable_dependency_tracking" != xno \
4113 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4114 am__fastdepCC_TRUE=
4115 am__fastdepCC_FALSE='#'
4116 else
4117 am__fastdepCC_TRUE='#'
4118 am__fastdepCC_FALSE=
4119 fi
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4123 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4124 if ${ac_cv_path_SED+:} false; then :
4125 $as_echo_n "(cached) " >&6
4126 else
4127 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4128 for ac_i in 1 2 3 4 5 6 7; do
4129 ac_script="$ac_script$as_nl$ac_script"
4130 done
4131 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4132 { ac_script=; unset ac_script;}
4133 if test -z "$SED"; then
4134 ac_path_SED_found=false
4135 # Loop through the user's path and test for each of PROGNAME-LIST
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $PATH
4138 do
4139 IFS=$as_save_IFS
4140 test -z "$as_dir" && as_dir=.
4141 for ac_prog in sed gsed; do
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4144 as_fn_executable_p "$ac_path_SED" || continue
4145 # Check for GNU ac_path_SED and select it if it is found.
4146 # Check for GNU $ac_path_SED
4147 case `"$ac_path_SED" --version 2>&1` in
4148 *GNU*)
4149 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4150 *)
4151 ac_count=0
4152 $as_echo_n 0123456789 >"conftest.in"
4153 while :
4154 do
4155 cat "conftest.in" "conftest.in" >"conftest.tmp"
4156 mv "conftest.tmp" "conftest.in"
4157 cp "conftest.in" "conftest.nl"
4158 $as_echo '' >> "conftest.nl"
4159 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4161 as_fn_arith $ac_count + 1 && ac_count=$as_val
4162 if test $ac_count -gt ${ac_path_SED_max-0}; then
4163 # Best one so far, save it but keep looking for a better one
4164 ac_cv_path_SED="$ac_path_SED"
4165 ac_path_SED_max=$ac_count
4166 fi
4167 # 10*(2^10) chars as input seems more than enough
4168 test $ac_count -gt 10 && break
4169 done
4170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4171 esac
4173 $ac_path_SED_found && break 3
4174 done
4175 done
4176 done
4177 IFS=$as_save_IFS
4178 if test -z "$ac_cv_path_SED"; then
4179 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4180 fi
4181 else
4182 ac_cv_path_SED=$SED
4183 fi
4185 fi
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4187 $as_echo "$ac_cv_path_SED" >&6; }
4188 SED="$ac_cv_path_SED"
4189 rm -f conftest.sed
4191 test -z "$SED" && SED=sed
4192 Xsed="$SED -e 1s/^X//"
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4205 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4206 if ${ac_cv_path_GREP+:} false; then :
4207 $as_echo_n "(cached) " >&6
4208 else
4209 if test -z "$GREP"; then
4210 ac_path_GREP_found=false
4211 # Loop through the user's path and test for each of PROGNAME-LIST
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4214 do
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_prog in grep ggrep; do
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4220 as_fn_executable_p "$ac_path_GREP" || continue
4221 # Check for GNU ac_path_GREP and select it if it is found.
4222 # Check for GNU $ac_path_GREP
4223 case `"$ac_path_GREP" --version 2>&1` in
4224 *GNU*)
4225 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4226 *)
4227 ac_count=0
4228 $as_echo_n 0123456789 >"conftest.in"
4229 while :
4230 do
4231 cat "conftest.in" "conftest.in" >"conftest.tmp"
4232 mv "conftest.tmp" "conftest.in"
4233 cp "conftest.in" "conftest.nl"
4234 $as_echo 'GREP' >> "conftest.nl"
4235 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4237 as_fn_arith $ac_count + 1 && ac_count=$as_val
4238 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4239 # Best one so far, save it but keep looking for a better one
4240 ac_cv_path_GREP="$ac_path_GREP"
4241 ac_path_GREP_max=$ac_count
4242 fi
4243 # 10*(2^10) chars as input seems more than enough
4244 test $ac_count -gt 10 && break
4245 done
4246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4247 esac
4249 $ac_path_GREP_found && break 3
4250 done
4251 done
4252 done
4253 IFS=$as_save_IFS
4254 if test -z "$ac_cv_path_GREP"; then
4255 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4256 fi
4257 else
4258 ac_cv_path_GREP=$GREP
4259 fi
4261 fi
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4263 $as_echo "$ac_cv_path_GREP" >&6; }
4264 GREP="$ac_cv_path_GREP"
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4268 $as_echo_n "checking for egrep... " >&6; }
4269 if ${ac_cv_path_EGREP+:} false; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4273 then ac_cv_path_EGREP="$GREP -E"
4274 else
4275 if test -z "$EGREP"; then
4276 ac_path_EGREP_found=false
4277 # Loop through the user's path and test for each of PROGNAME-LIST
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4280 do
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_prog in egrep; do
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4286 as_fn_executable_p "$ac_path_EGREP" || continue
4287 # Check for GNU ac_path_EGREP and select it if it is found.
4288 # Check for GNU $ac_path_EGREP
4289 case `"$ac_path_EGREP" --version 2>&1` in
4290 *GNU*)
4291 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4292 *)
4293 ac_count=0
4294 $as_echo_n 0123456789 >"conftest.in"
4295 while :
4296 do
4297 cat "conftest.in" "conftest.in" >"conftest.tmp"
4298 mv "conftest.tmp" "conftest.in"
4299 cp "conftest.in" "conftest.nl"
4300 $as_echo 'EGREP' >> "conftest.nl"
4301 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4303 as_fn_arith $ac_count + 1 && ac_count=$as_val
4304 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4305 # Best one so far, save it but keep looking for a better one
4306 ac_cv_path_EGREP="$ac_path_EGREP"
4307 ac_path_EGREP_max=$ac_count
4308 fi
4309 # 10*(2^10) chars as input seems more than enough
4310 test $ac_count -gt 10 && break
4311 done
4312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4313 esac
4315 $ac_path_EGREP_found && break 3
4316 done
4317 done
4318 done
4319 IFS=$as_save_IFS
4320 if test -z "$ac_cv_path_EGREP"; then
4321 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4322 fi
4323 else
4324 ac_cv_path_EGREP=$EGREP
4325 fi
4327 fi
4328 fi
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4330 $as_echo "$ac_cv_path_EGREP" >&6; }
4331 EGREP="$ac_cv_path_EGREP"
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4335 $as_echo_n "checking for fgrep... " >&6; }
4336 if ${ac_cv_path_FGREP+:} false; then :
4337 $as_echo_n "(cached) " >&6
4338 else
4339 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4340 then ac_cv_path_FGREP="$GREP -F"
4341 else
4342 if test -z "$FGREP"; then
4343 ac_path_FGREP_found=false
4344 # Loop through the user's path and test for each of PROGNAME-LIST
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4347 do
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
4350 for ac_prog in fgrep; do
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4353 as_fn_executable_p "$ac_path_FGREP" || continue
4354 # Check for GNU ac_path_FGREP and select it if it is found.
4355 # Check for GNU $ac_path_FGREP
4356 case `"$ac_path_FGREP" --version 2>&1` in
4357 *GNU*)
4358 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4359 *)
4360 ac_count=0
4361 $as_echo_n 0123456789 >"conftest.in"
4362 while :
4363 do
4364 cat "conftest.in" "conftest.in" >"conftest.tmp"
4365 mv "conftest.tmp" "conftest.in"
4366 cp "conftest.in" "conftest.nl"
4367 $as_echo 'FGREP' >> "conftest.nl"
4368 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4369 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4370 as_fn_arith $ac_count + 1 && ac_count=$as_val
4371 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4372 # Best one so far, save it but keep looking for a better one
4373 ac_cv_path_FGREP="$ac_path_FGREP"
4374 ac_path_FGREP_max=$ac_count
4375 fi
4376 # 10*(2^10) chars as input seems more than enough
4377 test $ac_count -gt 10 && break
4378 done
4379 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4380 esac
4382 $ac_path_FGREP_found && break 3
4383 done
4384 done
4385 done
4386 IFS=$as_save_IFS
4387 if test -z "$ac_cv_path_FGREP"; then
4388 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4389 fi
4390 else
4391 ac_cv_path_FGREP=$FGREP
4392 fi
4394 fi
4395 fi
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4397 $as_echo "$ac_cv_path_FGREP" >&6; }
4398 FGREP="$ac_cv_path_FGREP"
4401 test -z "$GREP" && GREP=grep
4421 # Check whether --with-gnu-ld was given.
4422 if test "${with_gnu_ld+set}" = set; then :
4423 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4424 else
4425 with_gnu_ld=no
4426 fi
4428 ac_prog=ld
4429 if test yes = "$GCC"; then
4430 # Check if gcc -print-prog-name=ld gives a path.
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4432 $as_echo_n "checking for ld used by $CC... " >&6; }
4433 case $host in
4434 *-*-mingw*)
4435 # gcc leaves a trailing carriage return, which upsets mingw
4436 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4437 *)
4438 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4439 esac
4440 case $ac_prog in
4441 # Accept absolute paths.
4442 [\\/]* | ?:[\\/]*)
4443 re_direlt='/[^/][^/]*/\.\./'
4444 # Canonicalize the pathname of ld
4445 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4446 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4447 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4448 done
4449 test -z "$LD" && LD=$ac_prog
4450 ;;
4451 "")
4452 # If it fails, then pretend we aren't using GCC.
4453 ac_prog=ld
4454 ;;
4455 *)
4456 # If it is relative, then search for the first ld in PATH.
4457 with_gnu_ld=unknown
4458 ;;
4459 esac
4460 elif test yes = "$with_gnu_ld"; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4462 $as_echo_n "checking for GNU ld... " >&6; }
4463 else
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4465 $as_echo_n "checking for non-GNU ld... " >&6; }
4466 fi
4467 if ${lt_cv_path_LD+:} false; then :
4468 $as_echo_n "(cached) " >&6
4469 else
4470 if test -z "$LD"; then
4471 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4472 for ac_dir in $PATH; do
4473 IFS=$lt_save_ifs
4474 test -z "$ac_dir" && ac_dir=.
4475 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4476 lt_cv_path_LD=$ac_dir/$ac_prog
4477 # Check to see if the program is GNU ld. I'd rather use --version,
4478 # but apparently some variants of GNU ld only accept -v.
4479 # Break only if it was the GNU/non-GNU ld that we prefer.
4480 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4481 *GNU* | *'with BFD'*)
4482 test no != "$with_gnu_ld" && break
4483 ;;
4484 *)
4485 test yes != "$with_gnu_ld" && break
4486 ;;
4487 esac
4488 fi
4489 done
4490 IFS=$lt_save_ifs
4491 else
4492 lt_cv_path_LD=$LD # Let the user override the test with a path.
4493 fi
4494 fi
4496 LD=$lt_cv_path_LD
4497 if test -n "$LD"; then
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4499 $as_echo "$LD" >&6; }
4500 else
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 $as_echo "no" >&6; }
4503 fi
4504 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4506 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4507 if ${lt_cv_prog_gnu_ld+:} false; then :
4508 $as_echo_n "(cached) " >&6
4509 else
4510 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4511 case `$LD -v 2>&1 </dev/null` in
4512 *GNU* | *'with BFD'*)
4513 lt_cv_prog_gnu_ld=yes
4514 ;;
4515 *)
4516 lt_cv_prog_gnu_ld=no
4517 ;;
4518 esac
4519 fi
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4521 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4522 with_gnu_ld=$lt_cv_prog_gnu_ld
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4533 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4534 if ${lt_cv_path_NM+:} false; then :
4535 $as_echo_n "(cached) " >&6
4536 else
4537 if test -n "$NM"; then
4538 # Let the user override the test.
4539 lt_cv_path_NM=$NM
4540 else
4541 lt_nm_to_check=${ac_tool_prefix}nm
4542 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4543 lt_nm_to_check="$lt_nm_to_check nm"
4544 fi
4545 for lt_tmp_nm in $lt_nm_to_check; do
4546 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4547 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4548 IFS=$lt_save_ifs
4549 test -z "$ac_dir" && ac_dir=.
4550 tmp_nm=$ac_dir/$lt_tmp_nm
4551 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4552 # Check to see if the nm accepts a BSD-compat flag.
4553 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4554 # nm: unknown option "B" ignored
4555 # Tru64's nm complains that /dev/null is an invalid object file
4556 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4557 case $build_os in
4558 mingw*) lt_bad_file=conftest.nm/nofile ;;
4559 *) lt_bad_file=/dev/null ;;
4560 esac
4561 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4562 *$lt_bad_file* | *'Invalid file or object type'*)
4563 lt_cv_path_NM="$tmp_nm -B"
4564 break 2
4565 ;;
4566 *)
4567 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4568 */dev/null*)
4569 lt_cv_path_NM="$tmp_nm -p"
4570 break 2
4571 ;;
4572 *)
4573 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4574 continue # so that we can try to find one that supports BSD flags
4575 ;;
4576 esac
4577 ;;
4578 esac
4579 fi
4580 done
4581 IFS=$lt_save_ifs
4582 done
4583 : ${lt_cv_path_NM=no}
4584 fi
4585 fi
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4587 $as_echo "$lt_cv_path_NM" >&6; }
4588 if test no != "$lt_cv_path_NM"; then
4589 NM=$lt_cv_path_NM
4590 else
4591 # Didn't find any BSD compatible name lister, look for dumpbin.
4592 if test -n "$DUMPBIN"; then :
4593 # Let the user override the test.
4594 else
4595 if test -n "$ac_tool_prefix"; then
4596 for ac_prog in dumpbin "link -dump"
4597 do
4598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4601 $as_echo_n "checking for $ac_word... " >&6; }
4602 if ${ac_cv_prog_DUMPBIN+:} false; then :
4603 $as_echo_n "(cached) " >&6
4604 else
4605 if test -n "$DUMPBIN"; then
4606 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4607 else
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4610 do
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4615 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 break 2
4618 fi
4619 done
4620 done
4621 IFS=$as_save_IFS
4623 fi
4624 fi
4625 DUMPBIN=$ac_cv_prog_DUMPBIN
4626 if test -n "$DUMPBIN"; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4628 $as_echo "$DUMPBIN" >&6; }
4629 else
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4632 fi
4635 test -n "$DUMPBIN" && break
4636 done
4637 fi
4638 if test -z "$DUMPBIN"; then
4639 ac_ct_DUMPBIN=$DUMPBIN
4640 for ac_prog in dumpbin "link -dump"
4641 do
4642 # Extract the first word of "$ac_prog", so it can be a program name with args.
4643 set dummy $ac_prog; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 if test -n "$ac_ct_DUMPBIN"; then
4650 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4659 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 break 2
4662 fi
4663 done
4664 done
4665 IFS=$as_save_IFS
4667 fi
4668 fi
4669 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4670 if test -n "$ac_ct_DUMPBIN"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4672 $as_echo "$ac_ct_DUMPBIN" >&6; }
4673 else
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4676 fi
4679 test -n "$ac_ct_DUMPBIN" && break
4680 done
4682 if test "x$ac_ct_DUMPBIN" = x; then
4683 DUMPBIN=":"
4684 else
4685 case $cross_compiling:$ac_tool_warned in
4686 yes:)
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4689 ac_tool_warned=yes ;;
4690 esac
4691 DUMPBIN=$ac_ct_DUMPBIN
4692 fi
4693 fi
4695 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4696 *COFF*)
4697 DUMPBIN="$DUMPBIN -symbols -headers"
4698 ;;
4699 *)
4700 DUMPBIN=:
4701 ;;
4702 esac
4703 fi
4705 if test : != "$DUMPBIN"; then
4706 NM=$DUMPBIN
4707 fi
4708 fi
4709 test -z "$NM" && NM=nm
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4717 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4718 if ${lt_cv_nm_interface+:} false; then :
4719 $as_echo_n "(cached) " >&6
4720 else
4721 lt_cv_nm_interface="BSD nm"
4722 echo "int some_variable = 0;" > conftest.$ac_ext
4723 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4724 (eval "$ac_compile" 2>conftest.err)
4725 cat conftest.err >&5
4726 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4727 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4728 cat conftest.err >&5
4729 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4730 cat conftest.out >&5
4731 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4732 lt_cv_nm_interface="MS dumpbin"
4733 fi
4734 rm -f conftest*
4735 fi
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4737 $as_echo "$lt_cv_nm_interface" >&6; }
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4740 $as_echo_n "checking whether ln -s works... " >&6; }
4741 LN_S=$as_ln_s
4742 if test "$LN_S" = "ln -s"; then
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4744 $as_echo "yes" >&6; }
4745 else
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4747 $as_echo "no, using $LN_S" >&6; }
4748 fi
4750 # find the maximum length of command line arguments
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4752 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4753 if ${lt_cv_sys_max_cmd_len+:} false; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 i=0
4757 teststring=ABCD
4759 case $build_os in
4760 msdosdjgpp*)
4761 # On DJGPP, this test can blow up pretty badly due to problems in libc
4762 # (any single argument exceeding 2000 bytes causes a buffer overrun
4763 # during glob expansion). Even if it were fixed, the result of this
4764 # check would be larger than it should be.
4765 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4766 ;;
4768 gnu*)
4769 # Under GNU Hurd, this test is not required because there is
4770 # no limit to the length of command line arguments.
4771 # Libtool will interpret -1 as no limit whatsoever
4772 lt_cv_sys_max_cmd_len=-1;
4773 ;;
4775 cygwin* | mingw* | cegcc*)
4776 # On Win9x/ME, this test blows up -- it succeeds, but takes
4777 # about 5 minutes as the teststring grows exponentially.
4778 # Worse, since 9x/ME are not pre-emptively multitasking,
4779 # you end up with a "frozen" computer, even though with patience
4780 # the test eventually succeeds (with a max line length of 256k).
4781 # Instead, let's just punt: use the minimum linelength reported by
4782 # all of the supported platforms: 8192 (on NT/2K/XP).
4783 lt_cv_sys_max_cmd_len=8192;
4784 ;;
4786 mint*)
4787 # On MiNT this can take a long time and run out of memory.
4788 lt_cv_sys_max_cmd_len=8192;
4789 ;;
4791 amigaos*)
4792 # On AmigaOS with pdksh, this test takes hours, literally.
4793 # So we just punt and use a minimum line length of 8192.
4794 lt_cv_sys_max_cmd_len=8192;
4795 ;;
4797 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4798 # This has been around since 386BSD, at least. Likely further.
4799 if test -x /sbin/sysctl; then
4800 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4801 elif test -x /usr/sbin/sysctl; then
4802 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4803 else
4804 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4805 fi
4806 # And add a safety zone
4807 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4808 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4809 ;;
4811 interix*)
4812 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4813 lt_cv_sys_max_cmd_len=196608
4814 ;;
4816 os2*)
4817 # The test takes a long time on OS/2.
4818 lt_cv_sys_max_cmd_len=8192
4819 ;;
4821 osf*)
4822 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4823 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4824 # nice to cause kernel panics so lets avoid the loop below.
4825 # First set a reasonable default.
4826 lt_cv_sys_max_cmd_len=16384
4827 #
4828 if test -x /sbin/sysconfig; then
4829 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4830 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4831 esac
4832 fi
4833 ;;
4834 sco3.2v5*)
4835 lt_cv_sys_max_cmd_len=102400
4836 ;;
4837 sysv5* | sco5v6* | sysv4.2uw2*)
4838 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4839 if test -n "$kargmax"; then
4840 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4841 else
4842 lt_cv_sys_max_cmd_len=32768
4843 fi
4844 ;;
4845 *)
4846 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4847 if test -n "$lt_cv_sys_max_cmd_len" && \
4848 test undefined != "$lt_cv_sys_max_cmd_len"; then
4849 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4850 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4851 else
4852 # Make teststring a little bigger before we do anything with it.
4853 # a 1K string should be a reasonable start.
4854 for i in 1 2 3 4 5 6 7 8; do
4855 teststring=$teststring$teststring
4856 done
4857 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4858 # If test is not a shell built-in, we'll probably end up computing a
4859 # maximum length that is only half of the actual maximum length, but
4860 # we can't tell.
4861 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4862 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4863 test 17 != "$i" # 1/2 MB should be enough
4864 do
4865 i=`expr $i + 1`
4866 teststring=$teststring$teststring
4867 done
4868 # Only check the string length outside the loop.
4869 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4870 teststring=
4871 # Add a significant safety factor because C++ compilers can tack on
4872 # massive amounts of additional arguments before passing them to the
4873 # linker. It appears as though 1/2 is a usable value.
4874 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4875 fi
4876 ;;
4877 esac
4879 fi
4881 if test -n "$lt_cv_sys_max_cmd_len"; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4883 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4884 else
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4886 $as_echo "none" >&6; }
4887 fi
4888 max_cmd_len=$lt_cv_sys_max_cmd_len
4895 : ${CP="cp -f"}
4896 : ${MV="mv -f"}
4897 : ${RM="rm -f"}
4899 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4900 lt_unset=unset
4901 else
4902 lt_unset=false
4903 fi
4909 # test EBCDIC or ASCII
4910 case `echo X|tr X '\101'` in
4911 A) # ASCII based system
4912 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4913 lt_SP2NL='tr \040 \012'
4914 lt_NL2SP='tr \015\012 \040\040'
4915 ;;
4916 *) # EBCDIC based system
4917 lt_SP2NL='tr \100 \n'
4918 lt_NL2SP='tr \r\n \100\100'
4919 ;;
4920 esac
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4931 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4932 if ${lt_cv_to_host_file_cmd+:} false; then :
4933 $as_echo_n "(cached) " >&6
4934 else
4935 case $host in
4936 *-*-mingw* )
4937 case $build in
4938 *-*-mingw* ) # actually msys
4939 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4940 ;;
4941 *-*-cygwin* )
4942 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4943 ;;
4944 * ) # otherwise, assume *nix
4945 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4946 ;;
4947 esac
4948 ;;
4949 *-*-cygwin* )
4950 case $build in
4951 *-*-mingw* ) # actually msys
4952 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4953 ;;
4954 *-*-cygwin* )
4955 lt_cv_to_host_file_cmd=func_convert_file_noop
4956 ;;
4957 * ) # otherwise, assume *nix
4958 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4959 ;;
4960 esac
4961 ;;
4962 * ) # unhandled hosts (and "normal" native builds)
4963 lt_cv_to_host_file_cmd=func_convert_file_noop
4964 ;;
4965 esac
4967 fi
4969 to_host_file_cmd=$lt_cv_to_host_file_cmd
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4971 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4978 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4979 if ${lt_cv_to_tool_file_cmd+:} false; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4982 #assume ordinary cross tools, or native build.
4983 lt_cv_to_tool_file_cmd=func_convert_file_noop
4984 case $host in
4985 *-*-mingw* )
4986 case $build in
4987 *-*-mingw* ) # actually msys
4988 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4989 ;;
4990 esac
4991 ;;
4992 esac
4994 fi
4996 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4998 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5005 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5006 if ${lt_cv_ld_reload_flag+:} false; then :
5007 $as_echo_n "(cached) " >&6
5008 else
5009 lt_cv_ld_reload_flag='-r'
5010 fi
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5012 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5013 reload_flag=$lt_cv_ld_reload_flag
5014 case $reload_flag in
5015 "" | " "*) ;;
5016 *) reload_flag=" $reload_flag" ;;
5017 esac
5018 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5019 case $host_os in
5020 cygwin* | mingw* | pw32* | cegcc*)
5021 if test yes != "$GCC"; then
5022 reload_cmds=false
5023 fi
5024 ;;
5025 darwin*)
5026 if test yes = "$GCC"; then
5027 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5028 else
5029 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5030 fi
5031 ;;
5032 esac
5042 if test -n "$ac_tool_prefix"; then
5043 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5044 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; }
5047 if ${ac_cv_prog_OBJDUMP+:} false; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 if test -n "$OBJDUMP"; then
5051 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5052 else
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH
5055 do
5056 IFS=$as_save_IFS
5057 test -z "$as_dir" && as_dir=.
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5060 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 break 2
5063 fi
5064 done
5065 done
5066 IFS=$as_save_IFS
5068 fi
5069 fi
5070 OBJDUMP=$ac_cv_prog_OBJDUMP
5071 if test -n "$OBJDUMP"; then
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5073 $as_echo "$OBJDUMP" >&6; }
5074 else
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5076 $as_echo "no" >&6; }
5077 fi
5080 fi
5081 if test -z "$ac_cv_prog_OBJDUMP"; then
5082 ac_ct_OBJDUMP=$OBJDUMP
5083 # Extract the first word of "objdump", so it can be a program name with args.
5084 set dummy objdump; ac_word=$2
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5088 $as_echo_n "(cached) " >&6
5089 else
5090 if test -n "$ac_ct_OBJDUMP"; then
5091 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5100 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 break 2
5103 fi
5104 done
5105 done
5106 IFS=$as_save_IFS
5108 fi
5109 fi
5110 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5111 if test -n "$ac_ct_OBJDUMP"; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5113 $as_echo "$ac_ct_OBJDUMP" >&6; }
5114 else
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5117 fi
5119 if test "x$ac_ct_OBJDUMP" = x; then
5120 OBJDUMP="false"
5121 else
5122 case $cross_compiling:$ac_tool_warned in
5123 yes:)
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5126 ac_tool_warned=yes ;;
5127 esac
5128 OBJDUMP=$ac_ct_OBJDUMP
5129 fi
5130 else
5131 OBJDUMP="$ac_cv_prog_OBJDUMP"
5132 fi
5134 test -z "$OBJDUMP" && OBJDUMP=objdump
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5145 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5146 if ${lt_cv_deplibs_check_method+:} false; then :
5147 $as_echo_n "(cached) " >&6
5148 else
5149 lt_cv_file_magic_cmd='$MAGIC_CMD'
5150 lt_cv_file_magic_test_file=
5151 lt_cv_deplibs_check_method='unknown'
5152 # Need to set the preceding variable on all platforms that support
5153 # interlibrary dependencies.
5154 # 'none' -- dependencies not supported.
5155 # 'unknown' -- same as none, but documents that we really don't know.
5156 # 'pass_all' -- all dependencies passed with no checks.
5157 # 'test_compile' -- check by making test program.
5158 # 'file_magic [[regex]]' -- check by looking for files in library path
5159 # that responds to the $file_magic_cmd with a given extended regex.
5160 # If you have 'file' or equivalent on your system and you're not sure
5161 # whether 'pass_all' will *always* work, you probably want this one.
5163 case $host_os in
5164 aix[4-9]*)
5165 lt_cv_deplibs_check_method=pass_all
5166 ;;
5168 beos*)
5169 lt_cv_deplibs_check_method=pass_all
5170 ;;
5172 bsdi[45]*)
5173 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5174 lt_cv_file_magic_cmd='/usr/bin/file -L'
5175 lt_cv_file_magic_test_file=/shlib/libc.so
5176 ;;
5178 cygwin*)
5179 # func_win32_libid is a shell function defined in ltmain.sh
5180 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5181 lt_cv_file_magic_cmd='func_win32_libid'
5182 ;;
5184 mingw* | pw32*)
5185 # Base MSYS/MinGW do not provide the 'file' command needed by
5186 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5187 # unless we find 'file', for example because we are cross-compiling.
5188 if ( file / ) >/dev/null 2>&1; then
5189 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5190 lt_cv_file_magic_cmd='func_win32_libid'
5191 else
5192 # Keep this pattern in sync with the one in func_win32_libid.
5193 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5194 lt_cv_file_magic_cmd='$OBJDUMP -f'
5195 fi
5196 ;;
5198 cegcc*)
5199 # use the weaker test based on 'objdump'. See mingw*.
5200 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5201 lt_cv_file_magic_cmd='$OBJDUMP -f'
5202 ;;
5204 darwin* | rhapsody*)
5205 lt_cv_deplibs_check_method=pass_all
5206 ;;
5208 freebsd* | dragonfly*)
5209 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5210 case $host_cpu in
5211 i*86 )
5212 # Not sure whether the presence of OpenBSD here was a mistake.
5213 # Let's accept both of them until this is cleared up.
5214 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5215 lt_cv_file_magic_cmd=/usr/bin/file
5216 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5217 ;;
5218 esac
5219 else
5220 lt_cv_deplibs_check_method=pass_all
5221 fi
5222 ;;
5224 haiku*)
5225 lt_cv_deplibs_check_method=pass_all
5226 ;;
5228 hpux10.20* | hpux11*)
5229 lt_cv_file_magic_cmd=/usr/bin/file
5230 case $host_cpu in
5231 ia64*)
5232 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5233 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5234 ;;
5235 hppa*64*)
5236 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]'
5237 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5238 ;;
5239 *)
5240 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5241 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5242 ;;
5243 esac
5244 ;;
5246 interix[3-9]*)
5247 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5248 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5249 ;;
5251 irix5* | irix6* | nonstopux*)
5252 case $LD in
5253 *-32|*"-32 ") libmagic=32-bit;;
5254 *-n32|*"-n32 ") libmagic=N32;;
5255 *-64|*"-64 ") libmagic=64-bit;;
5256 *) libmagic=never-match;;
5257 esac
5258 lt_cv_deplibs_check_method=pass_all
5259 ;;
5261 # This must be glibc/ELF.
5262 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5263 lt_cv_deplibs_check_method=pass_all
5264 ;;
5266 netbsd* | netbsdelf*-gnu)
5267 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5269 else
5270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5271 fi
5272 ;;
5274 newos6*)
5275 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5276 lt_cv_file_magic_cmd=/usr/bin/file
5277 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5278 ;;
5280 *nto* | *qnx*)
5281 lt_cv_deplibs_check_method=pass_all
5282 ;;
5284 openbsd* | bitrig*)
5285 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5286 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5287 else
5288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5289 fi
5290 ;;
5292 osf3* | osf4* | osf5*)
5293 lt_cv_deplibs_check_method=pass_all
5294 ;;
5296 rdos*)
5297 lt_cv_deplibs_check_method=pass_all
5298 ;;
5300 solaris*)
5301 lt_cv_deplibs_check_method=pass_all
5302 ;;
5304 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5305 lt_cv_deplibs_check_method=pass_all
5306 ;;
5308 sysv4 | sysv4.3*)
5309 case $host_vendor in
5310 motorola)
5311 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]'
5312 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5313 ;;
5314 ncr)
5315 lt_cv_deplibs_check_method=pass_all
5316 ;;
5317 sequent)
5318 lt_cv_file_magic_cmd='/bin/file'
5319 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5320 ;;
5321 sni)
5322 lt_cv_file_magic_cmd='/bin/file'
5323 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5324 lt_cv_file_magic_test_file=/lib/libc.so
5325 ;;
5326 siemens)
5327 lt_cv_deplibs_check_method=pass_all
5328 ;;
5329 pc)
5330 lt_cv_deplibs_check_method=pass_all
5331 ;;
5332 esac
5333 ;;
5335 tpf*)
5336 lt_cv_deplibs_check_method=pass_all
5337 ;;
5338 os2*)
5339 lt_cv_deplibs_check_method=pass_all
5340 ;;
5341 esac
5343 fi
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5345 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5347 file_magic_glob=
5348 want_nocaseglob=no
5349 if test "$build" = "$host"; then
5350 case $host_os in
5351 mingw* | pw32*)
5352 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5353 want_nocaseglob=yes
5354 else
5355 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5356 fi
5357 ;;
5358 esac
5359 fi
5361 file_magic_cmd=$lt_cv_file_magic_cmd
5362 deplibs_check_method=$lt_cv_deplibs_check_method
5363 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5386 if test -n "$ac_tool_prefix"; then
5387 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5388 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5390 $as_echo_n "checking for $ac_word... " >&6; }
5391 if ${ac_cv_prog_DLLTOOL+:} false; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 if test -n "$DLLTOOL"; then
5395 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5396 else
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH
5399 do
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 break 2
5407 fi
5408 done
5409 done
5410 IFS=$as_save_IFS
5412 fi
5413 fi
5414 DLLTOOL=$ac_cv_prog_DLLTOOL
5415 if test -n "$DLLTOOL"; then
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5417 $as_echo "$DLLTOOL" >&6; }
5418 else
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }
5421 fi
5424 fi
5425 if test -z "$ac_cv_prog_DLLTOOL"; then
5426 ac_ct_DLLTOOL=$DLLTOOL
5427 # Extract the first word of "dlltool", so it can be a program name with args.
5428 set dummy dlltool; ac_word=$2
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5430 $as_echo_n "checking for $ac_word... " >&6; }
5431 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5432 $as_echo_n "(cached) " >&6
5433 else
5434 if test -n "$ac_ct_DLLTOOL"; then
5435 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5436 else
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 for as_dir in $PATH
5439 do
5440 IFS=$as_save_IFS
5441 test -z "$as_dir" && as_dir=.
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5444 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5446 break 2
5447 fi
5448 done
5449 done
5450 IFS=$as_save_IFS
5452 fi
5453 fi
5454 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5455 if test -n "$ac_ct_DLLTOOL"; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5457 $as_echo "$ac_ct_DLLTOOL" >&6; }
5458 else
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5461 fi
5463 if test "x$ac_ct_DLLTOOL" = x; then
5464 DLLTOOL="false"
5465 else
5466 case $cross_compiling:$ac_tool_warned in
5467 yes:)
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5470 ac_tool_warned=yes ;;
5471 esac
5472 DLLTOOL=$ac_ct_DLLTOOL
5473 fi
5474 else
5475 DLLTOOL="$ac_cv_prog_DLLTOOL"
5476 fi
5478 test -z "$DLLTOOL" && DLLTOOL=dlltool
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5490 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5491 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5492 $as_echo_n "(cached) " >&6
5493 else
5494 lt_cv_sharedlib_from_linklib_cmd='unknown'
5496 case $host_os in
5497 cygwin* | mingw* | pw32* | cegcc*)
5498 # two different shell functions defined in ltmain.sh;
5499 # decide which one to use based on capabilities of $DLLTOOL
5500 case `$DLLTOOL --help 2>&1` in
5501 *--identify-strict*)
5502 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5503 ;;
5504 *)
5505 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5506 ;;
5507 esac
5508 ;;
5509 *)
5510 # fallback: assume linklib IS sharedlib
5511 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5512 ;;
5513 esac
5515 fi
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5517 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5518 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5519 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5528 if test -n "$ac_tool_prefix"; then
5529 for ac_prog in ar
5530 do
5531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5532 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if ${ac_cv_prog_AR+:} false; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 if test -n "$AR"; then
5539 ac_cv_prog_AR="$AR" # Let the user override the test.
5540 else
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5543 do
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2
5551 fi
5552 done
5553 done
5554 IFS=$as_save_IFS
5556 fi
5557 fi
5558 AR=$ac_cv_prog_AR
5559 if test -n "$AR"; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5561 $as_echo "$AR" >&6; }
5562 else
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5565 fi
5568 test -n "$AR" && break
5569 done
5570 fi
5571 if test -z "$AR"; then
5572 ac_ct_AR=$AR
5573 for ac_prog in ar
5574 do
5575 # Extract the first word of "$ac_prog", so it can be a program name with args.
5576 set dummy $ac_prog; ac_word=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5580 $as_echo_n "(cached) " >&6
5581 else
5582 if test -n "$ac_ct_AR"; then
5583 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5584 else
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5587 do
5588 IFS=$as_save_IFS
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592 ac_cv_prog_ac_ct_AR="$ac_prog"
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 break 2
5595 fi
5596 done
5597 done
5598 IFS=$as_save_IFS
5600 fi
5601 fi
5602 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5603 if test -n "$ac_ct_AR"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5605 $as_echo "$ac_ct_AR" >&6; }
5606 else
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5609 fi
5612 test -n "$ac_ct_AR" && break
5613 done
5615 if test "x$ac_ct_AR" = x; then
5616 AR="false"
5617 else
5618 case $cross_compiling:$ac_tool_warned in
5619 yes:)
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5622 ac_tool_warned=yes ;;
5623 esac
5624 AR=$ac_ct_AR
5625 fi
5626 fi
5628 : ${AR=ar}
5629 : ${AR_FLAGS=cru}
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5642 $as_echo_n "checking for archiver @FILE support... " >&6; }
5643 if ${lt_cv_ar_at_file+:} false; then :
5644 $as_echo_n "(cached) " >&6
5645 else
5646 lt_cv_ar_at_file=no
5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648 /* end confdefs.h. */
5650 int
5651 main ()
5652 {
5654 ;
5655 return 0;
5656 }
5657 _ACEOF
5658 if ac_fn_c_try_compile "$LINENO"; then :
5659 echo conftest.$ac_objext > conftest.lst
5660 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5662 (eval $lt_ar_try) 2>&5
5663 ac_status=$?
5664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5665 test $ac_status = 0; }
5666 if test 0 -eq "$ac_status"; then
5667 # Ensure the archiver fails upon bogus file names.
5668 rm -f conftest.$ac_objext libconftest.a
5669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5670 (eval $lt_ar_try) 2>&5
5671 ac_status=$?
5672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5673 test $ac_status = 0; }
5674 if test 0 -ne "$ac_status"; then
5675 lt_cv_ar_at_file=@
5676 fi
5677 fi
5678 rm -f conftest.* libconftest.a
5680 fi
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 fi
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5685 $as_echo "$lt_cv_ar_at_file" >&6; }
5687 if test no = "$lt_cv_ar_at_file"; then
5688 archiver_list_spec=
5689 else
5690 archiver_list_spec=$lt_cv_ar_at_file
5691 fi
5699 if test -n "$ac_tool_prefix"; then
5700 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5701 set dummy ${ac_tool_prefix}strip; ac_word=$2
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703 $as_echo_n "checking for $ac_word... " >&6; }
5704 if ${ac_cv_prog_STRIP+:} false; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 if test -n "$STRIP"; then
5708 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5709 else
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH
5712 do
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5717 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 break 2
5720 fi
5721 done
5722 done
5723 IFS=$as_save_IFS
5725 fi
5726 fi
5727 STRIP=$ac_cv_prog_STRIP
5728 if test -n "$STRIP"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5730 $as_echo "$STRIP" >&6; }
5731 else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5734 fi
5737 fi
5738 if test -z "$ac_cv_prog_STRIP"; then
5739 ac_ct_STRIP=$STRIP
5740 # Extract the first word of "strip", so it can be a program name with args.
5741 set dummy strip; ac_word=$2
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743 $as_echo_n "checking for $ac_word... " >&6; }
5744 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 if test -n "$ac_ct_STRIP"; then
5748 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5749 else
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH
5752 do
5753 IFS=$as_save_IFS
5754 test -z "$as_dir" && as_dir=.
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757 ac_cv_prog_ac_ct_STRIP="strip"
5758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 break 2
5760 fi
5761 done
5762 done
5763 IFS=$as_save_IFS
5765 fi
5766 fi
5767 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5768 if test -n "$ac_ct_STRIP"; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5770 $as_echo "$ac_ct_STRIP" >&6; }
5771 else
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5774 fi
5776 if test "x$ac_ct_STRIP" = x; then
5777 STRIP=":"
5778 else
5779 case $cross_compiling:$ac_tool_warned in
5780 yes:)
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5783 ac_tool_warned=yes ;;
5784 esac
5785 STRIP=$ac_ct_STRIP
5786 fi
5787 else
5788 STRIP="$ac_cv_prog_STRIP"
5789 fi
5791 test -z "$STRIP" && STRIP=:
5798 if test -n "$ac_tool_prefix"; then
5799 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5800 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if ${ac_cv_prog_RANLIB+:} false; then :
5804 $as_echo_n "(cached) " >&6
5805 else
5806 if test -n "$RANLIB"; then
5807 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5808 else
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 for as_dir in $PATH
5811 do
5812 IFS=$as_save_IFS
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5816 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 break 2
5819 fi
5820 done
5821 done
5822 IFS=$as_save_IFS
5824 fi
5825 fi
5826 RANLIB=$ac_cv_prog_RANLIB
5827 if test -n "$RANLIB"; then
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5829 $as_echo "$RANLIB" >&6; }
5830 else
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832 $as_echo "no" >&6; }
5833 fi
5836 fi
5837 if test -z "$ac_cv_prog_RANLIB"; then
5838 ac_ct_RANLIB=$RANLIB
5839 # Extract the first word of "ranlib", so it can be a program name with args.
5840 set dummy ranlib; ac_word=$2
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5842 $as_echo_n "checking for $ac_word... " >&6; }
5843 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846 if test -n "$ac_ct_RANLIB"; then
5847 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5848 else
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 for as_dir in $PATH
5851 do
5852 IFS=$as_save_IFS
5853 test -z "$as_dir" && as_dir=.
5854 for ac_exec_ext in '' $ac_executable_extensions; do
5855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5856 ac_cv_prog_ac_ct_RANLIB="ranlib"
5857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5858 break 2
5859 fi
5860 done
5861 done
5862 IFS=$as_save_IFS
5864 fi
5865 fi
5866 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5867 if test -n "$ac_ct_RANLIB"; then
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5869 $as_echo "$ac_ct_RANLIB" >&6; }
5870 else
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5872 $as_echo "no" >&6; }
5873 fi
5875 if test "x$ac_ct_RANLIB" = x; then
5876 RANLIB=":"
5877 else
5878 case $cross_compiling:$ac_tool_warned in
5879 yes:)
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5882 ac_tool_warned=yes ;;
5883 esac
5884 RANLIB=$ac_ct_RANLIB
5885 fi
5886 else
5887 RANLIB="$ac_cv_prog_RANLIB"
5888 fi
5890 test -z "$RANLIB" && RANLIB=:
5897 # Determine commands to create old-style static archives.
5898 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5899 old_postinstall_cmds='chmod 644 $oldlib'
5900 old_postuninstall_cmds=
5902 if test -n "$RANLIB"; then
5903 case $host_os in
5904 bitrig* | openbsd*)
5905 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5906 ;;
5907 *)
5908 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5909 ;;
5910 esac
5911 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5912 fi
5914 case $host_os in
5915 darwin*)
5916 lock_old_archive_extraction=yes ;;
5917 *)
5918 lock_old_archive_extraction=no ;;
5919 esac
5959 # If no C compiler was specified, use CC.
5960 LTCC=${LTCC-"$CC"}
5962 # If no C compiler flags were specified, use CFLAGS.
5963 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5965 # Allow CC to be a program name with arguments.
5966 compiler=$CC
5969 # Check for command to grab the raw symbol name followed by C symbol from nm.
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5971 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5972 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5976 # These are sane defaults that work on at least a few old systems.
5977 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5979 # Character class describing NM global symbol codes.
5980 symcode='[BCDEGRST]'
5982 # Regexp to match symbols that can be accessed directly from C.
5983 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5985 # Define system-specific variables.
5986 case $host_os in
5987 aix*)
5988 symcode='[BCDT]'
5989 ;;
5990 cygwin* | mingw* | pw32* | cegcc*)
5991 symcode='[ABCDGISTW]'
5992 ;;
5993 hpux*)
5994 if test ia64 = "$host_cpu"; then
5995 symcode='[ABCDEGRST]'
5996 fi
5997 ;;
5998 irix* | nonstopux*)
5999 symcode='[BCDEGRST]'
6000 ;;
6001 osf*)
6002 symcode='[BCDEGQRST]'
6003 ;;
6004 solaris*)
6005 symcode='[BDRT]'
6006 ;;
6007 sco3.2v5*)
6008 symcode='[DT]'
6009 ;;
6010 sysv4.2uw2*)
6011 symcode='[DT]'
6012 ;;
6013 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6014 symcode='[ABDT]'
6015 ;;
6016 sysv4)
6017 symcode='[DFNSTU]'
6018 ;;
6019 esac
6021 # If we're using GNU nm, then use its standard symbol codes.
6022 case `$NM -V 2>&1` in
6023 *GNU* | *'with BFD'*)
6024 symcode='[ABCDGIRSTW]' ;;
6025 esac
6027 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6028 # Gets list of data symbols to import.
6029 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6030 # Adjust the below global symbol transforms to fixup imported variables.
6031 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6032 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6033 lt_c_name_lib_hook="\
6034 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6035 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6036 else
6037 # Disable hooks by default.
6038 lt_cv_sys_global_symbol_to_import=
6039 lt_cdecl_hook=
6040 lt_c_name_hook=
6041 lt_c_name_lib_hook=
6042 fi
6044 # Transform an extracted symbol line into a proper C declaration.
6045 # Some systems (esp. on ia64) link data and code symbols differently,
6046 # so use this general approach.
6047 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6048 $lt_cdecl_hook\
6049 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6050 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6052 # Transform an extracted symbol line into symbol name and symbol address
6053 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6054 $lt_c_name_hook\
6055 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6056 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6058 # Transform an extracted symbol line into symbol name with lib prefix and
6059 # symbol address.
6060 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6061 $lt_c_name_lib_hook\
6062 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6063 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6064 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6066 # Handle CRLF in mingw tool chain
6067 opt_cr=
6068 case $build_os in
6069 mingw*)
6070 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6071 ;;
6072 esac
6074 # Try without a prefix underscore, then with it.
6075 for ac_symprfx in "" "_"; do
6077 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6078 symxfrm="\\1 $ac_symprfx\\2 \\2"
6080 # Write the raw and C identifiers.
6081 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6082 # Fake it for dumpbin and say T for any non-static function,
6083 # D for any global variable and I for any imported variable.
6084 # Also find C++ and __fastcall symbols from MSVC++,
6085 # which start with @ or ?.
6086 lt_cv_sys_global_symbol_pipe="$AWK '"\
6087 " {last_section=section; section=\$ 3};"\
6088 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6089 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6090 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6091 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6092 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6093 " \$ 0!~/External *\|/{next};"\
6094 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6095 " {if(hide[section]) next};"\
6096 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6097 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6098 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6099 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6100 " ' prfx=^$ac_symprfx"
6101 else
6102 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6103 fi
6104 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6106 # Check to see that the pipe works correctly.
6107 pipe_works=no
6109 rm -f conftest*
6110 cat > conftest.$ac_ext <<_LT_EOF
6111 #ifdef __cplusplus
6112 extern "C" {
6113 #endif
6114 char nm_test_var;
6115 void nm_test_func(void);
6116 void nm_test_func(void){}
6117 #ifdef __cplusplus
6118 }
6119 #endif
6120 int main(){nm_test_var='a';nm_test_func();return(0);}
6121 _LT_EOF
6123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6124 (eval $ac_compile) 2>&5
6125 ac_status=$?
6126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6127 test $ac_status = 0; }; then
6128 # Now try to grab the symbols.
6129 nlist=conftest.nm
6130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6131 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6132 ac_status=$?
6133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6134 test $ac_status = 0; } && test -s "$nlist"; then
6135 # Try sorting and uniquifying the output.
6136 if sort "$nlist" | uniq > "$nlist"T; then
6137 mv -f "$nlist"T "$nlist"
6138 else
6139 rm -f "$nlist"T
6140 fi
6142 # Make sure that we snagged all the symbols we need.
6143 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6144 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6145 cat <<_LT_EOF > conftest.$ac_ext
6146 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6147 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6148 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6149 relocations are performed -- see ld's documentation on pseudo-relocs. */
6150 # define LT_DLSYM_CONST
6151 #elif defined __osf__
6152 /* This system does not cope well with relocations in const data. */
6153 # define LT_DLSYM_CONST
6154 #else
6155 # define LT_DLSYM_CONST const
6156 #endif
6158 #ifdef __cplusplus
6159 extern "C" {
6160 #endif
6162 _LT_EOF
6163 # Now generate the symbol file.
6164 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6166 cat <<_LT_EOF >> conftest.$ac_ext
6168 /* The mapping between symbol names and symbols. */
6169 LT_DLSYM_CONST struct {
6170 const char *name;
6171 void *address;
6172 }
6173 lt__PROGRAM__LTX_preloaded_symbols[] =
6174 {
6175 { "@PROGRAM@", (void *) 0 },
6176 _LT_EOF
6177 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6178 cat <<\_LT_EOF >> conftest.$ac_ext
6179 {0, (void *) 0}
6180 };
6182 /* This works around a problem in FreeBSD linker */
6183 #ifdef FREEBSD_WORKAROUND
6184 static const void *lt_preloaded_setup() {
6185 return lt__PROGRAM__LTX_preloaded_symbols;
6186 }
6187 #endif
6189 #ifdef __cplusplus
6190 }
6191 #endif
6192 _LT_EOF
6193 # Now try linking the two files.
6194 mv conftest.$ac_objext conftstm.$ac_objext
6195 lt_globsym_save_LIBS=$LIBS
6196 lt_globsym_save_CFLAGS=$CFLAGS
6197 LIBS=conftstm.$ac_objext
6198 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6200 (eval $ac_link) 2>&5
6201 ac_status=$?
6202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6203 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6204 pipe_works=yes
6205 fi
6206 LIBS=$lt_globsym_save_LIBS
6207 CFLAGS=$lt_globsym_save_CFLAGS
6208 else
6209 echo "cannot find nm_test_func in $nlist" >&5
6210 fi
6211 else
6212 echo "cannot find nm_test_var in $nlist" >&5
6213 fi
6214 else
6215 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6216 fi
6217 else
6218 echo "$progname: failed program was:" >&5
6219 cat conftest.$ac_ext >&5
6220 fi
6221 rm -rf conftest* conftst*
6223 # Do not use the global_symbol_pipe unless it works.
6224 if test yes = "$pipe_works"; then
6225 break
6226 else
6227 lt_cv_sys_global_symbol_pipe=
6228 fi
6229 done
6231 fi
6233 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6234 lt_cv_sys_global_symbol_to_cdecl=
6235 fi
6236 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6238 $as_echo "failed" >&6; }
6239 else
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6241 $as_echo "ok" >&6; }
6242 fi
6244 # Response file support.
6245 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6246 nm_file_list_spec='@'
6247 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6248 nm_file_list_spec='@'
6249 fi
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6288 $as_echo_n "checking for sysroot... " >&6; }
6290 # Check whether --with-sysroot was given.
6291 if test "${with_sysroot+set}" = set; then :
6292 withval=$with_sysroot;
6293 else
6294 with_sysroot=no
6295 fi
6298 lt_sysroot=
6299 case $with_sysroot in #(
6300 yes)
6301 if test yes = "$GCC"; then
6302 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6303 fi
6304 ;; #(
6305 /*)
6306 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6307 ;; #(
6308 no|'')
6309 ;; #(
6310 *)
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6312 $as_echo "$with_sysroot" >&6; }
6313 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6314 ;;
6315 esac
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6318 $as_echo "${lt_sysroot:-no}" >&6; }
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6325 $as_echo_n "checking for a working dd... " >&6; }
6326 if ${ac_cv_path_lt_DD+:} false; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 printf 0123456789abcdef0123456789abcdef >conftest.i
6330 cat conftest.i conftest.i >conftest2.i
6331 : ${lt_DD:=$DD}
6332 if test -z "$lt_DD"; then
6333 ac_path_lt_DD_found=false
6334 # Loop through the user's path and test for each of PROGNAME-LIST
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 for as_dir in $PATH
6337 do
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
6340 for ac_prog in dd; do
6341 for ac_exec_ext in '' $ac_executable_extensions; do
6342 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6343 as_fn_executable_p "$ac_path_lt_DD" || continue
6344 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6345 cmp -s conftest.i conftest.out \
6346 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6347 fi
6348 $ac_path_lt_DD_found && break 3
6349 done
6350 done
6351 done
6352 IFS=$as_save_IFS
6353 if test -z "$ac_cv_path_lt_DD"; then
6354 :
6355 fi
6356 else
6357 ac_cv_path_lt_DD=$lt_DD
6358 fi
6360 rm -f conftest.i conftest2.i conftest.out
6361 fi
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6363 $as_echo "$ac_cv_path_lt_DD" >&6; }
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6367 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6368 if ${lt_cv_truncate_bin+:} false; then :
6369 $as_echo_n "(cached) " >&6
6370 else
6371 printf 0123456789abcdef0123456789abcdef >conftest.i
6372 cat conftest.i conftest.i >conftest2.i
6373 lt_cv_truncate_bin=
6374 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6375 cmp -s conftest.i conftest.out \
6376 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6377 fi
6378 rm -f conftest.i conftest2.i conftest.out
6379 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6380 fi
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6382 $as_echo "$lt_cv_truncate_bin" >&6; }
6390 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6391 func_cc_basename ()
6392 {
6393 for cc_temp in $*""; do
6394 case $cc_temp in
6395 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6396 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6397 \-*) ;;
6398 *) break;;
6399 esac
6400 done
6401 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6402 }
6404 # Check whether --enable-libtool-lock was given.
6405 if test "${enable_libtool_lock+set}" = set; then :
6406 enableval=$enable_libtool_lock;
6407 fi
6409 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6411 # Some flags need to be propagated to the compiler or linker for good
6412 # libtool support.
6413 case $host in
6414 ia64-*-hpux*)
6415 # Find out what ABI is being produced by ac_compile, and set mode
6416 # options accordingly.
6417 echo 'int i;' > conftest.$ac_ext
6418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6419 (eval $ac_compile) 2>&5
6420 ac_status=$?
6421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6422 test $ac_status = 0; }; then
6423 case `/usr/bin/file conftest.$ac_objext` in
6424 *ELF-32*)
6425 HPUX_IA64_MODE=32
6426 ;;
6427 *ELF-64*)
6428 HPUX_IA64_MODE=64
6429 ;;
6430 esac
6431 fi
6432 rm -rf conftest*
6433 ;;
6434 *-*-irix6*)
6435 # Find out what ABI is being produced by ac_compile, and set linker
6436 # options accordingly.
6437 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6439 (eval $ac_compile) 2>&5
6440 ac_status=$?
6441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6442 test $ac_status = 0; }; then
6443 if test yes = "$lt_cv_prog_gnu_ld"; then
6444 case `/usr/bin/file conftest.$ac_objext` in
6445 *32-bit*)
6446 LD="${LD-ld} -melf32bsmip"
6447 ;;
6448 *N32*)
6449 LD="${LD-ld} -melf32bmipn32"
6450 ;;
6451 *64-bit*)
6452 LD="${LD-ld} -melf64bmip"
6453 ;;
6454 esac
6455 else
6456 case `/usr/bin/file conftest.$ac_objext` in
6457 *32-bit*)
6458 LD="${LD-ld} -32"
6459 ;;
6460 *N32*)
6461 LD="${LD-ld} -n32"
6462 ;;
6463 *64-bit*)
6464 LD="${LD-ld} -64"
6465 ;;
6466 esac
6467 fi
6468 fi
6469 rm -rf conftest*
6470 ;;
6472 mips64*-*linux*)
6473 # Find out what ABI is being produced by ac_compile, and set linker
6474 # options accordingly.
6475 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6477 (eval $ac_compile) 2>&5
6478 ac_status=$?
6479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6480 test $ac_status = 0; }; then
6481 emul=elf
6482 case `/usr/bin/file conftest.$ac_objext` in
6483 *32-bit*)
6484 emul="${emul}32"
6485 ;;
6486 *64-bit*)
6487 emul="${emul}64"
6488 ;;
6489 esac
6490 case `/usr/bin/file conftest.$ac_objext` in
6491 *MSB*)
6492 emul="${emul}btsmip"
6493 ;;
6494 *LSB*)
6495 emul="${emul}ltsmip"
6496 ;;
6497 esac
6498 case `/usr/bin/file conftest.$ac_objext` in
6499 *N32*)
6500 emul="${emul}n32"
6501 ;;
6502 esac
6503 LD="${LD-ld} -m $emul"
6504 fi
6505 rm -rf conftest*
6506 ;;
6508 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6509 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6510 # Find out what ABI is being produced by ac_compile, and set linker
6511 # options accordingly. Note that the listed cases only cover the
6512 # situations where additional linker options are needed (such as when
6513 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6514 # vice versa); the common cases where no linker options are needed do
6515 # not appear in the list.
6516 echo 'int i;' > conftest.$ac_ext
6517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6518 (eval $ac_compile) 2>&5
6519 ac_status=$?
6520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6521 test $ac_status = 0; }; then
6522 case `/usr/bin/file conftest.o` in
6523 *32-bit*)
6524 case $host in
6525 x86_64-*kfreebsd*-gnu)
6526 LD="${LD-ld} -m elf_i386_fbsd"
6527 ;;
6528 x86_64-*linux*)
6529 case `/usr/bin/file conftest.o` in
6530 *x86-64*)
6531 LD="${LD-ld} -m elf32_x86_64"
6532 ;;
6533 *)
6534 LD="${LD-ld} -m elf_i386"
6535 ;;
6536 esac
6537 ;;
6538 powerpc64le-*linux*)
6539 LD="${LD-ld} -m elf32lppclinux"
6540 ;;
6541 powerpc64-*linux*)
6542 LD="${LD-ld} -m elf32ppclinux"
6543 ;;
6544 s390x-*linux*)
6545 LD="${LD-ld} -m elf_s390"
6546 ;;
6547 sparc64-*linux*)
6548 LD="${LD-ld} -m elf32_sparc"
6549 ;;
6550 esac
6551 ;;
6552 *64-bit*)
6553 case $host in
6554 x86_64-*kfreebsd*-gnu)
6555 LD="${LD-ld} -m elf_x86_64_fbsd"
6556 ;;
6557 x86_64-*linux*)
6558 LD="${LD-ld} -m elf_x86_64"
6559 ;;
6560 powerpcle-*linux*)
6561 LD="${LD-ld} -m elf64lppc"
6562 ;;
6563 powerpc-*linux*)
6564 LD="${LD-ld} -m elf64ppc"
6565 ;;
6566 s390*-*linux*|s390*-*tpf*)
6567 LD="${LD-ld} -m elf64_s390"
6568 ;;
6569 sparc*-*linux*)
6570 LD="${LD-ld} -m elf64_sparc"
6571 ;;
6572 esac
6573 ;;
6574 esac
6575 fi
6576 rm -rf conftest*
6577 ;;
6579 *-*-sco3.2v5*)
6580 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6581 SAVE_CFLAGS=$CFLAGS
6582 CFLAGS="$CFLAGS -belf"
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6584 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6585 if ${lt_cv_cc_needs_belf+:} false; then :
6586 $as_echo_n "(cached) " >&6
6587 else
6588 ac_ext=c
6589 ac_cpp='$CPP $CPPFLAGS'
6590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6597 int
6598 main ()
6599 {
6601 ;
6602 return 0;
6603 }
6604 _ACEOF
6605 if ac_fn_c_try_link "$LINENO"; then :
6606 lt_cv_cc_needs_belf=yes
6607 else
6608 lt_cv_cc_needs_belf=no
6609 fi
6610 rm -f core conftest.err conftest.$ac_objext \
6611 conftest$ac_exeext conftest.$ac_ext
6612 ac_ext=c
6613 ac_cpp='$CPP $CPPFLAGS'
6614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6618 fi
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6620 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6621 if test yes != "$lt_cv_cc_needs_belf"; then
6622 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6623 CFLAGS=$SAVE_CFLAGS
6624 fi
6625 ;;
6626 *-*solaris*)
6627 # Find out what ABI is being produced by ac_compile, and set linker
6628 # options accordingly.
6629 echo 'int i;' > conftest.$ac_ext
6630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6631 (eval $ac_compile) 2>&5
6632 ac_status=$?
6633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6634 test $ac_status = 0; }; then
6635 case `/usr/bin/file conftest.o` in
6636 *64-bit*)
6637 case $lt_cv_prog_gnu_ld in
6638 yes*)
6639 case $host in
6640 i?86-*-solaris*|x86_64-*-solaris*)
6641 LD="${LD-ld} -m elf_x86_64"
6642 ;;
6643 sparc*-*-solaris*)
6644 LD="${LD-ld} -m elf64_sparc"
6645 ;;
6646 esac
6647 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6648 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6649 LD=${LD-ld}_sol2
6650 fi
6651 ;;
6652 *)
6653 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6654 LD="${LD-ld} -64"
6655 fi
6656 ;;
6657 esac
6658 ;;
6659 esac
6660 fi
6661 rm -rf conftest*
6662 ;;
6663 esac
6665 need_locks=$enable_libtool_lock
6667 if test -n "$ac_tool_prefix"; then
6668 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6669 set dummy ${ac_tool_prefix}mt; ac_word=$2
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6671 $as_echo_n "checking for $ac_word... " >&6; }
6672 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6673 $as_echo_n "(cached) " >&6
6674 else
6675 if test -n "$MANIFEST_TOOL"; then
6676 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6677 else
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6680 do
6681 IFS=$as_save_IFS
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6685 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 break 2
6688 fi
6689 done
6690 done
6691 IFS=$as_save_IFS
6693 fi
6694 fi
6695 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6696 if test -n "$MANIFEST_TOOL"; then
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6698 $as_echo "$MANIFEST_TOOL" >&6; }
6699 else
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701 $as_echo "no" >&6; }
6702 fi
6705 fi
6706 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6707 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6708 # Extract the first word of "mt", so it can be a program name with args.
6709 set dummy mt; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 if test -n "$ac_ct_MANIFEST_TOOL"; then
6716 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6725 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6728 fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6733 fi
6734 fi
6735 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6736 if test -n "$ac_ct_MANIFEST_TOOL"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6738 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6739 else
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6742 fi
6744 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6745 MANIFEST_TOOL=":"
6746 else
6747 case $cross_compiling:$ac_tool_warned in
6748 yes:)
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6751 ac_tool_warned=yes ;;
6752 esac
6753 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6754 fi
6755 else
6756 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6757 fi
6759 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6761 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6762 if ${lt_cv_path_mainfest_tool+:} false; then :
6763 $as_echo_n "(cached) " >&6
6764 else
6765 lt_cv_path_mainfest_tool=no
6766 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6767 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6768 cat conftest.err >&5
6769 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6770 lt_cv_path_mainfest_tool=yes
6771 fi
6772 rm -f conftest*
6773 fi
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6775 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6776 if test yes != "$lt_cv_path_mainfest_tool"; then
6777 MANIFEST_TOOL=:
6778 fi
6785 case $host_os in
6786 rhapsody* | darwin*)
6787 if test -n "$ac_tool_prefix"; then
6788 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6789 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6791 $as_echo_n "checking for $ac_word... " >&6; }
6792 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 if test -n "$DSYMUTIL"; then
6796 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6797 else
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 for as_dir in $PATH
6800 do
6801 IFS=$as_save_IFS
6802 test -z "$as_dir" && as_dir=.
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6805 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 break 2
6808 fi
6809 done
6810 done
6811 IFS=$as_save_IFS
6813 fi
6814 fi
6815 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6816 if test -n "$DSYMUTIL"; then
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6818 $as_echo "$DSYMUTIL" >&6; }
6819 else
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821 $as_echo "no" >&6; }
6822 fi
6825 fi
6826 if test -z "$ac_cv_prog_DSYMUTIL"; then
6827 ac_ct_DSYMUTIL=$DSYMUTIL
6828 # Extract the first word of "dsymutil", so it can be a program name with args.
6829 set dummy dsymutil; ac_word=$2
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831 $as_echo_n "checking for $ac_word... " >&6; }
6832 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6833 $as_echo_n "(cached) " >&6
6834 else
6835 if test -n "$ac_ct_DSYMUTIL"; then
6836 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6837 else
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 for as_dir in $PATH
6840 do
6841 IFS=$as_save_IFS
6842 test -z "$as_dir" && as_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6845 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 break 2
6848 fi
6849 done
6850 done
6851 IFS=$as_save_IFS
6853 fi
6854 fi
6855 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6856 if test -n "$ac_ct_DSYMUTIL"; then
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6858 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6859 else
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861 $as_echo "no" >&6; }
6862 fi
6864 if test "x$ac_ct_DSYMUTIL" = x; then
6865 DSYMUTIL=":"
6866 else
6867 case $cross_compiling:$ac_tool_warned in
6868 yes:)
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6871 ac_tool_warned=yes ;;
6872 esac
6873 DSYMUTIL=$ac_ct_DSYMUTIL
6874 fi
6875 else
6876 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6877 fi
6879 if test -n "$ac_tool_prefix"; then
6880 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6881 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6883 $as_echo_n "checking for $ac_word... " >&6; }
6884 if ${ac_cv_prog_NMEDIT+:} false; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 if test -n "$NMEDIT"; then
6888 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6889 else
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 for as_dir in $PATH
6892 do
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6897 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 break 2
6900 fi
6901 done
6902 done
6903 IFS=$as_save_IFS
6905 fi
6906 fi
6907 NMEDIT=$ac_cv_prog_NMEDIT
6908 if test -n "$NMEDIT"; then
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6910 $as_echo "$NMEDIT" >&6; }
6911 else
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913 $as_echo "no" >&6; }
6914 fi
6917 fi
6918 if test -z "$ac_cv_prog_NMEDIT"; then
6919 ac_ct_NMEDIT=$NMEDIT
6920 # Extract the first word of "nmedit", so it can be a program name with args.
6921 set dummy nmedit; ac_word=$2
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6923 $as_echo_n "checking for $ac_word... " >&6; }
6924 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6925 $as_echo_n "(cached) " >&6
6926 else
6927 if test -n "$ac_ct_NMEDIT"; then
6928 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6929 else
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 for as_dir in $PATH
6932 do
6933 IFS=$as_save_IFS
6934 test -z "$as_dir" && as_dir=.
6935 for ac_exec_ext in '' $ac_executable_extensions; do
6936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6937 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6939 break 2
6940 fi
6941 done
6942 done
6943 IFS=$as_save_IFS
6945 fi
6946 fi
6947 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6948 if test -n "$ac_ct_NMEDIT"; then
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6950 $as_echo "$ac_ct_NMEDIT" >&6; }
6951 else
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6953 $as_echo "no" >&6; }
6954 fi
6956 if test "x$ac_ct_NMEDIT" = x; then
6957 NMEDIT=":"
6958 else
6959 case $cross_compiling:$ac_tool_warned in
6960 yes:)
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6963 ac_tool_warned=yes ;;
6964 esac
6965 NMEDIT=$ac_ct_NMEDIT
6966 fi
6967 else
6968 NMEDIT="$ac_cv_prog_NMEDIT"
6969 fi
6971 if test -n "$ac_tool_prefix"; then
6972 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6973 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975 $as_echo_n "checking for $ac_word... " >&6; }
6976 if ${ac_cv_prog_LIPO+:} false; then :
6977 $as_echo_n "(cached) " >&6
6978 else
6979 if test -n "$LIPO"; then
6980 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6981 else
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH
6984 do
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6989 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 break 2
6992 fi
6993 done
6994 done
6995 IFS=$as_save_IFS
6997 fi
6998 fi
6999 LIPO=$ac_cv_prog_LIPO
7000 if test -n "$LIPO"; then
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7002 $as_echo "$LIPO" >&6; }
7003 else
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005 $as_echo "no" >&6; }
7006 fi
7009 fi
7010 if test -z "$ac_cv_prog_LIPO"; then
7011 ac_ct_LIPO=$LIPO
7012 # Extract the first word of "lipo", so it can be a program name with args.
7013 set dummy lipo; ac_word=$2
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015 $as_echo_n "checking for $ac_word... " >&6; }
7016 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7017 $as_echo_n "(cached) " >&6
7018 else
7019 if test -n "$ac_ct_LIPO"; then
7020 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7021 else
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 for as_dir in $PATH
7024 do
7025 IFS=$as_save_IFS
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7029 ac_cv_prog_ac_ct_LIPO="lipo"
7030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 break 2
7032 fi
7033 done
7034 done
7035 IFS=$as_save_IFS
7037 fi
7038 fi
7039 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7040 if test -n "$ac_ct_LIPO"; then
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7042 $as_echo "$ac_ct_LIPO" >&6; }
7043 else
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045 $as_echo "no" >&6; }
7046 fi
7048 if test "x$ac_ct_LIPO" = x; then
7049 LIPO=":"
7050 else
7051 case $cross_compiling:$ac_tool_warned in
7052 yes:)
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7055 ac_tool_warned=yes ;;
7056 esac
7057 LIPO=$ac_ct_LIPO
7058 fi
7059 else
7060 LIPO="$ac_cv_prog_LIPO"
7061 fi
7063 if test -n "$ac_tool_prefix"; then
7064 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7065 set dummy ${ac_tool_prefix}otool; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if ${ac_cv_prog_OTOOL+:} false; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 if test -n "$OTOOL"; then
7072 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7073 else
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7076 do
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7084 fi
7085 done
7086 done
7087 IFS=$as_save_IFS
7089 fi
7090 fi
7091 OTOOL=$ac_cv_prog_OTOOL
7092 if test -n "$OTOOL"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7094 $as_echo "$OTOOL" >&6; }
7095 else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 $as_echo "no" >&6; }
7098 fi
7101 fi
7102 if test -z "$ac_cv_prog_OTOOL"; then
7103 ac_ct_OTOOL=$OTOOL
7104 # Extract the first word of "otool", so it can be a program name with args.
7105 set dummy otool; ac_word=$2
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7107 $as_echo_n "checking for $ac_word... " >&6; }
7108 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7109 $as_echo_n "(cached) " >&6
7110 else
7111 if test -n "$ac_ct_OTOOL"; then
7112 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7113 else
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH
7116 do
7117 IFS=$as_save_IFS
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7121 ac_cv_prog_ac_ct_OTOOL="otool"
7122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 break 2
7124 fi
7125 done
7126 done
7127 IFS=$as_save_IFS
7129 fi
7130 fi
7131 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7132 if test -n "$ac_ct_OTOOL"; then
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7134 $as_echo "$ac_ct_OTOOL" >&6; }
7135 else
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137 $as_echo "no" >&6; }
7138 fi
7140 if test "x$ac_ct_OTOOL" = x; then
7141 OTOOL=":"
7142 else
7143 case $cross_compiling:$ac_tool_warned in
7144 yes:)
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7147 ac_tool_warned=yes ;;
7148 esac
7149 OTOOL=$ac_ct_OTOOL
7150 fi
7151 else
7152 OTOOL="$ac_cv_prog_OTOOL"
7153 fi
7155 if test -n "$ac_tool_prefix"; then
7156 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7157 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159 $as_echo_n "checking for $ac_word... " >&6; }
7160 if ${ac_cv_prog_OTOOL64+:} false; then :
7161 $as_echo_n "(cached) " >&6
7162 else
7163 if test -n "$OTOOL64"; then
7164 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7165 else
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 for as_dir in $PATH
7168 do
7169 IFS=$as_save_IFS
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7173 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 break 2
7176 fi
7177 done
7178 done
7179 IFS=$as_save_IFS
7181 fi
7182 fi
7183 OTOOL64=$ac_cv_prog_OTOOL64
7184 if test -n "$OTOOL64"; then
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7186 $as_echo "$OTOOL64" >&6; }
7187 else
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189 $as_echo "no" >&6; }
7190 fi
7193 fi
7194 if test -z "$ac_cv_prog_OTOOL64"; then
7195 ac_ct_OTOOL64=$OTOOL64
7196 # Extract the first word of "otool64", so it can be a program name with args.
7197 set dummy otool64; ac_word=$2
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7199 $as_echo_n "checking for $ac_word... " >&6; }
7200 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7201 $as_echo_n "(cached) " >&6
7202 else
7203 if test -n "$ac_ct_OTOOL64"; then
7204 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7205 else
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207 for as_dir in $PATH
7208 do
7209 IFS=$as_save_IFS
7210 test -z "$as_dir" && as_dir=.
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7213 ac_cv_prog_ac_ct_OTOOL64="otool64"
7214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7215 break 2
7216 fi
7217 done
7218 done
7219 IFS=$as_save_IFS
7221 fi
7222 fi
7223 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7224 if test -n "$ac_ct_OTOOL64"; then
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7226 $as_echo "$ac_ct_OTOOL64" >&6; }
7227 else
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229 $as_echo "no" >&6; }
7230 fi
7232 if test "x$ac_ct_OTOOL64" = x; then
7233 OTOOL64=":"
7234 else
7235 case $cross_compiling:$ac_tool_warned in
7236 yes:)
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7239 ac_tool_warned=yes ;;
7240 esac
7241 OTOOL64=$ac_ct_OTOOL64
7242 fi
7243 else
7244 OTOOL64="$ac_cv_prog_OTOOL64"
7245 fi
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7274 $as_echo_n "checking for -single_module linker flag... " >&6; }
7275 if ${lt_cv_apple_cc_single_mod+:} false; then :
7276 $as_echo_n "(cached) " >&6
7277 else
7278 lt_cv_apple_cc_single_mod=no
7279 if test -z "$LT_MULTI_MODULE"; then
7280 # By default we will add the -single_module flag. You can override
7281 # by either setting the environment variable LT_MULTI_MODULE
7282 # non-empty at configure time, or by adding -multi_module to the
7283 # link flags.
7284 rm -rf libconftest.dylib*
7285 echo "int foo(void){return 1;}" > conftest.c
7286 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7287 -dynamiclib -Wl,-single_module conftest.c" >&5
7288 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7289 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7290 _lt_result=$?
7291 # If there is a non-empty error log, and "single_module"
7292 # appears in it, assume the flag caused a linker warning
7293 if test -s conftest.err && $GREP single_module conftest.err; then
7294 cat conftest.err >&5
7295 # Otherwise, if the output was created with a 0 exit code from
7296 # the compiler, it worked.
7297 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7298 lt_cv_apple_cc_single_mod=yes
7299 else
7300 cat conftest.err >&5
7301 fi
7302 rm -rf libconftest.dylib*
7303 rm -f conftest.*
7304 fi
7305 fi
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7307 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7310 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7311 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7312 $as_echo_n "(cached) " >&6
7313 else
7314 lt_cv_ld_exported_symbols_list=no
7315 save_LDFLAGS=$LDFLAGS
7316 echo "_main" > conftest.sym
7317 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319 /* end confdefs.h. */
7321 int
7322 main ()
7323 {
7325 ;
7326 return 0;
7327 }
7328 _ACEOF
7329 if ac_fn_c_try_link "$LINENO"; then :
7330 lt_cv_ld_exported_symbols_list=yes
7331 else
7332 lt_cv_ld_exported_symbols_list=no
7333 fi
7334 rm -f core conftest.err conftest.$ac_objext \
7335 conftest$ac_exeext conftest.$ac_ext
7336 LDFLAGS=$save_LDFLAGS
7338 fi
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7340 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7343 $as_echo_n "checking for -force_load linker flag... " >&6; }
7344 if ${lt_cv_ld_force_load+:} false; then :
7345 $as_echo_n "(cached) " >&6
7346 else
7347 lt_cv_ld_force_load=no
7348 cat > conftest.c << _LT_EOF
7349 int forced_loaded() { return 2;}
7350 _LT_EOF
7351 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7352 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7353 echo "$AR cru libconftest.a conftest.o" >&5
7354 $AR cru libconftest.a conftest.o 2>&5
7355 echo "$RANLIB libconftest.a" >&5
7356 $RANLIB libconftest.a 2>&5
7357 cat > conftest.c << _LT_EOF
7358 int main() { return 0;}
7359 _LT_EOF
7360 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7361 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7362 _lt_result=$?
7363 if test -s conftest.err && $GREP force_load conftest.err; then
7364 cat conftest.err >&5
7365 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7366 lt_cv_ld_force_load=yes
7367 else
7368 cat conftest.err >&5
7369 fi
7370 rm -f conftest.err libconftest.a conftest conftest.c
7371 rm -rf conftest.dSYM
7373 fi
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7375 $as_echo "$lt_cv_ld_force_load" >&6; }
7376 case $host_os in
7377 rhapsody* | darwin1.[012])
7378 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7379 darwin1.*)
7380 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7381 darwin*) # darwin 5.x on
7382 # if running on 10.5 or later, the deployment target defaults
7383 # to the OS version, if on x86, and 10.4, the deployment
7384 # target defaults to 10.4. Don't you love it?
7385 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7386 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7387 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7388 10.[012][,.]*)
7389 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7390 10.*)
7391 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7392 esac
7393 ;;
7394 esac
7395 if test yes = "$lt_cv_apple_cc_single_mod"; then
7396 _lt_dar_single_mod='$single_module'
7397 fi
7398 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7399 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7400 else
7401 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7402 fi
7403 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7404 _lt_dsymutil='~$DSYMUTIL $lib || :'
7405 else
7406 _lt_dsymutil=
7407 fi
7408 ;;
7409 esac
7411 # func_munge_path_list VARIABLE PATH
7412 # -----------------------------------
7413 # VARIABLE is name of variable containing _space_ separated list of
7414 # directories to be munged by the contents of PATH, which is string
7415 # having a format:
7416 # "DIR[:DIR]:"
7417 # string "DIR[ DIR]" will be prepended to VARIABLE
7418 # ":DIR[:DIR]"
7419 # string "DIR[ DIR]" will be appended to VARIABLE
7420 # "DIRP[:DIRP]::[DIRA:]DIRA"
7421 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7422 # "DIRA[ DIRA]" will be appended to VARIABLE
7423 # "DIR[:DIR]"
7424 # VARIABLE will be replaced by "DIR[ DIR]"
7425 func_munge_path_list ()
7426 {
7427 case x$2 in
7428 x)
7429 ;;
7430 *:)
7431 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7432 ;;
7433 x:*)
7434 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7435 ;;
7436 *::*)
7437 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7438 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7439 ;;
7440 *)
7441 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7442 ;;
7443 esac
7444 }
7446 ac_ext=c
7447 ac_cpp='$CPP $CPPFLAGS'
7448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7452 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7453 # On Suns, sometimes $CPP names a directory.
7454 if test -n "$CPP" && test -d "$CPP"; then
7455 CPP=
7456 fi
7457 if test -z "$CPP"; then
7458 if ${ac_cv_prog_CPP+:} false; then :
7459 $as_echo_n "(cached) " >&6
7460 else
7461 # Double quotes because CPP needs to be expanded
7462 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7463 do
7464 ac_preproc_ok=false
7465 for ac_c_preproc_warn_flag in '' yes
7466 do
7467 # Use a header file that comes with gcc, so configuring glibc
7468 # with a fresh cross-compiler works.
7469 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7470 # <limits.h> exists even on freestanding compilers.
7471 # On the NeXT, cc -E runs the code through the compiler's parser,
7472 # not just through cpp. "Syntax error" is here to catch this case.
7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h. */
7475 #ifdef __STDC__
7476 # include <limits.h>
7477 #else
7478 # include <assert.h>
7479 #endif
7480 Syntax error
7481 _ACEOF
7482 if ac_fn_c_try_cpp "$LINENO"; then :
7484 else
7485 # Broken: fails on valid input.
7486 continue
7487 fi
7488 rm -f conftest.err conftest.i conftest.$ac_ext
7490 # OK, works on sane cases. Now check whether nonexistent headers
7491 # can be detected and how.
7492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7493 /* end confdefs.h. */
7494 #include <ac_nonexistent.h>
7495 _ACEOF
7496 if ac_fn_c_try_cpp "$LINENO"; then :
7497 # Broken: success on invalid input.
7498 continue
7499 else
7500 # Passes both tests.
7501 ac_preproc_ok=:
7502 break
7503 fi
7504 rm -f conftest.err conftest.i conftest.$ac_ext
7506 done
7507 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7508 rm -f conftest.i conftest.err conftest.$ac_ext
7509 if $ac_preproc_ok; then :
7510 break
7511 fi
7513 done
7514 ac_cv_prog_CPP=$CPP
7516 fi
7517 CPP=$ac_cv_prog_CPP
7518 else
7519 ac_cv_prog_CPP=$CPP
7520 fi
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7522 $as_echo "$CPP" >&6; }
7523 ac_preproc_ok=false
7524 for ac_c_preproc_warn_flag in '' yes
7525 do
7526 # Use a header file that comes with gcc, so configuring glibc
7527 # with a fresh cross-compiler works.
7528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7529 # <limits.h> exists even on freestanding compilers.
7530 # On the NeXT, cc -E runs the code through the compiler's parser,
7531 # not just through cpp. "Syntax error" is here to catch this case.
7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7534 #ifdef __STDC__
7535 # include <limits.h>
7536 #else
7537 # include <assert.h>
7538 #endif
7539 Syntax error
7540 _ACEOF
7541 if ac_fn_c_try_cpp "$LINENO"; then :
7543 else
7544 # Broken: fails on valid input.
7545 continue
7546 fi
7547 rm -f conftest.err conftest.i conftest.$ac_ext
7549 # OK, works on sane cases. Now check whether nonexistent headers
7550 # can be detected and how.
7551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552 /* end confdefs.h. */
7553 #include <ac_nonexistent.h>
7554 _ACEOF
7555 if ac_fn_c_try_cpp "$LINENO"; then :
7556 # Broken: success on invalid input.
7557 continue
7558 else
7559 # Passes both tests.
7560 ac_preproc_ok=:
7561 break
7562 fi
7563 rm -f conftest.err conftest.i conftest.$ac_ext
7565 done
7566 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7567 rm -f conftest.i conftest.err conftest.$ac_ext
7568 if $ac_preproc_ok; then :
7570 else
7571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7573 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7574 See \`config.log' for more details" "$LINENO" 5; }
7575 fi
7577 ac_ext=c
7578 ac_cpp='$CPP $CPPFLAGS'
7579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7585 $as_echo_n "checking for ANSI C header files... " >&6; }
7586 if ${ac_cv_header_stdc+:} false; then :
7587 $as_echo_n "(cached) " >&6
7588 else
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7591 #include <stdlib.h>
7592 #include <stdarg.h>
7593 #include <string.h>
7594 #include <float.h>
7596 int
7597 main ()
7598 {
7600 ;
7601 return 0;
7602 }
7603 _ACEOF
7604 if ac_fn_c_try_compile "$LINENO"; then :
7605 ac_cv_header_stdc=yes
7606 else
7607 ac_cv_header_stdc=no
7608 fi
7609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7611 if test $ac_cv_header_stdc = yes; then
7612 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614 /* end confdefs.h. */
7615 #include <string.h>
7617 _ACEOF
7618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7619 $EGREP "memchr" >/dev/null 2>&1; then :
7621 else
7622 ac_cv_header_stdc=no
7623 fi
7624 rm -f conftest*
7626 fi
7628 if test $ac_cv_header_stdc = yes; then
7629 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631 /* end confdefs.h. */
7632 #include <stdlib.h>
7634 _ACEOF
7635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7636 $EGREP "free" >/dev/null 2>&1; then :
7638 else
7639 ac_cv_header_stdc=no
7640 fi
7641 rm -f conftest*
7643 fi
7645 if test $ac_cv_header_stdc = yes; then
7646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7647 if test "$cross_compiling" = yes; then :
7648 :
7649 else
7650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651 /* end confdefs.h. */
7652 #include <ctype.h>
7653 #include <stdlib.h>
7654 #if ((' ' & 0x0FF) == 0x020)
7655 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7656 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7657 #else
7658 # define ISLOWER(c) \
7659 (('a' <= (c) && (c) <= 'i') \
7660 || ('j' <= (c) && (c) <= 'r') \
7661 || ('s' <= (c) && (c) <= 'z'))
7662 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7663 #endif
7665 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7666 int
7667 main ()
7668 {
7669 int i;
7670 for (i = 0; i < 256; i++)
7671 if (XOR (islower (i), ISLOWER (i))
7672 || toupper (i) != TOUPPER (i))
7673 return 2;
7674 return 0;
7675 }
7676 _ACEOF
7677 if ac_fn_c_try_run "$LINENO"; then :
7679 else
7680 ac_cv_header_stdc=no
7681 fi
7682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7683 conftest.$ac_objext conftest.beam conftest.$ac_ext
7684 fi
7686 fi
7687 fi
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7689 $as_echo "$ac_cv_header_stdc" >&6; }
7690 if test $ac_cv_header_stdc = yes; then
7692 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7694 fi
7696 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7697 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7698 inttypes.h stdint.h unistd.h
7699 do :
7700 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7701 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7702 "
7703 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7704 cat >>confdefs.h <<_ACEOF
7705 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7706 _ACEOF
7708 fi
7710 done
7713 for ac_header in dlfcn.h
7714 do :
7715 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7716 "
7717 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7718 cat >>confdefs.h <<_ACEOF
7719 #define HAVE_DLFCN_H 1
7720 _ACEOF
7722 fi
7724 done
7730 # Set options
7734 enable_dlopen=no
7737 enable_win32_dll=no
7740 # Check whether --enable-shared was given.
7741 if test "${enable_shared+set}" = set; then :
7742 enableval=$enable_shared; p=${PACKAGE-default}
7743 case $enableval in
7744 yes) enable_shared=yes ;;
7745 no) enable_shared=no ;;
7746 *)
7747 enable_shared=no
7748 # Look at the argument we got. We use all the common list separators.
7749 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7750 for pkg in $enableval; do
7751 IFS=$lt_save_ifs
7752 if test "X$pkg" = "X$p"; then
7753 enable_shared=yes
7754 fi
7755 done
7756 IFS=$lt_save_ifs
7757 ;;
7758 esac
7759 else
7760 enable_shared=yes
7761 fi
7771 # Check whether --enable-static was given.
7772 if test "${enable_static+set}" = set; then :
7773 enableval=$enable_static; p=${PACKAGE-default}
7774 case $enableval in
7775 yes) enable_static=yes ;;
7776 no) enable_static=no ;;
7777 *)
7778 enable_static=no
7779 # Look at the argument we got. We use all the common list separators.
7780 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7781 for pkg in $enableval; do
7782 IFS=$lt_save_ifs
7783 if test "X$pkg" = "X$p"; then
7784 enable_static=yes
7785 fi
7786 done
7787 IFS=$lt_save_ifs
7788 ;;
7789 esac
7790 else
7791 enable_static=yes
7792 fi
7803 # Check whether --with-pic was given.
7804 if test "${with_pic+set}" = set; then :
7805 withval=$with_pic; lt_p=${PACKAGE-default}
7806 case $withval in
7807 yes|no) pic_mode=$withval ;;
7808 *)
7809 pic_mode=default
7810 # Look at the argument we got. We use all the common list separators.
7811 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7812 for lt_pkg in $withval; do
7813 IFS=$lt_save_ifs
7814 if test "X$lt_pkg" = "X$lt_p"; then
7815 pic_mode=yes
7816 fi
7817 done
7818 IFS=$lt_save_ifs
7819 ;;
7820 esac
7821 else
7822 pic_mode=default
7823 fi
7832 # Check whether --enable-fast-install was given.
7833 if test "${enable_fast_install+set}" = set; then :
7834 enableval=$enable_fast_install; p=${PACKAGE-default}
7835 case $enableval in
7836 yes) enable_fast_install=yes ;;
7837 no) enable_fast_install=no ;;
7838 *)
7839 enable_fast_install=no
7840 # Look at the argument we got. We use all the common list separators.
7841 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7842 for pkg in $enableval; do
7843 IFS=$lt_save_ifs
7844 if test "X$pkg" = "X$p"; then
7845 enable_fast_install=yes
7846 fi
7847 done
7848 IFS=$lt_save_ifs
7849 ;;
7850 esac
7851 else
7852 enable_fast_install=yes
7853 fi
7862 shared_archive_member_spec=
7863 case $host,$enable_shared in
7864 power*-*-aix[5-9]*,yes)
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7866 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7868 # Check whether --with-aix-soname was given.
7869 if test "${with_aix_soname+set}" = set; then :
7870 withval=$with_aix_soname; case $withval in
7871 aix|svr4|both)
7872 ;;
7873 *)
7874 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7875 ;;
7876 esac
7877 lt_cv_with_aix_soname=$with_aix_soname
7878 else
7879 if ${lt_cv_with_aix_soname+:} false; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 lt_cv_with_aix_soname=aix
7883 fi
7885 with_aix_soname=$lt_cv_with_aix_soname
7886 fi
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7889 $as_echo "$with_aix_soname" >&6; }
7890 if test aix != "$with_aix_soname"; then
7891 # For the AIX way of multilib, we name the shared archive member
7892 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7893 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7894 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7895 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7896 if test 64 = "${OBJECT_MODE-32}"; then
7897 shared_archive_member_spec=shr_64
7898 else
7899 shared_archive_member_spec=shr
7900 fi
7901 fi
7902 ;;
7903 *)
7904 with_aix_soname=aix
7905 ;;
7906 esac
7917 # This can be used to rebuild libtool when needed
7918 LIBTOOL_DEPS=$ltmain
7920 # Always use our own libtool.
7921 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7952 test -z "$LN_S" && LN_S="ln -s"
7967 if test -n "${ZSH_VERSION+set}"; then
7968 setopt NO_GLOB_SUBST
7969 fi
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7972 $as_echo_n "checking for objdir... " >&6; }
7973 if ${lt_cv_objdir+:} false; then :
7974 $as_echo_n "(cached) " >&6
7975 else
7976 rm -f .libs 2>/dev/null
7977 mkdir .libs 2>/dev/null
7978 if test -d .libs; then
7979 lt_cv_objdir=.libs
7980 else
7981 # MS-DOS does not allow filenames that begin with a dot.
7982 lt_cv_objdir=_libs
7983 fi
7984 rmdir .libs 2>/dev/null
7985 fi
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7987 $as_echo "$lt_cv_objdir" >&6; }
7988 objdir=$lt_cv_objdir
7994 cat >>confdefs.h <<_ACEOF
7995 #define LT_OBJDIR "$lt_cv_objdir/"
7996 _ACEOF
8001 case $host_os in
8002 aix3*)
8003 # AIX sometimes has problems with the GCC collect2 program. For some
8004 # reason, if we set the COLLECT_NAMES environment variable, the problems
8005 # vanish in a puff of smoke.
8006 if test set != "${COLLECT_NAMES+set}"; then
8007 COLLECT_NAMES=
8008 export COLLECT_NAMES
8009 fi
8010 ;;
8011 esac
8013 # Global variables:
8014 ofile=libtool
8015 can_build_shared=yes
8017 # All known linkers require a '.a' archive for static linking (except MSVC,
8018 # which needs '.lib').
8019 libext=a
8021 with_gnu_ld=$lt_cv_prog_gnu_ld
8023 old_CC=$CC
8024 old_CFLAGS=$CFLAGS
8026 # Set sane defaults for various variables
8027 test -z "$CC" && CC=cc
8028 test -z "$LTCC" && LTCC=$CC
8029 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8030 test -z "$LD" && LD=ld
8031 test -z "$ac_objext" && ac_objext=o
8033 func_cc_basename $compiler
8034 cc_basename=$func_cc_basename_result
8037 # Only perform the check for file, if the check method requires it
8038 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8039 case $deplibs_check_method in
8040 file_magic*)
8041 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8043 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8044 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 case $MAGIC_CMD in
8048 [\\/*] | ?:[\\/]*)
8049 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8050 ;;
8051 *)
8052 lt_save_MAGIC_CMD=$MAGIC_CMD
8053 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8054 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8055 for ac_dir in $ac_dummy; do
8056 IFS=$lt_save_ifs
8057 test -z "$ac_dir" && ac_dir=.
8058 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8059 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8060 if test -n "$file_magic_test_file"; then
8061 case $deplibs_check_method in
8062 "file_magic "*)
8063 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8064 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8065 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8066 $EGREP "$file_magic_regex" > /dev/null; then
8067 :
8068 else
8069 cat <<_LT_EOF 1>&2
8071 *** Warning: the command libtool uses to detect shared libraries,
8072 *** $file_magic_cmd, produces output that libtool cannot recognize.
8073 *** The result is that libtool may fail to recognize shared libraries
8074 *** as such. This will affect the creation of libtool libraries that
8075 *** depend on shared libraries, but programs linked with such libtool
8076 *** libraries will work regardless of this problem. Nevertheless, you
8077 *** may want to report the problem to your system manager and/or to
8078 *** bug-libtool@gnu.org
8080 _LT_EOF
8081 fi ;;
8082 esac
8083 fi
8084 break
8085 fi
8086 done
8087 IFS=$lt_save_ifs
8088 MAGIC_CMD=$lt_save_MAGIC_CMD
8089 ;;
8090 esac
8091 fi
8093 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8094 if test -n "$MAGIC_CMD"; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8096 $as_echo "$MAGIC_CMD" >&6; }
8097 else
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 $as_echo "no" >&6; }
8100 fi
8106 if test -z "$lt_cv_path_MAGIC_CMD"; then
8107 if test -n "$ac_tool_prefix"; then
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8109 $as_echo_n "checking for file... " >&6; }
8110 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 case $MAGIC_CMD in
8114 [\\/*] | ?:[\\/]*)
8115 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8116 ;;
8117 *)
8118 lt_save_MAGIC_CMD=$MAGIC_CMD
8119 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8120 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8121 for ac_dir in $ac_dummy; do
8122 IFS=$lt_save_ifs
8123 test -z "$ac_dir" && ac_dir=.
8124 if test -f "$ac_dir/file"; then
8125 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8126 if test -n "$file_magic_test_file"; then
8127 case $deplibs_check_method in
8128 "file_magic "*)
8129 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8130 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8131 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8132 $EGREP "$file_magic_regex" > /dev/null; then
8133 :
8134 else
8135 cat <<_LT_EOF 1>&2
8137 *** Warning: the command libtool uses to detect shared libraries,
8138 *** $file_magic_cmd, produces output that libtool cannot recognize.
8139 *** The result is that libtool may fail to recognize shared libraries
8140 *** as such. This will affect the creation of libtool libraries that
8141 *** depend on shared libraries, but programs linked with such libtool
8142 *** libraries will work regardless of this problem. Nevertheless, you
8143 *** may want to report the problem to your system manager and/or to
8144 *** bug-libtool@gnu.org
8146 _LT_EOF
8147 fi ;;
8148 esac
8149 fi
8150 break
8151 fi
8152 done
8153 IFS=$lt_save_ifs
8154 MAGIC_CMD=$lt_save_MAGIC_CMD
8155 ;;
8156 esac
8157 fi
8159 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8160 if test -n "$MAGIC_CMD"; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8162 $as_echo "$MAGIC_CMD" >&6; }
8163 else
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165 $as_echo "no" >&6; }
8166 fi
8169 else
8170 MAGIC_CMD=:
8171 fi
8172 fi
8174 fi
8175 ;;
8176 esac
8178 # Use C for the default configuration in the libtool script
8180 lt_save_CC=$CC
8181 ac_ext=c
8182 ac_cpp='$CPP $CPPFLAGS'
8183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8188 # Source file extension for C test sources.
8189 ac_ext=c
8191 # Object file extension for compiled C test sources.
8192 objext=o
8193 objext=$objext
8195 # Code to be used in simple compile tests
8196 lt_simple_compile_test_code="int some_variable = 0;"
8198 # Code to be used in simple link tests
8199 lt_simple_link_test_code='int main(){return(0);}'
8207 # If no C compiler was specified, use CC.
8208 LTCC=${LTCC-"$CC"}
8210 # If no C compiler flags were specified, use CFLAGS.
8211 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8213 # Allow CC to be a program name with arguments.
8214 compiler=$CC
8216 # Save the default compiler, since it gets overwritten when the other
8217 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8218 compiler_DEFAULT=$CC
8220 # save warnings/boilerplate of simple test code
8221 ac_outfile=conftest.$ac_objext
8222 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8223 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8224 _lt_compiler_boilerplate=`cat conftest.err`
8225 $RM conftest*
8227 ac_outfile=conftest.$ac_objext
8228 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8229 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8230 _lt_linker_boilerplate=`cat conftest.err`
8231 $RM -r conftest*
8234 if test -n "$compiler"; then
8236 lt_prog_compiler_no_builtin_flag=
8238 if test yes = "$GCC"; then
8239 case $cc_basename in
8240 nvcc*)
8241 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8242 *)
8243 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8244 esac
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8247 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8248 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8249 $as_echo_n "(cached) " >&6
8250 else
8251 lt_cv_prog_compiler_rtti_exceptions=no
8252 ac_outfile=conftest.$ac_objext
8253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8254 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8255 # Insert the option either (1) after the last *FLAGS variable, or
8256 # (2) before a word containing "conftest.", or (3) at the end.
8257 # Note that $ac_compile itself does not contain backslashes and begins
8258 # with a dollar sign (not a hyphen), so the echo should work correctly.
8259 # The option is referenced via a variable to avoid confusing sed.
8260 lt_compile=`echo "$ac_compile" | $SED \
8261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8263 -e 's:$: $lt_compiler_flag:'`
8264 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8265 (eval "$lt_compile" 2>conftest.err)
8266 ac_status=$?
8267 cat conftest.err >&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 if (exit $ac_status) && test -s "$ac_outfile"; then
8270 # The compiler can only warn and ignore the option if not recognized
8271 # So say no if there are warnings other than the usual output.
8272 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8274 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8275 lt_cv_prog_compiler_rtti_exceptions=yes
8276 fi
8277 fi
8278 $RM conftest*
8280 fi
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8282 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8284 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8285 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8286 else
8287 :
8288 fi
8290 fi
8297 lt_prog_compiler_wl=
8298 lt_prog_compiler_pic=
8299 lt_prog_compiler_static=
8302 if test yes = "$GCC"; then
8303 lt_prog_compiler_wl='-Wl,'
8304 lt_prog_compiler_static='-static'
8306 case $host_os in
8307 aix*)
8308 # All AIX code is PIC.
8309 if test ia64 = "$host_cpu"; then
8310 # AIX 5 now supports IA64 processor
8311 lt_prog_compiler_static='-Bstatic'
8312 fi
8313 lt_prog_compiler_pic='-fPIC'
8314 ;;
8316 amigaos*)
8317 case $host_cpu in
8318 powerpc)
8319 # see comment about AmigaOS4 .so support
8320 lt_prog_compiler_pic='-fPIC'
8321 ;;
8322 m68k)
8323 # FIXME: we need at least 68020 code to build shared libraries, but
8324 # adding the '-m68020' flag to GCC prevents building anything better,
8325 # like '-m68040'.
8326 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8327 ;;
8328 esac
8329 ;;
8331 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8332 # PIC is the default for these OSes.
8333 ;;
8335 mingw* | cygwin* | pw32* | os2* | cegcc*)
8336 # This hack is so that the source file can tell whether it is being
8337 # built for inclusion in a dll (and should export symbols for example).
8338 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8339 # (--disable-auto-import) libraries
8340 lt_prog_compiler_pic='-DDLL_EXPORT'
8341 case $host_os in
8342 os2*)
8343 lt_prog_compiler_static='$wl-static'
8344 ;;
8345 esac
8346 ;;
8348 darwin* | rhapsody*)
8349 # PIC is the default on this platform
8350 # Common symbols not allowed in MH_DYLIB files
8351 lt_prog_compiler_pic='-fno-common'
8352 ;;
8354 haiku*)
8355 # PIC is the default for Haiku.
8356 # The "-static" flag exists, but is broken.
8357 lt_prog_compiler_static=
8358 ;;
8360 hpux*)
8361 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8362 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8363 # sets the default TLS model and affects inlining.
8364 case $host_cpu in
8365 hppa*64*)
8366 # +Z the default
8367 ;;
8368 *)
8369 lt_prog_compiler_pic='-fPIC'
8370 ;;
8371 esac
8372 ;;
8374 interix[3-9]*)
8375 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8376 # Instead, we relocate shared libraries at runtime.
8377 ;;
8379 msdosdjgpp*)
8380 # Just because we use GCC doesn't mean we suddenly get shared libraries
8381 # on systems that don't support them.
8382 lt_prog_compiler_can_build_shared=no
8383 enable_shared=no
8384 ;;
8386 *nto* | *qnx*)
8387 # QNX uses GNU C++, but need to define -shared option too, otherwise
8388 # it will coredump.
8389 lt_prog_compiler_pic='-fPIC -shared'
8390 ;;
8392 sysv4*MP*)
8393 if test -d /usr/nec; then
8394 lt_prog_compiler_pic=-Kconform_pic
8395 fi
8396 ;;
8398 *)
8399 lt_prog_compiler_pic='-fPIC'
8400 ;;
8401 esac
8403 case $cc_basename in
8404 nvcc*) # Cuda Compiler Driver 2.2
8405 lt_prog_compiler_wl='-Xlinker '
8406 if test -n "$lt_prog_compiler_pic"; then
8407 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8408 fi
8409 ;;
8410 esac
8411 else
8412 # PORTME Check for flag to pass linker flags through the system compiler.
8413 case $host_os in
8414 aix*)
8415 lt_prog_compiler_wl='-Wl,'
8416 if test ia64 = "$host_cpu"; then
8417 # AIX 5 now supports IA64 processor
8418 lt_prog_compiler_static='-Bstatic'
8419 else
8420 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8421 fi
8422 ;;
8424 darwin* | rhapsody*)
8425 # PIC is the default on this platform
8426 # Common symbols not allowed in MH_DYLIB files
8427 lt_prog_compiler_pic='-fno-common'
8428 case $cc_basename in
8429 nagfor*)
8430 # NAG Fortran compiler
8431 lt_prog_compiler_wl='-Wl,-Wl,,'
8432 lt_prog_compiler_pic='-PIC'
8433 lt_prog_compiler_static='-Bstatic'
8434 ;;
8435 esac
8436 ;;
8438 mingw* | cygwin* | pw32* | os2* | cegcc*)
8439 # This hack is so that the source file can tell whether it is being
8440 # built for inclusion in a dll (and should export symbols for example).
8441 lt_prog_compiler_pic='-DDLL_EXPORT'
8442 case $host_os in
8443 os2*)
8444 lt_prog_compiler_static='$wl-static'
8445 ;;
8446 esac
8447 ;;
8449 hpux9* | hpux10* | hpux11*)
8450 lt_prog_compiler_wl='-Wl,'
8451 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8452 # not for PA HP-UX.
8453 case $host_cpu in
8454 hppa*64*|ia64*)
8455 # +Z the default
8456 ;;
8457 *)
8458 lt_prog_compiler_pic='+Z'
8459 ;;
8460 esac
8461 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8462 lt_prog_compiler_static='$wl-a ${wl}archive'
8463 ;;
8465 irix5* | irix6* | nonstopux*)
8466 lt_prog_compiler_wl='-Wl,'
8467 # PIC (with -KPIC) is the default.
8468 lt_prog_compiler_static='-non_shared'
8469 ;;
8471 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8472 case $cc_basename in
8473 # old Intel for x86_64, which still supported -KPIC.
8474 ecc*)
8475 lt_prog_compiler_wl='-Wl,'
8476 lt_prog_compiler_pic='-KPIC'
8477 lt_prog_compiler_static='-static'
8478 ;;
8479 # icc used to be incompatible with GCC.
8480 # ICC 10 doesn't accept -KPIC any more.
8481 icc* | ifort*)
8482 lt_prog_compiler_wl='-Wl,'
8483 lt_prog_compiler_pic='-fPIC'
8484 lt_prog_compiler_static='-static'
8485 ;;
8486 # Lahey Fortran 8.1.
8487 lf95*)
8488 lt_prog_compiler_wl='-Wl,'
8489 lt_prog_compiler_pic='--shared'
8490 lt_prog_compiler_static='--static'
8491 ;;
8492 nagfor*)
8493 # NAG Fortran compiler
8494 lt_prog_compiler_wl='-Wl,-Wl,,'
8495 lt_prog_compiler_pic='-PIC'
8496 lt_prog_compiler_static='-Bstatic'
8497 ;;
8498 tcc*)
8499 # Fabrice Bellard et al's Tiny C Compiler
8500 lt_prog_compiler_wl='-Wl,'
8501 lt_prog_compiler_pic='-fPIC'
8502 lt_prog_compiler_static='-static'
8503 ;;
8504 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8505 # Portland Group compilers (*not* the Pentium gcc compiler,
8506 # which looks to be a dead project)
8507 lt_prog_compiler_wl='-Wl,'
8508 lt_prog_compiler_pic='-fpic'
8509 lt_prog_compiler_static='-Bstatic'
8510 ;;
8511 ccc*)
8512 lt_prog_compiler_wl='-Wl,'
8513 # All Alpha code is PIC.
8514 lt_prog_compiler_static='-non_shared'
8515 ;;
8516 xl* | bgxl* | bgf* | mpixl*)
8517 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8518 lt_prog_compiler_wl='-Wl,'
8519 lt_prog_compiler_pic='-qpic'
8520 lt_prog_compiler_static='-qstaticlink'
8521 ;;
8522 *)
8523 case `$CC -V 2>&1 | sed 5q` in
8524 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8525 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8526 lt_prog_compiler_pic='-KPIC'
8527 lt_prog_compiler_static='-Bstatic'
8528 lt_prog_compiler_wl=''
8529 ;;
8530 *Sun\ F* | *Sun*Fortran*)
8531 lt_prog_compiler_pic='-KPIC'
8532 lt_prog_compiler_static='-Bstatic'
8533 lt_prog_compiler_wl='-Qoption ld '
8534 ;;
8535 *Sun\ C*)
8536 # Sun C 5.9
8537 lt_prog_compiler_pic='-KPIC'
8538 lt_prog_compiler_static='-Bstatic'
8539 lt_prog_compiler_wl='-Wl,'
8540 ;;
8541 *Intel*\ [CF]*Compiler*)
8542 lt_prog_compiler_wl='-Wl,'
8543 lt_prog_compiler_pic='-fPIC'
8544 lt_prog_compiler_static='-static'
8545 ;;
8546 *Portland\ Group*)
8547 lt_prog_compiler_wl='-Wl,'
8548 lt_prog_compiler_pic='-fpic'
8549 lt_prog_compiler_static='-Bstatic'
8550 ;;
8551 esac
8552 ;;
8553 esac
8554 ;;
8556 newsos6)
8557 lt_prog_compiler_pic='-KPIC'
8558 lt_prog_compiler_static='-Bstatic'
8559 ;;
8561 *nto* | *qnx*)
8562 # QNX uses GNU C++, but need to define -shared option too, otherwise
8563 # it will coredump.
8564 lt_prog_compiler_pic='-fPIC -shared'
8565 ;;
8567 osf3* | osf4* | osf5*)
8568 lt_prog_compiler_wl='-Wl,'
8569 # All OSF/1 code is PIC.
8570 lt_prog_compiler_static='-non_shared'
8571 ;;
8573 rdos*)
8574 lt_prog_compiler_static='-non_shared'
8575 ;;
8577 solaris*)
8578 lt_prog_compiler_pic='-KPIC'
8579 lt_prog_compiler_static='-Bstatic'
8580 case $cc_basename in
8581 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8582 lt_prog_compiler_wl='-Qoption ld ';;
8583 *)
8584 lt_prog_compiler_wl='-Wl,';;
8585 esac
8586 ;;
8588 sunos4*)
8589 lt_prog_compiler_wl='-Qoption ld '
8590 lt_prog_compiler_pic='-PIC'
8591 lt_prog_compiler_static='-Bstatic'
8592 ;;
8594 sysv4 | sysv4.2uw2* | sysv4.3*)
8595 lt_prog_compiler_wl='-Wl,'
8596 lt_prog_compiler_pic='-KPIC'
8597 lt_prog_compiler_static='-Bstatic'
8598 ;;
8600 sysv4*MP*)
8601 if test -d /usr/nec; then
8602 lt_prog_compiler_pic='-Kconform_pic'
8603 lt_prog_compiler_static='-Bstatic'
8604 fi
8605 ;;
8607 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8608 lt_prog_compiler_wl='-Wl,'
8609 lt_prog_compiler_pic='-KPIC'
8610 lt_prog_compiler_static='-Bstatic'
8611 ;;
8613 unicos*)
8614 lt_prog_compiler_wl='-Wl,'
8615 lt_prog_compiler_can_build_shared=no
8616 ;;
8618 uts4*)
8619 lt_prog_compiler_pic='-pic'
8620 lt_prog_compiler_static='-Bstatic'
8621 ;;
8623 *)
8624 lt_prog_compiler_can_build_shared=no
8625 ;;
8626 esac
8627 fi
8629 case $host_os in
8630 # For platforms that do not support PIC, -DPIC is meaningless:
8631 *djgpp*)
8632 lt_prog_compiler_pic=
8633 ;;
8634 *)
8635 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8636 ;;
8637 esac
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8640 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8641 if ${lt_cv_prog_compiler_pic+:} false; then :
8642 $as_echo_n "(cached) " >&6
8643 else
8644 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8645 fi
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8647 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8648 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8650 #
8651 # Check to make sure the PIC flag actually works.
8652 #
8653 if test -n "$lt_prog_compiler_pic"; then
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8655 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8656 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8657 $as_echo_n "(cached) " >&6
8658 else
8659 lt_cv_prog_compiler_pic_works=no
8660 ac_outfile=conftest.$ac_objext
8661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8662 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8663 # Insert the option either (1) after the last *FLAGS variable, or
8664 # (2) before a word containing "conftest.", or (3) at the end.
8665 # Note that $ac_compile itself does not contain backslashes and begins
8666 # with a dollar sign (not a hyphen), so the echo should work correctly.
8667 # The option is referenced via a variable to avoid confusing sed.
8668 lt_compile=`echo "$ac_compile" | $SED \
8669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8671 -e 's:$: $lt_compiler_flag:'`
8672 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8673 (eval "$lt_compile" 2>conftest.err)
8674 ac_status=$?
8675 cat conftest.err >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 if (exit $ac_status) && test -s "$ac_outfile"; then
8678 # The compiler can only warn and ignore the option if not recognized
8679 # So say no if there are warnings other than the usual output.
8680 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8682 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8683 lt_cv_prog_compiler_pic_works=yes
8684 fi
8685 fi
8686 $RM conftest*
8688 fi
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8690 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8692 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8693 case $lt_prog_compiler_pic in
8694 "" | " "*) ;;
8695 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8696 esac
8697 else
8698 lt_prog_compiler_pic=
8699 lt_prog_compiler_can_build_shared=no
8700 fi
8702 fi
8714 #
8715 # Check to make sure the static flag actually works.
8716 #
8717 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8719 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8720 if ${lt_cv_prog_compiler_static_works+:} false; then :
8721 $as_echo_n "(cached) " >&6
8722 else
8723 lt_cv_prog_compiler_static_works=no
8724 save_LDFLAGS=$LDFLAGS
8725 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8726 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8727 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8728 # The linker can only warn and ignore the option if not recognized
8729 # So say no if there are warnings
8730 if test -s conftest.err; then
8731 # Append any errors to the config.log.
8732 cat conftest.err 1>&5
8733 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8734 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8735 if diff conftest.exp conftest.er2 >/dev/null; then
8736 lt_cv_prog_compiler_static_works=yes
8737 fi
8738 else
8739 lt_cv_prog_compiler_static_works=yes
8740 fi
8741 fi
8742 $RM -r conftest*
8743 LDFLAGS=$save_LDFLAGS
8745 fi
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8747 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8749 if test yes = "$lt_cv_prog_compiler_static_works"; then
8750 :
8751 else
8752 lt_prog_compiler_static=
8753 fi
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8762 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8763 if ${lt_cv_prog_compiler_c_o+:} false; then :
8764 $as_echo_n "(cached) " >&6
8765 else
8766 lt_cv_prog_compiler_c_o=no
8767 $RM -r conftest 2>/dev/null
8768 mkdir conftest
8769 cd conftest
8770 mkdir out
8771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8773 lt_compiler_flag="-o out/conftest2.$ac_objext"
8774 # Insert the option either (1) after the last *FLAGS variable, or
8775 # (2) before a word containing "conftest.", or (3) at the end.
8776 # Note that $ac_compile itself does not contain backslashes and begins
8777 # with a dollar sign (not a hyphen), so the echo should work correctly.
8778 lt_compile=`echo "$ac_compile" | $SED \
8779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8781 -e 's:$: $lt_compiler_flag:'`
8782 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8783 (eval "$lt_compile" 2>out/conftest.err)
8784 ac_status=$?
8785 cat out/conftest.err >&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8788 then
8789 # The compiler can only warn and ignore the option if not recognized
8790 # So say no if there are warnings
8791 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8792 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8793 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8794 lt_cv_prog_compiler_c_o=yes
8795 fi
8796 fi
8797 chmod u+w . 2>&5
8798 $RM conftest*
8799 # SGI C++ compiler will create directory out/ii_files/ for
8800 # template instantiation
8801 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8802 $RM out/* && rmdir out
8803 cd ..
8804 $RM -r conftest
8805 $RM conftest*
8807 fi
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8809 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
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
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*
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; }
8869 hard_links=nottested
8870 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8871 # do not overwrite the value of need_locks provided by the user
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8873 $as_echo_n "checking if we can lock with hard links... " >&6; }
8874 hard_links=yes
8875 $RM conftest*
8876 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8877 touch conftest.a
8878 ln conftest.a conftest.b 2>&5 || hard_links=no
8879 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8881 $as_echo "$hard_links" >&6; }
8882 if test no = "$hard_links"; then
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8884 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8885 need_locks=warn
8886 fi
8887 else
8888 need_locks=no
8889 fi
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8897 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8899 runpath_var=
8900 allow_undefined_flag=
8901 always_export_symbols=no
8902 archive_cmds=
8903 archive_expsym_cmds=
8904 compiler_needs_object=no
8905 enable_shared_with_static_runtimes=no
8906 export_dynamic_flag_spec=
8907 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8908 hardcode_automatic=no
8909 hardcode_direct=no
8910 hardcode_direct_absolute=no
8911 hardcode_libdir_flag_spec=
8912 hardcode_libdir_separator=
8913 hardcode_minus_L=no
8914 hardcode_shlibpath_var=unsupported
8915 inherit_rpath=no
8916 link_all_deplibs=unknown
8917 module_cmds=
8918 module_expsym_cmds=
8919 old_archive_from_new_cmds=
8920 old_archive_from_expsyms_cmds=
8921 thread_safe_flag_spec=
8922 whole_archive_flag_spec=
8923 # include_expsyms should be a list of space-separated symbols to be *always*
8924 # included in the symbol list
8925 include_expsyms=
8926 # exclude_expsyms can be an extended regexp of symbols to exclude
8927 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8928 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8929 # as well as any symbol that contains 'd'.
8930 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8931 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8932 # platforms (ab)use it in PIC code, but their linkers get confused if
8933 # the symbol is explicitly referenced. Since portable code cannot
8934 # rely on this symbol name, it's probably fine to never include it in
8935 # preloaded symbol tables.
8936 # Exclude shared library initialization/finalization symbols.
8937 extract_expsyms_cmds=
8939 case $host_os in
8940 cygwin* | mingw* | pw32* | cegcc*)
8941 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8942 # When not using gcc, we currently assume that we are using
8943 # Microsoft Visual C++.
8944 if test yes != "$GCC"; then
8945 with_gnu_ld=no
8946 fi
8947 ;;
8948 interix*)
8949 # we just hope/assume this is gcc and not c89 (= MSVC++)
8950 with_gnu_ld=yes
8951 ;;
8952 openbsd* | bitrig*)
8953 with_gnu_ld=no
8954 ;;
8955 linux* | k*bsd*-gnu | gnu*)
8956 link_all_deplibs=no
8957 ;;
8958 esac
8960 ld_shlibs=yes
8962 # On some targets, GNU ld is compatible enough with the native linker
8963 # that we're better off using the native interface for both.
8964 lt_use_gnu_ld_interface=no
8965 if test yes = "$with_gnu_ld"; then
8966 case $host_os in
8967 aix*)
8968 # The AIX port of GNU ld has always aspired to compatibility
8969 # with the native linker. However, as the warning in the GNU ld
8970 # block says, versions before 2.19.5* couldn't really create working
8971 # shared libraries, regardless of the interface used.
8972 case `$LD -v 2>&1` in
8973 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8974 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8975 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8976 *)
8977 lt_use_gnu_ld_interface=yes
8978 ;;
8979 esac
8980 ;;
8981 *)
8982 lt_use_gnu_ld_interface=yes
8983 ;;
8984 esac
8985 fi
8987 if test yes = "$lt_use_gnu_ld_interface"; then
8988 # If archive_cmds runs LD, not CC, wlarc should be empty
8989 wlarc='$wl'
8991 # Set some defaults for GNU ld with shared library support. These
8992 # are reset later if shared libraries are not supported. Putting them
8993 # here allows them to be overridden if necessary.
8994 runpath_var=LD_RUN_PATH
8995 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8996 export_dynamic_flag_spec='$wl--export-dynamic'
8997 # ancient GNU ld didn't support --whole-archive et. al.
8998 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8999 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9000 else
9001 whole_archive_flag_spec=
9002 fi
9003 supports_anon_versioning=no
9004 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9005 *GNU\ gold*) supports_anon_versioning=yes ;;
9006 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9007 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9008 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9009 *\ 2.11.*) ;; # other 2.11 versions
9010 *) supports_anon_versioning=yes ;;
9011 esac
9013 # See if GNU ld supports shared libraries.
9014 case $host_os in
9015 aix[3-9]*)
9016 # On AIX/PPC, the GNU linker is very broken
9017 if test ia64 != "$host_cpu"; then
9018 ld_shlibs=no
9019 cat <<_LT_EOF 1>&2
9021 *** Warning: the GNU linker, at least up to release 2.19, is reported
9022 *** to be unable to reliably create shared libraries on AIX.
9023 *** Therefore, libtool is disabling shared libraries support. If you
9024 *** really care for shared libraries, you may want to install binutils
9025 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9026 *** You will then need to restart the configuration process.
9028 _LT_EOF
9029 fi
9030 ;;
9032 amigaos*)
9033 case $host_cpu in
9034 powerpc)
9035 # see comment about AmigaOS4 .so support
9036 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9037 archive_expsym_cmds=''
9038 ;;
9039 m68k)
9040 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)'
9041 hardcode_libdir_flag_spec='-L$libdir'
9042 hardcode_minus_L=yes
9043 ;;
9044 esac
9045 ;;
9047 beos*)
9048 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9049 allow_undefined_flag=unsupported
9050 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9051 # support --undefined. This deserves some investigation. FIXME
9052 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9053 else
9054 ld_shlibs=no
9055 fi
9056 ;;
9058 cygwin* | mingw* | pw32* | cegcc*)
9059 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9060 # as there is no search path for DLLs.
9061 hardcode_libdir_flag_spec='-L$libdir'
9062 export_dynamic_flag_spec='$wl--export-all-symbols'
9063 allow_undefined_flag=unsupported
9064 always_export_symbols=no
9065 enable_shared_with_static_runtimes=yes
9066 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'
9067 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9069 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9070 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9071 # If the export-symbols file already is a .def file, use it as
9072 # is; otherwise, prepend EXPORTS...
9073 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9074 cp $export_symbols $output_objdir/$soname.def;
9075 else
9076 echo EXPORTS > $output_objdir/$soname.def;
9077 cat $export_symbols >> $output_objdir/$soname.def;
9078 fi~
9079 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9080 else
9081 ld_shlibs=no
9082 fi
9083 ;;
9085 haiku*)
9086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9087 link_all_deplibs=yes
9088 ;;
9090 os2*)
9091 hardcode_libdir_flag_spec='-L$libdir'
9092 hardcode_minus_L=yes
9093 allow_undefined_flag=unsupported
9094 shrext_cmds=.dll
9095 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9096 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9097 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9098 $ECHO EXPORTS >> $output_objdir/$libname.def~
9099 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9100 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9101 emximp -o $lib $output_objdir/$libname.def'
9102 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9103 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9104 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9105 $ECHO EXPORTS >> $output_objdir/$libname.def~
9106 prefix_cmds="$SED"~
9107 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9108 prefix_cmds="$prefix_cmds -e 1d";
9109 fi~
9110 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9111 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9112 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9113 emximp -o $lib $output_objdir/$libname.def'
9114 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9115 enable_shared_with_static_runtimes=yes
9116 ;;
9118 interix[3-9]*)
9119 hardcode_direct=no
9120 hardcode_shlibpath_var=no
9121 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9122 export_dynamic_flag_spec='$wl-E'
9123 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9124 # Instead, shared libraries are loaded at an image base (0x10000000 by
9125 # default) and relocated if they conflict, which is a slow very memory
9126 # consuming and fragmenting process. To avoid this, we pick a random,
9127 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9128 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9129 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9130 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'
9131 ;;
9133 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9134 tmp_diet=no
9135 if test linux-dietlibc = "$host_os"; then
9136 case $cc_basename in
9137 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9138 esac
9139 fi
9140 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9141 && test no = "$tmp_diet"
9142 then
9143 tmp_addflag=' $pic_flag'
9144 tmp_sharedflag='-shared'
9145 case $cc_basename,$host_cpu in
9146 pgcc*) # Portland Group C compiler
9147 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'
9148 tmp_addflag=' $pic_flag'
9149 ;;
9150 pgf77* | pgf90* | pgf95* | pgfortran*)
9151 # Portland Group f77 and f90 compilers
9152 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'
9153 tmp_addflag=' $pic_flag -Mnomain' ;;
9154 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9155 tmp_addflag=' -i_dynamic' ;;
9156 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9157 tmp_addflag=' -i_dynamic -nofor_main' ;;
9158 ifc* | ifort*) # Intel Fortran compiler
9159 tmp_addflag=' -nofor_main' ;;
9160 lf95*) # Lahey Fortran 8.1
9161 whole_archive_flag_spec=
9162 tmp_sharedflag='--shared' ;;
9163 nagfor*) # NAGFOR 5.3
9164 tmp_sharedflag='-Wl,-shared' ;;
9165 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9166 tmp_sharedflag='-qmkshrobj'
9167 tmp_addflag= ;;
9168 nvcc*) # Cuda Compiler Driver 2.2
9169 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'
9170 compiler_needs_object=yes
9171 ;;
9172 esac
9173 case `$CC -V 2>&1 | sed 5q` in
9174 *Sun\ C*) # Sun C 5.9
9175 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'
9176 compiler_needs_object=yes
9177 tmp_sharedflag='-G' ;;
9178 *Sun\ F*) # Sun Fortran 8.3
9179 tmp_sharedflag='-G' ;;
9180 esac
9181 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9183 if test yes = "$supports_anon_versioning"; then
9184 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9185 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9186 echo "local: *; };" >> $output_objdir/$libname.ver~
9187 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9188 fi
9190 case $cc_basename in
9191 tcc*)
9192 export_dynamic_flag_spec='-rdynamic'
9193 ;;
9194 xlf* | bgf* | bgxlf* | mpixlf*)
9195 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9196 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9197 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9198 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9199 if test yes = "$supports_anon_versioning"; then
9200 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9201 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9202 echo "local: *; };" >> $output_objdir/$libname.ver~
9203 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9204 fi
9205 ;;
9206 esac
9207 else
9208 ld_shlibs=no
9209 fi
9210 ;;
9212 netbsd* | netbsdelf*-gnu)
9213 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9214 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9215 wlarc=
9216 else
9217 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9218 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9219 fi
9220 ;;
9222 solaris*)
9223 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9224 ld_shlibs=no
9225 cat <<_LT_EOF 1>&2
9227 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9228 *** create shared libraries on Solaris systems. Therefore, libtool
9229 *** is disabling shared libraries support. We urge you to upgrade GNU
9230 *** binutils to release 2.9.1 or newer. Another option is to modify
9231 *** your PATH or compiler configuration so that the native linker is
9232 *** used, and then restart.
9234 _LT_EOF
9235 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9236 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9237 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9238 else
9239 ld_shlibs=no
9240 fi
9241 ;;
9243 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9244 case `$LD -v 2>&1` in
9245 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9246 ld_shlibs=no
9247 cat <<_LT_EOF 1>&2
9249 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9250 *** reliably create shared libraries on SCO systems. Therefore, libtool
9251 *** is disabling shared libraries support. We urge you to upgrade GNU
9252 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9253 *** your PATH or compiler configuration so that the native linker is
9254 *** used, and then restart.
9256 _LT_EOF
9257 ;;
9258 *)
9259 # For security reasons, it is highly recommended that you always
9260 # use absolute paths for naming shared libraries, and exclude the
9261 # DT_RUNPATH tag from executables and libraries. But doing so
9262 # requires that you compile everything twice, which is a pain.
9263 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9264 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9266 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9267 else
9268 ld_shlibs=no
9269 fi
9270 ;;
9271 esac
9272 ;;
9274 sunos4*)
9275 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9276 wlarc=
9277 hardcode_direct=yes
9278 hardcode_shlibpath_var=no
9279 ;;
9281 *)
9282 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9283 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9284 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9285 else
9286 ld_shlibs=no
9287 fi
9288 ;;
9289 esac
9291 if test no = "$ld_shlibs"; then
9292 runpath_var=
9293 hardcode_libdir_flag_spec=
9294 export_dynamic_flag_spec=
9295 whole_archive_flag_spec=
9296 fi
9297 else
9298 # PORTME fill in a description of your system's linker (not GNU ld)
9299 case $host_os in
9300 aix3*)
9301 allow_undefined_flag=unsupported
9302 always_export_symbols=yes
9303 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'
9304 # Note: this linker hardcodes the directories in LIBPATH if there
9305 # are no directories specified by -L.
9306 hardcode_minus_L=yes
9307 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9308 # Neither direct hardcoding nor static linking is supported with a
9309 # broken collect2.
9310 hardcode_direct=unsupported
9311 fi
9312 ;;
9314 aix[4-9]*)
9315 if test ia64 = "$host_cpu"; then
9316 # On IA64, the linker does run time linking by default, so we don't
9317 # have to do anything special.
9318 aix_use_runtimelinking=no
9319 exp_sym_flag='-Bexport'
9320 no_entry_flag=
9321 else
9322 # If we're using GNU nm, then we don't want the "-C" option.
9323 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9324 # Without the "-l" option, or with the "-B" option, AIX nm treats
9325 # weak defined symbols like other global defined symbols, whereas
9326 # GNU nm marks them as "W".
9327 # While the 'weak' keyword is ignored in the Export File, we need
9328 # it in the Import File for the 'aix-soname' feature, so we have
9329 # to replace the "-B" option with "-P" for AIX nm.
9330 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9331 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9332 else
9333 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9334 fi
9335 aix_use_runtimelinking=no
9337 # Test if we are trying to use run time linking or normal
9338 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9339 # have runtime linking enabled, and use it for executables.
9340 # For shared libraries, we enable/disable runtime linking
9341 # depending on the kind of the shared library created -
9342 # when "with_aix_soname,aix_use_runtimelinking" is:
9343 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9344 # "aix,yes" lib.so shared, rtl:yes, for executables
9345 # lib.a static archive
9346 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9347 # lib.a(lib.so.V) shared, rtl:no, for executables
9348 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9349 # lib.a(lib.so.V) shared, rtl:no
9350 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9351 # lib.a static archive
9352 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9353 for ld_flag in $LDFLAGS; do
9354 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9355 aix_use_runtimelinking=yes
9356 break
9357 fi
9358 done
9359 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9360 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9361 # so we don't have lib.a shared libs to link our executables.
9362 # We have to force runtime linking in this case.
9363 aix_use_runtimelinking=yes
9364 LDFLAGS="$LDFLAGS -Wl,-brtl"
9365 fi
9366 ;;
9367 esac
9369 exp_sym_flag='-bexport'
9370 no_entry_flag='-bnoentry'
9371 fi
9373 # When large executables or shared objects are built, AIX ld can
9374 # have problems creating the table of contents. If linking a library
9375 # or program results in "error TOC overflow" add -mminimal-toc to
9376 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9377 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9379 archive_cmds=''
9380 hardcode_direct=yes
9381 hardcode_direct_absolute=yes
9382 hardcode_libdir_separator=':'
9383 link_all_deplibs=yes
9384 file_list_spec='$wl-f,'
9385 case $with_aix_soname,$aix_use_runtimelinking in
9386 aix,*) ;; # traditional, no import file
9387 svr4,* | *,yes) # use import file
9388 # The Import File defines what to hardcode.
9389 hardcode_direct=no
9390 hardcode_direct_absolute=no
9391 ;;
9392 esac
9394 if test yes = "$GCC"; then
9395 case $host_os in aix4.[012]|aix4.[012].*)
9396 # We only want to do this on AIX 4.2 and lower, the check
9397 # below for broken collect2 doesn't work under 4.3+
9398 collect2name=`$CC -print-prog-name=collect2`
9399 if test -f "$collect2name" &&
9400 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9401 then
9402 # We have reworked collect2
9403 :
9404 else
9405 # We have old collect2
9406 hardcode_direct=unsupported
9407 # It fails to find uninstalled libraries when the uninstalled
9408 # path is not listed in the libpath. Setting hardcode_minus_L
9409 # to unsupported forces relinking
9410 hardcode_minus_L=yes
9411 hardcode_libdir_flag_spec='-L$libdir'
9412 hardcode_libdir_separator=
9413 fi
9414 ;;
9415 esac
9416 shared_flag='-shared'
9417 if test yes = "$aix_use_runtimelinking"; then
9418 shared_flag="$shared_flag "'$wl-G'
9419 fi
9420 # Need to ensure runtime linking is disabled for the traditional
9421 # shared library, or the linker may eventually find shared libraries
9422 # /with/ Import File - we do not want to mix them.
9423 shared_flag_aix='-shared'
9424 shared_flag_svr4='-shared $wl-G'
9425 else
9426 # not using gcc
9427 if test ia64 = "$host_cpu"; then
9428 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9429 # chokes on -Wl,-G. The following line is correct:
9430 shared_flag='-G'
9431 else
9432 if test yes = "$aix_use_runtimelinking"; then
9433 shared_flag='$wl-G'
9434 else
9435 shared_flag='$wl-bM:SRE'
9436 fi
9437 shared_flag_aix='$wl-bM:SRE'
9438 shared_flag_svr4='$wl-G'
9439 fi
9440 fi
9442 export_dynamic_flag_spec='$wl-bexpall'
9443 # It seems that -bexpall does not export symbols beginning with
9444 # underscore (_), so it is better to generate a list of symbols to export.
9445 always_export_symbols=yes
9446 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9447 # Warning - without using the other runtime loading flags (-brtl),
9448 # -berok will link without error, but may produce a broken library.
9449 allow_undefined_flag='-berok'
9450 # Determine the default libpath from the value encoded in an
9451 # empty executable.
9452 if test set = "${lt_cv_aix_libpath+set}"; then
9453 aix_libpath=$lt_cv_aix_libpath
9454 else
9455 if ${lt_cv_aix_libpath_+:} false; then :
9456 $as_echo_n "(cached) " >&6
9457 else
9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459 /* end confdefs.h. */
9461 int
9462 main ()
9463 {
9465 ;
9466 return 0;
9467 }
9468 _ACEOF
9469 if ac_fn_c_try_link "$LINENO"; then :
9471 lt_aix_libpath_sed='
9472 /Import File Strings/,/^$/ {
9473 /^0/ {
9474 s/^0 *\([^ ]*\) *$/\1/
9475 p
9476 }
9477 }'
9478 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9479 # Check for a 64-bit object if we didn't find anything.
9480 if test -z "$lt_cv_aix_libpath_"; then
9481 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9482 fi
9483 fi
9484 rm -f core conftest.err conftest.$ac_objext \
9485 conftest$ac_exeext conftest.$ac_ext
9486 if test -z "$lt_cv_aix_libpath_"; then
9487 lt_cv_aix_libpath_=/usr/lib:/lib
9488 fi
9490 fi
9492 aix_libpath=$lt_cv_aix_libpath_
9493 fi
9495 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9496 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9497 else
9498 if test ia64 = "$host_cpu"; then
9499 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9500 allow_undefined_flag="-z nodefs"
9501 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"
9502 else
9503 # Determine the default libpath from the value encoded in an
9504 # empty executable.
9505 if test set = "${lt_cv_aix_libpath+set}"; then
9506 aix_libpath=$lt_cv_aix_libpath
9507 else
9508 if ${lt_cv_aix_libpath_+:} false; then :
9509 $as_echo_n "(cached) " >&6
9510 else
9511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9512 /* end confdefs.h. */
9514 int
9515 main ()
9516 {
9518 ;
9519 return 0;
9520 }
9521 _ACEOF
9522 if ac_fn_c_try_link "$LINENO"; then :
9524 lt_aix_libpath_sed='
9525 /Import File Strings/,/^$/ {
9526 /^0/ {
9527 s/^0 *\([^ ]*\) *$/\1/
9528 p
9529 }
9530 }'
9531 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9532 # Check for a 64-bit object if we didn't find anything.
9533 if test -z "$lt_cv_aix_libpath_"; then
9534 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9535 fi
9536 fi
9537 rm -f core conftest.err conftest.$ac_objext \
9538 conftest$ac_exeext conftest.$ac_ext
9539 if test -z "$lt_cv_aix_libpath_"; then
9540 lt_cv_aix_libpath_=/usr/lib:/lib
9541 fi
9543 fi
9545 aix_libpath=$lt_cv_aix_libpath_
9546 fi
9548 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9549 # Warning - without using the other run time loading flags,
9550 # -berok will link without error, but may produce a broken library.
9551 no_undefined_flag=' $wl-bernotok'
9552 allow_undefined_flag=' $wl-berok'
9553 if test yes = "$with_gnu_ld"; then
9554 # We only use this code for GNU lds that support --whole-archive.
9555 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9556 else
9557 # Exported symbols can be pulled into shared objects from archives
9558 whole_archive_flag_spec='$convenience'
9559 fi
9560 archive_cmds_need_lc=yes
9561 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9562 # -brtl affects multiple linker settings, -berok does not and is overridden later
9563 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9564 if test svr4 != "$with_aix_soname"; then
9565 # This is similar to how AIX traditionally builds its shared libraries.
9566 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9567 fi
9568 if test aix != "$with_aix_soname"; then
9569 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9570 else
9571 # used by -dlpreopen to get the symbols
9572 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9573 fi
9574 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9575 fi
9576 fi
9577 ;;
9579 amigaos*)
9580 case $host_cpu in
9581 powerpc)
9582 # see comment about AmigaOS4 .so support
9583 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9584 archive_expsym_cmds=''
9585 ;;
9586 m68k)
9587 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)'
9588 hardcode_libdir_flag_spec='-L$libdir'
9589 hardcode_minus_L=yes
9590 ;;
9591 esac
9592 ;;
9594 bsdi[45]*)
9595 export_dynamic_flag_spec=-rdynamic
9596 ;;
9598 cygwin* | mingw* | pw32* | cegcc*)
9599 # When not using gcc, we currently assume that we are using
9600 # Microsoft Visual C++.
9601 # hardcode_libdir_flag_spec is actually meaningless, as there is
9602 # no search path for DLLs.
9603 case $cc_basename in
9604 cl*)
9605 # Native MSVC
9606 hardcode_libdir_flag_spec=' '
9607 allow_undefined_flag=unsupported
9608 always_export_symbols=yes
9609 file_list_spec='@'
9610 # Tell ltmain to make .lib files, not .a files.
9611 libext=lib
9612 # Tell ltmain to make .dll files, not .so files.
9613 shrext_cmds=.dll
9614 # FIXME: Setting linknames here is a bad hack.
9615 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9616 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9617 cp "$export_symbols" "$output_objdir/$soname.def";
9618 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9619 else
9620 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9621 fi~
9622 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9623 linknames='
9624 # The linker will not automatically build a static lib if we build a DLL.
9625 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9626 enable_shared_with_static_runtimes=yes
9627 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9628 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9629 # Don't use ranlib
9630 old_postinstall_cmds='chmod 644 $oldlib'
9631 postlink_cmds='lt_outputfile="@OUTPUT@"~
9632 lt_tool_outputfile="@TOOL_OUTPUT@"~
9633 case $lt_outputfile in
9634 *.exe|*.EXE) ;;
9635 *)
9636 lt_outputfile=$lt_outputfile.exe
9637 lt_tool_outputfile=$lt_tool_outputfile.exe
9638 ;;
9639 esac~
9640 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9641 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9642 $RM "$lt_outputfile.manifest";
9643 fi'
9644 ;;
9645 *)
9646 # Assume MSVC wrapper
9647 hardcode_libdir_flag_spec=' '
9648 allow_undefined_flag=unsupported
9649 # Tell ltmain to make .lib files, not .a files.
9650 libext=lib
9651 # Tell ltmain to make .dll files, not .so files.
9652 shrext_cmds=.dll
9653 # FIXME: Setting linknames here is a bad hack.
9654 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9655 # The linker will automatically build a .lib file if we build a DLL.
9656 old_archive_from_new_cmds='true'
9657 # FIXME: Should let the user specify the lib program.
9658 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9659 enable_shared_with_static_runtimes=yes
9660 ;;
9661 esac
9662 ;;
9664 darwin* | rhapsody*)
9667 archive_cmds_need_lc=no
9668 hardcode_direct=no
9669 hardcode_automatic=yes
9670 hardcode_shlibpath_var=unsupported
9671 if test yes = "$lt_cv_ld_force_load"; then
9672 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\"`'
9674 else
9675 whole_archive_flag_spec=''
9676 fi
9677 link_all_deplibs=yes
9678 allow_undefined_flag=$_lt_dar_allow_undefined
9679 case $cc_basename in
9680 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9681 *) _lt_dar_can_shared=$GCC ;;
9682 esac
9683 if test yes = "$_lt_dar_can_shared"; then
9684 output_verbose_link_cmd=func_echo_all
9685 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9686 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9687 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"
9688 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"
9690 else
9691 ld_shlibs=no
9692 fi
9694 ;;
9696 dgux*)
9697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9698 hardcode_libdir_flag_spec='-L$libdir'
9699 hardcode_shlibpath_var=no
9700 ;;
9702 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9703 # support. Future versions do this automatically, but an explicit c++rt0.o
9704 # does not break anything, and helps significantly (at the cost of a little
9705 # extra space).
9706 freebsd2.2*)
9707 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9708 hardcode_libdir_flag_spec='-R$libdir'
9709 hardcode_direct=yes
9710 hardcode_shlibpath_var=no
9711 ;;
9713 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9714 freebsd2.*)
9715 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9716 hardcode_direct=yes
9717 hardcode_minus_L=yes
9718 hardcode_shlibpath_var=no
9719 ;;
9721 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9722 freebsd* | dragonfly*)
9723 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9724 hardcode_libdir_flag_spec='-R$libdir'
9725 hardcode_direct=yes
9726 hardcode_shlibpath_var=no
9727 ;;
9729 hpux9*)
9730 if test yes = "$GCC"; then
9731 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9732 else
9733 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9734 fi
9735 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9736 hardcode_libdir_separator=:
9737 hardcode_direct=yes
9739 # hardcode_minus_L: Not really in the search PATH,
9740 # but as the default location of the library.
9741 hardcode_minus_L=yes
9742 export_dynamic_flag_spec='$wl-E'
9743 ;;
9745 hpux10*)
9746 if test yes,no = "$GCC,$with_gnu_ld"; then
9747 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9748 else
9749 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9750 fi
9751 if test no = "$with_gnu_ld"; then
9752 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9753 hardcode_libdir_separator=:
9754 hardcode_direct=yes
9755 hardcode_direct_absolute=yes
9756 export_dynamic_flag_spec='$wl-E'
9757 # hardcode_minus_L: Not really in the search PATH,
9758 # but as the default location of the library.
9759 hardcode_minus_L=yes
9760 fi
9761 ;;
9763 hpux11*)
9764 if test yes,no = "$GCC,$with_gnu_ld"; then
9765 case $host_cpu in
9766 hppa*64*)
9767 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9768 ;;
9769 ia64*)
9770 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9771 ;;
9772 *)
9773 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9774 ;;
9775 esac
9776 else
9777 case $host_cpu in
9778 hppa*64*)
9779 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9780 ;;
9781 ia64*)
9782 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9783 ;;
9784 *)
9786 # Older versions of the 11.00 compiler do not understand -b yet
9787 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9789 $as_echo_n "checking if $CC understands -b... " >&6; }
9790 if ${lt_cv_prog_compiler__b+:} false; then :
9791 $as_echo_n "(cached) " >&6
9792 else
9793 lt_cv_prog_compiler__b=no
9794 save_LDFLAGS=$LDFLAGS
9795 LDFLAGS="$LDFLAGS -b"
9796 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9797 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9798 # The linker can only warn and ignore the option if not recognized
9799 # So say no if there are warnings
9800 if test -s conftest.err; then
9801 # Append any errors to the config.log.
9802 cat conftest.err 1>&5
9803 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9805 if diff conftest.exp conftest.er2 >/dev/null; then
9806 lt_cv_prog_compiler__b=yes
9807 fi
9808 else
9809 lt_cv_prog_compiler__b=yes
9810 fi
9811 fi
9812 $RM -r conftest*
9813 LDFLAGS=$save_LDFLAGS
9815 fi
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9817 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9819 if test yes = "$lt_cv_prog_compiler__b"; then
9820 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9821 else
9822 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9823 fi
9825 ;;
9826 esac
9827 fi
9828 if test no = "$with_gnu_ld"; then
9829 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9830 hardcode_libdir_separator=:
9832 case $host_cpu in
9833 hppa*64*|ia64*)
9834 hardcode_direct=no
9835 hardcode_shlibpath_var=no
9836 ;;
9837 *)
9838 hardcode_direct=yes
9839 hardcode_direct_absolute=yes
9840 export_dynamic_flag_spec='$wl-E'
9842 # hardcode_minus_L: Not really in the search PATH,
9843 # but as the default location of the library.
9844 hardcode_minus_L=yes
9845 ;;
9846 esac
9847 fi
9848 ;;
9850 irix5* | irix6* | nonstopux*)
9851 if test yes = "$GCC"; then
9852 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'
9853 # Try to use the -exported_symbol ld option, if it does not
9854 # work, assume that -exports_file does not work either and
9855 # implicitly export all symbols.
9856 # This should be the same for all languages, so no per-tag cache variable.
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9858 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9859 if ${lt_cv_irix_exported_symbol+:} false; then :
9860 $as_echo_n "(cached) " >&6
9861 else
9862 save_LDFLAGS=$LDFLAGS
9863 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9865 /* end confdefs.h. */
9866 int foo (void) { return 0; }
9867 _ACEOF
9868 if ac_fn_c_try_link "$LINENO"; then :
9869 lt_cv_irix_exported_symbol=yes
9870 else
9871 lt_cv_irix_exported_symbol=no
9872 fi
9873 rm -f core conftest.err conftest.$ac_objext \
9874 conftest$ac_exeext conftest.$ac_ext
9875 LDFLAGS=$save_LDFLAGS
9876 fi
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9878 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9879 if test yes = "$lt_cv_irix_exported_symbol"; then
9880 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'
9881 fi
9882 link_all_deplibs=no
9883 else
9884 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'
9885 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'
9886 fi
9887 archive_cmds_need_lc='no'
9888 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9889 hardcode_libdir_separator=:
9890 inherit_rpath=yes
9891 link_all_deplibs=yes
9892 ;;
9894 linux*)
9895 case $cc_basename in
9896 tcc*)
9897 # Fabrice Bellard et al's Tiny C Compiler
9898 ld_shlibs=yes
9899 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9900 ;;
9901 esac
9902 ;;
9904 netbsd* | netbsdelf*-gnu)
9905 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9906 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9907 else
9908 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9909 fi
9910 hardcode_libdir_flag_spec='-R$libdir'
9911 hardcode_direct=yes
9912 hardcode_shlibpath_var=no
9913 ;;
9915 newsos6)
9916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9917 hardcode_direct=yes
9918 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9919 hardcode_libdir_separator=:
9920 hardcode_shlibpath_var=no
9921 ;;
9923 *nto* | *qnx*)
9924 ;;
9926 openbsd* | bitrig*)
9927 if test -f /usr/libexec/ld.so; then
9928 hardcode_direct=yes
9929 hardcode_shlibpath_var=no
9930 hardcode_direct_absolute=yes
9931 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9932 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9933 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9934 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9935 export_dynamic_flag_spec='$wl-E'
9936 else
9937 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9938 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9939 fi
9940 else
9941 ld_shlibs=no
9942 fi
9943 ;;
9945 os2*)
9946 hardcode_libdir_flag_spec='-L$libdir'
9947 hardcode_minus_L=yes
9948 allow_undefined_flag=unsupported
9949 shrext_cmds=.dll
9950 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9951 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9952 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9953 $ECHO EXPORTS >> $output_objdir/$libname.def~
9954 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9955 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9956 emximp -o $lib $output_objdir/$libname.def'
9957 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9958 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9959 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9960 $ECHO EXPORTS >> $output_objdir/$libname.def~
9961 prefix_cmds="$SED"~
9962 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9963 prefix_cmds="$prefix_cmds -e 1d";
9964 fi~
9965 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9966 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9967 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9968 emximp -o $lib $output_objdir/$libname.def'
9969 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9970 enable_shared_with_static_runtimes=yes
9971 ;;
9973 osf3*)
9974 if test yes = "$GCC"; then
9975 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9976 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'
9977 else
9978 allow_undefined_flag=' -expect_unresolved \*'
9979 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'
9980 fi
9981 archive_cmds_need_lc='no'
9982 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9983 hardcode_libdir_separator=:
9984 ;;
9986 osf4* | osf5*) # as osf3* with the addition of -msym flag
9987 if test yes = "$GCC"; then
9988 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9989 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'
9990 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9991 else
9992 allow_undefined_flag=' -expect_unresolved \*'
9993 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'
9994 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~
9995 $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'
9997 # Both c and cxx compiler support -rpath directly
9998 hardcode_libdir_flag_spec='-rpath $libdir'
9999 fi
10000 archive_cmds_need_lc='no'
10001 hardcode_libdir_separator=:
10002 ;;
10004 solaris*)
10005 no_undefined_flag=' -z defs'
10006 if test yes = "$GCC"; then
10007 wlarc='$wl'
10008 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10009 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10010 $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'
10011 else
10012 case `$CC -V 2>&1` in
10013 *"Compilers 5.0"*)
10014 wlarc=''
10015 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10016 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10017 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10018 ;;
10019 *)
10020 wlarc='$wl'
10021 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10022 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10023 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10024 ;;
10025 esac
10026 fi
10027 hardcode_libdir_flag_spec='-R$libdir'
10028 hardcode_shlibpath_var=no
10029 case $host_os in
10030 solaris2.[0-5] | solaris2.[0-5].*) ;;
10031 *)
10032 # The compiler driver will combine and reorder linker options,
10033 # but understands '-z linker_flag'. GCC discards it without '$wl',
10034 # but is careful enough not to reorder.
10035 # Supported since Solaris 2.6 (maybe 2.5.1?)
10036 if test yes = "$GCC"; then
10037 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10038 else
10039 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10040 fi
10041 ;;
10042 esac
10043 link_all_deplibs=yes
10044 ;;
10046 sunos4*)
10047 if test sequent = "$host_vendor"; then
10048 # Use $CC to link under sequent, because it throws in some extra .o
10049 # files that make .init and .fini sections work.
10050 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10051 else
10052 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10053 fi
10054 hardcode_libdir_flag_spec='-L$libdir'
10055 hardcode_direct=yes
10056 hardcode_minus_L=yes
10057 hardcode_shlibpath_var=no
10058 ;;
10060 sysv4)
10061 case $host_vendor in
10062 sni)
10063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10064 hardcode_direct=yes # is this really true???
10065 ;;
10066 siemens)
10067 ## LD is ld it makes a PLAMLIB
10068 ## CC just makes a GrossModule.
10069 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10070 reload_cmds='$CC -r -o $output$reload_objs'
10071 hardcode_direct=no
10072 ;;
10073 motorola)
10074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10075 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10076 ;;
10077 esac
10078 runpath_var='LD_RUN_PATH'
10079 hardcode_shlibpath_var=no
10080 ;;
10082 sysv4.3*)
10083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10084 hardcode_shlibpath_var=no
10085 export_dynamic_flag_spec='-Bexport'
10086 ;;
10088 sysv4*MP*)
10089 if test -d /usr/nec; then
10090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10091 hardcode_shlibpath_var=no
10092 runpath_var=LD_RUN_PATH
10093 hardcode_runpath_var=yes
10094 ld_shlibs=yes
10095 fi
10096 ;;
10098 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10099 no_undefined_flag='$wl-z,text'
10100 archive_cmds_need_lc=no
10101 hardcode_shlibpath_var=no
10102 runpath_var='LD_RUN_PATH'
10104 if test yes = "$GCC"; then
10105 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10106 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10107 else
10108 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10109 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10110 fi
10111 ;;
10113 sysv5* | sco3.2v5* | sco5v6*)
10114 # Note: We CANNOT use -z defs as we might desire, because we do not
10115 # link with -lc, and that would cause any symbols used from libc to
10116 # always be unresolved, which means just about no library would
10117 # ever link correctly. If we're not using GNU ld we use -z text
10118 # though, which does catch some bad symbols but isn't as heavy-handed
10119 # as -z defs.
10120 no_undefined_flag='$wl-z,text'
10121 allow_undefined_flag='$wl-z,nodefs'
10122 archive_cmds_need_lc=no
10123 hardcode_shlibpath_var=no
10124 hardcode_libdir_flag_spec='$wl-R,$libdir'
10125 hardcode_libdir_separator=':'
10126 link_all_deplibs=yes
10127 export_dynamic_flag_spec='$wl-Bexport'
10128 runpath_var='LD_RUN_PATH'
10130 if test yes = "$GCC"; then
10131 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10132 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10133 else
10134 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10135 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10136 fi
10137 ;;
10139 uts4*)
10140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10141 hardcode_libdir_flag_spec='-L$libdir'
10142 hardcode_shlibpath_var=no
10143 ;;
10145 *)
10146 ld_shlibs=no
10147 ;;
10148 esac
10150 if test sni = "$host_vendor"; then
10151 case $host in
10152 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10153 export_dynamic_flag_spec='$wl-Blargedynsym'
10154 ;;
10155 esac
10156 fi
10157 fi
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10160 $as_echo "$ld_shlibs" >&6; }
10161 test no = "$ld_shlibs" && can_build_shared=no
10163 with_gnu_ld=$with_gnu_ld
10179 #
10180 # Do we need to explicitly link libc?
10181 #
10182 case "x$archive_cmds_need_lc" in
10183 x|xyes)
10184 # Assume -lc should be added
10185 archive_cmds_need_lc=yes
10187 if test yes,yes = "$GCC,$enable_shared"; then
10188 case $archive_cmds in
10189 *'~'*)
10190 # FIXME: we may have to deal with multi-command sequences.
10191 ;;
10192 '$CC '*)
10193 # Test whether the compiler implicitly links with -lc since on some
10194 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10195 # to ld, don't add -lc before -lgcc.
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10197 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10198 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10199 $as_echo_n "(cached) " >&6
10200 else
10201 $RM conftest*
10202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10205 (eval $ac_compile) 2>&5
10206 ac_status=$?
10207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10208 test $ac_status = 0; } 2>conftest.err; then
10209 soname=conftest
10210 lib=conftest
10211 libobjs=conftest.$ac_objext
10212 deplibs=
10213 wl=$lt_prog_compiler_wl
10214 pic_flag=$lt_prog_compiler_pic
10215 compiler_flags=-v
10216 linker_flags=-v
10217 verstring=
10218 output_objdir=.
10219 libname=conftest
10220 lt_save_allow_undefined_flag=$allow_undefined_flag
10221 allow_undefined_flag=
10222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10223 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10224 ac_status=$?
10225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10226 test $ac_status = 0; }
10227 then
10228 lt_cv_archive_cmds_need_lc=no
10229 else
10230 lt_cv_archive_cmds_need_lc=yes
10231 fi
10232 allow_undefined_flag=$lt_save_allow_undefined_flag
10233 else
10234 cat conftest.err 1>&5
10235 fi
10236 $RM conftest*
10238 fi
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10240 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10241 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10242 ;;
10243 esac
10244 fi
10245 ;;
10246 esac
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10400 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10402 if test yes = "$GCC"; then
10403 case $host_os in
10404 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10405 *) lt_awk_arg='/^libraries:/' ;;
10406 esac
10407 case $host_os in
10408 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10409 *) lt_sed_strip_eq='s|=/|/|g' ;;
10410 esac
10411 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10412 case $lt_search_path_spec in
10413 *\;*)
10414 # if the path contains ";" then we assume it to be the separator
10415 # otherwise default to the standard path separator (i.e. ":") - it is
10416 # assumed that no part of a normal pathname contains ";" but that should
10417 # okay in the real world where ";" in dirpaths is itself problematic.
10418 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10419 ;;
10420 *)
10421 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10422 ;;
10423 esac
10424 # Ok, now we have the path, separated by spaces, we can step through it
10425 # and add multilib dir if necessary...
10426 lt_tmp_lt_search_path_spec=
10427 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10428 # ...but if some path component already ends with the multilib dir we assume
10429 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10430 case "$lt_multi_os_dir; $lt_search_path_spec " in
10431 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10432 lt_multi_os_dir=
10433 ;;
10434 esac
10435 for lt_sys_path in $lt_search_path_spec; do
10436 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10437 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10438 elif test -n "$lt_multi_os_dir"; then
10439 test -d "$lt_sys_path" && \
10440 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10441 fi
10442 done
10443 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10444 BEGIN {RS = " "; FS = "/|\n";} {
10445 lt_foo = "";
10446 lt_count = 0;
10447 for (lt_i = NF; lt_i > 0; lt_i--) {
10448 if ($lt_i != "" && $lt_i != ".") {
10449 if ($lt_i == "..") {
10450 lt_count++;
10451 } else {
10452 if (lt_count == 0) {
10453 lt_foo = "/" $lt_i lt_foo;
10454 } else {
10455 lt_count--;
10456 }
10457 }
10458 }
10459 }
10460 if (lt_foo != "") { lt_freq[lt_foo]++; }
10461 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10462 }'`
10463 # AWK program above erroneously prepends '/' to C:/dos/paths
10464 # for these hosts.
10465 case $host_os in
10466 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10467 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10468 esac
10469 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10470 else
10471 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10472 fi
10473 library_names_spec=
10474 libname_spec='lib$name'
10475 soname_spec=
10476 shrext_cmds=.so
10477 postinstall_cmds=
10478 postuninstall_cmds=
10479 finish_cmds=
10480 finish_eval=
10481 shlibpath_var=
10482 shlibpath_overrides_runpath=unknown
10483 version_type=none
10484 dynamic_linker="$host_os ld.so"
10485 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10486 need_lib_prefix=unknown
10487 hardcode_into_libs=no
10489 # when you set need_version to no, make sure it does not cause -set_version
10490 # flags to be left without arguments
10491 need_version=unknown
10495 case $host_os in
10496 aix3*)
10497 version_type=linux # correct to gnu/linux during the next big refactor
10498 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10499 shlibpath_var=LIBPATH
10501 # AIX 3 has no versioning support, so we append a major version to the name.
10502 soname_spec='$libname$release$shared_ext$major'
10503 ;;
10505 aix[4-9]*)
10506 version_type=linux # correct to gnu/linux during the next big refactor
10507 need_lib_prefix=no
10508 need_version=no
10509 hardcode_into_libs=yes
10510 if test ia64 = "$host_cpu"; then
10511 # AIX 5 supports IA64
10512 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10513 shlibpath_var=LD_LIBRARY_PATH
10514 else
10515 # With GCC up to 2.95.x, collect2 would create an import file
10516 # for dependence libraries. The import file would start with
10517 # the line '#! .'. This would cause the generated library to
10518 # depend on '.', always an invalid library. This was fixed in
10519 # development snapshots of GCC prior to 3.0.
10520 case $host_os in
10521 aix4 | aix4.[01] | aix4.[01].*)
10522 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10523 echo ' yes '
10524 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10525 :
10526 else
10527 can_build_shared=no
10528 fi
10529 ;;
10530 esac
10531 # Using Import Files as archive members, it is possible to support
10532 # filename-based versioning of shared library archives on AIX. While
10533 # this would work for both with and without runtime linking, it will
10534 # prevent static linking of such archives. So we do filename-based
10535 # shared library versioning with .so extension only, which is used
10536 # when both runtime linking and shared linking is enabled.
10537 # Unfortunately, runtime linking may impact performance, so we do
10538 # not want this to be the default eventually. Also, we use the
10539 # versioned .so libs for executables only if there is the -brtl
10540 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10541 # To allow for filename-based versioning support, we need to create
10542 # libNAME.so.V as an archive file, containing:
10543 # *) an Import File, referring to the versioned filename of the
10544 # archive as well as the shared archive member, telling the
10545 # bitwidth (32 or 64) of that shared object, and providing the
10546 # list of exported symbols of that shared object, eventually
10547 # decorated with the 'weak' keyword
10548 # *) the shared object with the F_LOADONLY flag set, to really avoid
10549 # it being seen by the linker.
10550 # At run time we better use the real file rather than another symlink,
10551 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10553 case $with_aix_soname,$aix_use_runtimelinking in
10554 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10555 # soname into executable. Probably we can add versioning support to
10556 # collect2, so additional links can be useful in future.
10557 aix,yes) # traditional libtool
10558 dynamic_linker='AIX unversionable lib.so'
10559 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10560 # instead of lib<name>.a to let people know that these are not
10561 # typical AIX shared libraries.
10562 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10563 ;;
10564 aix,no) # traditional AIX only
10565 dynamic_linker='AIX lib.a(lib.so.V)'
10566 # We preserve .a as extension for shared libraries through AIX4.2
10567 # and later when we are not doing run time linking.
10568 library_names_spec='$libname$release.a $libname.a'
10569 soname_spec='$libname$release$shared_ext$major'
10570 ;;
10571 svr4,*) # full svr4 only
10572 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10573 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10574 # We do not specify a path in Import Files, so LIBPATH fires.
10575 shlibpath_overrides_runpath=yes
10576 ;;
10577 *,yes) # both, prefer svr4
10578 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10579 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10580 # unpreferred sharedlib libNAME.a needs extra handling
10581 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10582 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10583 # We do not specify a path in Import Files, so LIBPATH fires.
10584 shlibpath_overrides_runpath=yes
10585 ;;
10586 *,no) # both, prefer aix
10587 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10588 library_names_spec='$libname$release.a $libname.a'
10589 soname_spec='$libname$release$shared_ext$major'
10590 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10591 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10592 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10593 ;;
10594 esac
10595 shlibpath_var=LIBPATH
10596 fi
10597 ;;
10599 amigaos*)
10600 case $host_cpu in
10601 powerpc)
10602 # Since July 2007 AmigaOS4 officially supports .so libraries.
10603 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10604 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10605 ;;
10606 m68k)
10607 library_names_spec='$libname.ixlibrary $libname.a'
10608 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10609 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10610 ;;
10611 esac
10612 ;;
10614 beos*)
10615 library_names_spec='$libname$shared_ext'
10616 dynamic_linker="$host_os ld.so"
10617 shlibpath_var=LIBRARY_PATH
10618 ;;
10620 bsdi[45]*)
10621 version_type=linux # correct to gnu/linux during the next big refactor
10622 need_version=no
10623 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10624 soname_spec='$libname$release$shared_ext$major'
10625 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10626 shlibpath_var=LD_LIBRARY_PATH
10627 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10628 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10629 # the default ld.so.conf also contains /usr/contrib/lib and
10630 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10631 # libtool to hard-code these into programs
10632 ;;
10634 cygwin* | mingw* | pw32* | cegcc*)
10635 version_type=windows
10636 shrext_cmds=.dll
10637 need_version=no
10638 need_lib_prefix=no
10640 case $GCC,$cc_basename in
10641 yes,*)
10642 # gcc
10643 library_names_spec='$libname.dll.a'
10644 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10645 postinstall_cmds='base_file=`basename \$file`~
10646 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10647 dldir=$destdir/`dirname \$dlpath`~
10648 test -d \$dldir || mkdir -p \$dldir~
10649 $install_prog $dir/$dlname \$dldir/$dlname~
10650 chmod a+x \$dldir/$dlname~
10651 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10652 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10653 fi'
10654 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10655 dlpath=$dir/\$dldll~
10656 $RM \$dlpath'
10657 shlibpath_overrides_runpath=yes
10659 case $host_os in
10660 cygwin*)
10661 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10662 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10664 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10665 ;;
10666 mingw* | cegcc*)
10667 # MinGW DLLs use traditional 'lib' prefix
10668 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10669 ;;
10670 pw32*)
10671 # pw32 DLLs use 'pw' prefix rather than 'lib'
10672 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10673 ;;
10674 esac
10675 dynamic_linker='Win32 ld.exe'
10676 ;;
10678 *,cl*)
10679 # Native MSVC
10680 libname_spec='$name'
10681 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10682 library_names_spec='$libname.dll.lib'
10684 case $build_os in
10685 mingw*)
10686 sys_lib_search_path_spec=
10687 lt_save_ifs=$IFS
10688 IFS=';'
10689 for lt_path in $LIB
10690 do
10691 IFS=$lt_save_ifs
10692 # Let DOS variable expansion print the short 8.3 style file name.
10693 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10694 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10695 done
10696 IFS=$lt_save_ifs
10697 # Convert to MSYS style.
10698 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10699 ;;
10700 cygwin*)
10701 # Convert to unix form, then to dos form, then back to unix form
10702 # but this time dos style (no spaces!) so that the unix form looks
10703 # like /cygdrive/c/PROGRA~1:/cygdr...
10704 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10705 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10706 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10707 ;;
10708 *)
10709 sys_lib_search_path_spec=$LIB
10710 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10711 # It is most probably a Windows format PATH.
10712 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10713 else
10714 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10715 fi
10716 # FIXME: find the short name or the path components, as spaces are
10717 # common. (e.g. "Program Files" -> "PROGRA~1")
10718 ;;
10719 esac
10721 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10722 postinstall_cmds='base_file=`basename \$file`~
10723 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10724 dldir=$destdir/`dirname \$dlpath`~
10725 test -d \$dldir || mkdir -p \$dldir~
10726 $install_prog $dir/$dlname \$dldir/$dlname'
10727 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10728 dlpath=$dir/\$dldll~
10729 $RM \$dlpath'
10730 shlibpath_overrides_runpath=yes
10731 dynamic_linker='Win32 link.exe'
10732 ;;
10734 *)
10735 # Assume MSVC wrapper
10736 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10737 dynamic_linker='Win32 ld.exe'
10738 ;;
10739 esac
10740 # FIXME: first we should search . and the directory the executable is in
10741 shlibpath_var=PATH
10742 ;;
10744 darwin* | rhapsody*)
10745 dynamic_linker="$host_os dyld"
10746 version_type=darwin
10747 need_lib_prefix=no
10748 need_version=no
10749 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10750 soname_spec='$libname$release$major$shared_ext'
10751 shlibpath_overrides_runpath=yes
10752 shlibpath_var=DYLD_LIBRARY_PATH
10753 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10755 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10756 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10757 ;;
10759 dgux*)
10760 version_type=linux # correct to gnu/linux during the next big refactor
10761 need_lib_prefix=no
10762 need_version=no
10763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10764 soname_spec='$libname$release$shared_ext$major'
10765 shlibpath_var=LD_LIBRARY_PATH
10766 ;;
10768 freebsd* | dragonfly*)
10769 # DragonFly does not have aout. When/if they implement a new
10770 # versioning mechanism, adjust this.
10771 if test -x /usr/bin/objformat; then
10772 objformat=`/usr/bin/objformat`
10773 else
10774 case $host_os in
10775 freebsd[23].*) objformat=aout ;;
10776 *) objformat=elf ;;
10777 esac
10778 fi
10779 version_type=freebsd-$objformat
10780 case $version_type in
10781 freebsd-elf*)
10782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10783 soname_spec='$libname$release$shared_ext$major'
10784 need_version=no
10785 need_lib_prefix=no
10786 ;;
10787 freebsd-*)
10788 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10789 need_version=yes
10790 ;;
10791 esac
10792 shlibpath_var=LD_LIBRARY_PATH
10793 case $host_os in
10794 freebsd2.*)
10795 shlibpath_overrides_runpath=yes
10796 ;;
10797 freebsd3.[01]* | freebsdelf3.[01]*)
10798 shlibpath_overrides_runpath=yes
10799 hardcode_into_libs=yes
10800 ;;
10801 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10802 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10803 shlibpath_overrides_runpath=no
10804 hardcode_into_libs=yes
10805 ;;
10806 *) # from 4.6 on, and DragonFly
10807 shlibpath_overrides_runpath=yes
10808 hardcode_into_libs=yes
10809 ;;
10810 esac
10811 ;;
10813 haiku*)
10814 version_type=linux # correct to gnu/linux during the next big refactor
10815 need_lib_prefix=no
10816 need_version=no
10817 dynamic_linker="$host_os runtime_loader"
10818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10819 soname_spec='$libname$release$shared_ext$major'
10820 shlibpath_var=LIBRARY_PATH
10821 shlibpath_overrides_runpath=no
10822 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10823 hardcode_into_libs=yes
10824 ;;
10826 hpux9* | hpux10* | hpux11*)
10827 # Give a soname corresponding to the major version so that dld.sl refuses to
10828 # link against other versions.
10829 version_type=sunos
10830 need_lib_prefix=no
10831 need_version=no
10832 case $host_cpu in
10833 ia64*)
10834 shrext_cmds='.so'
10835 hardcode_into_libs=yes
10836 dynamic_linker="$host_os dld.so"
10837 shlibpath_var=LD_LIBRARY_PATH
10838 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10839 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10840 soname_spec='$libname$release$shared_ext$major'
10841 if test 32 = "$HPUX_IA64_MODE"; then
10842 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10843 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10844 else
10845 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10846 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10847 fi
10848 ;;
10849 hppa*64*)
10850 shrext_cmds='.sl'
10851 hardcode_into_libs=yes
10852 dynamic_linker="$host_os dld.sl"
10853 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10855 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10856 soname_spec='$libname$release$shared_ext$major'
10857 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10859 ;;
10860 *)
10861 shrext_cmds='.sl'
10862 dynamic_linker="$host_os dld.sl"
10863 shlibpath_var=SHLIB_PATH
10864 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10865 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10866 soname_spec='$libname$release$shared_ext$major'
10867 ;;
10868 esac
10869 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10870 postinstall_cmds='chmod 555 $lib'
10871 # or fails outright, so override atomically:
10872 install_override_mode=555
10873 ;;
10875 interix[3-9]*)
10876 version_type=linux # correct to gnu/linux during the next big refactor
10877 need_lib_prefix=no
10878 need_version=no
10879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10880 soname_spec='$libname$release$shared_ext$major'
10881 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10882 shlibpath_var=LD_LIBRARY_PATH
10883 shlibpath_overrides_runpath=no
10884 hardcode_into_libs=yes
10885 ;;
10887 irix5* | irix6* | nonstopux*)
10888 case $host_os in
10889 nonstopux*) version_type=nonstopux ;;
10890 *)
10891 if test yes = "$lt_cv_prog_gnu_ld"; then
10892 version_type=linux # correct to gnu/linux during the next big refactor
10893 else
10894 version_type=irix
10895 fi ;;
10896 esac
10897 need_lib_prefix=no
10898 need_version=no
10899 soname_spec='$libname$release$shared_ext$major'
10900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10901 case $host_os in
10902 irix5* | nonstopux*)
10903 libsuff= shlibsuff=
10904 ;;
10905 *)
10906 case $LD in # libtool.m4 will add one of these switches to LD
10907 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10908 libsuff= shlibsuff= libmagic=32-bit;;
10909 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10910 libsuff=32 shlibsuff=N32 libmagic=N32;;
10911 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10912 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10913 *) libsuff= shlibsuff= libmagic=never-match;;
10914 esac
10915 ;;
10916 esac
10917 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10918 shlibpath_overrides_runpath=no
10919 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10920 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10921 hardcode_into_libs=yes
10922 ;;
10924 # No shared lib support for Linux oldld, aout, or coff.
10925 linux*oldld* | linux*aout* | linux*coff*)
10926 dynamic_linker=no
10927 ;;
10929 linux*android*)
10930 version_type=none # Android doesn't support versioned libraries.
10931 need_lib_prefix=no
10932 need_version=no
10933 library_names_spec='$libname$release$shared_ext'
10934 soname_spec='$libname$release$shared_ext'
10935 finish_cmds=
10936 shlibpath_var=LD_LIBRARY_PATH
10937 shlibpath_overrides_runpath=yes
10939 # This implies no fast_install, which is unacceptable.
10940 # Some rework will be needed to allow for fast_install
10941 # before this can be enabled.
10942 hardcode_into_libs=yes
10944 dynamic_linker='Android linker'
10945 # Don't embed -rpath directories since the linker doesn't support them.
10946 hardcode_libdir_flag_spec='-L$libdir'
10947 ;;
10949 # This must be glibc/ELF.
10950 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10951 version_type=linux # correct to gnu/linux during the next big refactor
10952 need_lib_prefix=no
10953 need_version=no
10954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10955 soname_spec='$libname$release$shared_ext$major'
10956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10957 shlibpath_var=LD_LIBRARY_PATH
10958 shlibpath_overrides_runpath=no
10960 # Some binutils ld are patched to set DT_RUNPATH
10961 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10962 $as_echo_n "(cached) " >&6
10963 else
10964 lt_cv_shlibpath_overrides_runpath=no
10965 save_LDFLAGS=$LDFLAGS
10966 save_libdir=$libdir
10967 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10968 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10970 /* end confdefs.h. */
10972 int
10973 main ()
10974 {
10976 ;
10977 return 0;
10978 }
10979 _ACEOF
10980 if ac_fn_c_try_link "$LINENO"; then :
10981 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10982 lt_cv_shlibpath_overrides_runpath=yes
10983 fi
10984 fi
10985 rm -f core conftest.err conftest.$ac_objext \
10986 conftest$ac_exeext conftest.$ac_ext
10987 LDFLAGS=$save_LDFLAGS
10988 libdir=$save_libdir
10990 fi
10992 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10994 # This implies no fast_install, which is unacceptable.
10995 # Some rework will be needed to allow for fast_install
10996 # before this can be enabled.
10997 hardcode_into_libs=yes
10999 # Ideally, we could use ldconfig to report *all* directores which are
11000 # searched for libraries, however this is still not possible. Aside from not
11001 # being certain /sbin/ldconfig is available, command
11002 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11003 # even though it is searched at run-time. Try to do the best guess by
11004 # appending ld.so.conf contents (and includes) to the search path.
11005 if test -f /etc/ld.so.conf; then
11006 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' ' '`
11007 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11008 fi
11010 # We used to test for /lib/ld.so.1 and disable shared libraries on
11011 # powerpc, because MkLinux only supported shared libraries with the
11012 # GNU dynamic linker. Since this was broken with cross compilers,
11013 # most powerpc-linux boxes support dynamic linking these days and
11014 # people can always --disable-shared, the test was removed, and we
11015 # assume the GNU/Linux dynamic linker is in use.
11016 dynamic_linker='GNU/Linux ld.so'
11017 ;;
11019 netbsdelf*-gnu)
11020 version_type=linux
11021 need_lib_prefix=no
11022 need_version=no
11023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11024 soname_spec='${libname}${release}${shared_ext}$major'
11025 shlibpath_var=LD_LIBRARY_PATH
11026 shlibpath_overrides_runpath=no
11027 hardcode_into_libs=yes
11028 dynamic_linker='NetBSD ld.elf_so'
11029 ;;
11031 netbsd*)
11032 version_type=sunos
11033 need_lib_prefix=no
11034 need_version=no
11035 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11036 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11038 dynamic_linker='NetBSD (a.out) ld.so'
11039 else
11040 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11041 soname_spec='$libname$release$shared_ext$major'
11042 dynamic_linker='NetBSD ld.elf_so'
11043 fi
11044 shlibpath_var=LD_LIBRARY_PATH
11045 shlibpath_overrides_runpath=yes
11046 hardcode_into_libs=yes
11047 ;;
11049 newsos6)
11050 version_type=linux # correct to gnu/linux during the next big refactor
11051 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11052 shlibpath_var=LD_LIBRARY_PATH
11053 shlibpath_overrides_runpath=yes
11054 ;;
11056 *nto* | *qnx*)
11057 version_type=qnx
11058 need_lib_prefix=no
11059 need_version=no
11060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11061 soname_spec='$libname$release$shared_ext$major'
11062 shlibpath_var=LD_LIBRARY_PATH
11063 shlibpath_overrides_runpath=no
11064 hardcode_into_libs=yes
11065 dynamic_linker='ldqnx.so'
11066 ;;
11068 openbsd* | bitrig*)
11069 version_type=sunos
11070 sys_lib_dlsearch_path_spec=/usr/lib
11071 need_lib_prefix=no
11072 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11073 need_version=no
11074 else
11075 need_version=yes
11076 fi
11077 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11079 shlibpath_var=LD_LIBRARY_PATH
11080 shlibpath_overrides_runpath=yes
11081 ;;
11083 os2*)
11084 libname_spec='$name'
11085 version_type=windows
11086 shrext_cmds=.dll
11087 need_version=no
11088 need_lib_prefix=no
11089 # OS/2 can only load a DLL with a base name of 8 characters or less.
11090 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11091 v=$($ECHO $release$versuffix | tr -d .-);
11092 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11093 $ECHO $n$v`$shared_ext'
11094 library_names_spec='${libname}_dll.$libext'
11095 dynamic_linker='OS/2 ld.exe'
11096 shlibpath_var=BEGINLIBPATH
11097 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11098 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11099 postinstall_cmds='base_file=`basename \$file`~
11100 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11101 dldir=$destdir/`dirname \$dlpath`~
11102 test -d \$dldir || mkdir -p \$dldir~
11103 $install_prog $dir/$dlname \$dldir/$dlname~
11104 chmod a+x \$dldir/$dlname~
11105 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11106 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11107 fi'
11108 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11109 dlpath=$dir/\$dldll~
11110 $RM \$dlpath'
11111 ;;
11113 osf3* | osf4* | osf5*)
11114 version_type=osf
11115 need_lib_prefix=no
11116 need_version=no
11117 soname_spec='$libname$release$shared_ext$major'
11118 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11119 shlibpath_var=LD_LIBRARY_PATH
11120 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11122 ;;
11124 rdos*)
11125 dynamic_linker=no
11126 ;;
11128 solaris*)
11129 version_type=linux # correct to gnu/linux during the next big refactor
11130 need_lib_prefix=no
11131 need_version=no
11132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11133 soname_spec='$libname$release$shared_ext$major'
11134 shlibpath_var=LD_LIBRARY_PATH
11135 shlibpath_overrides_runpath=yes
11136 hardcode_into_libs=yes
11137 # ldd complains unless libraries are executable
11138 postinstall_cmds='chmod +x $lib'
11139 ;;
11141 sunos4*)
11142 version_type=sunos
11143 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11144 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11145 shlibpath_var=LD_LIBRARY_PATH
11146 shlibpath_overrides_runpath=yes
11147 if test yes = "$with_gnu_ld"; then
11148 need_lib_prefix=no
11149 fi
11150 need_version=yes
11151 ;;
11153 sysv4 | sysv4.3*)
11154 version_type=linux # correct to gnu/linux during the next big refactor
11155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11156 soname_spec='$libname$release$shared_ext$major'
11157 shlibpath_var=LD_LIBRARY_PATH
11158 case $host_vendor in
11159 sni)
11160 shlibpath_overrides_runpath=no
11161 need_lib_prefix=no
11162 runpath_var=LD_RUN_PATH
11163 ;;
11164 siemens)
11165 need_lib_prefix=no
11166 ;;
11167 motorola)
11168 need_lib_prefix=no
11169 need_version=no
11170 shlibpath_overrides_runpath=no
11171 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11172 ;;
11173 esac
11174 ;;
11176 sysv4*MP*)
11177 if test -d /usr/nec; then
11178 version_type=linux # correct to gnu/linux during the next big refactor
11179 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11180 soname_spec='$libname$shared_ext.$major'
11181 shlibpath_var=LD_LIBRARY_PATH
11182 fi
11183 ;;
11185 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11186 version_type=sco
11187 need_lib_prefix=no
11188 need_version=no
11189 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11190 soname_spec='$libname$release$shared_ext$major'
11191 shlibpath_var=LD_LIBRARY_PATH
11192 shlibpath_overrides_runpath=yes
11193 hardcode_into_libs=yes
11194 if test yes = "$with_gnu_ld"; then
11195 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11196 else
11197 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11198 case $host_os in
11199 sco3.2v5*)
11200 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11201 ;;
11202 esac
11203 fi
11204 sys_lib_dlsearch_path_spec='/usr/lib'
11205 ;;
11207 tpf*)
11208 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11209 version_type=linux # correct to gnu/linux during the next big refactor
11210 need_lib_prefix=no
11211 need_version=no
11212 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11213 shlibpath_var=LD_LIBRARY_PATH
11214 shlibpath_overrides_runpath=no
11215 hardcode_into_libs=yes
11216 ;;
11218 uts4*)
11219 version_type=linux # correct to gnu/linux during the next big refactor
11220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11221 soname_spec='$libname$release$shared_ext$major'
11222 shlibpath_var=LD_LIBRARY_PATH
11223 ;;
11225 *)
11226 dynamic_linker=no
11227 ;;
11228 esac
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11230 $as_echo "$dynamic_linker" >&6; }
11231 test no = "$dynamic_linker" && can_build_shared=no
11233 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11234 if test yes = "$GCC"; then
11235 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11236 fi
11238 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11239 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11240 fi
11242 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11243 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11244 fi
11246 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11247 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11249 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11250 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11252 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11253 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11352 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11353 hardcode_action=
11354 if test -n "$hardcode_libdir_flag_spec" ||
11355 test -n "$runpath_var" ||
11356 test yes = "$hardcode_automatic"; then
11358 # We can hardcode non-existent directories.
11359 if test no != "$hardcode_direct" &&
11360 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11361 # have to relink, otherwise we might link with an installed library
11362 # when we should be linking with a yet-to-be-installed one
11363 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11364 test no != "$hardcode_minus_L"; then
11365 # Linking always hardcodes the temporary library directory.
11366 hardcode_action=relink
11367 else
11368 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11369 hardcode_action=immediate
11370 fi
11371 else
11372 # We cannot hardcode anything, or else we can only hardcode existing
11373 # directories.
11374 hardcode_action=unsupported
11375 fi
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11377 $as_echo "$hardcode_action" >&6; }
11379 if test relink = "$hardcode_action" ||
11380 test yes = "$inherit_rpath"; then
11381 # Fast installation is not supported
11382 enable_fast_install=no
11383 elif test yes = "$shlibpath_overrides_runpath" ||
11384 test no = "$enable_shared"; then
11385 # Fast installation is not necessary
11386 enable_fast_install=needless
11387 fi
11394 if test yes != "$enable_dlopen"; then
11395 enable_dlopen=unknown
11396 enable_dlopen_self=unknown
11397 enable_dlopen_self_static=unknown
11398 else
11399 lt_cv_dlopen=no
11400 lt_cv_dlopen_libs=
11402 case $host_os in
11403 beos*)
11404 lt_cv_dlopen=load_add_on
11405 lt_cv_dlopen_libs=
11406 lt_cv_dlopen_self=yes
11407 ;;
11409 mingw* | pw32* | cegcc*)
11410 lt_cv_dlopen=LoadLibrary
11411 lt_cv_dlopen_libs=
11412 ;;
11414 cygwin*)
11415 lt_cv_dlopen=dlopen
11416 lt_cv_dlopen_libs=
11417 ;;
11419 darwin*)
11420 # if libdl is installed we need to link against it
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11422 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11423 if ${ac_cv_lib_dl_dlopen+:} false; then :
11424 $as_echo_n "(cached) " >&6
11425 else
11426 ac_check_lib_save_LIBS=$LIBS
11427 LIBS="-ldl $LIBS"
11428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11429 /* end confdefs.h. */
11431 /* Override any GCC internal prototype to avoid an error.
11432 Use char because int might match the return type of a GCC
11433 builtin and then its argument prototype would still apply. */
11434 #ifdef __cplusplus
11435 extern "C"
11436 #endif
11437 char dlopen ();
11438 int
11439 main ()
11440 {
11441 return dlopen ();
11442 ;
11443 return 0;
11444 }
11445 _ACEOF
11446 if ac_fn_c_try_link "$LINENO"; then :
11447 ac_cv_lib_dl_dlopen=yes
11448 else
11449 ac_cv_lib_dl_dlopen=no
11450 fi
11451 rm -f core conftest.err conftest.$ac_objext \
11452 conftest$ac_exeext conftest.$ac_ext
11453 LIBS=$ac_check_lib_save_LIBS
11454 fi
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11456 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11457 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11458 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11459 else
11461 lt_cv_dlopen=dyld
11462 lt_cv_dlopen_libs=
11463 lt_cv_dlopen_self=yes
11465 fi
11467 ;;
11469 tpf*)
11470 # Don't try to run any link tests for TPF. We know it's impossible
11471 # because TPF is a cross-compiler, and we know how we open DSOs.
11472 lt_cv_dlopen=dlopen
11473 lt_cv_dlopen_libs=
11474 lt_cv_dlopen_self=no
11475 ;;
11477 *)
11478 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11479 if test "x$ac_cv_func_shl_load" = xyes; then :
11480 lt_cv_dlopen=shl_load
11481 else
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11483 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11484 if ${ac_cv_lib_dld_shl_load+:} false; then :
11485 $as_echo_n "(cached) " >&6
11486 else
11487 ac_check_lib_save_LIBS=$LIBS
11488 LIBS="-ldld $LIBS"
11489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11490 /* end confdefs.h. */
11492 /* Override any GCC internal prototype to avoid an error.
11493 Use char because int might match the return type of a GCC
11494 builtin and then its argument prototype would still apply. */
11495 #ifdef __cplusplus
11496 extern "C"
11497 #endif
11498 char shl_load ();
11499 int
11500 main ()
11501 {
11502 return shl_load ();
11503 ;
11504 return 0;
11505 }
11506 _ACEOF
11507 if ac_fn_c_try_link "$LINENO"; then :
11508 ac_cv_lib_dld_shl_load=yes
11509 else
11510 ac_cv_lib_dld_shl_load=no
11511 fi
11512 rm -f core conftest.err conftest.$ac_objext \
11513 conftest$ac_exeext conftest.$ac_ext
11514 LIBS=$ac_check_lib_save_LIBS
11515 fi
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11517 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11518 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11519 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11520 else
11521 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11522 if test "x$ac_cv_func_dlopen" = xyes; then :
11523 lt_cv_dlopen=dlopen
11524 else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11526 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11527 if ${ac_cv_lib_dl_dlopen+:} false; then :
11528 $as_echo_n "(cached) " >&6
11529 else
11530 ac_check_lib_save_LIBS=$LIBS
11531 LIBS="-ldl $LIBS"
11532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11533 /* end confdefs.h. */
11535 /* Override any GCC internal prototype to avoid an error.
11536 Use char because int might match the return type of a GCC
11537 builtin and then its argument prototype would still apply. */
11538 #ifdef __cplusplus
11539 extern "C"
11540 #endif
11541 char dlopen ();
11542 int
11543 main ()
11544 {
11545 return dlopen ();
11546 ;
11547 return 0;
11548 }
11549 _ACEOF
11550 if ac_fn_c_try_link "$LINENO"; then :
11551 ac_cv_lib_dl_dlopen=yes
11552 else
11553 ac_cv_lib_dl_dlopen=no
11554 fi
11555 rm -f core conftest.err conftest.$ac_objext \
11556 conftest$ac_exeext conftest.$ac_ext
11557 LIBS=$ac_check_lib_save_LIBS
11558 fi
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11560 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11561 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11562 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11563 else
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11565 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11566 if ${ac_cv_lib_svld_dlopen+:} false; then :
11567 $as_echo_n "(cached) " >&6
11568 else
11569 ac_check_lib_save_LIBS=$LIBS
11570 LIBS="-lsvld $LIBS"
11571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572 /* end confdefs.h. */
11574 /* Override any GCC internal prototype to avoid an error.
11575 Use char because int might match the return type of a GCC
11576 builtin and then its argument prototype would still apply. */
11577 #ifdef __cplusplus
11578 extern "C"
11579 #endif
11580 char dlopen ();
11581 int
11582 main ()
11583 {
11584 return dlopen ();
11585 ;
11586 return 0;
11587 }
11588 _ACEOF
11589 if ac_fn_c_try_link "$LINENO"; then :
11590 ac_cv_lib_svld_dlopen=yes
11591 else
11592 ac_cv_lib_svld_dlopen=no
11593 fi
11594 rm -f core conftest.err conftest.$ac_objext \
11595 conftest$ac_exeext conftest.$ac_ext
11596 LIBS=$ac_check_lib_save_LIBS
11597 fi
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11599 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11600 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11601 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11602 else
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11604 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11605 if ${ac_cv_lib_dld_dld_link+:} false; then :
11606 $as_echo_n "(cached) " >&6
11607 else
11608 ac_check_lib_save_LIBS=$LIBS
11609 LIBS="-ldld $LIBS"
11610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h. */
11613 /* Override any GCC internal prototype to avoid an error.
11614 Use char because int might match the return type of a GCC
11615 builtin and then its argument prototype would still apply. */
11616 #ifdef __cplusplus
11617 extern "C"
11618 #endif
11619 char dld_link ();
11620 int
11621 main ()
11622 {
11623 return dld_link ();
11624 ;
11625 return 0;
11626 }
11627 _ACEOF
11628 if ac_fn_c_try_link "$LINENO"; then :
11629 ac_cv_lib_dld_dld_link=yes
11630 else
11631 ac_cv_lib_dld_dld_link=no
11632 fi
11633 rm -f core conftest.err conftest.$ac_objext \
11634 conftest$ac_exeext conftest.$ac_ext
11635 LIBS=$ac_check_lib_save_LIBS
11636 fi
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11638 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11639 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11640 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11641 fi
11644 fi
11647 fi
11650 fi
11653 fi
11656 fi
11658 ;;
11659 esac
11661 if test no = "$lt_cv_dlopen"; then
11662 enable_dlopen=no
11663 else
11664 enable_dlopen=yes
11665 fi
11667 case $lt_cv_dlopen in
11668 dlopen)
11669 save_CPPFLAGS=$CPPFLAGS
11670 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11672 save_LDFLAGS=$LDFLAGS
11673 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11675 save_LIBS=$LIBS
11676 LIBS="$lt_cv_dlopen_libs $LIBS"
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11679 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11680 if ${lt_cv_dlopen_self+:} false; then :
11681 $as_echo_n "(cached) " >&6
11682 else
11683 if test yes = "$cross_compiling"; then :
11684 lt_cv_dlopen_self=cross
11685 else
11686 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11687 lt_status=$lt_dlunknown
11688 cat > conftest.$ac_ext <<_LT_EOF
11689 #line $LINENO "configure"
11690 #include "confdefs.h"
11692 #if HAVE_DLFCN_H
11693 #include <dlfcn.h>
11694 #endif
11696 #include <stdio.h>
11698 #ifdef RTLD_GLOBAL
11699 # define LT_DLGLOBAL RTLD_GLOBAL
11700 #else
11701 # ifdef DL_GLOBAL
11702 # define LT_DLGLOBAL DL_GLOBAL
11703 # else
11704 # define LT_DLGLOBAL 0
11705 # endif
11706 #endif
11708 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11709 find out it does not work in some platform. */
11710 #ifndef LT_DLLAZY_OR_NOW
11711 # ifdef RTLD_LAZY
11712 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11713 # else
11714 # ifdef DL_LAZY
11715 # define LT_DLLAZY_OR_NOW DL_LAZY
11716 # else
11717 # ifdef RTLD_NOW
11718 # define LT_DLLAZY_OR_NOW RTLD_NOW
11719 # else
11720 # ifdef DL_NOW
11721 # define LT_DLLAZY_OR_NOW DL_NOW
11722 # else
11723 # define LT_DLLAZY_OR_NOW 0
11724 # endif
11725 # endif
11726 # endif
11727 # endif
11728 #endif
11730 /* When -fvisibility=hidden is used, assume the code has been annotated
11731 correspondingly for the symbols needed. */
11732 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11733 int fnord () __attribute__((visibility("default")));
11734 #endif
11736 int fnord () { return 42; }
11737 int main ()
11738 {
11739 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11740 int status = $lt_dlunknown;
11742 if (self)
11743 {
11744 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11745 else
11746 {
11747 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11748 else puts (dlerror ());
11749 }
11750 /* dlclose (self); */
11751 }
11752 else
11753 puts (dlerror ());
11755 return status;
11756 }
11757 _LT_EOF
11758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11759 (eval $ac_link) 2>&5
11760 ac_status=$?
11761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11762 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11763 (./conftest; exit; ) >&5 2>/dev/null
11764 lt_status=$?
11765 case x$lt_status in
11766 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11767 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11768 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11769 esac
11770 else :
11771 # compilation failed
11772 lt_cv_dlopen_self=no
11773 fi
11774 fi
11775 rm -fr conftest*
11778 fi
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11780 $as_echo "$lt_cv_dlopen_self" >&6; }
11782 if test yes = "$lt_cv_dlopen_self"; then
11783 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11785 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11786 if ${lt_cv_dlopen_self_static+:} false; then :
11787 $as_echo_n "(cached) " >&6
11788 else
11789 if test yes = "$cross_compiling"; then :
11790 lt_cv_dlopen_self_static=cross
11791 else
11792 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11793 lt_status=$lt_dlunknown
11794 cat > conftest.$ac_ext <<_LT_EOF
11795 #line $LINENO "configure"
11796 #include "confdefs.h"
11798 #if HAVE_DLFCN_H
11799 #include <dlfcn.h>
11800 #endif
11802 #include <stdio.h>
11804 #ifdef RTLD_GLOBAL
11805 # define LT_DLGLOBAL RTLD_GLOBAL
11806 #else
11807 # ifdef DL_GLOBAL
11808 # define LT_DLGLOBAL DL_GLOBAL
11809 # else
11810 # define LT_DLGLOBAL 0
11811 # endif
11812 #endif
11814 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11815 find out it does not work in some platform. */
11816 #ifndef LT_DLLAZY_OR_NOW
11817 # ifdef RTLD_LAZY
11818 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11819 # else
11820 # ifdef DL_LAZY
11821 # define LT_DLLAZY_OR_NOW DL_LAZY
11822 # else
11823 # ifdef RTLD_NOW
11824 # define LT_DLLAZY_OR_NOW RTLD_NOW
11825 # else
11826 # ifdef DL_NOW
11827 # define LT_DLLAZY_OR_NOW DL_NOW
11828 # else
11829 # define LT_DLLAZY_OR_NOW 0
11830 # endif
11831 # endif
11832 # endif
11833 # endif
11834 #endif
11836 /* When -fvisibility=hidden is used, assume the code has been annotated
11837 correspondingly for the symbols needed. */
11838 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11839 int fnord () __attribute__((visibility("default")));
11840 #endif
11842 int fnord () { return 42; }
11843 int main ()
11844 {
11845 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11846 int status = $lt_dlunknown;
11848 if (self)
11849 {
11850 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11851 else
11852 {
11853 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11854 else puts (dlerror ());
11855 }
11856 /* dlclose (self); */
11857 }
11858 else
11859 puts (dlerror ());
11861 return status;
11862 }
11863 _LT_EOF
11864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11865 (eval $ac_link) 2>&5
11866 ac_status=$?
11867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11868 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11869 (./conftest; exit; ) >&5 2>/dev/null
11870 lt_status=$?
11871 case x$lt_status in
11872 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11873 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11874 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11875 esac
11876 else :
11877 # compilation failed
11878 lt_cv_dlopen_self_static=no
11879 fi
11880 fi
11881 rm -fr conftest*
11884 fi
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11886 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11887 fi
11889 CPPFLAGS=$save_CPPFLAGS
11890 LDFLAGS=$save_LDFLAGS
11891 LIBS=$save_LIBS
11892 ;;
11893 esac
11895 case $lt_cv_dlopen_self in
11896 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11897 *) enable_dlopen_self=unknown ;;
11898 esac
11900 case $lt_cv_dlopen_self_static in
11901 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11902 *) enable_dlopen_self_static=unknown ;;
11903 esac
11904 fi
11922 striplib=
11923 old_striplib=
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11925 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11926 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11927 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11928 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11930 $as_echo "yes" >&6; }
11931 else
11932 # FIXME - insert some real tests, host_os isn't really good enough
11933 case $host_os in
11934 darwin*)
11935 if test -n "$STRIP"; then
11936 striplib="$STRIP -x"
11937 old_striplib="$STRIP -S"
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11939 $as_echo "yes" >&6; }
11940 else
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942 $as_echo "no" >&6; }
11943 fi
11944 ;;
11945 *)
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947 $as_echo "no" >&6; }
11948 ;;
11949 esac
11950 fi
11963 # Report what library types will actually be built
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11965 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11967 $as_echo "$can_build_shared" >&6; }
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11970 $as_echo_n "checking whether to build shared libraries... " >&6; }
11971 test no = "$can_build_shared" && enable_shared=no
11973 # On AIX, shared libraries and static libraries use the same namespace, and
11974 # are all built from PIC.
11975 case $host_os in
11976 aix3*)
11977 test yes = "$enable_shared" && enable_static=no
11978 if test -n "$RANLIB"; then
11979 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11980 postinstall_cmds='$RANLIB $lib'
11981 fi
11982 ;;
11984 aix[4-9]*)
11985 if test ia64 != "$host_cpu"; then
11986 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11987 yes,aix,yes) ;; # shared object as lib.so file only
11988 yes,svr4,*) ;; # shared object as lib.so archive member only
11989 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11990 esac
11991 fi
11992 ;;
11993 esac
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11995 $as_echo "$enable_shared" >&6; }
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11998 $as_echo_n "checking whether to build static libraries... " >&6; }
11999 # Make sure either enable_shared or enable_static is yes.
12000 test yes = "$enable_shared" || enable_static=yes
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12002 $as_echo "$enable_static" >&6; }
12007 fi
12008 ac_ext=c
12009 ac_cpp='$CPP $CPPFLAGS'
12010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12014 CC=$lt_save_CC
12030 ac_config_commands="$ac_config_commands libtool"
12035 # Only expand once:
12040 # Checks for programs.
12041 ac_ext=c
12042 ac_cpp='$CPP $CPPFLAGS'
12043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12046 if test -n "$ac_tool_prefix"; then
12047 for ac_prog in gcc
12048 do
12049 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12050 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12052 $as_echo_n "checking for $ac_word... " >&6; }
12053 if ${ac_cv_prog_CC+:} false; then :
12054 $as_echo_n "(cached) " >&6
12055 else
12056 if test -n "$CC"; then
12057 ac_cv_prog_CC="$CC" # Let the user override the test.
12058 else
12059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12060 for as_dir in $PATH
12061 do
12062 IFS=$as_save_IFS
12063 test -z "$as_dir" && as_dir=.
12064 for ac_exec_ext in '' $ac_executable_extensions; do
12065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12066 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12068 break 2
12069 fi
12070 done
12071 done
12072 IFS=$as_save_IFS
12074 fi
12075 fi
12076 CC=$ac_cv_prog_CC
12077 if test -n "$CC"; then
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12079 $as_echo "$CC" >&6; }
12080 else
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082 $as_echo "no" >&6; }
12083 fi
12086 test -n "$CC" && break
12087 done
12088 fi
12089 if test -z "$CC"; then
12090 ac_ct_CC=$CC
12091 for ac_prog in gcc
12092 do
12093 # Extract the first word of "$ac_prog", so it can be a program name with args.
12094 set dummy $ac_prog; ac_word=$2
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12096 $as_echo_n "checking for $ac_word... " >&6; }
12097 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12098 $as_echo_n "(cached) " >&6
12099 else
12100 if test -n "$ac_ct_CC"; then
12101 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12102 else
12103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12104 for as_dir in $PATH
12105 do
12106 IFS=$as_save_IFS
12107 test -z "$as_dir" && as_dir=.
12108 for ac_exec_ext in '' $ac_executable_extensions; do
12109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12110 ac_cv_prog_ac_ct_CC="$ac_prog"
12111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12112 break 2
12113 fi
12114 done
12115 done
12116 IFS=$as_save_IFS
12118 fi
12119 fi
12120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12121 if test -n "$ac_ct_CC"; then
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12123 $as_echo "$ac_ct_CC" >&6; }
12124 else
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126 $as_echo "no" >&6; }
12127 fi
12130 test -n "$ac_ct_CC" && break
12131 done
12133 if test "x$ac_ct_CC" = x; then
12134 CC=""
12135 else
12136 case $cross_compiling:$ac_tool_warned in
12137 yes:)
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12140 ac_tool_warned=yes ;;
12141 esac
12142 CC=$ac_ct_CC
12143 fi
12144 fi
12147 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12149 as_fn_error $? "no acceptable C compiler found in \$PATH
12150 See \`config.log' for more details" "$LINENO" 5; }
12152 # Provide some information about the compiler.
12153 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12154 set X $ac_compile
12155 ac_compiler=$2
12156 for ac_option in --version -v -V -qversion; do
12157 { { ac_try="$ac_compiler $ac_option >&5"
12158 case "(($ac_try" in
12159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12160 *) ac_try_echo=$ac_try;;
12161 esac
12162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12163 $as_echo "$ac_try_echo"; } >&5
12164 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12165 ac_status=$?
12166 if test -s conftest.err; then
12167 sed '10a\
12168 ... rest of stderr output deleted ...
12169 10q' conftest.err >conftest.er1
12170 cat conftest.er1 >&5
12171 fi
12172 rm -f conftest.er1 conftest.err
12173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12174 test $ac_status = 0; }
12175 done
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12178 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12179 if ${ac_cv_c_compiler_gnu+:} false; then :
12180 $as_echo_n "(cached) " >&6
12181 else
12182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12183 /* end confdefs.h. */
12185 int
12186 main ()
12187 {
12188 #ifndef __GNUC__
12189 choke me
12190 #endif
12192 ;
12193 return 0;
12194 }
12195 _ACEOF
12196 if ac_fn_c_try_compile "$LINENO"; then :
12197 ac_compiler_gnu=yes
12198 else
12199 ac_compiler_gnu=no
12200 fi
12201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12202 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12204 fi
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12206 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12207 if test $ac_compiler_gnu = yes; then
12208 GCC=yes
12209 else
12210 GCC=
12211 fi
12212 ac_test_CFLAGS=${CFLAGS+set}
12213 ac_save_CFLAGS=$CFLAGS
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12215 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12216 if ${ac_cv_prog_cc_g+:} false; then :
12217 $as_echo_n "(cached) " >&6
12218 else
12219 ac_save_c_werror_flag=$ac_c_werror_flag
12220 ac_c_werror_flag=yes
12221 ac_cv_prog_cc_g=no
12222 CFLAGS="-g"
12223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12224 /* end confdefs.h. */
12226 int
12227 main ()
12228 {
12230 ;
12231 return 0;
12232 }
12233 _ACEOF
12234 if ac_fn_c_try_compile "$LINENO"; then :
12235 ac_cv_prog_cc_g=yes
12236 else
12237 CFLAGS=""
12238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12239 /* end confdefs.h. */
12241 int
12242 main ()
12243 {
12245 ;
12246 return 0;
12247 }
12248 _ACEOF
12249 if ac_fn_c_try_compile "$LINENO"; then :
12251 else
12252 ac_c_werror_flag=$ac_save_c_werror_flag
12253 CFLAGS="-g"
12254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255 /* end confdefs.h. */
12257 int
12258 main ()
12259 {
12261 ;
12262 return 0;
12263 }
12264 _ACEOF
12265 if ac_fn_c_try_compile "$LINENO"; then :
12266 ac_cv_prog_cc_g=yes
12267 fi
12268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12269 fi
12270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12271 fi
12272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12273 ac_c_werror_flag=$ac_save_c_werror_flag
12274 fi
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12276 $as_echo "$ac_cv_prog_cc_g" >&6; }
12277 if test "$ac_test_CFLAGS" = set; then
12278 CFLAGS=$ac_save_CFLAGS
12279 elif test $ac_cv_prog_cc_g = yes; then
12280 if test "$GCC" = yes; then
12281 CFLAGS="-g -O2"
12282 else
12283 CFLAGS="-g"
12284 fi
12285 else
12286 if test "$GCC" = yes; then
12287 CFLAGS="-O2"
12288 else
12289 CFLAGS=
12290 fi
12291 fi
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12293 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12294 if ${ac_cv_prog_cc_c89+:} false; then :
12295 $as_echo_n "(cached) " >&6
12296 else
12297 ac_cv_prog_cc_c89=no
12298 ac_save_CC=$CC
12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h. */
12301 #include <stdarg.h>
12302 #include <stdio.h>
12303 struct stat;
12304 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12305 struct buf { int x; };
12306 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12307 static char *e (p, i)
12308 char **p;
12309 int i;
12310 {
12311 return p[i];
12312 }
12313 static char *f (char * (*g) (char **, int), char **p, ...)
12314 {
12315 char *s;
12316 va_list v;
12317 va_start (v,p);
12318 s = g (p, va_arg (v,int));
12319 va_end (v);
12320 return s;
12321 }
12323 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12324 function prototypes and stuff, but not '\xHH' hex character constants.
12325 These don't provoke an error unfortunately, instead are silently treated
12326 as 'x'. The following induces an error, until -std is added to get
12327 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12328 array size at least. It's necessary to write '\x00'==0 to get something
12329 that's true only with -std. */
12330 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12332 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12333 inside strings and character constants. */
12334 #define FOO(x) 'x'
12335 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12337 int test (int i, double x);
12338 struct s1 {int (*f) (int a);};
12339 struct s2 {int (*f) (double a);};
12340 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12341 int argc;
12342 char **argv;
12343 int
12344 main ()
12345 {
12346 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12347 ;
12348 return 0;
12349 }
12350 _ACEOF
12351 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12352 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12353 do
12354 CC="$ac_save_CC $ac_arg"
12355 if ac_fn_c_try_compile "$LINENO"; then :
12356 ac_cv_prog_cc_c89=$ac_arg
12357 fi
12358 rm -f core conftest.err conftest.$ac_objext
12359 test "x$ac_cv_prog_cc_c89" != "xno" && break
12360 done
12361 rm -f conftest.$ac_ext
12362 CC=$ac_save_CC
12364 fi
12365 # AC_CACHE_VAL
12366 case "x$ac_cv_prog_cc_c89" in
12367 x)
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12369 $as_echo "none needed" >&6; } ;;
12370 xno)
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12372 $as_echo "unsupported" >&6; } ;;
12373 *)
12374 CC="$CC $ac_cv_prog_cc_c89"
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12376 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12377 esac
12378 if test "x$ac_cv_prog_cc_c89" != xno; then :
12380 fi
12382 ac_ext=c
12383 ac_cpp='$CPP $CPPFLAGS'
12384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12388 ac_ext=c
12389 ac_cpp='$CPP $CPPFLAGS'
12390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12394 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12395 if ${am_cv_prog_cc_c_o+:} false; then :
12396 $as_echo_n "(cached) " >&6
12397 else
12398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399 /* end confdefs.h. */
12401 int
12402 main ()
12403 {
12405 ;
12406 return 0;
12407 }
12408 _ACEOF
12409 # Make sure it works both with $CC and with simple cc.
12410 # Following AC_PROG_CC_C_O, we do the test twice because some
12411 # compilers refuse to overwrite an existing .o file with -o,
12412 # though they will create one.
12413 am_cv_prog_cc_c_o=yes
12414 for am_i in 1 2; do
12415 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12416 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12417 ac_status=$?
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } \
12420 && test -f conftest2.$ac_objext; then
12421 : OK
12422 else
12423 am_cv_prog_cc_c_o=no
12424 break
12425 fi
12426 done
12427 rm -f core conftest*
12428 unset am_i
12429 fi
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12431 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12432 if test "$am_cv_prog_cc_c_o" != yes; then
12433 # Losing compiler, so override with the script.
12434 # FIXME: It is wrong to rewrite CC.
12435 # But if we don't then we get into trouble of one sort or another.
12436 # A longer-term fix would be to have automake use am__CC in this case,
12437 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12438 CC="$am_aux_dir/compile $CC"
12439 fi
12440 ac_ext=c
12441 ac_cpp='$CPP $CPPFLAGS'
12442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12447 depcc="$CC" am_compiler_list=
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12450 $as_echo_n "checking dependency style of $depcc... " >&6; }
12451 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12452 $as_echo_n "(cached) " >&6
12453 else
12454 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12455 # We make a subdir and do the tests there. Otherwise we can end up
12456 # making bogus files that we don't know about and never remove. For
12457 # instance it was reported that on HP-UX the gcc test will end up
12458 # making a dummy file named 'D' -- because '-MD' means "put the output
12459 # in D".
12460 rm -rf conftest.dir
12461 mkdir conftest.dir
12462 # Copy depcomp to subdir because otherwise we won't find it if we're
12463 # using a relative directory.
12464 cp "$am_depcomp" conftest.dir
12465 cd conftest.dir
12466 # We will build objects and dependencies in a subdirectory because
12467 # it helps to detect inapplicable dependency modes. For instance
12468 # both Tru64's cc and ICC support -MD to output dependencies as a
12469 # side effect of compilation, but ICC will put the dependencies in
12470 # the current directory while Tru64 will put them in the object
12471 # directory.
12472 mkdir sub
12474 am_cv_CC_dependencies_compiler_type=none
12475 if test "$am_compiler_list" = ""; then
12476 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12477 fi
12478 am__universal=false
12479 case " $depcc " in #(
12480 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12481 esac
12483 for depmode in $am_compiler_list; do
12484 # Setup a source with many dependencies, because some compilers
12485 # like to wrap large dependency lists on column 80 (with \), and
12486 # we should not choose a depcomp mode which is confused by this.
12487 #
12488 # We need to recreate these files for each test, as the compiler may
12489 # overwrite some of them when testing with obscure command lines.
12490 # This happens at least with the AIX C compiler.
12491 : > sub/conftest.c
12492 for i in 1 2 3 4 5 6; do
12493 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12494 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12495 # Solaris 10 /bin/sh.
12496 echo '/* dummy */' > sub/conftst$i.h
12497 done
12498 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12500 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12501 # mode. It turns out that the SunPro C++ compiler does not properly
12502 # handle '-M -o', and we need to detect this. Also, some Intel
12503 # versions had trouble with output in subdirs.
12504 am__obj=sub/conftest.${OBJEXT-o}
12505 am__minus_obj="-o $am__obj"
12506 case $depmode in
12507 gcc)
12508 # This depmode causes a compiler race in universal mode.
12509 test "$am__universal" = false || continue
12510 ;;
12511 nosideeffect)
12512 # After this tag, mechanisms are not by side-effect, so they'll
12513 # only be used when explicitly requested.
12514 if test "x$enable_dependency_tracking" = xyes; then
12515 continue
12516 else
12517 break
12518 fi
12519 ;;
12520 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12521 # This compiler won't grok '-c -o', but also, the minuso test has
12522 # not run yet. These depmodes are late enough in the game, and
12523 # so weak that their functioning should not be impacted.
12524 am__obj=conftest.${OBJEXT-o}
12525 am__minus_obj=
12526 ;;
12527 none) break ;;
12528 esac
12529 if depmode=$depmode \
12530 source=sub/conftest.c object=$am__obj \
12531 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12532 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12533 >/dev/null 2>conftest.err &&
12534 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12535 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12536 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12537 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12538 # icc doesn't choke on unknown options, it will just issue warnings
12539 # or remarks (even with -Werror). So we grep stderr for any message
12540 # that says an option was ignored or not supported.
12541 # When given -MP, icc 7.0 and 7.1 complain thusly:
12542 # icc: Command line warning: ignoring option '-M'; no argument required
12543 # The diagnosis changed in icc 8.0:
12544 # icc: Command line remark: option '-MP' not supported
12545 if (grep 'ignoring option' conftest.err ||
12546 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12547 am_cv_CC_dependencies_compiler_type=$depmode
12548 break
12549 fi
12550 fi
12551 done
12553 cd ..
12554 rm -rf conftest.dir
12555 else
12556 am_cv_CC_dependencies_compiler_type=none
12557 fi
12559 fi
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12561 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12562 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12564 if
12565 test "x$enable_dependency_tracking" != xno \
12566 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12567 am__fastdepCC_TRUE=
12568 am__fastdepCC_FALSE='#'
12569 else
12570 am__fastdepCC_TRUE='#'
12571 am__fastdepCC_FALSE=
12572 fi
12577 # Checks for header files.
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12579 $as_echo_n "checking for ANSI C header files... " >&6; }
12580 if ${ac_cv_header_stdc+:} false; then :
12581 $as_echo_n "(cached) " >&6
12582 else
12583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12584 /* end confdefs.h. */
12585 #include <stdlib.h>
12586 #include <stdarg.h>
12587 #include <string.h>
12588 #include <float.h>
12590 int
12591 main ()
12592 {
12594 ;
12595 return 0;
12596 }
12597 _ACEOF
12598 if ac_fn_c_try_compile "$LINENO"; then :
12599 ac_cv_header_stdc=yes
12600 else
12601 ac_cv_header_stdc=no
12602 fi
12603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12605 if test $ac_cv_header_stdc = yes; then
12606 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h. */
12609 #include <string.h>
12611 _ACEOF
12612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12613 $EGREP "memchr" >/dev/null 2>&1; then :
12615 else
12616 ac_cv_header_stdc=no
12617 fi
12618 rm -f conftest*
12620 fi
12622 if test $ac_cv_header_stdc = yes; then
12623 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625 /* end confdefs.h. */
12626 #include <stdlib.h>
12628 _ACEOF
12629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12630 $EGREP "free" >/dev/null 2>&1; then :
12632 else
12633 ac_cv_header_stdc=no
12634 fi
12635 rm -f conftest*
12637 fi
12639 if test $ac_cv_header_stdc = yes; then
12640 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12641 if test "$cross_compiling" = yes; then :
12642 :
12643 else
12644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12645 /* end confdefs.h. */
12646 #include <ctype.h>
12647 #include <stdlib.h>
12648 #if ((' ' & 0x0FF) == 0x020)
12649 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12650 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12651 #else
12652 # define ISLOWER(c) \
12653 (('a' <= (c) && (c) <= 'i') \
12654 || ('j' <= (c) && (c) <= 'r') \
12655 || ('s' <= (c) && (c) <= 'z'))
12656 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12657 #endif
12659 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12660 int
12661 main ()
12662 {
12663 int i;
12664 for (i = 0; i < 256; i++)
12665 if (XOR (islower (i), ISLOWER (i))
12666 || toupper (i) != TOUPPER (i))
12667 return 2;
12668 return 0;
12669 }
12670 _ACEOF
12671 if ac_fn_c_try_run "$LINENO"; then :
12673 else
12674 ac_cv_header_stdc=no
12675 fi
12676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12677 conftest.$ac_objext conftest.beam conftest.$ac_ext
12678 fi
12680 fi
12681 fi
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12683 $as_echo "$ac_cv_header_stdc" >&6; }
12684 if test $ac_cv_header_stdc = yes; then
12686 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12688 fi
12690 for ac_header in fcntl.h stdlib.h string.h sys/param.h sys/socket.h sys/time.h unistd.h
12691 do :
12692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12693 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12694 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12695 cat >>confdefs.h <<_ACEOF
12696 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12697 _ACEOF
12699 fi
12701 done
12704 # Export CFLAGS and LDFLAGS to Makefile(s)
12708 # Add config variables/options and check them
12709 # Note that 6614 isn't documented and, though it may work, is planned for removal
12716 # Test platform variable for setting
12717 if test "x$PLATFORM" = "xOMAPL138"; then :
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: PLATFORM is set to ${PLATFORM}" >&5
12719 $as_echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
12720 else
12721 if test "x$PLATFORM" = "x66AK2E"; then :
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: PLATFORM is set to ${PLATFORM}" >&5
12723 $as_echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
12724 else
12725 if test "x$PLATFORM" = "xTCI6614"; then :
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: PLATFORM is set to ${PLATFORM}" >&5
12727 $as_echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
12728 else
12729 if test "x$PLATFORM" = "xTCI6630"; then :
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: PLATFORM is set to ${PLATFORM}" >&5
12731 $as_echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
12732 else
12733 if test "x$PLATFORM" = "xTCI6636"; then :
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: PLATFORM is set to ${PLATFORM}" >&5
12735 $as_echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
12736 else
12737 if test "x$PLATFORM" = "xTCI6638"; then :
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: PLATFORM is set to ${PLATFORM}" >&5
12739 $as_echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
12740 else
12741 if test "x$PLATFORM" = "x66AK2G"; then :
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: PLATFORM is set to ${PLATFORM}" >&5
12743 $as_echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
12744 else
12745 if test "x$PLATFORM" = "xOMAP54XX"; then :
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: PLATFORM is set to ${PLATFORM}" >&5
12747 $as_echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
12748 else
12749 if test "x$PLATFORM" = "xDRA7XX"; then :
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: PLATFORM is set to ${PLATFORM}" >&5
12751 $as_echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
12752 else
12753 if test "x$PLATFORM" = "xAM65XX"; then :
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: PLATFORM is set to ${PLATFORM}" >&5
12755 $as_echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
12756 else
12757 if test "x$PLATFORM" = "x"; then :
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: PLATFORM is not set. All supported platforms will be built ...." >&5
12759 $as_echo "$as_me: PLATFORM is not set. All supported platforms will be built ...." >&6;}
12760 else
12761 as_fn_error $? "PLATFORM is set to \"${PLATFORM}\": run ./configure --help for available PLATFORM options" "$LINENO" 5
12762 fi
12763 fi
12764 fi
12765 fi
12766 fi
12767 fi
12768 fi
12769 fi
12770 fi
12771 fi
12772 fi
12774 # If platform is specified, make sure at least one of
12775 # KERNEL_INSTALL_DIR or AF_MSG are set.
12776 if test -n "$PLATFORM" -a -z "$KERNEL_INSTALL_DIR" -a -z "$AF_RPMSG"; then :
12777 as_fn_error $? "Must set at least one of KERNEL_INSTALL_DIR or AF_RPMSG" "$LINENO" 5
12778 fi
12780 # Ignore KERNEL path when no platform is set
12781 if test "x$PLATFORM" = "x"; then :
12782 KERNEL_INSTALL_DIR=
12783 fi
12784 if test "x$PLATFORM" = "x"; then :
12785 DRM_PREFIX=
12786 fi
12787 if test "x$PLATFORM" = "x"; then :
12788 CMEM_INSTALL_DIR=
12789 fi
12791 # Export optional user variable to Makefile(s)
12798 # Define specific variables to be used in Makefile.am
12799 if test "x$PLATFORM" = "xOMAPL138"; then
12800 OMAPL138_TRUE=
12801 OMAPL138_FALSE='#'
12802 else
12803 OMAPL138_TRUE='#'
12804 OMAPL138_FALSE=
12805 fi
12807 if test "x$PLATFORM" = "x66AK2E"; then
12808 C66AK2E_TRUE=
12809 C66AK2E_FALSE='#'
12810 else
12811 C66AK2E_TRUE='#'
12812 C66AK2E_FALSE=
12813 fi
12815 if test "x$PLATFORM" = "xTCI6614"; then
12816 TCI6614_TRUE=
12817 TCI6614_FALSE='#'
12818 else
12819 TCI6614_TRUE='#'
12820 TCI6614_FALSE=
12821 fi
12823 if test "x$PLATFORM" = "xTCI6630"; then
12824 TCI6630_TRUE=
12825 TCI6630_FALSE='#'
12826 else
12827 TCI6630_TRUE='#'
12828 TCI6630_FALSE=
12829 fi
12831 if test "x$PLATFORM" = "xTCI6636"; then
12832 TCI6636_TRUE=
12833 TCI6636_FALSE='#'
12834 else
12835 TCI6636_TRUE='#'
12836 TCI6636_FALSE=
12837 fi
12839 if test "x$PLATFORM" = "xTCI6638"; then
12840 TCI6638_TRUE=
12841 TCI6638_FALSE='#'
12842 else
12843 TCI6638_TRUE='#'
12844 TCI6638_FALSE=
12845 fi
12847 if test "x$PLATFORM" = "x66AK2G"; then
12848 C66AK2G_TRUE=
12849 C66AK2G_FALSE='#'
12850 else
12851 C66AK2G_TRUE='#'
12852 C66AK2G_FALSE=
12853 fi
12855 if test "x$PLATFORM" = "xOMAP54XX"; then
12856 OMAP54XX_SMP_TRUE=
12857 OMAP54XX_SMP_FALSE='#'
12858 else
12859 OMAP54XX_SMP_TRUE='#'
12860 OMAP54XX_SMP_FALSE=
12861 fi
12863 if test "x$PLATFORM" = "xDRA7XX"; then
12864 DRA7XX_TRUE=
12865 DRA7XX_FALSE='#'
12866 else
12867 DRA7XX_TRUE='#'
12868 DRA7XX_FALSE=
12869 fi
12871 if test "x$PLATFORM" = "xAM65XX"; then
12872 AM65XX_TRUE=
12873 AM65XX_FALSE='#'
12874 else
12875 AM65XX_TRUE='#'
12876 AM65XX_FALSE=
12877 fi
12879 if test "x$CMEM_INSTALL_DIR" != "x"; then
12880 CMEM_TRUE=
12881 CMEM_FALSE='#'
12882 else
12883 CMEM_TRUE='#'
12884 CMEM_FALSE=
12885 fi
12887 if test "x$KERNEL_INSTALL_DIR" != "x"; then
12888 KDIR_TRUE=
12889 KDIR_FALSE='#'
12890 else
12891 KDIR_TRUE='#'
12892 KDIR_FALSE=
12893 fi
12895 if test -n "$KERNEL_INSTALL_DIR"; then
12896 KERNEL_INSTALL_DIR_TRUE=
12897 KERNEL_INSTALL_DIR_FALSE='#'
12898 else
12899 KERNEL_INSTALL_DIR_TRUE='#'
12900 KERNEL_INSTALL_DIR_FALSE=
12901 fi
12903 if test "x$DRM_PREFIX" != "x"; then
12904 DRM_TRUE=
12905 DRM_FALSE='#'
12906 else
12907 DRM_TRUE='#'
12908 DRM_FALSE=
12909 fi
12911 if test -n "$AF_RPMSG"; then
12912 AF_RPMSG_TRUE=
12913 AF_RPMSG_FALSE='#'
12914 else
12915 AF_RPMSG_TRUE='#'
12916 AF_RPMSG_FALSE=
12917 fi
12920 # Generate Makefile(s)
12921 ac_config_files="$ac_config_files Makefile"
12923 ac_config_files="$ac_config_files linux/etc/Makefile"
12925 ac_config_files="$ac_config_files linux/src/utils/Makefile"
12927 ac_config_files="$ac_config_files linux/src/utils/libtiipcutils.pc"
12929 ac_config_files="$ac_config_files linux/src/api/Makefile"
12931 ac_config_files="$ac_config_files linux/src/api/libtiipc.pc"
12933 ac_config_files="$ac_config_files linux/src/mm/Makefile"
12935 ac_config_files="$ac_config_files linux/src/mm/libmmrpc.pc"
12937 ac_config_files="$ac_config_files linux/src/daemon/Makefile"
12939 ac_config_files="$ac_config_files linux/src/tests/Makefile"
12941 ac_config_files="$ac_config_files linux/src/transport/Makefile"
12943 cat >confcache <<\_ACEOF
12944 # This file is a shell script that caches the results of configure
12945 # tests run on this system so they can be shared between configure
12946 # scripts and configure runs, see configure's option --config-cache.
12947 # It is not useful on other systems. If it contains results you don't
12948 # want to keep, you may remove or edit it.
12949 #
12950 # config.status only pays attention to the cache file if you give it
12951 # the --recheck option to rerun configure.
12952 #
12953 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12954 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12955 # following values.
12957 _ACEOF
12959 # The following way of writing the cache mishandles newlines in values,
12960 # but we know of no workaround that is simple, portable, and efficient.
12961 # So, we kill variables containing newlines.
12962 # Ultrix sh set writes to stderr and can't be redirected directly,
12963 # and sets the high bit in the cache file unless we assign to the vars.
12964 (
12965 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12966 eval ac_val=\$$ac_var
12967 case $ac_val in #(
12968 *${as_nl}*)
12969 case $ac_var in #(
12970 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12971 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12972 esac
12973 case $ac_var in #(
12974 _ | IFS | as_nl) ;; #(
12975 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12976 *) { eval $ac_var=; unset $ac_var;} ;;
12977 esac ;;
12978 esac
12979 done
12981 (set) 2>&1 |
12982 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12983 *${as_nl}ac_space=\ *)
12984 # `set' does not quote correctly, so add quotes: double-quote
12985 # substitution turns \\\\ into \\, and sed turns \\ into \.
12986 sed -n \
12987 "s/'/'\\\\''/g;
12988 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12989 ;; #(
12990 *)
12991 # `set' quotes correctly as required by POSIX, so do not add quotes.
12992 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12993 ;;
12994 esac |
12995 sort
12996 ) |
12997 sed '
12998 /^ac_cv_env_/b end
12999 t clear
13000 :clear
13001 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13002 t end
13003 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13004 :end' >>confcache
13005 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13006 if test -w "$cache_file"; then
13007 if test "x$cache_file" != "x/dev/null"; then
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13009 $as_echo "$as_me: updating cache $cache_file" >&6;}
13010 if test ! -f "$cache_file" || test -h "$cache_file"; then
13011 cat confcache >"$cache_file"
13012 else
13013 case $cache_file in #(
13014 */* | ?:*)
13015 mv -f confcache "$cache_file"$$ &&
13016 mv -f "$cache_file"$$ "$cache_file" ;; #(
13017 *)
13018 mv -f confcache "$cache_file" ;;
13019 esac
13020 fi
13021 fi
13022 else
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13024 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13025 fi
13026 fi
13027 rm -f confcache
13029 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13030 # Let make expand exec_prefix.
13031 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13033 # Transform confdefs.h into DEFS.
13034 # Protect against shell expansion while executing Makefile rules.
13035 # Protect against Makefile macro expansion.
13036 #
13037 # If the first sed substitution is executed (which looks for macros that
13038 # take arguments), then branch to the quote section. Otherwise,
13039 # look for a macro that doesn't take arguments.
13040 ac_script='
13041 :mline
13042 /\\$/{
13043 N
13044 s,\\\n,,
13045 b mline
13046 }
13047 t clear
13048 :clear
13049 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
13050 t quote
13051 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
13052 t quote
13053 b any
13054 :quote
13055 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13056 s/\[/\\&/g
13057 s/\]/\\&/g
13058 s/\$/$$/g
13059 H
13060 :any
13061 ${
13062 g
13063 s/^\n//
13064 s/\n/ /g
13065 p
13066 }
13067 '
13068 DEFS=`sed -n "$ac_script" confdefs.h`
13071 ac_libobjs=
13072 ac_ltlibobjs=
13073 U=
13074 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13075 # 1. Remove the extension, and $U if already installed.
13076 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13077 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13078 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13079 # will be set to the directory where LIBOBJS objects are built.
13080 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13081 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13082 done
13083 LIBOBJS=$ac_libobjs
13085 LTLIBOBJS=$ac_ltlibobjs
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13089 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13090 if test -n "$am_sleep_pid"; then
13091 # Hide warnings about reused PIDs.
13092 wait $am_sleep_pid 2>/dev/null
13093 fi
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13095 $as_echo "done" >&6; }
13096 if test -n "$EXEEXT"; then
13097 am__EXEEXT_TRUE=
13098 am__EXEEXT_FALSE='#'
13099 else
13100 am__EXEEXT_TRUE='#'
13101 am__EXEEXT_FALSE=
13102 fi
13104 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13105 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13107 fi
13108 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13109 as_fn_error $? "conditional \"AMDEP\" was never defined.
13110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13111 fi
13112 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13113 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13115 fi
13116 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13117 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13119 fi
13120 if test -z "${OMAPL138_TRUE}" && test -z "${OMAPL138_FALSE}"; then
13121 as_fn_error $? "conditional \"OMAPL138\" was never defined.
13122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13123 fi
13124 if test -z "${C66AK2E_TRUE}" && test -z "${C66AK2E_FALSE}"; then
13125 as_fn_error $? "conditional \"C66AK2E\" was never defined.
13126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13127 fi
13128 if test -z "${TCI6614_TRUE}" && test -z "${TCI6614_FALSE}"; then
13129 as_fn_error $? "conditional \"TCI6614\" was never defined.
13130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13131 fi
13132 if test -z "${TCI6630_TRUE}" && test -z "${TCI6630_FALSE}"; then
13133 as_fn_error $? "conditional \"TCI6630\" was never defined.
13134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13135 fi
13136 if test -z "${TCI6636_TRUE}" && test -z "${TCI6636_FALSE}"; then
13137 as_fn_error $? "conditional \"TCI6636\" was never defined.
13138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13139 fi
13140 if test -z "${TCI6638_TRUE}" && test -z "${TCI6638_FALSE}"; then
13141 as_fn_error $? "conditional \"TCI6638\" was never defined.
13142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13143 fi
13144 if test -z "${C66AK2G_TRUE}" && test -z "${C66AK2G_FALSE}"; then
13145 as_fn_error $? "conditional \"C66AK2G\" was never defined.
13146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13147 fi
13148 if test -z "${OMAP54XX_SMP_TRUE}" && test -z "${OMAP54XX_SMP_FALSE}"; then
13149 as_fn_error $? "conditional \"OMAP54XX_SMP\" was never defined.
13150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13151 fi
13152 if test -z "${DRA7XX_TRUE}" && test -z "${DRA7XX_FALSE}"; then
13153 as_fn_error $? "conditional \"DRA7XX\" was never defined.
13154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13155 fi
13156 if test -z "${AM65XX_TRUE}" && test -z "${AM65XX_FALSE}"; then
13157 as_fn_error $? "conditional \"AM65XX\" was never defined.
13158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13159 fi
13160 if test -z "${CMEM_TRUE}" && test -z "${CMEM_FALSE}"; then
13161 as_fn_error $? "conditional \"CMEM\" was never defined.
13162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13163 fi
13164 if test -z "${KDIR_TRUE}" && test -z "${KDIR_FALSE}"; then
13165 as_fn_error $? "conditional \"KDIR\" was never defined.
13166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13167 fi
13168 if test -z "${KERNEL_INSTALL_DIR_TRUE}" && test -z "${KERNEL_INSTALL_DIR_FALSE}"; then
13169 as_fn_error $? "conditional \"KERNEL_INSTALL_DIR\" was never defined.
13170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13171 fi
13172 if test -z "${DRM_TRUE}" && test -z "${DRM_FALSE}"; then
13173 as_fn_error $? "conditional \"DRM\" was never defined.
13174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13175 fi
13176 if test -z "${AF_RPMSG_TRUE}" && test -z "${AF_RPMSG_FALSE}"; then
13177 as_fn_error $? "conditional \"AF_RPMSG\" was never defined.
13178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13179 fi
13181 : "${CONFIG_STATUS=./config.status}"
13182 ac_write_fail=0
13183 ac_clean_files_save=$ac_clean_files
13184 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13186 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13187 as_write_fail=0
13188 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13189 #! $SHELL
13190 # Generated by $as_me.
13191 # Run this file to recreate the current configuration.
13192 # Compiler output produced by configure, useful for debugging
13193 # configure, is in config.log if it exists.
13195 debug=false
13196 ac_cs_recheck=false
13197 ac_cs_silent=false
13199 SHELL=\${CONFIG_SHELL-$SHELL}
13200 export SHELL
13201 _ASEOF
13202 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13203 ## -------------------- ##
13204 ## M4sh Initialization. ##
13205 ## -------------------- ##
13207 # Be more Bourne compatible
13208 DUALCASE=1; export DUALCASE # for MKS sh
13209 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13210 emulate sh
13211 NULLCMD=:
13212 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13213 # is contrary to our usage. Disable this feature.
13214 alias -g '${1+"$@"}'='"$@"'
13215 setopt NO_GLOB_SUBST
13216 else
13217 case `(set -o) 2>/dev/null` in #(
13218 *posix*) :
13219 set -o posix ;; #(
13220 *) :
13221 ;;
13222 esac
13223 fi
13226 as_nl='
13227 '
13228 export as_nl
13229 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13230 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13231 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13232 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13233 # Prefer a ksh shell builtin over an external printf program on Solaris,
13234 # but without wasting forks for bash or zsh.
13235 if test -z "$BASH_VERSION$ZSH_VERSION" \
13236 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13237 as_echo='print -r --'
13238 as_echo_n='print -rn --'
13239 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13240 as_echo='printf %s\n'
13241 as_echo_n='printf %s'
13242 else
13243 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13244 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13245 as_echo_n='/usr/ucb/echo -n'
13246 else
13247 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13248 as_echo_n_body='eval
13249 arg=$1;
13250 case $arg in #(
13251 *"$as_nl"*)
13252 expr "X$arg" : "X\\(.*\\)$as_nl";
13253 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13254 esac;
13255 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13256 '
13257 export as_echo_n_body
13258 as_echo_n='sh -c $as_echo_n_body as_echo'
13259 fi
13260 export as_echo_body
13261 as_echo='sh -c $as_echo_body as_echo'
13262 fi
13264 # The user is always right.
13265 if test "${PATH_SEPARATOR+set}" != set; then
13266 PATH_SEPARATOR=:
13267 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13268 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13269 PATH_SEPARATOR=';'
13270 }
13271 fi
13274 # IFS
13275 # We need space, tab and new line, in precisely that order. Quoting is
13276 # there to prevent editors from complaining about space-tab.
13277 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13278 # splitting by setting IFS to empty value.)
13279 IFS=" "" $as_nl"
13281 # Find who we are. Look in the path if we contain no directory separator.
13282 as_myself=
13283 case $0 in #((
13284 *[\\/]* ) as_myself=$0 ;;
13285 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13286 for as_dir in $PATH
13287 do
13288 IFS=$as_save_IFS
13289 test -z "$as_dir" && as_dir=.
13290 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13291 done
13292 IFS=$as_save_IFS
13294 ;;
13295 esac
13296 # We did not find ourselves, most probably we were run as `sh COMMAND'
13297 # in which case we are not to be found in the path.
13298 if test "x$as_myself" = x; then
13299 as_myself=$0
13300 fi
13301 if test ! -f "$as_myself"; then
13302 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13303 exit 1
13304 fi
13306 # Unset variables that we do not need and which cause bugs (e.g. in
13307 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13308 # suppresses any "Segmentation fault" message there. '((' could
13309 # trigger a bug in pdksh 5.2.14.
13310 for as_var in BASH_ENV ENV MAIL MAILPATH
13311 do eval test x\${$as_var+set} = xset \
13312 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13313 done
13314 PS1='$ '
13315 PS2='> '
13316 PS4='+ '
13318 # NLS nuisances.
13319 LC_ALL=C
13320 export LC_ALL
13321 LANGUAGE=C
13322 export LANGUAGE
13324 # CDPATH.
13325 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13328 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13329 # ----------------------------------------
13330 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13331 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13332 # script with STATUS, using 1 if that was 0.
13333 as_fn_error ()
13334 {
13335 as_status=$1; test $as_status -eq 0 && as_status=1
13336 if test "$4"; then
13337 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13338 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13339 fi
13340 $as_echo "$as_me: error: $2" >&2
13341 as_fn_exit $as_status
13342 } # as_fn_error
13345 # as_fn_set_status STATUS
13346 # -----------------------
13347 # Set $? to STATUS, without forking.
13348 as_fn_set_status ()
13349 {
13350 return $1
13351 } # as_fn_set_status
13353 # as_fn_exit STATUS
13354 # -----------------
13355 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13356 as_fn_exit ()
13357 {
13358 set +e
13359 as_fn_set_status $1
13360 exit $1
13361 } # as_fn_exit
13363 # as_fn_unset VAR
13364 # ---------------
13365 # Portably unset VAR.
13366 as_fn_unset ()
13367 {
13368 { eval $1=; unset $1;}
13369 }
13370 as_unset=as_fn_unset
13371 # as_fn_append VAR VALUE
13372 # ----------------------
13373 # Append the text in VALUE to the end of the definition contained in VAR. Take
13374 # advantage of any shell optimizations that allow amortized linear growth over
13375 # repeated appends, instead of the typical quadratic growth present in naive
13376 # implementations.
13377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13378 eval 'as_fn_append ()
13379 {
13380 eval $1+=\$2
13381 }'
13382 else
13383 as_fn_append ()
13384 {
13385 eval $1=\$$1\$2
13386 }
13387 fi # as_fn_append
13389 # as_fn_arith ARG...
13390 # ------------------
13391 # Perform arithmetic evaluation on the ARGs, and store the result in the
13392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13393 # must be portable across $(()) and expr.
13394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13395 eval 'as_fn_arith ()
13396 {
13397 as_val=$(( $* ))
13398 }'
13399 else
13400 as_fn_arith ()
13401 {
13402 as_val=`expr "$@" || test $? -eq 1`
13403 }
13404 fi # as_fn_arith
13407 if expr a : '\(a\)' >/dev/null 2>&1 &&
13408 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13409 as_expr=expr
13410 else
13411 as_expr=false
13412 fi
13414 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13415 as_basename=basename
13416 else
13417 as_basename=false
13418 fi
13420 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13421 as_dirname=dirname
13422 else
13423 as_dirname=false
13424 fi
13426 as_me=`$as_basename -- "$0" ||
13427 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13428 X"$0" : 'X\(//\)$' \| \
13429 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13430 $as_echo X/"$0" |
13431 sed '/^.*\/\([^/][^/]*\)\/*$/{
13432 s//\1/
13433 q
13434 }
13435 /^X\/\(\/\/\)$/{
13436 s//\1/
13437 q
13438 }
13439 /^X\/\(\/\).*/{
13440 s//\1/
13441 q
13442 }
13443 s/.*/./; q'`
13445 # Avoid depending upon Character Ranges.
13446 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13447 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13448 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13449 as_cr_digits='0123456789'
13450 as_cr_alnum=$as_cr_Letters$as_cr_digits
13452 ECHO_C= ECHO_N= ECHO_T=
13453 case `echo -n x` in #(((((
13454 -n*)
13455 case `echo 'xy\c'` in
13456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13457 xy) ECHO_C='\c';;
13458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13459 ECHO_T=' ';;
13460 esac;;
13461 *)
13462 ECHO_N='-n';;
13463 esac
13465 rm -f conf$$ conf$$.exe conf$$.file
13466 if test -d conf$$.dir; then
13467 rm -f conf$$.dir/conf$$.file
13468 else
13469 rm -f conf$$.dir
13470 mkdir conf$$.dir 2>/dev/null
13471 fi
13472 if (echo >conf$$.file) 2>/dev/null; then
13473 if ln -s conf$$.file conf$$ 2>/dev/null; then
13474 as_ln_s='ln -s'
13475 # ... but there are two gotchas:
13476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13478 # In both cases, we have to default to `cp -pR'.
13479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13480 as_ln_s='cp -pR'
13481 elif ln conf$$.file conf$$ 2>/dev/null; then
13482 as_ln_s=ln
13483 else
13484 as_ln_s='cp -pR'
13485 fi
13486 else
13487 as_ln_s='cp -pR'
13488 fi
13489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13490 rmdir conf$$.dir 2>/dev/null
13493 # as_fn_mkdir_p
13494 # -------------
13495 # Create "$as_dir" as a directory, including parents if necessary.
13496 as_fn_mkdir_p ()
13497 {
13499 case $as_dir in #(
13500 -*) as_dir=./$as_dir;;
13501 esac
13502 test -d "$as_dir" || eval $as_mkdir_p || {
13503 as_dirs=
13504 while :; do
13505 case $as_dir in #(
13506 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13507 *) as_qdir=$as_dir;;
13508 esac
13509 as_dirs="'$as_qdir' $as_dirs"
13510 as_dir=`$as_dirname -- "$as_dir" ||
13511 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13512 X"$as_dir" : 'X\(//\)[^/]' \| \
13513 X"$as_dir" : 'X\(//\)$' \| \
13514 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13515 $as_echo X"$as_dir" |
13516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13517 s//\1/
13518 q
13519 }
13520 /^X\(\/\/\)[^/].*/{
13521 s//\1/
13522 q
13523 }
13524 /^X\(\/\/\)$/{
13525 s//\1/
13526 q
13527 }
13528 /^X\(\/\).*/{
13529 s//\1/
13530 q
13531 }
13532 s/.*/./; q'`
13533 test -d "$as_dir" && break
13534 done
13535 test -z "$as_dirs" || eval "mkdir $as_dirs"
13536 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13539 } # as_fn_mkdir_p
13540 if mkdir -p . 2>/dev/null; then
13541 as_mkdir_p='mkdir -p "$as_dir"'
13542 else
13543 test -d ./-p && rmdir ./-p
13544 as_mkdir_p=false
13545 fi
13548 # as_fn_executable_p FILE
13549 # -----------------------
13550 # Test if FILE is an executable regular file.
13551 as_fn_executable_p ()
13552 {
13553 test -f "$1" && test -x "$1"
13554 } # as_fn_executable_p
13555 as_test_x='test -x'
13556 as_executable_p=as_fn_executable_p
13558 # Sed expression to map a string onto a valid CPP name.
13559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13561 # Sed expression to map a string onto a valid variable name.
13562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13565 exec 6>&1
13566 ## ----------------------------------- ##
13567 ## Main body of $CONFIG_STATUS script. ##
13568 ## ----------------------------------- ##
13569 _ASEOF
13570 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13573 # Save the log message, to keep $0 and so on meaningful, and to
13574 # report actual input values of CONFIG_FILES etc. instead of their
13575 # values after options handling.
13576 ac_log="
13577 This file was extended by TI IPC $as_me 3.0.0, which was
13578 generated by GNU Autoconf 2.69. Invocation command line was
13580 CONFIG_FILES = $CONFIG_FILES
13581 CONFIG_HEADERS = $CONFIG_HEADERS
13582 CONFIG_LINKS = $CONFIG_LINKS
13583 CONFIG_COMMANDS = $CONFIG_COMMANDS
13584 $ $0 $@
13586 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13587 "
13589 _ACEOF
13591 case $ac_config_files in *"
13592 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13593 esac
13597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13598 # Files that config.status was made for.
13599 config_files="$ac_config_files"
13600 config_commands="$ac_config_commands"
13602 _ACEOF
13604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13605 ac_cs_usage="\
13606 \`$as_me' instantiates files and other configuration actions
13607 from templates according to the current configuration. Unless the files
13608 and actions are specified as TAGs, all are instantiated by default.
13610 Usage: $0 [OPTION]... [TAG]...
13612 -h, --help print this help, then exit
13613 -V, --version print version number and configuration settings, then exit
13614 --config print configuration, then exit
13615 -q, --quiet, --silent
13616 do not print progress messages
13617 -d, --debug don't remove temporary files
13618 --recheck update $as_me by reconfiguring in the same conditions
13619 --file=FILE[:TEMPLATE]
13620 instantiate the configuration file FILE
13622 Configuration files:
13623 $config_files
13625 Configuration commands:
13626 $config_commands
13628 Report bugs to the package provider."
13630 _ACEOF
13631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13632 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13633 ac_cs_version="\\
13634 TI IPC config.status 3.0.0
13635 configured by $0, generated by GNU Autoconf 2.69,
13636 with options \\"\$ac_cs_config\\"
13638 Copyright (C) 2012 Free Software Foundation, Inc.
13639 This config.status script is free software; the Free Software Foundation
13640 gives unlimited permission to copy, distribute and modify it."
13642 ac_pwd='$ac_pwd'
13643 srcdir='$srcdir'
13644 INSTALL='$INSTALL'
13645 MKDIR_P='$MKDIR_P'
13646 AWK='$AWK'
13647 test -n "\$AWK" || AWK=awk
13648 _ACEOF
13650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13651 # The default lists apply if the user does not specify any file.
13652 ac_need_defaults=:
13653 while test $# != 0
13654 do
13655 case $1 in
13656 --*=?*)
13657 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13658 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13659 ac_shift=:
13660 ;;
13661 --*=)
13662 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13663 ac_optarg=
13664 ac_shift=:
13665 ;;
13666 *)
13667 ac_option=$1
13668 ac_optarg=$2
13669 ac_shift=shift
13670 ;;
13671 esac
13673 case $ac_option in
13674 # Handling of the options.
13675 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13676 ac_cs_recheck=: ;;
13677 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13678 $as_echo "$ac_cs_version"; exit ;;
13679 --config | --confi | --conf | --con | --co | --c )
13680 $as_echo "$ac_cs_config"; exit ;;
13681 --debug | --debu | --deb | --de | --d | -d )
13682 debug=: ;;
13683 --file | --fil | --fi | --f )
13684 $ac_shift
13685 case $ac_optarg in
13686 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13687 '') as_fn_error $? "missing file argument" ;;
13688 esac
13689 as_fn_append CONFIG_FILES " '$ac_optarg'"
13690 ac_need_defaults=false;;
13691 --he | --h | --help | --hel | -h )
13692 $as_echo "$ac_cs_usage"; exit ;;
13693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13694 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13695 ac_cs_silent=: ;;
13697 # This is an error.
13698 -*) as_fn_error $? "unrecognized option: \`$1'
13699 Try \`$0 --help' for more information." ;;
13701 *) as_fn_append ac_config_targets " $1"
13702 ac_need_defaults=false ;;
13704 esac
13705 shift
13706 done
13708 ac_configure_extra_args=
13710 if $ac_cs_silent; then
13711 exec 6>/dev/null
13712 ac_configure_extra_args="$ac_configure_extra_args --silent"
13713 fi
13715 _ACEOF
13716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13717 if \$ac_cs_recheck; then
13718 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13719 shift
13720 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13721 CONFIG_SHELL='$SHELL'
13722 export CONFIG_SHELL
13723 exec "\$@"
13724 fi
13726 _ACEOF
13727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13728 exec 5>>config.log
13729 {
13730 echo
13731 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13732 ## Running $as_me. ##
13733 _ASBOX
13734 $as_echo "$ac_log"
13735 } >&5
13737 _ACEOF
13738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13739 #
13740 # INIT-COMMANDS
13741 #
13742 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13745 # The HP-UX ksh and POSIX shell print the target directory to stdout
13746 # if CDPATH is set.
13747 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13749 sed_quote_subst='$sed_quote_subst'
13750 double_quote_subst='$double_quote_subst'
13751 delay_variable_subst='$delay_variable_subst'
13752 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13753 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13754 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13755 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13756 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13757 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13758 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13759 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13760 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13761 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13762 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13763 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13764 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13765 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13766 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13767 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13768 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13769 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13770 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13771 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13772 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13773 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13774 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13775 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13776 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13777 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13778 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13779 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13780 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13781 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13782 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13783 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13784 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13785 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13786 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13787 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13788 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13789 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13790 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13791 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13792 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13793 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13794 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13795 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13796 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13797 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13798 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13799 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13800 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13801 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13802 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13803 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13804 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13805 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13806 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13807 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13808 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13809 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13810 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"`'
13811 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13812 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13813 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13814 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13815 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13816 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13817 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13818 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13819 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13820 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13821 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13822 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13823 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13824 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13825 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13826 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13827 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13828 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13829 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13830 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13831 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13832 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13833 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13834 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13835 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13836 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13837 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13838 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13839 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13840 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13841 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13842 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13843 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13844 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13845 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13846 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13847 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13848 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13849 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13850 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13851 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13852 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13853 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13854 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13855 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13856 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13857 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13858 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13859 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13860 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13861 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13862 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13863 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13864 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13865 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13866 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13867 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13868 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13869 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13870 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13871 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13872 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13873 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13874 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13875 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13876 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13877 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13878 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13879 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13880 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13881 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13882 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13883 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13884 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13885 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13886 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13888 LTCC='$LTCC'
13889 LTCFLAGS='$LTCFLAGS'
13890 compiler='$compiler_DEFAULT'
13892 # A function that is used when there is no print builtin or printf.
13893 func_fallback_echo ()
13894 {
13895 eval 'cat <<_LTECHO_EOF
13896 \$1
13897 _LTECHO_EOF'
13898 }
13900 # Quote evaled strings.
13901 for var in SHELL \
13902 ECHO \
13903 PATH_SEPARATOR \
13904 SED \
13905 GREP \
13906 EGREP \
13907 FGREP \
13908 LD \
13909 NM \
13910 LN_S \
13911 lt_SP2NL \
13912 lt_NL2SP \
13913 reload_flag \
13914 OBJDUMP \
13915 deplibs_check_method \
13916 file_magic_cmd \
13917 file_magic_glob \
13918 want_nocaseglob \
13919 DLLTOOL \
13920 sharedlib_from_linklib_cmd \
13921 AR \
13922 AR_FLAGS \
13923 archiver_list_spec \
13924 STRIP \
13925 RANLIB \
13926 CC \
13927 CFLAGS \
13928 compiler \
13929 lt_cv_sys_global_symbol_pipe \
13930 lt_cv_sys_global_symbol_to_cdecl \
13931 lt_cv_sys_global_symbol_to_import \
13932 lt_cv_sys_global_symbol_to_c_name_address \
13933 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13934 lt_cv_nm_interface \
13935 nm_file_list_spec \
13936 lt_cv_truncate_bin \
13937 lt_prog_compiler_no_builtin_flag \
13938 lt_prog_compiler_pic \
13939 lt_prog_compiler_wl \
13940 lt_prog_compiler_static \
13941 lt_cv_prog_compiler_c_o \
13942 need_locks \
13943 MANIFEST_TOOL \
13944 DSYMUTIL \
13945 NMEDIT \
13946 LIPO \
13947 OTOOL \
13948 OTOOL64 \
13949 shrext_cmds \
13950 export_dynamic_flag_spec \
13951 whole_archive_flag_spec \
13952 compiler_needs_object \
13953 with_gnu_ld \
13954 allow_undefined_flag \
13955 no_undefined_flag \
13956 hardcode_libdir_flag_spec \
13957 hardcode_libdir_separator \
13958 exclude_expsyms \
13959 include_expsyms \
13960 file_list_spec \
13961 variables_saved_for_relink \
13962 libname_spec \
13963 library_names_spec \
13964 soname_spec \
13965 install_override_mode \
13966 finish_eval \
13967 old_striplib \
13968 striplib; do
13969 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13970 *[\\\\\\\`\\"\\\$]*)
13971 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13972 ;;
13973 *)
13974 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13975 ;;
13976 esac
13977 done
13979 # Double-quote double-evaled strings.
13980 for var in reload_cmds \
13981 old_postinstall_cmds \
13982 old_postuninstall_cmds \
13983 old_archive_cmds \
13984 extract_expsyms_cmds \
13985 old_archive_from_new_cmds \
13986 old_archive_from_expsyms_cmds \
13987 archive_cmds \
13988 archive_expsym_cmds \
13989 module_cmds \
13990 module_expsym_cmds \
13991 export_symbols_cmds \
13992 prelink_cmds \
13993 postlink_cmds \
13994 postinstall_cmds \
13995 postuninstall_cmds \
13996 finish_cmds \
13997 sys_lib_search_path_spec \
13998 configure_time_dlsearch_path \
13999 configure_time_lt_sys_library_path; do
14000 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14001 *[\\\\\\\`\\"\\\$]*)
14002 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14003 ;;
14004 *)
14005 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14006 ;;
14007 esac
14008 done
14010 ac_aux_dir='$ac_aux_dir'
14012 # See if we are running on zsh, and set the options that allow our
14013 # commands through without removal of \ escapes INIT.
14014 if test -n "\${ZSH_VERSION+set}"; then
14015 setopt NO_GLOB_SUBST
14016 fi
14019 PACKAGE='$PACKAGE'
14020 VERSION='$VERSION'
14021 RM='$RM'
14022 ofile='$ofile'
14027 _ACEOF
14029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14031 # Handling of arguments.
14032 for ac_config_target in $ac_config_targets
14033 do
14034 case $ac_config_target in
14035 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14036 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14037 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14038 "linux/etc/Makefile") CONFIG_FILES="$CONFIG_FILES linux/etc/Makefile" ;;
14039 "linux/src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES linux/src/utils/Makefile" ;;
14040 "linux/src/utils/libtiipcutils.pc") CONFIG_FILES="$CONFIG_FILES linux/src/utils/libtiipcutils.pc" ;;
14041 "linux/src/api/Makefile") CONFIG_FILES="$CONFIG_FILES linux/src/api/Makefile" ;;
14042 "linux/src/api/libtiipc.pc") CONFIG_FILES="$CONFIG_FILES linux/src/api/libtiipc.pc" ;;
14043 "linux/src/mm/Makefile") CONFIG_FILES="$CONFIG_FILES linux/src/mm/Makefile" ;;
14044 "linux/src/mm/libmmrpc.pc") CONFIG_FILES="$CONFIG_FILES linux/src/mm/libmmrpc.pc" ;;
14045 "linux/src/daemon/Makefile") CONFIG_FILES="$CONFIG_FILES linux/src/daemon/Makefile" ;;
14046 "linux/src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES linux/src/tests/Makefile" ;;
14047 "linux/src/transport/Makefile") CONFIG_FILES="$CONFIG_FILES linux/src/transport/Makefile" ;;
14049 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14050 esac
14051 done
14054 # If the user did not use the arguments to specify the items to instantiate,
14055 # then the envvar interface is used. Set only those that are not.
14056 # We use the long form for the default assignment because of an extremely
14057 # bizarre bug on SunOS 4.1.3.
14058 if $ac_need_defaults; then
14059 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14060 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14061 fi
14063 # Have a temporary directory for convenience. Make it in the build tree
14064 # simply because there is no reason against having it here, and in addition,
14065 # creating and moving files from /tmp can sometimes cause problems.
14066 # Hook for its removal unless debugging.
14067 # Note that there is a small window in which the directory will not be cleaned:
14068 # after its creation but before its name has been assigned to `$tmp'.
14069 $debug ||
14070 {
14071 tmp= ac_tmp=
14072 trap 'exit_status=$?
14073 : "${ac_tmp:=$tmp}"
14074 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14075 ' 0
14076 trap 'as_fn_exit 1' 1 2 13 15
14077 }
14078 # Create a (secure) tmp directory for tmp files.
14080 {
14081 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14082 test -d "$tmp"
14083 } ||
14084 {
14085 tmp=./conf$$-$RANDOM
14086 (umask 077 && mkdir "$tmp")
14087 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14088 ac_tmp=$tmp
14090 # Set up the scripts for CONFIG_FILES section.
14091 # No need to generate them if there are no CONFIG_FILES.
14092 # This happens for instance with `./config.status config.h'.
14093 if test -n "$CONFIG_FILES"; then
14096 ac_cr=`echo X | tr X '\015'`
14097 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14098 # But we know of no other shell where ac_cr would be empty at this
14099 # point, so we can use a bashism as a fallback.
14100 if test "x$ac_cr" = x; then
14101 eval ac_cr=\$\'\\r\'
14102 fi
14103 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14104 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14105 ac_cs_awk_cr='\\r'
14106 else
14107 ac_cs_awk_cr=$ac_cr
14108 fi
14110 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14111 _ACEOF
14114 {
14115 echo "cat >conf$$subs.awk <<_ACEOF" &&
14116 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14117 echo "_ACEOF"
14118 } >conf$$subs.sh ||
14119 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14120 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14121 ac_delim='%!_!# '
14122 for ac_last_try in false false false false false :; do
14123 . ./conf$$subs.sh ||
14124 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14126 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14127 if test $ac_delim_n = $ac_delim_num; then
14128 break
14129 elif $ac_last_try; then
14130 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14131 else
14132 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14133 fi
14134 done
14135 rm -f conf$$subs.sh
14137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14138 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14139 _ACEOF
14140 sed -n '
14141 h
14142 s/^/S["/; s/!.*/"]=/
14143 p
14144 g
14145 s/^[^!]*!//
14146 :repl
14147 t repl
14148 s/'"$ac_delim"'$//
14149 t delim
14150 :nl
14151 h
14152 s/\(.\{148\}\)..*/\1/
14153 t more1
14154 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14155 p
14156 n
14157 b repl
14158 :more1
14159 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14160 p
14161 g
14162 s/.\{148\}//
14163 t nl
14164 :delim
14165 h
14166 s/\(.\{148\}\)..*/\1/
14167 t more2
14168 s/["\\]/\\&/g; s/^/"/; s/$/"/
14169 p
14170 b
14171 :more2
14172 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14173 p
14174 g
14175 s/.\{148\}//
14176 t delim
14177 ' <conf$$subs.awk | sed '
14178 /^[^""]/{
14179 N
14180 s/\n//
14181 }
14182 ' >>$CONFIG_STATUS || ac_write_fail=1
14183 rm -f conf$$subs.awk
14184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14185 _ACAWK
14186 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14187 for (key in S) S_is_set[key] = 1
14188 FS = "\a"
14190 }
14191 {
14192 line = $ 0
14193 nfields = split(line, field, "@")
14194 substed = 0
14195 len = length(field[1])
14196 for (i = 2; i < nfields; i++) {
14197 key = field[i]
14198 keylen = length(key)
14199 if (S_is_set[key]) {
14200 value = S[key]
14201 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14202 len += length(value) + length(field[++i])
14203 substed = 1
14204 } else
14205 len += 1 + keylen
14206 }
14208 print line
14209 }
14211 _ACAWK
14212 _ACEOF
14213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14214 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14215 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14216 else
14217 cat
14218 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14219 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14220 _ACEOF
14222 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14223 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14224 # trailing colons and then remove the whole line if VPATH becomes empty
14225 # (actually we leave an empty line to preserve line numbers).
14226 if test "x$srcdir" = x.; then
14227 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14228 h
14229 s///
14230 s/^/:/
14231 s/[ ]*$/:/
14232 s/:\$(srcdir):/:/g
14233 s/:\${srcdir}:/:/g
14234 s/:@srcdir@:/:/g
14235 s/^:*//
14236 s/:*$//
14237 x
14238 s/\(=[ ]*\).*/\1/
14239 G
14240 s/\n//
14241 s/^[^=]*=[ ]*$//
14242 }'
14243 fi
14245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14246 fi # test -n "$CONFIG_FILES"
14249 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
14250 shift
14251 for ac_tag
14252 do
14253 case $ac_tag in
14254 :[FHLC]) ac_mode=$ac_tag; continue;;
14255 esac
14256 case $ac_mode$ac_tag in
14257 :[FHL]*:*);;
14258 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14259 :[FH]-) ac_tag=-:-;;
14260 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14261 esac
14262 ac_save_IFS=$IFS
14263 IFS=:
14264 set x $ac_tag
14265 IFS=$ac_save_IFS
14266 shift
14267 ac_file=$1
14268 shift
14270 case $ac_mode in
14271 :L) ac_source=$1;;
14272 :[FH])
14273 ac_file_inputs=
14274 for ac_f
14275 do
14276 case $ac_f in
14277 -) ac_f="$ac_tmp/stdin";;
14278 *) # Look for the file first in the build tree, then in the source tree
14279 # (if the path is not absolute). The absolute path cannot be DOS-style,
14280 # because $ac_f cannot contain `:'.
14281 test -f "$ac_f" ||
14282 case $ac_f in
14283 [\\/$]*) false;;
14284 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14285 esac ||
14286 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14287 esac
14288 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14289 as_fn_append ac_file_inputs " '$ac_f'"
14290 done
14292 # Let's still pretend it is `configure' which instantiates (i.e., don't
14293 # use $as_me), people would be surprised to read:
14294 # /* config.h. Generated by config.status. */
14295 configure_input='Generated from '`
14296 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14297 `' by configure.'
14298 if test x"$ac_file" != x-; then
14299 configure_input="$ac_file. $configure_input"
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14301 $as_echo "$as_me: creating $ac_file" >&6;}
14302 fi
14303 # Neutralize special characters interpreted by sed in replacement strings.
14304 case $configure_input in #(
14305 *\&* | *\|* | *\\* )
14306 ac_sed_conf_input=`$as_echo "$configure_input" |
14307 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14308 *) ac_sed_conf_input=$configure_input;;
14309 esac
14311 case $ac_tag in
14312 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14313 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14314 esac
14315 ;;
14316 esac
14318 ac_dir=`$as_dirname -- "$ac_file" ||
14319 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14320 X"$ac_file" : 'X\(//\)[^/]' \| \
14321 X"$ac_file" : 'X\(//\)$' \| \
14322 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14323 $as_echo X"$ac_file" |
14324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14325 s//\1/
14326 q
14327 }
14328 /^X\(\/\/\)[^/].*/{
14329 s//\1/
14330 q
14331 }
14332 /^X\(\/\/\)$/{
14333 s//\1/
14334 q
14335 }
14336 /^X\(\/\).*/{
14337 s//\1/
14338 q
14339 }
14340 s/.*/./; q'`
14341 as_dir="$ac_dir"; as_fn_mkdir_p
14342 ac_builddir=.
14344 case "$ac_dir" in
14345 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14346 *)
14347 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14348 # A ".." for each directory in $ac_dir_suffix.
14349 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14350 case $ac_top_builddir_sub in
14351 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14352 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14353 esac ;;
14354 esac
14355 ac_abs_top_builddir=$ac_pwd
14356 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14357 # for backward compatibility:
14358 ac_top_builddir=$ac_top_build_prefix
14360 case $srcdir in
14361 .) # We are building in place.
14362 ac_srcdir=.
14363 ac_top_srcdir=$ac_top_builddir_sub
14364 ac_abs_top_srcdir=$ac_pwd ;;
14365 [\\/]* | ?:[\\/]* ) # Absolute name.
14366 ac_srcdir=$srcdir$ac_dir_suffix;
14367 ac_top_srcdir=$srcdir
14368 ac_abs_top_srcdir=$srcdir ;;
14369 *) # Relative name.
14370 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14371 ac_top_srcdir=$ac_top_build_prefix$srcdir
14372 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14373 esac
14374 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14377 case $ac_mode in
14378 :F)
14379 #
14380 # CONFIG_FILE
14381 #
14383 case $INSTALL in
14384 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14385 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14386 esac
14387 ac_MKDIR_P=$MKDIR_P
14388 case $MKDIR_P in
14389 [\\/$]* | ?:[\\/]* ) ;;
14390 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14391 esac
14392 _ACEOF
14394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14395 # If the template does not know about datarootdir, expand it.
14396 # FIXME: This hack should be removed a few years after 2.60.
14397 ac_datarootdir_hack=; ac_datarootdir_seen=
14398 ac_sed_dataroot='
14399 /datarootdir/ {
14400 p
14401 q
14402 }
14403 /@datadir@/p
14404 /@docdir@/p
14405 /@infodir@/p
14406 /@localedir@/p
14407 /@mandir@/p'
14408 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14409 *datarootdir*) ac_datarootdir_seen=yes;;
14410 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14412 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14413 _ACEOF
14414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14415 ac_datarootdir_hack='
14416 s&@datadir@&$datadir&g
14417 s&@docdir@&$docdir&g
14418 s&@infodir@&$infodir&g
14419 s&@localedir@&$localedir&g
14420 s&@mandir@&$mandir&g
14421 s&\\\${datarootdir}&$datarootdir&g' ;;
14422 esac
14423 _ACEOF
14425 # Neutralize VPATH when `$srcdir' = `.'.
14426 # Shell code in configure.ac might set extrasub.
14427 # FIXME: do we really want to maintain this feature?
14428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14429 ac_sed_extra="$ac_vpsub
14430 $extrasub
14431 _ACEOF
14432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14433 :t
14434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14435 s|@configure_input@|$ac_sed_conf_input|;t t
14436 s&@top_builddir@&$ac_top_builddir_sub&;t t
14437 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14438 s&@srcdir@&$ac_srcdir&;t t
14439 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14440 s&@top_srcdir@&$ac_top_srcdir&;t t
14441 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14442 s&@builddir@&$ac_builddir&;t t
14443 s&@abs_builddir@&$ac_abs_builddir&;t t
14444 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14445 s&@INSTALL@&$ac_INSTALL&;t t
14446 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14447 $ac_datarootdir_hack
14448 "
14449 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14450 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14452 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14453 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14454 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14455 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14457 which seems to be undefined. Please make sure it is defined" >&5
14458 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14459 which seems to be undefined. Please make sure it is defined" >&2;}
14461 rm -f "$ac_tmp/stdin"
14462 case $ac_file in
14463 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14464 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14465 esac \
14466 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14467 ;;
14470 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14471 $as_echo "$as_me: executing $ac_file commands" >&6;}
14472 ;;
14473 esac
14476 case $ac_file$ac_mode in
14477 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14478 # Older Autoconf quotes --file arguments for eval, but not when files
14479 # are listed without --file. Let's play safe and only enable the eval
14480 # if we detect the quoting.
14481 case $CONFIG_FILES in
14482 *\'*) eval set x "$CONFIG_FILES" ;;
14483 *) set x $CONFIG_FILES ;;
14484 esac
14485 shift
14486 for mf
14487 do
14488 # Strip MF so we end up with the name of the file.
14489 mf=`echo "$mf" | sed -e 's/:.*$//'`
14490 # Check whether this is an Automake generated Makefile or not.
14491 # We used to match only the files named 'Makefile.in', but
14492 # some people rename them; so instead we look at the file content.
14493 # Grep'ing the first line is not enough: some people post-process
14494 # each Makefile.in and add a new line on top of each file to say so.
14495 # Grep'ing the whole file is not good either: AIX grep has a line
14496 # limit of 2048, but all sed's we know have understand at least 4000.
14497 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14498 dirpart=`$as_dirname -- "$mf" ||
14499 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14500 X"$mf" : 'X\(//\)[^/]' \| \
14501 X"$mf" : 'X\(//\)$' \| \
14502 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14503 $as_echo X"$mf" |
14504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14505 s//\1/
14506 q
14507 }
14508 /^X\(\/\/\)[^/].*/{
14509 s//\1/
14510 q
14511 }
14512 /^X\(\/\/\)$/{
14513 s//\1/
14514 q
14515 }
14516 /^X\(\/\).*/{
14517 s//\1/
14518 q
14519 }
14520 s/.*/./; q'`
14521 else
14522 continue
14523 fi
14524 # Extract the definition of DEPDIR, am__include, and am__quote
14525 # from the Makefile without running 'make'.
14526 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14527 test -z "$DEPDIR" && continue
14528 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14529 test -z "$am__include" && continue
14530 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14531 # Find all dependency output files, they are included files with
14532 # $(DEPDIR) in their names. We invoke sed twice because it is the
14533 # simplest approach to changing $(DEPDIR) to its actual value in the
14534 # expansion.
14535 for file in `sed -n "
14536 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14537 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14538 # Make sure the directory exists.
14539 test -f "$dirpart/$file" && continue
14540 fdir=`$as_dirname -- "$file" ||
14541 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14542 X"$file" : 'X\(//\)[^/]' \| \
14543 X"$file" : 'X\(//\)$' \| \
14544 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14545 $as_echo X"$file" |
14546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14547 s//\1/
14548 q
14549 }
14550 /^X\(\/\/\)[^/].*/{
14551 s//\1/
14552 q
14553 }
14554 /^X\(\/\/\)$/{
14555 s//\1/
14556 q
14557 }
14558 /^X\(\/\).*/{
14559 s//\1/
14560 q
14561 }
14562 s/.*/./; q'`
14563 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14564 # echo "creating $dirpart/$file"
14565 echo '# dummy' > "$dirpart/$file"
14566 done
14567 done
14568 }
14569 ;;
14570 "libtool":C)
14572 # See if we are running on zsh, and set the options that allow our
14573 # commands through without removal of \ escapes.
14574 if test -n "${ZSH_VERSION+set}"; then
14575 setopt NO_GLOB_SUBST
14576 fi
14578 cfgfile=${ofile}T
14579 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14580 $RM "$cfgfile"
14582 cat <<_LT_EOF >> "$cfgfile"
14583 #! $SHELL
14584 # Generated automatically by $as_me ($PACKAGE) $VERSION
14585 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14586 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14588 # Provide generalized library-building support services.
14589 # Written by Gordon Matzigkeit, 1996
14591 # Copyright (C) 2014 Free Software Foundation, Inc.
14592 # This is free software; see the source for copying conditions. There is NO
14593 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14595 # GNU Libtool is free software; you can redistribute it and/or modify
14596 # it under the terms of the GNU General Public License as published by
14597 # the Free Software Foundation; either version 2 of of the License, or
14598 # (at your option) any later version.
14599 #
14600 # As a special exception to the GNU General Public License, if you
14601 # distribute this file as part of a program or library that is built
14602 # using GNU Libtool, you may include this file under the same
14603 # distribution terms that you use for the rest of that program.
14604 #
14605 # GNU Libtool is distributed in the hope that it will be useful, but
14606 # WITHOUT ANY WARRANTY; without even the implied warranty of
14607 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14608 # GNU General Public License for more details.
14609 #
14610 # You should have received a copy of the GNU General Public License
14611 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14614 # The names of the tagged configurations supported by this script.
14615 available_tags=''
14617 # Configured defaults for sys_lib_dlsearch_path munging.
14618 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14620 # ### BEGIN LIBTOOL CONFIG
14622 # Which release of libtool.m4 was used?
14623 macro_version=$macro_version
14624 macro_revision=$macro_revision
14626 # Whether or not to build shared libraries.
14627 build_libtool_libs=$enable_shared
14629 # Whether or not to build static libraries.
14630 build_old_libs=$enable_static
14632 # What type of objects to build.
14633 pic_mode=$pic_mode
14635 # Whether or not to optimize for fast installation.
14636 fast_install=$enable_fast_install
14638 # Shared archive member basename,for filename based shared library versioning on AIX.
14639 shared_archive_member_spec=$shared_archive_member_spec
14641 # Shell to use when invoking shell scripts.
14642 SHELL=$lt_SHELL
14644 # An echo program that protects backslashes.
14645 ECHO=$lt_ECHO
14647 # The PATH separator for the build system.
14648 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14650 # The host system.
14651 host_alias=$host_alias
14652 host=$host
14653 host_os=$host_os
14655 # The build system.
14656 build_alias=$build_alias
14657 build=$build
14658 build_os=$build_os
14660 # A sed program that does not truncate output.
14661 SED=$lt_SED
14663 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14664 Xsed="\$SED -e 1s/^X//"
14666 # A grep program that handles long lines.
14667 GREP=$lt_GREP
14669 # An ERE matcher.
14670 EGREP=$lt_EGREP
14672 # A literal string matcher.
14673 FGREP=$lt_FGREP
14675 # A BSD- or MS-compatible name lister.
14676 NM=$lt_NM
14678 # Whether we need soft or hard links.
14679 LN_S=$lt_LN_S
14681 # What is the maximum length of a command?
14682 max_cmd_len=$max_cmd_len
14684 # Object file suffix (normally "o").
14685 objext=$ac_objext
14687 # Executable file suffix (normally "").
14688 exeext=$exeext
14690 # whether the shell understands "unset".
14691 lt_unset=$lt_unset
14693 # turn spaces into newlines.
14694 SP2NL=$lt_lt_SP2NL
14696 # turn newlines into spaces.
14697 NL2SP=$lt_lt_NL2SP
14699 # convert \$build file names to \$host format.
14700 to_host_file_cmd=$lt_cv_to_host_file_cmd
14702 # convert \$build files to toolchain format.
14703 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14705 # An object symbol dumper.
14706 OBJDUMP=$lt_OBJDUMP
14708 # Method to check whether dependent libraries are shared objects.
14709 deplibs_check_method=$lt_deplibs_check_method
14711 # Command to use when deplibs_check_method = "file_magic".
14712 file_magic_cmd=$lt_file_magic_cmd
14714 # How to find potential files when deplibs_check_method = "file_magic".
14715 file_magic_glob=$lt_file_magic_glob
14717 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14718 want_nocaseglob=$lt_want_nocaseglob
14720 # DLL creation program.
14721 DLLTOOL=$lt_DLLTOOL
14723 # Command to associate shared and link libraries.
14724 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14726 # The archiver.
14727 AR=$lt_AR
14729 # Flags to create an archive.
14730 AR_FLAGS=$lt_AR_FLAGS
14732 # How to feed a file listing to the archiver.
14733 archiver_list_spec=$lt_archiver_list_spec
14735 # A symbol stripping program.
14736 STRIP=$lt_STRIP
14738 # Commands used to install an old-style archive.
14739 RANLIB=$lt_RANLIB
14740 old_postinstall_cmds=$lt_old_postinstall_cmds
14741 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14743 # Whether to use a lock for old archive extraction.
14744 lock_old_archive_extraction=$lock_old_archive_extraction
14746 # A C compiler.
14747 LTCC=$lt_CC
14749 # LTCC compiler flags.
14750 LTCFLAGS=$lt_CFLAGS
14752 # Take the output of nm and produce a listing of raw symbols and C names.
14753 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14755 # Transform the output of nm in a proper C declaration.
14756 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14758 # Transform the output of nm into a list of symbols to manually relocate.
14759 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14761 # Transform the output of nm in a C name address pair.
14762 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14764 # Transform the output of nm in a C name address pair when lib prefix is needed.
14765 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14767 # The name lister interface.
14768 nm_interface=$lt_lt_cv_nm_interface
14770 # Specify filename containing input files for \$NM.
14771 nm_file_list_spec=$lt_nm_file_list_spec
14773 # The root where to search for dependent libraries,and where our libraries should be installed.
14774 lt_sysroot=$lt_sysroot
14776 # Command to truncate a binary pipe.
14777 lt_truncate_bin=$lt_lt_cv_truncate_bin
14779 # The name of the directory that contains temporary libtool files.
14780 objdir=$objdir
14782 # Used to examine libraries when file_magic_cmd begins with "file".
14783 MAGIC_CMD=$MAGIC_CMD
14785 # Must we lock files when doing compilation?
14786 need_locks=$lt_need_locks
14788 # Manifest tool.
14789 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14791 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14792 DSYMUTIL=$lt_DSYMUTIL
14794 # Tool to change global to local symbols on Mac OS X.
14795 NMEDIT=$lt_NMEDIT
14797 # Tool to manipulate fat objects and archives on Mac OS X.
14798 LIPO=$lt_LIPO
14800 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14801 OTOOL=$lt_OTOOL
14803 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14804 OTOOL64=$lt_OTOOL64
14806 # Old archive suffix (normally "a").
14807 libext=$libext
14809 # Shared library suffix (normally ".so").
14810 shrext_cmds=$lt_shrext_cmds
14812 # The commands to extract the exported symbol list from a shared archive.
14813 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14815 # Variables whose values should be saved in libtool wrapper scripts and
14816 # restored at link time.
14817 variables_saved_for_relink=$lt_variables_saved_for_relink
14819 # Do we need the "lib" prefix for modules?
14820 need_lib_prefix=$need_lib_prefix
14822 # Do we need a version for libraries?
14823 need_version=$need_version
14825 # Library versioning type.
14826 version_type=$version_type
14828 # Shared library runtime path variable.
14829 runpath_var=$runpath_var
14831 # Shared library path variable.
14832 shlibpath_var=$shlibpath_var
14834 # Is shlibpath searched before the hard-coded library search path?
14835 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14837 # Format of library name prefix.
14838 libname_spec=$lt_libname_spec
14840 # List of archive names. First name is the real one, the rest are links.
14841 # The last name is the one that the linker finds with -lNAME
14842 library_names_spec=$lt_library_names_spec
14844 # The coded name of the library, if different from the real name.
14845 soname_spec=$lt_soname_spec
14847 # Permission mode override for installation of shared libraries.
14848 install_override_mode=$lt_install_override_mode
14850 # Command to use after installation of a shared archive.
14851 postinstall_cmds=$lt_postinstall_cmds
14853 # Command to use after uninstallation of a shared archive.
14854 postuninstall_cmds=$lt_postuninstall_cmds
14856 # Commands used to finish a libtool library installation in a directory.
14857 finish_cmds=$lt_finish_cmds
14859 # As "finish_cmds", except a single script fragment to be evaled but
14860 # not shown.
14861 finish_eval=$lt_finish_eval
14863 # Whether we should hardcode library paths into libraries.
14864 hardcode_into_libs=$hardcode_into_libs
14866 # Compile-time system search path for libraries.
14867 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14869 # Detected run-time system search path for libraries.
14870 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14872 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14873 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14875 # Whether dlopen is supported.
14876 dlopen_support=$enable_dlopen
14878 # Whether dlopen of programs is supported.
14879 dlopen_self=$enable_dlopen_self
14881 # Whether dlopen of statically linked programs is supported.
14882 dlopen_self_static=$enable_dlopen_self_static
14884 # Commands to strip libraries.
14885 old_striplib=$lt_old_striplib
14886 striplib=$lt_striplib
14889 # The linker used to build libraries.
14890 LD=$lt_LD
14892 # How to create reloadable object files.
14893 reload_flag=$lt_reload_flag
14894 reload_cmds=$lt_reload_cmds
14896 # Commands used to build an old-style archive.
14897 old_archive_cmds=$lt_old_archive_cmds
14899 # A language specific compiler.
14900 CC=$lt_compiler
14902 # Is the compiler the GNU compiler?
14903 with_gcc=$GCC
14905 # Compiler flag to turn off builtin functions.
14906 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14908 # Additional compiler flags for building library objects.
14909 pic_flag=$lt_lt_prog_compiler_pic
14911 # How to pass a linker flag through the compiler.
14912 wl=$lt_lt_prog_compiler_wl
14914 # Compiler flag to prevent dynamic linking.
14915 link_static_flag=$lt_lt_prog_compiler_static
14917 # Does compiler simultaneously support -c and -o options?
14918 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14920 # Whether or not to add -lc for building shared libraries.
14921 build_libtool_need_lc=$archive_cmds_need_lc
14923 # Whether or not to disallow shared libs when runtime libs are static.
14924 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14926 # Compiler flag to allow reflexive dlopens.
14927 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14929 # Compiler flag to generate shared objects directly from archives.
14930 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14932 # Whether the compiler copes with passing no objects directly.
14933 compiler_needs_object=$lt_compiler_needs_object
14935 # Create an old-style archive from a shared archive.
14936 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14938 # Create a temporary old-style archive to link instead of a shared archive.
14939 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14941 # Commands used to build a shared archive.
14942 archive_cmds=$lt_archive_cmds
14943 archive_expsym_cmds=$lt_archive_expsym_cmds
14945 # Commands used to build a loadable module if different from building
14946 # a shared archive.
14947 module_cmds=$lt_module_cmds
14948 module_expsym_cmds=$lt_module_expsym_cmds
14950 # Whether we are building with GNU ld or not.
14951 with_gnu_ld=$lt_with_gnu_ld
14953 # Flag that allows shared libraries with undefined symbols to be built.
14954 allow_undefined_flag=$lt_allow_undefined_flag
14956 # Flag that enforces no undefined symbols.
14957 no_undefined_flag=$lt_no_undefined_flag
14959 # Flag to hardcode \$libdir into a binary during linking.
14960 # This must work even if \$libdir does not exist
14961 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14963 # Whether we need a single "-rpath" flag with a separated argument.
14964 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14966 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14967 # DIR into the resulting binary.
14968 hardcode_direct=$hardcode_direct
14970 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14971 # DIR into the resulting binary and the resulting library dependency is
14972 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14973 # library is relocated.
14974 hardcode_direct_absolute=$hardcode_direct_absolute
14976 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14977 # into the resulting binary.
14978 hardcode_minus_L=$hardcode_minus_L
14980 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14981 # into the resulting binary.
14982 hardcode_shlibpath_var=$hardcode_shlibpath_var
14984 # Set to "yes" if building a shared library automatically hardcodes DIR
14985 # into the library and all subsequent libraries and executables linked
14986 # against it.
14987 hardcode_automatic=$hardcode_automatic
14989 # Set to yes if linker adds runtime paths of dependent libraries
14990 # to runtime path list.
14991 inherit_rpath=$inherit_rpath
14993 # Whether libtool must link a program against all its dependency libraries.
14994 link_all_deplibs=$link_all_deplibs
14996 # Set to "yes" if exported symbols are required.
14997 always_export_symbols=$always_export_symbols
14999 # The commands to list exported symbols.
15000 export_symbols_cmds=$lt_export_symbols_cmds
15002 # Symbols that should not be listed in the preloaded symbols.
15003 exclude_expsyms=$lt_exclude_expsyms
15005 # Symbols that must always be exported.
15006 include_expsyms=$lt_include_expsyms
15008 # Commands necessary for linking programs (against libraries) with templates.
15009 prelink_cmds=$lt_prelink_cmds
15011 # Commands necessary for finishing linking programs.
15012 postlink_cmds=$lt_postlink_cmds
15014 # Specify filename containing input files.
15015 file_list_spec=$lt_file_list_spec
15017 # How to hardcode a shared library path into an executable.
15018 hardcode_action=$hardcode_action
15020 # ### END LIBTOOL CONFIG
15022 _LT_EOF
15024 cat <<'_LT_EOF' >> "$cfgfile"
15026 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15028 # func_munge_path_list VARIABLE PATH
15029 # -----------------------------------
15030 # VARIABLE is name of variable containing _space_ separated list of
15031 # directories to be munged by the contents of PATH, which is string
15032 # having a format:
15033 # "DIR[:DIR]:"
15034 # string "DIR[ DIR]" will be prepended to VARIABLE
15035 # ":DIR[:DIR]"
15036 # string "DIR[ DIR]" will be appended to VARIABLE
15037 # "DIRP[:DIRP]::[DIRA:]DIRA"
15038 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15039 # "DIRA[ DIRA]" will be appended to VARIABLE
15040 # "DIR[:DIR]"
15041 # VARIABLE will be replaced by "DIR[ DIR]"
15042 func_munge_path_list ()
15043 {
15044 case x$2 in
15045 x)
15046 ;;
15047 *:)
15048 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15049 ;;
15050 x:*)
15051 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15052 ;;
15053 *::*)
15054 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15055 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15056 ;;
15057 *)
15058 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15059 ;;
15060 esac
15061 }
15064 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15065 func_cc_basename ()
15066 {
15067 for cc_temp in $*""; do
15068 case $cc_temp in
15069 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15070 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15071 \-*) ;;
15072 *) break;;
15073 esac
15074 done
15075 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15076 }
15079 # ### END FUNCTIONS SHARED WITH CONFIGURE
15081 _LT_EOF
15083 case $host_os in
15084 aix3*)
15085 cat <<\_LT_EOF >> "$cfgfile"
15086 # AIX sometimes has problems with the GCC collect2 program. For some
15087 # reason, if we set the COLLECT_NAMES environment variable, the problems
15088 # vanish in a puff of smoke.
15089 if test set != "${COLLECT_NAMES+set}"; then
15090 COLLECT_NAMES=
15091 export COLLECT_NAMES
15092 fi
15093 _LT_EOF
15094 ;;
15095 esac
15098 ltmain=$ac_aux_dir/ltmain.sh
15101 # We use sed instead of cat because bash on DJGPP gets confused if
15102 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15103 # text mode, it properly converts lines to CR/LF. This bash problem
15104 # is reportedly fixed, but why not run on old versions too?
15105 sed '$q' "$ltmain" >> "$cfgfile" \
15106 || (rm -f "$cfgfile"; exit 1)
15108 mv -f "$cfgfile" "$ofile" ||
15109 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15110 chmod +x "$ofile"
15112 ;;
15114 esac
15115 done # for ac_tag
15118 as_fn_exit 0
15119 _ACEOF
15120 ac_clean_files=$ac_clean_files_save
15122 test $ac_write_fail = 0 ||
15123 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15126 # configure is writing to config.log, and then calls config.status.
15127 # config.status does its own redirection, appending to config.log.
15128 # Unfortunately, on DOS this fails, as config.log is still kept open
15129 # by configure, so config.status won't be able to write to it; its
15130 # output is simply discarded. So we exec the FD to /dev/null,
15131 # effectively closing config.log, so it can be properly (re)opened and
15132 # appended to by config.status. When coming back to configure, we
15133 # need to make the FD available again.
15134 if test "$no_create" != yes; then
15135 ac_cs_success=:
15136 ac_config_status_args=
15137 test "$silent" = yes &&
15138 ac_config_status_args="$ac_config_status_args --quiet"
15139 exec 5>/dev/null
15140 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15141 exec 5>>config.log
15142 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15143 # would make configure fail if this is the last instruction.
15144 $ac_cs_success || as_fn_exit 1
15145 fi
15146 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15148 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15149 fi
15152 echo \
15153 "-----------------------------------------------------------
15155 Thank you for installing the Linux ${PACKAGE_NAME} package
15157 Installation directory prefix: '${prefix}'.
15158 Compilation command: '${CC} ${CFLAGS} ${CPPFLAGS}'
15160 You have configured to build for the '${PLATFORM}' platform
15162 Your KERNEL installation directory is set to:
15163 '${KERNEL_INSTALL_DIR}'
15165 Your DRM installation directory is set to:
15166 '${DRM_PREFIX}'
15168 Your CMEM installation directory is set to:
15169 '${CMEM_INSTALL_DIR}'
15171 Now type 'make; sudo make install' to generate the program
15172 and install it to your system.
15174 ------------------------------------------------------------"