Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libmms 0.6.4.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='libmms'
589 PACKAGE_TARNAME='libmms'
590 PACKAGE_VERSION='0.6.4'
591 PACKAGE_STRING='libmms 0.6.4'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="configure.in"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 MMS_LIBS
637 MMS_PKG_CFLAGS
638 MMS_CFLAGS
639 OTOOL64
640 OTOOL
641 LIPO
642 NMEDIT
643 DSYMUTIL
644 MANIFEST_TOOL
645 RANLIB
646 ac_ct_AR
647 AR
648 DLLTOOL
649 OBJDUMP
650 LN_S
651 NM
652 ac_ct_DUMPBIN
653 DUMPBIN
654 LD
655 FGREP
656 SED
657 LIBTOOL
658 EGREP
659 GREP
660 CPP
661 host_os
662 host_vendor
663 host_cpu
664 host
665 build_os
666 build_vendor
667 build_cpu
668 build
669 am__fastdepCC_FALSE
670 am__fastdepCC_TRUE
671 CCDEPMODE
672 am__nodep
673 AMDEPBACKSLASH
674 AMDEP_FALSE
675 AMDEP_TRUE
676 am__quote
677 am__include
678 DEPDIR
679 OBJEXT
680 EXEEXT
681 ac_ct_CC
682 CPPFLAGS
683 LDFLAGS
684 CFLAGS
685 CC
686 am__untar
687 am__tar
688 AMTAR
689 am__leading_dot
690 SET_MAKE
691 AWK
692 mkdir_p
693 MKDIR_P
694 INSTALL_STRIP_PROGRAM
695 STRIP
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 PACKAGE
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 target_alias
710 host_alias
711 build_alias
712 LIBS
713 ECHO_T
714 ECHO_N
715 ECHO_C
716 DEFS
717 mandir
718 localedir
719 libdir
720 psdir
721 pdfdir
722 dvidir
723 htmldir
724 infodir
725 docdir
726 oldincludedir
727 includedir
728 localstatedir
729 sharedstatedir
730 sysconfdir
731 datadir
732 datarootdir
733 libexecdir
734 sbindir
735 bindir
736 program_transform_name
737 prefix
738 exec_prefix
739 PACKAGE_URL
740 PACKAGE_BUGREPORT
741 PACKAGE_STRING
742 PACKAGE_VERSION
743 PACKAGE_TARNAME
744 PACKAGE_NAME
745 PATH_SEPARATOR
746 SHELL'
747 ac_subst_files=''
748 ac_user_opts='
749 enable_option_checking
750 enable_dependency_tracking
751 enable_shared
752 enable_static
753 with_pic
754 enable_fast_install
755 with_gnu_ld
756 with_sysroot
757 enable_libtool_lock
758 '
759 ac_precious_vars='build_alias
760 host_alias
761 target_alias
762 CC
763 CFLAGS
764 LDFLAGS
765 LIBS
766 CPPFLAGS
767 CPP'
768
769
770 # Initialize some variables set by options.
771 ac_init_help=
772 ac_init_version=false
773 ac_unrecognized_opts=
774 ac_unrecognized_sep=
775 # The variables have the same names as the options, with
776 # dashes changed to underlines.
777 cache_file=/dev/null
778 exec_prefix=NONE
779 no_create=
780 no_recursion=
781 prefix=NONE
782 program_prefix=NONE
783 program_suffix=NONE
784 program_transform_name=s,x,x,
785 silent=
786 site=
787 srcdir=
788 verbose=
789 x_includes=NONE
790 x_libraries=NONE
791
792 # Installation directory options.
793 # These are left unexpanded so users can "make install exec_prefix=/foo"
794 # and all the variables that are supposed to be based on exec_prefix
795 # by default will actually change.
796 # Use braces instead of parens because sh, perl, etc. also accept them.
797 # (The list follows the same order as the GNU Coding Standards.)
798 bindir='${exec_prefix}/bin'
799 sbindir='${exec_prefix}/sbin'
800 libexecdir='${exec_prefix}/libexec'
801 datarootdir='${prefix}/share'
802 datadir='${datarootdir}'
803 sysconfdir='${prefix}/etc'
804 sharedstatedir='${prefix}/com'
805 localstatedir='${prefix}/var'
806 includedir='${prefix}/include'
807 oldincludedir='/usr/include'
808 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
809 infodir='${datarootdir}/info'
810 htmldir='${docdir}'
811 dvidir='${docdir}'
812 pdfdir='${docdir}'
813 psdir='${docdir}'
814 libdir='${exec_prefix}/lib'
815 localedir='${datarootdir}/locale'
816 mandir='${datarootdir}/man'
817
818 ac_prev=
819 ac_dashdash=
820 for ac_option
821 do
822 # If the previous option needs an argument, assign it.
823 if test -n "$ac_prev"; then
824 eval $ac_prev=\$ac_option
825 ac_prev=
826 continue
827 fi
828
829 case $ac_option in
830 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
831 *=) ac_optarg= ;;
832 *) ac_optarg=yes ;;
833 esac
834
835 # Accept the important Cygnus configure options, so we can diagnose typos.
836
837 case $ac_dashdash$ac_option in
838 --)
839 ac_dashdash=yes ;;
840
841 -bindir | --bindir | --bindi | --bind | --bin | --bi)
842 ac_prev=bindir ;;
843 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
844 bindir=$ac_optarg ;;
845
846 -build | --build | --buil | --bui | --bu)
847 ac_prev=build_alias ;;
848 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
849 build_alias=$ac_optarg ;;
850
851 -cache-file | --cache-file | --cache-fil | --cache-fi \
852 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
853 ac_prev=cache_file ;;
854 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
855 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
856 cache_file=$ac_optarg ;;
857
858 --config-cache | -C)
859 cache_file=config.cache ;;
860
861 -datadir | --datadir | --datadi | --datad)
862 ac_prev=datadir ;;
863 -datadir=* | --datadir=* | --datadi=* | --datad=*)
864 datadir=$ac_optarg ;;
865
866 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
867 | --dataroo | --dataro | --datar)
868 ac_prev=datarootdir ;;
869 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
870 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
871 datarootdir=$ac_optarg ;;
872
873 -disable-* | --disable-*)
874 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
875 # Reject names that are not valid shell variable names.
876 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
877 as_fn_error $? "invalid feature name: $ac_useropt"
878 ac_useropt_orig=$ac_useropt
879 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
880 case $ac_user_opts in
881 *"
882 "enable_$ac_useropt"
883 "*) ;;
884 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
885 ac_unrecognized_sep=', ';;
886 esac
887 eval enable_$ac_useropt=no ;;
888
889 -docdir | --docdir | --docdi | --doc | --do)
890 ac_prev=docdir ;;
891 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
892 docdir=$ac_optarg ;;
893
894 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
895 ac_prev=dvidir ;;
896 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
897 dvidir=$ac_optarg ;;
898
899 -enable-* | --enable-*)
900 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903 as_fn_error $? "invalid feature name: $ac_useropt"
904 ac_useropt_orig=$ac_useropt
905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906 case $ac_user_opts in
907 *"
908 "enable_$ac_useropt"
909 "*) ;;
910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
911 ac_unrecognized_sep=', ';;
912 esac
913 eval enable_$ac_useropt=\$ac_optarg ;;
914
915 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
916 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
917 | --exec | --exe | --ex)
918 ac_prev=exec_prefix ;;
919 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
920 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
921 | --exec=* | --exe=* | --ex=*)
922 exec_prefix=$ac_optarg ;;
923
924 -gas | --gas | --ga | --g)
925 # Obsolete; use --with-gas.
926 with_gas=yes ;;
927
928 -help | --help | --hel | --he | -h)
929 ac_init_help=long ;;
930 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
931 ac_init_help=recursive ;;
932 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
933 ac_init_help=short ;;
934
935 -host | --host | --hos | --ho)
936 ac_prev=host_alias ;;
937 -host=* | --host=* | --hos=* | --ho=*)
938 host_alias=$ac_optarg ;;
939
940 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
941 ac_prev=htmldir ;;
942 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
943 | --ht=*)
944 htmldir=$ac_optarg ;;
945
946 -includedir | --includedir | --includedi | --included | --include \
947 | --includ | --inclu | --incl | --inc)
948 ac_prev=includedir ;;
949 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
950 | --includ=* | --inclu=* | --incl=* | --inc=*)
951 includedir=$ac_optarg ;;
952
953 -infodir | --infodir | --infodi | --infod | --info | --inf)
954 ac_prev=infodir ;;
955 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
956 infodir=$ac_optarg ;;
957
958 -libdir | --libdir | --libdi | --libd)
959 ac_prev=libdir ;;
960 -libdir=* | --libdir=* | --libdi=* | --libd=*)
961 libdir=$ac_optarg ;;
962
963 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
964 | --libexe | --libex | --libe)
965 ac_prev=libexecdir ;;
966 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
967 | --libexe=* | --libex=* | --libe=*)
968 libexecdir=$ac_optarg ;;
969
970 -localedir | --localedir | --localedi | --localed | --locale)
971 ac_prev=localedir ;;
972 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
973 localedir=$ac_optarg ;;
974
975 -localstatedir | --localstatedir | --localstatedi | --localstated \
976 | --localstate | --localstat | --localsta | --localst | --locals)
977 ac_prev=localstatedir ;;
978 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
979 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
980 localstatedir=$ac_optarg ;;
981
982 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
983 ac_prev=mandir ;;
984 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
985 mandir=$ac_optarg ;;
986
987 -nfp | --nfp | --nf)
988 # Obsolete; use --without-fp.
989 with_fp=no ;;
990
991 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
992 | --no-cr | --no-c | -n)
993 no_create=yes ;;
994
995 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
996 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
997 no_recursion=yes ;;
998
999 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1000 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1001 | --oldin | --oldi | --old | --ol | --o)
1002 ac_prev=oldincludedir ;;
1003 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1004 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1005 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1006 oldincludedir=$ac_optarg ;;
1007
1008 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1009 ac_prev=prefix ;;
1010 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1011 prefix=$ac_optarg ;;
1012
1013 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1014 | --program-pre | --program-pr | --program-p)
1015 ac_prev=program_prefix ;;
1016 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1017 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1018 program_prefix=$ac_optarg ;;
1019
1020 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1021 | --program-suf | --program-su | --program-s)
1022 ac_prev=program_suffix ;;
1023 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1024 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1025 program_suffix=$ac_optarg ;;
1026
1027 -program-transform-name | --program-transform-name \
1028 | --program-transform-nam | --program-transform-na \
1029 | --program-transform-n | --program-transform- \
1030 | --program-transform | --program-transfor \
1031 | --program-transfo | --program-transf \
1032 | --program-trans | --program-tran \
1033 | --progr-tra | --program-tr | --program-t)
1034 ac_prev=program_transform_name ;;
1035 -program-transform-name=* | --program-transform-name=* \
1036 | --program-transform-nam=* | --program-transform-na=* \
1037 | --program-transform-n=* | --program-transform-=* \
1038 | --program-transform=* | --program-transfor=* \
1039 | --program-transfo=* | --program-transf=* \
1040 | --program-trans=* | --program-tran=* \
1041 | --progr-tra=* | --program-tr=* | --program-t=*)
1042 program_transform_name=$ac_optarg ;;
1043
1044 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1045 ac_prev=pdfdir ;;
1046 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1047 pdfdir=$ac_optarg ;;
1048
1049 -psdir | --psdir | --psdi | --psd | --ps)
1050 ac_prev=psdir ;;
1051 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1052 psdir=$ac_optarg ;;
1053
1054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055 | -silent | --silent | --silen | --sile | --sil)
1056 silent=yes ;;
1057
1058 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1059 ac_prev=sbindir ;;
1060 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1061 | --sbi=* | --sb=*)
1062 sbindir=$ac_optarg ;;
1063
1064 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1065 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1066 | --sharedst | --shareds | --shared | --share | --shar \
1067 | --sha | --sh)
1068 ac_prev=sharedstatedir ;;
1069 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1070 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1071 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1072 | --sha=* | --sh=*)
1073 sharedstatedir=$ac_optarg ;;
1074
1075 -site | --site | --sit)
1076 ac_prev=site ;;
1077 -site=* | --site=* | --sit=*)
1078 site=$ac_optarg ;;
1079
1080 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1081 ac_prev=srcdir ;;
1082 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1083 srcdir=$ac_optarg ;;
1084
1085 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1086 | --syscon | --sysco | --sysc | --sys | --sy)
1087 ac_prev=sysconfdir ;;
1088 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1089 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1090 sysconfdir=$ac_optarg ;;
1091
1092 -target | --target | --targe | --targ | --tar | --ta | --t)
1093 ac_prev=target_alias ;;
1094 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1095 target_alias=$ac_optarg ;;
1096
1097 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1098 verbose=yes ;;
1099
1100 -version | --version | --versio | --versi | --vers | -V)
1101 ac_init_version=: ;;
1102
1103 -with-* | --with-*)
1104 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107 as_fn_error $? "invalid package name: $ac_useropt"
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1111 *"
1112 "with_$ac_useropt"
1113 "*) ;;
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1116 esac
1117 eval with_$ac_useropt=\$ac_optarg ;;
1118
1119 -without-* | --without-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error $? "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128 "with_$ac_useropt"
1129 "*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=no ;;
1134
1135 --x)
1136 # Obsolete; use --with-x.
1137 with_x=yes ;;
1138
1139 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1140 | --x-incl | --x-inc | --x-in | --x-i)
1141 ac_prev=x_includes ;;
1142 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1143 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1144 x_includes=$ac_optarg ;;
1145
1146 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1147 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1148 ac_prev=x_libraries ;;
1149 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1150 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1151 x_libraries=$ac_optarg ;;
1152
1153 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1154 Try \`$0 --help' for more information"
1155 ;;
1156
1157 *=*)
1158 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1159 # Reject names that are not valid shell variable names.
1160 case $ac_envvar in #(
1161 '' | [0-9]* | *[!_$as_cr_alnum]* )
1162 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1163 esac
1164 eval $ac_envvar=\$ac_optarg
1165 export $ac_envvar ;;
1166
1167 *)
1168 # FIXME: should be removed in autoconf 3.0.
1169 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1170 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1172 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1173 ;;
1174
1175 esac
1176 done
1177
1178 if test -n "$ac_prev"; then
1179 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1180 as_fn_error $? "missing argument to $ac_option"
1181 fi
1182
1183 if test -n "$ac_unrecognized_opts"; then
1184 case $enable_option_checking in
1185 no) ;;
1186 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1187 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1188 esac
1189 fi
1190
1191 # Check all directory arguments for consistency.
1192 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1193 datadir sysconfdir sharedstatedir localstatedir includedir \
1194 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1195 libdir localedir mandir
1196 do
1197 eval ac_val=\$$ac_var
1198 # Remove trailing slashes.
1199 case $ac_val in
1200 */ )
1201 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1202 eval $ac_var=\$ac_val;;
1203 esac
1204 # Be sure to have absolute directory names.
1205 case $ac_val in
1206 [\\/$]* | ?:[\\/]* ) continue;;
1207 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1208 esac
1209 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1210 done
1211
1212 # There might be people who depend on the old broken behavior: `$host'
1213 # used to hold the argument of --host etc.
1214 # FIXME: To remove some day.
1215 build=$build_alias
1216 host=$host_alias
1217 target=$target_alias
1218
1219 # FIXME: To remove some day.
1220 if test "x$host_alias" != x; then
1221 if test "x$build_alias" = x; then
1222 cross_compiling=maybe
1223 elif test "x$build_alias" != "x$host_alias"; then
1224 cross_compiling=yes
1225 fi
1226 fi
1227
1228 ac_tool_prefix=
1229 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230
1231 test "$silent" = yes && exec 6>/dev/null
1232
1233
1234 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235 ac_ls_di=`ls -di .` &&
1236 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1237 as_fn_error $? "working directory cannot be determined"
1238 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239 as_fn_error $? "pwd does not report name of working directory"
1240
1241
1242 # Find the source files, if location was not specified.
1243 if test -z "$srcdir"; then
1244 ac_srcdir_defaulted=yes
1245 # Try the directory containing this script, then the parent directory.
1246 ac_confdir=`$as_dirname -- "$as_myself" ||
1247 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1248 X"$as_myself" : 'X\(//\)[^/]' \| \
1249 X"$as_myself" : 'X\(//\)$' \| \
1250 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1251 $as_echo X"$as_myself" |
1252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253 s//\1/
1254 q
1255 }
1256 /^X\(\/\/\)[^/].*/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\/\)$/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\).*/{
1265 s//\1/
1266 q
1267 }
1268 s/.*/./; q'`
1269 srcdir=$ac_confdir
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 srcdir=..
1272 fi
1273 else
1274 ac_srcdir_defaulted=no
1275 fi
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1277 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1278 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1279 fi
1280 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1281 ac_abs_confdir=`(
1282 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1283 pwd)`
1284 # When building in place, set srcdir=.
1285 if test "$ac_abs_confdir" = "$ac_pwd"; then
1286 srcdir=.
1287 fi
1288 # Remove unnecessary trailing slashes from srcdir.
1289 # Double slashes in file names in object file debugging info
1290 # mess up M-x gdb in Emacs.
1291 case $srcdir in
1292 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1293 esac
1294 for ac_var in $ac_precious_vars; do
1295 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_env_${ac_var}_value=\$${ac_var}
1297 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1298 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1299 done
1300
1301 #
1302 # Report the --help message.
1303 #
1304 if test "$ac_init_help" = "long"; then
1305 # Omit some internal or obsolete options to make the list less imposing.
1306 # This message is too long to be a string in the A/UX 3.1 sh.
1307 cat <<_ACEOF
1308 \`configure' configures libmms 0.6.4 to adapt to many kinds of systems.
1309
1310 Usage: $0 [OPTION]... [VAR=VALUE]...
1311
1312 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1313 VAR=VALUE. See below for descriptions of some of the useful variables.
1314
1315 Defaults for the options are specified in brackets.
1316
1317 Configuration:
1318 -h, --help display this help and exit
1319 --help=short display options specific to this package
1320 --help=recursive display the short help of all the included packages
1321 -V, --version display version information and exit
1322 -q, --quiet, --silent do not print \`checking ...' messages
1323 --cache-file=FILE cache test results in FILE [disabled]
1324 -C, --config-cache alias for \`--cache-file=config.cache'
1325 -n, --no-create do not create output files
1326 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1327
1328 Installation directories:
1329 --prefix=PREFIX install architecture-independent files in PREFIX
1330 [$ac_default_prefix]
1331 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1332 [PREFIX]
1333
1334 By default, \`make install' will install all the files in
1335 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1336 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1337 for instance \`--prefix=\$HOME'.
1338
1339 For better control, use the options below.
1340
1341 Fine tuning of the installation directories:
1342 --bindir=DIR user executables [EPREFIX/bin]
1343 --sbindir=DIR system admin executables [EPREFIX/sbin]
1344 --libexecdir=DIR program executables [EPREFIX/libexec]
1345 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1346 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1347 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1348 --libdir=DIR object code libraries [EPREFIX/lib]
1349 --includedir=DIR C header files [PREFIX/include]
1350 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1351 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1352 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1353 --infodir=DIR info documentation [DATAROOTDIR/info]
1354 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1355 --mandir=DIR man documentation [DATAROOTDIR/man]
1356 --docdir=DIR documentation root [DATAROOTDIR/doc/libmms]
1357 --htmldir=DIR html documentation [DOCDIR]
1358 --dvidir=DIR dvi documentation [DOCDIR]
1359 --pdfdir=DIR pdf documentation [DOCDIR]
1360 --psdir=DIR ps documentation [DOCDIR]
1361 _ACEOF
1362
1363 cat <<\_ACEOF
1364
1365 Program names:
1366 --program-prefix=PREFIX prepend PREFIX to installed program names
1367 --program-suffix=SUFFIX append SUFFIX to installed program names
1368 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1369
1370 System types:
1371 --build=BUILD configure for building on BUILD [guessed]
1372 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1373 _ACEOF
1374 fi
1375
1376 if test -n "$ac_init_help"; then
1377 case $ac_init_help in
1378 short | recursive ) echo "Configuration of libmms 0.6.4:";;
1379 esac
1380 cat <<\_ACEOF
1381
1382 Optional Features:
1383 --disable-option-checking ignore unrecognized --enable/--with options
1384 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1385 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1386 --disable-dependency-tracking speeds up one-time build
1387 --enable-dependency-tracking do not reject slow dependency extractors
1388 --enable-shared[=PKGS] build shared libraries [default=yes]
1389 --enable-static[=PKGS] build static libraries [default=yes]
1390 --enable-fast-install[=PKGS]
1391 optimize for fast installation [default=yes]
1392 --disable-libtool-lock avoid locking (might break parallel builds)
1393
1394 Optional Packages:
1395 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1396 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1397 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1398 both]
1399 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1400 --with-sysroot=DIR Search for dependent libraries within DIR
1401 (or the compiler's sysroot if not specified).
1402
1403 Some influential environment variables:
1404 CC C compiler command
1405 CFLAGS C compiler flags
1406 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1407 nonstandard directory <lib dir>
1408 LIBS libraries to pass to the linker, e.g. -l<library>
1409 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1410 you have headers in a nonstandard directory <include dir>
1411 CPP C preprocessor
1412
1413 Use these variables to override the choices made by `configure' or to help
1414 it to find libraries and programs with nonstandard names/locations.
1415
1416 Report bugs to the package provider.
1417 _ACEOF
1418 ac_status=$?
1419 fi
1420
1421 if test "$ac_init_help" = "recursive"; then
1422 # If there are subdirs, report their specific --help.
1423 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1424 test -d "$ac_dir" ||
1425 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1426 continue
1427 ac_builddir=.
1428
1429 case "$ac_dir" in
1430 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431 *)
1432 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1433 # A ".." for each directory in $ac_dir_suffix.
1434 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1435 case $ac_top_builddir_sub in
1436 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1438 esac ;;
1439 esac
1440 ac_abs_top_builddir=$ac_pwd
1441 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1442 # for backward compatibility:
1443 ac_top_builddir=$ac_top_build_prefix
1444
1445 case $srcdir in
1446 .) # We are building in place.
1447 ac_srcdir=.
1448 ac_top_srcdir=$ac_top_builddir_sub
1449 ac_abs_top_srcdir=$ac_pwd ;;
1450 [\\/]* | ?:[\\/]* ) # Absolute name.
1451 ac_srcdir=$srcdir$ac_dir_suffix;
1452 ac_top_srcdir=$srcdir
1453 ac_abs_top_srcdir=$srcdir ;;
1454 *) # Relative name.
1455 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1456 ac_top_srcdir=$ac_top_build_prefix$srcdir
1457 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1458 esac
1459 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1460
1461 cd "$ac_dir" || { ac_status=$?; continue; }
1462 # Check for guested configure.
1463 if test -f "$ac_srcdir/configure.gnu"; then
1464 echo &&
1465 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1466 elif test -f "$ac_srcdir/configure"; then
1467 echo &&
1468 $SHELL "$ac_srcdir/configure" --help=recursive
1469 else
1470 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1471 fi || ac_status=$?
1472 cd "$ac_pwd" || { ac_status=$?; break; }
1473 done
1474 fi
1475
1476 test -n "$ac_init_help" && exit $ac_status
1477 if $ac_init_version; then
1478 cat <<\_ACEOF
1479 libmms configure 0.6.4
1480 generated by GNU Autoconf 2.69
1481
1482 Copyright (C) 2012 Free Software Foundation, Inc.
1483 This configure script is free software; the Free Software Foundation
1484 gives unlimited permission to copy, distribute and modify it.
1485 _ACEOF
1486 exit
1487 fi
1488
1489 ## ------------------------ ##
1490 ## Autoconf initialization. ##
1491 ## ------------------------ ##
1492
1493 # ac_fn_c_try_compile LINENO
1494 # --------------------------
1495 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1496 ac_fn_c_try_compile ()
1497 {
1498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1499 rm -f conftest.$ac_objext
1500 if { { ac_try="$ac_compile"
1501 case "(($ac_try" in
1502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1503 *) ac_try_echo=$ac_try;;
1504 esac
1505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1506 $as_echo "$ac_try_echo"; } >&5
1507 (eval "$ac_compile") 2>conftest.err
1508 ac_status=$?
1509 if test -s conftest.err; then
1510 grep -v '^ *+' conftest.err >conftest.er1
1511 cat conftest.er1 >&5
1512 mv -f conftest.er1 conftest.err
1513 fi
1514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1515 test $ac_status = 0; } && {
1516 test -z "$ac_c_werror_flag" ||
1517 test ! -s conftest.err
1518 } && test -s conftest.$ac_objext; then :
1519 ac_retval=0
1520 else
1521 $as_echo "$as_me: failed program was:" >&5
1522 sed 's/^/| /' conftest.$ac_ext >&5
1523
1524 ac_retval=1
1525 fi
1526 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1527 as_fn_set_status $ac_retval
1528
1529 } # ac_fn_c_try_compile
1530
1531 # ac_fn_c_try_link LINENO
1532 # -----------------------
1533 # Try to link conftest.$ac_ext, and return whether this succeeded.
1534 ac_fn_c_try_link ()
1535 {
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext conftest$ac_exeext
1538 if { { ac_try="$ac_link"
1539 case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542 esac
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_link") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1551 fi
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest$ac_exeext && {
1557 test "$cross_compiling" = yes ||
1558 test -x conftest$ac_exeext
1559 }; then :
1560 ac_retval=0
1561 else
1562 $as_echo "$as_me: failed program was:" >&5
1563 sed 's/^/| /' conftest.$ac_ext >&5
1564
1565 ac_retval=1
1566 fi
1567 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1568 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1569 # interfere with the next link command; also delete a directory that is
1570 # left behind by Apple's compiler. We do this before executing the actions.
1571 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573 as_fn_set_status $ac_retval
1574
1575 } # ac_fn_c_try_link
1576
1577 # ac_fn_c_try_cpp LINENO
1578 # ----------------------
1579 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_cpp ()
1581 {
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 if { { ac_try="$ac_cpp conftest.$ac_ext"
1584 case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587 esac
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1596 fi
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } > conftest.i && {
1599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1600 test ! -s conftest.err
1601 }; then :
1602 ac_retval=0
1603 else
1604 $as_echo "$as_me: failed program was:" >&5
1605 sed 's/^/| /' conftest.$ac_ext >&5
1606
1607 ac_retval=1
1608 fi
1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610 as_fn_set_status $ac_retval
1611
1612 } # ac_fn_c_try_cpp
1613
1614 # ac_fn_c_try_run LINENO
1615 # ----------------------
1616 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1617 # that executables *can* be run.
1618 ac_fn_c_try_run ()
1619 {
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 if { { ac_try="$ac_link"
1622 case "(($ac_try" in
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1625 esac
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_link") 2>&5
1629 ac_status=$?
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1632 { { case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_try") 2>&5
1639 ac_status=$?
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; }; }; then :
1642 ac_retval=0
1643 else
1644 $as_echo "$as_me: program exited with status $ac_status" >&5
1645 $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1647
1648 ac_retval=$ac_status
1649 fi
1650 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
1653
1654 } # ac_fn_c_try_run
1655
1656 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1657 # -------------------------------------------------------
1658 # Tests whether HEADER exists and can be compiled using the include files in
1659 # INCLUDES, setting the cache variable VAR accordingly.
1660 ac_fn_c_check_header_compile ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1664 $as_echo_n "checking for $2... " >&6; }
1665 if eval \${$3+:} false; then :
1666 $as_echo_n "(cached) " >&6
1667 else
1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669 /* end confdefs.h. */
1670 $4
1671 #include <$2>
1672 _ACEOF
1673 if ac_fn_c_try_compile "$LINENO"; then :
1674 eval "$3=yes"
1675 else
1676 eval "$3=no"
1677 fi
1678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1679 fi
1680 eval ac_res=\$$3
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1682 $as_echo "$ac_res" >&6; }
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684
1685 } # ac_fn_c_check_header_compile
1686
1687 # ac_fn_c_check_func LINENO FUNC VAR
1688 # ----------------------------------
1689 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1690 ac_fn_c_check_func ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694 $as_echo_n "checking for $2... " >&6; }
1695 if eval \${$3+:} false; then :
1696 $as_echo_n "(cached) " >&6
1697 else
1698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1699 /* end confdefs.h. */
1700 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1702 #define $2 innocuous_$2
1703
1704 /* System header to define __stub macros and hopefully few prototypes,
1705 which can conflict with char $2 (); below.
1706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1707 <limits.h> exists even on freestanding compilers. */
1708
1709 #ifdef __STDC__
1710 # include <limits.h>
1711 #else
1712 # include <assert.h>
1713 #endif
1714
1715 #undef $2
1716
1717 /* Override any GCC internal prototype to avoid an error.
1718 Use char because int might match the return type of a GCC
1719 builtin and then its argument prototype would still apply. */
1720 #ifdef __cplusplus
1721 extern "C"
1722 #endif
1723 char $2 ();
1724 /* The GNU C library defines this for functions which it implements
1725 to always fail with ENOSYS. Some functions are actually named
1726 something starting with __ and the normal name is an alias. */
1727 #if defined __stub_$2 || defined __stub___$2
1728 choke me
1729 #endif
1730
1731 int
1732 main ()
1733 {
1734 return $2 ();
1735 ;
1736 return 0;
1737 }
1738 _ACEOF
1739 if ac_fn_c_try_link "$LINENO"; then :
1740 eval "$3=yes"
1741 else
1742 eval "$3=no"
1743 fi
1744 rm -f core conftest.err conftest.$ac_objext \
1745 conftest$ac_exeext conftest.$ac_ext
1746 fi
1747 eval ac_res=\$$3
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749 $as_echo "$ac_res" >&6; }
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751
1752 } # ac_fn_c_check_func
1753
1754 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1755 # -------------------------------------------------------
1756 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1757 # the include files in INCLUDES and setting the cache variable VAR
1758 # accordingly.
1759 ac_fn_c_check_header_mongrel ()
1760 {
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if eval \${$3+:} false; then :
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766 $as_echo_n "(cached) " >&6
1767 fi
1768 eval ac_res=\$$3
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 $as_echo "$ac_res" >&6; }
1771 else
1772 # Is the header compilable?
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1774 $as_echo_n "checking $2 usability... " >&6; }
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1777 $4
1778 #include <$2>
1779 _ACEOF
1780 if ac_fn_c_try_compile "$LINENO"; then :
1781 ac_header_compiler=yes
1782 else
1783 ac_header_compiler=no
1784 fi
1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1787 $as_echo "$ac_header_compiler" >&6; }
1788
1789 # Is the header present?
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1791 $as_echo_n "checking $2 presence... " >&6; }
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1794 #include <$2>
1795 _ACEOF
1796 if ac_fn_c_try_cpp "$LINENO"; then :
1797 ac_header_preproc=yes
1798 else
1799 ac_header_preproc=no
1800 fi
1801 rm -f conftest.err conftest.i conftest.$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1803 $as_echo "$ac_header_preproc" >&6; }
1804
1805 # So? What about this header?
1806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1807 yes:no: )
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1809 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1811 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1812 ;;
1813 no:yes:* )
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1815 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1817 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1819 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1821 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1823 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1824 ;;
1825 esac
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827 $as_echo_n "checking for $2... " >&6; }
1828 if eval \${$3+:} false; then :
1829 $as_echo_n "(cached) " >&6
1830 else
1831 eval "$3=\$ac_header_compiler"
1832 fi
1833 eval ac_res=\$$3
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836 fi
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838
1839 } # ac_fn_c_check_header_mongrel
1840 cat >config.log <<_ACEOF
1841 This file contains any messages produced by compilers while
1842 running configure, to aid debugging if configure makes a mistake.
1843
1844 It was created by libmms $as_me 0.6.4, which was
1845 generated by GNU Autoconf 2.69. Invocation command line was
1846
1847 $ $0 $@
1848
1849 _ACEOF
1850 exec 5>>config.log
1851 {
1852 cat <<_ASUNAME
1853 ## --------- ##
1854 ## Platform. ##
1855 ## --------- ##
1856
1857 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1858 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1859 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1860 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1861 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1862
1863 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1864 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1865
1866 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1867 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1868 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1869 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1870 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1871 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1872 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1873
1874 _ASUNAME
1875
1876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877 for as_dir in $PATH
1878 do
1879 IFS=$as_save_IFS
1880 test -z "$as_dir" && as_dir=.
1881 $as_echo "PATH: $as_dir"
1882 done
1883 IFS=$as_save_IFS
1884
1885 } >&5
1886
1887 cat >&5 <<_ACEOF
1888
1889
1890 ## ----------- ##
1891 ## Core tests. ##
1892 ## ----------- ##
1893
1894 _ACEOF
1895
1896
1897 # Keep a trace of the command line.
1898 # Strip out --no-create and --no-recursion so they do not pile up.
1899 # Strip out --silent because we don't want to record it for future runs.
1900 # Also quote any args containing shell meta-characters.
1901 # Make two passes to allow for proper duplicate-argument suppression.
1902 ac_configure_args=
1903 ac_configure_args0=
1904 ac_configure_args1=
1905 ac_must_keep_next=false
1906 for ac_pass in 1 2
1907 do
1908 for ac_arg
1909 do
1910 case $ac_arg in
1911 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1912 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1913 | -silent | --silent | --silen | --sile | --sil)
1914 continue ;;
1915 *\'*)
1916 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1917 esac
1918 case $ac_pass in
1919 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1920 2)
1921 as_fn_append ac_configure_args1 " '$ac_arg'"
1922 if test $ac_must_keep_next = true; then
1923 ac_must_keep_next=false # Got value, back to normal.
1924 else
1925 case $ac_arg in
1926 *=* | --config-cache | -C | -disable-* | --disable-* \
1927 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1928 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1929 | -with-* | --with-* | -without-* | --without-* | --x)
1930 case "$ac_configure_args0 " in
1931 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1932 esac
1933 ;;
1934 -* ) ac_must_keep_next=true ;;
1935 esac
1936 fi
1937 as_fn_append ac_configure_args " '$ac_arg'"
1938 ;;
1939 esac
1940 done
1941 done
1942 { ac_configure_args0=; unset ac_configure_args0;}
1943 { ac_configure_args1=; unset ac_configure_args1;}
1944
1945 # When interrupted or exit'd, cleanup temporary files, and complete
1946 # config.log. We remove comments because anyway the quotes in there
1947 # would cause problems or look ugly.
1948 # WARNING: Use '\'' to represent an apostrophe within the trap.
1949 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1950 trap 'exit_status=$?
1951 # Save into config.log some information that might help in debugging.
1952 {
1953 echo
1954
1955 $as_echo "## ---------------- ##
1956 ## Cache variables. ##
1957 ## ---------------- ##"
1958 echo
1959 # The following way of writing the cache mishandles newlines in values,
1960 (
1961 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1962 eval ac_val=\$$ac_var
1963 case $ac_val in #(
1964 *${as_nl}*)
1965 case $ac_var in #(
1966 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1967 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1968 esac
1969 case $ac_var in #(
1970 _ | IFS | as_nl) ;; #(
1971 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1972 *) { eval $ac_var=; unset $ac_var;} ;;
1973 esac ;;
1974 esac
1975 done
1976 (set) 2>&1 |
1977 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1978 *${as_nl}ac_space=\ *)
1979 sed -n \
1980 "s/'\''/'\''\\\\'\'''\''/g;
1981 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1982 ;; #(
1983 *)
1984 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1985 ;;
1986 esac |
1987 sort
1988 )
1989 echo
1990
1991 $as_echo "## ----------------- ##
1992 ## Output variables. ##
1993 ## ----------------- ##"
1994 echo
1995 for ac_var in $ac_subst_vars
1996 do
1997 eval ac_val=\$$ac_var
1998 case $ac_val in
1999 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2000 esac
2001 $as_echo "$ac_var='\''$ac_val'\''"
2002 done | sort
2003 echo
2004
2005 if test -n "$ac_subst_files"; then
2006 $as_echo "## ------------------- ##
2007 ## File substitutions. ##
2008 ## ------------------- ##"
2009 echo
2010 for ac_var in $ac_subst_files
2011 do
2012 eval ac_val=\$$ac_var
2013 case $ac_val in
2014 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2015 esac
2016 $as_echo "$ac_var='\''$ac_val'\''"
2017 done | sort
2018 echo
2019 fi
2020
2021 if test -s confdefs.h; then
2022 $as_echo "## ----------- ##
2023 ## confdefs.h. ##
2024 ## ----------- ##"
2025 echo
2026 cat confdefs.h
2027 echo
2028 fi
2029 test "$ac_signal" != 0 &&
2030 $as_echo "$as_me: caught signal $ac_signal"
2031 $as_echo "$as_me: exit $exit_status"
2032 } >&5
2033 rm -f core *.core core.conftest.* &&
2034 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2035 exit $exit_status
2036 ' 0
2037 for ac_signal in 1 2 13 15; do
2038 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2039 done
2040 ac_signal=0
2041
2042 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2043 rm -f -r conftest* confdefs.h
2044
2045 $as_echo "/* confdefs.h */" > confdefs.h
2046
2047 # Predefined preprocessor variables.
2048
2049 cat >>confdefs.h <<_ACEOF
2050 #define PACKAGE_NAME "$PACKAGE_NAME"
2051 _ACEOF
2052
2053 cat >>confdefs.h <<_ACEOF
2054 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2055 _ACEOF
2056
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2059 _ACEOF
2060
2061 cat >>confdefs.h <<_ACEOF
2062 #define PACKAGE_STRING "$PACKAGE_STRING"
2063 _ACEOF
2064
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2067 _ACEOF
2068
2069 cat >>confdefs.h <<_ACEOF
2070 #define PACKAGE_URL "$PACKAGE_URL"
2071 _ACEOF
2072
2073
2074 # Let the site file select an alternate cache file if it wants to.
2075 # Prefer an explicitly selected file to automatically selected ones.
2076 ac_site_file1=NONE
2077 ac_site_file2=NONE
2078 if test -n "$CONFIG_SITE"; then
2079 # We do not want a PATH search for config.site.
2080 case $CONFIG_SITE in #((
2081 -*) ac_site_file1=./$CONFIG_SITE;;
2082 */*) ac_site_file1=$CONFIG_SITE;;
2083 *) ac_site_file1=./$CONFIG_SITE;;
2084 esac
2085 elif test "x$prefix" != xNONE; then
2086 ac_site_file1=$prefix/share/config.site
2087 ac_site_file2=$prefix/etc/config.site
2088 else
2089 ac_site_file1=$ac_default_prefix/share/config.site
2090 ac_site_file2=$ac_default_prefix/etc/config.site
2091 fi
2092 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2093 do
2094 test "x$ac_site_file" = xNONE && continue
2095 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2097 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2098 sed 's/^/| /' "$ac_site_file" >&5
2099 . "$ac_site_file" \
2100 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2102 as_fn_error $? "failed to load site script $ac_site_file
2103 See \`config.log' for more details" "$LINENO" 5; }
2104 fi
2105 done
2106
2107 if test -r "$cache_file"; then
2108 # Some versions of bash will fail to source /dev/null (special files
2109 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2110 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2112 $as_echo "$as_me: loading cache $cache_file" >&6;}
2113 case $cache_file in
2114 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2115 *) . "./$cache_file";;
2116 esac
2117 fi
2118 else
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2120 $as_echo "$as_me: creating cache $cache_file" >&6;}
2121 >$cache_file
2122 fi
2123
2124 # Check that the precious variables saved in the cache have kept the same
2125 # value.
2126 ac_cache_corrupted=false
2127 for ac_var in $ac_precious_vars; do
2128 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2129 eval ac_new_set=\$ac_env_${ac_var}_set
2130 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2131 eval ac_new_val=\$ac_env_${ac_var}_value
2132 case $ac_old_set,$ac_new_set in
2133 set,)
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2135 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2136 ac_cache_corrupted=: ;;
2137 ,set)
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2139 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2140 ac_cache_corrupted=: ;;
2141 ,);;
2142 *)
2143 if test "x$ac_old_val" != "x$ac_new_val"; then
2144 # differences in whitespace do not lead to failure.
2145 ac_old_val_w=`echo x $ac_old_val`
2146 ac_new_val_w=`echo x $ac_new_val`
2147 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2149 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2150 ac_cache_corrupted=:
2151 else
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2153 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2154 eval $ac_var=\$ac_old_val
2155 fi
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2157 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2159 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2160 fi;;
2161 esac
2162 # Pass precious variables to config.status.
2163 if test "$ac_new_set" = set; then
2164 case $ac_new_val in
2165 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2166 *) ac_arg=$ac_var=$ac_new_val ;;
2167 esac
2168 case " $ac_configure_args " in
2169 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2170 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2171 esac
2172 fi
2173 done
2174 if $ac_cache_corrupted; then
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2178 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2179 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2180 fi
2181 ## -------------------- ##
2182 ## Main body of script. ##
2183 ## -------------------- ##
2184
2185 ac_ext=c
2186 ac_cpp='$CPP $CPPFLAGS'
2187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2190
2191
2192
2193 am__api_version='1.11'
2194
2195 ac_aux_dir=
2196 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2197 if test -f "$ac_dir/install-sh"; then
2198 ac_aux_dir=$ac_dir
2199 ac_install_sh="$ac_aux_dir/install-sh -c"
2200 break
2201 elif test -f "$ac_dir/install.sh"; then
2202 ac_aux_dir=$ac_dir
2203 ac_install_sh="$ac_aux_dir/install.sh -c"
2204 break
2205 elif test -f "$ac_dir/shtool"; then
2206 ac_aux_dir=$ac_dir
2207 ac_install_sh="$ac_aux_dir/shtool install -c"
2208 break
2209 fi
2210 done
2211 if test -z "$ac_aux_dir"; then
2212 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2213 fi
2214
2215 # These three variables are undocumented and unsupported,
2216 # and are intended to be withdrawn in a future Autoconf release.
2217 # They can cause serious problems if a builder's source tree is in a directory
2218 # whose full name contains unusual characters.
2219 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2220 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2221 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2222
2223
2224 # Find a good install program. We prefer a C program (faster),
2225 # so one script is as good as another. But avoid the broken or
2226 # incompatible versions:
2227 # SysV /etc/install, /usr/sbin/install
2228 # SunOS /usr/etc/install
2229 # IRIX /sbin/install
2230 # AIX /bin/install
2231 # AmigaOS /C/install, which installs bootblocks on floppy discs
2232 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2233 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2234 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2235 # OS/2's system install, which has a completely different semantic
2236 # ./install, which can be erroneously created by make from ./install.sh.
2237 # Reject install programs that cannot install multiple files.
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2239 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2240 if test -z "$INSTALL"; then
2241 if ${ac_cv_path_install+:} false; then :
2242 $as_echo_n "(cached) " >&6
2243 else
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 for as_dir in $PATH
2246 do
2247 IFS=$as_save_IFS
2248 test -z "$as_dir" && as_dir=.
2249 # Account for people who put trailing slashes in PATH elements.
2250 case $as_dir/ in #((
2251 ./ | .// | /[cC]/* | \
2252 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2253 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2254 /usr/ucb/* ) ;;
2255 *)
2256 # OSF1 and SCO ODT 3.0 have their own names for install.
2257 # Don't use installbsd from OSF since it installs stuff as root
2258 # by default.
2259 for ac_prog in ginstall scoinst install; do
2260 for ac_exec_ext in '' $ac_executable_extensions; do
2261 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2262 if test $ac_prog = install &&
2263 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2264 # AIX install. It has an incompatible calling convention.
2265 :
2266 elif test $ac_prog = install &&
2267 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2268 # program-specific install script used by HP pwplus--don't use.
2269 :
2270 else
2271 rm -rf conftest.one conftest.two conftest.dir
2272 echo one > conftest.one
2273 echo two > conftest.two
2274 mkdir conftest.dir
2275 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2276 test -s conftest.one && test -s conftest.two &&
2277 test -s conftest.dir/conftest.one &&
2278 test -s conftest.dir/conftest.two
2279 then
2280 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2281 break 3
2282 fi
2283 fi
2284 fi
2285 done
2286 done
2287 ;;
2288 esac
2289
2290 done
2291 IFS=$as_save_IFS
2292
2293 rm -rf conftest.one conftest.two conftest.dir
2294
2295 fi
2296 if test "${ac_cv_path_install+set}" = set; then
2297 INSTALL=$ac_cv_path_install
2298 else
2299 # As a last resort, use the slow shell script. Don't cache a
2300 # value for INSTALL within a source directory, because that will
2301 # break other packages using the cache if that directory is
2302 # removed, or if the value is a relative name.
2303 INSTALL=$ac_install_sh
2304 fi
2305 fi
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2307 $as_echo "$INSTALL" >&6; }
2308
2309 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2310 # It thinks the first close brace ends the variable substitution.
2311 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2312
2313 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2314
2315 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2316
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2318 $as_echo_n "checking whether build environment is sane... " >&6; }
2319 # Just in case
2320 sleep 1
2321 echo timestamp > conftest.file
2322 # Reject unsafe characters in $srcdir or the absolute working directory
2323 # name. Accept space and tab only in the latter.
2324 am_lf='
2325 '
2326 case `pwd` in
2327 *[\\\"\#\$\&\'\`$am_lf]*)
2328 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2329 esac
2330 case $srcdir in
2331 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2332 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2333 esac
2334
2335 # Do `set' in a subshell so we don't clobber the current shell's
2336 # arguments. Must try -L first in case configure is actually a
2337 # symlink; some systems play weird games with the mod time of symlinks
2338 # (eg FreeBSD returns the mod time of the symlink's containing
2339 # directory).
2340 if (
2341 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2342 if test "$*" = "X"; then
2343 # -L didn't work.
2344 set X `ls -t "$srcdir/configure" conftest.file`
2345 fi
2346 rm -f conftest.file
2347 if test "$*" != "X $srcdir/configure conftest.file" \
2348 && test "$*" != "X conftest.file $srcdir/configure"; then
2349
2350 # If neither matched, then we have a broken ls. This can happen
2351 # if, for instance, CONFIG_SHELL is bash and it inherits a
2352 # broken ls alias from the environment. This has actually
2353 # happened. Such a system could not be considered "sane".
2354 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2355 alias in your environment" "$LINENO" 5
2356 fi
2357
2358 test "$2" = conftest.file
2359 )
2360 then
2361 # Ok.
2362 :
2363 else
2364 as_fn_error $? "newly created file is older than distributed files!
2365 Check your system clock" "$LINENO" 5
2366 fi
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2368 $as_echo "yes" >&6; }
2369 test "$program_prefix" != NONE &&
2370 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2371 # Use a double $ so make ignores it.
2372 test "$program_suffix" != NONE &&
2373 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2374 # Double any \ or $.
2375 # By default was `s,x,x', remove it if useless.
2376 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2377 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2378
2379 # expand $ac_aux_dir to an absolute path
2380 am_aux_dir=`cd $ac_aux_dir && pwd`
2381
2382 if test x"${MISSING+set}" != xset; then
2383 case $am_aux_dir in
2384 *\ * | *\ *)
2385 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2386 *)
2387 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2388 esac
2389 fi
2390 # Use eval to expand $SHELL
2391 if eval "$MISSING --run true"; then
2392 am_missing_run="$MISSING --run "
2393 else
2394 am_missing_run=
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2396 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2397 fi
2398
2399 if test x"${install_sh}" != xset; then
2400 case $am_aux_dir in
2401 *\ * | *\ *)
2402 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2403 *)
2404 install_sh="\${SHELL} $am_aux_dir/install-sh"
2405 esac
2406 fi
2407
2408 # Installed binaries are usually stripped using `strip' when the user
2409 # run `make install-strip'. However `strip' might not be the right
2410 # tool to use in cross-compilation environments, therefore Automake
2411 # will honor the `STRIP' environment variable to overrule this program.
2412 if test "$cross_compiling" != no; then
2413 if test -n "$ac_tool_prefix"; then
2414 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2415 set dummy ${ac_tool_prefix}strip; ac_word=$2
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2417 $as_echo_n "checking for $ac_word... " >&6; }
2418 if ${ac_cv_prog_STRIP+:} false; then :
2419 $as_echo_n "(cached) " >&6
2420 else
2421 if test -n "$STRIP"; then
2422 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2423 else
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 for as_dir in $PATH
2426 do
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2431 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 break 2
2434 fi
2435 done
2436 done
2437 IFS=$as_save_IFS
2438
2439 fi
2440 fi
2441 STRIP=$ac_cv_prog_STRIP
2442 if test -n "$STRIP"; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2444 $as_echo "$STRIP" >&6; }
2445 else
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2447 $as_echo "no" >&6; }
2448 fi
2449
2450
2451 fi
2452 if test -z "$ac_cv_prog_STRIP"; then
2453 ac_ct_STRIP=$STRIP
2454 # Extract the first word of "strip", so it can be a program name with args.
2455 set dummy strip; ac_word=$2
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2457 $as_echo_n "checking for $ac_word... " >&6; }
2458 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2459 $as_echo_n "(cached) " >&6
2460 else
2461 if test -n "$ac_ct_STRIP"; then
2462 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2463 else
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2466 do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2471 ac_cv_prog_ac_ct_STRIP="strip"
2472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2473 break 2
2474 fi
2475 done
2476 done
2477 IFS=$as_save_IFS
2478
2479 fi
2480 fi
2481 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2482 if test -n "$ac_ct_STRIP"; then
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2484 $as_echo "$ac_ct_STRIP" >&6; }
2485 else
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2487 $as_echo "no" >&6; }
2488 fi
2489
2490 if test "x$ac_ct_STRIP" = x; then
2491 STRIP=":"
2492 else
2493 case $cross_compiling:$ac_tool_warned in
2494 yes:)
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2497 ac_tool_warned=yes ;;
2498 esac
2499 STRIP=$ac_ct_STRIP
2500 fi
2501 else
2502 STRIP="$ac_cv_prog_STRIP"
2503 fi
2504
2505 fi
2506 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2507
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2509 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2510 if test -z "$MKDIR_P"; then
2511 if ${ac_cv_path_mkdir+:} false; then :
2512 $as_echo_n "(cached) " >&6
2513 else
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2516 do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 for ac_prog in mkdir gmkdir; do
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2522 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2523 'mkdir (GNU coreutils) '* | \
2524 'mkdir (coreutils) '* | \
2525 'mkdir (fileutils) '4.1*)
2526 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2527 break 3;;
2528 esac
2529 done
2530 done
2531 done
2532 IFS=$as_save_IFS
2533
2534 fi
2535
2536 test -d ./--version && rmdir ./--version
2537 if test "${ac_cv_path_mkdir+set}" = set; then
2538 MKDIR_P="$ac_cv_path_mkdir -p"
2539 else
2540 # As a last resort, use the slow shell script. Don't cache a
2541 # value for MKDIR_P within a source directory, because that will
2542 # break other packages using the cache if that directory is
2543 # removed, or if the value is a relative name.
2544 MKDIR_P="$ac_install_sh -d"
2545 fi
2546 fi
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2548 $as_echo "$MKDIR_P" >&6; }
2549
2550 mkdir_p="$MKDIR_P"
2551 case $mkdir_p in
2552 [\\/$]* | ?:[\\/]*) ;;
2553 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2554 esac
2555
2556 for ac_prog in gawk mawk nawk awk
2557 do
2558 # Extract the first word of "$ac_prog", so it can be a program name with args.
2559 set dummy $ac_prog; ac_word=$2
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561 $as_echo_n "checking for $ac_word... " >&6; }
2562 if ${ac_cv_prog_AWK+:} false; then :
2563 $as_echo_n "(cached) " >&6
2564 else
2565 if test -n "$AWK"; then
2566 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2570 do
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2575 ac_cv_prog_AWK="$ac_prog"
2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 break 2
2578 fi
2579 done
2580 done
2581 IFS=$as_save_IFS
2582
2583 fi
2584 fi
2585 AWK=$ac_cv_prog_AWK
2586 if test -n "$AWK"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2588 $as_echo "$AWK" >&6; }
2589 else
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591 $as_echo "no" >&6; }
2592 fi
2593
2594
2595 test -n "$AWK" && break
2596 done
2597
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2599 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2600 set x ${MAKE-make}
2601 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2602 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2603 $as_echo_n "(cached) " >&6
2604 else
2605 cat >conftest.make <<\_ACEOF
2606 SHELL = /bin/sh
2607 all:
2608 @echo '@@@%%%=$(MAKE)=@@@%%%'
2609 _ACEOF
2610 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2611 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2612 *@@@%%%=?*=@@@%%%*)
2613 eval ac_cv_prog_make_${ac_make}_set=yes;;
2614 *)
2615 eval ac_cv_prog_make_${ac_make}_set=no;;
2616 esac
2617 rm -f conftest.make
2618 fi
2619 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2621 $as_echo "yes" >&6; }
2622 SET_MAKE=
2623 else
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625 $as_echo "no" >&6; }
2626 SET_MAKE="MAKE=${MAKE-make}"
2627 fi
2628
2629 rm -rf .tst 2>/dev/null
2630 mkdir .tst 2>/dev/null
2631 if test -d .tst; then
2632 am__leading_dot=.
2633 else
2634 am__leading_dot=_
2635 fi
2636 rmdir .tst 2>/dev/null
2637
2638 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2639 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2640 # is not polluted with repeated "-I."
2641 am__isrc=' -I$(srcdir)'
2642 # test to see if srcdir already configured
2643 if test -f $srcdir/config.status; then
2644 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2645 fi
2646 fi
2647
2648 # test whether we have cygpath
2649 if test -z "$CYGPATH_W"; then
2650 if (cygpath --version) >/dev/null 2>/dev/null; then
2651 CYGPATH_W='cygpath -w'
2652 else
2653 CYGPATH_W=echo
2654 fi
2655 fi
2656
2657
2658 # Define the identity of the package.
2659 PACKAGE='libmms'
2660 VERSION='0.6.4'
2661
2662
2663 cat >>confdefs.h <<_ACEOF
2664 #define PACKAGE "$PACKAGE"
2665 _ACEOF
2666
2667
2668 cat >>confdefs.h <<_ACEOF
2669 #define VERSION "$VERSION"
2670 _ACEOF
2671
2672 # Some tools Automake needs.
2673
2674 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2675
2676
2677 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2678
2679
2680 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2681
2682
2683 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2684
2685
2686 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2687
2688 # We need awk for the "check" target. The system "awk" is bad on
2689 # some platforms.
2690 # Always define AMTAR for backward compatibility. Yes, it's still used
2691 # in the wild :-( We should find a proper way to deprecate it ...
2692 AMTAR='$${TAR-tar}'
2693
2694 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2695
2696
2697
2698
2699
2700
2701 ac_config_headers="$ac_config_headers config.h src/mms_config.h"
2702
2703
2704 DEPDIR="${am__leading_dot}deps"
2705
2706 ac_config_commands="$ac_config_commands depfiles"
2707
2708
2709 am_make=${MAKE-make}
2710 cat > confinc << 'END'
2711 am__doit:
2712 @echo this is the am__doit target
2713 .PHONY: am__doit
2714 END
2715 # If we don't find an include directive, just comment out the code.
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2717 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2718 am__include="#"
2719 am__quote=
2720 _am_result=none
2721 # First try GNU make style include.
2722 echo "include confinc" > confmf
2723 # Ignore all kinds of additional output from `make'.
2724 case `$am_make -s -f confmf 2> /dev/null` in #(
2725 *the\ am__doit\ target*)
2726 am__include=include
2727 am__quote=
2728 _am_result=GNU
2729 ;;
2730 esac
2731 # Now try BSD make style include.
2732 if test "$am__include" = "#"; then
2733 echo '.include "confinc"' > confmf
2734 case `$am_make -s -f confmf 2> /dev/null` in #(
2735 *the\ am__doit\ target*)
2736 am__include=.include
2737 am__quote="\""
2738 _am_result=BSD
2739 ;;
2740 esac
2741 fi
2742
2743
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2745 $as_echo "$_am_result" >&6; }
2746 rm -f confinc confmf
2747
2748 # Check whether --enable-dependency-tracking was given.
2749 if test "${enable_dependency_tracking+set}" = set; then :
2750 enableval=$enable_dependency_tracking;
2751 fi
2752
2753 if test "x$enable_dependency_tracking" != xno; then
2754 am_depcomp="$ac_aux_dir/depcomp"
2755 AMDEPBACKSLASH='\'
2756 am__nodep='_no'
2757 fi
2758 if test "x$enable_dependency_tracking" != xno; then
2759 AMDEP_TRUE=
2760 AMDEP_FALSE='#'
2761 else
2762 AMDEP_TRUE='#'
2763 AMDEP_FALSE=
2764 fi
2765
2766
2767 ac_ext=c
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2772 if test -n "$ac_tool_prefix"; then
2773 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2774 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if ${ac_cv_prog_CC+:} false; then :
2778 $as_echo_n "(cached) " >&6
2779 else
2780 if test -n "$CC"; then
2781 ac_cv_prog_CC="$CC" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2785 do
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2793 fi
2794 done
2795 done
2796 IFS=$as_save_IFS
2797
2798 fi
2799 fi
2800 CC=$ac_cv_prog_CC
2801 if test -n "$CC"; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2803 $as_echo "$CC" >&6; }
2804 else
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806 $as_echo "no" >&6; }
2807 fi
2808
2809
2810 fi
2811 if test -z "$ac_cv_prog_CC"; then
2812 ac_ct_CC=$CC
2813 # Extract the first word of "gcc", so it can be a program name with args.
2814 set dummy gcc; ac_word=$2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2818 $as_echo_n "(cached) " >&6
2819 else
2820 if test -n "$ac_ct_CC"; then
2821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826 IFS=$as_save_IFS
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830 ac_cv_prog_ac_ct_CC="gcc"
2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 break 2
2833 fi
2834 done
2835 done
2836 IFS=$as_save_IFS
2837
2838 fi
2839 fi
2840 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2841 if test -n "$ac_ct_CC"; then
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2843 $as_echo "$ac_ct_CC" >&6; }
2844 else
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 $as_echo "no" >&6; }
2847 fi
2848
2849 if test "x$ac_ct_CC" = x; then
2850 CC=""
2851 else
2852 case $cross_compiling:$ac_tool_warned in
2853 yes:)
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2856 ac_tool_warned=yes ;;
2857 esac
2858 CC=$ac_ct_CC
2859 fi
2860 else
2861 CC="$ac_cv_prog_CC"
2862 fi
2863
2864 if test -z "$CC"; then
2865 if test -n "$ac_tool_prefix"; then
2866 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2867 set dummy ${ac_tool_prefix}cc; ac_word=$2
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2869 $as_echo_n "checking for $ac_word... " >&6; }
2870 if ${ac_cv_prog_CC+:} false; then :
2871 $as_echo_n "(cached) " >&6
2872 else
2873 if test -n "$CC"; then
2874 ac_cv_prog_CC="$CC" # Let the user override the test.
2875 else
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2878 do
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2883 ac_cv_prog_CC="${ac_tool_prefix}cc"
2884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 break 2
2886 fi
2887 done
2888 done
2889 IFS=$as_save_IFS
2890
2891 fi
2892 fi
2893 CC=$ac_cv_prog_CC
2894 if test -n "$CC"; then
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2896 $as_echo "$CC" >&6; }
2897 else
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2899 $as_echo "no" >&6; }
2900 fi
2901
2902
2903 fi
2904 fi
2905 if test -z "$CC"; then
2906 # Extract the first word of "cc", so it can be a program name with args.
2907 set dummy cc; ac_word=$2
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909 $as_echo_n "checking for $ac_word... " >&6; }
2910 if ${ac_cv_prog_CC+:} false; then :
2911 $as_echo_n "(cached) " >&6
2912 else
2913 if test -n "$CC"; then
2914 ac_cv_prog_CC="$CC" # Let the user override the test.
2915 else
2916 ac_prog_rejected=no
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 for as_dir in $PATH
2919 do
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2924 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2925 ac_prog_rejected=yes
2926 continue
2927 fi
2928 ac_cv_prog_CC="cc"
2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2931 fi
2932 done
2933 done
2934 IFS=$as_save_IFS
2935
2936 if test $ac_prog_rejected = yes; then
2937 # We found a bogon in the path, so make sure we never use it.
2938 set dummy $ac_cv_prog_CC
2939 shift
2940 if test $# != 0; then
2941 # We chose a different compiler from the bogus one.
2942 # However, it has the same basename, so the bogon will be chosen
2943 # first if we set CC to just the basename; use the full file name.
2944 shift
2945 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2946 fi
2947 fi
2948 fi
2949 fi
2950 CC=$ac_cv_prog_CC
2951 if test -n "$CC"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2953 $as_echo "$CC" >&6; }
2954 else
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2957 fi
2958
2959
2960 fi
2961 if test -z "$CC"; then
2962 if test -n "$ac_tool_prefix"; then
2963 for ac_prog in cl.exe
2964 do
2965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if ${ac_cv_prog_CC+:} false; then :
2970 $as_echo_n "(cached) " >&6
2971 else
2972 if test -n "$CC"; then
2973 ac_cv_prog_CC="$CC" # Let the user override the test.
2974 else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2977 do
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2982 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 break 2
2985 fi
2986 done
2987 done
2988 IFS=$as_save_IFS
2989
2990 fi
2991 fi
2992 CC=$ac_cv_prog_CC
2993 if test -n "$CC"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2995 $as_echo "$CC" >&6; }
2996 else
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
2999 fi
3000
3001
3002 test -n "$CC" && break
3003 done
3004 fi
3005 if test -z "$CC"; then
3006 ac_ct_CC=$CC
3007 for ac_prog in cl.exe
3008 do
3009 # Extract the first word of "$ac_prog", so it can be a program name with args.
3010 set dummy $ac_prog; ac_word=$2
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012 $as_echo_n "checking for $ac_word... " >&6; }
3013 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3014 $as_echo_n "(cached) " >&6
3015 else
3016 if test -n "$ac_ct_CC"; then
3017 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3018 else
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3021 do
3022 IFS=$as_save_IFS
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3026 ac_cv_prog_ac_ct_CC="$ac_prog"
3027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 break 2
3029 fi
3030 done
3031 done
3032 IFS=$as_save_IFS
3033
3034 fi
3035 fi
3036 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3037 if test -n "$ac_ct_CC"; then
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3039 $as_echo "$ac_ct_CC" >&6; }
3040 else
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 $as_echo "no" >&6; }
3043 fi
3044
3045
3046 test -n "$ac_ct_CC" && break
3047 done
3048
3049 if test "x$ac_ct_CC" = x; then
3050 CC=""
3051 else
3052 case $cross_compiling:$ac_tool_warned in
3053 yes:)
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3056 ac_tool_warned=yes ;;
3057 esac
3058 CC=$ac_ct_CC
3059 fi
3060 fi
3061
3062 fi
3063
3064
3065 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3067 as_fn_error $? "no acceptable C compiler found in \$PATH
3068 See \`config.log' for more details" "$LINENO" 5; }
3069
3070 # Provide some information about the compiler.
3071 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3072 set X $ac_compile
3073 ac_compiler=$2
3074 for ac_option in --version -v -V -qversion; do
3075 { { ac_try="$ac_compiler $ac_option >&5"
3076 case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079 esac
3080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3081 $as_echo "$ac_try_echo"; } >&5
3082 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3083 ac_status=$?
3084 if test -s conftest.err; then
3085 sed '10a\
3086 ... rest of stderr output deleted ...
3087 10q' conftest.err >conftest.er1
3088 cat conftest.er1 >&5
3089 fi
3090 rm -f conftest.er1 conftest.err
3091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3092 test $ac_status = 0; }
3093 done
3094
3095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3096 /* end confdefs.h. */
3097
3098 int
3099 main ()
3100 {
3101
3102 ;
3103 return 0;
3104 }
3105 _ACEOF
3106 ac_clean_files_save=$ac_clean_files
3107 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3108 # Try to create an executable without -o first, disregard a.out.
3109 # It will help us diagnose broken compilers, and finding out an intuition
3110 # of exeext.
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3112 $as_echo_n "checking whether the C compiler works... " >&6; }
3113 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3114
3115 # The possible output files:
3116 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3117
3118 ac_rmfiles=
3119 for ac_file in $ac_files
3120 do
3121 case $ac_file in
3122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3123 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3124 esac
3125 done
3126 rm -f $ac_rmfiles
3127
3128 if { { ac_try="$ac_link_default"
3129 case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132 esac
3133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3134 $as_echo "$ac_try_echo"; } >&5
3135 (eval "$ac_link_default") 2>&5
3136 ac_status=$?
3137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3138 test $ac_status = 0; }; then :
3139 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3140 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3141 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3142 # so that the user can short-circuit this test for compilers unknown to
3143 # Autoconf.
3144 for ac_file in $ac_files ''
3145 do
3146 test -f "$ac_file" || continue
3147 case $ac_file in
3148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3149 ;;
3150 [ab].out )
3151 # We found the default executable, but exeext='' is most
3152 # certainly right.
3153 break;;
3154 *.* )
3155 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3156 then :; else
3157 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3158 fi
3159 # We set ac_cv_exeext here because the later test for it is not
3160 # safe: cross compilers may not add the suffix if given an `-o'
3161 # argument, so we may need to know it at that point already.
3162 # Even if this section looks crufty: it has the advantage of
3163 # actually working.
3164 break;;
3165 * )
3166 break;;
3167 esac
3168 done
3169 test "$ac_cv_exeext" = no && ac_cv_exeext=
3170
3171 else
3172 ac_file=''
3173 fi
3174 if test -z "$ac_file"; then :
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176 $as_echo "no" >&6; }
3177 $as_echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3179
3180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182 as_fn_error 77 "C compiler cannot create executables
3183 See \`config.log' for more details" "$LINENO" 5; }
3184 else
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3186 $as_echo "yes" >&6; }
3187 fi
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3189 $as_echo_n "checking for C compiler default output file name... " >&6; }
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3191 $as_echo "$ac_file" >&6; }
3192 ac_exeext=$ac_cv_exeext
3193
3194 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3195 ac_clean_files=$ac_clean_files_save
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3197 $as_echo_n "checking for suffix of executables... " >&6; }
3198 if { { ac_try="$ac_link"
3199 case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202 esac
3203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3204 $as_echo "$ac_try_echo"; } >&5
3205 (eval "$ac_link") 2>&5
3206 ac_status=$?
3207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3208 test $ac_status = 0; }; then :
3209 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3210 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3211 # work properly (i.e., refer to `conftest.exe'), while it won't with
3212 # `rm'.
3213 for ac_file in conftest.exe conftest conftest.*; do
3214 test -f "$ac_file" || continue
3215 case $ac_file in
3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3217 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3218 break;;
3219 * ) break;;
3220 esac
3221 done
3222 else
3223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3225 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3226 See \`config.log' for more details" "$LINENO" 5; }
3227 fi
3228 rm -f conftest conftest$ac_cv_exeext
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3230 $as_echo "$ac_cv_exeext" >&6; }
3231
3232 rm -f conftest.$ac_ext
3233 EXEEXT=$ac_cv_exeext
3234 ac_exeext=$EXEEXT
3235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3236 /* end confdefs.h. */
3237 #include <stdio.h>
3238 int
3239 main ()
3240 {
3241 FILE *f = fopen ("conftest.out", "w");
3242 return ferror (f) || fclose (f) != 0;
3243
3244 ;
3245 return 0;
3246 }
3247 _ACEOF
3248 ac_clean_files="$ac_clean_files conftest.out"
3249 # Check that the compiler produces executables we can run. If not, either
3250 # the compiler is broken, or we cross compile.
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3252 $as_echo_n "checking whether we are cross compiling... " >&6; }
3253 if test "$cross_compiling" != yes; then
3254 { { ac_try="$ac_link"
3255 case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258 esac
3259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260 $as_echo "$ac_try_echo"; } >&5
3261 (eval "$ac_link") 2>&5
3262 ac_status=$?
3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264 test $ac_status = 0; }
3265 if { ac_try='./conftest$ac_cv_exeext'
3266 { { case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271 $as_echo "$ac_try_echo"; } >&5
3272 (eval "$ac_try") 2>&5
3273 ac_status=$?
3274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275 test $ac_status = 0; }; }; then
3276 cross_compiling=no
3277 else
3278 if test "$cross_compiling" = maybe; then
3279 cross_compiling=yes
3280 else
3281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283 as_fn_error $? "cannot run C compiled programs.
3284 If you meant to cross compile, use \`--host'.
3285 See \`config.log' for more details" "$LINENO" 5; }
3286 fi
3287 fi
3288 fi
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3290 $as_echo "$cross_compiling" >&6; }
3291
3292 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3293 ac_clean_files=$ac_clean_files_save
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3295 $as_echo_n "checking for suffix of object files... " >&6; }
3296 if ${ac_cv_objext+:} false; then :
3297 $as_echo_n "(cached) " >&6
3298 else
3299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300 /* end confdefs.h. */
3301
3302 int
3303 main ()
3304 {
3305
3306 ;
3307 return 0;
3308 }
3309 _ACEOF
3310 rm -f conftest.o conftest.obj
3311 if { { ac_try="$ac_compile"
3312 case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315 esac
3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 $as_echo "$ac_try_echo"; } >&5
3318 (eval "$ac_compile") 2>&5
3319 ac_status=$?
3320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321 test $ac_status = 0; }; then :
3322 for ac_file in conftest.o conftest.obj conftest.*; do
3323 test -f "$ac_file" || continue;
3324 case $ac_file in
3325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3326 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3327 break;;
3328 esac
3329 done
3330 else
3331 $as_echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3336 as_fn_error $? "cannot compute suffix of object files: cannot compile
3337 See \`config.log' for more details" "$LINENO" 5; }
3338 fi
3339 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3340 fi
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3342 $as_echo "$ac_cv_objext" >&6; }
3343 OBJEXT=$ac_cv_objext
3344 ac_objext=$OBJEXT
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3346 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3347 if ${ac_cv_c_compiler_gnu+:} false; then :
3348 $as_echo_n "(cached) " >&6
3349 else
3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351 /* end confdefs.h. */
3352
3353 int
3354 main ()
3355 {
3356 #ifndef __GNUC__
3357 choke me
3358 #endif
3359
3360 ;
3361 return 0;
3362 }
3363 _ACEOF
3364 if ac_fn_c_try_compile "$LINENO"; then :
3365 ac_compiler_gnu=yes
3366 else
3367 ac_compiler_gnu=no
3368 fi
3369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3370 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3371
3372 fi
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3374 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3375 if test $ac_compiler_gnu = yes; then
3376 GCC=yes
3377 else
3378 GCC=
3379 fi
3380 ac_test_CFLAGS=${CFLAGS+set}
3381 ac_save_CFLAGS=$CFLAGS
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3383 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3384 if ${ac_cv_prog_cc_g+:} false; then :
3385 $as_echo_n "(cached) " >&6
3386 else
3387 ac_save_c_werror_flag=$ac_c_werror_flag
3388 ac_c_werror_flag=yes
3389 ac_cv_prog_cc_g=no
3390 CFLAGS="-g"
3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392 /* end confdefs.h. */
3393
3394 int
3395 main ()
3396 {
3397
3398 ;
3399 return 0;
3400 }
3401 _ACEOF
3402 if ac_fn_c_try_compile "$LINENO"; then :
3403 ac_cv_prog_cc_g=yes
3404 else
3405 CFLAGS=""
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407 /* end confdefs.h. */
3408
3409 int
3410 main ()
3411 {
3412
3413 ;
3414 return 0;
3415 }
3416 _ACEOF
3417 if ac_fn_c_try_compile "$LINENO"; then :
3418
3419 else
3420 ac_c_werror_flag=$ac_save_c_werror_flag
3421 CFLAGS="-g"
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3424
3425 int
3426 main ()
3427 {
3428
3429 ;
3430 return 0;
3431 }
3432 _ACEOF
3433 if ac_fn_c_try_compile "$LINENO"; then :
3434 ac_cv_prog_cc_g=yes
3435 fi
3436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3437 fi
3438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3439 fi
3440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3441 ac_c_werror_flag=$ac_save_c_werror_flag
3442 fi
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3444 $as_echo "$ac_cv_prog_cc_g" >&6; }
3445 if test "$ac_test_CFLAGS" = set; then
3446 CFLAGS=$ac_save_CFLAGS
3447 elif test $ac_cv_prog_cc_g = yes; then
3448 if test "$GCC" = yes; then
3449 CFLAGS="-g -O2"
3450 else
3451 CFLAGS="-g"
3452 fi
3453 else
3454 if test "$GCC" = yes; then
3455 CFLAGS="-O2"
3456 else
3457 CFLAGS=
3458 fi
3459 fi
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3461 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3462 if ${ac_cv_prog_cc_c89+:} false; then :
3463 $as_echo_n "(cached) " >&6
3464 else
3465 ac_cv_prog_cc_c89=no
3466 ac_save_CC=$CC
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3469 #include <stdarg.h>
3470 #include <stdio.h>
3471 struct stat;
3472 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3473 struct buf { int x; };
3474 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3475 static char *e (p, i)
3476 char **p;
3477 int i;
3478 {
3479 return p[i];
3480 }
3481 static char *f (char * (*g) (char **, int), char **p, ...)
3482 {
3483 char *s;
3484 va_list v;
3485 va_start (v,p);
3486 s = g (p, va_arg (v,int));
3487 va_end (v);
3488 return s;
3489 }
3490
3491 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3492 function prototypes and stuff, but not '\xHH' hex character constants.
3493 These don't provoke an error unfortunately, instead are silently treated
3494 as 'x'. The following induces an error, until -std is added to get
3495 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3496 array size at least. It's necessary to write '\x00'==0 to get something
3497 that's true only with -std. */
3498 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3499
3500 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3501 inside strings and character constants. */
3502 #define FOO(x) 'x'
3503 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3504
3505 int test (int i, double x);
3506 struct s1 {int (*f) (int a);};
3507 struct s2 {int (*f) (double a);};
3508 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3509 int argc;
3510 char **argv;
3511 int
3512 main ()
3513 {
3514 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3515 ;
3516 return 0;
3517 }
3518 _ACEOF
3519 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3520 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3521 do
3522 CC="$ac_save_CC $ac_arg"
3523 if ac_fn_c_try_compile "$LINENO"; then :
3524 ac_cv_prog_cc_c89=$ac_arg
3525 fi
3526 rm -f core conftest.err conftest.$ac_objext
3527 test "x$ac_cv_prog_cc_c89" != "xno" && break
3528 done
3529 rm -f conftest.$ac_ext
3530 CC=$ac_save_CC
3531
3532 fi
3533 # AC_CACHE_VAL
3534 case "x$ac_cv_prog_cc_c89" in
3535 x)
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3537 $as_echo "none needed" >&6; } ;;
3538 xno)
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3540 $as_echo "unsupported" >&6; } ;;
3541 *)
3542 CC="$CC $ac_cv_prog_cc_c89"
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3544 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3545 esac
3546 if test "x$ac_cv_prog_cc_c89" != xno; then :
3547
3548 fi
3549
3550 ac_ext=c
3551 ac_cpp='$CPP $CPPFLAGS'
3552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555
3556 depcc="$CC" am_compiler_list=
3557
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3559 $as_echo_n "checking dependency style of $depcc... " >&6; }
3560 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3561 $as_echo_n "(cached) " >&6
3562 else
3563 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3564 # We make a subdir and do the tests there. Otherwise we can end up
3565 # making bogus files that we don't know about and never remove. For
3566 # instance it was reported that on HP-UX the gcc test will end up
3567 # making a dummy file named `D' -- because `-MD' means `put the output
3568 # in D'.
3569 rm -rf conftest.dir
3570 mkdir conftest.dir
3571 # Copy depcomp to subdir because otherwise we won't find it if we're
3572 # using a relative directory.
3573 cp "$am_depcomp" conftest.dir
3574 cd conftest.dir
3575 # We will build objects and dependencies in a subdirectory because
3576 # it helps to detect inapplicable dependency modes. For instance
3577 # both Tru64's cc and ICC support -MD to output dependencies as a
3578 # side effect of compilation, but ICC will put the dependencies in
3579 # the current directory while Tru64 will put them in the object
3580 # directory.
3581 mkdir sub
3582
3583 am_cv_CC_dependencies_compiler_type=none
3584 if test "$am_compiler_list" = ""; then
3585 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3586 fi
3587 am__universal=false
3588 case " $depcc " in #(
3589 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3590 esac
3591
3592 for depmode in $am_compiler_list; do
3593 # Setup a source with many dependencies, because some compilers
3594 # like to wrap large dependency lists on column 80 (with \), and
3595 # we should not choose a depcomp mode which is confused by this.
3596 #
3597 # We need to recreate these files for each test, as the compiler may
3598 # overwrite some of them when testing with obscure command lines.
3599 # This happens at least with the AIX C compiler.
3600 : > sub/conftest.c
3601 for i in 1 2 3 4 5 6; do
3602 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3603 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3604 # Solaris 8's {/usr,}/bin/sh.
3605 touch sub/conftst$i.h
3606 done
3607 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3608
3609 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3610 # mode. It turns out that the SunPro C++ compiler does not properly
3611 # handle `-M -o', and we need to detect this. Also, some Intel
3612 # versions had trouble with output in subdirs
3613 am__obj=sub/conftest.${OBJEXT-o}
3614 am__minus_obj="-o $am__obj"
3615 case $depmode in
3616 gcc)
3617 # This depmode causes a compiler race in universal mode.
3618 test "$am__universal" = false || continue
3619 ;;
3620 nosideeffect)
3621 # after this tag, mechanisms are not by side-effect, so they'll
3622 # only be used when explicitly requested
3623 if test "x$enable_dependency_tracking" = xyes; then
3624 continue
3625 else
3626 break
3627 fi
3628 ;;
3629 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3630 # This compiler won't grok `-c -o', but also, the minuso test has
3631 # not run yet. These depmodes are late enough in the game, and
3632 # so weak that their functioning should not be impacted.
3633 am__obj=conftest.${OBJEXT-o}
3634 am__minus_obj=
3635 ;;
3636 none) break ;;
3637 esac
3638 if depmode=$depmode \
3639 source=sub/conftest.c object=$am__obj \
3640 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3641 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3642 >/dev/null 2>conftest.err &&
3643 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3644 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3645 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3646 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3647 # icc doesn't choke on unknown options, it will just issue warnings
3648 # or remarks (even with -Werror). So we grep stderr for any message
3649 # that says an option was ignored or not supported.
3650 # When given -MP, icc 7.0 and 7.1 complain thusly:
3651 # icc: Command line warning: ignoring option '-M'; no argument required
3652 # The diagnosis changed in icc 8.0:
3653 # icc: Command line remark: option '-MP' not supported
3654 if (grep 'ignoring option' conftest.err ||
3655 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3656 am_cv_CC_dependencies_compiler_type=$depmode
3657 break
3658 fi
3659 fi
3660 done
3661
3662 cd ..
3663 rm -rf conftest.dir
3664 else
3665 am_cv_CC_dependencies_compiler_type=none
3666 fi
3667
3668 fi
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3670 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3671 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3672
3673 if
3674 test "x$enable_dependency_tracking" != xno \
3675 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3676 am__fastdepCC_TRUE=
3677 am__fastdepCC_FALSE='#'
3678 else
3679 am__fastdepCC_TRUE='#'
3680 am__fastdepCC_FALSE=
3681 fi
3682
3683
3684
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3686 $as_echo_n "checking for library containing strerror... " >&6; }
3687 if ${ac_cv_search_strerror+:} false; then :
3688 $as_echo_n "(cached) " >&6
3689 else
3690 ac_func_search_save_LIBS=$LIBS
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3693
3694 /* Override any GCC internal prototype to avoid an error.
3695 Use char because int might match the return type of a GCC
3696 builtin and then its argument prototype would still apply. */
3697 #ifdef __cplusplus
3698 extern "C"
3699 #endif
3700 char strerror ();
3701 int
3702 main ()
3703 {
3704 return strerror ();
3705 ;
3706 return 0;
3707 }
3708 _ACEOF
3709 for ac_lib in '' cposix; do
3710 if test -z "$ac_lib"; then
3711 ac_res="none required"
3712 else
3713 ac_res=-l$ac_lib
3714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3715 fi
3716 if ac_fn_c_try_link "$LINENO"; then :
3717 ac_cv_search_strerror=$ac_res
3718 fi
3719 rm -f core conftest.err conftest.$ac_objext \
3720 conftest$ac_exeext
3721 if ${ac_cv_search_strerror+:} false; then :
3722 break
3723 fi
3724 done
3725 if ${ac_cv_search_strerror+:} false; then :
3726
3727 else
3728 ac_cv_search_strerror=no
3729 fi
3730 rm conftest.$ac_ext
3731 LIBS=$ac_func_search_save_LIBS
3732 fi
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3734 $as_echo "$ac_cv_search_strerror" >&6; }
3735 ac_res=$ac_cv_search_strerror
3736 if test "$ac_res" != no; then :
3737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3738
3739 fi
3740
3741 # Make sure we can run config.sub.
3742 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3743 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3744
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3746 $as_echo_n "checking build system type... " >&6; }
3747 if ${ac_cv_build+:} false; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 ac_build_alias=$build_alias
3751 test "x$ac_build_alias" = x &&
3752 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3753 test "x$ac_build_alias" = x &&
3754 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3755 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3756 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3757
3758 fi
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3760 $as_echo "$ac_cv_build" >&6; }
3761 case $ac_cv_build in
3762 *-*-*) ;;
3763 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3764 esac
3765 build=$ac_cv_build
3766 ac_save_IFS=$IFS; IFS='-'
3767 set x $ac_cv_build
3768 shift
3769 build_cpu=$1
3770 build_vendor=$2
3771 shift; shift
3772 # Remember, the first character of IFS is used to create $*,
3773 # except with old shells:
3774 build_os=$*
3775 IFS=$ac_save_IFS
3776 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3777
3778
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3780 $as_echo_n "checking host system type... " >&6; }
3781 if ${ac_cv_host+:} false; then :
3782 $as_echo_n "(cached) " >&6
3783 else
3784 if test "x$host_alias" = x; then
3785 ac_cv_host=$ac_cv_build
3786 else
3787 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3788 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3789 fi
3790
3791 fi
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3793 $as_echo "$ac_cv_host" >&6; }
3794 case $ac_cv_host in
3795 *-*-*) ;;
3796 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3797 esac
3798 host=$ac_cv_host
3799 ac_save_IFS=$IFS; IFS='-'
3800 set x $ac_cv_host
3801 shift
3802 host_cpu=$1
3803 host_vendor=$2
3804 shift; shift
3805 # Remember, the first character of IFS is used to create $*,
3806 # except with old shells:
3807 host_os=$*
3808 IFS=$ac_save_IFS
3809 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3810
3811
3812 ac_ext=c
3813 ac_cpp='$CPP $CPPFLAGS'
3814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3817 if test -n "$ac_tool_prefix"; then
3818 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3819 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821 $as_echo_n "checking for $ac_word... " >&6; }
3822 if ${ac_cv_prog_CC+:} false; then :
3823 $as_echo_n "(cached) " >&6
3824 else
3825 if test -n "$CC"; then
3826 ac_cv_prog_CC="$CC" # Let the user override the test.
3827 else
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH
3830 do
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3835 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3837 break 2
3838 fi
3839 done
3840 done
3841 IFS=$as_save_IFS
3842
3843 fi
3844 fi
3845 CC=$ac_cv_prog_CC
3846 if test -n "$CC"; then
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3848 $as_echo "$CC" >&6; }
3849 else
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 $as_echo "no" >&6; }
3852 fi
3853
3854
3855 fi
3856 if test -z "$ac_cv_prog_CC"; then
3857 ac_ct_CC=$CC
3858 # Extract the first word of "gcc", so it can be a program name with args.
3859 set dummy gcc; ac_word=$2
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3861 $as_echo_n "checking for $ac_word... " >&6; }
3862 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3863 $as_echo_n "(cached) " >&6
3864 else
3865 if test -n "$ac_ct_CC"; then
3866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3867 else
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH
3870 do
3871 IFS=$as_save_IFS
3872 test -z "$as_dir" && as_dir=.
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3875 ac_cv_prog_ac_ct_CC="gcc"
3876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3877 break 2
3878 fi
3879 done
3880 done
3881 IFS=$as_save_IFS
3882
3883 fi
3884 fi
3885 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3886 if test -n "$ac_ct_CC"; then
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3888 $as_echo "$ac_ct_CC" >&6; }
3889 else
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3891 $as_echo "no" >&6; }
3892 fi
3893
3894 if test "x$ac_ct_CC" = x; then
3895 CC=""
3896 else
3897 case $cross_compiling:$ac_tool_warned in
3898 yes:)
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3901 ac_tool_warned=yes ;;
3902 esac
3903 CC=$ac_ct_CC
3904 fi
3905 else
3906 CC="$ac_cv_prog_CC"
3907 fi
3908
3909 if test -z "$CC"; then
3910 if test -n "$ac_tool_prefix"; then
3911 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3912 set dummy ${ac_tool_prefix}cc; ac_word=$2
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 $as_echo_n "checking for $ac_word... " >&6; }
3915 if ${ac_cv_prog_CC+:} false; then :
3916 $as_echo_n "(cached) " >&6
3917 else
3918 if test -n "$CC"; then
3919 ac_cv_prog_CC="$CC" # Let the user override the test.
3920 else
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3923 do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928 ac_cv_prog_CC="${ac_tool_prefix}cc"
3929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3930 break 2
3931 fi
3932 done
3933 done
3934 IFS=$as_save_IFS
3935
3936 fi
3937 fi
3938 CC=$ac_cv_prog_CC
3939 if test -n "$CC"; then
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3941 $as_echo "$CC" >&6; }
3942 else
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3945 fi
3946
3947
3948 fi
3949 fi
3950 if test -z "$CC"; then
3951 # Extract the first word of "cc", so it can be a program name with args.
3952 set dummy cc; ac_word=$2
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3954 $as_echo_n "checking for $ac_word... " >&6; }
3955 if ${ac_cv_prog_CC+:} false; then :
3956 $as_echo_n "(cached) " >&6
3957 else
3958 if test -n "$CC"; then
3959 ac_cv_prog_CC="$CC" # Let the user override the test.
3960 else
3961 ac_prog_rejected=no
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH
3964 do
3965 IFS=$as_save_IFS
3966 test -z "$as_dir" && as_dir=.
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3969 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3970 ac_prog_rejected=yes
3971 continue
3972 fi
3973 ac_cv_prog_CC="cc"
3974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 break 2
3976 fi
3977 done
3978 done
3979 IFS=$as_save_IFS
3980
3981 if test $ac_prog_rejected = yes; then
3982 # We found a bogon in the path, so make sure we never use it.
3983 set dummy $ac_cv_prog_CC
3984 shift
3985 if test $# != 0; then
3986 # We chose a different compiler from the bogus one.
3987 # However, it has the same basename, so the bogon will be chosen
3988 # first if we set CC to just the basename; use the full file name.
3989 shift
3990 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3991 fi
3992 fi
3993 fi
3994 fi
3995 CC=$ac_cv_prog_CC
3996 if test -n "$CC"; then
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3998 $as_echo "$CC" >&6; }
3999 else
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001 $as_echo "no" >&6; }
4002 fi
4003
4004
4005 fi
4006 if test -z "$CC"; then
4007 if test -n "$ac_tool_prefix"; then
4008 for ac_prog in cl.exe
4009 do
4010 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4011 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4013 $as_echo_n "checking for $ac_word... " >&6; }
4014 if ${ac_cv_prog_CC+:} false; then :
4015 $as_echo_n "(cached) " >&6
4016 else
4017 if test -n "$CC"; then
4018 ac_cv_prog_CC="$CC" # Let the user override the test.
4019 else
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 for as_dir in $PATH
4022 do
4023 IFS=$as_save_IFS
4024 test -z "$as_dir" && as_dir=.
4025 for ac_exec_ext in '' $ac_executable_extensions; do
4026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4027 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4029 break 2
4030 fi
4031 done
4032 done
4033 IFS=$as_save_IFS
4034
4035 fi
4036 fi
4037 CC=$ac_cv_prog_CC
4038 if test -n "$CC"; then
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4040 $as_echo "$CC" >&6; }
4041 else
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4043 $as_echo "no" >&6; }
4044 fi
4045
4046
4047 test -n "$CC" && break
4048 done
4049 fi
4050 if test -z "$CC"; then
4051 ac_ct_CC=$CC
4052 for ac_prog in cl.exe
4053 do
4054 # Extract the first word of "$ac_prog", so it can be a program name with args.
4055 set dummy $ac_prog; ac_word=$2
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4057 $as_echo_n "checking for $ac_word... " >&6; }
4058 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4059 $as_echo_n "(cached) " >&6
4060 else
4061 if test -n "$ac_ct_CC"; then
4062 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4063 else
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 for as_dir in $PATH
4066 do
4067 IFS=$as_save_IFS
4068 test -z "$as_dir" && as_dir=.
4069 for ac_exec_ext in '' $ac_executable_extensions; do
4070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4071 ac_cv_prog_ac_ct_CC="$ac_prog"
4072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4073 break 2
4074 fi
4075 done
4076 done
4077 IFS=$as_save_IFS
4078
4079 fi
4080 fi
4081 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4082 if test -n "$ac_ct_CC"; then
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4084 $as_echo "$ac_ct_CC" >&6; }
4085 else
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4087 $as_echo "no" >&6; }
4088 fi
4089
4090
4091 test -n "$ac_ct_CC" && break
4092 done
4093
4094 if test "x$ac_ct_CC" = x; then
4095 CC=""
4096 else
4097 case $cross_compiling:$ac_tool_warned in
4098 yes:)
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4101 ac_tool_warned=yes ;;
4102 esac
4103 CC=$ac_ct_CC
4104 fi
4105 fi
4106
4107 fi
4108
4109
4110 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4112 as_fn_error $? "no acceptable C compiler found in \$PATH
4113 See \`config.log' for more details" "$LINENO" 5; }
4114
4115 # Provide some information about the compiler.
4116 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4117 set X $ac_compile
4118 ac_compiler=$2
4119 for ac_option in --version -v -V -qversion; do
4120 { { ac_try="$ac_compiler $ac_option >&5"
4121 case "(($ac_try" in
4122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123 *) ac_try_echo=$ac_try;;
4124 esac
4125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4126 $as_echo "$ac_try_echo"; } >&5
4127 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4128 ac_status=$?
4129 if test -s conftest.err; then
4130 sed '10a\
4131 ... rest of stderr output deleted ...
4132 10q' conftest.err >conftest.er1
4133 cat conftest.er1 >&5
4134 fi
4135 rm -f conftest.er1 conftest.err
4136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4137 test $ac_status = 0; }
4138 done
4139
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4141 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4142 if ${ac_cv_c_compiler_gnu+:} false; then :
4143 $as_echo_n "(cached) " >&6
4144 else
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4147
4148 int
4149 main ()
4150 {
4151 #ifndef __GNUC__
4152 choke me
4153 #endif
4154
4155 ;
4156 return 0;
4157 }
4158 _ACEOF
4159 if ac_fn_c_try_compile "$LINENO"; then :
4160 ac_compiler_gnu=yes
4161 else
4162 ac_compiler_gnu=no
4163 fi
4164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4166
4167 fi
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4169 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4170 if test $ac_compiler_gnu = yes; then
4171 GCC=yes
4172 else
4173 GCC=
4174 fi
4175 ac_test_CFLAGS=${CFLAGS+set}
4176 ac_save_CFLAGS=$CFLAGS
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4178 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4179 if ${ac_cv_prog_cc_g+:} false; then :
4180 $as_echo_n "(cached) " >&6
4181 else
4182 ac_save_c_werror_flag=$ac_c_werror_flag
4183 ac_c_werror_flag=yes
4184 ac_cv_prog_cc_g=no
4185 CFLAGS="-g"
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188
4189 int
4190 main ()
4191 {
4192
4193 ;
4194 return 0;
4195 }
4196 _ACEOF
4197 if ac_fn_c_try_compile "$LINENO"; then :
4198 ac_cv_prog_cc_g=yes
4199 else
4200 CFLAGS=""
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4203
4204 int
4205 main ()
4206 {
4207
4208 ;
4209 return 0;
4210 }
4211 _ACEOF
4212 if ac_fn_c_try_compile "$LINENO"; then :
4213
4214 else
4215 ac_c_werror_flag=$ac_save_c_werror_flag
4216 CFLAGS="-g"
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4219
4220 int
4221 main ()
4222 {
4223
4224 ;
4225 return 0;
4226 }
4227 _ACEOF
4228 if ac_fn_c_try_compile "$LINENO"; then :
4229 ac_cv_prog_cc_g=yes
4230 fi
4231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232 fi
4233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234 fi
4235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4236 ac_c_werror_flag=$ac_save_c_werror_flag
4237 fi
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4239 $as_echo "$ac_cv_prog_cc_g" >&6; }
4240 if test "$ac_test_CFLAGS" = set; then
4241 CFLAGS=$ac_save_CFLAGS
4242 elif test $ac_cv_prog_cc_g = yes; then
4243 if test "$GCC" = yes; then
4244 CFLAGS="-g -O2"
4245 else
4246 CFLAGS="-g"
4247 fi
4248 else
4249 if test "$GCC" = yes; then
4250 CFLAGS="-O2"
4251 else
4252 CFLAGS=
4253 fi
4254 fi
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4256 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4257 if ${ac_cv_prog_cc_c89+:} false; then :
4258 $as_echo_n "(cached) " >&6
4259 else
4260 ac_cv_prog_cc_c89=no
4261 ac_save_CC=$CC
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4264 #include <stdarg.h>
4265 #include <stdio.h>
4266 struct stat;
4267 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4268 struct buf { int x; };
4269 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4270 static char *e (p, i)
4271 char **p;
4272 int i;
4273 {
4274 return p[i];
4275 }
4276 static char *f (char * (*g) (char **, int), char **p, ...)
4277 {
4278 char *s;
4279 va_list v;
4280 va_start (v,p);
4281 s = g (p, va_arg (v,int));
4282 va_end (v);
4283 return s;
4284 }
4285
4286 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4287 function prototypes and stuff, but not '\xHH' hex character constants.
4288 These don't provoke an error unfortunately, instead are silently treated
4289 as 'x'. The following induces an error, until -std is added to get
4290 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4291 array size at least. It's necessary to write '\x00'==0 to get something
4292 that's true only with -std. */
4293 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4294
4295 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4296 inside strings and character constants. */
4297 #define FOO(x) 'x'
4298 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4299
4300 int test (int i, double x);
4301 struct s1 {int (*f) (int a);};
4302 struct s2 {int (*f) (double a);};
4303 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4304 int argc;
4305 char **argv;
4306 int
4307 main ()
4308 {
4309 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4310 ;
4311 return 0;
4312 }
4313 _ACEOF
4314 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4315 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4316 do
4317 CC="$ac_save_CC $ac_arg"
4318 if ac_fn_c_try_compile "$LINENO"; then :
4319 ac_cv_prog_cc_c89=$ac_arg
4320 fi
4321 rm -f core conftest.err conftest.$ac_objext
4322 test "x$ac_cv_prog_cc_c89" != "xno" && break
4323 done
4324 rm -f conftest.$ac_ext
4325 CC=$ac_save_CC
4326
4327 fi
4328 # AC_CACHE_VAL
4329 case "x$ac_cv_prog_cc_c89" in
4330 x)
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4332 $as_echo "none needed" >&6; } ;;
4333 xno)
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4335 $as_echo "unsupported" >&6; } ;;
4336 *)
4337 CC="$CC $ac_cv_prog_cc_c89"
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4339 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4340 esac
4341 if test "x$ac_cv_prog_cc_c89" != xno; then :
4342
4343 fi
4344
4345 ac_ext=c
4346 ac_cpp='$CPP $CPPFLAGS'
4347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4350
4351 depcc="$CC" am_compiler_list=
4352
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4354 $as_echo_n "checking dependency style of $depcc... " >&6; }
4355 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4356 $as_echo_n "(cached) " >&6
4357 else
4358 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4359 # We make a subdir and do the tests there. Otherwise we can end up
4360 # making bogus files that we don't know about and never remove. For
4361 # instance it was reported that on HP-UX the gcc test will end up
4362 # making a dummy file named `D' -- because `-MD' means `put the output
4363 # in D'.
4364 rm -rf conftest.dir
4365 mkdir conftest.dir
4366 # Copy depcomp to subdir because otherwise we won't find it if we're
4367 # using a relative directory.
4368 cp "$am_depcomp" conftest.dir
4369 cd conftest.dir
4370 # We will build objects and dependencies in a subdirectory because
4371 # it helps to detect inapplicable dependency modes. For instance
4372 # both Tru64's cc and ICC support -MD to output dependencies as a
4373 # side effect of compilation, but ICC will put the dependencies in
4374 # the current directory while Tru64 will put them in the object
4375 # directory.
4376 mkdir sub
4377
4378 am_cv_CC_dependencies_compiler_type=none
4379 if test "$am_compiler_list" = ""; then
4380 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4381 fi
4382 am__universal=false
4383 case " $depcc " in #(
4384 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4385 esac
4386
4387 for depmode in $am_compiler_list; do
4388 # Setup a source with many dependencies, because some compilers
4389 # like to wrap large dependency lists on column 80 (with \), and
4390 # we should not choose a depcomp mode which is confused by this.
4391 #
4392 # We need to recreate these files for each test, as the compiler may
4393 # overwrite some of them when testing with obscure command lines.
4394 # This happens at least with the AIX C compiler.
4395 : > sub/conftest.c
4396 for i in 1 2 3 4 5 6; do
4397 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4398 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4399 # Solaris 8's {/usr,}/bin/sh.
4400 touch sub/conftst$i.h
4401 done
4402 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4403
4404 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4405 # mode. It turns out that the SunPro C++ compiler does not properly
4406 # handle `-M -o', and we need to detect this. Also, some Intel
4407 # versions had trouble with output in subdirs
4408 am__obj=sub/conftest.${OBJEXT-o}
4409 am__minus_obj="-o $am__obj"
4410 case $depmode in
4411 gcc)
4412 # This depmode causes a compiler race in universal mode.
4413 test "$am__universal" = false || continue
4414 ;;
4415 nosideeffect)
4416 # after this tag, mechanisms are not by side-effect, so they'll
4417 # only be used when explicitly requested
4418 if test "x$enable_dependency_tracking" = xyes; then
4419 continue
4420 else
4421 break
4422 fi
4423 ;;
4424 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4425 # This compiler won't grok `-c -o', but also, the minuso test has
4426 # not run yet. These depmodes are late enough in the game, and
4427 # so weak that their functioning should not be impacted.
4428 am__obj=conftest.${OBJEXT-o}
4429 am__minus_obj=
4430 ;;
4431 none) break ;;
4432 esac
4433 if depmode=$depmode \
4434 source=sub/conftest.c object=$am__obj \
4435 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4436 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4437 >/dev/null 2>conftest.err &&
4438 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4439 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4440 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4441 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4442 # icc doesn't choke on unknown options, it will just issue warnings
4443 # or remarks (even with -Werror). So we grep stderr for any message
4444 # that says an option was ignored or not supported.
4445 # When given -MP, icc 7.0 and 7.1 complain thusly:
4446 # icc: Command line warning: ignoring option '-M'; no argument required
4447 # The diagnosis changed in icc 8.0:
4448 # icc: Command line remark: option '-MP' not supported
4449 if (grep 'ignoring option' conftest.err ||
4450 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4451 am_cv_CC_dependencies_compiler_type=$depmode
4452 break
4453 fi
4454 fi
4455 done
4456
4457 cd ..
4458 rm -rf conftest.dir
4459 else
4460 am_cv_CC_dependencies_compiler_type=none
4461 fi
4462
4463 fi
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4465 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4466 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4467
4468 if
4469 test "x$enable_dependency_tracking" != xno \
4470 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4471 am__fastdepCC_TRUE=
4472 am__fastdepCC_FALSE='#'
4473 else
4474 am__fastdepCC_TRUE='#'
4475 am__fastdepCC_FALSE=
4476 fi
4477
4478
4479 ac_ext=c
4480 ac_cpp='$CPP $CPPFLAGS'
4481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4485 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4486 # On Suns, sometimes $CPP names a directory.
4487 if test -n "$CPP" && test -d "$CPP"; then
4488 CPP=
4489 fi
4490 if test -z "$CPP"; then
4491 if ${ac_cv_prog_CPP+:} false; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 # Double quotes because CPP needs to be expanded
4495 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4496 do
4497 ac_preproc_ok=false
4498 for ac_c_preproc_warn_flag in '' yes
4499 do
4500 # Use a header file that comes with gcc, so configuring glibc
4501 # with a fresh cross-compiler works.
4502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4503 # <limits.h> exists even on freestanding compilers.
4504 # On the NeXT, cc -E runs the code through the compiler's parser,
4505 # not just through cpp. "Syntax error" is here to catch this case.
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4508 #ifdef __STDC__
4509 # include <limits.h>
4510 #else
4511 # include <assert.h>
4512 #endif
4513 Syntax error
4514 _ACEOF
4515 if ac_fn_c_try_cpp "$LINENO"; then :
4516
4517 else
4518 # Broken: fails on valid input.
4519 continue
4520 fi
4521 rm -f conftest.err conftest.i conftest.$ac_ext
4522
4523 # OK, works on sane cases. Now check whether nonexistent headers
4524 # can be detected and how.
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4527 #include <ac_nonexistent.h>
4528 _ACEOF
4529 if ac_fn_c_try_cpp "$LINENO"; then :
4530 # Broken: success on invalid input.
4531 continue
4532 else
4533 # Passes both tests.
4534 ac_preproc_ok=:
4535 break
4536 fi
4537 rm -f conftest.err conftest.i conftest.$ac_ext
4538
4539 done
4540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4541 rm -f conftest.i conftest.err conftest.$ac_ext
4542 if $ac_preproc_ok; then :
4543 break
4544 fi
4545
4546 done
4547 ac_cv_prog_CPP=$CPP
4548
4549 fi
4550 CPP=$ac_cv_prog_CPP
4551 else
4552 ac_cv_prog_CPP=$CPP
4553 fi
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4555 $as_echo "$CPP" >&6; }
4556 ac_preproc_ok=false
4557 for ac_c_preproc_warn_flag in '' yes
4558 do
4559 # Use a header file that comes with gcc, so configuring glibc
4560 # with a fresh cross-compiler works.
4561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4562 # <limits.h> exists even on freestanding compilers.
4563 # On the NeXT, cc -E runs the code through the compiler's parser,
4564 # not just through cpp. "Syntax error" is here to catch this case.
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4567 #ifdef __STDC__
4568 # include <limits.h>
4569 #else
4570 # include <assert.h>
4571 #endif
4572 Syntax error
4573 _ACEOF
4574 if ac_fn_c_try_cpp "$LINENO"; then :
4575
4576 else
4577 # Broken: fails on valid input.
4578 continue
4579 fi
4580 rm -f conftest.err conftest.i conftest.$ac_ext
4581
4582 # OK, works on sane cases. Now check whether nonexistent headers
4583 # can be detected and how.
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4586 #include <ac_nonexistent.h>
4587 _ACEOF
4588 if ac_fn_c_try_cpp "$LINENO"; then :
4589 # Broken: success on invalid input.
4590 continue
4591 else
4592 # Passes both tests.
4593 ac_preproc_ok=:
4594 break
4595 fi
4596 rm -f conftest.err conftest.i conftest.$ac_ext
4597
4598 done
4599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4600 rm -f conftest.i conftest.err conftest.$ac_ext
4601 if $ac_preproc_ok; then :
4602
4603 else
4604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4606 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4607 See \`config.log' for more details" "$LINENO" 5; }
4608 fi
4609
4610 ac_ext=c
4611 ac_cpp='$CPP $CPPFLAGS'
4612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4615
4616
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4618 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4619 if ${ac_cv_path_GREP+:} false; then :
4620 $as_echo_n "(cached) " >&6
4621 else
4622 if test -z "$GREP"; then
4623 ac_path_GREP_found=false
4624 # Loop through the user's path and test for each of PROGNAME-LIST
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4627 do
4628 IFS=$as_save_IFS
4629 test -z "$as_dir" && as_dir=.
4630 for ac_prog in grep ggrep; do
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4633 as_fn_executable_p "$ac_path_GREP" || continue
4634 # Check for GNU ac_path_GREP and select it if it is found.
4635 # Check for GNU $ac_path_GREP
4636 case `"$ac_path_GREP" --version 2>&1` in
4637 *GNU*)
4638 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4639 *)
4640 ac_count=0
4641 $as_echo_n 0123456789 >"conftest.in"
4642 while :
4643 do
4644 cat "conftest.in" "conftest.in" >"conftest.tmp"
4645 mv "conftest.tmp" "conftest.in"
4646 cp "conftest.in" "conftest.nl"
4647 $as_echo 'GREP' >> "conftest.nl"
4648 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4649 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4650 as_fn_arith $ac_count + 1 && ac_count=$as_val
4651 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4652 # Best one so far, save it but keep looking for a better one
4653 ac_cv_path_GREP="$ac_path_GREP"
4654 ac_path_GREP_max=$ac_count
4655 fi
4656 # 10*(2^10) chars as input seems more than enough
4657 test $ac_count -gt 10 && break
4658 done
4659 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4660 esac
4661
4662 $ac_path_GREP_found && break 3
4663 done
4664 done
4665 done
4666 IFS=$as_save_IFS
4667 if test -z "$ac_cv_path_GREP"; then
4668 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4669 fi
4670 else
4671 ac_cv_path_GREP=$GREP
4672 fi
4673
4674 fi
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4676 $as_echo "$ac_cv_path_GREP" >&6; }
4677 GREP="$ac_cv_path_GREP"
4678
4679
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4681 $as_echo_n "checking for egrep... " >&6; }
4682 if ${ac_cv_path_EGREP+:} false; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4686 then ac_cv_path_EGREP="$GREP -E"
4687 else
4688 if test -z "$EGREP"; then
4689 ac_path_EGREP_found=false
4690 # Loop through the user's path and test for each of PROGNAME-LIST
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4693 do
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
4696 for ac_prog in egrep; do
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4699 as_fn_executable_p "$ac_path_EGREP" || continue
4700 # Check for GNU ac_path_EGREP and select it if it is found.
4701 # Check for GNU $ac_path_EGREP
4702 case `"$ac_path_EGREP" --version 2>&1` in
4703 *GNU*)
4704 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4705 *)
4706 ac_count=0
4707 $as_echo_n 0123456789 >"conftest.in"
4708 while :
4709 do
4710 cat "conftest.in" "conftest.in" >"conftest.tmp"
4711 mv "conftest.tmp" "conftest.in"
4712 cp "conftest.in" "conftest.nl"
4713 $as_echo 'EGREP' >> "conftest.nl"
4714 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4715 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4716 as_fn_arith $ac_count + 1 && ac_count=$as_val
4717 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4718 # Best one so far, save it but keep looking for a better one
4719 ac_cv_path_EGREP="$ac_path_EGREP"
4720 ac_path_EGREP_max=$ac_count
4721 fi
4722 # 10*(2^10) chars as input seems more than enough
4723 test $ac_count -gt 10 && break
4724 done
4725 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4726 esac
4727
4728 $ac_path_EGREP_found && break 3
4729 done
4730 done
4731 done
4732 IFS=$as_save_IFS
4733 if test -z "$ac_cv_path_EGREP"; then
4734 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4735 fi
4736 else
4737 ac_cv_path_EGREP=$EGREP
4738 fi
4739
4740 fi
4741 fi
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4743 $as_echo "$ac_cv_path_EGREP" >&6; }
4744 EGREP="$ac_cv_path_EGREP"
4745
4746
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4748 $as_echo_n "checking for ANSI C header files... " >&6; }
4749 if ${ac_cv_header_stdc+:} false; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4754 #include <stdlib.h>
4755 #include <stdarg.h>
4756 #include <string.h>
4757 #include <float.h>
4758
4759 int
4760 main ()
4761 {
4762
4763 ;
4764 return 0;
4765 }
4766 _ACEOF
4767 if ac_fn_c_try_compile "$LINENO"; then :
4768 ac_cv_header_stdc=yes
4769 else
4770 ac_cv_header_stdc=no
4771 fi
4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773
4774 if test $ac_cv_header_stdc = yes; then
4775 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4778 #include <string.h>
4779
4780 _ACEOF
4781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4782 $EGREP "memchr" >/dev/null 2>&1; then :
4783
4784 else
4785 ac_cv_header_stdc=no
4786 fi
4787 rm -f conftest*
4788
4789 fi
4790
4791 if test $ac_cv_header_stdc = yes; then
4792 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h. */
4795 #include <stdlib.h>
4796
4797 _ACEOF
4798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4799 $EGREP "free" >/dev/null 2>&1; then :
4800
4801 else
4802 ac_cv_header_stdc=no
4803 fi
4804 rm -f conftest*
4805
4806 fi
4807
4808 if test $ac_cv_header_stdc = yes; then
4809 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4810 if test "$cross_compiling" = yes; then :
4811 :
4812 else
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4815 #include <ctype.h>
4816 #include <stdlib.h>
4817 #if ((' ' & 0x0FF) == 0x020)
4818 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4819 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4820 #else
4821 # define ISLOWER(c) \
4822 (('a' <= (c) && (c) <= 'i') \
4823 || ('j' <= (c) && (c) <= 'r') \
4824 || ('s' <= (c) && (c) <= 'z'))
4825 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4826 #endif
4827
4828 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4829 int
4830 main ()
4831 {
4832 int i;
4833 for (i = 0; i < 256; i++)
4834 if (XOR (islower (i), ISLOWER (i))
4835 || toupper (i) != TOUPPER (i))
4836 return 2;
4837 return 0;
4838 }
4839 _ACEOF
4840 if ac_fn_c_try_run "$LINENO"; then :
4841
4842 else
4843 ac_cv_header_stdc=no
4844 fi
4845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4846 conftest.$ac_objext conftest.beam conftest.$ac_ext
4847 fi
4848
4849 fi
4850 fi
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4852 $as_echo "$ac_cv_header_stdc" >&6; }
4853 if test $ac_cv_header_stdc = yes; then
4854
4855 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4856
4857 fi
4858
4859 case `pwd` in
4860 *\ * | *\ *)
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4862 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4863 esac
4864
4865
4866
4867 macro_version='2.4.2'
4868 macro_revision='1.3337'
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882 ltmain="$ac_aux_dir/ltmain.sh"
4883
4884 # Backslashify metacharacters that are still active within
4885 # double-quoted strings.
4886 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4887
4888 # Same as above, but do not quote variable references.
4889 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4890
4891 # Sed substitution to delay expansion of an escaped shell variable in a
4892 # double_quote_subst'ed string.
4893 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4894
4895 # Sed substitution to delay expansion of an escaped single quote.
4896 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4897
4898 # Sed substitution to avoid accidental globbing in evaled expressions
4899 no_glob_subst='s/\*/\\\*/g'
4900
4901 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4902 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4903 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4904
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4906 $as_echo_n "checking how to print strings... " >&6; }
4907 # Test print first, because it will be a builtin if present.
4908 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4909 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4910 ECHO='print -r --'
4911 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4912 ECHO='printf %s\n'
4913 else
4914 # Use this function as a fallback that always works.
4915 func_fallback_echo ()
4916 {
4917 eval 'cat <<_LTECHO_EOF
4918 $1
4919 _LTECHO_EOF'
4920 }
4921 ECHO='func_fallback_echo'
4922 fi
4923
4924 # func_echo_all arg...
4925 # Invoke $ECHO with all args, space-separated.
4926 func_echo_all ()
4927 {
4928 $ECHO ""
4929 }
4930
4931 case "$ECHO" in
4932 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4933 $as_echo "printf" >&6; } ;;
4934 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4935 $as_echo "print -r" >&6; } ;;
4936 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4937 $as_echo "cat" >&6; } ;;
4938 esac
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4954 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4955 if ${ac_cv_path_SED+:} false; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4959 for ac_i in 1 2 3 4 5 6 7; do
4960 ac_script="$ac_script$as_nl$ac_script"
4961 done
4962 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4963 { ac_script=; unset ac_script;}
4964 if test -z "$SED"; then
4965 ac_path_SED_found=false
4966 # Loop through the user's path and test for each of PROGNAME-LIST
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 for as_dir in $PATH
4969 do
4970 IFS=$as_save_IFS
4971 test -z "$as_dir" && as_dir=.
4972 for ac_prog in sed gsed; do
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4975 as_fn_executable_p "$ac_path_SED" || continue
4976 # Check for GNU ac_path_SED and select it if it is found.
4977 # Check for GNU $ac_path_SED
4978 case `"$ac_path_SED" --version 2>&1` in
4979 *GNU*)
4980 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4981 *)
4982 ac_count=0
4983 $as_echo_n 0123456789 >"conftest.in"
4984 while :
4985 do
4986 cat "conftest.in" "conftest.in" >"conftest.tmp"
4987 mv "conftest.tmp" "conftest.in"
4988 cp "conftest.in" "conftest.nl"
4989 $as_echo '' >> "conftest.nl"
4990 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4991 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4992 as_fn_arith $ac_count + 1 && ac_count=$as_val
4993 if test $ac_count -gt ${ac_path_SED_max-0}; then
4994 # Best one so far, save it but keep looking for a better one
4995 ac_cv_path_SED="$ac_path_SED"
4996 ac_path_SED_max=$ac_count
4997 fi
4998 # 10*(2^10) chars as input seems more than enough
4999 test $ac_count -gt 10 && break
5000 done
5001 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5002 esac
5003
5004 $ac_path_SED_found && break 3
5005 done
5006 done
5007 done
5008 IFS=$as_save_IFS
5009 if test -z "$ac_cv_path_SED"; then
5010 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5011 fi
5012 else
5013 ac_cv_path_SED=$SED
5014 fi
5015
5016 fi
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5018 $as_echo "$ac_cv_path_SED" >&6; }
5019 SED="$ac_cv_path_SED"
5020 rm -f conftest.sed
5021
5022 test -z "$SED" && SED=sed
5023 Xsed="$SED -e 1s/^X//"
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5036 $as_echo_n "checking for fgrep... " >&6; }
5037 if ${ac_cv_path_FGREP+:} false; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5041 then ac_cv_path_FGREP="$GREP -F"
5042 else
5043 if test -z "$FGREP"; then
5044 ac_path_FGREP_found=false
5045 # Loop through the user's path and test for each of PROGNAME-LIST
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5048 do
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
5051 for ac_prog in fgrep; do
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5054 as_fn_executable_p "$ac_path_FGREP" || continue
5055 # Check for GNU ac_path_FGREP and select it if it is found.
5056 # Check for GNU $ac_path_FGREP
5057 case `"$ac_path_FGREP" --version 2>&1` in
5058 *GNU*)
5059 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5060 *)
5061 ac_count=0
5062 $as_echo_n 0123456789 >"conftest.in"
5063 while :
5064 do
5065 cat "conftest.in" "conftest.in" >"conftest.tmp"
5066 mv "conftest.tmp" "conftest.in"
5067 cp "conftest.in" "conftest.nl"
5068 $as_echo 'FGREP' >> "conftest.nl"
5069 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5070 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5071 as_fn_arith $ac_count + 1 && ac_count=$as_val
5072 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5073 # Best one so far, save it but keep looking for a better one
5074 ac_cv_path_FGREP="$ac_path_FGREP"
5075 ac_path_FGREP_max=$ac_count
5076 fi
5077 # 10*(2^10) chars as input seems more than enough
5078 test $ac_count -gt 10 && break
5079 done
5080 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5081 esac
5082
5083 $ac_path_FGREP_found && break 3
5084 done
5085 done
5086 done
5087 IFS=$as_save_IFS
5088 if test -z "$ac_cv_path_FGREP"; then
5089 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5090 fi
5091 else
5092 ac_cv_path_FGREP=$FGREP
5093 fi
5094
5095 fi
5096 fi
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5098 $as_echo "$ac_cv_path_FGREP" >&6; }
5099 FGREP="$ac_cv_path_FGREP"
5100
5101
5102 test -z "$GREP" && GREP=grep
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122 # Check whether --with-gnu-ld was given.
5123 if test "${with_gnu_ld+set}" = set; then :
5124 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5125 else
5126 with_gnu_ld=no
5127 fi
5128
5129 ac_prog=ld
5130 if test "$GCC" = yes; then
5131 # Check if gcc -print-prog-name=ld gives a path.
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5133 $as_echo_n "checking for ld used by $CC... " >&6; }
5134 case $host in
5135 *-*-mingw*)
5136 # gcc leaves a trailing carriage return which upsets mingw
5137 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5138 *)
5139 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5140 esac
5141 case $ac_prog in
5142 # Accept absolute paths.
5143 [\\/]* | ?:[\\/]*)
5144 re_direlt='/[^/][^/]*/\.\./'
5145 # Canonicalize the pathname of ld
5146 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5147 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5148 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5149 done
5150 test -z "$LD" && LD="$ac_prog"
5151 ;;
5152 "")
5153 # If it fails, then pretend we aren't using GCC.
5154 ac_prog=ld
5155 ;;
5156 *)
5157 # If it is relative, then search for the first ld in PATH.
5158 with_gnu_ld=unknown
5159 ;;
5160 esac
5161 elif test "$with_gnu_ld" = yes; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5163 $as_echo_n "checking for GNU ld... " >&6; }
5164 else
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5166 $as_echo_n "checking for non-GNU ld... " >&6; }
5167 fi
5168 if ${lt_cv_path_LD+:} false; then :
5169 $as_echo_n "(cached) " >&6
5170 else
5171 if test -z "$LD"; then
5172 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5173 for ac_dir in $PATH; do
5174 IFS="$lt_save_ifs"
5175 test -z "$ac_dir" && ac_dir=.
5176 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5177 lt_cv_path_LD="$ac_dir/$ac_prog"
5178 # Check to see if the program is GNU ld. I'd rather use --version,
5179 # but apparently some variants of GNU ld only accept -v.
5180 # Break only if it was the GNU/non-GNU ld that we prefer.
5181 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5182 *GNU* | *'with BFD'*)
5183 test "$with_gnu_ld" != no && break
5184 ;;
5185 *)
5186 test "$with_gnu_ld" != yes && break
5187 ;;
5188 esac
5189 fi
5190 done
5191 IFS="$lt_save_ifs"
5192 else
5193 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5194 fi
5195 fi
5196
5197 LD="$lt_cv_path_LD"
5198 if test -n "$LD"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5200 $as_echo "$LD" >&6; }
5201 else
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5204 fi
5205 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5207 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5208 if ${lt_cv_prog_gnu_ld+:} false; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5212 case `$LD -v 2>&1 </dev/null` in
5213 *GNU* | *'with BFD'*)
5214 lt_cv_prog_gnu_ld=yes
5215 ;;
5216 *)
5217 lt_cv_prog_gnu_ld=no
5218 ;;
5219 esac
5220 fi
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5222 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5223 with_gnu_ld=$lt_cv_prog_gnu_ld
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5234 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5235 if ${lt_cv_path_NM+:} false; then :
5236 $as_echo_n "(cached) " >&6
5237 else
5238 if test -n "$NM"; then
5239 # Let the user override the test.
5240 lt_cv_path_NM="$NM"
5241 else
5242 lt_nm_to_check="${ac_tool_prefix}nm"
5243 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5244 lt_nm_to_check="$lt_nm_to_check nm"
5245 fi
5246 for lt_tmp_nm in $lt_nm_to_check; do
5247 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5248 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5249 IFS="$lt_save_ifs"
5250 test -z "$ac_dir" && ac_dir=.
5251 tmp_nm="$ac_dir/$lt_tmp_nm"
5252 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5253 # Check to see if the nm accepts a BSD-compat flag.
5254 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5255 # nm: unknown option "B" ignored
5256 # Tru64's nm complains that /dev/null is an invalid object file
5257 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5258 */dev/null* | *'Invalid file or object type'*)
5259 lt_cv_path_NM="$tmp_nm -B"
5260 break
5261 ;;
5262 *)
5263 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5264 */dev/null*)
5265 lt_cv_path_NM="$tmp_nm -p"
5266 break
5267 ;;
5268 *)
5269 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5270 continue # so that we can try to find one that supports BSD flags
5271 ;;
5272 esac
5273 ;;
5274 esac
5275 fi
5276 done
5277 IFS="$lt_save_ifs"
5278 done
5279 : ${lt_cv_path_NM=no}
5280 fi
5281 fi
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5283 $as_echo "$lt_cv_path_NM" >&6; }
5284 if test "$lt_cv_path_NM" != "no"; then
5285 NM="$lt_cv_path_NM"
5286 else
5287 # Didn't find any BSD compatible name lister, look for dumpbin.
5288 if test -n "$DUMPBIN"; then :
5289 # Let the user override the test.
5290 else
5291 if test -n "$ac_tool_prefix"; then
5292 for ac_prog in dumpbin "link -dump"
5293 do
5294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5295 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if ${ac_cv_prog_DUMPBIN+:} false; then :
5299 $as_echo_n "(cached) " >&6
5300 else
5301 if test -n "$DUMPBIN"; then
5302 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5303 else
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH
5306 do
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5311 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 break 2
5314 fi
5315 done
5316 done
5317 IFS=$as_save_IFS
5318
5319 fi
5320 fi
5321 DUMPBIN=$ac_cv_prog_DUMPBIN
5322 if test -n "$DUMPBIN"; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5324 $as_echo "$DUMPBIN" >&6; }
5325 else
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5328 fi
5329
5330
5331 test -n "$DUMPBIN" && break
5332 done
5333 fi
5334 if test -z "$DUMPBIN"; then
5335 ac_ct_DUMPBIN=$DUMPBIN
5336 for ac_prog in dumpbin "link -dump"
5337 do
5338 # Extract the first word of "$ac_prog", so it can be a program name with args.
5339 set dummy $ac_prog; ac_word=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5343 $as_echo_n "(cached) " >&6
5344 else
5345 if test -n "$ac_ct_DUMPBIN"; then
5346 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5347 else
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5350 do
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 break 2
5358 fi
5359 done
5360 done
5361 IFS=$as_save_IFS
5362
5363 fi
5364 fi
5365 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5366 if test -n "$ac_ct_DUMPBIN"; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5368 $as_echo "$ac_ct_DUMPBIN" >&6; }
5369 else
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5372 fi
5373
5374
5375 test -n "$ac_ct_DUMPBIN" && break
5376 done
5377
5378 if test "x$ac_ct_DUMPBIN" = x; then
5379 DUMPBIN=":"
5380 else
5381 case $cross_compiling:$ac_tool_warned in
5382 yes:)
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5385 ac_tool_warned=yes ;;
5386 esac
5387 DUMPBIN=$ac_ct_DUMPBIN
5388 fi
5389 fi
5390
5391 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5392 *COFF*)
5393 DUMPBIN="$DUMPBIN -symbols"
5394 ;;
5395 *)
5396 DUMPBIN=:
5397 ;;
5398 esac
5399 fi
5400
5401 if test "$DUMPBIN" != ":"; then
5402 NM="$DUMPBIN"
5403 fi
5404 fi
5405 test -z "$NM" && NM=nm
5406
5407
5408
5409
5410
5411
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5413 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5414 if ${lt_cv_nm_interface+:} false; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417 lt_cv_nm_interface="BSD nm"
5418 echo "int some_variable = 0;" > conftest.$ac_ext
5419 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5420 (eval "$ac_compile" 2>conftest.err)
5421 cat conftest.err >&5
5422 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5423 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5424 cat conftest.err >&5
5425 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5426 cat conftest.out >&5
5427 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5428 lt_cv_nm_interface="MS dumpbin"
5429 fi
5430 rm -f conftest*
5431 fi
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5433 $as_echo "$lt_cv_nm_interface" >&6; }
5434
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5436 $as_echo_n "checking whether ln -s works... " >&6; }
5437 LN_S=$as_ln_s
5438 if test "$LN_S" = "ln -s"; then
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5440 $as_echo "yes" >&6; }
5441 else
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5443 $as_echo "no, using $LN_S" >&6; }
5444 fi
5445
5446 # find the maximum length of command line arguments
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5448 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5449 if ${lt_cv_sys_max_cmd_len+:} false; then :
5450 $as_echo_n "(cached) " >&6
5451 else
5452 i=0
5453 teststring="ABCD"
5454
5455 case $build_os in
5456 msdosdjgpp*)
5457 # On DJGPP, this test can blow up pretty badly due to problems in libc
5458 # (any single argument exceeding 2000 bytes causes a buffer overrun
5459 # during glob expansion). Even if it were fixed, the result of this
5460 # check would be larger than it should be.
5461 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5462 ;;
5463
5464 gnu*)
5465 # Under GNU Hurd, this test is not required because there is
5466 # no limit to the length of command line arguments.
5467 # Libtool will interpret -1 as no limit whatsoever
5468 lt_cv_sys_max_cmd_len=-1;
5469 ;;
5470
5471 cygwin* | mingw* | cegcc*)
5472 # On Win9x/ME, this test blows up -- it succeeds, but takes
5473 # about 5 minutes as the teststring grows exponentially.
5474 # Worse, since 9x/ME are not pre-emptively multitasking,
5475 # you end up with a "frozen" computer, even though with patience
5476 # the test eventually succeeds (with a max line length of 256k).
5477 # Instead, let's just punt: use the minimum linelength reported by
5478 # all of the supported platforms: 8192 (on NT/2K/XP).
5479 lt_cv_sys_max_cmd_len=8192;
5480 ;;
5481
5482 mint*)
5483 # On MiNT this can take a long time and run out of memory.
5484 lt_cv_sys_max_cmd_len=8192;
5485 ;;
5486
5487 amigaos*)
5488 # On AmigaOS with pdksh, this test takes hours, literally.
5489 # So we just punt and use a minimum line length of 8192.
5490 lt_cv_sys_max_cmd_len=8192;
5491 ;;
5492
5493 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5494 # This has been around since 386BSD, at least. Likely further.
5495 if test -x /sbin/sysctl; then
5496 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5497 elif test -x /usr/sbin/sysctl; then
5498 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5499 else
5500 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5501 fi
5502 # And add a safety zone
5503 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5504 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5505 ;;
5506
5507 interix*)
5508 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5509 lt_cv_sys_max_cmd_len=196608
5510 ;;
5511
5512 os2*)
5513 # The test takes a long time on OS/2.
5514 lt_cv_sys_max_cmd_len=8192
5515 ;;
5516
5517 osf*)
5518 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5519 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5520 # nice to cause kernel panics so lets avoid the loop below.
5521 # First set a reasonable default.
5522 lt_cv_sys_max_cmd_len=16384
5523 #
5524 if test -x /sbin/sysconfig; then
5525 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5526 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5527 esac
5528 fi
5529 ;;
5530 sco3.2v5*)
5531 lt_cv_sys_max_cmd_len=102400
5532 ;;
5533 sysv5* | sco5v6* | sysv4.2uw2*)
5534 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5535 if test -n "$kargmax"; then
5536 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5537 else
5538 lt_cv_sys_max_cmd_len=32768
5539 fi
5540 ;;
5541 *)
5542 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5543 if test -n "$lt_cv_sys_max_cmd_len"; then
5544 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5545 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5546 else
5547 # Make teststring a little bigger before we do anything with it.
5548 # a 1K string should be a reasonable start.
5549 for i in 1 2 3 4 5 6 7 8 ; do
5550 teststring=$teststring$teststring
5551 done
5552 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5553 # If test is not a shell built-in, we'll probably end up computing a
5554 # maximum length that is only half of the actual maximum length, but
5555 # we can't tell.
5556 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5557 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5558 test $i != 17 # 1/2 MB should be enough
5559 do
5560 i=`expr $i + 1`
5561 teststring=$teststring$teststring
5562 done
5563 # Only check the string length outside the loop.
5564 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5565 teststring=
5566 # Add a significant safety factor because C++ compilers can tack on
5567 # massive amounts of additional arguments before passing them to the
5568 # linker. It appears as though 1/2 is a usable value.
5569 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5570 fi
5571 ;;
5572 esac
5573
5574 fi
5575
5576 if test -n $lt_cv_sys_max_cmd_len ; then
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5578 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5579 else
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5581 $as_echo "none" >&6; }
5582 fi
5583 max_cmd_len=$lt_cv_sys_max_cmd_len
5584
5585
5586
5587
5588
5589
5590 : ${CP="cp -f"}
5591 : ${MV="mv -f"}
5592 : ${RM="rm -f"}
5593
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5595 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5596 # Try some XSI features
5597 xsi_shell=no
5598 ( _lt_dummy="a/b/c"
5599 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5600 = c,a/b,b/c, \
5601 && eval 'test $(( 1 + 1 )) -eq 2 \
5602 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5603 && xsi_shell=yes
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5605 $as_echo "$xsi_shell" >&6; }
5606
5607
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5609 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5610 lt_shell_append=no
5611 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5612 >/dev/null 2>&1 \
5613 && lt_shell_append=yes
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5615 $as_echo "$lt_shell_append" >&6; }
5616
5617
5618 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5619 lt_unset=unset
5620 else
5621 lt_unset=false
5622 fi
5623
5624
5625
5626
5627
5628 # test EBCDIC or ASCII
5629 case `echo X|tr X '\101'` in
5630 A) # ASCII based system
5631 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5632 lt_SP2NL='tr \040 \012'
5633 lt_NL2SP='tr \015\012 \040\040'
5634 ;;
5635 *) # EBCDIC based system
5636 lt_SP2NL='tr \100 \n'
5637 lt_NL2SP='tr \r\n \100\100'
5638 ;;
5639 esac
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5650 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5651 if ${lt_cv_to_host_file_cmd+:} false; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 case $host in
5655 *-*-mingw* )
5656 case $build in
5657 *-*-mingw* ) # actually msys
5658 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5659 ;;
5660 *-*-cygwin* )
5661 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5662 ;;
5663 * ) # otherwise, assume *nix
5664 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5665 ;;
5666 esac
5667 ;;
5668 *-*-cygwin* )
5669 case $build in
5670 *-*-mingw* ) # actually msys
5671 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5672 ;;
5673 *-*-cygwin* )
5674 lt_cv_to_host_file_cmd=func_convert_file_noop
5675 ;;
5676 * ) # otherwise, assume *nix
5677 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5678 ;;
5679 esac
5680 ;;
5681 * ) # unhandled hosts (and "normal" native builds)
5682 lt_cv_to_host_file_cmd=func_convert_file_noop
5683 ;;
5684 esac
5685
5686 fi
5687
5688 to_host_file_cmd=$lt_cv_to_host_file_cmd
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5690 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5691
5692
5693
5694
5695
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5697 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5698 if ${lt_cv_to_tool_file_cmd+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 #assume ordinary cross tools, or native build.
5702 lt_cv_to_tool_file_cmd=func_convert_file_noop
5703 case $host in
5704 *-*-mingw* )
5705 case $build in
5706 *-*-mingw* ) # actually msys
5707 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5708 ;;
5709 esac
5710 ;;
5711 esac
5712
5713 fi
5714
5715 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5717 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5718
5719
5720
5721
5722
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5724 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5725 if ${lt_cv_ld_reload_flag+:} false; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 lt_cv_ld_reload_flag='-r'
5729 fi
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5731 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5732 reload_flag=$lt_cv_ld_reload_flag
5733 case $reload_flag in
5734 "" | " "*) ;;
5735 *) reload_flag=" $reload_flag" ;;
5736 esac
5737 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5738 case $host_os in
5739 cygwin* | mingw* | pw32* | cegcc*)
5740 if test "$GCC" != yes; then
5741 reload_cmds=false
5742 fi
5743 ;;
5744 darwin*)
5745 if test "$GCC" = yes; then
5746 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5747 else
5748 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5749 fi
5750 ;;
5751 esac
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761 if test -n "$ac_tool_prefix"; then
5762 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5763 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5765 $as_echo_n "checking for $ac_word... " >&6; }
5766 if ${ac_cv_prog_OBJDUMP+:} false; then :
5767 $as_echo_n "(cached) " >&6
5768 else
5769 if test -n "$OBJDUMP"; then
5770 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5771 else
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH
5774 do
5775 IFS=$as_save_IFS
5776 test -z "$as_dir" && as_dir=.
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 break 2
5782 fi
5783 done
5784 done
5785 IFS=$as_save_IFS
5786
5787 fi
5788 fi
5789 OBJDUMP=$ac_cv_prog_OBJDUMP
5790 if test -n "$OBJDUMP"; then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5792 $as_echo "$OBJDUMP" >&6; }
5793 else
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }
5796 fi
5797
5798
5799 fi
5800 if test -z "$ac_cv_prog_OBJDUMP"; then
5801 ac_ct_OBJDUMP=$OBJDUMP
5802 # Extract the first word of "objdump", so it can be a program name with args.
5803 set dummy objdump; ac_word=$2
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5805 $as_echo_n "checking for $ac_word... " >&6; }
5806 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 if test -n "$ac_ct_OBJDUMP"; then
5810 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5811 else
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5814 do
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5822 fi
5823 done
5824 done
5825 IFS=$as_save_IFS
5826
5827 fi
5828 fi
5829 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5830 if test -n "$ac_ct_OBJDUMP"; then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5832 $as_echo "$ac_ct_OBJDUMP" >&6; }
5833 else
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835 $as_echo "no" >&6; }
5836 fi
5837
5838 if test "x$ac_ct_OBJDUMP" = x; then
5839 OBJDUMP="false"
5840 else
5841 case $cross_compiling:$ac_tool_warned in
5842 yes:)
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5845 ac_tool_warned=yes ;;
5846 esac
5847 OBJDUMP=$ac_ct_OBJDUMP
5848 fi
5849 else
5850 OBJDUMP="$ac_cv_prog_OBJDUMP"
5851 fi
5852
5853 test -z "$OBJDUMP" && OBJDUMP=objdump
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5864 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5865 if ${lt_cv_deplibs_check_method+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 lt_cv_file_magic_cmd='$MAGIC_CMD'
5869 lt_cv_file_magic_test_file=
5870 lt_cv_deplibs_check_method='unknown'
5871 # Need to set the preceding variable on all platforms that support
5872 # interlibrary dependencies.
5873 # 'none' -- dependencies not supported.
5874 # `unknown' -- same as none, but documents that we really don't know.
5875 # 'pass_all' -- all dependencies passed with no checks.
5876 # 'test_compile' -- check by making test program.
5877 # 'file_magic [[regex]]' -- check by looking for files in library path
5878 # which responds to the $file_magic_cmd with a given extended regex.
5879 # If you have `file' or equivalent on your system and you're not sure
5880 # whether `pass_all' will *always* work, you probably want this one.
5881
5882 case $host_os in
5883 aix[4-9]*)
5884 lt_cv_deplibs_check_method=pass_all
5885 ;;
5886
5887 beos*)
5888 lt_cv_deplibs_check_method=pass_all
5889 ;;
5890
5891 bsdi[45]*)
5892 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5893 lt_cv_file_magic_cmd='/usr/bin/file -L'
5894 lt_cv_file_magic_test_file=/shlib/libc.so
5895 ;;
5896
5897 cygwin*)
5898 # func_win32_libid is a shell function defined in ltmain.sh
5899 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5900 lt_cv_file_magic_cmd='func_win32_libid'
5901 ;;
5902
5903 mingw* | pw32*)
5904 # Base MSYS/MinGW do not provide the 'file' command needed by
5905 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5906 # unless we find 'file', for example because we are cross-compiling.
5907 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5908 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5909 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5910 lt_cv_file_magic_cmd='func_win32_libid'
5911 else
5912 # Keep this pattern in sync with the one in func_win32_libid.
5913 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5914 lt_cv_file_magic_cmd='$OBJDUMP -f'
5915 fi
5916 ;;
5917
5918 cegcc*)
5919 # use the weaker test based on 'objdump'. See mingw*.
5920 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5921 lt_cv_file_magic_cmd='$OBJDUMP -f'
5922 ;;
5923
5924 darwin* | rhapsody*)
5925 lt_cv_deplibs_check_method=pass_all
5926 ;;
5927
5928 freebsd* | dragonfly*)
5929 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5930 case $host_cpu in
5931 i*86 )
5932 # Not sure whether the presence of OpenBSD here was a mistake.
5933 # Let's accept both of them until this is cleared up.
5934 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5935 lt_cv_file_magic_cmd=/usr/bin/file
5936 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5937 ;;
5938 esac
5939 else
5940 lt_cv_deplibs_check_method=pass_all
5941 fi
5942 ;;
5943
5944 haiku*)
5945 lt_cv_deplibs_check_method=pass_all
5946 ;;
5947
5948 hpux10.20* | hpux11*)
5949 lt_cv_file_magic_cmd=/usr/bin/file
5950 case $host_cpu in
5951 ia64*)
5952 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5953 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5954 ;;
5955 hppa*64*)
5956 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]'
5957 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5958 ;;
5959 *)
5960 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5961 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5962 ;;
5963 esac
5964 ;;
5965
5966 interix[3-9]*)
5967 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5968 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5969 ;;
5970
5971 irix5* | irix6* | nonstopux*)
5972 case $LD in
5973 *-32|*"-32 ") libmagic=32-bit;;
5974 *-n32|*"-n32 ") libmagic=N32;;
5975 *-64|*"-64 ") libmagic=64-bit;;
5976 *) libmagic=never-match;;
5977 esac
5978 lt_cv_deplibs_check_method=pass_all
5979 ;;
5980
5981 # This must be glibc/ELF.
5982 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5983 lt_cv_deplibs_check_method=pass_all
5984 ;;
5985
5986 netbsd* | netbsdelf*-gnu)
5987 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5988 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5989 else
5990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5991 fi
5992 ;;
5993
5994 newos6*)
5995 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5996 lt_cv_file_magic_cmd=/usr/bin/file
5997 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5998 ;;
5999
6000 *nto* | *qnx*)
6001 lt_cv_deplibs_check_method=pass_all
6002 ;;
6003
6004 openbsd*)
6005 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6007 else
6008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6009 fi
6010 ;;
6011
6012 osf3* | osf4* | osf5*)
6013 lt_cv_deplibs_check_method=pass_all
6014 ;;
6015
6016 rdos*)
6017 lt_cv_deplibs_check_method=pass_all
6018 ;;
6019
6020 solaris*)
6021 lt_cv_deplibs_check_method=pass_all
6022 ;;
6023
6024 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6025 lt_cv_deplibs_check_method=pass_all
6026 ;;
6027
6028 sysv4 | sysv4.3*)
6029 case $host_vendor in
6030 motorola)
6031 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]'
6032 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6033 ;;
6034 ncr)
6035 lt_cv_deplibs_check_method=pass_all
6036 ;;
6037 sequent)
6038 lt_cv_file_magic_cmd='/bin/file'
6039 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6040 ;;
6041 sni)
6042 lt_cv_file_magic_cmd='/bin/file'
6043 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6044 lt_cv_file_magic_test_file=/lib/libc.so
6045 ;;
6046 siemens)
6047 lt_cv_deplibs_check_method=pass_all
6048 ;;
6049 pc)
6050 lt_cv_deplibs_check_method=pass_all
6051 ;;
6052 esac
6053 ;;
6054
6055 tpf*)
6056 lt_cv_deplibs_check_method=pass_all
6057 ;;
6058 esac
6059
6060 fi
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6062 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6063
6064 file_magic_glob=
6065 want_nocaseglob=no
6066 if test "$build" = "$host"; then
6067 case $host_os in
6068 mingw* | pw32*)
6069 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6070 want_nocaseglob=yes
6071 else
6072 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6073 fi
6074 ;;
6075 esac
6076 fi
6077
6078 file_magic_cmd=$lt_cv_file_magic_cmd
6079 deplibs_check_method=$lt_cv_deplibs_check_method
6080 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103 if test -n "$ac_tool_prefix"; then
6104 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6105 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if ${ac_cv_prog_DLLTOOL+:} false; then :
6109 $as_echo_n "(cached) " >&6
6110 else
6111 if test -n "$DLLTOOL"; then
6112 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117 IFS=$as_save_IFS
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6123 break 2
6124 fi
6125 done
6126 done
6127 IFS=$as_save_IFS
6128
6129 fi
6130 fi
6131 DLLTOOL=$ac_cv_prog_DLLTOOL
6132 if test -n "$DLLTOOL"; then
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6134 $as_echo "$DLLTOOL" >&6; }
6135 else
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137 $as_echo "no" >&6; }
6138 fi
6139
6140
6141 fi
6142 if test -z "$ac_cv_prog_DLLTOOL"; then
6143 ac_ct_DLLTOOL=$DLLTOOL
6144 # Extract the first word of "dlltool", so it can be a program name with args.
6145 set dummy dlltool; ac_word=$2
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147 $as_echo_n "checking for $ac_word... " >&6; }
6148 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6149 $as_echo_n "(cached) " >&6
6150 else
6151 if test -n "$ac_ct_DLLTOOL"; then
6152 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6153 else
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 for as_dir in $PATH
6156 do
6157 IFS=$as_save_IFS
6158 test -z "$as_dir" && as_dir=.
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6161 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6163 break 2
6164 fi
6165 done
6166 done
6167 IFS=$as_save_IFS
6168
6169 fi
6170 fi
6171 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6172 if test -n "$ac_ct_DLLTOOL"; then
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6174 $as_echo "$ac_ct_DLLTOOL" >&6; }
6175 else
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177 $as_echo "no" >&6; }
6178 fi
6179
6180 if test "x$ac_ct_DLLTOOL" = x; then
6181 DLLTOOL="false"
6182 else
6183 case $cross_compiling:$ac_tool_warned in
6184 yes:)
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6187 ac_tool_warned=yes ;;
6188 esac
6189 DLLTOOL=$ac_ct_DLLTOOL
6190 fi
6191 else
6192 DLLTOOL="$ac_cv_prog_DLLTOOL"
6193 fi
6194
6195 test -z "$DLLTOOL" && DLLTOOL=dlltool
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6207 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6208 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6209 $as_echo_n "(cached) " >&6
6210 else
6211 lt_cv_sharedlib_from_linklib_cmd='unknown'
6212
6213 case $host_os in
6214 cygwin* | mingw* | pw32* | cegcc*)
6215 # two different shell functions defined in ltmain.sh
6216 # decide which to use based on capabilities of $DLLTOOL
6217 case `$DLLTOOL --help 2>&1` in
6218 *--identify-strict*)
6219 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6220 ;;
6221 *)
6222 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6223 ;;
6224 esac
6225 ;;
6226 *)
6227 # fallback: assume linklib IS sharedlib
6228 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6229 ;;
6230 esac
6231
6232 fi
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6234 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6235 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6236 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6237
6238
6239
6240
6241
6242
6243
6244 if test -n "$ac_tool_prefix"; then
6245 for ac_prog in ar
6246 do
6247 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250 $as_echo_n "checking for $ac_word... " >&6; }
6251 if ${ac_cv_prog_AR+:} false; then :
6252 $as_echo_n "(cached) " >&6
6253 else
6254 if test -n "$AR"; then
6255 ac_cv_prog_AR="$AR" # Let the user override the test.
6256 else
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 for as_dir in $PATH
6259 do
6260 IFS=$as_save_IFS
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6264 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 break 2
6267 fi
6268 done
6269 done
6270 IFS=$as_save_IFS
6271
6272 fi
6273 fi
6274 AR=$ac_cv_prog_AR
6275 if test -n "$AR"; then
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6277 $as_echo "$AR" >&6; }
6278 else
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280 $as_echo "no" >&6; }
6281 fi
6282
6283
6284 test -n "$AR" && break
6285 done
6286 fi
6287 if test -z "$AR"; then
6288 ac_ct_AR=$AR
6289 for ac_prog in ar
6290 do
6291 # Extract the first word of "$ac_prog", so it can be a program name with args.
6292 set dummy $ac_prog; ac_word=$2
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 if test -n "$ac_ct_AR"; then
6299 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6300 else
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304 IFS=$as_save_IFS
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6308 ac_cv_prog_ac_ct_AR="$ac_prog"
6309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 break 2
6311 fi
6312 done
6313 done
6314 IFS=$as_save_IFS
6315
6316 fi
6317 fi
6318 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6319 if test -n "$ac_ct_AR"; then
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6321 $as_echo "$ac_ct_AR" >&6; }
6322 else
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324 $as_echo "no" >&6; }
6325 fi
6326
6327
6328 test -n "$ac_ct_AR" && break
6329 done
6330
6331 if test "x$ac_ct_AR" = x; then
6332 AR="false"
6333 else
6334 case $cross_compiling:$ac_tool_warned in
6335 yes:)
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6338 ac_tool_warned=yes ;;
6339 esac
6340 AR=$ac_ct_AR
6341 fi
6342 fi
6343
6344 : ${AR=ar}
6345 : ${AR_FLAGS=cru}
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6358 $as_echo_n "checking for archiver @FILE support... " >&6; }
6359 if ${lt_cv_ar_at_file+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 lt_cv_ar_at_file=no
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6365
6366 int
6367 main ()
6368 {
6369
6370 ;
6371 return 0;
6372 }
6373 _ACEOF
6374 if ac_fn_c_try_compile "$LINENO"; then :
6375 echo conftest.$ac_objext > conftest.lst
6376 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6378 (eval $lt_ar_try) 2>&5
6379 ac_status=$?
6380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6381 test $ac_status = 0; }
6382 if test "$ac_status" -eq 0; then
6383 # Ensure the archiver fails upon bogus file names.
6384 rm -f conftest.$ac_objext libconftest.a
6385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6386 (eval $lt_ar_try) 2>&5
6387 ac_status=$?
6388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6389 test $ac_status = 0; }
6390 if test "$ac_status" -ne 0; then
6391 lt_cv_ar_at_file=@
6392 fi
6393 fi
6394 rm -f conftest.* libconftest.a
6395
6396 fi
6397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6398
6399 fi
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6401 $as_echo "$lt_cv_ar_at_file" >&6; }
6402
6403 if test "x$lt_cv_ar_at_file" = xno; then
6404 archiver_list_spec=
6405 else
6406 archiver_list_spec=$lt_cv_ar_at_file
6407 fi
6408
6409
6410
6411
6412
6413
6414
6415 if test -n "$ac_tool_prefix"; then
6416 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6417 set dummy ${ac_tool_prefix}strip; ac_word=$2
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419 $as_echo_n "checking for $ac_word... " >&6; }
6420 if ${ac_cv_prog_STRIP+:} false; then :
6421 $as_echo_n "(cached) " >&6
6422 else
6423 if test -n "$STRIP"; then
6424 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6425 else
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 for as_dir in $PATH
6428 do
6429 IFS=$as_save_IFS
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6433 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 break 2
6436 fi
6437 done
6438 done
6439 IFS=$as_save_IFS
6440
6441 fi
6442 fi
6443 STRIP=$ac_cv_prog_STRIP
6444 if test -n "$STRIP"; then
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6446 $as_echo "$STRIP" >&6; }
6447 else
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449 $as_echo "no" >&6; }
6450 fi
6451
6452
6453 fi
6454 if test -z "$ac_cv_prog_STRIP"; then
6455 ac_ct_STRIP=$STRIP
6456 # Extract the first word of "strip", so it can be a program name with args.
6457 set dummy strip; ac_word=$2
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459 $as_echo_n "checking for $ac_word... " >&6; }
6460 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6461 $as_echo_n "(cached) " >&6
6462 else
6463 if test -n "$ac_ct_STRIP"; then
6464 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6468 do
6469 IFS=$as_save_IFS
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6473 ac_cv_prog_ac_ct_STRIP="strip"
6474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 break 2
6476 fi
6477 done
6478 done
6479 IFS=$as_save_IFS
6480
6481 fi
6482 fi
6483 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6484 if test -n "$ac_ct_STRIP"; then
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6486 $as_echo "$ac_ct_STRIP" >&6; }
6487 else
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489 $as_echo "no" >&6; }
6490 fi
6491
6492 if test "x$ac_ct_STRIP" = x; then
6493 STRIP=":"
6494 else
6495 case $cross_compiling:$ac_tool_warned in
6496 yes:)
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6499 ac_tool_warned=yes ;;
6500 esac
6501 STRIP=$ac_ct_STRIP
6502 fi
6503 else
6504 STRIP="$ac_cv_prog_STRIP"
6505 fi
6506
6507 test -z "$STRIP" && STRIP=:
6508
6509
6510
6511
6512
6513
6514 if test -n "$ac_tool_prefix"; then
6515 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6516 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518 $as_echo_n "checking for $ac_word... " >&6; }
6519 if ${ac_cv_prog_RANLIB+:} false; then :
6520 $as_echo_n "(cached) " >&6
6521 else
6522 if test -n "$RANLIB"; then
6523 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6524 else
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6527 do
6528 IFS=$as_save_IFS
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6532 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 break 2
6535 fi
6536 done
6537 done
6538 IFS=$as_save_IFS
6539
6540 fi
6541 fi
6542 RANLIB=$ac_cv_prog_RANLIB
6543 if test -n "$RANLIB"; then
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6545 $as_echo "$RANLIB" >&6; }
6546 else
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6549 fi
6550
6551
6552 fi
6553 if test -z "$ac_cv_prog_RANLIB"; then
6554 ac_ct_RANLIB=$RANLIB
6555 # Extract the first word of "ranlib", so it can be a program name with args.
6556 set dummy ranlib; ac_word=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 if test -n "$ac_ct_RANLIB"; then
6563 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6564 else
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568 IFS=$as_save_IFS
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6572 ac_cv_prog_ac_ct_RANLIB="ranlib"
6573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 break 2
6575 fi
6576 done
6577 done
6578 IFS=$as_save_IFS
6579
6580 fi
6581 fi
6582 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6583 if test -n "$ac_ct_RANLIB"; then
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6585 $as_echo "$ac_ct_RANLIB" >&6; }
6586 else
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 $as_echo "no" >&6; }
6589 fi
6590
6591 if test "x$ac_ct_RANLIB" = x; then
6592 RANLIB=":"
6593 else
6594 case $cross_compiling:$ac_tool_warned in
6595 yes:)
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6598 ac_tool_warned=yes ;;
6599 esac
6600 RANLIB=$ac_ct_RANLIB
6601 fi
6602 else
6603 RANLIB="$ac_cv_prog_RANLIB"
6604 fi
6605
6606 test -z "$RANLIB" && RANLIB=:
6607
6608
6609
6610
6611
6612
6613 # Determine commands to create old-style static archives.
6614 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6615 old_postinstall_cmds='chmod 644 $oldlib'
6616 old_postuninstall_cmds=
6617
6618 if test -n "$RANLIB"; then
6619 case $host_os in
6620 openbsd*)
6621 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6622 ;;
6623 *)
6624 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6625 ;;
6626 esac
6627 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6628 fi
6629
6630 case $host_os in
6631 darwin*)
6632 lock_old_archive_extraction=yes ;;
6633 *)
6634 lock_old_archive_extraction=no ;;
6635 esac
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675 # If no C compiler was specified, use CC.
6676 LTCC=${LTCC-"$CC"}
6677
6678 # If no C compiler flags were specified, use CFLAGS.
6679 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6680
6681 # Allow CC to be a program name with arguments.
6682 compiler=$CC
6683
6684
6685 # Check for command to grab the raw symbol name followed by C symbol from nm.
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6687 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6688 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6689 $as_echo_n "(cached) " >&6
6690 else
6691
6692 # These are sane defaults that work on at least a few old systems.
6693 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6694
6695 # Character class describing NM global symbol codes.
6696 symcode='[BCDEGRST]'
6697
6698 # Regexp to match symbols that can be accessed directly from C.
6699 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6700
6701 # Define system-specific variables.
6702 case $host_os in
6703 aix*)
6704 symcode='[BCDT]'
6705 ;;
6706 cygwin* | mingw* | pw32* | cegcc*)
6707 symcode='[ABCDGISTW]'
6708 ;;
6709 hpux*)
6710 if test "$host_cpu" = ia64; then
6711 symcode='[ABCDEGRST]'
6712 fi
6713 ;;
6714 irix* | nonstopux*)
6715 symcode='[BCDEGRST]'
6716 ;;
6717 osf*)
6718 symcode='[BCDEGQRST]'
6719 ;;
6720 solaris*)
6721 symcode='[BDRT]'
6722 ;;
6723 sco3.2v5*)
6724 symcode='[DT]'
6725 ;;
6726 sysv4.2uw2*)
6727 symcode='[DT]'
6728 ;;
6729 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6730 symcode='[ABDT]'
6731 ;;
6732 sysv4)
6733 symcode='[DFNSTU]'
6734 ;;
6735 esac
6736
6737 # If we're using GNU nm, then use its standard symbol codes.
6738 case `$NM -V 2>&1` in
6739 *GNU* | *'with BFD'*)
6740 symcode='[ABCDGIRSTW]' ;;
6741 esac
6742
6743 # Transform an extracted symbol line into a proper C declaration.
6744 # Some systems (esp. on ia64) link data and code symbols differently,
6745 # so use this general approach.
6746 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6747
6748 # Transform an extracted symbol line into symbol name and symbol address
6749 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6750 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6751
6752 # Handle CRLF in mingw tool chain
6753 opt_cr=
6754 case $build_os in
6755 mingw*)
6756 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6757 ;;
6758 esac
6759
6760 # Try without a prefix underscore, then with it.
6761 for ac_symprfx in "" "_"; do
6762
6763 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6764 symxfrm="\\1 $ac_symprfx\\2 \\2"
6765
6766 # Write the raw and C identifiers.
6767 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6768 # Fake it for dumpbin and say T for any non-static function
6769 # and D for any global variable.
6770 # Also find C++ and __fastcall symbols from MSVC++,
6771 # which start with @ or ?.
6772 lt_cv_sys_global_symbol_pipe="$AWK '"\
6773 " {last_section=section; section=\$ 3};"\
6774 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6775 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6776 " \$ 0!~/External *\|/{next};"\
6777 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6778 " {if(hide[section]) next};"\
6779 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6780 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6781 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6782 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6783 " ' prfx=^$ac_symprfx"
6784 else
6785 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6786 fi
6787 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6788
6789 # Check to see that the pipe works correctly.
6790 pipe_works=no
6791
6792 rm -f conftest*
6793 cat > conftest.$ac_ext <<_LT_EOF
6794 #ifdef __cplusplus
6795 extern "C" {
6796 #endif
6797 char nm_test_var;
6798 void nm_test_func(void);
6799 void nm_test_func(void){}
6800 #ifdef __cplusplus
6801 }
6802 #endif
6803 int main(){nm_test_var='a';nm_test_func();return(0);}
6804 _LT_EOF
6805
6806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6807 (eval $ac_compile) 2>&5
6808 ac_status=$?
6809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6810 test $ac_status = 0; }; then
6811 # Now try to grab the symbols.
6812 nlist=conftest.nm
6813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6814 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6815 ac_status=$?
6816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6817 test $ac_status = 0; } && test -s "$nlist"; then
6818 # Try sorting and uniquifying the output.
6819 if sort "$nlist" | uniq > "$nlist"T; then
6820 mv -f "$nlist"T "$nlist"
6821 else
6822 rm -f "$nlist"T
6823 fi
6824
6825 # Make sure that we snagged all the symbols we need.
6826 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6827 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6828 cat <<_LT_EOF > conftest.$ac_ext
6829 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6830 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6831 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6832 relocations are performed -- see ld's documentation on pseudo-relocs. */
6833 # define LT_DLSYM_CONST
6834 #elif defined(__osf__)
6835 /* This system does not cope well with relocations in const data. */
6836 # define LT_DLSYM_CONST
6837 #else
6838 # define LT_DLSYM_CONST const
6839 #endif
6840
6841 #ifdef __cplusplus
6842 extern "C" {
6843 #endif
6844
6845 _LT_EOF
6846 # Now generate the symbol file.
6847 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6848
6849 cat <<_LT_EOF >> conftest.$ac_ext
6850
6851 /* The mapping between symbol names and symbols. */
6852 LT_DLSYM_CONST struct {
6853 const char *name;
6854 void *address;
6855 }
6856 lt__PROGRAM__LTX_preloaded_symbols[] =
6857 {
6858 { "@PROGRAM@", (void *) 0 },
6859 _LT_EOF
6860 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6861 cat <<\_LT_EOF >> conftest.$ac_ext
6862 {0, (void *) 0}
6863 };
6864
6865 /* This works around a problem in FreeBSD linker */
6866 #ifdef FREEBSD_WORKAROUND
6867 static const void *lt_preloaded_setup() {
6868 return lt__PROGRAM__LTX_preloaded_symbols;
6869 }
6870 #endif
6871
6872 #ifdef __cplusplus
6873 }
6874 #endif
6875 _LT_EOF
6876 # Now try linking the two files.
6877 mv conftest.$ac_objext conftstm.$ac_objext
6878 lt_globsym_save_LIBS=$LIBS
6879 lt_globsym_save_CFLAGS=$CFLAGS
6880 LIBS="conftstm.$ac_objext"
6881 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6883 (eval $ac_link) 2>&5
6884 ac_status=$?
6885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6886 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6887 pipe_works=yes
6888 fi
6889 LIBS=$lt_globsym_save_LIBS
6890 CFLAGS=$lt_globsym_save_CFLAGS
6891 else
6892 echo "cannot find nm_test_func in $nlist" >&5
6893 fi
6894 else
6895 echo "cannot find nm_test_var in $nlist" >&5
6896 fi
6897 else
6898 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6899 fi
6900 else
6901 echo "$progname: failed program was:" >&5
6902 cat conftest.$ac_ext >&5
6903 fi
6904 rm -rf conftest* conftst*
6905
6906 # Do not use the global_symbol_pipe unless it works.
6907 if test "$pipe_works" = yes; then
6908 break
6909 else
6910 lt_cv_sys_global_symbol_pipe=
6911 fi
6912 done
6913
6914 fi
6915
6916 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6917 lt_cv_sys_global_symbol_to_cdecl=
6918 fi
6919 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6921 $as_echo "failed" >&6; }
6922 else
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6924 $as_echo "ok" >&6; }
6925 fi
6926
6927 # Response file support.
6928 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6929 nm_file_list_spec='@'
6930 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6931 nm_file_list_spec='@'
6932 fi
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6961 $as_echo_n "checking for sysroot... " >&6; }
6962
6963 # Check whether --with-sysroot was given.
6964 if test "${with_sysroot+set}" = set; then :
6965 withval=$with_sysroot;
6966 else
6967 with_sysroot=no
6968 fi
6969
6970
6971 lt_sysroot=
6972 case ${with_sysroot} in #(
6973 yes)
6974 if test "$GCC" = yes; then
6975 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6976 fi
6977 ;; #(
6978 /*)
6979 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6980 ;; #(
6981 no|'')
6982 ;; #(
6983 *)
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6985 $as_echo "${with_sysroot}" >&6; }
6986 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6987 ;;
6988 esac
6989
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6991 $as_echo "${lt_sysroot:-no}" >&6; }
6992
6993
6994
6995
6996
6997 # Check whether --enable-libtool-lock was given.
6998 if test "${enable_libtool_lock+set}" = set; then :
6999 enableval=$enable_libtool_lock;
7000 fi
7001
7002 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7003
7004 # Some flags need to be propagated to the compiler or linker for good
7005 # libtool support.
7006 case $host in
7007 ia64-*-hpux*)
7008 # Find out which ABI we are using.
7009 echo 'int i;' > conftest.$ac_ext
7010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7011 (eval $ac_compile) 2>&5
7012 ac_status=$?
7013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7014 test $ac_status = 0; }; then
7015 case `/usr/bin/file conftest.$ac_objext` in
7016 *ELF-32*)
7017 HPUX_IA64_MODE="32"
7018 ;;
7019 *ELF-64*)
7020 HPUX_IA64_MODE="64"
7021 ;;
7022 esac
7023 fi
7024 rm -rf conftest*
7025 ;;
7026 *-*-irix6*)
7027 # Find out which ABI we are using.
7028 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7030 (eval $ac_compile) 2>&5
7031 ac_status=$?
7032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7033 test $ac_status = 0; }; then
7034 if test "$lt_cv_prog_gnu_ld" = yes; then
7035 case `/usr/bin/file conftest.$ac_objext` in
7036 *32-bit*)
7037 LD="${LD-ld} -melf32bsmip"
7038 ;;
7039 *N32*)
7040 LD="${LD-ld} -melf32bmipn32"
7041 ;;
7042 *64-bit*)
7043 LD="${LD-ld} -melf64bmip"
7044 ;;
7045 esac
7046 else
7047 case `/usr/bin/file conftest.$ac_objext` in
7048 *32-bit*)
7049 LD="${LD-ld} -32"
7050 ;;
7051 *N32*)
7052 LD="${LD-ld} -n32"
7053 ;;
7054 *64-bit*)
7055 LD="${LD-ld} -64"
7056 ;;
7057 esac
7058 fi
7059 fi
7060 rm -rf conftest*
7061 ;;
7062
7063 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7064 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7065 # Find out which ABI we are using.
7066 echo 'int i;' > conftest.$ac_ext
7067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7068 (eval $ac_compile) 2>&5
7069 ac_status=$?
7070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7071 test $ac_status = 0; }; then
7072 case `/usr/bin/file conftest.o` in
7073 *32-bit*)
7074 case $host in
7075 x86_64-*kfreebsd*-gnu)
7076 LD="${LD-ld} -m elf_i386_fbsd"
7077 ;;
7078 x86_64-*linux*)
7079 LD="${LD-ld} -m elf_i386"
7080 ;;
7081 ppc64-*linux*|powerpc64-*linux*)
7082 LD="${LD-ld} -m elf32ppclinux"
7083 ;;
7084 s390x-*linux*)
7085 LD="${LD-ld} -m elf_s390"
7086 ;;
7087 sparc64-*linux*)
7088 LD="${LD-ld} -m elf32_sparc"
7089 ;;
7090 esac
7091 ;;
7092 *64-bit*)
7093 case $host in
7094 x86_64-*kfreebsd*-gnu)
7095 LD="${LD-ld} -m elf_x86_64_fbsd"
7096 ;;
7097 x86_64-*linux*)
7098 LD="${LD-ld} -m elf_x86_64"
7099 ;;
7100 ppc*-*linux*|powerpc*-*linux*)
7101 LD="${LD-ld} -m elf64ppc"
7102 ;;
7103 s390*-*linux*|s390*-*tpf*)
7104 LD="${LD-ld} -m elf64_s390"
7105 ;;
7106 sparc*-*linux*)
7107 LD="${LD-ld} -m elf64_sparc"
7108 ;;
7109 esac
7110 ;;
7111 esac
7112 fi
7113 rm -rf conftest*
7114 ;;
7115
7116 *-*-sco3.2v5*)
7117 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7118 SAVE_CFLAGS="$CFLAGS"
7119 CFLAGS="$CFLAGS -belf"
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7121 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7122 if ${lt_cv_cc_needs_belf+:} false; then :
7123 $as_echo_n "(cached) " >&6
7124 else
7125 ac_ext=c
7126 ac_cpp='$CPP $CPPFLAGS'
7127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7130
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h. */
7133
7134 int
7135 main ()
7136 {
7137
7138 ;
7139 return 0;
7140 }
7141 _ACEOF
7142 if ac_fn_c_try_link "$LINENO"; then :
7143 lt_cv_cc_needs_belf=yes
7144 else
7145 lt_cv_cc_needs_belf=no
7146 fi
7147 rm -f core conftest.err conftest.$ac_objext \
7148 conftest$ac_exeext conftest.$ac_ext
7149 ac_ext=c
7150 ac_cpp='$CPP $CPPFLAGS'
7151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7154
7155 fi
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7157 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7158 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7159 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7160 CFLAGS="$SAVE_CFLAGS"
7161 fi
7162 ;;
7163 *-*solaris*)
7164 # Find out which ABI we are using.
7165 echo 'int i;' > conftest.$ac_ext
7166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7167 (eval $ac_compile) 2>&5
7168 ac_status=$?
7169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7170 test $ac_status = 0; }; then
7171 case `/usr/bin/file conftest.o` in
7172 *64-bit*)
7173 case $lt_cv_prog_gnu_ld in
7174 yes*)
7175 case $host in
7176 i?86-*-solaris*)
7177 LD="${LD-ld} -m elf_x86_64"
7178 ;;
7179 sparc*-*-solaris*)
7180 LD="${LD-ld} -m elf64_sparc"
7181 ;;
7182 esac
7183 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7184 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7185 LD="${LD-ld}_sol2"
7186 fi
7187 ;;
7188 *)
7189 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7190 LD="${LD-ld} -64"
7191 fi
7192 ;;
7193 esac
7194 ;;
7195 esac
7196 fi
7197 rm -rf conftest*
7198 ;;
7199 esac
7200
7201 need_locks="$enable_libtool_lock"
7202
7203 if test -n "$ac_tool_prefix"; then
7204 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7205 set dummy ${ac_tool_prefix}mt; ac_word=$2
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207 $as_echo_n "checking for $ac_word... " >&6; }
7208 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7209 $as_echo_n "(cached) " >&6
7210 else
7211 if test -n "$MANIFEST_TOOL"; then
7212 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7213 else
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 break 2
7224 fi
7225 done
7226 done
7227 IFS=$as_save_IFS
7228
7229 fi
7230 fi
7231 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7232 if test -n "$MANIFEST_TOOL"; then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7234 $as_echo "$MANIFEST_TOOL" >&6; }
7235 else
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7238 fi
7239
7240
7241 fi
7242 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7243 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7244 # Extract the first word of "mt", so it can be a program name with args.
7245 set dummy mt; ac_word=$2
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7247 $as_echo_n "checking for $ac_word... " >&6; }
7248 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7249 $as_echo_n "(cached) " >&6
7250 else
7251 if test -n "$ac_ct_MANIFEST_TOOL"; then
7252 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7253 else
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 for as_dir in $PATH
7256 do
7257 IFS=$as_save_IFS
7258 test -z "$as_dir" && as_dir=.
7259 for ac_exec_ext in '' $ac_executable_extensions; do
7260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7261 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 break 2
7264 fi
7265 done
7266 done
7267 IFS=$as_save_IFS
7268
7269 fi
7270 fi
7271 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7272 if test -n "$ac_ct_MANIFEST_TOOL"; then
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7274 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7275 else
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277 $as_echo "no" >&6; }
7278 fi
7279
7280 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7281 MANIFEST_TOOL=":"
7282 else
7283 case $cross_compiling:$ac_tool_warned in
7284 yes:)
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7287 ac_tool_warned=yes ;;
7288 esac
7289 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7290 fi
7291 else
7292 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7293 fi
7294
7295 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7297 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7298 if ${lt_cv_path_mainfest_tool+:} false; then :
7299 $as_echo_n "(cached) " >&6
7300 else
7301 lt_cv_path_mainfest_tool=no
7302 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7303 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7304 cat conftest.err >&5
7305 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7306 lt_cv_path_mainfest_tool=yes
7307 fi
7308 rm -f conftest*
7309 fi
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7311 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7312 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7313 MANIFEST_TOOL=:
7314 fi
7315
7316
7317
7318
7319
7320
7321 case $host_os in
7322 rhapsody* | darwin*)
7323 if test -n "$ac_tool_prefix"; then
7324 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7325 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7329 $as_echo_n "(cached) " >&6
7330 else
7331 if test -n "$DSYMUTIL"; then
7332 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7333 else
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7336 do
7337 IFS=$as_save_IFS
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7341 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 break 2
7344 fi
7345 done
7346 done
7347 IFS=$as_save_IFS
7348
7349 fi
7350 fi
7351 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7352 if test -n "$DSYMUTIL"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7354 $as_echo "$DSYMUTIL" >&6; }
7355 else
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7358 fi
7359
7360
7361 fi
7362 if test -z "$ac_cv_prog_DSYMUTIL"; then
7363 ac_ct_DSYMUTIL=$DSYMUTIL
7364 # Extract the first word of "dsymutil", so it can be a program name with args.
7365 set dummy dsymutil; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 if test -n "$ac_ct_DSYMUTIL"; then
7372 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7376 do
7377 IFS=$as_save_IFS
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 break 2
7384 fi
7385 done
7386 done
7387 IFS=$as_save_IFS
7388
7389 fi
7390 fi
7391 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7392 if test -n "$ac_ct_DSYMUTIL"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7394 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7395 else
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7398 fi
7399
7400 if test "x$ac_ct_DSYMUTIL" = x; then
7401 DSYMUTIL=":"
7402 else
7403 case $cross_compiling:$ac_tool_warned in
7404 yes:)
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7407 ac_tool_warned=yes ;;
7408 esac
7409 DSYMUTIL=$ac_ct_DSYMUTIL
7410 fi
7411 else
7412 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7413 fi
7414
7415 if test -n "$ac_tool_prefix"; then
7416 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7417 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419 $as_echo_n "checking for $ac_word... " >&6; }
7420 if ${ac_cv_prog_NMEDIT+:} false; then :
7421 $as_echo_n "(cached) " >&6
7422 else
7423 if test -n "$NMEDIT"; then
7424 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7425 else
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 for as_dir in $PATH
7428 do
7429 IFS=$as_save_IFS
7430 test -z "$as_dir" && as_dir=.
7431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7433 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 break 2
7436 fi
7437 done
7438 done
7439 IFS=$as_save_IFS
7440
7441 fi
7442 fi
7443 NMEDIT=$ac_cv_prog_NMEDIT
7444 if test -n "$NMEDIT"; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7446 $as_echo "$NMEDIT" >&6; }
7447 else
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7450 fi
7451
7452
7453 fi
7454 if test -z "$ac_cv_prog_NMEDIT"; then
7455 ac_ct_NMEDIT=$NMEDIT
7456 # Extract the first word of "nmedit", so it can be a program name with args.
7457 set dummy nmedit; ac_word=$2
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459 $as_echo_n "checking for $ac_word... " >&6; }
7460 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7461 $as_echo_n "(cached) " >&6
7462 else
7463 if test -n "$ac_ct_NMEDIT"; then
7464 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7465 else
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7468 do
7469 IFS=$as_save_IFS
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7473 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 break 2
7476 fi
7477 done
7478 done
7479 IFS=$as_save_IFS
7480
7481 fi
7482 fi
7483 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7484 if test -n "$ac_ct_NMEDIT"; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7486 $as_echo "$ac_ct_NMEDIT" >&6; }
7487 else
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7490 fi
7491
7492 if test "x$ac_ct_NMEDIT" = x; then
7493 NMEDIT=":"
7494 else
7495 case $cross_compiling:$ac_tool_warned in
7496 yes:)
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7499 ac_tool_warned=yes ;;
7500 esac
7501 NMEDIT=$ac_ct_NMEDIT
7502 fi
7503 else
7504 NMEDIT="$ac_cv_prog_NMEDIT"
7505 fi
7506
7507 if test -n "$ac_tool_prefix"; then
7508 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7509 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7511 $as_echo_n "checking for $ac_word... " >&6; }
7512 if ${ac_cv_prog_LIPO+:} false; then :
7513 $as_echo_n "(cached) " >&6
7514 else
7515 if test -n "$LIPO"; then
7516 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7517 else
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 for as_dir in $PATH
7520 do
7521 IFS=$as_save_IFS
7522 test -z "$as_dir" && as_dir=.
7523 for ac_exec_ext in '' $ac_executable_extensions; do
7524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7525 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7527 break 2
7528 fi
7529 done
7530 done
7531 IFS=$as_save_IFS
7532
7533 fi
7534 fi
7535 LIPO=$ac_cv_prog_LIPO
7536 if test -n "$LIPO"; then
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7538 $as_echo "$LIPO" >&6; }
7539 else
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541 $as_echo "no" >&6; }
7542 fi
7543
7544
7545 fi
7546 if test -z "$ac_cv_prog_LIPO"; then
7547 ac_ct_LIPO=$LIPO
7548 # Extract the first word of "lipo", so it can be a program name with args.
7549 set dummy lipo; ac_word=$2
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551 $as_echo_n "checking for $ac_word... " >&6; }
7552 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7553 $as_echo_n "(cached) " >&6
7554 else
7555 if test -n "$ac_ct_LIPO"; then
7556 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7557 else
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 for as_dir in $PATH
7560 do
7561 IFS=$as_save_IFS
7562 test -z "$as_dir" && as_dir=.
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7565 ac_cv_prog_ac_ct_LIPO="lipo"
7566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7567 break 2
7568 fi
7569 done
7570 done
7571 IFS=$as_save_IFS
7572
7573 fi
7574 fi
7575 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7576 if test -n "$ac_ct_LIPO"; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7578 $as_echo "$ac_ct_LIPO" >&6; }
7579 else
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 $as_echo "no" >&6; }
7582 fi
7583
7584 if test "x$ac_ct_LIPO" = x; then
7585 LIPO=":"
7586 else
7587 case $cross_compiling:$ac_tool_warned in
7588 yes:)
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7591 ac_tool_warned=yes ;;
7592 esac
7593 LIPO=$ac_ct_LIPO
7594 fi
7595 else
7596 LIPO="$ac_cv_prog_LIPO"
7597 fi
7598
7599 if test -n "$ac_tool_prefix"; then
7600 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7601 set dummy ${ac_tool_prefix}otool; ac_word=$2
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7603 $as_echo_n "checking for $ac_word... " >&6; }
7604 if ${ac_cv_prog_OTOOL+:} false; then :
7605 $as_echo_n "(cached) " >&6
7606 else
7607 if test -n "$OTOOL"; then
7608 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7609 else
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 for as_dir in $PATH
7612 do
7613 IFS=$as_save_IFS
7614 test -z "$as_dir" && as_dir=.
7615 for ac_exec_ext in '' $ac_executable_extensions; do
7616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7617 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 break 2
7620 fi
7621 done
7622 done
7623 IFS=$as_save_IFS
7624
7625 fi
7626 fi
7627 OTOOL=$ac_cv_prog_OTOOL
7628 if test -n "$OTOOL"; then
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7630 $as_echo "$OTOOL" >&6; }
7631 else
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7633 $as_echo "no" >&6; }
7634 fi
7635
7636
7637 fi
7638 if test -z "$ac_cv_prog_OTOOL"; then
7639 ac_ct_OTOOL=$OTOOL
7640 # Extract the first word of "otool", so it can be a program name with args.
7641 set dummy otool; ac_word=$2
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643 $as_echo_n "checking for $ac_word... " >&6; }
7644 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7645 $as_echo_n "(cached) " >&6
7646 else
7647 if test -n "$ac_ct_OTOOL"; then
7648 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7649 else
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 for as_dir in $PATH
7652 do
7653 IFS=$as_save_IFS
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657 ac_cv_prog_ac_ct_OTOOL="otool"
7658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7659 break 2
7660 fi
7661 done
7662 done
7663 IFS=$as_save_IFS
7664
7665 fi
7666 fi
7667 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7668 if test -n "$ac_ct_OTOOL"; then
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7670 $as_echo "$ac_ct_OTOOL" >&6; }
7671 else
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673 $as_echo "no" >&6; }
7674 fi
7675
7676 if test "x$ac_ct_OTOOL" = x; then
7677 OTOOL=":"
7678 else
7679 case $cross_compiling:$ac_tool_warned in
7680 yes:)
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7683 ac_tool_warned=yes ;;
7684 esac
7685 OTOOL=$ac_ct_OTOOL
7686 fi
7687 else
7688 OTOOL="$ac_cv_prog_OTOOL"
7689 fi
7690
7691 if test -n "$ac_tool_prefix"; then
7692 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7693 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695 $as_echo_n "checking for $ac_word... " >&6; }
7696 if ${ac_cv_prog_OTOOL64+:} false; then :
7697 $as_echo_n "(cached) " >&6
7698 else
7699 if test -n "$OTOOL64"; then
7700 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7701 else
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7704 do
7705 IFS=$as_save_IFS
7706 test -z "$as_dir" && as_dir=.
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7709 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7711 break 2
7712 fi
7713 done
7714 done
7715 IFS=$as_save_IFS
7716
7717 fi
7718 fi
7719 OTOOL64=$ac_cv_prog_OTOOL64
7720 if test -n "$OTOOL64"; then
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7722 $as_echo "$OTOOL64" >&6; }
7723 else
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 $as_echo "no" >&6; }
7726 fi
7727
7728
7729 fi
7730 if test -z "$ac_cv_prog_OTOOL64"; then
7731 ac_ct_OTOOL64=$OTOOL64
7732 # Extract the first word of "otool64", so it can be a program name with args.
7733 set dummy otool64; ac_word=$2
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735 $as_echo_n "checking for $ac_word... " >&6; }
7736 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7737 $as_echo_n "(cached) " >&6
7738 else
7739 if test -n "$ac_ct_OTOOL64"; then
7740 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7741 else
7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 for as_dir in $PATH
7744 do
7745 IFS=$as_save_IFS
7746 test -z "$as_dir" && as_dir=.
7747 for ac_exec_ext in '' $ac_executable_extensions; do
7748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7749 ac_cv_prog_ac_ct_OTOOL64="otool64"
7750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7751 break 2
7752 fi
7753 done
7754 done
7755 IFS=$as_save_IFS
7756
7757 fi
7758 fi
7759 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7760 if test -n "$ac_ct_OTOOL64"; then
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7762 $as_echo "$ac_ct_OTOOL64" >&6; }
7763 else
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765 $as_echo "no" >&6; }
7766 fi
7767
7768 if test "x$ac_ct_OTOOL64" = x; then
7769 OTOOL64=":"
7770 else
7771 case $cross_compiling:$ac_tool_warned in
7772 yes:)
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7775 ac_tool_warned=yes ;;
7776 esac
7777 OTOOL64=$ac_ct_OTOOL64
7778 fi
7779 else
7780 OTOOL64="$ac_cv_prog_OTOOL64"
7781 fi
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7810 $as_echo_n "checking for -single_module linker flag... " >&6; }
7811 if ${lt_cv_apple_cc_single_mod+:} false; then :
7812 $as_echo_n "(cached) " >&6
7813 else
7814 lt_cv_apple_cc_single_mod=no
7815 if test -z "${LT_MULTI_MODULE}"; then
7816 # By default we will add the -single_module flag. You can override
7817 # by either setting the environment variable LT_MULTI_MODULE
7818 # non-empty at configure time, or by adding -multi_module to the
7819 # link flags.
7820 rm -rf libconftest.dylib*
7821 echo "int foo(void){return 1;}" > conftest.c
7822 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7823 -dynamiclib -Wl,-single_module conftest.c" >&5
7824 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7825 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7826 _lt_result=$?
7827 # If there is a non-empty error log, and "single_module"
7828 # appears in it, assume the flag caused a linker warning
7829 if test -s conftest.err && $GREP single_module conftest.err; then
7830 cat conftest.err >&5
7831 # Otherwise, if the output was created with a 0 exit code from
7832 # the compiler, it worked.
7833 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7834 lt_cv_apple_cc_single_mod=yes
7835 else
7836 cat conftest.err >&5
7837 fi
7838 rm -rf libconftest.dylib*
7839 rm -f conftest.*
7840 fi
7841 fi
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7843 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7844
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7846 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7847 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7848 $as_echo_n "(cached) " >&6
7849 else
7850 lt_cv_ld_exported_symbols_list=no
7851 save_LDFLAGS=$LDFLAGS
7852 echo "_main" > conftest.sym
7853 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h. */
7856
7857 int
7858 main ()
7859 {
7860
7861 ;
7862 return 0;
7863 }
7864 _ACEOF
7865 if ac_fn_c_try_link "$LINENO"; then :
7866 lt_cv_ld_exported_symbols_list=yes
7867 else
7868 lt_cv_ld_exported_symbols_list=no
7869 fi
7870 rm -f core conftest.err conftest.$ac_objext \
7871 conftest$ac_exeext conftest.$ac_ext
7872 LDFLAGS="$save_LDFLAGS"
7873
7874 fi
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7876 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7877
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7879 $as_echo_n "checking for -force_load linker flag... " >&6; }
7880 if ${lt_cv_ld_force_load+:} false; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7883 lt_cv_ld_force_load=no
7884 cat > conftest.c << _LT_EOF
7885 int forced_loaded() { return 2;}
7886 _LT_EOF
7887 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7888 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7889 echo "$AR cru libconftest.a conftest.o" >&5
7890 $AR cru libconftest.a conftest.o 2>&5
7891 echo "$RANLIB libconftest.a" >&5
7892 $RANLIB libconftest.a 2>&5
7893 cat > conftest.c << _LT_EOF
7894 int main() { return 0;}
7895 _LT_EOF
7896 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7897 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7898 _lt_result=$?
7899 if test -s conftest.err && $GREP force_load conftest.err; then
7900 cat conftest.err >&5
7901 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7902 lt_cv_ld_force_load=yes
7903 else
7904 cat conftest.err >&5
7905 fi
7906 rm -f conftest.err libconftest.a conftest conftest.c
7907 rm -rf conftest.dSYM
7908
7909 fi
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7911 $as_echo "$lt_cv_ld_force_load" >&6; }
7912 case $host_os in
7913 rhapsody* | darwin1.[012])
7914 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7915 darwin1.*)
7916 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7917 darwin*) # darwin 5.x on
7918 # if running on 10.5 or later, the deployment target defaults
7919 # to the OS version, if on x86, and 10.4, the deployment
7920 # target defaults to 10.4. Don't you love it?
7921 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7922 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7923 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7924 10.[012]*)
7925 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7926 10.*)
7927 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7928 esac
7929 ;;
7930 esac
7931 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7932 _lt_dar_single_mod='$single_module'
7933 fi
7934 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7935 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7936 else
7937 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7938 fi
7939 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7940 _lt_dsymutil='~$DSYMUTIL $lib || :'
7941 else
7942 _lt_dsymutil=
7943 fi
7944 ;;
7945 esac
7946
7947 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7948 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7949 inttypes.h stdint.h unistd.h
7950 do :
7951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7952 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7953 "
7954 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7955 cat >>confdefs.h <<_ACEOF
7956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7957 _ACEOF
7958
7959 fi
7960
7961 done
7962
7963
7964 for ac_header in dlfcn.h
7965 do :
7966 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7967 "
7968 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7969 cat >>confdefs.h <<_ACEOF
7970 #define HAVE_DLFCN_H 1
7971 _ACEOF
7972
7973 fi
7974
7975 done
7976
7977
7978
7979
7980
7981 # Set options
7982
7983
7984
7985 enable_dlopen=no
7986
7987
7988 enable_win32_dll=no
7989
7990
7991 # Check whether --enable-shared was given.
7992 if test "${enable_shared+set}" = set; then :
7993 enableval=$enable_shared; p=${PACKAGE-default}
7994 case $enableval in
7995 yes) enable_shared=yes ;;
7996 no) enable_shared=no ;;
7997 *)
7998 enable_shared=no
7999 # Look at the argument we got. We use all the common list separators.
8000 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8001 for pkg in $enableval; do
8002 IFS="$lt_save_ifs"
8003 if test "X$pkg" = "X$p"; then
8004 enable_shared=yes
8005 fi
8006 done
8007 IFS="$lt_save_ifs"
8008 ;;
8009 esac
8010 else
8011 enable_shared=yes
8012 fi
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022 # Check whether --enable-static was given.
8023 if test "${enable_static+set}" = set; then :
8024 enableval=$enable_static; p=${PACKAGE-default}
8025 case $enableval in
8026 yes) enable_static=yes ;;
8027 no) enable_static=no ;;
8028 *)
8029 enable_static=no
8030 # Look at the argument we got. We use all the common list separators.
8031 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8032 for pkg in $enableval; do
8033 IFS="$lt_save_ifs"
8034 if test "X$pkg" = "X$p"; then
8035 enable_static=yes
8036 fi
8037 done
8038 IFS="$lt_save_ifs"
8039 ;;
8040 esac
8041 else
8042 enable_static=yes
8043 fi
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054 # Check whether --with-pic was given.
8055 if test "${with_pic+set}" = set; then :
8056 withval=$with_pic; lt_p=${PACKAGE-default}
8057 case $withval in
8058 yes|no) pic_mode=$withval ;;
8059 *)
8060 pic_mode=default
8061 # Look at the argument we got. We use all the common list separators.
8062 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8063 for lt_pkg in $withval; do
8064 IFS="$lt_save_ifs"
8065 if test "X$lt_pkg" = "X$lt_p"; then
8066 pic_mode=yes
8067 fi
8068 done
8069 IFS="$lt_save_ifs"
8070 ;;
8071 esac
8072 else
8073 pic_mode=default
8074 fi
8075
8076
8077 test -z "$pic_mode" && pic_mode=default
8078
8079
8080
8081
8082
8083
8084
8085 # Check whether --enable-fast-install was given.
8086 if test "${enable_fast_install+set}" = set; then :
8087 enableval=$enable_fast_install; p=${PACKAGE-default}
8088 case $enableval in
8089 yes) enable_fast_install=yes ;;
8090 no) enable_fast_install=no ;;
8091 *)
8092 enable_fast_install=no
8093 # Look at the argument we got. We use all the common list separators.
8094 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8095 for pkg in $enableval; do
8096 IFS="$lt_save_ifs"
8097 if test "X$pkg" = "X$p"; then
8098 enable_fast_install=yes
8099 fi
8100 done
8101 IFS="$lt_save_ifs"
8102 ;;
8103 esac
8104 else
8105 enable_fast_install=yes
8106 fi
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118 # This can be used to rebuild libtool when needed
8119 LIBTOOL_DEPS="$ltmain"
8120
8121 # Always use our own libtool.
8122 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153 test -z "$LN_S" && LN_S="ln -s"
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168 if test -n "${ZSH_VERSION+set}" ; then
8169 setopt NO_GLOB_SUBST
8170 fi
8171
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8173 $as_echo_n "checking for objdir... " >&6; }
8174 if ${lt_cv_objdir+:} false; then :
8175 $as_echo_n "(cached) " >&6
8176 else
8177 rm -f .libs 2>/dev/null
8178 mkdir .libs 2>/dev/null
8179 if test -d .libs; then
8180 lt_cv_objdir=.libs
8181 else
8182 # MS-DOS does not allow filenames that begin with a dot.
8183 lt_cv_objdir=_libs
8184 fi
8185 rmdir .libs 2>/dev/null
8186 fi
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8188 $as_echo "$lt_cv_objdir" >&6; }
8189 objdir=$lt_cv_objdir
8190
8191
8192
8193
8194
8195 cat >>confdefs.h <<_ACEOF
8196 #define LT_OBJDIR "$lt_cv_objdir/"
8197 _ACEOF
8198
8199
8200
8201
8202 case $host_os in
8203 aix3*)
8204 # AIX sometimes has problems with the GCC collect2 program. For some
8205 # reason, if we set the COLLECT_NAMES environment variable, the problems
8206 # vanish in a puff of smoke.
8207 if test "X${COLLECT_NAMES+set}" != Xset; then
8208 COLLECT_NAMES=
8209 export COLLECT_NAMES
8210 fi
8211 ;;
8212 esac
8213
8214 # Global variables:
8215 ofile=libtool
8216 can_build_shared=yes
8217
8218 # All known linkers require a `.a' archive for static linking (except MSVC,
8219 # which needs '.lib').
8220 libext=a
8221
8222 with_gnu_ld="$lt_cv_prog_gnu_ld"
8223
8224 old_CC="$CC"
8225 old_CFLAGS="$CFLAGS"
8226
8227 # Set sane defaults for various variables
8228 test -z "$CC" && CC=cc
8229 test -z "$LTCC" && LTCC=$CC
8230 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8231 test -z "$LD" && LD=ld
8232 test -z "$ac_objext" && ac_objext=o
8233
8234 for cc_temp in $compiler""; do
8235 case $cc_temp in
8236 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8237 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8238 \-*) ;;
8239 *) break;;
8240 esac
8241 done
8242 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8243
8244
8245 # Only perform the check for file, if the check method requires it
8246 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8247 case $deplibs_check_method in
8248 file_magic*)
8249 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8251 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8252 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8253 $as_echo_n "(cached) " >&6
8254 else
8255 case $MAGIC_CMD in
8256 [\\/*] | ?:[\\/]*)
8257 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8258 ;;
8259 *)
8260 lt_save_MAGIC_CMD="$MAGIC_CMD"
8261 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8262 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8263 for ac_dir in $ac_dummy; do
8264 IFS="$lt_save_ifs"
8265 test -z "$ac_dir" && ac_dir=.
8266 if test -f $ac_dir/${ac_tool_prefix}file; then
8267 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8268 if test -n "$file_magic_test_file"; then
8269 case $deplibs_check_method in
8270 "file_magic "*)
8271 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8272 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8273 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8274 $EGREP "$file_magic_regex" > /dev/null; then
8275 :
8276 else
8277 cat <<_LT_EOF 1>&2
8278
8279 *** Warning: the command libtool uses to detect shared libraries,
8280 *** $file_magic_cmd, produces output that libtool cannot recognize.
8281 *** The result is that libtool may fail to recognize shared libraries
8282 *** as such. This will affect the creation of libtool libraries that
8283 *** depend on shared libraries, but programs linked with such libtool
8284 *** libraries will work regardless of this problem. Nevertheless, you
8285 *** may want to report the problem to your system manager and/or to
8286 *** [email protected]
8287
8288 _LT_EOF
8289 fi ;;
8290 esac
8291 fi
8292 break
8293 fi
8294 done
8295 IFS="$lt_save_ifs"
8296 MAGIC_CMD="$lt_save_MAGIC_CMD"
8297 ;;
8298 esac
8299 fi
8300
8301 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8302 if test -n "$MAGIC_CMD"; then
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8304 $as_echo "$MAGIC_CMD" >&6; }
8305 else
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307 $as_echo "no" >&6; }
8308 fi
8309
8310
8311
8312
8313
8314 if test -z "$lt_cv_path_MAGIC_CMD"; then
8315 if test -n "$ac_tool_prefix"; then
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8317 $as_echo_n "checking for file... " >&6; }
8318 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8319 $as_echo_n "(cached) " >&6
8320 else
8321 case $MAGIC_CMD in
8322 [\\/*] | ?:[\\/]*)
8323 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8324 ;;
8325 *)
8326 lt_save_MAGIC_CMD="$MAGIC_CMD"
8327 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8328 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8329 for ac_dir in $ac_dummy; do
8330 IFS="$lt_save_ifs"
8331 test -z "$ac_dir" && ac_dir=.
8332 if test -f $ac_dir/file; then
8333 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8334 if test -n "$file_magic_test_file"; then
8335 case $deplibs_check_method in
8336 "file_magic "*)
8337 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8338 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8339 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8340 $EGREP "$file_magic_regex" > /dev/null; then
8341 :
8342 else
8343 cat <<_LT_EOF 1>&2
8344
8345 *** Warning: the command libtool uses to detect shared libraries,
8346 *** $file_magic_cmd, produces output that libtool cannot recognize.
8347 *** The result is that libtool may fail to recognize shared libraries
8348 *** as such. This will affect the creation of libtool libraries that
8349 *** depend on shared libraries, but programs linked with such libtool
8350 *** libraries will work regardless of this problem. Nevertheless, you
8351 *** may want to report the problem to your system manager and/or to
8352 *** [email protected]
8353
8354 _LT_EOF
8355 fi ;;
8356 esac
8357 fi
8358 break
8359 fi
8360 done
8361 IFS="$lt_save_ifs"
8362 MAGIC_CMD="$lt_save_MAGIC_CMD"
8363 ;;
8364 esac
8365 fi
8366
8367 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8368 if test -n "$MAGIC_CMD"; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8370 $as_echo "$MAGIC_CMD" >&6; }
8371 else
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373 $as_echo "no" >&6; }
8374 fi
8375
8376
8377 else
8378 MAGIC_CMD=:
8379 fi
8380 fi
8381
8382 fi
8383 ;;
8384 esac
8385
8386 # Use C for the default configuration in the libtool script
8387
8388 lt_save_CC="$CC"
8389 ac_ext=c
8390 ac_cpp='$CPP $CPPFLAGS'
8391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8394
8395
8396 # Source file extension for C test sources.
8397 ac_ext=c
8398
8399 # Object file extension for compiled C test sources.
8400 objext=o
8401 objext=$objext
8402
8403 # Code to be used in simple compile tests
8404 lt_simple_compile_test_code="int some_variable = 0;"
8405
8406 # Code to be used in simple link tests
8407 lt_simple_link_test_code='int main(){return(0);}'
8408
8409
8410
8411
8412
8413
8414
8415 # If no C compiler was specified, use CC.
8416 LTCC=${LTCC-"$CC"}
8417
8418 # If no C compiler flags were specified, use CFLAGS.
8419 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8420
8421 # Allow CC to be a program name with arguments.
8422 compiler=$CC
8423
8424 # Save the default compiler, since it gets overwritten when the other
8425 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8426 compiler_DEFAULT=$CC
8427
8428 # save warnings/boilerplate of simple test code
8429 ac_outfile=conftest.$ac_objext
8430 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8431 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8432 _lt_compiler_boilerplate=`cat conftest.err`
8433 $RM conftest*
8434
8435 ac_outfile=conftest.$ac_objext
8436 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8437 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8438 _lt_linker_boilerplate=`cat conftest.err`
8439 $RM -r conftest*
8440
8441
8442 if test -n "$compiler"; then
8443
8444 lt_prog_compiler_no_builtin_flag=
8445
8446 if test "$GCC" = yes; then
8447 case $cc_basename in
8448 nvcc*)
8449 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8450 *)
8451 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8452 esac
8453
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8455 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8456 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8457 $as_echo_n "(cached) " >&6
8458 else
8459 lt_cv_prog_compiler_rtti_exceptions=no
8460 ac_outfile=conftest.$ac_objext
8461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8462 lt_compiler_flag="-fno-rtti -fno-exceptions"
8463 # Insert the option either (1) after the last *FLAGS variable, or
8464 # (2) before a word containing "conftest.", or (3) at the end.
8465 # Note that $ac_compile itself does not contain backslashes and begins
8466 # with a dollar sign (not a hyphen), so the echo should work correctly.
8467 # The option is referenced via a variable to avoid confusing sed.
8468 lt_compile=`echo "$ac_compile" | $SED \
8469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8471 -e 's:$: $lt_compiler_flag:'`
8472 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8473 (eval "$lt_compile" 2>conftest.err)
8474 ac_status=$?
8475 cat conftest.err >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 if (exit $ac_status) && test -s "$ac_outfile"; then
8478 # The compiler can only warn and ignore the option if not recognized
8479 # So say no if there are warnings other than the usual output.
8480 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8481 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8482 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8483 lt_cv_prog_compiler_rtti_exceptions=yes
8484 fi
8485 fi
8486 $RM conftest*
8487
8488 fi
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8490 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8491
8492 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8493 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8494 else
8495 :
8496 fi
8497
8498 fi
8499
8500
8501
8502
8503
8504
8505 lt_prog_compiler_wl=
8506 lt_prog_compiler_pic=
8507 lt_prog_compiler_static=
8508
8509
8510 if test "$GCC" = yes; then
8511 lt_prog_compiler_wl='-Wl,'
8512 lt_prog_compiler_static='-static'
8513
8514 case $host_os in
8515 aix*)
8516 # All AIX code is PIC.
8517 if test "$host_cpu" = ia64; then
8518 # AIX 5 now supports IA64 processor
8519 lt_prog_compiler_static='-Bstatic'
8520 fi
8521 ;;
8522
8523 amigaos*)
8524 case $host_cpu in
8525 powerpc)
8526 # see comment about AmigaOS4 .so support
8527 lt_prog_compiler_pic='-fPIC'
8528 ;;
8529 m68k)
8530 # FIXME: we need at least 68020 code to build shared libraries, but
8531 # adding the `-m68020' flag to GCC prevents building anything better,
8532 # like `-m68040'.
8533 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8534 ;;
8535 esac
8536 ;;
8537
8538 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8539 # PIC is the default for these OSes.
8540 ;;
8541
8542 mingw* | cygwin* | pw32* | os2* | cegcc*)
8543 # This hack is so that the source file can tell whether it is being
8544 # built for inclusion in a dll (and should export symbols for example).
8545 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8546 # (--disable-auto-import) libraries
8547 lt_prog_compiler_pic='-DDLL_EXPORT'
8548 ;;
8549
8550 darwin* | rhapsody*)
8551 # PIC is the default on this platform
8552 # Common symbols not allowed in MH_DYLIB files
8553 lt_prog_compiler_pic='-fno-common'
8554 ;;
8555
8556 haiku*)
8557 # PIC is the default for Haiku.
8558 # The "-static" flag exists, but is broken.
8559 lt_prog_compiler_static=
8560 ;;
8561
8562 hpux*)
8563 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8564 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8565 # sets the default TLS model and affects inlining.
8566 case $host_cpu in
8567 hppa*64*)
8568 # +Z the default
8569 ;;
8570 *)
8571 lt_prog_compiler_pic='-fPIC'
8572 ;;
8573 esac
8574 ;;
8575
8576 interix[3-9]*)
8577 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8578 # Instead, we relocate shared libraries at runtime.
8579 ;;
8580
8581 msdosdjgpp*)
8582 # Just because we use GCC doesn't mean we suddenly get shared libraries
8583 # on systems that don't support them.
8584 lt_prog_compiler_can_build_shared=no
8585 enable_shared=no
8586 ;;
8587
8588 *nto* | *qnx*)
8589 # QNX uses GNU C++, but need to define -shared option too, otherwise
8590 # it will coredump.
8591 lt_prog_compiler_pic='-fPIC -shared'
8592 ;;
8593
8594 sysv4*MP*)
8595 if test -d /usr/nec; then
8596 lt_prog_compiler_pic=-Kconform_pic
8597 fi
8598 ;;
8599
8600 *)
8601 lt_prog_compiler_pic='-fPIC'
8602 ;;
8603 esac
8604
8605 case $cc_basename in
8606 nvcc*) # Cuda Compiler Driver 2.2
8607 lt_prog_compiler_wl='-Xlinker '
8608 if test -n "$lt_prog_compiler_pic"; then
8609 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8610 fi
8611 ;;
8612 esac
8613 else
8614 # PORTME Check for flag to pass linker flags through the system compiler.
8615 case $host_os in
8616 aix*)
8617 lt_prog_compiler_wl='-Wl,'
8618 if test "$host_cpu" = ia64; then
8619 # AIX 5 now supports IA64 processor
8620 lt_prog_compiler_static='-Bstatic'
8621 else
8622 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8623 fi
8624 ;;
8625
8626 mingw* | cygwin* | pw32* | os2* | cegcc*)
8627 # This hack is so that the source file can tell whether it is being
8628 # built for inclusion in a dll (and should export symbols for example).
8629 lt_prog_compiler_pic='-DDLL_EXPORT'
8630 ;;
8631
8632 hpux9* | hpux10* | hpux11*)
8633 lt_prog_compiler_wl='-Wl,'
8634 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8635 # not for PA HP-UX.
8636 case $host_cpu in
8637 hppa*64*|ia64*)
8638 # +Z the default
8639 ;;
8640 *)
8641 lt_prog_compiler_pic='+Z'
8642 ;;
8643 esac
8644 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8645 lt_prog_compiler_static='${wl}-a ${wl}archive'
8646 ;;
8647
8648 irix5* | irix6* | nonstopux*)
8649 lt_prog_compiler_wl='-Wl,'
8650 # PIC (with -KPIC) is the default.
8651 lt_prog_compiler_static='-non_shared'
8652 ;;
8653
8654 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8655 case $cc_basename in
8656 # old Intel for x86_64 which still supported -KPIC.
8657 ecc*)
8658 lt_prog_compiler_wl='-Wl,'
8659 lt_prog_compiler_pic='-KPIC'
8660 lt_prog_compiler_static='-static'
8661 ;;
8662 # icc used to be incompatible with GCC.
8663 # ICC 10 doesn't accept -KPIC any more.
8664 icc* | ifort*)
8665 lt_prog_compiler_wl='-Wl,'
8666 lt_prog_compiler_pic='-fPIC'
8667 lt_prog_compiler_static='-static'
8668 ;;
8669 # Lahey Fortran 8.1.
8670 lf95*)
8671 lt_prog_compiler_wl='-Wl,'
8672 lt_prog_compiler_pic='--shared'
8673 lt_prog_compiler_static='--static'
8674 ;;
8675 nagfor*)
8676 # NAG Fortran compiler
8677 lt_prog_compiler_wl='-Wl,-Wl,,'
8678 lt_prog_compiler_pic='-PIC'
8679 lt_prog_compiler_static='-Bstatic'
8680 ;;
8681 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8682 # Portland Group compilers (*not* the Pentium gcc compiler,
8683 # which looks to be a dead project)
8684 lt_prog_compiler_wl='-Wl,'
8685 lt_prog_compiler_pic='-fpic'
8686 lt_prog_compiler_static='-Bstatic'
8687 ;;
8688 ccc*)
8689 lt_prog_compiler_wl='-Wl,'
8690 # All Alpha code is PIC.
8691 lt_prog_compiler_static='-non_shared'
8692 ;;
8693 xl* | bgxl* | bgf* | mpixl*)
8694 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8695 lt_prog_compiler_wl='-Wl,'
8696 lt_prog_compiler_pic='-qpic'
8697 lt_prog_compiler_static='-qstaticlink'
8698 ;;
8699 *)
8700 case `$CC -V 2>&1 | sed 5q` in
8701 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8702 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8703 lt_prog_compiler_pic='-KPIC'
8704 lt_prog_compiler_static='-Bstatic'
8705 lt_prog_compiler_wl=''
8706 ;;
8707 *Sun\ F* | *Sun*Fortran*)
8708 lt_prog_compiler_pic='-KPIC'
8709 lt_prog_compiler_static='-Bstatic'
8710 lt_prog_compiler_wl='-Qoption ld '
8711 ;;
8712 *Sun\ C*)
8713 # Sun C 5.9
8714 lt_prog_compiler_pic='-KPIC'
8715 lt_prog_compiler_static='-Bstatic'
8716 lt_prog_compiler_wl='-Wl,'
8717 ;;
8718 *Intel*\ [CF]*Compiler*)
8719 lt_prog_compiler_wl='-Wl,'
8720 lt_prog_compiler_pic='-fPIC'
8721 lt_prog_compiler_static='-static'
8722 ;;
8723 *Portland\ Group*)
8724 lt_prog_compiler_wl='-Wl,'
8725 lt_prog_compiler_pic='-fpic'
8726 lt_prog_compiler_static='-Bstatic'
8727 ;;
8728 esac
8729 ;;
8730 esac
8731 ;;
8732
8733 newsos6)
8734 lt_prog_compiler_pic='-KPIC'
8735 lt_prog_compiler_static='-Bstatic'
8736 ;;
8737
8738 *nto* | *qnx*)
8739 # QNX uses GNU C++, but need to define -shared option too, otherwise
8740 # it will coredump.
8741 lt_prog_compiler_pic='-fPIC -shared'
8742 ;;
8743
8744 osf3* | osf4* | osf5*)
8745 lt_prog_compiler_wl='-Wl,'
8746 # All OSF/1 code is PIC.
8747 lt_prog_compiler_static='-non_shared'
8748 ;;
8749
8750 rdos*)
8751 lt_prog_compiler_static='-non_shared'
8752 ;;
8753
8754 solaris*)
8755 lt_prog_compiler_pic='-KPIC'
8756 lt_prog_compiler_static='-Bstatic'
8757 case $cc_basename in
8758 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8759 lt_prog_compiler_wl='-Qoption ld ';;
8760 *)
8761 lt_prog_compiler_wl='-Wl,';;
8762 esac
8763 ;;
8764
8765 sunos4*)
8766 lt_prog_compiler_wl='-Qoption ld '
8767 lt_prog_compiler_pic='-PIC'
8768 lt_prog_compiler_static='-Bstatic'
8769 ;;
8770
8771 sysv4 | sysv4.2uw2* | sysv4.3*)
8772 lt_prog_compiler_wl='-Wl,'
8773 lt_prog_compiler_pic='-KPIC'
8774 lt_prog_compiler_static='-Bstatic'
8775 ;;
8776
8777 sysv4*MP*)
8778 if test -d /usr/nec ;then
8779 lt_prog_compiler_pic='-Kconform_pic'
8780 lt_prog_compiler_static='-Bstatic'
8781 fi
8782 ;;
8783
8784 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8785 lt_prog_compiler_wl='-Wl,'
8786 lt_prog_compiler_pic='-KPIC'
8787 lt_prog_compiler_static='-Bstatic'
8788 ;;
8789
8790 unicos*)
8791 lt_prog_compiler_wl='-Wl,'
8792 lt_prog_compiler_can_build_shared=no
8793 ;;
8794
8795 uts4*)
8796 lt_prog_compiler_pic='-pic'
8797 lt_prog_compiler_static='-Bstatic'
8798 ;;
8799
8800 *)
8801 lt_prog_compiler_can_build_shared=no
8802 ;;
8803 esac
8804 fi
8805
8806 case $host_os in
8807 # For platforms which do not support PIC, -DPIC is meaningless:
8808 *djgpp*)
8809 lt_prog_compiler_pic=
8810 ;;
8811 *)
8812 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8813 ;;
8814 esac
8815
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8817 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8818 if ${lt_cv_prog_compiler_pic+:} false; then :
8819 $as_echo_n "(cached) " >&6
8820 else
8821 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8822 fi
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8824 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8825 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8826
8827 #
8828 # Check to make sure the PIC flag actually works.
8829 #
8830 if test -n "$lt_prog_compiler_pic"; then
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8832 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8833 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8834 $as_echo_n "(cached) " >&6
8835 else
8836 lt_cv_prog_compiler_pic_works=no
8837 ac_outfile=conftest.$ac_objext
8838 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8839 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8840 # Insert the option either (1) after the last *FLAGS variable, or
8841 # (2) before a word containing "conftest.", or (3) at the end.
8842 # Note that $ac_compile itself does not contain backslashes and begins
8843 # with a dollar sign (not a hyphen), so the echo should work correctly.
8844 # The option is referenced via a variable to avoid confusing sed.
8845 lt_compile=`echo "$ac_compile" | $SED \
8846 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8847 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8848 -e 's:$: $lt_compiler_flag:'`
8849 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8850 (eval "$lt_compile" 2>conftest.err)
8851 ac_status=$?
8852 cat conftest.err >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 if (exit $ac_status) && test -s "$ac_outfile"; then
8855 # The compiler can only warn and ignore the option if not recognized
8856 # So say no if there are warnings other than the usual output.
8857 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8859 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8860 lt_cv_prog_compiler_pic_works=yes
8861 fi
8862 fi
8863 $RM conftest*
8864
8865 fi
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8867 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8868
8869 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8870 case $lt_prog_compiler_pic in
8871 "" | " "*) ;;
8872 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8873 esac
8874 else
8875 lt_prog_compiler_pic=
8876 lt_prog_compiler_can_build_shared=no
8877 fi
8878
8879 fi
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891 #
8892 # Check to make sure the static flag actually works.
8893 #
8894 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8896 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8897 if ${lt_cv_prog_compiler_static_works+:} false; then :
8898 $as_echo_n "(cached) " >&6
8899 else
8900 lt_cv_prog_compiler_static_works=no
8901 save_LDFLAGS="$LDFLAGS"
8902 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8903 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8904 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8905 # The linker can only warn and ignore the option if not recognized
8906 # So say no if there are warnings
8907 if test -s conftest.err; then
8908 # Append any errors to the config.log.
8909 cat conftest.err 1>&5
8910 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8911 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8912 if diff conftest.exp conftest.er2 >/dev/null; then
8913 lt_cv_prog_compiler_static_works=yes
8914 fi
8915 else
8916 lt_cv_prog_compiler_static_works=yes
8917 fi
8918 fi
8919 $RM -r conftest*
8920 LDFLAGS="$save_LDFLAGS"
8921
8922 fi
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8924 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8925
8926 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8927 :
8928 else
8929 lt_prog_compiler_static=
8930 fi
8931
8932
8933
8934
8935
8936
8937
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8939 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8940 if ${lt_cv_prog_compiler_c_o+:} false; then :
8941 $as_echo_n "(cached) " >&6
8942 else
8943 lt_cv_prog_compiler_c_o=no
8944 $RM -r conftest 2>/dev/null
8945 mkdir conftest
8946 cd conftest
8947 mkdir out
8948 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8949
8950 lt_compiler_flag="-o out/conftest2.$ac_objext"
8951 # Insert the option either (1) after the last *FLAGS variable, or
8952 # (2) before a word containing "conftest.", or (3) at the end.
8953 # Note that $ac_compile itself does not contain backslashes and begins
8954 # with a dollar sign (not a hyphen), so the echo should work correctly.
8955 lt_compile=`echo "$ac_compile" | $SED \
8956 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8957 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8958 -e 's:$: $lt_compiler_flag:'`
8959 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8960 (eval "$lt_compile" 2>out/conftest.err)
8961 ac_status=$?
8962 cat out/conftest.err >&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8965 then
8966 # The compiler can only warn and ignore the option if not recognized
8967 # So say no if there are warnings
8968 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8969 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8970 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8971 lt_cv_prog_compiler_c_o=yes
8972 fi
8973 fi
8974 chmod u+w . 2>&5
8975 $RM conftest*
8976 # SGI C++ compiler will create directory out/ii_files/ for
8977 # template instantiation
8978 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8979 $RM out/* && rmdir out
8980 cd ..
8981 $RM -r conftest
8982 $RM conftest*
8983
8984 fi
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8986 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8987
8988
8989
8990
8991
8992
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8994 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8995 if ${lt_cv_prog_compiler_c_o+:} false; then :
8996 $as_echo_n "(cached) " >&6
8997 else
8998 lt_cv_prog_compiler_c_o=no
8999 $RM -r conftest 2>/dev/null
9000 mkdir conftest
9001 cd conftest
9002 mkdir out
9003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9004
9005 lt_compiler_flag="-o out/conftest2.$ac_objext"
9006 # Insert the option either (1) after the last *FLAGS variable, or
9007 # (2) before a word containing "conftest.", or (3) at the end.
9008 # Note that $ac_compile itself does not contain backslashes and begins
9009 # with a dollar sign (not a hyphen), so the echo should work correctly.
9010 lt_compile=`echo "$ac_compile" | $SED \
9011 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9013 -e 's:$: $lt_compiler_flag:'`
9014 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9015 (eval "$lt_compile" 2>out/conftest.err)
9016 ac_status=$?
9017 cat out/conftest.err >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9020 then
9021 # The compiler can only warn and ignore the option if not recognized
9022 # So say no if there are warnings
9023 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9024 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9025 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9026 lt_cv_prog_compiler_c_o=yes
9027 fi
9028 fi
9029 chmod u+w . 2>&5
9030 $RM conftest*
9031 # SGI C++ compiler will create directory out/ii_files/ for
9032 # template instantiation
9033 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9034 $RM out/* && rmdir out
9035 cd ..
9036 $RM -r conftest
9037 $RM conftest*
9038
9039 fi
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9041 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9042
9043
9044
9045
9046 hard_links="nottested"
9047 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9048 # do not overwrite the value of need_locks provided by the user
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9050 $as_echo_n "checking if we can lock with hard links... " >&6; }
9051 hard_links=yes
9052 $RM conftest*
9053 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9054 touch conftest.a
9055 ln conftest.a conftest.b 2>&5 || hard_links=no
9056 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9058 $as_echo "$hard_links" >&6; }
9059 if test "$hard_links" = no; then
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9061 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9062 need_locks=warn
9063 fi
9064 else
9065 need_locks=no
9066 fi
9067
9068
9069
9070
9071
9072
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9074 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9075
9076 runpath_var=
9077 allow_undefined_flag=
9078 always_export_symbols=no
9079 archive_cmds=
9080 archive_expsym_cmds=
9081 compiler_needs_object=no
9082 enable_shared_with_static_runtimes=no
9083 export_dynamic_flag_spec=
9084 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9085 hardcode_automatic=no
9086 hardcode_direct=no
9087 hardcode_direct_absolute=no
9088 hardcode_libdir_flag_spec=
9089 hardcode_libdir_separator=
9090 hardcode_minus_L=no
9091 hardcode_shlibpath_var=unsupported
9092 inherit_rpath=no
9093 link_all_deplibs=unknown
9094 module_cmds=
9095 module_expsym_cmds=
9096 old_archive_from_new_cmds=
9097 old_archive_from_expsyms_cmds=
9098 thread_safe_flag_spec=
9099 whole_archive_flag_spec=
9100 # include_expsyms should be a list of space-separated symbols to be *always*
9101 # included in the symbol list
9102 include_expsyms=
9103 # exclude_expsyms can be an extended regexp of symbols to exclude
9104 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9105 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9106 # as well as any symbol that contains `d'.
9107 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9108 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9109 # platforms (ab)use it in PIC code, but their linkers get confused if
9110 # the symbol is explicitly referenced. Since portable code cannot
9111 # rely on this symbol name, it's probably fine to never include it in
9112 # preloaded symbol tables.
9113 # Exclude shared library initialization/finalization symbols.
9114 extract_expsyms_cmds=
9115
9116 case $host_os in
9117 cygwin* | mingw* | pw32* | cegcc*)
9118 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9119 # When not using gcc, we currently assume that we are using
9120 # Microsoft Visual C++.
9121 if test "$GCC" != yes; then
9122 with_gnu_ld=no
9123 fi
9124 ;;
9125 interix*)
9126 # we just hope/assume this is gcc and not c89 (= MSVC++)
9127 with_gnu_ld=yes
9128 ;;
9129 openbsd*)
9130 with_gnu_ld=no
9131 ;;
9132 linux* | k*bsd*-gnu | gnu*)
9133 link_all_deplibs=no
9134 ;;
9135 esac
9136
9137 ld_shlibs=yes
9138
9139 # On some targets, GNU ld is compatible enough with the native linker
9140 # that we're better off using the native interface for both.
9141 lt_use_gnu_ld_interface=no
9142 if test "$with_gnu_ld" = yes; then
9143 case $host_os in
9144 aix*)
9145 # The AIX port of GNU ld has always aspired to compatibility
9146 # with the native linker. However, as the warning in the GNU ld
9147 # block says, versions before 2.19.5* couldn't really create working
9148 # shared libraries, regardless of the interface used.
9149 case `$LD -v 2>&1` in
9150 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9151 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9152 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9153 *)
9154 lt_use_gnu_ld_interface=yes
9155 ;;
9156 esac
9157 ;;
9158 *)
9159 lt_use_gnu_ld_interface=yes
9160 ;;
9161 esac
9162 fi
9163
9164 if test "$lt_use_gnu_ld_interface" = yes; then
9165 # If archive_cmds runs LD, not CC, wlarc should be empty
9166 wlarc='${wl}'
9167
9168 # Set some defaults for GNU ld with shared library support. These
9169 # are reset later if shared libraries are not supported. Putting them
9170 # here allows them to be overridden if necessary.
9171 runpath_var=LD_RUN_PATH
9172 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9173 export_dynamic_flag_spec='${wl}--export-dynamic'
9174 # ancient GNU ld didn't support --whole-archive et. al.
9175 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9176 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9177 else
9178 whole_archive_flag_spec=
9179 fi
9180 supports_anon_versioning=no
9181 case `$LD -v 2>&1` in
9182 *GNU\ gold*) supports_anon_versioning=yes ;;
9183 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9184 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9185 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9186 *\ 2.11.*) ;; # other 2.11 versions
9187 *) supports_anon_versioning=yes ;;
9188 esac
9189
9190 # See if GNU ld supports shared libraries.
9191 case $host_os in
9192 aix[3-9]*)
9193 # On AIX/PPC, the GNU linker is very broken
9194 if test "$host_cpu" != ia64; then
9195 ld_shlibs=no
9196 cat <<_LT_EOF 1>&2
9197
9198 *** Warning: the GNU linker, at least up to release 2.19, is reported
9199 *** to be unable to reliably create shared libraries on AIX.
9200 *** Therefore, libtool is disabling shared libraries support. If you
9201 *** really care for shared libraries, you may want to install binutils
9202 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9203 *** You will then need to restart the configuration process.
9204
9205 _LT_EOF
9206 fi
9207 ;;
9208
9209 amigaos*)
9210 case $host_cpu in
9211 powerpc)
9212 # see comment about AmigaOS4 .so support
9213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9214 archive_expsym_cmds=''
9215 ;;
9216 m68k)
9217 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)'
9218 hardcode_libdir_flag_spec='-L$libdir'
9219 hardcode_minus_L=yes
9220 ;;
9221 esac
9222 ;;
9223
9224 beos*)
9225 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9226 allow_undefined_flag=unsupported
9227 # Joseph Beckenbach <[email protected]> says some releases of gcc
9228 # support --undefined. This deserves some investigation. FIXME
9229 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9230 else
9231 ld_shlibs=no
9232 fi
9233 ;;
9234
9235 cygwin* | mingw* | pw32* | cegcc*)
9236 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9237 # as there is no search path for DLLs.
9238 hardcode_libdir_flag_spec='-L$libdir'
9239 export_dynamic_flag_spec='${wl}--export-all-symbols'
9240 allow_undefined_flag=unsupported
9241 always_export_symbols=no
9242 enable_shared_with_static_runtimes=yes
9243 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'
9244 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9245
9246 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9248 # If the export-symbols file already is a .def file (1st line
9249 # is EXPORTS), use it as is; otherwise, prepend...
9250 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9251 cp $export_symbols $output_objdir/$soname.def;
9252 else
9253 echo EXPORTS > $output_objdir/$soname.def;
9254 cat $export_symbols >> $output_objdir/$soname.def;
9255 fi~
9256 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9257 else
9258 ld_shlibs=no
9259 fi
9260 ;;
9261
9262 haiku*)
9263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9264 link_all_deplibs=yes
9265 ;;
9266
9267 interix[3-9]*)
9268 hardcode_direct=no
9269 hardcode_shlibpath_var=no
9270 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9271 export_dynamic_flag_spec='${wl}-E'
9272 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9273 # Instead, shared libraries are loaded at an image base (0x10000000 by
9274 # default) and relocated if they conflict, which is a slow very memory
9275 # consuming and fragmenting process. To avoid this, we pick a random,
9276 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9277 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9278 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9279 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'
9280 ;;
9281
9282 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9283 tmp_diet=no
9284 if test "$host_os" = linux-dietlibc; then
9285 case $cc_basename in
9286 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9287 esac
9288 fi
9289 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9290 && test "$tmp_diet" = no
9291 then
9292 tmp_addflag=' $pic_flag'
9293 tmp_sharedflag='-shared'
9294 case $cc_basename,$host_cpu in
9295 pgcc*) # Portland Group C compiler
9296 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'
9297 tmp_addflag=' $pic_flag'
9298 ;;
9299 pgf77* | pgf90* | pgf95* | pgfortran*)
9300 # Portland Group f77 and f90 compilers
9301 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'
9302 tmp_addflag=' $pic_flag -Mnomain' ;;
9303 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9304 tmp_addflag=' -i_dynamic' ;;
9305 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9306 tmp_addflag=' -i_dynamic -nofor_main' ;;
9307 ifc* | ifort*) # Intel Fortran compiler
9308 tmp_addflag=' -nofor_main' ;;
9309 lf95*) # Lahey Fortran 8.1
9310 whole_archive_flag_spec=
9311 tmp_sharedflag='--shared' ;;
9312 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9313 tmp_sharedflag='-qmkshrobj'
9314 tmp_addflag= ;;
9315 nvcc*) # Cuda Compiler Driver 2.2
9316 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'
9317 compiler_needs_object=yes
9318 ;;
9319 esac
9320 case `$CC -V 2>&1 | sed 5q` in
9321 *Sun\ C*) # Sun C 5.9
9322 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'
9323 compiler_needs_object=yes
9324 tmp_sharedflag='-G' ;;
9325 *Sun\ F*) # Sun Fortran 8.3
9326 tmp_sharedflag='-G' ;;
9327 esac
9328 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9329
9330 if test "x$supports_anon_versioning" = xyes; then
9331 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9332 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9333 echo "local: *; };" >> $output_objdir/$libname.ver~
9334 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9335 fi
9336
9337 case $cc_basename in
9338 xlf* | bgf* | bgxlf* | mpixlf*)
9339 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9340 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9341 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9342 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9343 if test "x$supports_anon_versioning" = xyes; then
9344 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9345 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9346 echo "local: *; };" >> $output_objdir/$libname.ver~
9347 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9348 fi
9349 ;;
9350 esac
9351 else
9352 ld_shlibs=no
9353 fi
9354 ;;
9355
9356 netbsd* | netbsdelf*-gnu)
9357 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9358 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9359 wlarc=
9360 else
9361 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9362 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9363 fi
9364 ;;
9365
9366 solaris*)
9367 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9368 ld_shlibs=no
9369 cat <<_LT_EOF 1>&2
9370
9371 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9372 *** create shared libraries on Solaris systems. Therefore, libtool
9373 *** is disabling shared libraries support. We urge you to upgrade GNU
9374 *** binutils to release 2.9.1 or newer. Another option is to modify
9375 *** your PATH or compiler configuration so that the native linker is
9376 *** used, and then restart.
9377
9378 _LT_EOF
9379 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9380 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9381 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9382 else
9383 ld_shlibs=no
9384 fi
9385 ;;
9386
9387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9388 case `$LD -v 2>&1` in
9389 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9390 ld_shlibs=no
9391 cat <<_LT_EOF 1>&2
9392
9393 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9394 *** reliably create shared libraries on SCO systems. Therefore, libtool
9395 *** is disabling shared libraries support. We urge you to upgrade GNU
9396 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9397 *** your PATH or compiler configuration so that the native linker is
9398 *** used, and then restart.
9399
9400 _LT_EOF
9401 ;;
9402 *)
9403 # For security reasons, it is highly recommended that you always
9404 # use absolute paths for naming shared libraries, and exclude the
9405 # DT_RUNPATH tag from executables and libraries. But doing so
9406 # requires that you compile everything twice, which is a pain.
9407 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9408 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9410 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9411 else
9412 ld_shlibs=no
9413 fi
9414 ;;
9415 esac
9416 ;;
9417
9418 sunos4*)
9419 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9420 wlarc=
9421 hardcode_direct=yes
9422 hardcode_shlibpath_var=no
9423 ;;
9424
9425 *)
9426 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9427 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9428 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9429 else
9430 ld_shlibs=no
9431 fi
9432 ;;
9433 esac
9434
9435 if test "$ld_shlibs" = no; then
9436 runpath_var=
9437 hardcode_libdir_flag_spec=
9438 export_dynamic_flag_spec=
9439 whole_archive_flag_spec=
9440 fi
9441 else
9442 # PORTME fill in a description of your system's linker (not GNU ld)
9443 case $host_os in
9444 aix3*)
9445 allow_undefined_flag=unsupported
9446 always_export_symbols=yes
9447 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'
9448 # Note: this linker hardcodes the directories in LIBPATH if there
9449 # are no directories specified by -L.
9450 hardcode_minus_L=yes
9451 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9452 # Neither direct hardcoding nor static linking is supported with a
9453 # broken collect2.
9454 hardcode_direct=unsupported
9455 fi
9456 ;;
9457
9458 aix[4-9]*)
9459 if test "$host_cpu" = ia64; then
9460 # On IA64, the linker does run time linking by default, so we don't
9461 # have to do anything special.
9462 aix_use_runtimelinking=no
9463 exp_sym_flag='-Bexport'
9464 no_entry_flag=""
9465 else
9466 # If we're using GNU nm, then we don't want the "-C" option.
9467 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9468 # Also, AIX nm treats weak defined symbols like other global
9469 # defined symbols, whereas GNU nm marks them as "W".
9470 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9471 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9472 else
9473 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9474 fi
9475 aix_use_runtimelinking=no
9476
9477 # Test if we are trying to use run time linking or normal
9478 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9479 # need to do runtime linking.
9480 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9481 for ld_flag in $LDFLAGS; do
9482 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9483 aix_use_runtimelinking=yes
9484 break
9485 fi
9486 done
9487 ;;
9488 esac
9489
9490 exp_sym_flag='-bexport'
9491 no_entry_flag='-bnoentry'
9492 fi
9493
9494 # When large executables or shared objects are built, AIX ld can
9495 # have problems creating the table of contents. If linking a library
9496 # or program results in "error TOC overflow" add -mminimal-toc to
9497 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9498 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9499
9500 archive_cmds=''
9501 hardcode_direct=yes
9502 hardcode_direct_absolute=yes
9503 hardcode_libdir_separator=':'
9504 link_all_deplibs=yes
9505 file_list_spec='${wl}-f,'
9506
9507 if test "$GCC" = yes; then
9508 case $host_os in aix4.[012]|aix4.[012].*)
9509 # We only want to do this on AIX 4.2 and lower, the check
9510 # below for broken collect2 doesn't work under 4.3+
9511 collect2name=`${CC} -print-prog-name=collect2`
9512 if test -f "$collect2name" &&
9513 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9514 then
9515 # We have reworked collect2
9516 :
9517 else
9518 # We have old collect2
9519 hardcode_direct=unsupported
9520 # It fails to find uninstalled libraries when the uninstalled
9521 # path is not listed in the libpath. Setting hardcode_minus_L
9522 # to unsupported forces relinking
9523 hardcode_minus_L=yes
9524 hardcode_libdir_flag_spec='-L$libdir'
9525 hardcode_libdir_separator=
9526 fi
9527 ;;
9528 esac
9529 shared_flag='-shared'
9530 if test "$aix_use_runtimelinking" = yes; then
9531 shared_flag="$shared_flag "'${wl}-G'
9532 fi
9533 link_all_deplibs=no
9534 else
9535 # not using gcc
9536 if test "$host_cpu" = ia64; then
9537 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9538 # chokes on -Wl,-G. The following line is correct:
9539 shared_flag='-G'
9540 else
9541 if test "$aix_use_runtimelinking" = yes; then
9542 shared_flag='${wl}-G'
9543 else
9544 shared_flag='${wl}-bM:SRE'
9545 fi
9546 fi
9547 fi
9548
9549 export_dynamic_flag_spec='${wl}-bexpall'
9550 # It seems that -bexpall does not export symbols beginning with
9551 # underscore (_), so it is better to generate a list of symbols to export.
9552 always_export_symbols=yes
9553 if test "$aix_use_runtimelinking" = yes; then
9554 # Warning - without using the other runtime loading flags (-brtl),
9555 # -berok will link without error, but may produce a broken library.
9556 allow_undefined_flag='-berok'
9557 # Determine the default libpath from the value encoded in an
9558 # empty executable.
9559 if test "${lt_cv_aix_libpath+set}" = set; then
9560 aix_libpath=$lt_cv_aix_libpath
9561 else
9562 if ${lt_cv_aix_libpath_+:} false; then :
9563 $as_echo_n "(cached) " >&6
9564 else
9565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566 /* end confdefs.h. */
9567
9568 int
9569 main ()
9570 {
9571
9572 ;
9573 return 0;
9574 }
9575 _ACEOF
9576 if ac_fn_c_try_link "$LINENO"; then :
9577
9578 lt_aix_libpath_sed='
9579 /Import File Strings/,/^$/ {
9580 /^0/ {
9581 s/^0 *\([^ ]*\) *$/\1/
9582 p
9583 }
9584 }'
9585 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9586 # Check for a 64-bit object if we didn't find anything.
9587 if test -z "$lt_cv_aix_libpath_"; then
9588 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9589 fi
9590 fi
9591 rm -f core conftest.err conftest.$ac_objext \
9592 conftest$ac_exeext conftest.$ac_ext
9593 if test -z "$lt_cv_aix_libpath_"; then
9594 lt_cv_aix_libpath_="/usr/lib:/lib"
9595 fi
9596
9597 fi
9598
9599 aix_libpath=$lt_cv_aix_libpath_
9600 fi
9601
9602 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9603 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9604 else
9605 if test "$host_cpu" = ia64; then
9606 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9607 allow_undefined_flag="-z nodefs"
9608 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"
9609 else
9610 # Determine the default libpath from the value encoded in an
9611 # empty executable.
9612 if test "${lt_cv_aix_libpath+set}" = set; then
9613 aix_libpath=$lt_cv_aix_libpath
9614 else
9615 if ${lt_cv_aix_libpath_+:} false; then :
9616 $as_echo_n "(cached) " >&6
9617 else
9618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9619 /* end confdefs.h. */
9620
9621 int
9622 main ()
9623 {
9624
9625 ;
9626 return 0;
9627 }
9628 _ACEOF
9629 if ac_fn_c_try_link "$LINENO"; then :
9630
9631 lt_aix_libpath_sed='
9632 /Import File Strings/,/^$/ {
9633 /^0/ {
9634 s/^0 *\([^ ]*\) *$/\1/
9635 p
9636 }
9637 }'
9638 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9639 # Check for a 64-bit object if we didn't find anything.
9640 if test -z "$lt_cv_aix_libpath_"; then
9641 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9642 fi
9643 fi
9644 rm -f core conftest.err conftest.$ac_objext \
9645 conftest$ac_exeext conftest.$ac_ext
9646 if test -z "$lt_cv_aix_libpath_"; then
9647 lt_cv_aix_libpath_="/usr/lib:/lib"
9648 fi
9649
9650 fi
9651
9652 aix_libpath=$lt_cv_aix_libpath_
9653 fi
9654
9655 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9656 # Warning - without using the other run time loading flags,
9657 # -berok will link without error, but may produce a broken library.
9658 no_undefined_flag=' ${wl}-bernotok'
9659 allow_undefined_flag=' ${wl}-berok'
9660 if test "$with_gnu_ld" = yes; then
9661 # We only use this code for GNU lds that support --whole-archive.
9662 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9663 else
9664 # Exported symbols can be pulled into shared objects from archives
9665 whole_archive_flag_spec='$convenience'
9666 fi
9667 archive_cmds_need_lc=yes
9668 # This is similar to how AIX traditionally builds its shared libraries.
9669 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9670 fi
9671 fi
9672 ;;
9673
9674 amigaos*)
9675 case $host_cpu in
9676 powerpc)
9677 # see comment about AmigaOS4 .so support
9678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9679 archive_expsym_cmds=''
9680 ;;
9681 m68k)
9682 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)'
9683 hardcode_libdir_flag_spec='-L$libdir'
9684 hardcode_minus_L=yes
9685 ;;
9686 esac
9687 ;;
9688
9689 bsdi[45]*)
9690 export_dynamic_flag_spec=-rdynamic
9691 ;;
9692
9693 cygwin* | mingw* | pw32* | cegcc*)
9694 # When not using gcc, we currently assume that we are using
9695 # Microsoft Visual C++.
9696 # hardcode_libdir_flag_spec is actually meaningless, as there is
9697 # no search path for DLLs.
9698 case $cc_basename in
9699 cl*)
9700 # Native MSVC
9701 hardcode_libdir_flag_spec=' '
9702 allow_undefined_flag=unsupported
9703 always_export_symbols=yes
9704 file_list_spec='@'
9705 # Tell ltmain to make .lib files, not .a files.
9706 libext=lib
9707 # Tell ltmain to make .dll files, not .so files.
9708 shrext_cmds=".dll"
9709 # FIXME: Setting linknames here is a bad hack.
9710 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9711 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9712 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9713 else
9714 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9715 fi~
9716 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9717 linknames='
9718 # The linker will not automatically build a static lib if we build a DLL.
9719 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9720 enable_shared_with_static_runtimes=yes
9721 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9722 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9723 # Don't use ranlib
9724 old_postinstall_cmds='chmod 644 $oldlib'
9725 postlink_cmds='lt_outputfile="@OUTPUT@"~
9726 lt_tool_outputfile="@TOOL_OUTPUT@"~
9727 case $lt_outputfile in
9728 *.exe|*.EXE) ;;
9729 *)
9730 lt_outputfile="$lt_outputfile.exe"
9731 lt_tool_outputfile="$lt_tool_outputfile.exe"
9732 ;;
9733 esac~
9734 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9735 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9736 $RM "$lt_outputfile.manifest";
9737 fi'
9738 ;;
9739 *)
9740 # Assume MSVC wrapper
9741 hardcode_libdir_flag_spec=' '
9742 allow_undefined_flag=unsupported
9743 # Tell ltmain to make .lib files, not .a files.
9744 libext=lib
9745 # Tell ltmain to make .dll files, not .so files.
9746 shrext_cmds=".dll"
9747 # FIXME: Setting linknames here is a bad hack.
9748 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9749 # The linker will automatically build a .lib file if we build a DLL.
9750 old_archive_from_new_cmds='true'
9751 # FIXME: Should let the user specify the lib program.
9752 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9753 enable_shared_with_static_runtimes=yes
9754 ;;
9755 esac
9756 ;;
9757
9758 darwin* | rhapsody*)
9759
9760
9761 archive_cmds_need_lc=no
9762 hardcode_direct=no
9763 hardcode_automatic=yes
9764 hardcode_shlibpath_var=unsupported
9765 if test "$lt_cv_ld_force_load" = "yes"; then
9766 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\"`'
9767
9768 else
9769 whole_archive_flag_spec=''
9770 fi
9771 link_all_deplibs=yes
9772 allow_undefined_flag="$_lt_dar_allow_undefined"
9773 case $cc_basename in
9774 ifort*) _lt_dar_can_shared=yes ;;
9775 *) _lt_dar_can_shared=$GCC ;;
9776 esac
9777 if test "$_lt_dar_can_shared" = "yes"; then
9778 output_verbose_link_cmd=func_echo_all
9779 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9780 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9781 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}"
9782 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}"
9783
9784 else
9785 ld_shlibs=no
9786 fi
9787
9788 ;;
9789
9790 dgux*)
9791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9792 hardcode_libdir_flag_spec='-L$libdir'
9793 hardcode_shlibpath_var=no
9794 ;;
9795
9796 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9797 # support. Future versions do this automatically, but an explicit c++rt0.o
9798 # does not break anything, and helps significantly (at the cost of a little
9799 # extra space).
9800 freebsd2.2*)
9801 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9802 hardcode_libdir_flag_spec='-R$libdir'
9803 hardcode_direct=yes
9804 hardcode_shlibpath_var=no
9805 ;;
9806
9807 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9808 freebsd2.*)
9809 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9810 hardcode_direct=yes
9811 hardcode_minus_L=yes
9812 hardcode_shlibpath_var=no
9813 ;;
9814
9815 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9816 freebsd* | dragonfly*)
9817 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9818 hardcode_libdir_flag_spec='-R$libdir'
9819 hardcode_direct=yes
9820 hardcode_shlibpath_var=no
9821 ;;
9822
9823 hpux9*)
9824 if test "$GCC" = yes; then
9825 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9826 else
9827 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9828 fi
9829 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9830 hardcode_libdir_separator=:
9831 hardcode_direct=yes
9832
9833 # hardcode_minus_L: Not really in the search PATH,
9834 # but as the default location of the library.
9835 hardcode_minus_L=yes
9836 export_dynamic_flag_spec='${wl}-E'
9837 ;;
9838
9839 hpux10*)
9840 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9841 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9842 else
9843 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9844 fi
9845 if test "$with_gnu_ld" = no; then
9846 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9847 hardcode_libdir_separator=:
9848 hardcode_direct=yes
9849 hardcode_direct_absolute=yes
9850 export_dynamic_flag_spec='${wl}-E'
9851 # hardcode_minus_L: Not really in the search PATH,
9852 # but as the default location of the library.
9853 hardcode_minus_L=yes
9854 fi
9855 ;;
9856
9857 hpux11*)
9858 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9859 case $host_cpu in
9860 hppa*64*)
9861 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9862 ;;
9863 ia64*)
9864 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9865 ;;
9866 *)
9867 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9868 ;;
9869 esac
9870 else
9871 case $host_cpu in
9872 hppa*64*)
9873 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9874 ;;
9875 ia64*)
9876 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9877 ;;
9878 *)
9879
9880 # Older versions of the 11.00 compiler do not understand -b yet
9881 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9883 $as_echo_n "checking if $CC understands -b... " >&6; }
9884 if ${lt_cv_prog_compiler__b+:} false; then :
9885 $as_echo_n "(cached) " >&6
9886 else
9887 lt_cv_prog_compiler__b=no
9888 save_LDFLAGS="$LDFLAGS"
9889 LDFLAGS="$LDFLAGS -b"
9890 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9891 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9892 # The linker can only warn and ignore the option if not recognized
9893 # So say no if there are warnings
9894 if test -s conftest.err; then
9895 # Append any errors to the config.log.
9896 cat conftest.err 1>&5
9897 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9899 if diff conftest.exp conftest.er2 >/dev/null; then
9900 lt_cv_prog_compiler__b=yes
9901 fi
9902 else
9903 lt_cv_prog_compiler__b=yes
9904 fi
9905 fi
9906 $RM -r conftest*
9907 LDFLAGS="$save_LDFLAGS"
9908
9909 fi
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9911 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9912
9913 if test x"$lt_cv_prog_compiler__b" = xyes; then
9914 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9915 else
9916 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9917 fi
9918
9919 ;;
9920 esac
9921 fi
9922 if test "$with_gnu_ld" = no; then
9923 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9924 hardcode_libdir_separator=:
9925
9926 case $host_cpu in
9927 hppa*64*|ia64*)
9928 hardcode_direct=no
9929 hardcode_shlibpath_var=no
9930 ;;
9931 *)
9932 hardcode_direct=yes
9933 hardcode_direct_absolute=yes
9934 export_dynamic_flag_spec='${wl}-E'
9935
9936 # hardcode_minus_L: Not really in the search PATH,
9937 # but as the default location of the library.
9938 hardcode_minus_L=yes
9939 ;;
9940 esac
9941 fi
9942 ;;
9943
9944 irix5* | irix6* | nonstopux*)
9945 if test "$GCC" = yes; then
9946 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'
9947 # Try to use the -exported_symbol ld option, if it does not
9948 # work, assume that -exports_file does not work either and
9949 # implicitly export all symbols.
9950 # This should be the same for all languages, so no per-tag cache variable.
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9952 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9953 if ${lt_cv_irix_exported_symbol+:} false; then :
9954 $as_echo_n "(cached) " >&6
9955 else
9956 save_LDFLAGS="$LDFLAGS"
9957 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9960 int foo (void) { return 0; }
9961 _ACEOF
9962 if ac_fn_c_try_link "$LINENO"; then :
9963 lt_cv_irix_exported_symbol=yes
9964 else
9965 lt_cv_irix_exported_symbol=no
9966 fi
9967 rm -f core conftest.err conftest.$ac_objext \
9968 conftest$ac_exeext conftest.$ac_ext
9969 LDFLAGS="$save_LDFLAGS"
9970 fi
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9972 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9973 if test "$lt_cv_irix_exported_symbol" = yes; then
9974 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'
9975 fi
9976 else
9977 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'
9978 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'
9979 fi
9980 archive_cmds_need_lc='no'
9981 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9982 hardcode_libdir_separator=:
9983 inherit_rpath=yes
9984 link_all_deplibs=yes
9985 ;;
9986
9987 netbsd* | netbsdelf*-gnu)
9988 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9989 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9990 else
9991 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9992 fi
9993 hardcode_libdir_flag_spec='-R$libdir'
9994 hardcode_direct=yes
9995 hardcode_shlibpath_var=no
9996 ;;
9997
9998 newsos6)
9999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10000 hardcode_direct=yes
10001 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10002 hardcode_libdir_separator=:
10003 hardcode_shlibpath_var=no
10004 ;;
10005
10006 *nto* | *qnx*)
10007 ;;
10008
10009 openbsd*)
10010 if test -f /usr/libexec/ld.so; then
10011 hardcode_direct=yes
10012 hardcode_shlibpath_var=no
10013 hardcode_direct_absolute=yes
10014 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10015 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10016 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10017 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10018 export_dynamic_flag_spec='${wl}-E'
10019 else
10020 case $host_os in
10021 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10022 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10023 hardcode_libdir_flag_spec='-R$libdir'
10024 ;;
10025 *)
10026 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10027 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10028 ;;
10029 esac
10030 fi
10031 else
10032 ld_shlibs=no
10033 fi
10034 ;;
10035
10036 os2*)
10037 hardcode_libdir_flag_spec='-L$libdir'
10038 hardcode_minus_L=yes
10039 allow_undefined_flag=unsupported
10040 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10041 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10042 ;;
10043
10044 osf3*)
10045 if test "$GCC" = yes; then
10046 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10047 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'
10048 else
10049 allow_undefined_flag=' -expect_unresolved \*'
10050 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'
10051 fi
10052 archive_cmds_need_lc='no'
10053 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10054 hardcode_libdir_separator=:
10055 ;;
10056
10057 osf4* | osf5*) # as osf3* with the addition of -msym flag
10058 if test "$GCC" = yes; then
10059 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10060 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'
10061 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10062 else
10063 allow_undefined_flag=' -expect_unresolved \*'
10064 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'
10065 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~
10066 $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'
10067
10068 # Both c and cxx compiler support -rpath directly
10069 hardcode_libdir_flag_spec='-rpath $libdir'
10070 fi
10071 archive_cmds_need_lc='no'
10072 hardcode_libdir_separator=:
10073 ;;
10074
10075 solaris*)
10076 no_undefined_flag=' -z defs'
10077 if test "$GCC" = yes; then
10078 wlarc='${wl}'
10079 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10080 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10081 $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'
10082 else
10083 case `$CC -V 2>&1` in
10084 *"Compilers 5.0"*)
10085 wlarc=''
10086 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10087 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10088 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10089 ;;
10090 *)
10091 wlarc='${wl}'
10092 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10093 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10094 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10095 ;;
10096 esac
10097 fi
10098 hardcode_libdir_flag_spec='-R$libdir'
10099 hardcode_shlibpath_var=no
10100 case $host_os in
10101 solaris2.[0-5] | solaris2.[0-5].*) ;;
10102 *)
10103 # The compiler driver will combine and reorder linker options,
10104 # but understands `-z linker_flag'. GCC discards it without `$wl',
10105 # but is careful enough not to reorder.
10106 # Supported since Solaris 2.6 (maybe 2.5.1?)
10107 if test "$GCC" = yes; then
10108 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10109 else
10110 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10111 fi
10112 ;;
10113 esac
10114 link_all_deplibs=yes
10115 ;;
10116
10117 sunos4*)
10118 if test "x$host_vendor" = xsequent; then
10119 # Use $CC to link under sequent, because it throws in some extra .o
10120 # files that make .init and .fini sections work.
10121 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10122 else
10123 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10124 fi
10125 hardcode_libdir_flag_spec='-L$libdir'
10126 hardcode_direct=yes
10127 hardcode_minus_L=yes
10128 hardcode_shlibpath_var=no
10129 ;;
10130
10131 sysv4)
10132 case $host_vendor in
10133 sni)
10134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10135 hardcode_direct=yes # is this really true???
10136 ;;
10137 siemens)
10138 ## LD is ld it makes a PLAMLIB
10139 ## CC just makes a GrossModule.
10140 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10141 reload_cmds='$CC -r -o $output$reload_objs'
10142 hardcode_direct=no
10143 ;;
10144 motorola)
10145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10146 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10147 ;;
10148 esac
10149 runpath_var='LD_RUN_PATH'
10150 hardcode_shlibpath_var=no
10151 ;;
10152
10153 sysv4.3*)
10154 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10155 hardcode_shlibpath_var=no
10156 export_dynamic_flag_spec='-Bexport'
10157 ;;
10158
10159 sysv4*MP*)
10160 if test -d /usr/nec; then
10161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10162 hardcode_shlibpath_var=no
10163 runpath_var=LD_RUN_PATH
10164 hardcode_runpath_var=yes
10165 ld_shlibs=yes
10166 fi
10167 ;;
10168
10169 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10170 no_undefined_flag='${wl}-z,text'
10171 archive_cmds_need_lc=no
10172 hardcode_shlibpath_var=no
10173 runpath_var='LD_RUN_PATH'
10174
10175 if test "$GCC" = yes; then
10176 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10177 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10178 else
10179 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10181 fi
10182 ;;
10183
10184 sysv5* | sco3.2v5* | sco5v6*)
10185 # Note: We can NOT use -z defs as we might desire, because we do not
10186 # link with -lc, and that would cause any symbols used from libc to
10187 # always be unresolved, which means just about no library would
10188 # ever link correctly. If we're not using GNU ld we use -z text
10189 # though, which does catch some bad symbols but isn't as heavy-handed
10190 # as -z defs.
10191 no_undefined_flag='${wl}-z,text'
10192 allow_undefined_flag='${wl}-z,nodefs'
10193 archive_cmds_need_lc=no
10194 hardcode_shlibpath_var=no
10195 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10196 hardcode_libdir_separator=':'
10197 link_all_deplibs=yes
10198 export_dynamic_flag_spec='${wl}-Bexport'
10199 runpath_var='LD_RUN_PATH'
10200
10201 if test "$GCC" = yes; then
10202 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10203 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10204 else
10205 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10206 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10207 fi
10208 ;;
10209
10210 uts4*)
10211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10212 hardcode_libdir_flag_spec='-L$libdir'
10213 hardcode_shlibpath_var=no
10214 ;;
10215
10216 *)
10217 ld_shlibs=no
10218 ;;
10219 esac
10220
10221 if test x$host_vendor = xsni; then
10222 case $host in
10223 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10224 export_dynamic_flag_spec='${wl}-Blargedynsym'
10225 ;;
10226 esac
10227 fi
10228 fi
10229
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10231 $as_echo "$ld_shlibs" >&6; }
10232 test "$ld_shlibs" = no && can_build_shared=no
10233
10234 with_gnu_ld=$with_gnu_ld
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250 #
10251 # Do we need to explicitly link libc?
10252 #
10253 case "x$archive_cmds_need_lc" in
10254 x|xyes)
10255 # Assume -lc should be added
10256 archive_cmds_need_lc=yes
10257
10258 if test "$enable_shared" = yes && test "$GCC" = yes; then
10259 case $archive_cmds in
10260 *'~'*)
10261 # FIXME: we may have to deal with multi-command sequences.
10262 ;;
10263 '$CC '*)
10264 # Test whether the compiler implicitly links with -lc since on some
10265 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10266 # to ld, don't add -lc before -lgcc.
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10268 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10269 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10270 $as_echo_n "(cached) " >&6
10271 else
10272 $RM conftest*
10273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10274
10275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10276 (eval $ac_compile) 2>&5
10277 ac_status=$?
10278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10279 test $ac_status = 0; } 2>conftest.err; then
10280 soname=conftest
10281 lib=conftest
10282 libobjs=conftest.$ac_objext
10283 deplibs=
10284 wl=$lt_prog_compiler_wl
10285 pic_flag=$lt_prog_compiler_pic
10286 compiler_flags=-v
10287 linker_flags=-v
10288 verstring=
10289 output_objdir=.
10290 libname=conftest
10291 lt_save_allow_undefined_flag=$allow_undefined_flag
10292 allow_undefined_flag=
10293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10294 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10295 ac_status=$?
10296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10297 test $ac_status = 0; }
10298 then
10299 lt_cv_archive_cmds_need_lc=no
10300 else
10301 lt_cv_archive_cmds_need_lc=yes
10302 fi
10303 allow_undefined_flag=$lt_save_allow_undefined_flag
10304 else
10305 cat conftest.err 1>&5
10306 fi
10307 $RM conftest*
10308
10309 fi
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10311 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10312 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10313 ;;
10314 esac
10315 fi
10316 ;;
10317 esac
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10471 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10472
10473 if test "$GCC" = yes; then
10474 case $host_os in
10475 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10476 *) lt_awk_arg="/^libraries:/" ;;
10477 esac
10478 case $host_os in
10479 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10480 *) lt_sed_strip_eq="s,=/,/,g" ;;
10481 esac
10482 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10483 case $lt_search_path_spec in
10484 *\;*)
10485 # if the path contains ";" then we assume it to be the separator
10486 # otherwise default to the standard path separator (i.e. ":") - it is
10487 # assumed that no part of a normal pathname contains ";" but that should
10488 # okay in the real world where ";" in dirpaths is itself problematic.
10489 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10490 ;;
10491 *)
10492 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10493 ;;
10494 esac
10495 # Ok, now we have the path, separated by spaces, we can step through it
10496 # and add multilib dir if necessary.
10497 lt_tmp_lt_search_path_spec=
10498 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10499 for lt_sys_path in $lt_search_path_spec; do
10500 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10501 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10502 else
10503 test -d "$lt_sys_path" && \
10504 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10505 fi
10506 done
10507 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10508 BEGIN {RS=" "; FS="/|\n";} {
10509 lt_foo="";
10510 lt_count=0;
10511 for (lt_i = NF; lt_i > 0; lt_i--) {
10512 if ($lt_i != "" && $lt_i != ".") {
10513 if ($lt_i == "..") {
10514 lt_count++;
10515 } else {
10516 if (lt_count == 0) {
10517 lt_foo="/" $lt_i lt_foo;
10518 } else {
10519 lt_count--;
10520 }
10521 }
10522 }
10523 }
10524 if (lt_foo != "") { lt_freq[lt_foo]++; }
10525 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10526 }'`
10527 # AWK program above erroneously prepends '/' to C:/dos/paths
10528 # for these hosts.
10529 case $host_os in
10530 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10531 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10532 esac
10533 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10534 else
10535 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10536 fi
10537 library_names_spec=
10538 libname_spec='lib$name'
10539 soname_spec=
10540 shrext_cmds=".so"
10541 postinstall_cmds=
10542 postuninstall_cmds=
10543 finish_cmds=
10544 finish_eval=
10545 shlibpath_var=
10546 shlibpath_overrides_runpath=unknown
10547 version_type=none
10548 dynamic_linker="$host_os ld.so"
10549 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10550 need_lib_prefix=unknown
10551 hardcode_into_libs=no
10552
10553 # when you set need_version to no, make sure it does not cause -set_version
10554 # flags to be left without arguments
10555 need_version=unknown
10556
10557 case $host_os in
10558 aix3*)
10559 version_type=linux # correct to gnu/linux during the next big refactor
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10561 shlibpath_var=LIBPATH
10562
10563 # AIX 3 has no versioning support, so we append a major version to the name.
10564 soname_spec='${libname}${release}${shared_ext}$major'
10565 ;;
10566
10567 aix[4-9]*)
10568 version_type=linux # correct to gnu/linux during the next big refactor
10569 need_lib_prefix=no
10570 need_version=no
10571 hardcode_into_libs=yes
10572 if test "$host_cpu" = ia64; then
10573 # AIX 5 supports IA64
10574 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10575 shlibpath_var=LD_LIBRARY_PATH
10576 else
10577 # With GCC up to 2.95.x, collect2 would create an import file
10578 # for dependence libraries. The import file would start with
10579 # the line `#! .'. This would cause the generated library to
10580 # depend on `.', always an invalid library. This was fixed in
10581 # development snapshots of GCC prior to 3.0.
10582 case $host_os in
10583 aix4 | aix4.[01] | aix4.[01].*)
10584 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10585 echo ' yes '
10586 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10587 :
10588 else
10589 can_build_shared=no
10590 fi
10591 ;;
10592 esac
10593 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10594 # soname into executable. Probably we can add versioning support to
10595 # collect2, so additional links can be useful in future.
10596 if test "$aix_use_runtimelinking" = yes; then
10597 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10598 # instead of lib<name>.a to let people know that these are not
10599 # typical AIX shared libraries.
10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10601 else
10602 # We preserve .a as extension for shared libraries through AIX4.2
10603 # and later when we are not doing run time linking.
10604 library_names_spec='${libname}${release}.a $libname.a'
10605 soname_spec='${libname}${release}${shared_ext}$major'
10606 fi
10607 shlibpath_var=LIBPATH
10608 fi
10609 ;;
10610
10611 amigaos*)
10612 case $host_cpu in
10613 powerpc)
10614 # Since July 2007 AmigaOS4 officially supports .so libraries.
10615 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617 ;;
10618 m68k)
10619 library_names_spec='$libname.ixlibrary $libname.a'
10620 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10621 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10622 ;;
10623 esac
10624 ;;
10625
10626 beos*)
10627 library_names_spec='${libname}${shared_ext}'
10628 dynamic_linker="$host_os ld.so"
10629 shlibpath_var=LIBRARY_PATH
10630 ;;
10631
10632 bsdi[45]*)
10633 version_type=linux # correct to gnu/linux during the next big refactor
10634 need_version=no
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10636 soname_spec='${libname}${release}${shared_ext}$major'
10637 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10638 shlibpath_var=LD_LIBRARY_PATH
10639 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10640 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10641 # the default ld.so.conf also contains /usr/contrib/lib and
10642 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10643 # libtool to hard-code these into programs
10644 ;;
10645
10646 cygwin* | mingw* | pw32* | cegcc*)
10647 version_type=windows
10648 shrext_cmds=".dll"
10649 need_version=no
10650 need_lib_prefix=no
10651
10652 case $GCC,$cc_basename in
10653 yes,*)
10654 # gcc
10655 library_names_spec='$libname.dll.a'
10656 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10657 postinstall_cmds='base_file=`basename \${file}`~
10658 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10659 dldir=$destdir/`dirname \$dlpath`~
10660 test -d \$dldir || mkdir -p \$dldir~
10661 $install_prog $dir/$dlname \$dldir/$dlname~
10662 chmod a+x \$dldir/$dlname~
10663 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10664 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10665 fi'
10666 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10667 dlpath=$dir/\$dldll~
10668 $RM \$dlpath'
10669 shlibpath_overrides_runpath=yes
10670
10671 case $host_os in
10672 cygwin*)
10673 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10674 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10675
10676 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10677 ;;
10678 mingw* | cegcc*)
10679 # MinGW DLLs use traditional 'lib' prefix
10680 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10681 ;;
10682 pw32*)
10683 # pw32 DLLs use 'pw' prefix rather than 'lib'
10684 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10685 ;;
10686 esac
10687 dynamic_linker='Win32 ld.exe'
10688 ;;
10689
10690 *,cl*)
10691 # Native MSVC
10692 libname_spec='$name'
10693 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10694 library_names_spec='${libname}.dll.lib'
10695
10696 case $build_os in
10697 mingw*)
10698 sys_lib_search_path_spec=
10699 lt_save_ifs=$IFS
10700 IFS=';'
10701 for lt_path in $LIB
10702 do
10703 IFS=$lt_save_ifs
10704 # Let DOS variable expansion print the short 8.3 style file name.
10705 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10706 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10707 done
10708 IFS=$lt_save_ifs
10709 # Convert to MSYS style.
10710 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10711 ;;
10712 cygwin*)
10713 # Convert to unix form, then to dos form, then back to unix form
10714 # but this time dos style (no spaces!) so that the unix form looks
10715 # like /cygdrive/c/PROGRA~1:/cygdr...
10716 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10717 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10718 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10719 ;;
10720 *)
10721 sys_lib_search_path_spec="$LIB"
10722 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10723 # It is most probably a Windows format PATH.
10724 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10725 else
10726 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10727 fi
10728 # FIXME: find the short name or the path components, as spaces are
10729 # common. (e.g. "Program Files" -> "PROGRA~1")
10730 ;;
10731 esac
10732
10733 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10734 postinstall_cmds='base_file=`basename \${file}`~
10735 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10736 dldir=$destdir/`dirname \$dlpath`~
10737 test -d \$dldir || mkdir -p \$dldir~
10738 $install_prog $dir/$dlname \$dldir/$dlname'
10739 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10740 dlpath=$dir/\$dldll~
10741 $RM \$dlpath'
10742 shlibpath_overrides_runpath=yes
10743 dynamic_linker='Win32 link.exe'
10744 ;;
10745
10746 *)
10747 # Assume MSVC wrapper
10748 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10749 dynamic_linker='Win32 ld.exe'
10750 ;;
10751 esac
10752 # FIXME: first we should search . and the directory the executable is in
10753 shlibpath_var=PATH
10754 ;;
10755
10756 darwin* | rhapsody*)
10757 dynamic_linker="$host_os dyld"
10758 version_type=darwin
10759 need_lib_prefix=no
10760 need_version=no
10761 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10762 soname_spec='${libname}${release}${major}$shared_ext'
10763 shlibpath_overrides_runpath=yes
10764 shlibpath_var=DYLD_LIBRARY_PATH
10765 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10766
10767 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10768 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10769 ;;
10770
10771 dgux*)
10772 version_type=linux # correct to gnu/linux during the next big refactor
10773 need_lib_prefix=no
10774 need_version=no
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10776 soname_spec='${libname}${release}${shared_ext}$major'
10777 shlibpath_var=LD_LIBRARY_PATH
10778 ;;
10779
10780 freebsd* | dragonfly*)
10781 # DragonFly does not have aout. When/if they implement a new
10782 # versioning mechanism, adjust this.
10783 if test -x /usr/bin/objformat; then
10784 objformat=`/usr/bin/objformat`
10785 else
10786 case $host_os in
10787 freebsd[23].*) objformat=aout ;;
10788 *) objformat=elf ;;
10789 esac
10790 fi
10791 version_type=freebsd-$objformat
10792 case $version_type in
10793 freebsd-elf*)
10794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10795 need_version=no
10796 need_lib_prefix=no
10797 ;;
10798 freebsd-*)
10799 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10800 need_version=yes
10801 ;;
10802 esac
10803 shlibpath_var=LD_LIBRARY_PATH
10804 case $host_os in
10805 freebsd2.*)
10806 shlibpath_overrides_runpath=yes
10807 ;;
10808 freebsd3.[01]* | freebsdelf3.[01]*)
10809 shlibpath_overrides_runpath=yes
10810 hardcode_into_libs=yes
10811 ;;
10812 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10813 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10814 shlibpath_overrides_runpath=no
10815 hardcode_into_libs=yes
10816 ;;
10817 *) # from 4.6 on, and DragonFly
10818 shlibpath_overrides_runpath=yes
10819 hardcode_into_libs=yes
10820 ;;
10821 esac
10822 ;;
10823
10824 haiku*)
10825 version_type=linux # correct to gnu/linux during the next big refactor
10826 need_lib_prefix=no
10827 need_version=no
10828 dynamic_linker="$host_os runtime_loader"
10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10830 soname_spec='${libname}${release}${shared_ext}$major'
10831 shlibpath_var=LIBRARY_PATH
10832 shlibpath_overrides_runpath=yes
10833 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10834 hardcode_into_libs=yes
10835 ;;
10836
10837 hpux9* | hpux10* | hpux11*)
10838 # Give a soname corresponding to the major version so that dld.sl refuses to
10839 # link against other versions.
10840 version_type=sunos
10841 need_lib_prefix=no
10842 need_version=no
10843 case $host_cpu in
10844 ia64*)
10845 shrext_cmds='.so'
10846 hardcode_into_libs=yes
10847 dynamic_linker="$host_os dld.so"
10848 shlibpath_var=LD_LIBRARY_PATH
10849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10851 soname_spec='${libname}${release}${shared_ext}$major'
10852 if test "X$HPUX_IA64_MODE" = X32; then
10853 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10854 else
10855 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10856 fi
10857 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10858 ;;
10859 hppa*64*)
10860 shrext_cmds='.sl'
10861 hardcode_into_libs=yes
10862 dynamic_linker="$host_os dld.sl"
10863 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10864 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10868 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10869 ;;
10870 *)
10871 shrext_cmds='.sl'
10872 dynamic_linker="$host_os dld.sl"
10873 shlibpath_var=SHLIB_PATH
10874 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10876 soname_spec='${libname}${release}${shared_ext}$major'
10877 ;;
10878 esac
10879 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10880 postinstall_cmds='chmod 555 $lib'
10881 # or fails outright, so override atomically:
10882 install_override_mode=555
10883 ;;
10884
10885 interix[3-9]*)
10886 version_type=linux # correct to gnu/linux during the next big refactor
10887 need_lib_prefix=no
10888 need_version=no
10889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10890 soname_spec='${libname}${release}${shared_ext}$major'
10891 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10892 shlibpath_var=LD_LIBRARY_PATH
10893 shlibpath_overrides_runpath=no
10894 hardcode_into_libs=yes
10895 ;;
10896
10897 irix5* | irix6* | nonstopux*)
10898 case $host_os in
10899 nonstopux*) version_type=nonstopux ;;
10900 *)
10901 if test "$lt_cv_prog_gnu_ld" = yes; then
10902 version_type=linux # correct to gnu/linux during the next big refactor
10903 else
10904 version_type=irix
10905 fi ;;
10906 esac
10907 need_lib_prefix=no
10908 need_version=no
10909 soname_spec='${libname}${release}${shared_ext}$major'
10910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10911 case $host_os in
10912 irix5* | nonstopux*)
10913 libsuff= shlibsuff=
10914 ;;
10915 *)
10916 case $LD in # libtool.m4 will add one of these switches to LD
10917 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10918 libsuff= shlibsuff= libmagic=32-bit;;
10919 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10920 libsuff=32 shlibsuff=N32 libmagic=N32;;
10921 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10922 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10923 *) libsuff= shlibsuff= libmagic=never-match;;
10924 esac
10925 ;;
10926 esac
10927 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10928 shlibpath_overrides_runpath=no
10929 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10930 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10931 hardcode_into_libs=yes
10932 ;;
10933
10934 # No shared lib support for Linux oldld, aout, or coff.
10935 linux*oldld* | linux*aout* | linux*coff*)
10936 dynamic_linker=no
10937 ;;
10938
10939 # This must be glibc/ELF.
10940 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10941 version_type=linux # correct to gnu/linux during the next big refactor
10942 need_lib_prefix=no
10943 need_version=no
10944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945 soname_spec='${libname}${release}${shared_ext}$major'
10946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10947 shlibpath_var=LD_LIBRARY_PATH
10948 shlibpath_overrides_runpath=no
10949
10950 # Some binutils ld are patched to set DT_RUNPATH
10951 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10952 $as_echo_n "(cached) " >&6
10953 else
10954 lt_cv_shlibpath_overrides_runpath=no
10955 save_LDFLAGS=$LDFLAGS
10956 save_libdir=$libdir
10957 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10958 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10960 /* end confdefs.h. */
10961
10962 int
10963 main ()
10964 {
10965
10966 ;
10967 return 0;
10968 }
10969 _ACEOF
10970 if ac_fn_c_try_link "$LINENO"; then :
10971 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10972 lt_cv_shlibpath_overrides_runpath=yes
10973 fi
10974 fi
10975 rm -f core conftest.err conftest.$ac_objext \
10976 conftest$ac_exeext conftest.$ac_ext
10977 LDFLAGS=$save_LDFLAGS
10978 libdir=$save_libdir
10979
10980 fi
10981
10982 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10983
10984 # This implies no fast_install, which is unacceptable.
10985 # Some rework will be needed to allow for fast_install
10986 # before this can be enabled.
10987 hardcode_into_libs=yes
10988
10989 # Append ld.so.conf contents to the search path
10990 if test -f /etc/ld.so.conf; then
10991 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' ' '`
10992 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10993 fi
10994
10995 # We used to test for /lib/ld.so.1 and disable shared libraries on
10996 # powerpc, because MkLinux only supported shared libraries with the
10997 # GNU dynamic linker. Since this was broken with cross compilers,
10998 # most powerpc-linux boxes support dynamic linking these days and
10999 # people can always --disable-shared, the test was removed, and we
11000 # assume the GNU/Linux dynamic linker is in use.
11001 dynamic_linker='GNU/Linux ld.so'
11002 ;;
11003
11004 netbsdelf*-gnu)
11005 version_type=linux
11006 need_lib_prefix=no
11007 need_version=no
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11009 soname_spec='${libname}${release}${shared_ext}$major'
11010 shlibpath_var=LD_LIBRARY_PATH
11011 shlibpath_overrides_runpath=no
11012 hardcode_into_libs=yes
11013 dynamic_linker='NetBSD ld.elf_so'
11014 ;;
11015
11016 netbsd*)
11017 version_type=sunos
11018 need_lib_prefix=no
11019 need_version=no
11020 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11022 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11023 dynamic_linker='NetBSD (a.out) ld.so'
11024 else
11025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11026 soname_spec='${libname}${release}${shared_ext}$major'
11027 dynamic_linker='NetBSD ld.elf_so'
11028 fi
11029 shlibpath_var=LD_LIBRARY_PATH
11030 shlibpath_overrides_runpath=yes
11031 hardcode_into_libs=yes
11032 ;;
11033
11034 newsos6)
11035 version_type=linux # correct to gnu/linux during the next big refactor
11036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11037 shlibpath_var=LD_LIBRARY_PATH
11038 shlibpath_overrides_runpath=yes
11039 ;;
11040
11041 *nto* | *qnx*)
11042 version_type=qnx
11043 need_lib_prefix=no
11044 need_version=no
11045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11046 soname_spec='${libname}${release}${shared_ext}$major'
11047 shlibpath_var=LD_LIBRARY_PATH
11048 shlibpath_overrides_runpath=no
11049 hardcode_into_libs=yes
11050 dynamic_linker='ldqnx.so'
11051 ;;
11052
11053 openbsd*)
11054 version_type=sunos
11055 sys_lib_dlsearch_path_spec="/usr/lib"
11056 need_lib_prefix=no
11057 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11058 case $host_os in
11059 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11060 *) need_version=no ;;
11061 esac
11062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11063 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11064 shlibpath_var=LD_LIBRARY_PATH
11065 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11066 case $host_os in
11067 openbsd2.[89] | openbsd2.[89].*)
11068 shlibpath_overrides_runpath=no
11069 ;;
11070 *)
11071 shlibpath_overrides_runpath=yes
11072 ;;
11073 esac
11074 else
11075 shlibpath_overrides_runpath=yes
11076 fi
11077 ;;
11078
11079 os2*)
11080 libname_spec='$name'
11081 shrext_cmds=".dll"
11082 need_lib_prefix=no
11083 library_names_spec='$libname${shared_ext} $libname.a'
11084 dynamic_linker='OS/2 ld.exe'
11085 shlibpath_var=LIBPATH
11086 ;;
11087
11088 osf3* | osf4* | osf5*)
11089 version_type=osf
11090 need_lib_prefix=no
11091 need_version=no
11092 soname_spec='${libname}${release}${shared_ext}$major'
11093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11094 shlibpath_var=LD_LIBRARY_PATH
11095 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11096 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11097 ;;
11098
11099 rdos*)
11100 dynamic_linker=no
11101 ;;
11102
11103 solaris*)
11104 version_type=linux # correct to gnu/linux during the next big refactor
11105 need_lib_prefix=no
11106 need_version=no
11107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11108 soname_spec='${libname}${release}${shared_ext}$major'
11109 shlibpath_var=LD_LIBRARY_PATH
11110 shlibpath_overrides_runpath=yes
11111 hardcode_into_libs=yes
11112 # ldd complains unless libraries are executable
11113 postinstall_cmds='chmod +x $lib'
11114 ;;
11115
11116 sunos4*)
11117 version_type=sunos
11118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11119 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11120 shlibpath_var=LD_LIBRARY_PATH
11121 shlibpath_overrides_runpath=yes
11122 if test "$with_gnu_ld" = yes; then
11123 need_lib_prefix=no
11124 fi
11125 need_version=yes
11126 ;;
11127
11128 sysv4 | sysv4.3*)
11129 version_type=linux # correct to gnu/linux during the next big refactor
11130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11131 soname_spec='${libname}${release}${shared_ext}$major'
11132 shlibpath_var=LD_LIBRARY_PATH
11133 case $host_vendor in
11134 sni)
11135 shlibpath_overrides_runpath=no
11136 need_lib_prefix=no
11137 runpath_var=LD_RUN_PATH
11138 ;;
11139 siemens)
11140 need_lib_prefix=no
11141 ;;
11142 motorola)
11143 need_lib_prefix=no
11144 need_version=no
11145 shlibpath_overrides_runpath=no
11146 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11147 ;;
11148 esac
11149 ;;
11150
11151 sysv4*MP*)
11152 if test -d /usr/nec ;then
11153 version_type=linux # correct to gnu/linux during the next big refactor
11154 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11155 soname_spec='$libname${shared_ext}.$major'
11156 shlibpath_var=LD_LIBRARY_PATH
11157 fi
11158 ;;
11159
11160 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11161 version_type=freebsd-elf
11162 need_lib_prefix=no
11163 need_version=no
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11165 soname_spec='${libname}${release}${shared_ext}$major'
11166 shlibpath_var=LD_LIBRARY_PATH
11167 shlibpath_overrides_runpath=yes
11168 hardcode_into_libs=yes
11169 if test "$with_gnu_ld" = yes; then
11170 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11171 else
11172 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11173 case $host_os in
11174 sco3.2v5*)
11175 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11176 ;;
11177 esac
11178 fi
11179 sys_lib_dlsearch_path_spec='/usr/lib'
11180 ;;
11181
11182 tpf*)
11183 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11184 version_type=linux # correct to gnu/linux during the next big refactor
11185 need_lib_prefix=no
11186 need_version=no
11187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11188 shlibpath_var=LD_LIBRARY_PATH
11189 shlibpath_overrides_runpath=no
11190 hardcode_into_libs=yes
11191 ;;
11192
11193 uts4*)
11194 version_type=linux # correct to gnu/linux during the next big refactor
11195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11196 soname_spec='${libname}${release}${shared_ext}$major'
11197 shlibpath_var=LD_LIBRARY_PATH
11198 ;;
11199
11200 *)
11201 dynamic_linker=no
11202 ;;
11203 esac
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11205 $as_echo "$dynamic_linker" >&6; }
11206 test "$dynamic_linker" = no && can_build_shared=no
11207
11208 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11209 if test "$GCC" = yes; then
11210 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11211 fi
11212
11213 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11214 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11215 fi
11216 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11217 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11218 fi
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11312 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11313 hardcode_action=
11314 if test -n "$hardcode_libdir_flag_spec" ||
11315 test -n "$runpath_var" ||
11316 test "X$hardcode_automatic" = "Xyes" ; then
11317
11318 # We can hardcode non-existent directories.
11319 if test "$hardcode_direct" != no &&
11320 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11321 # have to relink, otherwise we might link with an installed library
11322 # when we should be linking with a yet-to-be-installed one
11323 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11324 test "$hardcode_minus_L" != no; then
11325 # Linking always hardcodes the temporary library directory.
11326 hardcode_action=relink
11327 else
11328 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11329 hardcode_action=immediate
11330 fi
11331 else
11332 # We cannot hardcode anything, or else we can only hardcode existing
11333 # directories.
11334 hardcode_action=unsupported
11335 fi
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11337 $as_echo "$hardcode_action" >&6; }
11338
11339 if test "$hardcode_action" = relink ||
11340 test "$inherit_rpath" = yes; then
11341 # Fast installation is not supported
11342 enable_fast_install=no
11343 elif test "$shlibpath_overrides_runpath" = yes ||
11344 test "$enable_shared" = no; then
11345 # Fast installation is not necessary
11346 enable_fast_install=needless
11347 fi
11348
11349
11350
11351
11352
11353
11354 if test "x$enable_dlopen" != xyes; then
11355 enable_dlopen=unknown
11356 enable_dlopen_self=unknown
11357 enable_dlopen_self_static=unknown
11358 else
11359 lt_cv_dlopen=no
11360 lt_cv_dlopen_libs=
11361
11362 case $host_os in
11363 beos*)
11364 lt_cv_dlopen="load_add_on"
11365 lt_cv_dlopen_libs=
11366 lt_cv_dlopen_self=yes
11367 ;;
11368
11369 mingw* | pw32* | cegcc*)
11370 lt_cv_dlopen="LoadLibrary"
11371 lt_cv_dlopen_libs=
11372 ;;
11373
11374 cygwin*)
11375 lt_cv_dlopen="dlopen"
11376 lt_cv_dlopen_libs=
11377 ;;
11378
11379 darwin*)
11380 # if libdl is installed we need to link against it
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11382 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11383 if ${ac_cv_lib_dl_dlopen+:} false; then :
11384 $as_echo_n "(cached) " >&6
11385 else
11386 ac_check_lib_save_LIBS=$LIBS
11387 LIBS="-ldl $LIBS"
11388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389 /* end confdefs.h. */
11390
11391 /* Override any GCC internal prototype to avoid an error.
11392 Use char because int might match the return type of a GCC
11393 builtin and then its argument prototype would still apply. */
11394 #ifdef __cplusplus
11395 extern "C"
11396 #endif
11397 char dlopen ();
11398 int
11399 main ()
11400 {
11401 return dlopen ();
11402 ;
11403 return 0;
11404 }
11405 _ACEOF
11406 if ac_fn_c_try_link "$LINENO"; then :
11407 ac_cv_lib_dl_dlopen=yes
11408 else
11409 ac_cv_lib_dl_dlopen=no
11410 fi
11411 rm -f core conftest.err conftest.$ac_objext \
11412 conftest$ac_exeext conftest.$ac_ext
11413 LIBS=$ac_check_lib_save_LIBS
11414 fi
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11416 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11417 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11418 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11419 else
11420
11421 lt_cv_dlopen="dyld"
11422 lt_cv_dlopen_libs=
11423 lt_cv_dlopen_self=yes
11424
11425 fi
11426
11427 ;;
11428
11429 *)
11430 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11431 if test "x$ac_cv_func_shl_load" = xyes; then :
11432 lt_cv_dlopen="shl_load"
11433 else
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11435 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11436 if ${ac_cv_lib_dld_shl_load+:} false; then :
11437 $as_echo_n "(cached) " >&6
11438 else
11439 ac_check_lib_save_LIBS=$LIBS
11440 LIBS="-ldld $LIBS"
11441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11442 /* end confdefs.h. */
11443
11444 /* Override any GCC internal prototype to avoid an error.
11445 Use char because int might match the return type of a GCC
11446 builtin and then its argument prototype would still apply. */
11447 #ifdef __cplusplus
11448 extern "C"
11449 #endif
11450 char shl_load ();
11451 int
11452 main ()
11453 {
11454 return shl_load ();
11455 ;
11456 return 0;
11457 }
11458 _ACEOF
11459 if ac_fn_c_try_link "$LINENO"; then :
11460 ac_cv_lib_dld_shl_load=yes
11461 else
11462 ac_cv_lib_dld_shl_load=no
11463 fi
11464 rm -f core conftest.err conftest.$ac_objext \
11465 conftest$ac_exeext conftest.$ac_ext
11466 LIBS=$ac_check_lib_save_LIBS
11467 fi
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11469 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11470 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11471 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11472 else
11473 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11474 if test "x$ac_cv_func_dlopen" = xyes; then :
11475 lt_cv_dlopen="dlopen"
11476 else
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11478 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11479 if ${ac_cv_lib_dl_dlopen+:} false; then :
11480 $as_echo_n "(cached) " >&6
11481 else
11482 ac_check_lib_save_LIBS=$LIBS
11483 LIBS="-ldl $LIBS"
11484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11485 /* end confdefs.h. */
11486
11487 /* Override any GCC internal prototype to avoid an error.
11488 Use char because int might match the return type of a GCC
11489 builtin and then its argument prototype would still apply. */
11490 #ifdef __cplusplus
11491 extern "C"
11492 #endif
11493 char dlopen ();
11494 int
11495 main ()
11496 {
11497 return dlopen ();
11498 ;
11499 return 0;
11500 }
11501 _ACEOF
11502 if ac_fn_c_try_link "$LINENO"; then :
11503 ac_cv_lib_dl_dlopen=yes
11504 else
11505 ac_cv_lib_dl_dlopen=no
11506 fi
11507 rm -f core conftest.err conftest.$ac_objext \
11508 conftest$ac_exeext conftest.$ac_ext
11509 LIBS=$ac_check_lib_save_LIBS
11510 fi
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11512 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11513 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11514 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11515 else
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11517 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11518 if ${ac_cv_lib_svld_dlopen+:} false; then :
11519 $as_echo_n "(cached) " >&6
11520 else
11521 ac_check_lib_save_LIBS=$LIBS
11522 LIBS="-lsvld $LIBS"
11523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11524 /* end confdefs.h. */
11525
11526 /* Override any GCC internal prototype to avoid an error.
11527 Use char because int might match the return type of a GCC
11528 builtin and then its argument prototype would still apply. */
11529 #ifdef __cplusplus
11530 extern "C"
11531 #endif
11532 char dlopen ();
11533 int
11534 main ()
11535 {
11536 return dlopen ();
11537 ;
11538 return 0;
11539 }
11540 _ACEOF
11541 if ac_fn_c_try_link "$LINENO"; then :
11542 ac_cv_lib_svld_dlopen=yes
11543 else
11544 ac_cv_lib_svld_dlopen=no
11545 fi
11546 rm -f core conftest.err conftest.$ac_objext \
11547 conftest$ac_exeext conftest.$ac_ext
11548 LIBS=$ac_check_lib_save_LIBS
11549 fi
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11551 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11552 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11553 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11554 else
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11556 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11557 if ${ac_cv_lib_dld_dld_link+:} false; then :
11558 $as_echo_n "(cached) " >&6
11559 else
11560 ac_check_lib_save_LIBS=$LIBS
11561 LIBS="-ldld $LIBS"
11562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11563 /* end confdefs.h. */
11564
11565 /* Override any GCC internal prototype to avoid an error.
11566 Use char because int might match the return type of a GCC
11567 builtin and then its argument prototype would still apply. */
11568 #ifdef __cplusplus
11569 extern "C"
11570 #endif
11571 char dld_link ();
11572 int
11573 main ()
11574 {
11575 return dld_link ();
11576 ;
11577 return 0;
11578 }
11579 _ACEOF
11580 if ac_fn_c_try_link "$LINENO"; then :
11581 ac_cv_lib_dld_dld_link=yes
11582 else
11583 ac_cv_lib_dld_dld_link=no
11584 fi
11585 rm -f core conftest.err conftest.$ac_objext \
11586 conftest$ac_exeext conftest.$ac_ext
11587 LIBS=$ac_check_lib_save_LIBS
11588 fi
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11590 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11591 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11592 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11593 fi
11594
11595
11596 fi
11597
11598
11599 fi
11600
11601
11602 fi
11603
11604
11605 fi
11606
11607
11608 fi
11609
11610 ;;
11611 esac
11612
11613 if test "x$lt_cv_dlopen" != xno; then
11614 enable_dlopen=yes
11615 else
11616 enable_dlopen=no
11617 fi
11618
11619 case $lt_cv_dlopen in
11620 dlopen)
11621 save_CPPFLAGS="$CPPFLAGS"
11622 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11623
11624 save_LDFLAGS="$LDFLAGS"
11625 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11626
11627 save_LIBS="$LIBS"
11628 LIBS="$lt_cv_dlopen_libs $LIBS"
11629
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11631 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11632 if ${lt_cv_dlopen_self+:} false; then :
11633 $as_echo_n "(cached) " >&6
11634 else
11635 if test "$cross_compiling" = yes; then :
11636 lt_cv_dlopen_self=cross
11637 else
11638 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11639 lt_status=$lt_dlunknown
11640 cat > conftest.$ac_ext <<_LT_EOF
11641 #line $LINENO "configure"
11642 #include "confdefs.h"
11643
11644 #if HAVE_DLFCN_H
11645 #include <dlfcn.h>
11646 #endif
11647
11648 #include <stdio.h>
11649
11650 #ifdef RTLD_GLOBAL
11651 # define LT_DLGLOBAL RTLD_GLOBAL
11652 #else
11653 # ifdef DL_GLOBAL
11654 # define LT_DLGLOBAL DL_GLOBAL
11655 # else
11656 # define LT_DLGLOBAL 0
11657 # endif
11658 #endif
11659
11660 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11661 find out it does not work in some platform. */
11662 #ifndef LT_DLLAZY_OR_NOW
11663 # ifdef RTLD_LAZY
11664 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11665 # else
11666 # ifdef DL_LAZY
11667 # define LT_DLLAZY_OR_NOW DL_LAZY
11668 # else
11669 # ifdef RTLD_NOW
11670 # define LT_DLLAZY_OR_NOW RTLD_NOW
11671 # else
11672 # ifdef DL_NOW
11673 # define LT_DLLAZY_OR_NOW DL_NOW
11674 # else
11675 # define LT_DLLAZY_OR_NOW 0
11676 # endif
11677 # endif
11678 # endif
11679 # endif
11680 #endif
11681
11682 /* When -fvisbility=hidden is used, assume the code has been annotated
11683 correspondingly for the symbols needed. */
11684 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11685 int fnord () __attribute__((visibility("default")));
11686 #endif
11687
11688 int fnord () { return 42; }
11689 int main ()
11690 {
11691 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11692 int status = $lt_dlunknown;
11693
11694 if (self)
11695 {
11696 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11697 else
11698 {
11699 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11700 else puts (dlerror ());
11701 }
11702 /* dlclose (self); */
11703 }
11704 else
11705 puts (dlerror ());
11706
11707 return status;
11708 }
11709 _LT_EOF
11710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11711 (eval $ac_link) 2>&5
11712 ac_status=$?
11713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11714 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11715 (./conftest; exit; ) >&5 2>/dev/null
11716 lt_status=$?
11717 case x$lt_status in
11718 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11719 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11720 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11721 esac
11722 else :
11723 # compilation failed
11724 lt_cv_dlopen_self=no
11725 fi
11726 fi
11727 rm -fr conftest*
11728
11729
11730 fi
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11732 $as_echo "$lt_cv_dlopen_self" >&6; }
11733
11734 if test "x$lt_cv_dlopen_self" = xyes; then
11735 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11737 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11738 if ${lt_cv_dlopen_self_static+:} false; then :
11739 $as_echo_n "(cached) " >&6
11740 else
11741 if test "$cross_compiling" = yes; then :
11742 lt_cv_dlopen_self_static=cross
11743 else
11744 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11745 lt_status=$lt_dlunknown
11746 cat > conftest.$ac_ext <<_LT_EOF
11747 #line $LINENO "configure"
11748 #include "confdefs.h"
11749
11750 #if HAVE_DLFCN_H
11751 #include <dlfcn.h>
11752 #endif
11753
11754 #include <stdio.h>
11755
11756 #ifdef RTLD_GLOBAL
11757 # define LT_DLGLOBAL RTLD_GLOBAL
11758 #else
11759 # ifdef DL_GLOBAL
11760 # define LT_DLGLOBAL DL_GLOBAL
11761 # else
11762 # define LT_DLGLOBAL 0
11763 # endif
11764 #endif
11765
11766 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11767 find out it does not work in some platform. */
11768 #ifndef LT_DLLAZY_OR_NOW
11769 # ifdef RTLD_LAZY
11770 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11771 # else
11772 # ifdef DL_LAZY
11773 # define LT_DLLAZY_OR_NOW DL_LAZY
11774 # else
11775 # ifdef RTLD_NOW
11776 # define LT_DLLAZY_OR_NOW RTLD_NOW
11777 # else
11778 # ifdef DL_NOW
11779 # define LT_DLLAZY_OR_NOW DL_NOW
11780 # else
11781 # define LT_DLLAZY_OR_NOW 0
11782 # endif
11783 # endif
11784 # endif
11785 # endif
11786 #endif
11787
11788 /* When -fvisbility=hidden is used, assume the code has been annotated
11789 correspondingly for the symbols needed. */
11790 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11791 int fnord () __attribute__((visibility("default")));
11792 #endif
11793
11794 int fnord () { return 42; }
11795 int main ()
11796 {
11797 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11798 int status = $lt_dlunknown;
11799
11800 if (self)
11801 {
11802 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11803 else
11804 {
11805 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11806 else puts (dlerror ());
11807 }
11808 /* dlclose (self); */
11809 }
11810 else
11811 puts (dlerror ());
11812
11813 return status;
11814 }
11815 _LT_EOF
11816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11817 (eval $ac_link) 2>&5
11818 ac_status=$?
11819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11820 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11821 (./conftest; exit; ) >&5 2>/dev/null
11822 lt_status=$?
11823 case x$lt_status in
11824 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11825 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11826 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11827 esac
11828 else :
11829 # compilation failed
11830 lt_cv_dlopen_self_static=no
11831 fi
11832 fi
11833 rm -fr conftest*
11834
11835
11836 fi
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11838 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11839 fi
11840
11841 CPPFLAGS="$save_CPPFLAGS"
11842 LDFLAGS="$save_LDFLAGS"
11843 LIBS="$save_LIBS"
11844 ;;
11845 esac
11846
11847 case $lt_cv_dlopen_self in
11848 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11849 *) enable_dlopen_self=unknown ;;
11850 esac
11851
11852 case $lt_cv_dlopen_self_static in
11853 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11854 *) enable_dlopen_self_static=unknown ;;
11855 esac
11856 fi
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874 striplib=
11875 old_striplib=
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11877 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11878 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11879 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11880 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11882 $as_echo "yes" >&6; }
11883 else
11884 # FIXME - insert some real tests, host_os isn't really good enough
11885 case $host_os in
11886 darwin*)
11887 if test -n "$STRIP" ; then
11888 striplib="$STRIP -x"
11889 old_striplib="$STRIP -S"
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11891 $as_echo "yes" >&6; }
11892 else
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11894 $as_echo "no" >&6; }
11895 fi
11896 ;;
11897 *)
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11899 $as_echo "no" >&6; }
11900 ;;
11901 esac
11902 fi
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915 # Report which library types will actually be built
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11917 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11919 $as_echo "$can_build_shared" >&6; }
11920
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11922 $as_echo_n "checking whether to build shared libraries... " >&6; }
11923 test "$can_build_shared" = "no" && enable_shared=no
11924
11925 # On AIX, shared libraries and static libraries use the same namespace, and
11926 # are all built from PIC.
11927 case $host_os in
11928 aix3*)
11929 test "$enable_shared" = yes && enable_static=no
11930 if test -n "$RANLIB"; then
11931 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11932 postinstall_cmds='$RANLIB $lib'
11933 fi
11934 ;;
11935
11936 aix[4-9]*)
11937 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11938 test "$enable_shared" = yes && enable_static=no
11939 fi
11940 ;;
11941 esac
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11943 $as_echo "$enable_shared" >&6; }
11944
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11946 $as_echo_n "checking whether to build static libraries... " >&6; }
11947 # Make sure either enable_shared or enable_static is yes.
11948 test "$enable_shared" = yes || enable_static=yes
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11950 $as_echo "$enable_static" >&6; }
11951
11952
11953
11954
11955 fi
11956 ac_ext=c
11957 ac_cpp='$CPP $CPPFLAGS'
11958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11961
11962 CC="$lt_save_CC"
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978 ac_config_commands="$ac_config_commands libtool"
11979
11980
11981
11982
11983 # Only expand once:
11984
11985
11986
11987
11988
11989 for ac_header in sys/socket.h netinet/in.h netdb.h windows.h winsock2.h
11990 do :
11991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11992 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11993 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11994 cat >>confdefs.h <<_ACEOF
11995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11996 _ACEOF
11997
11998 fi
11999
12000 done
12001
12002
12003 case $host in
12004 *beos*)
12005
12006 $as_echo "#define BEOS 1" >>confdefs.h
12007
12008 ;;
12009 *mingw*)
12010 MMS_LIBS="$MMS_LIBS -lws2_32"
12011 MMS_CFLAGS="-DWINVER=0x0600 -D_WIN32_WINNT=0x0600"
12012 ;;
12013 esac
12014
12015
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file support" >&5
12017 $as_echo_n "checking for large file support... " >&6; }
12018 if test "$cross_compiling" = yes; then :
12019
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12022
12023 else
12024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025 /* end confdefs.h. */
12026
12027 #define _LARGEFILE_SOURCE
12028 #define _FILE_OFFSET_BITS 64
12029 #include <sys/types.h>
12030 int main () { return !(sizeof(off_t) == 8); }
12031
12032 _ACEOF
12033 if ac_fn_c_try_run "$LINENO"; then :
12034
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12036 $as_echo "yes" >&6; }
12037 MMS_PKG_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
12038 echo "#define LIBMMS_HAVE_64BIT_OFF_T 1" >> confdefs.h
12039
12040 else
12041
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043 $as_echo "no" >&6; }
12044
12045 fi
12046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12047 conftest.$ac_objext conftest.beam conftest.$ac_ext
12048 fi
12049
12050
12051
12052
12053
12054
12055
12056 ac_config_files="$ac_config_files Makefile pkgconfig/Makefile pkgconfig/libmms.pc src/Makefile libmms.spec"
12057
12058 cat >confcache <<\_ACEOF
12059 # This file is a shell script that caches the results of configure
12060 # tests run on this system so they can be shared between configure
12061 # scripts and configure runs, see configure's option --config-cache.
12062 # It is not useful on other systems. If it contains results you don't
12063 # want to keep, you may remove or edit it.
12064 #
12065 # config.status only pays attention to the cache file if you give it
12066 # the --recheck option to rerun configure.
12067 #
12068 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12069 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12070 # following values.
12071
12072 _ACEOF
12073
12074 # The following way of writing the cache mishandles newlines in values,
12075 # but we know of no workaround that is simple, portable, and efficient.
12076 # So, we kill variables containing newlines.
12077 # Ultrix sh set writes to stderr and can't be redirected directly,
12078 # and sets the high bit in the cache file unless we assign to the vars.
12079 (
12080 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12081 eval ac_val=\$$ac_var
12082 case $ac_val in #(
12083 *${as_nl}*)
12084 case $ac_var in #(
12085 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12086 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12087 esac
12088 case $ac_var in #(
12089 _ | IFS | as_nl) ;; #(
12090 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12091 *) { eval $ac_var=; unset $ac_var;} ;;
12092 esac ;;
12093 esac
12094 done
12095
12096 (set) 2>&1 |
12097 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12098 *${as_nl}ac_space=\ *)
12099 # `set' does not quote correctly, so add quotes: double-quote
12100 # substitution turns \\\\ into \\, and sed turns \\ into \.
12101 sed -n \
12102 "s/'/'\\\\''/g;
12103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12104 ;; #(
12105 *)
12106 # `set' quotes correctly as required by POSIX, so do not add quotes.
12107 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12108 ;;
12109 esac |
12110 sort
12111 ) |
12112 sed '
12113 /^ac_cv_env_/b end
12114 t clear
12115 :clear
12116 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12117 t end
12118 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12119 :end' >>confcache
12120 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12121 if test -w "$cache_file"; then
12122 if test "x$cache_file" != "x/dev/null"; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12124 $as_echo "$as_me: updating cache $cache_file" >&6;}
12125 if test ! -f "$cache_file" || test -h "$cache_file"; then
12126 cat confcache >"$cache_file"
12127 else
12128 case $cache_file in #(
12129 */* | ?:*)
12130 mv -f confcache "$cache_file"$$ &&
12131 mv -f "$cache_file"$$ "$cache_file" ;; #(
12132 *)
12133 mv -f confcache "$cache_file" ;;
12134 esac
12135 fi
12136 fi
12137 else
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12139 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12140 fi
12141 fi
12142 rm -f confcache
12143
12144 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12145 # Let make expand exec_prefix.
12146 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12147
12148 DEFS=-DHAVE_CONFIG_H
12149
12150 ac_libobjs=
12151 ac_ltlibobjs=
12152 U=
12153 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12154 # 1. Remove the extension, and $U if already installed.
12155 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12156 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12157 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12158 # will be set to the directory where LIBOBJS objects are built.
12159 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12160 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12161 done
12162 LIBOBJS=$ac_libobjs
12163
12164 LTLIBOBJS=$ac_ltlibobjs
12165
12166
12167 if test -n "$EXEEXT"; then
12168 am__EXEEXT_TRUE=
12169 am__EXEEXT_FALSE='#'
12170 else
12171 am__EXEEXT_TRUE='#'
12172 am__EXEEXT_FALSE=
12173 fi
12174
12175 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12176 as_fn_error $? "conditional \"AMDEP\" was never defined.
12177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12178 fi
12179 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12180 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12182 fi
12183 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12184 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12186 fi
12187
12188 : "${CONFIG_STATUS=./config.status}"
12189 ac_write_fail=0
12190 ac_clean_files_save=$ac_clean_files
12191 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12193 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12194 as_write_fail=0
12195 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12196 #! $SHELL
12197 # Generated by $as_me.
12198 # Run this file to recreate the current configuration.
12199 # Compiler output produced by configure, useful for debugging
12200 # configure, is in config.log if it exists.
12201
12202 debug=false
12203 ac_cs_recheck=false
12204 ac_cs_silent=false
12205
12206 SHELL=\${CONFIG_SHELL-$SHELL}
12207 export SHELL
12208 _ASEOF
12209 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12210 ## -------------------- ##
12211 ## M4sh Initialization. ##
12212 ## -------------------- ##
12213
12214 # Be more Bourne compatible
12215 DUALCASE=1; export DUALCASE # for MKS sh
12216 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12217 emulate sh
12218 NULLCMD=:
12219 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12220 # is contrary to our usage. Disable this feature.
12221 alias -g '${1+"$@"}'='"$@"'
12222 setopt NO_GLOB_SUBST
12223 else
12224 case `(set -o) 2>/dev/null` in #(
12225 *posix*) :
12226 set -o posix ;; #(
12227 *) :
12228 ;;
12229 esac
12230 fi
12231
12232
12233 as_nl='
12234 '
12235 export as_nl
12236 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12237 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12238 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12239 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12240 # Prefer a ksh shell builtin over an external printf program on Solaris,
12241 # but without wasting forks for bash or zsh.
12242 if test -z "$BASH_VERSION$ZSH_VERSION" \
12243 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12244 as_echo='print -r --'
12245 as_echo_n='print -rn --'
12246 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12247 as_echo='printf %s\n'
12248 as_echo_n='printf %s'
12249 else
12250 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12251 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12252 as_echo_n='/usr/ucb/echo -n'
12253 else
12254 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12255 as_echo_n_body='eval
12256 arg=$1;
12257 case $arg in #(
12258 *"$as_nl"*)
12259 expr "X$arg" : "X\\(.*\\)$as_nl";
12260 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12261 esac;
12262 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12263 '
12264 export as_echo_n_body
12265 as_echo_n='sh -c $as_echo_n_body as_echo'
12266 fi
12267 export as_echo_body
12268 as_echo='sh -c $as_echo_body as_echo'
12269 fi
12270
12271 # The user is always right.
12272 if test "${PATH_SEPARATOR+set}" != set; then
12273 PATH_SEPARATOR=:
12274 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12275 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12276 PATH_SEPARATOR=';'
12277 }
12278 fi
12279
12280
12281 # IFS
12282 # We need space, tab and new line, in precisely that order. Quoting is
12283 # there to prevent editors from complaining about space-tab.
12284 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12285 # splitting by setting IFS to empty value.)
12286 IFS=" "" $as_nl"
12287
12288 # Find who we are. Look in the path if we contain no directory separator.
12289 as_myself=
12290 case $0 in #((
12291 *[\\/]* ) as_myself=$0 ;;
12292 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12293 for as_dir in $PATH
12294 do
12295 IFS=$as_save_IFS
12296 test -z "$as_dir" && as_dir=.
12297 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12298 done
12299 IFS=$as_save_IFS
12300
12301 ;;
12302 esac
12303 # We did not find ourselves, most probably we were run as `sh COMMAND'
12304 # in which case we are not to be found in the path.
12305 if test "x$as_myself" = x; then
12306 as_myself=$0
12307 fi
12308 if test ! -f "$as_myself"; then
12309 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12310 exit 1
12311 fi
12312
12313 # Unset variables that we do not need and which cause bugs (e.g. in
12314 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12315 # suppresses any "Segmentation fault" message there. '((' could
12316 # trigger a bug in pdksh 5.2.14.
12317 for as_var in BASH_ENV ENV MAIL MAILPATH
12318 do eval test x\${$as_var+set} = xset \
12319 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12320 done
12321 PS1='$ '
12322 PS2='> '
12323 PS4='+ '
12324
12325 # NLS nuisances.
12326 LC_ALL=C
12327 export LC_ALL
12328 LANGUAGE=C
12329 export LANGUAGE
12330
12331 # CDPATH.
12332 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12333
12334
12335 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12336 # ----------------------------------------
12337 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12338 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12339 # script with STATUS, using 1 if that was 0.
12340 as_fn_error ()
12341 {
12342 as_status=$1; test $as_status -eq 0 && as_status=1
12343 if test "$4"; then
12344 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12345 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12346 fi
12347 $as_echo "$as_me: error: $2" >&2
12348 as_fn_exit $as_status
12349 } # as_fn_error
12350
12351
12352 # as_fn_set_status STATUS
12353 # -----------------------
12354 # Set $? to STATUS, without forking.
12355 as_fn_set_status ()
12356 {
12357 return $1
12358 } # as_fn_set_status
12359
12360 # as_fn_exit STATUS
12361 # -----------------
12362 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12363 as_fn_exit ()
12364 {
12365 set +e
12366 as_fn_set_status $1
12367 exit $1
12368 } # as_fn_exit
12369
12370 # as_fn_unset VAR
12371 # ---------------
12372 # Portably unset VAR.
12373 as_fn_unset ()
12374 {
12375 { eval $1=; unset $1;}
12376 }
12377 as_unset=as_fn_unset
12378 # as_fn_append VAR VALUE
12379 # ----------------------
12380 # Append the text in VALUE to the end of the definition contained in VAR. Take
12381 # advantage of any shell optimizations that allow amortized linear growth over
12382 # repeated appends, instead of the typical quadratic growth present in naive
12383 # implementations.
12384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12385 eval 'as_fn_append ()
12386 {
12387 eval $1+=\$2
12388 }'
12389 else
12390 as_fn_append ()
12391 {
12392 eval $1=\$$1\$2
12393 }
12394 fi # as_fn_append
12395
12396 # as_fn_arith ARG...
12397 # ------------------
12398 # Perform arithmetic evaluation on the ARGs, and store the result in the
12399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12400 # must be portable across $(()) and expr.
12401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12402 eval 'as_fn_arith ()
12403 {
12404 as_val=$(( $* ))
12405 }'
12406 else
12407 as_fn_arith ()
12408 {
12409 as_val=`expr "$@" || test $? -eq 1`
12410 }
12411 fi # as_fn_arith
12412
12413
12414 if expr a : '\(a\)' >/dev/null 2>&1 &&
12415 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12416 as_expr=expr
12417 else
12418 as_expr=false
12419 fi
12420
12421 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12422 as_basename=basename
12423 else
12424 as_basename=false
12425 fi
12426
12427 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12428 as_dirname=dirname
12429 else
12430 as_dirname=false
12431 fi
12432
12433 as_me=`$as_basename -- "$0" ||
12434 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12435 X"$0" : 'X\(//\)$' \| \
12436 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12437 $as_echo X/"$0" |
12438 sed '/^.*\/\([^/][^/]*\)\/*$/{
12439 s//\1/
12440 q
12441 }
12442 /^X\/\(\/\/\)$/{
12443 s//\1/
12444 q
12445 }
12446 /^X\/\(\/\).*/{
12447 s//\1/
12448 q
12449 }
12450 s/.*/./; q'`
12451
12452 # Avoid depending upon Character Ranges.
12453 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12454 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12455 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12456 as_cr_digits='0123456789'
12457 as_cr_alnum=$as_cr_Letters$as_cr_digits
12458
12459 ECHO_C= ECHO_N= ECHO_T=
12460 case `echo -n x` in #(((((
12461 -n*)
12462 case `echo 'xy\c'` in
12463 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12464 xy) ECHO_C='\c';;
12465 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12466 ECHO_T=' ';;
12467 esac;;
12468 *)
12469 ECHO_N='-n';;
12470 esac
12471
12472 rm -f conf$$ conf$$.exe conf$$.file
12473 if test -d conf$$.dir; then
12474 rm -f conf$$.dir/conf$$.file
12475 else
12476 rm -f conf$$.dir
12477 mkdir conf$$.dir 2>/dev/null
12478 fi
12479 if (echo >conf$$.file) 2>/dev/null; then
12480 if ln -s conf$$.file conf$$ 2>/dev/null; then
12481 as_ln_s='ln -s'
12482 # ... but there are two gotchas:
12483 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12484 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12485 # In both cases, we have to default to `cp -pR'.
12486 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12487 as_ln_s='cp -pR'
12488 elif ln conf$$.file conf$$ 2>/dev/null; then
12489 as_ln_s=ln
12490 else
12491 as_ln_s='cp -pR'
12492 fi
12493 else
12494 as_ln_s='cp -pR'
12495 fi
12496 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12497 rmdir conf$$.dir 2>/dev/null
12498
12499
12500 # as_fn_mkdir_p
12501 # -------------
12502 # Create "$as_dir" as a directory, including parents if necessary.
12503 as_fn_mkdir_p ()
12504 {
12505
12506 case $as_dir in #(
12507 -*) as_dir=./$as_dir;;
12508 esac
12509 test -d "$as_dir" || eval $as_mkdir_p || {
12510 as_dirs=
12511 while :; do
12512 case $as_dir in #(
12513 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12514 *) as_qdir=$as_dir;;
12515 esac
12516 as_dirs="'$as_qdir' $as_dirs"
12517 as_dir=`$as_dirname -- "$as_dir" ||
12518 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12519 X"$as_dir" : 'X\(//\)[^/]' \| \
12520 X"$as_dir" : 'X\(//\)$' \| \
12521 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12522 $as_echo X"$as_dir" |
12523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12524 s//\1/
12525 q
12526 }
12527 /^X\(\/\/\)[^/].*/{
12528 s//\1/
12529 q
12530 }
12531 /^X\(\/\/\)$/{
12532 s//\1/
12533 q
12534 }
12535 /^X\(\/\).*/{
12536 s//\1/
12537 q
12538 }
12539 s/.*/./; q'`
12540 test -d "$as_dir" && break
12541 done
12542 test -z "$as_dirs" || eval "mkdir $as_dirs"
12543 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12544
12545
12546 } # as_fn_mkdir_p
12547 if mkdir -p . 2>/dev/null; then
12548 as_mkdir_p='mkdir -p "$as_dir"'
12549 else
12550 test -d ./-p && rmdir ./-p
12551 as_mkdir_p=false
12552 fi
12553
12554
12555 # as_fn_executable_p FILE
12556 # -----------------------
12557 # Test if FILE is an executable regular file.
12558 as_fn_executable_p ()
12559 {
12560 test -f "$1" && test -x "$1"
12561 } # as_fn_executable_p
12562 as_test_x='test -x'
12563 as_executable_p=as_fn_executable_p
12564
12565 # Sed expression to map a string onto a valid CPP name.
12566 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12567
12568 # Sed expression to map a string onto a valid variable name.
12569 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12570
12571
12572 exec 6>&1
12573 ## ----------------------------------- ##
12574 ## Main body of $CONFIG_STATUS script. ##
12575 ## ----------------------------------- ##
12576 _ASEOF
12577 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12578
12579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12580 # Save the log message, to keep $0 and so on meaningful, and to
12581 # report actual input values of CONFIG_FILES etc. instead of their
12582 # values after options handling.
12583 ac_log="
12584 This file was extended by libmms $as_me 0.6.4, which was
12585 generated by GNU Autoconf 2.69. Invocation command line was
12586
12587 CONFIG_FILES = $CONFIG_FILES
12588 CONFIG_HEADERS = $CONFIG_HEADERS
12589 CONFIG_LINKS = $CONFIG_LINKS
12590 CONFIG_COMMANDS = $CONFIG_COMMANDS
12591 $ $0 $@
12592
12593 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12594 "
12595
12596 _ACEOF
12597
12598 case $ac_config_files in *"
12599 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12600 esac
12601
12602 case $ac_config_headers in *"
12603 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12604 esac
12605
12606
12607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12608 # Files that config.status was made for.
12609 config_files="$ac_config_files"
12610 config_headers="$ac_config_headers"
12611 config_commands="$ac_config_commands"
12612
12613 _ACEOF
12614
12615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12616 ac_cs_usage="\
12617 \`$as_me' instantiates files and other configuration actions
12618 from templates according to the current configuration. Unless the files
12619 and actions are specified as TAGs, all are instantiated by default.
12620
12621 Usage: $0 [OPTION]... [TAG]...
12622
12623 -h, --help print this help, then exit
12624 -V, --version print version number and configuration settings, then exit
12625 --config print configuration, then exit
12626 -q, --quiet, --silent
12627 do not print progress messages
12628 -d, --debug don't remove temporary files
12629 --recheck update $as_me by reconfiguring in the same conditions
12630 --file=FILE[:TEMPLATE]
12631 instantiate the configuration file FILE
12632 --header=FILE[:TEMPLATE]
12633 instantiate the configuration header FILE
12634
12635 Configuration files:
12636 $config_files
12637
12638 Configuration headers:
12639 $config_headers
12640
12641 Configuration commands:
12642 $config_commands
12643
12644 Report bugs to the package provider."
12645
12646 _ACEOF
12647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12648 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12649 ac_cs_version="\\
12650 libmms config.status 0.6.4
12651 configured by $0, generated by GNU Autoconf 2.69,
12652 with options \\"\$ac_cs_config\\"
12653
12654 Copyright (C) 2012 Free Software Foundation, Inc.
12655 This config.status script is free software; the Free Software Foundation
12656 gives unlimited permission to copy, distribute and modify it."
12657
12658 ac_pwd='$ac_pwd'
12659 srcdir='$srcdir'
12660 INSTALL='$INSTALL'
12661 MKDIR_P='$MKDIR_P'
12662 AWK='$AWK'
12663 test -n "\$AWK" || AWK=awk
12664 _ACEOF
12665
12666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12667 # The default lists apply if the user does not specify any file.
12668 ac_need_defaults=:
12669 while test $# != 0
12670 do
12671 case $1 in
12672 --*=?*)
12673 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12674 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12675 ac_shift=:
12676 ;;
12677 --*=)
12678 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12679 ac_optarg=
12680 ac_shift=:
12681 ;;
12682 *)
12683 ac_option=$1
12684 ac_optarg=$2
12685 ac_shift=shift
12686 ;;
12687 esac
12688
12689 case $ac_option in
12690 # Handling of the options.
12691 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12692 ac_cs_recheck=: ;;
12693 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12694 $as_echo "$ac_cs_version"; exit ;;
12695 --config | --confi | --conf | --con | --co | --c )
12696 $as_echo "$ac_cs_config"; exit ;;
12697 --debug | --debu | --deb | --de | --d | -d )
12698 debug=: ;;
12699 --file | --fil | --fi | --f )
12700 $ac_shift
12701 case $ac_optarg in
12702 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12703 '') as_fn_error $? "missing file argument" ;;
12704 esac
12705 as_fn_append CONFIG_FILES " '$ac_optarg'"
12706 ac_need_defaults=false;;
12707 --header | --heade | --head | --hea )
12708 $ac_shift
12709 case $ac_optarg in
12710 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12711 esac
12712 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12713 ac_need_defaults=false;;
12714 --he | --h)
12715 # Conflict between --help and --header
12716 as_fn_error $? "ambiguous option: \`$1'
12717 Try \`$0 --help' for more information.";;
12718 --help | --hel | -h )
12719 $as_echo "$ac_cs_usage"; exit ;;
12720 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12721 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12722 ac_cs_silent=: ;;
12723
12724 # This is an error.
12725 -*) as_fn_error $? "unrecognized option: \`$1'
12726 Try \`$0 --help' for more information." ;;
12727
12728 *) as_fn_append ac_config_targets " $1"
12729 ac_need_defaults=false ;;
12730
12731 esac
12732 shift
12733 done
12734
12735 ac_configure_extra_args=
12736
12737 if $ac_cs_silent; then
12738 exec 6>/dev/null
12739 ac_configure_extra_args="$ac_configure_extra_args --silent"
12740 fi
12741
12742 _ACEOF
12743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12744 if \$ac_cs_recheck; then
12745 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12746 shift
12747 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12748 CONFIG_SHELL='$SHELL'
12749 export CONFIG_SHELL
12750 exec "\$@"
12751 fi
12752
12753 _ACEOF
12754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12755 exec 5>>config.log
12756 {
12757 echo
12758 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12759 ## Running $as_me. ##
12760 _ASBOX
12761 $as_echo "$ac_log"
12762 } >&5
12763
12764 _ACEOF
12765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12766 #
12767 # INIT-COMMANDS
12768 #
12769 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12770
12771
12772 # The HP-UX ksh and POSIX shell print the target directory to stdout
12773 # if CDPATH is set.
12774 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12775
12776 sed_quote_subst='$sed_quote_subst'
12777 double_quote_subst='$double_quote_subst'
12778 delay_variable_subst='$delay_variable_subst'
12779 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12780 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12781 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12782 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12783 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12784 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12785 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12786 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12787 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12788 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12789 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12790 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12791 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12792 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12793 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12794 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12795 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12796 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12797 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12798 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12799 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12800 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12801 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12802 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12803 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12804 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12805 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12806 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12807 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12808 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12809 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12810 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12811 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12812 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12813 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12814 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12815 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12816 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12817 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12818 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12819 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12820 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12821 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12822 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12823 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12824 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12825 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12826 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12827 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12828 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12829 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12830 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12831 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12832 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12833 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12834 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12835 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"`'
12836 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12837 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12838 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12839 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12840 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12841 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12842 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12843 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12844 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12845 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12846 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12847 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12848 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12849 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12850 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12851 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12852 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12853 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12854 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12855 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12856 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12857 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12858 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12859 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12860 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12861 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12862 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12863 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12864 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12865 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12866 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12867 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12868 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12869 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12870 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12871 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12872 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12873 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12874 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12875 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12876 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12877 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12878 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12879 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12880 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12881 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12882 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12883 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12884 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12885 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12886 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12887 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12888 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12889 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12890 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12891 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12892 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12893 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12894 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12895 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12896 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12897 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12898 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12899 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12900 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12901 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12902 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12903 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12904 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12905 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12906 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12907 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12908 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12909
12910 LTCC='$LTCC'
12911 LTCFLAGS='$LTCFLAGS'
12912 compiler='$compiler_DEFAULT'
12913
12914 # A function that is used when there is no print builtin or printf.
12915 func_fallback_echo ()
12916 {
12917 eval 'cat <<_LTECHO_EOF
12918 \$1
12919 _LTECHO_EOF'
12920 }
12921
12922 # Quote evaled strings.
12923 for var in SHELL \
12924 ECHO \
12925 PATH_SEPARATOR \
12926 SED \
12927 GREP \
12928 EGREP \
12929 FGREP \
12930 LD \
12931 NM \
12932 LN_S \
12933 lt_SP2NL \
12934 lt_NL2SP \
12935 reload_flag \
12936 OBJDUMP \
12937 deplibs_check_method \
12938 file_magic_cmd \
12939 file_magic_glob \
12940 want_nocaseglob \
12941 DLLTOOL \
12942 sharedlib_from_linklib_cmd \
12943 AR \
12944 AR_FLAGS \
12945 archiver_list_spec \
12946 STRIP \
12947 RANLIB \
12948 CC \
12949 CFLAGS \
12950 compiler \
12951 lt_cv_sys_global_symbol_pipe \
12952 lt_cv_sys_global_symbol_to_cdecl \
12953 lt_cv_sys_global_symbol_to_c_name_address \
12954 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12955 nm_file_list_spec \
12956 lt_prog_compiler_no_builtin_flag \
12957 lt_prog_compiler_pic \
12958 lt_prog_compiler_wl \
12959 lt_prog_compiler_static \
12960 lt_cv_prog_compiler_c_o \
12961 need_locks \
12962 MANIFEST_TOOL \
12963 DSYMUTIL \
12964 NMEDIT \
12965 LIPO \
12966 OTOOL \
12967 OTOOL64 \
12968 shrext_cmds \
12969 export_dynamic_flag_spec \
12970 whole_archive_flag_spec \
12971 compiler_needs_object \
12972 with_gnu_ld \
12973 allow_undefined_flag \
12974 no_undefined_flag \
12975 hardcode_libdir_flag_spec \
12976 hardcode_libdir_separator \
12977 exclude_expsyms \
12978 include_expsyms \
12979 file_list_spec \
12980 variables_saved_for_relink \
12981 libname_spec \
12982 library_names_spec \
12983 soname_spec \
12984 install_override_mode \
12985 finish_eval \
12986 old_striplib \
12987 striplib; do
12988 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12989 *[\\\\\\\`\\"\\\$]*)
12990 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12991 ;;
12992 *)
12993 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12994 ;;
12995 esac
12996 done
12997
12998 # Double-quote double-evaled strings.
12999 for var in reload_cmds \
13000 old_postinstall_cmds \
13001 old_postuninstall_cmds \
13002 old_archive_cmds \
13003 extract_expsyms_cmds \
13004 old_archive_from_new_cmds \
13005 old_archive_from_expsyms_cmds \
13006 archive_cmds \
13007 archive_expsym_cmds \
13008 module_cmds \
13009 module_expsym_cmds \
13010 export_symbols_cmds \
13011 prelink_cmds \
13012 postlink_cmds \
13013 postinstall_cmds \
13014 postuninstall_cmds \
13015 finish_cmds \
13016 sys_lib_search_path_spec \
13017 sys_lib_dlsearch_path_spec; do
13018 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13019 *[\\\\\\\`\\"\\\$]*)
13020 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13021 ;;
13022 *)
13023 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13024 ;;
13025 esac
13026 done
13027
13028 ac_aux_dir='$ac_aux_dir'
13029 xsi_shell='$xsi_shell'
13030 lt_shell_append='$lt_shell_append'
13031
13032 # See if we are running on zsh, and set the options which allow our
13033 # commands through without removal of \ escapes INIT.
13034 if test -n "\${ZSH_VERSION+set}" ; then
13035 setopt NO_GLOB_SUBST
13036 fi
13037
13038
13039 PACKAGE='$PACKAGE'
13040 VERSION='$VERSION'
13041 TIMESTAMP='$TIMESTAMP'
13042 RM='$RM'
13043 ofile='$ofile'
13044
13045
13046
13047
13048 _ACEOF
13049
13050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13051
13052 # Handling of arguments.
13053 for ac_config_target in $ac_config_targets
13054 do
13055 case $ac_config_target in
13056 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13057 "src/mms_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/mms_config.h" ;;
13058 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13059 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13060 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13061 "pkgconfig/Makefile") CONFIG_FILES="$CONFIG_FILES pkgconfig/Makefile" ;;
13062 "pkgconfig/libmms.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libmms.pc" ;;
13063 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13064 "libmms.spec") CONFIG_FILES="$CONFIG_FILES libmms.spec" ;;
13065
13066 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13067 esac
13068 done
13069
13070
13071 # If the user did not use the arguments to specify the items to instantiate,
13072 # then the envvar interface is used. Set only those that are not.
13073 # We use the long form for the default assignment because of an extremely
13074 # bizarre bug on SunOS 4.1.3.
13075 if $ac_need_defaults; then
13076 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13077 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13078 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13079 fi
13080
13081 # Have a temporary directory for convenience. Make it in the build tree
13082 # simply because there is no reason against having it here, and in addition,
13083 # creating and moving files from /tmp can sometimes cause problems.
13084 # Hook for its removal unless debugging.
13085 # Note that there is a small window in which the directory will not be cleaned:
13086 # after its creation but before its name has been assigned to `$tmp'.
13087 $debug ||
13088 {
13089 tmp= ac_tmp=
13090 trap 'exit_status=$?
13091 : "${ac_tmp:=$tmp}"
13092 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13093 ' 0
13094 trap 'as_fn_exit 1' 1 2 13 15
13095 }
13096 # Create a (secure) tmp directory for tmp files.
13097
13098 {
13099 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13100 test -d "$tmp"
13101 } ||
13102 {
13103 tmp=./conf$$-$RANDOM
13104 (umask 077 && mkdir "$tmp")
13105 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13106 ac_tmp=$tmp
13107
13108 # Set up the scripts for CONFIG_FILES section.
13109 # No need to generate them if there are no CONFIG_FILES.
13110 # This happens for instance with `./config.status config.h'.
13111 if test -n "$CONFIG_FILES"; then
13112
13113
13114 ac_cr=`echo X | tr X '\015'`
13115 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13116 # But we know of no other shell where ac_cr would be empty at this
13117 # point, so we can use a bashism as a fallback.
13118 if test "x$ac_cr" = x; then
13119 eval ac_cr=\$\'\\r\'
13120 fi
13121 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13122 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13123 ac_cs_awk_cr='\\r'
13124 else
13125 ac_cs_awk_cr=$ac_cr
13126 fi
13127
13128 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13129 _ACEOF
13130
13131
13132 {
13133 echo "cat >conf$$subs.awk <<_ACEOF" &&
13134 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13135 echo "_ACEOF"
13136 } >conf$$subs.sh ||
13137 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13138 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13139 ac_delim='%!_!# '
13140 for ac_last_try in false false false false false :; do
13141 . ./conf$$subs.sh ||
13142 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13143
13144 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13145 if test $ac_delim_n = $ac_delim_num; then
13146 break
13147 elif $ac_last_try; then
13148 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13149 else
13150 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13151 fi
13152 done
13153 rm -f conf$$subs.sh
13154
13155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13156 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13157 _ACEOF
13158 sed -n '
13159 h
13160 s/^/S["/; s/!.*/"]=/
13161 p
13162 g
13163 s/^[^!]*!//
13164 :repl
13165 t repl
13166 s/'"$ac_delim"'$//
13167 t delim
13168 :nl
13169 h
13170 s/\(.\{148\}\)..*/\1/
13171 t more1
13172 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13173 p
13174 n
13175 b repl
13176 :more1
13177 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13178 p
13179 g
13180 s/.\{148\}//
13181 t nl
13182 :delim
13183 h
13184 s/\(.\{148\}\)..*/\1/
13185 t more2
13186 s/["\\]/\\&/g; s/^/"/; s/$/"/
13187 p
13188 b
13189 :more2
13190 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13191 p
13192 g
13193 s/.\{148\}//
13194 t delim
13195 ' <conf$$subs.awk | sed '
13196 /^[^""]/{
13197 N
13198 s/\n//
13199 }
13200 ' >>$CONFIG_STATUS || ac_write_fail=1
13201 rm -f conf$$subs.awk
13202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13203 _ACAWK
13204 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13205 for (key in S) S_is_set[key] = 1
13206 FS = ""
13207
13208 }
13209 {
13210 line = $ 0
13211 nfields = split(line, field, "@")
13212 substed = 0
13213 len = length(field[1])
13214 for (i = 2; i < nfields; i++) {
13215 key = field[i]
13216 keylen = length(key)
13217 if (S_is_set[key]) {
13218 value = S[key]
13219 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13220 len += length(value) + length(field[++i])
13221 substed = 1
13222 } else
13223 len += 1 + keylen
13224 }
13225
13226 print line
13227 }
13228
13229 _ACAWK
13230 _ACEOF
13231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13232 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13233 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13234 else
13235 cat
13236 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13237 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13238 _ACEOF
13239
13240 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13241 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13242 # trailing colons and then remove the whole line if VPATH becomes empty
13243 # (actually we leave an empty line to preserve line numbers).
13244 if test "x$srcdir" = x.; then
13245 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13246 h
13247 s///
13248 s/^/:/
13249 s/[ ]*$/:/
13250 s/:\$(srcdir):/:/g
13251 s/:\${srcdir}:/:/g
13252 s/:@srcdir@:/:/g
13253 s/^:*//
13254 s/:*$//
13255 x
13256 s/\(=[ ]*\).*/\1/
13257 G
13258 s/\n//
13259 s/^[^=]*=[ ]*$//
13260 }'
13261 fi
13262
13263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13264 fi # test -n "$CONFIG_FILES"
13265
13266 # Set up the scripts for CONFIG_HEADERS section.
13267 # No need to generate them if there are no CONFIG_HEADERS.
13268 # This happens for instance with `./config.status Makefile'.
13269 if test -n "$CONFIG_HEADERS"; then
13270 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13271 BEGIN {
13272 _ACEOF
13273
13274 # Transform confdefs.h into an awk script `defines.awk', embedded as
13275 # here-document in config.status, that substitutes the proper values into
13276 # config.h.in to produce config.h.
13277
13278 # Create a delimiter string that does not exist in confdefs.h, to ease
13279 # handling of long lines.
13280 ac_delim='%!_!# '
13281 for ac_last_try in false false :; do
13282 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13283 if test -z "$ac_tt"; then
13284 break
13285 elif $ac_last_try; then
13286 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13287 else
13288 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13289 fi
13290 done
13291
13292 # For the awk script, D is an array of macro values keyed by name,
13293 # likewise P contains macro parameters if any. Preserve backslash
13294 # newline sequences.
13295
13296 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13297 sed -n '
13298 s/.\{148\}/&'"$ac_delim"'/g
13299 t rset
13300 :rset
13301 s/^[ ]*#[ ]*define[ ][ ]*/ /
13302 t def
13303 d
13304 :def
13305 s/\\$//
13306 t bsnl
13307 s/["\\]/\\&/g
13308 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13309 D["\1"]=" \3"/p
13310 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13311 d
13312 :bsnl
13313 s/["\\]/\\&/g
13314 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13315 D["\1"]=" \3\\\\\\n"\\/p
13316 t cont
13317 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13318 t cont
13319 d
13320 :cont
13321 n
13322 s/.\{148\}/&'"$ac_delim"'/g
13323 t clear
13324 :clear
13325 s/\\$//
13326 t bsnlc
13327 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13328 d
13329 :bsnlc
13330 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13331 b cont
13332 ' <confdefs.h | sed '
13333 s/'"$ac_delim"'/"\\\
13334 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13335
13336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13337 for (key in D) D_is_set[key] = 1
13338 FS = ""
13339 }
13340 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13341 line = \$ 0
13342 split(line, arg, " ")
13343 if (arg[1] == "#") {
13344 defundef = arg[2]
13345 mac1 = arg[3]
13346 } else {
13347 defundef = substr(arg[1], 2)
13348 mac1 = arg[2]
13349 }
13350 split(mac1, mac2, "(") #)
13351 macro = mac2[1]
13352 prefix = substr(line, 1, index(line, defundef) - 1)
13353 if (D_is_set[macro]) {
13354 # Preserve the white space surrounding the "#".
13355 print prefix "define", macro P[macro] D[macro]
13356 next
13357 } else {
13358 # Replace #undef with comments. This is necessary, for example,
13359 # in the case of _POSIX_SOURCE, which is predefined and required
13360 # on some systems where configure will not decide to define it.
13361 if (defundef == "undef") {
13362 print "/*", prefix defundef, macro, "*/"
13363 next
13364 }
13365 }
13366 }
13367 { print }
13368 _ACAWK
13369 _ACEOF
13370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13371 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13372 fi # test -n "$CONFIG_HEADERS"
13373
13374
13375 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13376 shift
13377 for ac_tag
13378 do
13379 case $ac_tag in
13380 :[FHLC]) ac_mode=$ac_tag; continue;;
13381 esac
13382 case $ac_mode$ac_tag in
13383 :[FHL]*:*);;
13384 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13385 :[FH]-) ac_tag=-:-;;
13386 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13387 esac
13388 ac_save_IFS=$IFS
13389 IFS=:
13390 set x $ac_tag
13391 IFS=$ac_save_IFS
13392 shift
13393 ac_file=$1
13394 shift
13395
13396 case $ac_mode in
13397 :L) ac_source=$1;;
13398 :[FH])
13399 ac_file_inputs=
13400 for ac_f
13401 do
13402 case $ac_f in
13403 -) ac_f="$ac_tmp/stdin";;
13404 *) # Look for the file first in the build tree, then in the source tree
13405 # (if the path is not absolute). The absolute path cannot be DOS-style,
13406 # because $ac_f cannot contain `:'.
13407 test -f "$ac_f" ||
13408 case $ac_f in
13409 [\\/$]*) false;;
13410 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13411 esac ||
13412 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13413 esac
13414 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13415 as_fn_append ac_file_inputs " '$ac_f'"
13416 done
13417
13418 # Let's still pretend it is `configure' which instantiates (i.e., don't
13419 # use $as_me), people would be surprised to read:
13420 # /* config.h. Generated by config.status. */
13421 configure_input='Generated from '`
13422 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13423 `' by configure.'
13424 if test x"$ac_file" != x-; then
13425 configure_input="$ac_file. $configure_input"
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13427 $as_echo "$as_me: creating $ac_file" >&6;}
13428 fi
13429 # Neutralize special characters interpreted by sed in replacement strings.
13430 case $configure_input in #(
13431 *\&* | *\|* | *\\* )
13432 ac_sed_conf_input=`$as_echo "$configure_input" |
13433 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13434 *) ac_sed_conf_input=$configure_input;;
13435 esac
13436
13437 case $ac_tag in
13438 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13439 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13440 esac
13441 ;;
13442 esac
13443
13444 ac_dir=`$as_dirname -- "$ac_file" ||
13445 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13446 X"$ac_file" : 'X\(//\)[^/]' \| \
13447 X"$ac_file" : 'X\(//\)$' \| \
13448 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13449 $as_echo X"$ac_file" |
13450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13451 s//\1/
13452 q
13453 }
13454 /^X\(\/\/\)[^/].*/{
13455 s//\1/
13456 q
13457 }
13458 /^X\(\/\/\)$/{
13459 s//\1/
13460 q
13461 }
13462 /^X\(\/\).*/{
13463 s//\1/
13464 q
13465 }
13466 s/.*/./; q'`
13467 as_dir="$ac_dir"; as_fn_mkdir_p
13468 ac_builddir=.
13469
13470 case "$ac_dir" in
13471 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13472 *)
13473 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13474 # A ".." for each directory in $ac_dir_suffix.
13475 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13476 case $ac_top_builddir_sub in
13477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13479 esac ;;
13480 esac
13481 ac_abs_top_builddir=$ac_pwd
13482 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13483 # for backward compatibility:
13484 ac_top_builddir=$ac_top_build_prefix
13485
13486 case $srcdir in
13487 .) # We are building in place.
13488 ac_srcdir=.
13489 ac_top_srcdir=$ac_top_builddir_sub
13490 ac_abs_top_srcdir=$ac_pwd ;;
13491 [\\/]* | ?:[\\/]* ) # Absolute name.
13492 ac_srcdir=$srcdir$ac_dir_suffix;
13493 ac_top_srcdir=$srcdir
13494 ac_abs_top_srcdir=$srcdir ;;
13495 *) # Relative name.
13496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13497 ac_top_srcdir=$ac_top_build_prefix$srcdir
13498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13499 esac
13500 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13501
13502
13503 case $ac_mode in
13504 :F)
13505 #
13506 # CONFIG_FILE
13507 #
13508
13509 case $INSTALL in
13510 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13511 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13512 esac
13513 ac_MKDIR_P=$MKDIR_P
13514 case $MKDIR_P in
13515 [\\/$]* | ?:[\\/]* ) ;;
13516 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13517 esac
13518 _ACEOF
13519
13520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13521 # If the template does not know about datarootdir, expand it.
13522 # FIXME: This hack should be removed a few years after 2.60.
13523 ac_datarootdir_hack=; ac_datarootdir_seen=
13524 ac_sed_dataroot='
13525 /datarootdir/ {
13526 p
13527 q
13528 }
13529 /@datadir@/p
13530 /@docdir@/p
13531 /@infodir@/p
13532 /@localedir@/p
13533 /@mandir@/p'
13534 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13535 *datarootdir*) ac_datarootdir_seen=yes;;
13536 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13538 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13539 _ACEOF
13540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13541 ac_datarootdir_hack='
13542 s&@datadir@&$datadir&g
13543 s&@docdir@&$docdir&g
13544 s&@infodir@&$infodir&g
13545 s&@localedir@&$localedir&g
13546 s&@mandir@&$mandir&g
13547 s&\\\${datarootdir}&$datarootdir&g' ;;
13548 esac
13549 _ACEOF
13550
13551 # Neutralize VPATH when `$srcdir' = `.'.
13552 # Shell code in configure.ac might set extrasub.
13553 # FIXME: do we really want to maintain this feature?
13554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13555 ac_sed_extra="$ac_vpsub
13556 $extrasub
13557 _ACEOF
13558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13559 :t
13560 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13561 s|@configure_input@|$ac_sed_conf_input|;t t
13562 s&@top_builddir@&$ac_top_builddir_sub&;t t
13563 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13564 s&@srcdir@&$ac_srcdir&;t t
13565 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13566 s&@top_srcdir@&$ac_top_srcdir&;t t
13567 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13568 s&@builddir@&$ac_builddir&;t t
13569 s&@abs_builddir@&$ac_abs_builddir&;t t
13570 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13571 s&@INSTALL@&$ac_INSTALL&;t t
13572 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13573 $ac_datarootdir_hack
13574 "
13575 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13576 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13577
13578 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13579 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13580 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13581 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13583 which seems to be undefined. Please make sure it is defined" >&5
13584 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13585 which seems to be undefined. Please make sure it is defined" >&2;}
13586
13587 rm -f "$ac_tmp/stdin"
13588 case $ac_file in
13589 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13590 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13591 esac \
13592 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13593 ;;
13594 :H)
13595 #
13596 # CONFIG_HEADER
13597 #
13598 if test x"$ac_file" != x-; then
13599 {
13600 $as_echo "/* $configure_input */" \
13601 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13602 } >"$ac_tmp/config.h" \
13603 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13604 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13606 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13607 else
13608 rm -f "$ac_file"
13609 mv "$ac_tmp/config.h" "$ac_file" \
13610 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13611 fi
13612 else
13613 $as_echo "/* $configure_input */" \
13614 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13615 || as_fn_error $? "could not create -" "$LINENO" 5
13616 fi
13617 # Compute "$ac_file"'s index in $config_headers.
13618 _am_arg="$ac_file"
13619 _am_stamp_count=1
13620 for _am_header in $config_headers :; do
13621 case $_am_header in
13622 $_am_arg | $_am_arg:* )
13623 break ;;
13624 * )
13625 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13626 esac
13627 done
13628 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13629 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13630 X"$_am_arg" : 'X\(//\)[^/]' \| \
13631 X"$_am_arg" : 'X\(//\)$' \| \
13632 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13633 $as_echo X"$_am_arg" |
13634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13635 s//\1/
13636 q
13637 }
13638 /^X\(\/\/\)[^/].*/{
13639 s//\1/
13640 q
13641 }
13642 /^X\(\/\/\)$/{
13643 s//\1/
13644 q
13645 }
13646 /^X\(\/\).*/{
13647 s//\1/
13648 q
13649 }
13650 s/.*/./; q'`/stamp-h$_am_stamp_count
13651 ;;
13652
13653 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13654 $as_echo "$as_me: executing $ac_file commands" >&6;}
13655 ;;
13656 esac
13657
13658
13659 case $ac_file$ac_mode in
13660 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13661 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13662 # are listed without --file. Let's play safe and only enable the eval
13663 # if we detect the quoting.
13664 case $CONFIG_FILES in
13665 *\'*) eval set x "$CONFIG_FILES" ;;
13666 *) set x $CONFIG_FILES ;;
13667 esac
13668 shift
13669 for mf
13670 do
13671 # Strip MF so we end up with the name of the file.
13672 mf=`echo "$mf" | sed -e 's/:.*$//'`
13673 # Check whether this is an Automake generated Makefile or not.
13674 # We used to match only the files named `Makefile.in', but
13675 # some people rename them; so instead we look at the file content.
13676 # Grep'ing the first line is not enough: some people post-process
13677 # each Makefile.in and add a new line on top of each file to say so.
13678 # Grep'ing the whole file is not good either: AIX grep has a line
13679 # limit of 2048, but all sed's we know have understand at least 4000.
13680 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13681 dirpart=`$as_dirname -- "$mf" ||
13682 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13683 X"$mf" : 'X\(//\)[^/]' \| \
13684 X"$mf" : 'X\(//\)$' \| \
13685 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13686 $as_echo X"$mf" |
13687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13688 s//\1/
13689 q
13690 }
13691 /^X\(\/\/\)[^/].*/{
13692 s//\1/
13693 q
13694 }
13695 /^X\(\/\/\)$/{
13696 s//\1/
13697 q
13698 }
13699 /^X\(\/\).*/{
13700 s//\1/
13701 q
13702 }
13703 s/.*/./; q'`
13704 else
13705 continue
13706 fi
13707 # Extract the definition of DEPDIR, am__include, and am__quote
13708 # from the Makefile without running `make'.
13709 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13710 test -z "$DEPDIR" && continue
13711 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13712 test -z "am__include" && continue
13713 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13714 # When using ansi2knr, U may be empty or an underscore; expand it
13715 U=`sed -n 's/^U = //p' < "$mf"`
13716 # Find all dependency output files, they are included files with
13717 # $(DEPDIR) in their names. We invoke sed twice because it is the
13718 # simplest approach to changing $(DEPDIR) to its actual value in the
13719 # expansion.
13720 for file in `sed -n "
13721 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13722 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13723 # Make sure the directory exists.
13724 test -f "$dirpart/$file" && continue
13725 fdir=`$as_dirname -- "$file" ||
13726 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13727 X"$file" : 'X\(//\)[^/]' \| \
13728 X"$file" : 'X\(//\)$' \| \
13729 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13730 $as_echo X"$file" |
13731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13732 s//\1/
13733 q
13734 }
13735 /^X\(\/\/\)[^/].*/{
13736 s//\1/
13737 q
13738 }
13739 /^X\(\/\/\)$/{
13740 s//\1/
13741 q
13742 }
13743 /^X\(\/\).*/{
13744 s//\1/
13745 q
13746 }
13747 s/.*/./; q'`
13748 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13749 # echo "creating $dirpart/$file"
13750 echo '# dummy' > "$dirpart/$file"
13751 done
13752 done
13753 }
13754 ;;
13755 "libtool":C)
13756
13757 # See if we are running on zsh, and set the options which allow our
13758 # commands through without removal of \ escapes.
13759 if test -n "${ZSH_VERSION+set}" ; then
13760 setopt NO_GLOB_SUBST
13761 fi
13762
13763 cfgfile="${ofile}T"
13764 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13765 $RM "$cfgfile"
13766
13767 cat <<_LT_EOF >> "$cfgfile"
13768 #! $SHELL
13769
13770 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13771 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13772 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13773 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13774 #
13775 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13776 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13777 # Foundation, Inc.
13778 # Written by Gordon Matzigkeit, 1996
13779 #
13780 # This file is part of GNU Libtool.
13781 #
13782 # GNU Libtool is free software; you can redistribute it and/or
13783 # modify it under the terms of the GNU General Public License as
13784 # published by the Free Software Foundation; either version 2 of
13785 # the License, or (at your option) any later version.
13786 #
13787 # As a special exception to the GNU General Public License,
13788 # if you distribute this file as part of a program or library that
13789 # is built using GNU Libtool, you may include this file under the
13790 # same distribution terms that you use for the rest of that program.
13791 #
13792 # GNU Libtool is distributed in the hope that it will be useful,
13793 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13794 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13795 # GNU General Public License for more details.
13796 #
13797 # You should have received a copy of the GNU General Public License
13798 # along with GNU Libtool; see the file COPYING. If not, a copy
13799 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13800 # obtained by writing to the Free Software Foundation, Inc.,
13801 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13802
13803
13804 # The names of the tagged configurations supported by this script.
13805 available_tags=""
13806
13807 # ### BEGIN LIBTOOL CONFIG
13808
13809 # Which release of libtool.m4 was used?
13810 macro_version=$macro_version
13811 macro_revision=$macro_revision
13812
13813 # Whether or not to build shared libraries.
13814 build_libtool_libs=$enable_shared
13815
13816 # Whether or not to build static libraries.
13817 build_old_libs=$enable_static
13818
13819 # What type of objects to build.
13820 pic_mode=$pic_mode
13821
13822 # Whether or not to optimize for fast installation.
13823 fast_install=$enable_fast_install
13824
13825 # Shell to use when invoking shell scripts.
13826 SHELL=$lt_SHELL
13827
13828 # An echo program that protects backslashes.
13829 ECHO=$lt_ECHO
13830
13831 # The PATH separator for the build system.
13832 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13833
13834 # The host system.
13835 host_alias=$host_alias
13836 host=$host
13837 host_os=$host_os
13838
13839 # The build system.
13840 build_alias=$build_alias
13841 build=$build
13842 build_os=$build_os
13843
13844 # A sed program that does not truncate output.
13845 SED=$lt_SED
13846
13847 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13848 Xsed="\$SED -e 1s/^X//"
13849
13850 # A grep program that handles long lines.
13851 GREP=$lt_GREP
13852
13853 # An ERE matcher.
13854 EGREP=$lt_EGREP
13855
13856 # A literal string matcher.
13857 FGREP=$lt_FGREP
13858
13859 # A BSD- or MS-compatible name lister.
13860 NM=$lt_NM
13861
13862 # Whether we need soft or hard links.
13863 LN_S=$lt_LN_S
13864
13865 # What is the maximum length of a command?
13866 max_cmd_len=$max_cmd_len
13867
13868 # Object file suffix (normally "o").
13869 objext=$ac_objext
13870
13871 # Executable file suffix (normally "").
13872 exeext=$exeext
13873
13874 # whether the shell understands "unset".
13875 lt_unset=$lt_unset
13876
13877 # turn spaces into newlines.
13878 SP2NL=$lt_lt_SP2NL
13879
13880 # turn newlines into spaces.
13881 NL2SP=$lt_lt_NL2SP
13882
13883 # convert \$build file names to \$host format.
13884 to_host_file_cmd=$lt_cv_to_host_file_cmd
13885
13886 # convert \$build files to toolchain format.
13887 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13888
13889 # An object symbol dumper.
13890 OBJDUMP=$lt_OBJDUMP
13891
13892 # Method to check whether dependent libraries are shared objects.
13893 deplibs_check_method=$lt_deplibs_check_method
13894
13895 # Command to use when deplibs_check_method = "file_magic".
13896 file_magic_cmd=$lt_file_magic_cmd
13897
13898 # How to find potential files when deplibs_check_method = "file_magic".
13899 file_magic_glob=$lt_file_magic_glob
13900
13901 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13902 want_nocaseglob=$lt_want_nocaseglob
13903
13904 # DLL creation program.
13905 DLLTOOL=$lt_DLLTOOL
13906
13907 # Command to associate shared and link libraries.
13908 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13909
13910 # The archiver.
13911 AR=$lt_AR
13912
13913 # Flags to create an archive.
13914 AR_FLAGS=$lt_AR_FLAGS
13915
13916 # How to feed a file listing to the archiver.
13917 archiver_list_spec=$lt_archiver_list_spec
13918
13919 # A symbol stripping program.
13920 STRIP=$lt_STRIP
13921
13922 # Commands used to install an old-style archive.
13923 RANLIB=$lt_RANLIB
13924 old_postinstall_cmds=$lt_old_postinstall_cmds
13925 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13926
13927 # Whether to use a lock for old archive extraction.
13928 lock_old_archive_extraction=$lock_old_archive_extraction
13929
13930 # A C compiler.
13931 LTCC=$lt_CC
13932
13933 # LTCC compiler flags.
13934 LTCFLAGS=$lt_CFLAGS
13935
13936 # Take the output of nm and produce a listing of raw symbols and C names.
13937 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13938
13939 # Transform the output of nm in a proper C declaration.
13940 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13941
13942 # Transform the output of nm in a C name address pair.
13943 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13944
13945 # Transform the output of nm in a C name address pair when lib prefix is needed.
13946 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13947
13948 # Specify filename containing input files for \$NM.
13949 nm_file_list_spec=$lt_nm_file_list_spec
13950
13951 # The root where to search for dependent libraries,and in which our libraries should be installed.
13952 lt_sysroot=$lt_sysroot
13953
13954 # The name of the directory that contains temporary libtool files.
13955 objdir=$objdir
13956
13957 # Used to examine libraries when file_magic_cmd begins with "file".
13958 MAGIC_CMD=$MAGIC_CMD
13959
13960 # Must we lock files when doing compilation?
13961 need_locks=$lt_need_locks
13962
13963 # Manifest tool.
13964 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13965
13966 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13967 DSYMUTIL=$lt_DSYMUTIL
13968
13969 # Tool to change global to local symbols on Mac OS X.
13970 NMEDIT=$lt_NMEDIT
13971
13972 # Tool to manipulate fat objects and archives on Mac OS X.
13973 LIPO=$lt_LIPO
13974
13975 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13976 OTOOL=$lt_OTOOL
13977
13978 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13979 OTOOL64=$lt_OTOOL64
13980
13981 # Old archive suffix (normally "a").
13982 libext=$libext
13983
13984 # Shared library suffix (normally ".so").
13985 shrext_cmds=$lt_shrext_cmds
13986
13987 # The commands to extract the exported symbol list from a shared archive.
13988 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13989
13990 # Variables whose values should be saved in libtool wrapper scripts and
13991 # restored at link time.
13992 variables_saved_for_relink=$lt_variables_saved_for_relink
13993
13994 # Do we need the "lib" prefix for modules?
13995 need_lib_prefix=$need_lib_prefix
13996
13997 # Do we need a version for libraries?
13998 need_version=$need_version
13999
14000 # Library versioning type.
14001 version_type=$version_type
14002
14003 # Shared library runtime path variable.
14004 runpath_var=$runpath_var
14005
14006 # Shared library path variable.
14007 shlibpath_var=$shlibpath_var
14008
14009 # Is shlibpath searched before the hard-coded library search path?
14010 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14011
14012 # Format of library name prefix.
14013 libname_spec=$lt_libname_spec
14014
14015 # List of archive names. First name is the real one, the rest are links.
14016 # The last name is the one that the linker finds with -lNAME
14017 library_names_spec=$lt_library_names_spec
14018
14019 # The coded name of the library, if different from the real name.
14020 soname_spec=$lt_soname_spec
14021
14022 # Permission mode override for installation of shared libraries.
14023 install_override_mode=$lt_install_override_mode
14024
14025 # Command to use after installation of a shared archive.
14026 postinstall_cmds=$lt_postinstall_cmds
14027
14028 # Command to use after uninstallation of a shared archive.
14029 postuninstall_cmds=$lt_postuninstall_cmds
14030
14031 # Commands used to finish a libtool library installation in a directory.
14032 finish_cmds=$lt_finish_cmds
14033
14034 # As "finish_cmds", except a single script fragment to be evaled but
14035 # not shown.
14036 finish_eval=$lt_finish_eval
14037
14038 # Whether we should hardcode library paths into libraries.
14039 hardcode_into_libs=$hardcode_into_libs
14040
14041 # Compile-time system search path for libraries.
14042 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14043
14044 # Run-time system search path for libraries.
14045 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14046
14047 # Whether dlopen is supported.
14048 dlopen_support=$enable_dlopen
14049
14050 # Whether dlopen of programs is supported.
14051 dlopen_self=$enable_dlopen_self
14052
14053 # Whether dlopen of statically linked programs is supported.
14054 dlopen_self_static=$enable_dlopen_self_static
14055
14056 # Commands to strip libraries.
14057 old_striplib=$lt_old_striplib
14058 striplib=$lt_striplib
14059
14060
14061 # The linker used to build libraries.
14062 LD=$lt_LD
14063
14064 # How to create reloadable object files.
14065 reload_flag=$lt_reload_flag
14066 reload_cmds=$lt_reload_cmds
14067
14068 # Commands used to build an old-style archive.
14069 old_archive_cmds=$lt_old_archive_cmds
14070
14071 # A language specific compiler.
14072 CC=$lt_compiler
14073
14074 # Is the compiler the GNU compiler?
14075 with_gcc=$GCC
14076
14077 # Compiler flag to turn off builtin functions.
14078 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14079
14080 # Additional compiler flags for building library objects.
14081 pic_flag=$lt_lt_prog_compiler_pic
14082
14083 # How to pass a linker flag through the compiler.
14084 wl=$lt_lt_prog_compiler_wl
14085
14086 # Compiler flag to prevent dynamic linking.
14087 link_static_flag=$lt_lt_prog_compiler_static
14088
14089 # Does compiler simultaneously support -c and -o options?
14090 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14091
14092 # Whether or not to add -lc for building shared libraries.
14093 build_libtool_need_lc=$archive_cmds_need_lc
14094
14095 # Whether or not to disallow shared libs when runtime libs are static.
14096 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14097
14098 # Compiler flag to allow reflexive dlopens.
14099 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14100
14101 # Compiler flag to generate shared objects directly from archives.
14102 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14103
14104 # Whether the compiler copes with passing no objects directly.
14105 compiler_needs_object=$lt_compiler_needs_object
14106
14107 # Create an old-style archive from a shared archive.
14108 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14109
14110 # Create a temporary old-style archive to link instead of a shared archive.
14111 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14112
14113 # Commands used to build a shared archive.
14114 archive_cmds=$lt_archive_cmds
14115 archive_expsym_cmds=$lt_archive_expsym_cmds
14116
14117 # Commands used to build a loadable module if different from building
14118 # a shared archive.
14119 module_cmds=$lt_module_cmds
14120 module_expsym_cmds=$lt_module_expsym_cmds
14121
14122 # Whether we are building with GNU ld or not.
14123 with_gnu_ld=$lt_with_gnu_ld
14124
14125 # Flag that allows shared libraries with undefined symbols to be built.
14126 allow_undefined_flag=$lt_allow_undefined_flag
14127
14128 # Flag that enforces no undefined symbols.
14129 no_undefined_flag=$lt_no_undefined_flag
14130
14131 # Flag to hardcode \$libdir into a binary during linking.
14132 # This must work even if \$libdir does not exist
14133 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14134
14135 # Whether we need a single "-rpath" flag with a separated argument.
14136 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14137
14138 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14139 # DIR into the resulting binary.
14140 hardcode_direct=$hardcode_direct
14141
14142 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14143 # DIR into the resulting binary and the resulting library dependency is
14144 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14145 # library is relocated.
14146 hardcode_direct_absolute=$hardcode_direct_absolute
14147
14148 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14149 # into the resulting binary.
14150 hardcode_minus_L=$hardcode_minus_L
14151
14152 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14153 # into the resulting binary.
14154 hardcode_shlibpath_var=$hardcode_shlibpath_var
14155
14156 # Set to "yes" if building a shared library automatically hardcodes DIR
14157 # into the library and all subsequent libraries and executables linked
14158 # against it.
14159 hardcode_automatic=$hardcode_automatic
14160
14161 # Set to yes if linker adds runtime paths of dependent libraries
14162 # to runtime path list.
14163 inherit_rpath=$inherit_rpath
14164
14165 # Whether libtool must link a program against all its dependency libraries.
14166 link_all_deplibs=$link_all_deplibs
14167
14168 # Set to "yes" if exported symbols are required.
14169 always_export_symbols=$always_export_symbols
14170
14171 # The commands to list exported symbols.
14172 export_symbols_cmds=$lt_export_symbols_cmds
14173
14174 # Symbols that should not be listed in the preloaded symbols.
14175 exclude_expsyms=$lt_exclude_expsyms
14176
14177 # Symbols that must always be exported.
14178 include_expsyms=$lt_include_expsyms
14179
14180 # Commands necessary for linking programs (against libraries) with templates.
14181 prelink_cmds=$lt_prelink_cmds
14182
14183 # Commands necessary for finishing linking programs.
14184 postlink_cmds=$lt_postlink_cmds
14185
14186 # Specify filename containing input files.
14187 file_list_spec=$lt_file_list_spec
14188
14189 # How to hardcode a shared library path into an executable.
14190 hardcode_action=$hardcode_action
14191
14192 # ### END LIBTOOL CONFIG
14193
14194 _LT_EOF
14195
14196 case $host_os in
14197 aix3*)
14198 cat <<\_LT_EOF >> "$cfgfile"
14199 # AIX sometimes has problems with the GCC collect2 program. For some
14200 # reason, if we set the COLLECT_NAMES environment variable, the problems
14201 # vanish in a puff of smoke.
14202 if test "X${COLLECT_NAMES+set}" != Xset; then
14203 COLLECT_NAMES=
14204 export COLLECT_NAMES
14205 fi
14206 _LT_EOF
14207 ;;
14208 esac
14209
14210
14211 ltmain="$ac_aux_dir/ltmain.sh"
14212
14213
14214 # We use sed instead of cat because bash on DJGPP gets confused if
14215 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14216 # text mode, it properly converts lines to CR/LF. This bash problem
14217 # is reportedly fixed, but why not run on old versions too?
14218 sed '$q' "$ltmain" >> "$cfgfile" \
14219 || (rm -f "$cfgfile"; exit 1)
14220
14221 if test x"$xsi_shell" = xyes; then
14222 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14223 func_dirname ()\
14224 {\
14225 \ case ${1} in\
14226 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14227 \ * ) func_dirname_result="${3}" ;;\
14228 \ esac\
14229 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14230 && mv -f "$cfgfile.tmp" "$cfgfile" \
14231 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14232 test 0 -eq $? || _lt_function_replace_fail=:
14233
14234
14235 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14236 func_basename ()\
14237 {\
14238 \ func_basename_result="${1##*/}"\
14239 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14240 && mv -f "$cfgfile.tmp" "$cfgfile" \
14241 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14242 test 0 -eq $? || _lt_function_replace_fail=:
14243
14244
14245 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14246 func_dirname_and_basename ()\
14247 {\
14248 \ case ${1} in\
14249 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14250 \ * ) func_dirname_result="${3}" ;;\
14251 \ esac\
14252 \ func_basename_result="${1##*/}"\
14253 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14254 && mv -f "$cfgfile.tmp" "$cfgfile" \
14255 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14256 test 0 -eq $? || _lt_function_replace_fail=:
14257
14258
14259 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14260 func_stripname ()\
14261 {\
14262 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14263 \ # positional parameters, so assign one to ordinary parameter first.\
14264 \ func_stripname_result=${3}\
14265 \ func_stripname_result=${func_stripname_result#"${1}"}\
14266 \ func_stripname_result=${func_stripname_result%"${2}"}\
14267 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14268 && mv -f "$cfgfile.tmp" "$cfgfile" \
14269 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14270 test 0 -eq $? || _lt_function_replace_fail=:
14271
14272
14273 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14274 func_split_long_opt ()\
14275 {\
14276 \ func_split_long_opt_name=${1%%=*}\
14277 \ func_split_long_opt_arg=${1#*=}\
14278 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14279 && mv -f "$cfgfile.tmp" "$cfgfile" \
14280 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14281 test 0 -eq $? || _lt_function_replace_fail=:
14282
14283
14284 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14285 func_split_short_opt ()\
14286 {\
14287 \ func_split_short_opt_arg=${1#??}\
14288 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14289 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14290 && mv -f "$cfgfile.tmp" "$cfgfile" \
14291 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14292 test 0 -eq $? || _lt_function_replace_fail=:
14293
14294
14295 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14296 func_lo2o ()\
14297 {\
14298 \ case ${1} in\
14299 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14300 \ *) func_lo2o_result=${1} ;;\
14301 \ esac\
14302 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14303 && mv -f "$cfgfile.tmp" "$cfgfile" \
14304 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14305 test 0 -eq $? || _lt_function_replace_fail=:
14306
14307
14308 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14309 func_xform ()\
14310 {\
14311 func_xform_result=${1%.*}.lo\
14312 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14313 && mv -f "$cfgfile.tmp" "$cfgfile" \
14314 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14315 test 0 -eq $? || _lt_function_replace_fail=:
14316
14317
14318 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14319 func_arith ()\
14320 {\
14321 func_arith_result=$(( $* ))\
14322 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14323 && mv -f "$cfgfile.tmp" "$cfgfile" \
14324 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14325 test 0 -eq $? || _lt_function_replace_fail=:
14326
14327
14328 sed -e '/^func_len ()$/,/^} # func_len /c\
14329 func_len ()\
14330 {\
14331 func_len_result=${#1}\
14332 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14333 && mv -f "$cfgfile.tmp" "$cfgfile" \
14334 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14335 test 0 -eq $? || _lt_function_replace_fail=:
14336
14337 fi
14338
14339 if test x"$lt_shell_append" = xyes; then
14340 sed -e '/^func_append ()$/,/^} # func_append /c\
14341 func_append ()\
14342 {\
14343 eval "${1}+=\\${2}"\
14344 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14345 && mv -f "$cfgfile.tmp" "$cfgfile" \
14346 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14347 test 0 -eq $? || _lt_function_replace_fail=:
14348
14349
14350 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14351 func_append_quoted ()\
14352 {\
14353 \ func_quote_for_eval "${2}"\
14354 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14355 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14356 && mv -f "$cfgfile.tmp" "$cfgfile" \
14357 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14358 test 0 -eq $? || _lt_function_replace_fail=:
14359
14360
14361 # Save a `func_append' function call where possible by direct use of '+='
14362 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14363 && mv -f "$cfgfile.tmp" "$cfgfile" \
14364 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14365 test 0 -eq $? || _lt_function_replace_fail=:
14366 else
14367 # Save a `func_append' function call even when '+=' is not available
14368 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14369 && mv -f "$cfgfile.tmp" "$cfgfile" \
14370 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14371 test 0 -eq $? || _lt_function_replace_fail=:
14372 fi
14373
14374 if test x"$_lt_function_replace_fail" = x":"; then
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14376 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14377 fi
14378
14379
14380 mv -f "$cfgfile" "$ofile" ||
14381 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14382 chmod +x "$ofile"
14383
14384 ;;
14385
14386 esac
14387 done # for ac_tag
14388
14389
14390 as_fn_exit 0
14391 _ACEOF
14392 ac_clean_files=$ac_clean_files_save
14393
14394 test $ac_write_fail = 0 ||
14395 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14396
14397
14398 # configure is writing to config.log, and then calls config.status.
14399 # config.status does its own redirection, appending to config.log.
14400 # Unfortunately, on DOS this fails, as config.log is still kept open
14401 # by configure, so config.status won't be able to write to it; its
14402 # output is simply discarded. So we exec the FD to /dev/null,
14403 # effectively closing config.log, so it can be properly (re)opened and
14404 # appended to by config.status. When coming back to configure, we
14405 # need to make the FD available again.
14406 if test "$no_create" != yes; then
14407 ac_cs_success=:
14408 ac_config_status_args=
14409 test "$silent" = yes &&
14410 ac_config_status_args="$ac_config_status_args --quiet"
14411 exec 5>/dev/null
14412 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14413 exec 5>>config.log
14414 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14415 # would make configure fail if this is the last instruction.
14416 $ac_cs_success || as_fn_exit 1
14417 fi
14418 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14420 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14421 fi
14422
14423
14424 echo "configure done"