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 libmng 2.0.3.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278 $0: [email protected] about your
279 $0: system, including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libmng'
592 PACKAGE_TARNAME='libmng-2.0.3'
593 PACKAGE_VERSION='2.0.3'
594 PACKAGE_STRING='libmng 2.0.3'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL='http://www.libmng.com/'
597
598 ac_unique_file="libmng_hlapi.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 AS
640 CPP
641 OTOOL64
642 OTOOL
643 LIPO
644 NMEDIT
645 DSYMUTIL
646 MANIFEST_TOOL
647 RANLIB
648 ac_ct_AR
649 AR
650 DLLTOOL
651 OBJDUMP
652 LN_S
653 NM
654 ac_ct_DUMPBIN
655 DUMPBIN
656 LD
657 FGREP
658 EGREP
659 GREP
660 SED
661 host_os
662 host_vendor
663 host_cpu
664 host
665 build_os
666 build_vendor
667 build_cpu
668 build
669 LIBTOOL
670 am__fastdepCC_FALSE
671 am__fastdepCC_TRUE
672 CCDEPMODE
673 am__nodep
674 AMDEPBACKSLASH
675 AMDEP_FALSE
676 AMDEP_TRUE
677 am__quote
678 am__include
679 DEPDIR
680 OBJEXT
681 EXEEXT
682 ac_ct_CC
683 CPPFLAGS
684 LDFLAGS
685 CFLAGS
686 CC
687 AM_BACKSLASH
688 AM_DEFAULT_VERBOSITY
689 AM_DEFAULT_V
690 AM_V
691 am__untar
692 am__tar
693 AMTAR
694 am__leading_dot
695 SET_MAKE
696 AWK
697 mkdir_p
698 MKDIR_P
699 INSTALL_STRIP_PROGRAM
700 STRIP
701 install_sh
702 MAKEINFO
703 AUTOHEADER
704 AUTOMAKE
705 AUTOCONF
706 ACLOCAL
707 VERSION
708 PACKAGE
709 CYGPATH_W
710 am__isrc
711 INSTALL_DATA
712 INSTALL_SCRIPT
713 INSTALL_PROGRAM
714 MNG_RELEASE_NR
715 MNG_MINOR_NR
716 MNG_MAJOR_NR
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files=''
756 ac_user_opts='
757 enable_option_checking
758 enable_silent_rules
759 enable_dependency_tracking
760 enable_shared
761 enable_static
762 with_pic
763 enable_fast_install
764 with_gnu_ld
765 with_sysroot
766 enable_libtool_lock
767 enable_largefile
768 enable_buildso
769 enable_read
770 enable_write
771 enable_display
772 enable_dynamic
773 enable_chunks
774 enable_storechunks
775 enable_trace
776 with_zlib
777 with_jpeg
778 with_lcms2
779 with_lcms
780 '
781 ac_precious_vars='build_alias
782 host_alias
783 target_alias
784 CC
785 CFLAGS
786 LDFLAGS
787 LIBS
788 CPPFLAGS
789 CPP'
790
791
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 ac_unrecognized_opts=
796 ac_unrecognized_sep=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
799 cache_file=/dev/null
800 exec_prefix=NONE
801 no_create=
802 no_recursion=
803 prefix=NONE
804 program_prefix=NONE
805 program_suffix=NONE
806 program_transform_name=s,x,x,
807 silent=
808 site=
809 srcdir=
810 verbose=
811 x_includes=NONE
812 x_libraries=NONE
813
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 includedir='${prefix}/include'
829 oldincludedir='/usr/include'
830 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831 infodir='${datarootdir}/info'
832 htmldir='${docdir}'
833 dvidir='${docdir}'
834 pdfdir='${docdir}'
835 psdir='${docdir}'
836 libdir='${exec_prefix}/lib'
837 localedir='${datarootdir}/locale'
838 mandir='${datarootdir}/man'
839
840 ac_prev=
841 ac_dashdash=
842 for ac_option
843 do
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
847 ac_prev=
848 continue
849 fi
850
851 case $ac_option in
852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 *=) ac_optarg= ;;
854 *) ac_optarg=yes ;;
855 esac
856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
862
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
867
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
882
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
887
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
910
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
915
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
920
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=\$ac_optarg ;;
936
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
945
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
949
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
956
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
961
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
967
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
974
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
979
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
984
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
991
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
996
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1003
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1008
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1012
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1016
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1020
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1029
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1034
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1041
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1048
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1065
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1070
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1075
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1079
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
1084 sbindir=$ac_optarg ;;
1085
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
1095 sharedstatedir=$ac_optarg ;;
1096
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
1100 site=$ac_optarg ;;
1101
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1106
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1113
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1118
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1121
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1124
1125 -with-* | --with-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134 "with_$ac_useropt"
1135 "*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=\$ac_optarg ;;
1140
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150 "with_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
1156
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1160
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1167
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1174
1175 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176 Try \`$0 --help' for more information"
1177 ;;
1178
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1185 esac
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1188
1189 *)
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1195 ;;
1196
1197 esac
1198 done
1199
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error $? "missing argument to $ac_option"
1203 fi
1204
1205 if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 esac
1211 fi
1212
1213 # Check all directory arguments for consistency.
1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1218 do
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1221 case $ac_val in
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1225 esac
1226 # Be sure to have absolute directory names.
1227 case $ac_val in
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 esac
1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232 done
1233
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1237 build=$build_alias
1238 host=$host_alias
1239 target=$target_alias
1240
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 elif test "x$build_alias" != "x$host_alias"; then
1246 cross_compiling=yes
1247 fi
1248 fi
1249
1250 ac_tool_prefix=
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253 test "$silent" = yes && exec 6>/dev/null
1254
1255
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error $? "working directory cannot be determined"
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error $? "pwd does not report name of working directory"
1262
1263
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$as_myself" ||
1269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273 $as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\).*/{
1287 s//\1/
1288 q
1289 }
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1294 fi
1295 else
1296 ac_srcdir_defaulted=no
1297 fi
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1301 fi
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 ac_abs_confdir=`(
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305 pwd)`
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 srcdir=.
1309 fi
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1313 case $srcdir in
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 esac
1316 for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 done
1322
1323 #
1324 # Report the --help message.
1325 #
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1329 cat <<_ACEOF
1330 \`configure' configures libmng 2.0.3 to adapt to many kinds of systems.
1331
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE. See below for descriptions of some of the useful variables.
1336
1337 Defaults for the options are specified in brackets.
1338
1339 Configuration:
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking ...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349
1350 Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 [PREFIX]
1355
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1360
1361 For better control, use the options below.
1362
1363 Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/libmng-2.0.3]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1383 _ACEOF
1384
1385 cat <<\_ACEOF
1386
1387 Program names:
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391
1392 System types:
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 _ACEOF
1396 fi
1397
1398 if test -n "$ac_init_help"; then
1399 case $ac_init_help in
1400 short | recursive ) echo "Configuration of libmng 2.0.3:";;
1401 esac
1402 cat <<\_ACEOF
1403
1404 Optional Features:
1405 --disable-option-checking ignore unrecognized --enable/--with options
1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1408 --enable-silent-rules less verbose build output (undo: "make V=1")
1409 --disable-silent-rules verbose build output (undo: "make V=0")
1410 --enable-dependency-tracking
1411 do not reject slow dependency extractors
1412 --disable-dependency-tracking
1413 speeds up one-time build
1414 --enable-shared[=PKGS] build shared libraries [default=yes]
1415 --enable-static[=PKGS] build static libraries [default=yes]
1416 --enable-fast-install[=PKGS]
1417 optimize for fast installation [default=yes]
1418 --disable-libtool-lock avoid locking (might break parallel builds)
1419 --disable-largefile omit support for large files
1420 --disable-buildso disable building standard shared object
1421 --disable-read remove read support from library
1422 --disable-write remove write support from library
1423 --disable-display remove display support from library
1424 --disable-dynamic remove dynamic MNG support from library
1425 --disable-chunks remove support for chunk access
1426 --disable-storechunks remove support for access of previous chunks
1427 --enable-trace include support for debug tracing callbacks
1428
1429 Optional Packages:
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1432 --with-pic try to use only PIC/non-PIC objects [default=use
1433 both]
1434 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1435 --with-sysroot=DIR Search for dependent libraries within DIR
1436 (or the compiler's sysroot if not specified).
1437 --with-zlib=DIR use zlib include/library files in DIR
1438 --with-jpeg=DIR use jpeg include/library files in DIR
1439 --with-lcms2=DIR use lcms2 include/library files in DIR
1440 --with-lcms=DIR use lcms include/library files in DIR
1441
1442 Some influential environment variables:
1443 CC C compiler command
1444 CFLAGS C compiler flags
1445 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1446 nonstandard directory <lib dir>
1447 LIBS libraries to pass to the linker, e.g. -l<library>
1448 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1449 you have headers in a nonstandard directory <include dir>
1450 CPP C preprocessor
1451
1452 Use these variables to override the choices made by `configure' or to help
1453 it to find libraries and programs with nonstandard names/locations.
1454
1455 Report bugs to <[email protected]>.
1456 libmng home page: <http://www.libmng.com/>.
1457 _ACEOF
1458 ac_status=$?
1459 fi
1460
1461 if test "$ac_init_help" = "recursive"; then
1462 # If there are subdirs, report their specific --help.
1463 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1464 test -d "$ac_dir" ||
1465 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466 continue
1467 ac_builddir=.
1468
1469 case "$ac_dir" in
1470 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *)
1472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1473 # A ".." for each directory in $ac_dir_suffix.
1474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475 case $ac_top_builddir_sub in
1476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478 esac ;;
1479 esac
1480 ac_abs_top_builddir=$ac_pwd
1481 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482 # for backward compatibility:
1483 ac_top_builddir=$ac_top_build_prefix
1484
1485 case $srcdir in
1486 .) # We are building in place.
1487 ac_srcdir=.
1488 ac_top_srcdir=$ac_top_builddir_sub
1489 ac_abs_top_srcdir=$ac_pwd ;;
1490 [\\/]* | ?:[\\/]* ) # Absolute name.
1491 ac_srcdir=$srcdir$ac_dir_suffix;
1492 ac_top_srcdir=$srcdir
1493 ac_abs_top_srcdir=$srcdir ;;
1494 *) # Relative name.
1495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496 ac_top_srcdir=$ac_top_build_prefix$srcdir
1497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498 esac
1499 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500
1501 cd "$ac_dir" || { ac_status=$?; continue; }
1502 # Check for guested configure.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure" --help=recursive
1509 else
1510 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511 fi || ac_status=$?
1512 cd "$ac_pwd" || { ac_status=$?; break; }
1513 done
1514 fi
1515
1516 test -n "$ac_init_help" && exit $ac_status
1517 if $ac_init_version; then
1518 cat <<\_ACEOF
1519 libmng configure 2.0.3
1520 generated by GNU Autoconf 2.69
1521
1522 Copyright (C) 2012 Free Software Foundation, Inc.
1523 This configure script is free software; the Free Software Foundation
1524 gives unlimited permission to copy, distribute and modify it.
1525 _ACEOF
1526 exit
1527 fi
1528
1529 ## ------------------------ ##
1530 ## Autoconf initialization. ##
1531 ## ------------------------ ##
1532
1533 # ac_fn_c_try_compile LINENO
1534 # --------------------------
1535 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1536 ac_fn_c_try_compile ()
1537 {
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 rm -f conftest.$ac_objext
1540 if { { ac_try="$ac_compile"
1541 case "(($ac_try" in
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1544 esac
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_compile") 2>conftest.err
1548 ac_status=$?
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1553 fi
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest.$ac_objext; then :
1559 ac_retval=0
1560 else
1561 $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1563
1564 ac_retval=1
1565 fi
1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567 as_fn_set_status $ac_retval
1568
1569 } # ac_fn_c_try_compile
1570
1571 # ac_fn_c_try_link LINENO
1572 # -----------------------
1573 # Try to link conftest.$ac_ext, and return whether this succeeded.
1574 ac_fn_c_try_link ()
1575 {
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 rm -f conftest.$ac_objext conftest$ac_exeext
1578 if { { ac_try="$ac_link"
1579 case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1582 esac
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_link") 2>conftest.err
1586 ac_status=$?
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1591 fi
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && {
1594 test -z "$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest$ac_exeext && {
1597 test "$cross_compiling" = yes ||
1598 test -x conftest$ac_exeext
1599 }; then :
1600 ac_retval=0
1601 else
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1
1606 fi
1607 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1608 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1609 # interfere with the next link command; also delete a directory that is
1610 # left behind by Apple's compiler. We do this before executing the actions.
1611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1614
1615 } # ac_fn_c_try_link
1616
1617 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1618 # -------------------------------------------------------
1619 # Tests whether HEADER exists and can be compiled using the include files in
1620 # INCLUDES, setting the cache variable VAR accordingly.
1621 ac_fn_c_check_header_compile ()
1622 {
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1625 $as_echo_n "checking for $2... " >&6; }
1626 if eval \${$3+:} false; then :
1627 $as_echo_n "(cached) " >&6
1628 else
1629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630 /* end confdefs.h. */
1631 $4
1632 #include <$2>
1633 _ACEOF
1634 if ac_fn_c_try_compile "$LINENO"; then :
1635 eval "$3=yes"
1636 else
1637 eval "$3=no"
1638 fi
1639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1640 fi
1641 eval ac_res=\$$3
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643 $as_echo "$ac_res" >&6; }
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645
1646 } # ac_fn_c_check_header_compile
1647
1648 # ac_fn_c_try_cpp LINENO
1649 # ----------------------
1650 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1651 ac_fn_c_try_cpp ()
1652 {
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if { { ac_try="$ac_cpp conftest.$ac_ext"
1655 case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1667 fi
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } > conftest.i && {
1670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1671 test ! -s conftest.err
1672 }; then :
1673 ac_retval=0
1674 else
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1677
1678 ac_retval=1
1679 fi
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 as_fn_set_status $ac_retval
1682
1683 } # ac_fn_c_try_cpp
1684
1685 # ac_fn_c_try_run LINENO
1686 # ----------------------
1687 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688 # that executables *can* be run.
1689 ac_fn_c_try_run ()
1690 {
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_link"
1693 case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>&5
1700 ac_status=$?
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703 { { case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_try") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; }; }; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: program exited with status $ac_status" >&5
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=$ac_status
1720 fi
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1724
1725 } # ac_fn_c_try_run
1726
1727 # ac_fn_c_check_func LINENO FUNC VAR
1728 # ----------------------------------
1729 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1730 ac_fn_c_check_func ()
1731 {
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval \${$3+:} false; then :
1736 $as_echo_n "(cached) " >&6
1737 else
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1740 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1742 #define $2 innocuous_$2
1743
1744 /* System header to define __stub macros and hopefully few prototypes,
1745 which can conflict with char $2 (); below.
1746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1747 <limits.h> exists even on freestanding compilers. */
1748
1749 #ifdef __STDC__
1750 # include <limits.h>
1751 #else
1752 # include <assert.h>
1753 #endif
1754
1755 #undef $2
1756
1757 /* Override any GCC internal prototype to avoid an error.
1758 Use char because int might match the return type of a GCC
1759 builtin and then its argument prototype would still apply. */
1760 #ifdef __cplusplus
1761 extern "C"
1762 #endif
1763 char $2 ();
1764 /* The GNU C library defines this for functions which it implements
1765 to always fail with ENOSYS. Some functions are actually named
1766 something starting with __ and the normal name is an alias. */
1767 #if defined __stub_$2 || defined __stub___$2
1768 choke me
1769 #endif
1770
1771 int
1772 main ()
1773 {
1774 return $2 ();
1775 ;
1776 return 0;
1777 }
1778 _ACEOF
1779 if ac_fn_c_try_link "$LINENO"; then :
1780 eval "$3=yes"
1781 else
1782 eval "$3=no"
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext \
1785 conftest$ac_exeext conftest.$ac_ext
1786 fi
1787 eval ac_res=\$$3
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792 } # ac_fn_c_check_func
1793
1794 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1795 # -------------------------------------------------------
1796 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1797 # the include files in INCLUDES and setting the cache variable VAR
1798 # accordingly.
1799 ac_fn_c_check_header_mongrel ()
1800 {
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 if eval \${$3+:} false; then :
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1807 fi
1808 eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 else
1812 # Is the header compilable?
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1814 $as_echo_n "checking $2 usability... " >&6; }
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1817 $4
1818 #include <$2>
1819 _ACEOF
1820 if ac_fn_c_try_compile "$LINENO"; then :
1821 ac_header_compiler=yes
1822 else
1823 ac_header_compiler=no
1824 fi
1825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1827 $as_echo "$ac_header_compiler" >&6; }
1828
1829 # Is the header present?
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1831 $as_echo_n "checking $2 presence... " >&6; }
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1834 #include <$2>
1835 _ACEOF
1836 if ac_fn_c_try_cpp "$LINENO"; then :
1837 ac_header_preproc=yes
1838 else
1839 ac_header_preproc=no
1840 fi
1841 rm -f conftest.err conftest.i conftest.$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1843 $as_echo "$ac_header_preproc" >&6; }
1844
1845 # So? What about this header?
1846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1847 yes:no: )
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1849 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852 ;;
1853 no:yes:* )
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1855 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1857 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1859 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1861 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1863 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864 ( $as_echo "## ------------------------------------------------------ ##
1865 ## Report this to [email protected] ##
1866 ## ------------------------------------------------------ ##"
1867 ) | sed "s/^/$as_me: WARNING: /" >&2
1868 ;;
1869 esac
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if eval \${$3+:} false; then :
1873 $as_echo_n "(cached) " >&6
1874 else
1875 eval "$3=\$ac_header_compiler"
1876 fi
1877 eval ac_res=\$$3
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1880 fi
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882
1883 } # ac_fn_c_check_header_mongrel
1884 cat >config.log <<_ACEOF
1885 This file contains any messages produced by compilers while
1886 running configure, to aid debugging if configure makes a mistake.
1887
1888 It was created by libmng $as_me 2.0.3, which was
1889 generated by GNU Autoconf 2.69. Invocation command line was
1890
1891 $ $0 $@
1892
1893 _ACEOF
1894 exec 5>>config.log
1895 {
1896 cat <<_ASUNAME
1897 ## --------- ##
1898 ## Platform. ##
1899 ## --------- ##
1900
1901 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1902 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1903 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1904 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1905 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1906
1907 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1908 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1909
1910 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1911 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1912 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1913 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1914 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1915 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1916 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1917
1918 _ASUNAME
1919
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 for as_dir in $PATH
1922 do
1923 IFS=$as_save_IFS
1924 test -z "$as_dir" && as_dir=.
1925 $as_echo "PATH: $as_dir"
1926 done
1927 IFS=$as_save_IFS
1928
1929 } >&5
1930
1931 cat >&5 <<_ACEOF
1932
1933
1934 ## ----------- ##
1935 ## Core tests. ##
1936 ## ----------- ##
1937
1938 _ACEOF
1939
1940
1941 # Keep a trace of the command line.
1942 # Strip out --no-create and --no-recursion so they do not pile up.
1943 # Strip out --silent because we don't want to record it for future runs.
1944 # Also quote any args containing shell meta-characters.
1945 # Make two passes to allow for proper duplicate-argument suppression.
1946 ac_configure_args=
1947 ac_configure_args0=
1948 ac_configure_args1=
1949 ac_must_keep_next=false
1950 for ac_pass in 1 2
1951 do
1952 for ac_arg
1953 do
1954 case $ac_arg in
1955 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1956 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1957 | -silent | --silent | --silen | --sile | --sil)
1958 continue ;;
1959 *\'*)
1960 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1961 esac
1962 case $ac_pass in
1963 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1964 2)
1965 as_fn_append ac_configure_args1 " '$ac_arg'"
1966 if test $ac_must_keep_next = true; then
1967 ac_must_keep_next=false # Got value, back to normal.
1968 else
1969 case $ac_arg in
1970 *=* | --config-cache | -C | -disable-* | --disable-* \
1971 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1972 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1973 | -with-* | --with-* | -without-* | --without-* | --x)
1974 case "$ac_configure_args0 " in
1975 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1976 esac
1977 ;;
1978 -* ) ac_must_keep_next=true ;;
1979 esac
1980 fi
1981 as_fn_append ac_configure_args " '$ac_arg'"
1982 ;;
1983 esac
1984 done
1985 done
1986 { ac_configure_args0=; unset ac_configure_args0;}
1987 { ac_configure_args1=; unset ac_configure_args1;}
1988
1989 # When interrupted or exit'd, cleanup temporary files, and complete
1990 # config.log. We remove comments because anyway the quotes in there
1991 # would cause problems or look ugly.
1992 # WARNING: Use '\'' to represent an apostrophe within the trap.
1993 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1994 trap 'exit_status=$?
1995 # Save into config.log some information that might help in debugging.
1996 {
1997 echo
1998
1999 $as_echo "## ---------------- ##
2000 ## Cache variables. ##
2001 ## ---------------- ##"
2002 echo
2003 # The following way of writing the cache mishandles newlines in values,
2004 (
2005 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2006 eval ac_val=\$$ac_var
2007 case $ac_val in #(
2008 *${as_nl}*)
2009 case $ac_var in #(
2010 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2011 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2012 esac
2013 case $ac_var in #(
2014 _ | IFS | as_nl) ;; #(
2015 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2016 *) { eval $ac_var=; unset $ac_var;} ;;
2017 esac ;;
2018 esac
2019 done
2020 (set) 2>&1 |
2021 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2022 *${as_nl}ac_space=\ *)
2023 sed -n \
2024 "s/'\''/'\''\\\\'\'''\''/g;
2025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2026 ;; #(
2027 *)
2028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2029 ;;
2030 esac |
2031 sort
2032 )
2033 echo
2034
2035 $as_echo "## ----------------- ##
2036 ## Output variables. ##
2037 ## ----------------- ##"
2038 echo
2039 for ac_var in $ac_subst_vars
2040 do
2041 eval ac_val=\$$ac_var
2042 case $ac_val in
2043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2044 esac
2045 $as_echo "$ac_var='\''$ac_val'\''"
2046 done | sort
2047 echo
2048
2049 if test -n "$ac_subst_files"; then
2050 $as_echo "## ------------------- ##
2051 ## File substitutions. ##
2052 ## ------------------- ##"
2053 echo
2054 for ac_var in $ac_subst_files
2055 do
2056 eval ac_val=\$$ac_var
2057 case $ac_val in
2058 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2059 esac
2060 $as_echo "$ac_var='\''$ac_val'\''"
2061 done | sort
2062 echo
2063 fi
2064
2065 if test -s confdefs.h; then
2066 $as_echo "## ----------- ##
2067 ## confdefs.h. ##
2068 ## ----------- ##"
2069 echo
2070 cat confdefs.h
2071 echo
2072 fi
2073 test "$ac_signal" != 0 &&
2074 $as_echo "$as_me: caught signal $ac_signal"
2075 $as_echo "$as_me: exit $exit_status"
2076 } >&5
2077 rm -f core *.core core.conftest.* &&
2078 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2079 exit $exit_status
2080 ' 0
2081 for ac_signal in 1 2 13 15; do
2082 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2083 done
2084 ac_signal=0
2085
2086 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2087 rm -f -r conftest* confdefs.h
2088
2089 $as_echo "/* confdefs.h */" > confdefs.h
2090
2091 # Predefined preprocessor variables.
2092
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_NAME "$PACKAGE_NAME"
2095 _ACEOF
2096
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2099 _ACEOF
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2103 _ACEOF
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_STRING "$PACKAGE_STRING"
2107 _ACEOF
2108
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2111 _ACEOF
2112
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_URL "$PACKAGE_URL"
2115 _ACEOF
2116
2117
2118 # Let the site file select an alternate cache file if it wants to.
2119 # Prefer an explicitly selected file to automatically selected ones.
2120 ac_site_file1=NONE
2121 ac_site_file2=NONE
2122 if test -n "$CONFIG_SITE"; then
2123 # We do not want a PATH search for config.site.
2124 case $CONFIG_SITE in #((
2125 -*) ac_site_file1=./$CONFIG_SITE;;
2126 */*) ac_site_file1=$CONFIG_SITE;;
2127 *) ac_site_file1=./$CONFIG_SITE;;
2128 esac
2129 elif test "x$prefix" != xNONE; then
2130 ac_site_file1=$prefix/share/config.site
2131 ac_site_file2=$prefix/etc/config.site
2132 else
2133 ac_site_file1=$ac_default_prefix/share/config.site
2134 ac_site_file2=$ac_default_prefix/etc/config.site
2135 fi
2136 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2137 do
2138 test "x$ac_site_file" = xNONE && continue
2139 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2141 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2142 sed 's/^/| /' "$ac_site_file" >&5
2143 . "$ac_site_file" \
2144 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2146 as_fn_error $? "failed to load site script $ac_site_file
2147 See \`config.log' for more details" "$LINENO" 5; }
2148 fi
2149 done
2150
2151 if test -r "$cache_file"; then
2152 # Some versions of bash will fail to source /dev/null (special files
2153 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2154 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2156 $as_echo "$as_me: loading cache $cache_file" >&6;}
2157 case $cache_file in
2158 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2159 *) . "./$cache_file";;
2160 esac
2161 fi
2162 else
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2164 $as_echo "$as_me: creating cache $cache_file" >&6;}
2165 >$cache_file
2166 fi
2167
2168 # Check that the precious variables saved in the cache have kept the same
2169 # value.
2170 ac_cache_corrupted=false
2171 for ac_var in $ac_precious_vars; do
2172 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2173 eval ac_new_set=\$ac_env_${ac_var}_set
2174 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2175 eval ac_new_val=\$ac_env_${ac_var}_value
2176 case $ac_old_set,$ac_new_set in
2177 set,)
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2179 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2180 ac_cache_corrupted=: ;;
2181 ,set)
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2183 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2184 ac_cache_corrupted=: ;;
2185 ,);;
2186 *)
2187 if test "x$ac_old_val" != "x$ac_new_val"; then
2188 # differences in whitespace do not lead to failure.
2189 ac_old_val_w=`echo x $ac_old_val`
2190 ac_new_val_w=`echo x $ac_new_val`
2191 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2193 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2194 ac_cache_corrupted=:
2195 else
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2197 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2198 eval $ac_var=\$ac_old_val
2199 fi
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2201 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2203 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2204 fi;;
2205 esac
2206 # Pass precious variables to config.status.
2207 if test "$ac_new_set" = set; then
2208 case $ac_new_val in
2209 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2210 *) ac_arg=$ac_var=$ac_new_val ;;
2211 esac
2212 case " $ac_configure_args " in
2213 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2214 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2215 esac
2216 fi
2217 done
2218 if $ac_cache_corrupted; then
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2222 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2223 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2224 fi
2225 ## -------------------- ##
2226 ## Main body of script. ##
2227 ## -------------------- ##
2228
2229 ac_ext=c
2230 ac_cpp='$CPP $CPPFLAGS'
2231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2234
2235
2236
2237
2238 #
2239 ac_config_headers="$ac_config_headers config.h"
2240
2241 #
2242 MNG_MAJOR_NR=2
2243 MNG_MINOR_NR=0
2244 MNG_RELEASE_NR=2
2245 #
2246
2247
2248
2249 #
2250 am__api_version='1.13'
2251
2252 ac_aux_dir=
2253 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2254 if test -f "$ac_dir/install-sh"; then
2255 ac_aux_dir=$ac_dir
2256 ac_install_sh="$ac_aux_dir/install-sh -c"
2257 break
2258 elif test -f "$ac_dir/install.sh"; then
2259 ac_aux_dir=$ac_dir
2260 ac_install_sh="$ac_aux_dir/install.sh -c"
2261 break
2262 elif test -f "$ac_dir/shtool"; then
2263 ac_aux_dir=$ac_dir
2264 ac_install_sh="$ac_aux_dir/shtool install -c"
2265 break
2266 fi
2267 done
2268 if test -z "$ac_aux_dir"; then
2269 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2270 fi
2271
2272 # These three variables are undocumented and unsupported,
2273 # and are intended to be withdrawn in a future Autoconf release.
2274 # They can cause serious problems if a builder's source tree is in a directory
2275 # whose full name contains unusual characters.
2276 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2277 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2278 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2279
2280
2281 # Find a good install program. We prefer a C program (faster),
2282 # so one script is as good as another. But avoid the broken or
2283 # incompatible versions:
2284 # SysV /etc/install, /usr/sbin/install
2285 # SunOS /usr/etc/install
2286 # IRIX /sbin/install
2287 # AIX /bin/install
2288 # AmigaOS /C/install, which installs bootblocks on floppy discs
2289 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2290 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2291 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2292 # OS/2's system install, which has a completely different semantic
2293 # ./install, which can be erroneously created by make from ./install.sh.
2294 # Reject install programs that cannot install multiple files.
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2296 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2297 if test -z "$INSTALL"; then
2298 if ${ac_cv_path_install+:} false; then :
2299 $as_echo_n "(cached) " >&6
2300 else
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 for as_dir in $PATH
2303 do
2304 IFS=$as_save_IFS
2305 test -z "$as_dir" && as_dir=.
2306 # Account for people who put trailing slashes in PATH elements.
2307 case $as_dir/ in #((
2308 ./ | .// | /[cC]/* | \
2309 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2310 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2311 /usr/ucb/* ) ;;
2312 *)
2313 # OSF1 and SCO ODT 3.0 have their own names for install.
2314 # Don't use installbsd from OSF since it installs stuff as root
2315 # by default.
2316 for ac_prog in ginstall scoinst install; do
2317 for ac_exec_ext in '' $ac_executable_extensions; do
2318 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2319 if test $ac_prog = install &&
2320 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2321 # AIX install. It has an incompatible calling convention.
2322 :
2323 elif test $ac_prog = install &&
2324 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2325 # program-specific install script used by HP pwplus--don't use.
2326 :
2327 else
2328 rm -rf conftest.one conftest.two conftest.dir
2329 echo one > conftest.one
2330 echo two > conftest.two
2331 mkdir conftest.dir
2332 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2333 test -s conftest.one && test -s conftest.two &&
2334 test -s conftest.dir/conftest.one &&
2335 test -s conftest.dir/conftest.two
2336 then
2337 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2338 break 3
2339 fi
2340 fi
2341 fi
2342 done
2343 done
2344 ;;
2345 esac
2346
2347 done
2348 IFS=$as_save_IFS
2349
2350 rm -rf conftest.one conftest.two conftest.dir
2351
2352 fi
2353 if test "${ac_cv_path_install+set}" = set; then
2354 INSTALL=$ac_cv_path_install
2355 else
2356 # As a last resort, use the slow shell script. Don't cache a
2357 # value for INSTALL within a source directory, because that will
2358 # break other packages using the cache if that directory is
2359 # removed, or if the value is a relative name.
2360 INSTALL=$ac_install_sh
2361 fi
2362 fi
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2364 $as_echo "$INSTALL" >&6; }
2365
2366 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2367 # It thinks the first close brace ends the variable substitution.
2368 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2369
2370 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2371
2372 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2373
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2375 $as_echo_n "checking whether build environment is sane... " >&6; }
2376 # Reject unsafe characters in $srcdir or the absolute working directory
2377 # name. Accept space and tab only in the latter.
2378 am_lf='
2379 '
2380 case `pwd` in
2381 *[\\\"\#\$\&\'\`$am_lf]*)
2382 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2383 esac
2384 case $srcdir in
2385 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2386 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2387 esac
2388
2389 # Do 'set' in a subshell so we don't clobber the current shell's
2390 # arguments. Must try -L first in case configure is actually a
2391 # symlink; some systems play weird games with the mod time of symlinks
2392 # (eg FreeBSD returns the mod time of the symlink's containing
2393 # directory).
2394 if (
2395 am_has_slept=no
2396 for am_try in 1 2; do
2397 echo "timestamp, slept: $am_has_slept" > conftest.file
2398 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2399 if test "$*" = "X"; then
2400 # -L didn't work.
2401 set X `ls -t "$srcdir/configure" conftest.file`
2402 fi
2403 if test "$*" != "X $srcdir/configure conftest.file" \
2404 && test "$*" != "X conftest.file $srcdir/configure"; then
2405
2406 # If neither matched, then we have a broken ls. This can happen
2407 # if, for instance, CONFIG_SHELL is bash and it inherits a
2408 # broken ls alias from the environment. This has actually
2409 # happened. Such a system could not be considered "sane".
2410 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2411 alias in your environment" "$LINENO" 5
2412 fi
2413 if test "$2" = conftest.file || test $am_try -eq 2; then
2414 break
2415 fi
2416 # Just in case.
2417 sleep 1
2418 am_has_slept=yes
2419 done
2420 test "$2" = conftest.file
2421 )
2422 then
2423 # Ok.
2424 :
2425 else
2426 as_fn_error $? "newly created file is older than distributed files!
2427 Check your system clock" "$LINENO" 5
2428 fi
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2430 $as_echo "yes" >&6; }
2431 # If we didn't sleep, we still need to ensure time stamps of config.status and
2432 # generated files are strictly newer.
2433 am_sleep_pid=
2434 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2435 ( sleep 1 ) &
2436 am_sleep_pid=$!
2437 fi
2438
2439 rm -f conftest.file
2440
2441 test "$program_prefix" != NONE &&
2442 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2443 # Use a double $ so make ignores it.
2444 test "$program_suffix" != NONE &&
2445 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2446 # Double any \ or $.
2447 # By default was `s,x,x', remove it if useless.
2448 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2449 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2450
2451 # expand $ac_aux_dir to an absolute path
2452 am_aux_dir=`cd $ac_aux_dir && pwd`
2453
2454 if test x"${MISSING+set}" != xset; then
2455 case $am_aux_dir in
2456 *\ * | *\ *)
2457 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2458 *)
2459 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2460 esac
2461 fi
2462 # Use eval to expand $SHELL
2463 if eval "$MISSING --is-lightweight"; then
2464 am_missing_run="$MISSING "
2465 else
2466 am_missing_run=
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2468 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2469 fi
2470
2471 if test x"${install_sh}" != xset; then
2472 case $am_aux_dir in
2473 *\ * | *\ *)
2474 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2475 *)
2476 install_sh="\${SHELL} $am_aux_dir/install-sh"
2477 esac
2478 fi
2479
2480 # Installed binaries are usually stripped using 'strip' when the user
2481 # run "make install-strip". However 'strip' might not be the right
2482 # tool to use in cross-compilation environments, therefore Automake
2483 # will honor the 'STRIP' environment variable to overrule this program.
2484 if test "$cross_compiling" != no; then
2485 if test -n "$ac_tool_prefix"; then
2486 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2487 set dummy ${ac_tool_prefix}strip; ac_word=$2
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2489 $as_echo_n "checking for $ac_word... " >&6; }
2490 if ${ac_cv_prog_STRIP+:} false; then :
2491 $as_echo_n "(cached) " >&6
2492 else
2493 if test -n "$STRIP"; then
2494 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2495 else
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 for as_dir in $PATH
2498 do
2499 IFS=$as_save_IFS
2500 test -z "$as_dir" && as_dir=.
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2503 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 break 2
2506 fi
2507 done
2508 done
2509 IFS=$as_save_IFS
2510
2511 fi
2512 fi
2513 STRIP=$ac_cv_prog_STRIP
2514 if test -n "$STRIP"; then
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2516 $as_echo "$STRIP" >&6; }
2517 else
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2519 $as_echo "no" >&6; }
2520 fi
2521
2522
2523 fi
2524 if test -z "$ac_cv_prog_STRIP"; then
2525 ac_ct_STRIP=$STRIP
2526 # Extract the first word of "strip", so it can be a program name with args.
2527 set dummy strip; ac_word=$2
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2529 $as_echo_n "checking for $ac_word... " >&6; }
2530 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 if test -n "$ac_ct_STRIP"; then
2534 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2535 else
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2538 do
2539 IFS=$as_save_IFS
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2543 ac_cv_prog_ac_ct_STRIP="strip"
2544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 break 2
2546 fi
2547 done
2548 done
2549 IFS=$as_save_IFS
2550
2551 fi
2552 fi
2553 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2554 if test -n "$ac_ct_STRIP"; then
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2556 $as_echo "$ac_ct_STRIP" >&6; }
2557 else
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2559 $as_echo "no" >&6; }
2560 fi
2561
2562 if test "x$ac_ct_STRIP" = x; then
2563 STRIP=":"
2564 else
2565 case $cross_compiling:$ac_tool_warned in
2566 yes:)
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2569 ac_tool_warned=yes ;;
2570 esac
2571 STRIP=$ac_ct_STRIP
2572 fi
2573 else
2574 STRIP="$ac_cv_prog_STRIP"
2575 fi
2576
2577 fi
2578 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2579
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2581 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2582 if test -z "$MKDIR_P"; then
2583 if ${ac_cv_path_mkdir+:} false; then :
2584 $as_echo_n "(cached) " >&6
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2588 do
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 for ac_prog in mkdir gmkdir; do
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2594 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2595 'mkdir (GNU coreutils) '* | \
2596 'mkdir (coreutils) '* | \
2597 'mkdir (fileutils) '4.1*)
2598 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2599 break 3;;
2600 esac
2601 done
2602 done
2603 done
2604 IFS=$as_save_IFS
2605
2606 fi
2607
2608 test -d ./--version && rmdir ./--version
2609 if test "${ac_cv_path_mkdir+set}" = set; then
2610 MKDIR_P="$ac_cv_path_mkdir -p"
2611 else
2612 # As a last resort, use the slow shell script. Don't cache a
2613 # value for MKDIR_P within a source directory, because that will
2614 # break other packages using the cache if that directory is
2615 # removed, or if the value is a relative name.
2616 MKDIR_P="$ac_install_sh -d"
2617 fi
2618 fi
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2620 $as_echo "$MKDIR_P" >&6; }
2621
2622 for ac_prog in gawk mawk nawk awk
2623 do
2624 # Extract the first word of "$ac_prog", so it can be a program name with args.
2625 set dummy $ac_prog; ac_word=$2
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2627 $as_echo_n "checking for $ac_word... " >&6; }
2628 if ${ac_cv_prog_AWK+:} false; then :
2629 $as_echo_n "(cached) " >&6
2630 else
2631 if test -n "$AWK"; then
2632 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637 IFS=$as_save_IFS
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2641 ac_cv_prog_AWK="$ac_prog"
2642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 break 2
2644 fi
2645 done
2646 done
2647 IFS=$as_save_IFS
2648
2649 fi
2650 fi
2651 AWK=$ac_cv_prog_AWK
2652 if test -n "$AWK"; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2654 $as_echo "$AWK" >&6; }
2655 else
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657 $as_echo "no" >&6; }
2658 fi
2659
2660
2661 test -n "$AWK" && break
2662 done
2663
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2665 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2666 set x ${MAKE-make}
2667 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2668 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2669 $as_echo_n "(cached) " >&6
2670 else
2671 cat >conftest.make <<\_ACEOF
2672 SHELL = /bin/sh
2673 all:
2674 @echo '@@@%%%=$(MAKE)=@@@%%%'
2675 _ACEOF
2676 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2677 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2678 *@@@%%%=?*=@@@%%%*)
2679 eval ac_cv_prog_make_${ac_make}_set=yes;;
2680 *)
2681 eval ac_cv_prog_make_${ac_make}_set=no;;
2682 esac
2683 rm -f conftest.make
2684 fi
2685 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2687 $as_echo "yes" >&6; }
2688 SET_MAKE=
2689 else
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691 $as_echo "no" >&6; }
2692 SET_MAKE="MAKE=${MAKE-make}"
2693 fi
2694
2695 rm -rf .tst 2>/dev/null
2696 mkdir .tst 2>/dev/null
2697 if test -d .tst; then
2698 am__leading_dot=.
2699 else
2700 am__leading_dot=_
2701 fi
2702 rmdir .tst 2>/dev/null
2703
2704 # Check whether --enable-silent-rules was given.
2705 if test "${enable_silent_rules+set}" = set; then :
2706 enableval=$enable_silent_rules;
2707 fi
2708
2709 case $enable_silent_rules in # (((
2710 yes) AM_DEFAULT_VERBOSITY=0;;
2711 no) AM_DEFAULT_VERBOSITY=1;;
2712 *) AM_DEFAULT_VERBOSITY=1;;
2713 esac
2714 am_make=${MAKE-make}
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2716 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2717 if ${am_cv_make_support_nested_variables+:} false; then :
2718 $as_echo_n "(cached) " >&6
2719 else
2720 if $as_echo 'TRUE=$(BAR$(V))
2721 BAR0=false
2722 BAR1=true
2723 V=1
2724 am__doit:
2725 @$(TRUE)
2726 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2727 am_cv_make_support_nested_variables=yes
2728 else
2729 am_cv_make_support_nested_variables=no
2730 fi
2731 fi
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2733 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2734 if test $am_cv_make_support_nested_variables = yes; then
2735 AM_V='$(V)'
2736 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2737 else
2738 AM_V=$AM_DEFAULT_VERBOSITY
2739 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2740 fi
2741 AM_BACKSLASH='\'
2742
2743 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2744 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2745 # is not polluted with repeated "-I."
2746 am__isrc=' -I$(srcdir)'
2747 # test to see if srcdir already configured
2748 if test -f $srcdir/config.status; then
2749 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2750 fi
2751 fi
2752
2753 # test whether we have cygpath
2754 if test -z "$CYGPATH_W"; then
2755 if (cygpath --version) >/dev/null 2>/dev/null; then
2756 CYGPATH_W='cygpath -w'
2757 else
2758 CYGPATH_W=echo
2759 fi
2760 fi
2761
2762
2763 # Define the identity of the package.
2764 PACKAGE='libmng-2.0.3'
2765 VERSION='2.0.3'
2766
2767
2768 cat >>confdefs.h <<_ACEOF
2769 #define PACKAGE "$PACKAGE"
2770 _ACEOF
2771
2772
2773 cat >>confdefs.h <<_ACEOF
2774 #define VERSION "$VERSION"
2775 _ACEOF
2776
2777 # Some tools Automake needs.
2778
2779 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2780
2781
2782 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2783
2784
2785 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2786
2787
2788 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2789
2790
2791 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2792
2793 # For better backward compatibility. To be removed once Automake 1.9.x
2794 # dies out for good. For more background, see:
2795 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2796 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2797 mkdir_p='$(MKDIR_P)'
2798
2799 # We need awk for the "check" target. The system "awk" is bad on
2800 # some platforms.
2801 # Always define AMTAR for backward compatibility. Yes, it's still used
2802 # in the wild :-( We should find a proper way to deprecate it ...
2803 AMTAR='$${TAR-tar}'
2804
2805 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815 $as_echo "#define MNG_VERSION_MAJOR 2" >>confdefs.h
2816
2817
2818 $as_echo "#define MNG_VERSION_MINOR 0" >>confdefs.h
2819
2820
2821 $as_echo "#define MNG_VERSION_RELEASE 3" >>confdefs.h
2822
2823
2824 $as_echo "#define MNG_VERSION_SO 2" >>confdefs.h
2825
2826
2827 $as_echo "#define MNG_VERSION_DLL 2" >>confdefs.h
2828
2829
2830 ac_ext=c
2831 ac_cpp='$CPP $CPPFLAGS'
2832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2835 if test -n "$ac_tool_prefix"; then
2836 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2837 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if ${ac_cv_prog_CC+:} false; then :
2841 $as_echo_n "(cached) " >&6
2842 else
2843 if test -n "$CC"; then
2844 ac_cv_prog_CC="$CC" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2856 fi
2857 done
2858 done
2859 IFS=$as_save_IFS
2860
2861 fi
2862 fi
2863 CC=$ac_cv_prog_CC
2864 if test -n "$CC"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2866 $as_echo "$CC" >&6; }
2867 else
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2870 fi
2871
2872
2873 fi
2874 if test -z "$ac_cv_prog_CC"; then
2875 ac_ct_CC=$CC
2876 # Extract the first word of "gcc", so it can be a program name with args.
2877 set dummy gcc; ac_word=$2
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 $as_echo_n "checking for $ac_word... " >&6; }
2880 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2881 $as_echo_n "(cached) " >&6
2882 else
2883 if test -n "$ac_ct_CC"; then
2884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2885 else
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2888 do
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2893 ac_cv_prog_ac_ct_CC="gcc"
2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 break 2
2896 fi
2897 done
2898 done
2899 IFS=$as_save_IFS
2900
2901 fi
2902 fi
2903 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2904 if test -n "$ac_ct_CC"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2906 $as_echo "$ac_ct_CC" >&6; }
2907 else
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2910 fi
2911
2912 if test "x$ac_ct_CC" = x; then
2913 CC=""
2914 else
2915 case $cross_compiling:$ac_tool_warned in
2916 yes:)
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2919 ac_tool_warned=yes ;;
2920 esac
2921 CC=$ac_ct_CC
2922 fi
2923 else
2924 CC="$ac_cv_prog_CC"
2925 fi
2926
2927 if test -z "$CC"; then
2928 if test -n "$ac_tool_prefix"; then
2929 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2930 set dummy ${ac_tool_prefix}cc; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if ${ac_cv_prog_CC+:} false; then :
2934 $as_echo_n "(cached) " >&6
2935 else
2936 if test -n "$CC"; then
2937 ac_cv_prog_CC="$CC" # Let the user override the test.
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2941 do
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946 ac_cv_prog_CC="${ac_tool_prefix}cc"
2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 break 2
2949 fi
2950 done
2951 done
2952 IFS=$as_save_IFS
2953
2954 fi
2955 fi
2956 CC=$ac_cv_prog_CC
2957 if test -n "$CC"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2959 $as_echo "$CC" >&6; }
2960 else
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2963 fi
2964
2965
2966 fi
2967 fi
2968 if test -z "$CC"; then
2969 # Extract the first word of "cc", so it can be a program name with args.
2970 set dummy cc; ac_word=$2
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972 $as_echo_n "checking for $ac_word... " >&6; }
2973 if ${ac_cv_prog_CC+:} false; then :
2974 $as_echo_n "(cached) " >&6
2975 else
2976 if test -n "$CC"; then
2977 ac_cv_prog_CC="$CC" # Let the user override the test.
2978 else
2979 ac_prog_rejected=no
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH
2982 do
2983 IFS=$as_save_IFS
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2988 ac_prog_rejected=yes
2989 continue
2990 fi
2991 ac_cv_prog_CC="cc"
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 break 2
2994 fi
2995 done
2996 done
2997 IFS=$as_save_IFS
2998
2999 if test $ac_prog_rejected = yes; then
3000 # We found a bogon in the path, so make sure we never use it.
3001 set dummy $ac_cv_prog_CC
3002 shift
3003 if test $# != 0; then
3004 # We chose a different compiler from the bogus one.
3005 # However, it has the same basename, so the bogon will be chosen
3006 # first if we set CC to just the basename; use the full file name.
3007 shift
3008 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3009 fi
3010 fi
3011 fi
3012 fi
3013 CC=$ac_cv_prog_CC
3014 if test -n "$CC"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3016 $as_echo "$CC" >&6; }
3017 else
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3020 fi
3021
3022
3023 fi
3024 if test -z "$CC"; then
3025 if test -n "$ac_tool_prefix"; then
3026 for ac_prog in cl.exe
3027 do
3028 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3029 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if ${ac_cv_prog_CC+:} false; then :
3033 $as_echo_n "(cached) " >&6
3034 else
3035 if test -n "$CC"; then
3036 ac_cv_prog_CC="$CC" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 break 2
3048 fi
3049 done
3050 done
3051 IFS=$as_save_IFS
3052
3053 fi
3054 fi
3055 CC=$ac_cv_prog_CC
3056 if test -n "$CC"; then
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3058 $as_echo "$CC" >&6; }
3059 else
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 $as_echo "no" >&6; }
3062 fi
3063
3064
3065 test -n "$CC" && break
3066 done
3067 fi
3068 if test -z "$CC"; then
3069 ac_ct_CC=$CC
3070 for ac_prog in cl.exe
3071 do
3072 # Extract the first word of "$ac_prog", so it can be a program name with args.
3073 set dummy $ac_prog; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3077 $as_echo_n "(cached) " >&6
3078 else
3079 if test -n "$ac_ct_CC"; then
3080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3081 else
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3084 do
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089 ac_cv_prog_ac_ct_CC="$ac_prog"
3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3092 fi
3093 done
3094 done
3095 IFS=$as_save_IFS
3096
3097 fi
3098 fi
3099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3100 if test -n "$ac_ct_CC"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3102 $as_echo "$ac_ct_CC" >&6; }
3103 else
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3106 fi
3107
3108
3109 test -n "$ac_ct_CC" && break
3110 done
3111
3112 if test "x$ac_ct_CC" = x; then
3113 CC=""
3114 else
3115 case $cross_compiling:$ac_tool_warned in
3116 yes:)
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3119 ac_tool_warned=yes ;;
3120 esac
3121 CC=$ac_ct_CC
3122 fi
3123 fi
3124
3125 fi
3126
3127
3128 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 as_fn_error $? "no acceptable C compiler found in \$PATH
3131 See \`config.log' for more details" "$LINENO" 5; }
3132
3133 # Provide some information about the compiler.
3134 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3135 set X $ac_compile
3136 ac_compiler=$2
3137 for ac_option in --version -v -V -qversion; do
3138 { { ac_try="$ac_compiler $ac_option >&5"
3139 case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142 esac
3143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144 $as_echo "$ac_try_echo"; } >&5
3145 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3146 ac_status=$?
3147 if test -s conftest.err; then
3148 sed '10a\
3149 ... rest of stderr output deleted ...
3150 10q' conftest.err >conftest.er1
3151 cat conftest.er1 >&5
3152 fi
3153 rm -f conftest.er1 conftest.err
3154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3155 test $ac_status = 0; }
3156 done
3157
3158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h. */
3160
3161 int
3162 main ()
3163 {
3164
3165 ;
3166 return 0;
3167 }
3168 _ACEOF
3169 ac_clean_files_save=$ac_clean_files
3170 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3171 # Try to create an executable without -o first, disregard a.out.
3172 # It will help us diagnose broken compilers, and finding out an intuition
3173 # of exeext.
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3175 $as_echo_n "checking whether the C compiler works... " >&6; }
3176 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3177
3178 # The possible output files:
3179 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3180
3181 ac_rmfiles=
3182 for ac_file in $ac_files
3183 do
3184 case $ac_file in
3185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3186 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3187 esac
3188 done
3189 rm -f $ac_rmfiles
3190
3191 if { { ac_try="$ac_link_default"
3192 case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195 esac
3196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197 $as_echo "$ac_try_echo"; } >&5
3198 (eval "$ac_link_default") 2>&5
3199 ac_status=$?
3200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201 test $ac_status = 0; }; then :
3202 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3203 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3204 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3205 # so that the user can short-circuit this test for compilers unknown to
3206 # Autoconf.
3207 for ac_file in $ac_files ''
3208 do
3209 test -f "$ac_file" || continue
3210 case $ac_file in
3211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3212 ;;
3213 [ab].out )
3214 # We found the default executable, but exeext='' is most
3215 # certainly right.
3216 break;;
3217 *.* )
3218 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3219 then :; else
3220 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3221 fi
3222 # We set ac_cv_exeext here because the later test for it is not
3223 # safe: cross compilers may not add the suffix if given an `-o'
3224 # argument, so we may need to know it at that point already.
3225 # Even if this section looks crufty: it has the advantage of
3226 # actually working.
3227 break;;
3228 * )
3229 break;;
3230 esac
3231 done
3232 test "$ac_cv_exeext" = no && ac_cv_exeext=
3233
3234 else
3235 ac_file=''
3236 fi
3237 if test -z "$ac_file"; then :
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3240 $as_echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3242
3243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245 as_fn_error 77 "C compiler cannot create executables
3246 See \`config.log' for more details" "$LINENO" 5; }
3247 else
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3249 $as_echo "yes" >&6; }
3250 fi
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3252 $as_echo_n "checking for C compiler default output file name... " >&6; }
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3254 $as_echo "$ac_file" >&6; }
3255 ac_exeext=$ac_cv_exeext
3256
3257 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3258 ac_clean_files=$ac_clean_files_save
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3260 $as_echo_n "checking for suffix of executables... " >&6; }
3261 if { { ac_try="$ac_link"
3262 case "(($ac_try" in
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3265 esac
3266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3267 $as_echo "$ac_try_echo"; } >&5
3268 (eval "$ac_link") 2>&5
3269 ac_status=$?
3270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3271 test $ac_status = 0; }; then :
3272 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3273 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3274 # work properly (i.e., refer to `conftest.exe'), while it won't with
3275 # `rm'.
3276 for ac_file in conftest.exe conftest conftest.*; do
3277 test -f "$ac_file" || continue
3278 case $ac_file in
3279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3280 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3281 break;;
3282 * ) break;;
3283 esac
3284 done
3285 else
3286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3289 See \`config.log' for more details" "$LINENO" 5; }
3290 fi
3291 rm -f conftest conftest$ac_cv_exeext
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3293 $as_echo "$ac_cv_exeext" >&6; }
3294
3295 rm -f conftest.$ac_ext
3296 EXEEXT=$ac_cv_exeext
3297 ac_exeext=$EXEEXT
3298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299 /* end confdefs.h. */
3300 #include <stdio.h>
3301 int
3302 main ()
3303 {
3304 FILE *f = fopen ("conftest.out", "w");
3305 return ferror (f) || fclose (f) != 0;
3306
3307 ;
3308 return 0;
3309 }
3310 _ACEOF
3311 ac_clean_files="$ac_clean_files conftest.out"
3312 # Check that the compiler produces executables we can run. If not, either
3313 # the compiler is broken, or we cross compile.
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3315 $as_echo_n "checking whether we are cross compiling... " >&6; }
3316 if test "$cross_compiling" != yes; then
3317 { { ac_try="$ac_link"
3318 case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321 esac
3322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323 $as_echo "$ac_try_echo"; } >&5
3324 (eval "$ac_link") 2>&5
3325 ac_status=$?
3326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327 test $ac_status = 0; }
3328 if { ac_try='./conftest$ac_cv_exeext'
3329 { { case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332 esac
3333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334 $as_echo "$ac_try_echo"; } >&5
3335 (eval "$ac_try") 2>&5
3336 ac_status=$?
3337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338 test $ac_status = 0; }; }; then
3339 cross_compiling=no
3340 else
3341 if test "$cross_compiling" = maybe; then
3342 cross_compiling=yes
3343 else
3344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346 as_fn_error $? "cannot run C compiled programs.
3347 If you meant to cross compile, use \`--host'.
3348 See \`config.log' for more details" "$LINENO" 5; }
3349 fi
3350 fi
3351 fi
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3353 $as_echo "$cross_compiling" >&6; }
3354
3355 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3356 ac_clean_files=$ac_clean_files_save
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3358 $as_echo_n "checking for suffix of object files... " >&6; }
3359 if ${ac_cv_objext+:} false; then :
3360 $as_echo_n "(cached) " >&6
3361 else
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3364
3365 int
3366 main ()
3367 {
3368
3369 ;
3370 return 0;
3371 }
3372 _ACEOF
3373 rm -f conftest.o conftest.obj
3374 if { { ac_try="$ac_compile"
3375 case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380 $as_echo "$ac_try_echo"; } >&5
3381 (eval "$ac_compile") 2>&5
3382 ac_status=$?
3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384 test $ac_status = 0; }; then :
3385 for ac_file in conftest.o conftest.obj conftest.*; do
3386 test -f "$ac_file" || continue;
3387 case $ac_file in
3388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3389 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3390 break;;
3391 esac
3392 done
3393 else
3394 $as_echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3396
3397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399 as_fn_error $? "cannot compute suffix of object files: cannot compile
3400 See \`config.log' for more details" "$LINENO" 5; }
3401 fi
3402 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3403 fi
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3405 $as_echo "$ac_cv_objext" >&6; }
3406 OBJEXT=$ac_cv_objext
3407 ac_objext=$OBJEXT
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3409 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3410 if ${ac_cv_c_compiler_gnu+:} false; then :
3411 $as_echo_n "(cached) " >&6
3412 else
3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h. */
3415
3416 int
3417 main ()
3418 {
3419 #ifndef __GNUC__
3420 choke me
3421 #endif
3422
3423 ;
3424 return 0;
3425 }
3426 _ACEOF
3427 if ac_fn_c_try_compile "$LINENO"; then :
3428 ac_compiler_gnu=yes
3429 else
3430 ac_compiler_gnu=no
3431 fi
3432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3434
3435 fi
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3437 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3438 if test $ac_compiler_gnu = yes; then
3439 GCC=yes
3440 else
3441 GCC=
3442 fi
3443 ac_test_CFLAGS=${CFLAGS+set}
3444 ac_save_CFLAGS=$CFLAGS
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3446 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3447 if ${ac_cv_prog_cc_g+:} false; then :
3448 $as_echo_n "(cached) " >&6
3449 else
3450 ac_save_c_werror_flag=$ac_c_werror_flag
3451 ac_c_werror_flag=yes
3452 ac_cv_prog_cc_g=no
3453 CFLAGS="-g"
3454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455 /* end confdefs.h. */
3456
3457 int
3458 main ()
3459 {
3460
3461 ;
3462 return 0;
3463 }
3464 _ACEOF
3465 if ac_fn_c_try_compile "$LINENO"; then :
3466 ac_cv_prog_cc_g=yes
3467 else
3468 CFLAGS=""
3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h. */
3471
3472 int
3473 main ()
3474 {
3475
3476 ;
3477 return 0;
3478 }
3479 _ACEOF
3480 if ac_fn_c_try_compile "$LINENO"; then :
3481
3482 else
3483 ac_c_werror_flag=$ac_save_c_werror_flag
3484 CFLAGS="-g"
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3487
3488 int
3489 main ()
3490 {
3491
3492 ;
3493 return 0;
3494 }
3495 _ACEOF
3496 if ac_fn_c_try_compile "$LINENO"; then :
3497 ac_cv_prog_cc_g=yes
3498 fi
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 fi
3501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 fi
3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504 ac_c_werror_flag=$ac_save_c_werror_flag
3505 fi
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3507 $as_echo "$ac_cv_prog_cc_g" >&6; }
3508 if test "$ac_test_CFLAGS" = set; then
3509 CFLAGS=$ac_save_CFLAGS
3510 elif test $ac_cv_prog_cc_g = yes; then
3511 if test "$GCC" = yes; then
3512 CFLAGS="-g -O2"
3513 else
3514 CFLAGS="-g"
3515 fi
3516 else
3517 if test "$GCC" = yes; then
3518 CFLAGS="-O2"
3519 else
3520 CFLAGS=
3521 fi
3522 fi
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3524 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3525 if ${ac_cv_prog_cc_c89+:} false; then :
3526 $as_echo_n "(cached) " >&6
3527 else
3528 ac_cv_prog_cc_c89=no
3529 ac_save_CC=$CC
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3532 #include <stdarg.h>
3533 #include <stdio.h>
3534 struct stat;
3535 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3536 struct buf { int x; };
3537 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3538 static char *e (p, i)
3539 char **p;
3540 int i;
3541 {
3542 return p[i];
3543 }
3544 static char *f (char * (*g) (char **, int), char **p, ...)
3545 {
3546 char *s;
3547 va_list v;
3548 va_start (v,p);
3549 s = g (p, va_arg (v,int));
3550 va_end (v);
3551 return s;
3552 }
3553
3554 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3555 function prototypes and stuff, but not '\xHH' hex character constants.
3556 These don't provoke an error unfortunately, instead are silently treated
3557 as 'x'. The following induces an error, until -std is added to get
3558 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3559 array size at least. It's necessary to write '\x00'==0 to get something
3560 that's true only with -std. */
3561 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3562
3563 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3564 inside strings and character constants. */
3565 #define FOO(x) 'x'
3566 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3567
3568 int test (int i, double x);
3569 struct s1 {int (*f) (int a);};
3570 struct s2 {int (*f) (double a);};
3571 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3572 int argc;
3573 char **argv;
3574 int
3575 main ()
3576 {
3577 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3578 ;
3579 return 0;
3580 }
3581 _ACEOF
3582 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3583 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3584 do
3585 CC="$ac_save_CC $ac_arg"
3586 if ac_fn_c_try_compile "$LINENO"; then :
3587 ac_cv_prog_cc_c89=$ac_arg
3588 fi
3589 rm -f core conftest.err conftest.$ac_objext
3590 test "x$ac_cv_prog_cc_c89" != "xno" && break
3591 done
3592 rm -f conftest.$ac_ext
3593 CC=$ac_save_CC
3594
3595 fi
3596 # AC_CACHE_VAL
3597 case "x$ac_cv_prog_cc_c89" in
3598 x)
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3600 $as_echo "none needed" >&6; } ;;
3601 xno)
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3603 $as_echo "unsupported" >&6; } ;;
3604 *)
3605 CC="$CC $ac_cv_prog_cc_c89"
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3607 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3608 esac
3609 if test "x$ac_cv_prog_cc_c89" != xno; then :
3610
3611 fi
3612
3613 ac_ext=c
3614 ac_cpp='$CPP $CPPFLAGS'
3615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618 DEPDIR="${am__leading_dot}deps"
3619
3620 ac_config_commands="$ac_config_commands depfiles"
3621
3622
3623 am_make=${MAKE-make}
3624 cat > confinc << 'END'
3625 am__doit:
3626 @echo this is the am__doit target
3627 .PHONY: am__doit
3628 END
3629 # If we don't find an include directive, just comment out the code.
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3631 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3632 am__include="#"
3633 am__quote=
3634 _am_result=none
3635 # First try GNU make style include.
3636 echo "include confinc" > confmf
3637 # Ignore all kinds of additional output from 'make'.
3638 case `$am_make -s -f confmf 2> /dev/null` in #(
3639 *the\ am__doit\ target*)
3640 am__include=include
3641 am__quote=
3642 _am_result=GNU
3643 ;;
3644 esac
3645 # Now try BSD make style include.
3646 if test "$am__include" = "#"; then
3647 echo '.include "confinc"' > confmf
3648 case `$am_make -s -f confmf 2> /dev/null` in #(
3649 *the\ am__doit\ target*)
3650 am__include=.include
3651 am__quote="\""
3652 _am_result=BSD
3653 ;;
3654 esac
3655 fi
3656
3657
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3659 $as_echo "$_am_result" >&6; }
3660 rm -f confinc confmf
3661
3662 # Check whether --enable-dependency-tracking was given.
3663 if test "${enable_dependency_tracking+set}" = set; then :
3664 enableval=$enable_dependency_tracking;
3665 fi
3666
3667 if test "x$enable_dependency_tracking" != xno; then
3668 am_depcomp="$ac_aux_dir/depcomp"
3669 AMDEPBACKSLASH='\'
3670 am__nodep='_no'
3671 fi
3672 if test "x$enable_dependency_tracking" != xno; then
3673 AMDEP_TRUE=
3674 AMDEP_FALSE='#'
3675 else
3676 AMDEP_TRUE='#'
3677 AMDEP_FALSE=
3678 fi
3679
3680
3681
3682 depcc="$CC" am_compiler_list=
3683
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3685 $as_echo_n "checking dependency style of $depcc... " >&6; }
3686 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3687 $as_echo_n "(cached) " >&6
3688 else
3689 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3690 # We make a subdir and do the tests there. Otherwise we can end up
3691 # making bogus files that we don't know about and never remove. For
3692 # instance it was reported that on HP-UX the gcc test will end up
3693 # making a dummy file named 'D' -- because '-MD' means "put the output
3694 # in D".
3695 rm -rf conftest.dir
3696 mkdir conftest.dir
3697 # Copy depcomp to subdir because otherwise we won't find it if we're
3698 # using a relative directory.
3699 cp "$am_depcomp" conftest.dir
3700 cd conftest.dir
3701 # We will build objects and dependencies in a subdirectory because
3702 # it helps to detect inapplicable dependency modes. For instance
3703 # both Tru64's cc and ICC support -MD to output dependencies as a
3704 # side effect of compilation, but ICC will put the dependencies in
3705 # the current directory while Tru64 will put them in the object
3706 # directory.
3707 mkdir sub
3708
3709 am_cv_CC_dependencies_compiler_type=none
3710 if test "$am_compiler_list" = ""; then
3711 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3712 fi
3713 am__universal=false
3714 case " $depcc " in #(
3715 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3716 esac
3717
3718 for depmode in $am_compiler_list; do
3719 # Setup a source with many dependencies, because some compilers
3720 # like to wrap large dependency lists on column 80 (with \), and
3721 # we should not choose a depcomp mode which is confused by this.
3722 #
3723 # We need to recreate these files for each test, as the compiler may
3724 # overwrite some of them when testing with obscure command lines.
3725 # This happens at least with the AIX C compiler.
3726 : > sub/conftest.c
3727 for i in 1 2 3 4 5 6; do
3728 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3729 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3730 # Solaris 10 /bin/sh.
3731 echo '/* dummy */' > sub/conftst$i.h
3732 done
3733 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3734
3735 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3736 # mode. It turns out that the SunPro C++ compiler does not properly
3737 # handle '-M -o', and we need to detect this. Also, some Intel
3738 # versions had trouble with output in subdirs.
3739 am__obj=sub/conftest.${OBJEXT-o}
3740 am__minus_obj="-o $am__obj"
3741 case $depmode in
3742 gcc)
3743 # This depmode causes a compiler race in universal mode.
3744 test "$am__universal" = false || continue
3745 ;;
3746 nosideeffect)
3747 # After this tag, mechanisms are not by side-effect, so they'll
3748 # only be used when explicitly requested.
3749 if test "x$enable_dependency_tracking" = xyes; then
3750 continue
3751 else
3752 break
3753 fi
3754 ;;
3755 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3756 # This compiler won't grok '-c -o', but also, the minuso test has
3757 # not run yet. These depmodes are late enough in the game, and
3758 # so weak that their functioning should not be impacted.
3759 am__obj=conftest.${OBJEXT-o}
3760 am__minus_obj=
3761 ;;
3762 none) break ;;
3763 esac
3764 if depmode=$depmode \
3765 source=sub/conftest.c object=$am__obj \
3766 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3767 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3768 >/dev/null 2>conftest.err &&
3769 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3770 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3771 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3772 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3773 # icc doesn't choke on unknown options, it will just issue warnings
3774 # or remarks (even with -Werror). So we grep stderr for any message
3775 # that says an option was ignored or not supported.
3776 # When given -MP, icc 7.0 and 7.1 complain thusly:
3777 # icc: Command line warning: ignoring option '-M'; no argument required
3778 # The diagnosis changed in icc 8.0:
3779 # icc: Command line remark: option '-MP' not supported
3780 if (grep 'ignoring option' conftest.err ||
3781 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3782 am_cv_CC_dependencies_compiler_type=$depmode
3783 break
3784 fi
3785 fi
3786 done
3787
3788 cd ..
3789 rm -rf conftest.dir
3790 else
3791 am_cv_CC_dependencies_compiler_type=none
3792 fi
3793
3794 fi
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3796 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3797 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3798
3799 if
3800 test "x$enable_dependency_tracking" != xno \
3801 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3802 am__fastdepCC_TRUE=
3803 am__fastdepCC_FALSE='#'
3804 else
3805 am__fastdepCC_TRUE='#'
3806 am__fastdepCC_FALSE=
3807 fi
3808
3809
3810
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3812 $as_echo_n "checking for library containing strerror... " >&6; }
3813 if ${ac_cv_search_strerror+:} false; then :
3814 $as_echo_n "(cached) " >&6
3815 else
3816 ac_func_search_save_LIBS=$LIBS
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3819
3820 /* Override any GCC internal prototype to avoid an error.
3821 Use char because int might match the return type of a GCC
3822 builtin and then its argument prototype would still apply. */
3823 #ifdef __cplusplus
3824 extern "C"
3825 #endif
3826 char strerror ();
3827 int
3828 main ()
3829 {
3830 return strerror ();
3831 ;
3832 return 0;
3833 }
3834 _ACEOF
3835 for ac_lib in '' cposix; do
3836 if test -z "$ac_lib"; then
3837 ac_res="none required"
3838 else
3839 ac_res=-l$ac_lib
3840 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3841 fi
3842 if ac_fn_c_try_link "$LINENO"; then :
3843 ac_cv_search_strerror=$ac_res
3844 fi
3845 rm -f core conftest.err conftest.$ac_objext \
3846 conftest$ac_exeext
3847 if ${ac_cv_search_strerror+:} false; then :
3848 break
3849 fi
3850 done
3851 if ${ac_cv_search_strerror+:} false; then :
3852
3853 else
3854 ac_cv_search_strerror=no
3855 fi
3856 rm conftest.$ac_ext
3857 LIBS=$ac_func_search_save_LIBS
3858 fi
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3860 $as_echo "$ac_cv_search_strerror" >&6; }
3861 ac_res=$ac_cv_search_strerror
3862 if test "$ac_res" != no; then :
3863 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3864
3865 fi
3866
3867 case `pwd` in
3868 *\ * | *\ *)
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3870 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3871 esac
3872
3873
3874
3875 macro_version='2.4'
3876 macro_revision='1.3293'
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890 ltmain="$ac_aux_dir/ltmain.sh"
3891
3892 # Make sure we can run config.sub.
3893 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3894 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3895
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3897 $as_echo_n "checking build system type... " >&6; }
3898 if ${ac_cv_build+:} false; then :
3899 $as_echo_n "(cached) " >&6
3900 else
3901 ac_build_alias=$build_alias
3902 test "x$ac_build_alias" = x &&
3903 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3904 test "x$ac_build_alias" = x &&
3905 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3906 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3907 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3908
3909 fi
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3911 $as_echo "$ac_cv_build" >&6; }
3912 case $ac_cv_build in
3913 *-*-*) ;;
3914 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3915 esac
3916 build=$ac_cv_build
3917 ac_save_IFS=$IFS; IFS='-'
3918 set x $ac_cv_build
3919 shift
3920 build_cpu=$1
3921 build_vendor=$2
3922 shift; shift
3923 # Remember, the first character of IFS is used to create $*,
3924 # except with old shells:
3925 build_os=$*
3926 IFS=$ac_save_IFS
3927 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3928
3929
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3931 $as_echo_n "checking host system type... " >&6; }
3932 if ${ac_cv_host+:} false; then :
3933 $as_echo_n "(cached) " >&6
3934 else
3935 if test "x$host_alias" = x; then
3936 ac_cv_host=$ac_cv_build
3937 else
3938 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3939 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3940 fi
3941
3942 fi
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3944 $as_echo "$ac_cv_host" >&6; }
3945 case $ac_cv_host in
3946 *-*-*) ;;
3947 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3948 esac
3949 host=$ac_cv_host
3950 ac_save_IFS=$IFS; IFS='-'
3951 set x $ac_cv_host
3952 shift
3953 host_cpu=$1
3954 host_vendor=$2
3955 shift; shift
3956 # Remember, the first character of IFS is used to create $*,
3957 # except with old shells:
3958 host_os=$*
3959 IFS=$ac_save_IFS
3960 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3961
3962
3963 # Backslashify metacharacters that are still active within
3964 # double-quoted strings.
3965 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3966
3967 # Same as above, but do not quote variable references.
3968 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3969
3970 # Sed substitution to delay expansion of an escaped shell variable in a
3971 # double_quote_subst'ed string.
3972 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3973
3974 # Sed substitution to delay expansion of an escaped single quote.
3975 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3976
3977 # Sed substitution to avoid accidental globbing in evaled expressions
3978 no_glob_subst='s/\*/\\\*/g'
3979
3980 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3981 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3982 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3983
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3985 $as_echo_n "checking how to print strings... " >&6; }
3986 # Test print first, because it will be a builtin if present.
3987 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3988 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3989 ECHO='print -r --'
3990 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3991 ECHO='printf %s\n'
3992 else
3993 # Use this function as a fallback that always works.
3994 func_fallback_echo ()
3995 {
3996 eval 'cat <<_LTECHO_EOF
3997 $1
3998 _LTECHO_EOF'
3999 }
4000 ECHO='func_fallback_echo'
4001 fi
4002
4003 # func_echo_all arg...
4004 # Invoke $ECHO with all args, space-separated.
4005 func_echo_all ()
4006 {
4007 $ECHO ""
4008 }
4009
4010 case "$ECHO" in
4011 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4012 $as_echo "printf" >&6; } ;;
4013 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4014 $as_echo "print -r" >&6; } ;;
4015 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4016 $as_echo "cat" >&6; } ;;
4017 esac
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4033 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4034 if ${ac_cv_path_SED+:} false; then :
4035 $as_echo_n "(cached) " >&6
4036 else
4037 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4038 for ac_i in 1 2 3 4 5 6 7; do
4039 ac_script="$ac_script$as_nl$ac_script"
4040 done
4041 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4042 { ac_script=; unset ac_script;}
4043 if test -z "$SED"; then
4044 ac_path_SED_found=false
4045 # Loop through the user's path and test for each of PROGNAME-LIST
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 for as_dir in $PATH
4048 do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
4051 for ac_prog in sed gsed; do
4052 for ac_exec_ext in '' $ac_executable_extensions; do
4053 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4054 as_fn_executable_p "$ac_path_SED" || continue
4055 # Check for GNU ac_path_SED and select it if it is found.
4056 # Check for GNU $ac_path_SED
4057 case `"$ac_path_SED" --version 2>&1` in
4058 *GNU*)
4059 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4060 *)
4061 ac_count=0
4062 $as_echo_n 0123456789 >"conftest.in"
4063 while :
4064 do
4065 cat "conftest.in" "conftest.in" >"conftest.tmp"
4066 mv "conftest.tmp" "conftest.in"
4067 cp "conftest.in" "conftest.nl"
4068 $as_echo '' >> "conftest.nl"
4069 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4070 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4071 as_fn_arith $ac_count + 1 && ac_count=$as_val
4072 if test $ac_count -gt ${ac_path_SED_max-0}; then
4073 # Best one so far, save it but keep looking for a better one
4074 ac_cv_path_SED="$ac_path_SED"
4075 ac_path_SED_max=$ac_count
4076 fi
4077 # 10*(2^10) chars as input seems more than enough
4078 test $ac_count -gt 10 && break
4079 done
4080 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4081 esac
4082
4083 $ac_path_SED_found && break 3
4084 done
4085 done
4086 done
4087 IFS=$as_save_IFS
4088 if test -z "$ac_cv_path_SED"; then
4089 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4090 fi
4091 else
4092 ac_cv_path_SED=$SED
4093 fi
4094
4095 fi
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4097 $as_echo "$ac_cv_path_SED" >&6; }
4098 SED="$ac_cv_path_SED"
4099 rm -f conftest.sed
4100
4101 test -z "$SED" && SED=sed
4102 Xsed="$SED -e 1s/^X//"
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4115 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4116 if ${ac_cv_path_GREP+:} false; then :
4117 $as_echo_n "(cached) " >&6
4118 else
4119 if test -z "$GREP"; then
4120 ac_path_GREP_found=false
4121 # Loop through the user's path and test for each of PROGNAME-LIST
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4124 do
4125 IFS=$as_save_IFS
4126 test -z "$as_dir" && as_dir=.
4127 for ac_prog in grep ggrep; do
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4130 as_fn_executable_p "$ac_path_GREP" || continue
4131 # Check for GNU ac_path_GREP and select it if it is found.
4132 # Check for GNU $ac_path_GREP
4133 case `"$ac_path_GREP" --version 2>&1` in
4134 *GNU*)
4135 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4136 *)
4137 ac_count=0
4138 $as_echo_n 0123456789 >"conftest.in"
4139 while :
4140 do
4141 cat "conftest.in" "conftest.in" >"conftest.tmp"
4142 mv "conftest.tmp" "conftest.in"
4143 cp "conftest.in" "conftest.nl"
4144 $as_echo 'GREP' >> "conftest.nl"
4145 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4146 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4147 as_fn_arith $ac_count + 1 && ac_count=$as_val
4148 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4149 # Best one so far, save it but keep looking for a better one
4150 ac_cv_path_GREP="$ac_path_GREP"
4151 ac_path_GREP_max=$ac_count
4152 fi
4153 # 10*(2^10) chars as input seems more than enough
4154 test $ac_count -gt 10 && break
4155 done
4156 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4157 esac
4158
4159 $ac_path_GREP_found && break 3
4160 done
4161 done
4162 done
4163 IFS=$as_save_IFS
4164 if test -z "$ac_cv_path_GREP"; then
4165 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4166 fi
4167 else
4168 ac_cv_path_GREP=$GREP
4169 fi
4170
4171 fi
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4173 $as_echo "$ac_cv_path_GREP" >&6; }
4174 GREP="$ac_cv_path_GREP"
4175
4176
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4178 $as_echo_n "checking for egrep... " >&6; }
4179 if ${ac_cv_path_EGREP+:} false; then :
4180 $as_echo_n "(cached) " >&6
4181 else
4182 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4183 then ac_cv_path_EGREP="$GREP -E"
4184 else
4185 if test -z "$EGREP"; then
4186 ac_path_EGREP_found=false
4187 # Loop through the user's path and test for each of PROGNAME-LIST
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4190 do
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
4193 for ac_prog in egrep; do
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4196 as_fn_executable_p "$ac_path_EGREP" || continue
4197 # Check for GNU ac_path_EGREP and select it if it is found.
4198 # Check for GNU $ac_path_EGREP
4199 case `"$ac_path_EGREP" --version 2>&1` in
4200 *GNU*)
4201 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4202 *)
4203 ac_count=0
4204 $as_echo_n 0123456789 >"conftest.in"
4205 while :
4206 do
4207 cat "conftest.in" "conftest.in" >"conftest.tmp"
4208 mv "conftest.tmp" "conftest.in"
4209 cp "conftest.in" "conftest.nl"
4210 $as_echo 'EGREP' >> "conftest.nl"
4211 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4213 as_fn_arith $ac_count + 1 && ac_count=$as_val
4214 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4215 # Best one so far, save it but keep looking for a better one
4216 ac_cv_path_EGREP="$ac_path_EGREP"
4217 ac_path_EGREP_max=$ac_count
4218 fi
4219 # 10*(2^10) chars as input seems more than enough
4220 test $ac_count -gt 10 && break
4221 done
4222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4223 esac
4224
4225 $ac_path_EGREP_found && break 3
4226 done
4227 done
4228 done
4229 IFS=$as_save_IFS
4230 if test -z "$ac_cv_path_EGREP"; then
4231 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4232 fi
4233 else
4234 ac_cv_path_EGREP=$EGREP
4235 fi
4236
4237 fi
4238 fi
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4240 $as_echo "$ac_cv_path_EGREP" >&6; }
4241 EGREP="$ac_cv_path_EGREP"
4242
4243
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4245 $as_echo_n "checking for fgrep... " >&6; }
4246 if ${ac_cv_path_FGREP+:} false; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4250 then ac_cv_path_FGREP="$GREP -F"
4251 else
4252 if test -z "$FGREP"; then
4253 ac_path_FGREP_found=false
4254 # Loop through the user's path and test for each of PROGNAME-LIST
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4257 do
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
4260 for ac_prog in fgrep; do
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4263 as_fn_executable_p "$ac_path_FGREP" || continue
4264 # Check for GNU ac_path_FGREP and select it if it is found.
4265 # Check for GNU $ac_path_FGREP
4266 case `"$ac_path_FGREP" --version 2>&1` in
4267 *GNU*)
4268 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4269 *)
4270 ac_count=0
4271 $as_echo_n 0123456789 >"conftest.in"
4272 while :
4273 do
4274 cat "conftest.in" "conftest.in" >"conftest.tmp"
4275 mv "conftest.tmp" "conftest.in"
4276 cp "conftest.in" "conftest.nl"
4277 $as_echo 'FGREP' >> "conftest.nl"
4278 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4279 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4280 as_fn_arith $ac_count + 1 && ac_count=$as_val
4281 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4282 # Best one so far, save it but keep looking for a better one
4283 ac_cv_path_FGREP="$ac_path_FGREP"
4284 ac_path_FGREP_max=$ac_count
4285 fi
4286 # 10*(2^10) chars as input seems more than enough
4287 test $ac_count -gt 10 && break
4288 done
4289 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4290 esac
4291
4292 $ac_path_FGREP_found && break 3
4293 done
4294 done
4295 done
4296 IFS=$as_save_IFS
4297 if test -z "$ac_cv_path_FGREP"; then
4298 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4299 fi
4300 else
4301 ac_cv_path_FGREP=$FGREP
4302 fi
4303
4304 fi
4305 fi
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4307 $as_echo "$ac_cv_path_FGREP" >&6; }
4308 FGREP="$ac_cv_path_FGREP"
4309
4310
4311 test -z "$GREP" && GREP=grep
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331 # Check whether --with-gnu-ld was given.
4332 if test "${with_gnu_ld+set}" = set; then :
4333 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4334 else
4335 with_gnu_ld=no
4336 fi
4337
4338 ac_prog=ld
4339 if test "$GCC" = yes; then
4340 # Check if gcc -print-prog-name=ld gives a path.
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4342 $as_echo_n "checking for ld used by $CC... " >&6; }
4343 case $host in
4344 *-*-mingw*)
4345 # gcc leaves a trailing carriage return which upsets mingw
4346 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4347 *)
4348 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4349 esac
4350 case $ac_prog in
4351 # Accept absolute paths.
4352 [\\/]* | ?:[\\/]*)
4353 re_direlt='/[^/][^/]*/\.\./'
4354 # Canonicalize the pathname of ld
4355 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4356 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4357 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4358 done
4359 test -z "$LD" && LD="$ac_prog"
4360 ;;
4361 "")
4362 # If it fails, then pretend we aren't using GCC.
4363 ac_prog=ld
4364 ;;
4365 *)
4366 # If it is relative, then search for the first ld in PATH.
4367 with_gnu_ld=unknown
4368 ;;
4369 esac
4370 elif test "$with_gnu_ld" = yes; then
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4372 $as_echo_n "checking for GNU ld... " >&6; }
4373 else
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4375 $as_echo_n "checking for non-GNU ld... " >&6; }
4376 fi
4377 if ${lt_cv_path_LD+:} false; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380 if test -z "$LD"; then
4381 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4382 for ac_dir in $PATH; do
4383 IFS="$lt_save_ifs"
4384 test -z "$ac_dir" && ac_dir=.
4385 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4386 lt_cv_path_LD="$ac_dir/$ac_prog"
4387 # Check to see if the program is GNU ld. I'd rather use --version,
4388 # but apparently some variants of GNU ld only accept -v.
4389 # Break only if it was the GNU/non-GNU ld that we prefer.
4390 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4391 *GNU* | *'with BFD'*)
4392 test "$with_gnu_ld" != no && break
4393 ;;
4394 *)
4395 test "$with_gnu_ld" != yes && break
4396 ;;
4397 esac
4398 fi
4399 done
4400 IFS="$lt_save_ifs"
4401 else
4402 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4403 fi
4404 fi
4405
4406 LD="$lt_cv_path_LD"
4407 if test -n "$LD"; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4409 $as_echo "$LD" >&6; }
4410 else
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412 $as_echo "no" >&6; }
4413 fi
4414 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4416 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4417 if ${lt_cv_prog_gnu_ld+:} false; then :
4418 $as_echo_n "(cached) " >&6
4419 else
4420 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4421 case `$LD -v 2>&1 </dev/null` in
4422 *GNU* | *'with BFD'*)
4423 lt_cv_prog_gnu_ld=yes
4424 ;;
4425 *)
4426 lt_cv_prog_gnu_ld=no
4427 ;;
4428 esac
4429 fi
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4431 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4432 with_gnu_ld=$lt_cv_prog_gnu_ld
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4443 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4444 if ${lt_cv_path_NM+:} false; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 if test -n "$NM"; then
4448 # Let the user override the test.
4449 lt_cv_path_NM="$NM"
4450 else
4451 lt_nm_to_check="${ac_tool_prefix}nm"
4452 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4453 lt_nm_to_check="$lt_nm_to_check nm"
4454 fi
4455 for lt_tmp_nm in $lt_nm_to_check; do
4456 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4457 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4458 IFS="$lt_save_ifs"
4459 test -z "$ac_dir" && ac_dir=.
4460 tmp_nm="$ac_dir/$lt_tmp_nm"
4461 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4462 # Check to see if the nm accepts a BSD-compat flag.
4463 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4464 # nm: unknown option "B" ignored
4465 # Tru64's nm complains that /dev/null is an invalid object file
4466 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4467 */dev/null* | *'Invalid file or object type'*)
4468 lt_cv_path_NM="$tmp_nm -B"
4469 break
4470 ;;
4471 *)
4472 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4473 */dev/null*)
4474 lt_cv_path_NM="$tmp_nm -p"
4475 break
4476 ;;
4477 *)
4478 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4479 continue # so that we can try to find one that supports BSD flags
4480 ;;
4481 esac
4482 ;;
4483 esac
4484 fi
4485 done
4486 IFS="$lt_save_ifs"
4487 done
4488 : ${lt_cv_path_NM=no}
4489 fi
4490 fi
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4492 $as_echo "$lt_cv_path_NM" >&6; }
4493 if test "$lt_cv_path_NM" != "no"; then
4494 NM="$lt_cv_path_NM"
4495 else
4496 # Didn't find any BSD compatible name lister, look for dumpbin.
4497 if test -n "$DUMPBIN"; then :
4498 # Let the user override the test.
4499 else
4500 if test -n "$ac_tool_prefix"; then
4501 for ac_prog in dumpbin "link -dump"
4502 do
4503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4506 $as_echo_n "checking for $ac_word... " >&6; }
4507 if ${ac_cv_prog_DUMPBIN+:} false; then :
4508 $as_echo_n "(cached) " >&6
4509 else
4510 if test -n "$DUMPBIN"; then
4511 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4512 else
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH
4515 do
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4520 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 break 2
4523 fi
4524 done
4525 done
4526 IFS=$as_save_IFS
4527
4528 fi
4529 fi
4530 DUMPBIN=$ac_cv_prog_DUMPBIN
4531 if test -n "$DUMPBIN"; then
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4533 $as_echo "$DUMPBIN" >&6; }
4534 else
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536 $as_echo "no" >&6; }
4537 fi
4538
4539
4540 test -n "$DUMPBIN" && break
4541 done
4542 fi
4543 if test -z "$DUMPBIN"; then
4544 ac_ct_DUMPBIN=$DUMPBIN
4545 for ac_prog in dumpbin "link -dump"
4546 do
4547 # Extract the first word of "$ac_prog", so it can be a program name with args.
4548 set dummy $ac_prog; ac_word=$2
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550 $as_echo_n "checking for $ac_word... " >&6; }
4551 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4552 $as_echo_n "(cached) " >&6
4553 else
4554 if test -n "$ac_ct_DUMPBIN"; then
4555 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4556 else
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4559 do
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4564 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 break 2
4567 fi
4568 done
4569 done
4570 IFS=$as_save_IFS
4571
4572 fi
4573 fi
4574 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4575 if test -n "$ac_ct_DUMPBIN"; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4577 $as_echo "$ac_ct_DUMPBIN" >&6; }
4578 else
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4581 fi
4582
4583
4584 test -n "$ac_ct_DUMPBIN" && break
4585 done
4586
4587 if test "x$ac_ct_DUMPBIN" = x; then
4588 DUMPBIN=":"
4589 else
4590 case $cross_compiling:$ac_tool_warned in
4591 yes:)
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4594 ac_tool_warned=yes ;;
4595 esac
4596 DUMPBIN=$ac_ct_DUMPBIN
4597 fi
4598 fi
4599
4600 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4601 *COFF*)
4602 DUMPBIN="$DUMPBIN -symbols"
4603 ;;
4604 *)
4605 DUMPBIN=:
4606 ;;
4607 esac
4608 fi
4609
4610 if test "$DUMPBIN" != ":"; then
4611 NM="$DUMPBIN"
4612 fi
4613 fi
4614 test -z "$NM" && NM=nm
4615
4616
4617
4618
4619
4620
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4622 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4623 if ${lt_cv_nm_interface+:} false; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 lt_cv_nm_interface="BSD nm"
4627 echo "int some_variable = 0;" > conftest.$ac_ext
4628 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4629 (eval "$ac_compile" 2>conftest.err)
4630 cat conftest.err >&5
4631 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4632 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4633 cat conftest.err >&5
4634 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4635 cat conftest.out >&5
4636 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4637 lt_cv_nm_interface="MS dumpbin"
4638 fi
4639 rm -f conftest*
4640 fi
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4642 $as_echo "$lt_cv_nm_interface" >&6; }
4643
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4645 $as_echo_n "checking whether ln -s works... " >&6; }
4646 LN_S=$as_ln_s
4647 if test "$LN_S" = "ln -s"; then
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4649 $as_echo "yes" >&6; }
4650 else
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4652 $as_echo "no, using $LN_S" >&6; }
4653 fi
4654
4655 # find the maximum length of command line arguments
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4657 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4658 if ${lt_cv_sys_max_cmd_len+:} false; then :
4659 $as_echo_n "(cached) " >&6
4660 else
4661 i=0
4662 teststring="ABCD"
4663
4664 case $build_os in
4665 msdosdjgpp*)
4666 # On DJGPP, this test can blow up pretty badly due to problems in libc
4667 # (any single argument exceeding 2000 bytes causes a buffer overrun
4668 # during glob expansion). Even if it were fixed, the result of this
4669 # check would be larger than it should be.
4670 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4671 ;;
4672
4673 gnu*)
4674 # Under GNU Hurd, this test is not required because there is
4675 # no limit to the length of command line arguments.
4676 # Libtool will interpret -1 as no limit whatsoever
4677 lt_cv_sys_max_cmd_len=-1;
4678 ;;
4679
4680 cygwin* | mingw* | cegcc*)
4681 # On Win9x/ME, this test blows up -- it succeeds, but takes
4682 # about 5 minutes as the teststring grows exponentially.
4683 # Worse, since 9x/ME are not pre-emptively multitasking,
4684 # you end up with a "frozen" computer, even though with patience
4685 # the test eventually succeeds (with a max line length of 256k).
4686 # Instead, let's just punt: use the minimum linelength reported by
4687 # all of the supported platforms: 8192 (on NT/2K/XP).
4688 lt_cv_sys_max_cmd_len=8192;
4689 ;;
4690
4691 mint*)
4692 # On MiNT this can take a long time and run out of memory.
4693 lt_cv_sys_max_cmd_len=8192;
4694 ;;
4695
4696 amigaos*)
4697 # On AmigaOS with pdksh, this test takes hours, literally.
4698 # So we just punt and use a minimum line length of 8192.
4699 lt_cv_sys_max_cmd_len=8192;
4700 ;;
4701
4702 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4703 # This has been around since 386BSD, at least. Likely further.
4704 if test -x /sbin/sysctl; then
4705 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4706 elif test -x /usr/sbin/sysctl; then
4707 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4708 else
4709 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4710 fi
4711 # And add a safety zone
4712 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4713 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4714 ;;
4715
4716 interix*)
4717 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4718 lt_cv_sys_max_cmd_len=196608
4719 ;;
4720
4721 osf*)
4722 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4723 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4724 # nice to cause kernel panics so lets avoid the loop below.
4725 # First set a reasonable default.
4726 lt_cv_sys_max_cmd_len=16384
4727 #
4728 if test -x /sbin/sysconfig; then
4729 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4730 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4731 esac
4732 fi
4733 ;;
4734 sco3.2v5*)
4735 lt_cv_sys_max_cmd_len=102400
4736 ;;
4737 sysv5* | sco5v6* | sysv4.2uw2*)
4738 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4739 if test -n "$kargmax"; then
4740 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4741 else
4742 lt_cv_sys_max_cmd_len=32768
4743 fi
4744 ;;
4745 *)
4746 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4747 if test -n "$lt_cv_sys_max_cmd_len"; then
4748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4750 else
4751 # Make teststring a little bigger before we do anything with it.
4752 # a 1K string should be a reasonable start.
4753 for i in 1 2 3 4 5 6 7 8 ; do
4754 teststring=$teststring$teststring
4755 done
4756 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4757 # If test is not a shell built-in, we'll probably end up computing a
4758 # maximum length that is only half of the actual maximum length, but
4759 # we can't tell.
4760 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4761 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4762 test $i != 17 # 1/2 MB should be enough
4763 do
4764 i=`expr $i + 1`
4765 teststring=$teststring$teststring
4766 done
4767 # Only check the string length outside the loop.
4768 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4769 teststring=
4770 # Add a significant safety factor because C++ compilers can tack on
4771 # massive amounts of additional arguments before passing them to the
4772 # linker. It appears as though 1/2 is a usable value.
4773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4774 fi
4775 ;;
4776 esac
4777
4778 fi
4779
4780 if test -n $lt_cv_sys_max_cmd_len ; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4782 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4783 else
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4785 $as_echo "none" >&6; }
4786 fi
4787 max_cmd_len=$lt_cv_sys_max_cmd_len
4788
4789
4790
4791
4792
4793
4794 : ${CP="cp -f"}
4795 : ${MV="mv -f"}
4796 : ${RM="rm -f"}
4797
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4799 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4800 # Try some XSI features
4801 xsi_shell=no
4802 ( _lt_dummy="a/b/c"
4803 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4804 = c,a/b,b/c, \
4805 && eval 'test $(( 1 + 1 )) -eq 2 \
4806 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4807 && xsi_shell=yes
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4809 $as_echo "$xsi_shell" >&6; }
4810
4811
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4813 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4814 lt_shell_append=no
4815 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4816 >/dev/null 2>&1 \
4817 && lt_shell_append=yes
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4819 $as_echo "$lt_shell_append" >&6; }
4820
4821
4822 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4823 lt_unset=unset
4824 else
4825 lt_unset=false
4826 fi
4827
4828
4829
4830
4831
4832 # test EBCDIC or ASCII
4833 case `echo X|tr X '\101'` in
4834 A) # ASCII based system
4835 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4836 lt_SP2NL='tr \040 \012'
4837 lt_NL2SP='tr \015\012 \040\040'
4838 ;;
4839 *) # EBCDIC based system
4840 lt_SP2NL='tr \100 \n'
4841 lt_NL2SP='tr \r\n \100\100'
4842 ;;
4843 esac
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4854 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4855 if ${lt_cv_to_host_file_cmd+:} false; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 case $host in
4859 *-*-mingw* )
4860 case $build in
4861 *-*-mingw* ) # actually msys
4862 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4863 ;;
4864 *-*-cygwin* )
4865 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4866 ;;
4867 * ) # otherwise, assume *nix
4868 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4869 ;;
4870 esac
4871 ;;
4872 *-*-cygwin* )
4873 case $build in
4874 *-*-mingw* ) # actually msys
4875 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4876 ;;
4877 *-*-cygwin* )
4878 lt_cv_to_host_file_cmd=func_convert_file_noop
4879 ;;
4880 * ) # otherwise, assume *nix
4881 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4882 ;;
4883 esac
4884 ;;
4885 * ) # unhandled hosts (and "normal" native builds)
4886 lt_cv_to_host_file_cmd=func_convert_file_noop
4887 ;;
4888 esac
4889
4890 fi
4891
4892 to_host_file_cmd=$lt_cv_to_host_file_cmd
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4894 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4895
4896
4897
4898
4899
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4901 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4902 if ${lt_cv_to_tool_file_cmd+:} false; then :
4903 $as_echo_n "(cached) " >&6
4904 else
4905 #assume ordinary cross tools, or native build.
4906 lt_cv_to_tool_file_cmd=func_convert_file_noop
4907 case $host in
4908 *-*-mingw* )
4909 case $build in
4910 *-*-mingw* ) # actually msys
4911 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4912 ;;
4913 esac
4914 ;;
4915 esac
4916
4917 fi
4918
4919 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4921 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4922
4923
4924
4925
4926
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4928 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4929 if ${lt_cv_ld_reload_flag+:} false; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 lt_cv_ld_reload_flag='-r'
4933 fi
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4935 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4936 reload_flag=$lt_cv_ld_reload_flag
4937 case $reload_flag in
4938 "" | " "*) ;;
4939 *) reload_flag=" $reload_flag" ;;
4940 esac
4941 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4942 case $host_os in
4943 cygwin* | mingw* | pw32* | cegcc*)
4944 if test "$GCC" != yes; then
4945 reload_cmds=false
4946 fi
4947 ;;
4948 darwin*)
4949 if test "$GCC" = yes; then
4950 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4951 else
4952 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4953 fi
4954 ;;
4955 esac
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965 if test -n "$ac_tool_prefix"; then
4966 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4967 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969 $as_echo_n "checking for $ac_word... " >&6; }
4970 if ${ac_cv_prog_OBJDUMP+:} false; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 if test -n "$OBJDUMP"; then
4974 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4978 do
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4983 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4986 fi
4987 done
4988 done
4989 IFS=$as_save_IFS
4990
4991 fi
4992 fi
4993 OBJDUMP=$ac_cv_prog_OBJDUMP
4994 if test -n "$OBJDUMP"; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4996 $as_echo "$OBJDUMP" >&6; }
4997 else
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999 $as_echo "no" >&6; }
5000 fi
5001
5002
5003 fi
5004 if test -z "$ac_cv_prog_OBJDUMP"; then
5005 ac_ct_OBJDUMP=$OBJDUMP
5006 # Extract the first word of "objdump", so it can be a program name with args.
5007 set dummy objdump; ac_word=$2
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009 $as_echo_n "checking for $ac_word... " >&6; }
5010 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5011 $as_echo_n "(cached) " >&6
5012 else
5013 if test -n "$ac_ct_OBJDUMP"; then
5014 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5015 else
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH
5018 do
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5023 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 break 2
5026 fi
5027 done
5028 done
5029 IFS=$as_save_IFS
5030
5031 fi
5032 fi
5033 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5034 if test -n "$ac_ct_OBJDUMP"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5036 $as_echo "$ac_ct_OBJDUMP" >&6; }
5037 else
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5040 fi
5041
5042 if test "x$ac_ct_OBJDUMP" = x; then
5043 OBJDUMP="false"
5044 else
5045 case $cross_compiling:$ac_tool_warned in
5046 yes:)
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5049 ac_tool_warned=yes ;;
5050 esac
5051 OBJDUMP=$ac_ct_OBJDUMP
5052 fi
5053 else
5054 OBJDUMP="$ac_cv_prog_OBJDUMP"
5055 fi
5056
5057 test -z "$OBJDUMP" && OBJDUMP=objdump
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5068 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5069 if ${lt_cv_deplibs_check_method+:} false; then :
5070 $as_echo_n "(cached) " >&6
5071 else
5072 lt_cv_file_magic_cmd='$MAGIC_CMD'
5073 lt_cv_file_magic_test_file=
5074 lt_cv_deplibs_check_method='unknown'
5075 # Need to set the preceding variable on all platforms that support
5076 # interlibrary dependencies.
5077 # 'none' -- dependencies not supported.
5078 # `unknown' -- same as none, but documents that we really don't know.
5079 # 'pass_all' -- all dependencies passed with no checks.
5080 # 'test_compile' -- check by making test program.
5081 # 'file_magic [[regex]]' -- check by looking for files in library path
5082 # which responds to the $file_magic_cmd with a given extended regex.
5083 # If you have `file' or equivalent on your system and you're not sure
5084 # whether `pass_all' will *always* work, you probably want this one.
5085
5086 case $host_os in
5087 aix[4-9]*)
5088 lt_cv_deplibs_check_method=pass_all
5089 ;;
5090
5091 beos*)
5092 lt_cv_deplibs_check_method=pass_all
5093 ;;
5094
5095 bsdi[45]*)
5096 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5097 lt_cv_file_magic_cmd='/usr/bin/file -L'
5098 lt_cv_file_magic_test_file=/shlib/libc.so
5099 ;;
5100
5101 cygwin*)
5102 # func_win32_libid is a shell function defined in ltmain.sh
5103 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5104 lt_cv_file_magic_cmd='func_win32_libid'
5105 ;;
5106
5107 mingw* | pw32*)
5108 # Base MSYS/MinGW do not provide the 'file' command needed by
5109 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5110 # unless we find 'file', for example because we are cross-compiling.
5111 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5112 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5113 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5114 lt_cv_file_magic_cmd='func_win32_libid'
5115 else
5116 # Keep this pattern in sync with the one in func_win32_libid.
5117 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5118 lt_cv_file_magic_cmd='$OBJDUMP -f'
5119 fi
5120 ;;
5121
5122 cegcc*)
5123 # use the weaker test based on 'objdump'. See mingw*.
5124 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5125 lt_cv_file_magic_cmd='$OBJDUMP -f'
5126 ;;
5127
5128 darwin* | rhapsody*)
5129 lt_cv_deplibs_check_method=pass_all
5130 ;;
5131
5132 freebsd* | dragonfly*)
5133 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5134 case $host_cpu in
5135 i*86 )
5136 # Not sure whether the presence of OpenBSD here was a mistake.
5137 # Let's accept both of them until this is cleared up.
5138 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5139 lt_cv_file_magic_cmd=/usr/bin/file
5140 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5141 ;;
5142 esac
5143 else
5144 lt_cv_deplibs_check_method=pass_all
5145 fi
5146 ;;
5147
5148 gnu*)
5149 lt_cv_deplibs_check_method=pass_all
5150 ;;
5151
5152 haiku*)
5153 lt_cv_deplibs_check_method=pass_all
5154 ;;
5155
5156 hpux10.20* | hpux11*)
5157 lt_cv_file_magic_cmd=/usr/bin/file
5158 case $host_cpu in
5159 ia64*)
5160 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5161 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5162 ;;
5163 hppa*64*)
5164 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]'
5165 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5166 ;;
5167 *)
5168 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5169 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5170 ;;
5171 esac
5172 ;;
5173
5174 interix[3-9]*)
5175 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5177 ;;
5178
5179 irix5* | irix6* | nonstopux*)
5180 case $LD in
5181 *-32|*"-32 ") libmagic=32-bit;;
5182 *-n32|*"-n32 ") libmagic=N32;;
5183 *-64|*"-64 ") libmagic=64-bit;;
5184 *) libmagic=never-match;;
5185 esac
5186 lt_cv_deplibs_check_method=pass_all
5187 ;;
5188
5189 # This must be Linux ELF.
5190 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5191 lt_cv_deplibs_check_method=pass_all
5192 ;;
5193
5194 netbsd*)
5195 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5196 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5197 else
5198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5199 fi
5200 ;;
5201
5202 newos6*)
5203 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5204 lt_cv_file_magic_cmd=/usr/bin/file
5205 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5206 ;;
5207
5208 *nto* | *qnx*)
5209 lt_cv_deplibs_check_method=pass_all
5210 ;;
5211
5212 openbsd*)
5213 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5214 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5215 else
5216 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5217 fi
5218 ;;
5219
5220 osf3* | osf4* | osf5*)
5221 lt_cv_deplibs_check_method=pass_all
5222 ;;
5223
5224 rdos*)
5225 lt_cv_deplibs_check_method=pass_all
5226 ;;
5227
5228 solaris*)
5229 lt_cv_deplibs_check_method=pass_all
5230 ;;
5231
5232 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5233 lt_cv_deplibs_check_method=pass_all
5234 ;;
5235
5236 sysv4 | sysv4.3*)
5237 case $host_vendor in
5238 motorola)
5239 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]'
5240 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5241 ;;
5242 ncr)
5243 lt_cv_deplibs_check_method=pass_all
5244 ;;
5245 sequent)
5246 lt_cv_file_magic_cmd='/bin/file'
5247 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5248 ;;
5249 sni)
5250 lt_cv_file_magic_cmd='/bin/file'
5251 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5252 lt_cv_file_magic_test_file=/lib/libc.so
5253 ;;
5254 siemens)
5255 lt_cv_deplibs_check_method=pass_all
5256 ;;
5257 pc)
5258 lt_cv_deplibs_check_method=pass_all
5259 ;;
5260 esac
5261 ;;
5262
5263 tpf*)
5264 lt_cv_deplibs_check_method=pass_all
5265 ;;
5266 esac
5267
5268 fi
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5270 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5271
5272 file_magic_glob=
5273 want_nocaseglob=no
5274 if test "$build" = "$host"; then
5275 case $host_os in
5276 mingw* | pw32*)
5277 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5278 want_nocaseglob=yes
5279 else
5280 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5281 fi
5282 ;;
5283 esac
5284 fi
5285
5286 file_magic_cmd=$lt_cv_file_magic_cmd
5287 deplibs_check_method=$lt_cv_deplibs_check_method
5288 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311 if test -n "$ac_tool_prefix"; then
5312 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5313 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5315 $as_echo_n "checking for $ac_word... " >&6; }
5316 if ${ac_cv_prog_DLLTOOL+:} false; then :
5317 $as_echo_n "(cached) " >&6
5318 else
5319 if test -n "$DLLTOOL"; then
5320 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5321 else
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH
5324 do
5325 IFS=$as_save_IFS
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5329 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 break 2
5332 fi
5333 done
5334 done
5335 IFS=$as_save_IFS
5336
5337 fi
5338 fi
5339 DLLTOOL=$ac_cv_prog_DLLTOOL
5340 if test -n "$DLLTOOL"; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5342 $as_echo "$DLLTOOL" >&6; }
5343 else
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5346 fi
5347
5348
5349 fi
5350 if test -z "$ac_cv_prog_DLLTOOL"; then
5351 ac_ct_DLLTOOL=$DLLTOOL
5352 # Extract the first word of "dlltool", so it can be a program name with args.
5353 set dummy dlltool; ac_word=$2
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5355 $as_echo_n "checking for $ac_word... " >&6; }
5356 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5357 $as_echo_n "(cached) " >&6
5358 else
5359 if test -n "$ac_ct_DLLTOOL"; then
5360 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5361 else
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 for as_dir in $PATH
5364 do
5365 IFS=$as_save_IFS
5366 test -z "$as_dir" && as_dir=.
5367 for ac_exec_ext in '' $ac_executable_extensions; do
5368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5369 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5371 break 2
5372 fi
5373 done
5374 done
5375 IFS=$as_save_IFS
5376
5377 fi
5378 fi
5379 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5380 if test -n "$ac_ct_DLLTOOL"; then
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5382 $as_echo "$ac_ct_DLLTOOL" >&6; }
5383 else
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385 $as_echo "no" >&6; }
5386 fi
5387
5388 if test "x$ac_ct_DLLTOOL" = x; then
5389 DLLTOOL="false"
5390 else
5391 case $cross_compiling:$ac_tool_warned in
5392 yes:)
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5395 ac_tool_warned=yes ;;
5396 esac
5397 DLLTOOL=$ac_ct_DLLTOOL
5398 fi
5399 else
5400 DLLTOOL="$ac_cv_prog_DLLTOOL"
5401 fi
5402
5403 test -z "$DLLTOOL" && DLLTOOL=dlltool
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5415 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5416 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 lt_cv_sharedlib_from_linklib_cmd='unknown'
5420
5421 case $host_os in
5422 cygwin* | mingw* | pw32* | cegcc*)
5423 # two different shell functions defined in ltmain.sh
5424 # decide which to use based on capabilities of $DLLTOOL
5425 case `$DLLTOOL --help 2>&1` in
5426 *--identify-strict*)
5427 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5428 ;;
5429 *)
5430 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5431 ;;
5432 esac
5433 ;;
5434 *)
5435 # fallback: assume linklib IS sharedlib
5436 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5437 ;;
5438 esac
5439
5440 fi
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5442 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5443 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5444 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5445
5446
5447
5448
5449
5450
5451
5452 if test -n "$ac_tool_prefix"; then
5453 for ac_prog in ar
5454 do
5455 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5456 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5458 $as_echo_n "checking for $ac_word... " >&6; }
5459 if ${ac_cv_prog_AR+:} false; then :
5460 $as_echo_n "(cached) " >&6
5461 else
5462 if test -n "$AR"; then
5463 ac_cv_prog_AR="$AR" # Let the user override the test.
5464 else
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH
5467 do
5468 IFS=$as_save_IFS
5469 test -z "$as_dir" && as_dir=.
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5472 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 break 2
5475 fi
5476 done
5477 done
5478 IFS=$as_save_IFS
5479
5480 fi
5481 fi
5482 AR=$ac_cv_prog_AR
5483 if test -n "$AR"; then
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5485 $as_echo "$AR" >&6; }
5486 else
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488 $as_echo "no" >&6; }
5489 fi
5490
5491
5492 test -n "$AR" && break
5493 done
5494 fi
5495 if test -z "$AR"; then
5496 ac_ct_AR=$AR
5497 for ac_prog in ar
5498 do
5499 # Extract the first word of "$ac_prog", so it can be a program name with args.
5500 set dummy $ac_prog; ac_word=$2
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5502 $as_echo_n "checking for $ac_word... " >&6; }
5503 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5504 $as_echo_n "(cached) " >&6
5505 else
5506 if test -n "$ac_ct_AR"; then
5507 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5508 else
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 for as_dir in $PATH
5511 do
5512 IFS=$as_save_IFS
5513 test -z "$as_dir" && as_dir=.
5514 for ac_exec_ext in '' $ac_executable_extensions; do
5515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5516 ac_cv_prog_ac_ct_AR="$ac_prog"
5517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5518 break 2
5519 fi
5520 done
5521 done
5522 IFS=$as_save_IFS
5523
5524 fi
5525 fi
5526 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5527 if test -n "$ac_ct_AR"; then
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5529 $as_echo "$ac_ct_AR" >&6; }
5530 else
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532 $as_echo "no" >&6; }
5533 fi
5534
5535
5536 test -n "$ac_ct_AR" && break
5537 done
5538
5539 if test "x$ac_ct_AR" = x; then
5540 AR="false"
5541 else
5542 case $cross_compiling:$ac_tool_warned in
5543 yes:)
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5546 ac_tool_warned=yes ;;
5547 esac
5548 AR=$ac_ct_AR
5549 fi
5550 fi
5551
5552 : ${AR=ar}
5553 : ${AR_FLAGS=cru}
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5566 $as_echo_n "checking for archiver @FILE support... " >&6; }
5567 if ${lt_cv_ar_at_file+:} false; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 lt_cv_ar_at_file=no
5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5573
5574 int
5575 main ()
5576 {
5577
5578 ;
5579 return 0;
5580 }
5581 _ACEOF
5582 if ac_fn_c_try_compile "$LINENO"; then :
5583 echo conftest.$ac_objext > conftest.lst
5584 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5586 (eval $lt_ar_try) 2>&5
5587 ac_status=$?
5588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5589 test $ac_status = 0; }
5590 if test "$ac_status" -eq 0; then
5591 # Ensure the archiver fails upon bogus file names.
5592 rm -f conftest.$ac_objext libconftest.a
5593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5594 (eval $lt_ar_try) 2>&5
5595 ac_status=$?
5596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5597 test $ac_status = 0; }
5598 if test "$ac_status" -ne 0; then
5599 lt_cv_ar_at_file=@
5600 fi
5601 fi
5602 rm -f conftest.* libconftest.a
5603
5604 fi
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606
5607 fi
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5609 $as_echo "$lt_cv_ar_at_file" >&6; }
5610
5611 if test "x$lt_cv_ar_at_file" = xno; then
5612 archiver_list_spec=
5613 else
5614 archiver_list_spec=$lt_cv_ar_at_file
5615 fi
5616
5617
5618
5619
5620
5621
5622
5623 if test -n "$ac_tool_prefix"; then
5624 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5625 set dummy ${ac_tool_prefix}strip; ac_word=$2
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5627 $as_echo_n "checking for $ac_word... " >&6; }
5628 if ${ac_cv_prog_STRIP+:} false; then :
5629 $as_echo_n "(cached) " >&6
5630 else
5631 if test -n "$STRIP"; then
5632 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5633 else
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 for as_dir in $PATH
5636 do
5637 IFS=$as_save_IFS
5638 test -z "$as_dir" && as_dir=.
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5641 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5643 break 2
5644 fi
5645 done
5646 done
5647 IFS=$as_save_IFS
5648
5649 fi
5650 fi
5651 STRIP=$ac_cv_prog_STRIP
5652 if test -n "$STRIP"; then
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5654 $as_echo "$STRIP" >&6; }
5655 else
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5657 $as_echo "no" >&6; }
5658 fi
5659
5660
5661 fi
5662 if test -z "$ac_cv_prog_STRIP"; then
5663 ac_ct_STRIP=$STRIP
5664 # Extract the first word of "strip", so it can be a program name with args.
5665 set dummy strip; ac_word=$2
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667 $as_echo_n "checking for $ac_word... " >&6; }
5668 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5669 $as_echo_n "(cached) " >&6
5670 else
5671 if test -n "$ac_ct_STRIP"; then
5672 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5673 else
5674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 for as_dir in $PATH
5676 do
5677 IFS=$as_save_IFS
5678 test -z "$as_dir" && as_dir=.
5679 for ac_exec_ext in '' $ac_executable_extensions; do
5680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5681 ac_cv_prog_ac_ct_STRIP="strip"
5682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5683 break 2
5684 fi
5685 done
5686 done
5687 IFS=$as_save_IFS
5688
5689 fi
5690 fi
5691 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5692 if test -n "$ac_ct_STRIP"; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5694 $as_echo "$ac_ct_STRIP" >&6; }
5695 else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 $as_echo "no" >&6; }
5698 fi
5699
5700 if test "x$ac_ct_STRIP" = x; then
5701 STRIP=":"
5702 else
5703 case $cross_compiling:$ac_tool_warned in
5704 yes:)
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5707 ac_tool_warned=yes ;;
5708 esac
5709 STRIP=$ac_ct_STRIP
5710 fi
5711 else
5712 STRIP="$ac_cv_prog_STRIP"
5713 fi
5714
5715 test -z "$STRIP" && STRIP=:
5716
5717
5718
5719
5720
5721
5722 if test -n "$ac_tool_prefix"; then
5723 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5724 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if ${ac_cv_prog_RANLIB+:} false; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 if test -n "$RANLIB"; then
5731 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5732 else
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH
5735 do
5736 IFS=$as_save_IFS
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 break 2
5743 fi
5744 done
5745 done
5746 IFS=$as_save_IFS
5747
5748 fi
5749 fi
5750 RANLIB=$ac_cv_prog_RANLIB
5751 if test -n "$RANLIB"; then
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5753 $as_echo "$RANLIB" >&6; }
5754 else
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756 $as_echo "no" >&6; }
5757 fi
5758
5759
5760 fi
5761 if test -z "$ac_cv_prog_RANLIB"; then
5762 ac_ct_RANLIB=$RANLIB
5763 # Extract the first word of "ranlib", so it can be a program name with args.
5764 set dummy ranlib; ac_word=$2
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766 $as_echo_n "checking for $ac_word... " >&6; }
5767 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5770 if test -n "$ac_ct_RANLIB"; then
5771 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5772 else
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH
5775 do
5776 IFS=$as_save_IFS
5777 test -z "$as_dir" && as_dir=.
5778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5780 ac_cv_prog_ac_ct_RANLIB="ranlib"
5781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782 break 2
5783 fi
5784 done
5785 done
5786 IFS=$as_save_IFS
5787
5788 fi
5789 fi
5790 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5791 if test -n "$ac_ct_RANLIB"; then
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5793 $as_echo "$ac_ct_RANLIB" >&6; }
5794 else
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796 $as_echo "no" >&6; }
5797 fi
5798
5799 if test "x$ac_ct_RANLIB" = x; then
5800 RANLIB=":"
5801 else
5802 case $cross_compiling:$ac_tool_warned in
5803 yes:)
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5806 ac_tool_warned=yes ;;
5807 esac
5808 RANLIB=$ac_ct_RANLIB
5809 fi
5810 else
5811 RANLIB="$ac_cv_prog_RANLIB"
5812 fi
5813
5814 test -z "$RANLIB" && RANLIB=:
5815
5816
5817
5818
5819
5820
5821 # Determine commands to create old-style static archives.
5822 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5823 old_postinstall_cmds='chmod 644 $oldlib'
5824 old_postuninstall_cmds=
5825
5826 if test -n "$RANLIB"; then
5827 case $host_os in
5828 openbsd*)
5829 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5830 ;;
5831 *)
5832 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5833 ;;
5834 esac
5835 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5836 fi
5837
5838 case $host_os in
5839 darwin*)
5840 lock_old_archive_extraction=yes ;;
5841 *)
5842 lock_old_archive_extraction=no ;;
5843 esac
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883 # If no C compiler was specified, use CC.
5884 LTCC=${LTCC-"$CC"}
5885
5886 # If no C compiler flags were specified, use CFLAGS.
5887 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5888
5889 # Allow CC to be a program name with arguments.
5890 compiler=$CC
5891
5892
5893 # Check for command to grab the raw symbol name followed by C symbol from nm.
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5895 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5896 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5897 $as_echo_n "(cached) " >&6
5898 else
5899
5900 # These are sane defaults that work on at least a few old systems.
5901 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5902
5903 # Character class describing NM global symbol codes.
5904 symcode='[BCDEGRST]'
5905
5906 # Regexp to match symbols that can be accessed directly from C.
5907 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5908
5909 # Define system-specific variables.
5910 case $host_os in
5911 aix*)
5912 symcode='[BCDT]'
5913 ;;
5914 cygwin* | mingw* | pw32* | cegcc*)
5915 symcode='[ABCDGISTW]'
5916 ;;
5917 hpux*)
5918 if test "$host_cpu" = ia64; then
5919 symcode='[ABCDEGRST]'
5920 fi
5921 ;;
5922 irix* | nonstopux*)
5923 symcode='[BCDEGRST]'
5924 ;;
5925 osf*)
5926 symcode='[BCDEGQRST]'
5927 ;;
5928 solaris*)
5929 symcode='[BDRT]'
5930 ;;
5931 sco3.2v5*)
5932 symcode='[DT]'
5933 ;;
5934 sysv4.2uw2*)
5935 symcode='[DT]'
5936 ;;
5937 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5938 symcode='[ABDT]'
5939 ;;
5940 sysv4)
5941 symcode='[DFNSTU]'
5942 ;;
5943 esac
5944
5945 # If we're using GNU nm, then use its standard symbol codes.
5946 case `$NM -V 2>&1` in
5947 *GNU* | *'with BFD'*)
5948 symcode='[ABCDGIRSTW]' ;;
5949 esac
5950
5951 # Transform an extracted symbol line into a proper C declaration.
5952 # Some systems (esp. on ia64) link data and code symbols differently,
5953 # so use this general approach.
5954 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5955
5956 # Transform an extracted symbol line into symbol name and symbol address
5957 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5958 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'"
5959
5960 # Handle CRLF in mingw tool chain
5961 opt_cr=
5962 case $build_os in
5963 mingw*)
5964 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5965 ;;
5966 esac
5967
5968 # Try without a prefix underscore, then with it.
5969 for ac_symprfx in "" "_"; do
5970
5971 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5972 symxfrm="\\1 $ac_symprfx\\2 \\2"
5973
5974 # Write the raw and C identifiers.
5975 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5976 # Fake it for dumpbin and say T for any non-static function
5977 # and D for any global variable.
5978 # Also find C++ and __fastcall symbols from MSVC++,
5979 # which start with @ or ?.
5980 lt_cv_sys_global_symbol_pipe="$AWK '"\
5981 " {last_section=section; section=\$ 3};"\
5982 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5983 " \$ 0!~/External *\|/{next};"\
5984 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5985 " {if(hide[section]) next};"\
5986 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5987 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5988 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5989 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5990 " ' prfx=^$ac_symprfx"
5991 else
5992 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5993 fi
5994 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5995
5996 # Check to see that the pipe works correctly.
5997 pipe_works=no
5998
5999 rm -f conftest*
6000 cat > conftest.$ac_ext <<_LT_EOF
6001 #ifdef __cplusplus
6002 extern "C" {
6003 #endif
6004 char nm_test_var;
6005 void nm_test_func(void);
6006 void nm_test_func(void){}
6007 #ifdef __cplusplus
6008 }
6009 #endif
6010 int main(){nm_test_var='a';nm_test_func();return(0);}
6011 _LT_EOF
6012
6013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6014 (eval $ac_compile) 2>&5
6015 ac_status=$?
6016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6017 test $ac_status = 0; }; then
6018 # Now try to grab the symbols.
6019 nlist=conftest.nm
6020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6021 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6022 ac_status=$?
6023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6024 test $ac_status = 0; } && test -s "$nlist"; then
6025 # Try sorting and uniquifying the output.
6026 if sort "$nlist" | uniq > "$nlist"T; then
6027 mv -f "$nlist"T "$nlist"
6028 else
6029 rm -f "$nlist"T
6030 fi
6031
6032 # Make sure that we snagged all the symbols we need.
6033 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6034 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6035 cat <<_LT_EOF > conftest.$ac_ext
6036 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6037 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6038 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6039 relocations are performed -- see ld's documentation on pseudo-relocs. */
6040 # define LT_DLSYM_CONST
6041 #elif defined(__osf__)
6042 /* This system does not cope well with relocations in const data. */
6043 # define LT_DLSYM_CONST
6044 #else
6045 # define LT_DLSYM_CONST const
6046 #endif
6047
6048 #ifdef __cplusplus
6049 extern "C" {
6050 #endif
6051
6052 _LT_EOF
6053 # Now generate the symbol file.
6054 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6055
6056 cat <<_LT_EOF >> conftest.$ac_ext
6057
6058 /* The mapping between symbol names and symbols. */
6059 LT_DLSYM_CONST struct {
6060 const char *name;
6061 void *address;
6062 }
6063 lt__PROGRAM__LTX_preloaded_symbols[] =
6064 {
6065 { "@PROGRAM@", (void *) 0 },
6066 _LT_EOF
6067 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6068 cat <<\_LT_EOF >> conftest.$ac_ext
6069 {0, (void *) 0}
6070 };
6071
6072 /* This works around a problem in FreeBSD linker */
6073 #ifdef FREEBSD_WORKAROUND
6074 static const void *lt_preloaded_setup() {
6075 return lt__PROGRAM__LTX_preloaded_symbols;
6076 }
6077 #endif
6078
6079 #ifdef __cplusplus
6080 }
6081 #endif
6082 _LT_EOF
6083 # Now try linking the two files.
6084 mv conftest.$ac_objext conftstm.$ac_objext
6085 lt_globsym_save_LIBS=$LIBS
6086 lt_globsym_save_CFLAGS=$CFLAGS
6087 LIBS="conftstm.$ac_objext"
6088 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6090 (eval $ac_link) 2>&5
6091 ac_status=$?
6092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6093 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6094 pipe_works=yes
6095 fi
6096 LIBS=$lt_globsym_save_LIBS
6097 CFLAGS=$lt_globsym_save_CFLAGS
6098 else
6099 echo "cannot find nm_test_func in $nlist" >&5
6100 fi
6101 else
6102 echo "cannot find nm_test_var in $nlist" >&5
6103 fi
6104 else
6105 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6106 fi
6107 else
6108 echo "$progname: failed program was:" >&5
6109 cat conftest.$ac_ext >&5
6110 fi
6111 rm -rf conftest* conftst*
6112
6113 # Do not use the global_symbol_pipe unless it works.
6114 if test "$pipe_works" = yes; then
6115 break
6116 else
6117 lt_cv_sys_global_symbol_pipe=
6118 fi
6119 done
6120
6121 fi
6122
6123 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6124 lt_cv_sys_global_symbol_to_cdecl=
6125 fi
6126 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6128 $as_echo "failed" >&6; }
6129 else
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6131 $as_echo "ok" >&6; }
6132 fi
6133
6134 # Response file support.
6135 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6136 nm_file_list_spec='@'
6137 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6138 nm_file_list_spec='@'
6139 fi
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6168 $as_echo_n "checking for sysroot... " >&6; }
6169
6170 # Check whether --with-sysroot was given.
6171 if test "${with_sysroot+set}" = set; then :
6172 withval=$with_sysroot;
6173 else
6174 with_sysroot=no
6175 fi
6176
6177
6178 lt_sysroot=
6179 case ${with_sysroot} in #(
6180 yes)
6181 if test "$GCC" = yes; then
6182 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6183 fi
6184 ;; #(
6185 /*)
6186 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6187 ;; #(
6188 no|'')
6189 ;; #(
6190 *)
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6192 $as_echo "${with_sysroot}" >&6; }
6193 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6194 ;;
6195 esac
6196
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6198 $as_echo "${lt_sysroot:-no}" >&6; }
6199
6200
6201
6202
6203
6204 # Check whether --enable-libtool-lock was given.
6205 if test "${enable_libtool_lock+set}" = set; then :
6206 enableval=$enable_libtool_lock;
6207 fi
6208
6209 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6210
6211 # Some flags need to be propagated to the compiler or linker for good
6212 # libtool support.
6213 case $host in
6214 ia64-*-hpux*)
6215 # Find out which ABI we are using.
6216 echo 'int i;' > conftest.$ac_ext
6217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6218 (eval $ac_compile) 2>&5
6219 ac_status=$?
6220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6221 test $ac_status = 0; }; then
6222 case `/usr/bin/file conftest.$ac_objext` in
6223 *ELF-32*)
6224 HPUX_IA64_MODE="32"
6225 ;;
6226 *ELF-64*)
6227 HPUX_IA64_MODE="64"
6228 ;;
6229 esac
6230 fi
6231 rm -rf conftest*
6232 ;;
6233 *-*-irix6*)
6234 # Find out which ABI we are using.
6235 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6237 (eval $ac_compile) 2>&5
6238 ac_status=$?
6239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6240 test $ac_status = 0; }; then
6241 if test "$lt_cv_prog_gnu_ld" = yes; then
6242 case `/usr/bin/file conftest.$ac_objext` in
6243 *32-bit*)
6244 LD="${LD-ld} -melf32bsmip"
6245 ;;
6246 *N32*)
6247 LD="${LD-ld} -melf32bmipn32"
6248 ;;
6249 *64-bit*)
6250 LD="${LD-ld} -melf64bmip"
6251 ;;
6252 esac
6253 else
6254 case `/usr/bin/file conftest.$ac_objext` in
6255 *32-bit*)
6256 LD="${LD-ld} -32"
6257 ;;
6258 *N32*)
6259 LD="${LD-ld} -n32"
6260 ;;
6261 *64-bit*)
6262 LD="${LD-ld} -64"
6263 ;;
6264 esac
6265 fi
6266 fi
6267 rm -rf conftest*
6268 ;;
6269
6270 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6271 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6272 # Find out which ABI we are using.
6273 echo 'int i;' > conftest.$ac_ext
6274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6275 (eval $ac_compile) 2>&5
6276 ac_status=$?
6277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6278 test $ac_status = 0; }; then
6279 case `/usr/bin/file conftest.o` in
6280 *32-bit*)
6281 case $host in
6282 x86_64-*kfreebsd*-gnu)
6283 LD="${LD-ld} -m elf_i386_fbsd"
6284 ;;
6285 x86_64-*linux*)
6286 LD="${LD-ld} -m elf_i386"
6287 ;;
6288 ppc64-*linux*|powerpc64-*linux*)
6289 LD="${LD-ld} -m elf32ppclinux"
6290 ;;
6291 s390x-*linux*)
6292 LD="${LD-ld} -m elf_s390"
6293 ;;
6294 sparc64-*linux*)
6295 LD="${LD-ld} -m elf32_sparc"
6296 ;;
6297 esac
6298 ;;
6299 *64-bit*)
6300 case $host in
6301 x86_64-*kfreebsd*-gnu)
6302 LD="${LD-ld} -m elf_x86_64_fbsd"
6303 ;;
6304 x86_64-*linux*)
6305 LD="${LD-ld} -m elf_x86_64"
6306 ;;
6307 ppc*-*linux*|powerpc*-*linux*)
6308 LD="${LD-ld} -m elf64ppc"
6309 ;;
6310 s390*-*linux*|s390*-*tpf*)
6311 LD="${LD-ld} -m elf64_s390"
6312 ;;
6313 sparc*-*linux*)
6314 LD="${LD-ld} -m elf64_sparc"
6315 ;;
6316 esac
6317 ;;
6318 esac
6319 fi
6320 rm -rf conftest*
6321 ;;
6322
6323 *-*-sco3.2v5*)
6324 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6325 SAVE_CFLAGS="$CFLAGS"
6326 CFLAGS="$CFLAGS -belf"
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6328 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6329 if ${lt_cv_cc_needs_belf+:} false; then :
6330 $as_echo_n "(cached) " >&6
6331 else
6332 ac_ext=c
6333 ac_cpp='$CPP $CPPFLAGS'
6334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6337
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6340
6341 int
6342 main ()
6343 {
6344
6345 ;
6346 return 0;
6347 }
6348 _ACEOF
6349 if ac_fn_c_try_link "$LINENO"; then :
6350 lt_cv_cc_needs_belf=yes
6351 else
6352 lt_cv_cc_needs_belf=no
6353 fi
6354 rm -f core conftest.err conftest.$ac_objext \
6355 conftest$ac_exeext conftest.$ac_ext
6356 ac_ext=c
6357 ac_cpp='$CPP $CPPFLAGS'
6358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6361
6362 fi
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6364 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6365 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6366 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6367 CFLAGS="$SAVE_CFLAGS"
6368 fi
6369 ;;
6370 sparc*-*solaris*)
6371 # Find out which ABI we are using.
6372 echo 'int i;' > conftest.$ac_ext
6373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6374 (eval $ac_compile) 2>&5
6375 ac_status=$?
6376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6377 test $ac_status = 0; }; then
6378 case `/usr/bin/file conftest.o` in
6379 *64-bit*)
6380 case $lt_cv_prog_gnu_ld in
6381 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6382 *)
6383 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6384 LD="${LD-ld} -64"
6385 fi
6386 ;;
6387 esac
6388 ;;
6389 esac
6390 fi
6391 rm -rf conftest*
6392 ;;
6393 esac
6394
6395 need_locks="$enable_libtool_lock"
6396
6397 if test -n "$ac_tool_prefix"; then
6398 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6399 set dummy ${ac_tool_prefix}mt; ac_word=$2
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6403 $as_echo_n "(cached) " >&6
6404 else
6405 if test -n "$MANIFEST_TOOL"; then
6406 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6407 else
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 for as_dir in $PATH
6410 do
6411 IFS=$as_save_IFS
6412 test -z "$as_dir" && as_dir=.
6413 for ac_exec_ext in '' $ac_executable_extensions; do
6414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6415 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 break 2
6418 fi
6419 done
6420 done
6421 IFS=$as_save_IFS
6422
6423 fi
6424 fi
6425 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6426 if test -n "$MANIFEST_TOOL"; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6428 $as_echo "$MANIFEST_TOOL" >&6; }
6429 else
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 $as_echo "no" >&6; }
6432 fi
6433
6434
6435 fi
6436 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6437 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6438 # Extract the first word of "mt", so it can be a program name with args.
6439 set dummy mt; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 if test -n "$ac_ct_MANIFEST_TOOL"; then
6446 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451 IFS=$as_save_IFS
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6455 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 break 2
6458 fi
6459 done
6460 done
6461 IFS=$as_save_IFS
6462
6463 fi
6464 fi
6465 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6466 if test -n "$ac_ct_MANIFEST_TOOL"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6468 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6469 else
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6472 fi
6473
6474 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6475 MANIFEST_TOOL=":"
6476 else
6477 case $cross_compiling:$ac_tool_warned in
6478 yes:)
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6481 ac_tool_warned=yes ;;
6482 esac
6483 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6484 fi
6485 else
6486 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6487 fi
6488
6489 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6491 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6492 if ${lt_cv_path_mainfest_tool+:} false; then :
6493 $as_echo_n "(cached) " >&6
6494 else
6495 lt_cv_path_mainfest_tool=no
6496 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6497 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6498 cat conftest.err >&5
6499 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6500 lt_cv_path_mainfest_tool=yes
6501 fi
6502 rm -f conftest*
6503 fi
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6505 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6506 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6507 MANIFEST_TOOL=:
6508 fi
6509
6510
6511
6512
6513
6514
6515 case $host_os in
6516 rhapsody* | darwin*)
6517 if test -n "$ac_tool_prefix"; then
6518 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6519 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6521 $as_echo_n "checking for $ac_word... " >&6; }
6522 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6523 $as_echo_n "(cached) " >&6
6524 else
6525 if test -n "$DSYMUTIL"; then
6526 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6527 else
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 for as_dir in $PATH
6530 do
6531 IFS=$as_save_IFS
6532 test -z "$as_dir" && as_dir=.
6533 for ac_exec_ext in '' $ac_executable_extensions; do
6534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6535 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6537 break 2
6538 fi
6539 done
6540 done
6541 IFS=$as_save_IFS
6542
6543 fi
6544 fi
6545 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6546 if test -n "$DSYMUTIL"; then
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6548 $as_echo "$DSYMUTIL" >&6; }
6549 else
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6552 fi
6553
6554
6555 fi
6556 if test -z "$ac_cv_prog_DSYMUTIL"; then
6557 ac_ct_DSYMUTIL=$DSYMUTIL
6558 # Extract the first word of "dsymutil", so it can be a program name with args.
6559 set dummy dsymutil; ac_word=$2
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6561 $as_echo_n "checking for $ac_word... " >&6; }
6562 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 if test -n "$ac_ct_DSYMUTIL"; then
6566 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6567 else
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 for as_dir in $PATH
6570 do
6571 IFS=$as_save_IFS
6572 test -z "$as_dir" && as_dir=.
6573 for ac_exec_ext in '' $ac_executable_extensions; do
6574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6575 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6577 break 2
6578 fi
6579 done
6580 done
6581 IFS=$as_save_IFS
6582
6583 fi
6584 fi
6585 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6586 if test -n "$ac_ct_DSYMUTIL"; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6588 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6589 else
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6592 fi
6593
6594 if test "x$ac_ct_DSYMUTIL" = x; then
6595 DSYMUTIL=":"
6596 else
6597 case $cross_compiling:$ac_tool_warned in
6598 yes:)
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6601 ac_tool_warned=yes ;;
6602 esac
6603 DSYMUTIL=$ac_ct_DSYMUTIL
6604 fi
6605 else
6606 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6607 fi
6608
6609 if test -n "$ac_tool_prefix"; then
6610 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6611 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6613 $as_echo_n "checking for $ac_word... " >&6; }
6614 if ${ac_cv_prog_NMEDIT+:} false; then :
6615 $as_echo_n "(cached) " >&6
6616 else
6617 if test -n "$NMEDIT"; then
6618 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6619 else
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 for as_dir in $PATH
6622 do
6623 IFS=$as_save_IFS
6624 test -z "$as_dir" && as_dir=.
6625 for ac_exec_ext in '' $ac_executable_extensions; do
6626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6627 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6629 break 2
6630 fi
6631 done
6632 done
6633 IFS=$as_save_IFS
6634
6635 fi
6636 fi
6637 NMEDIT=$ac_cv_prog_NMEDIT
6638 if test -n "$NMEDIT"; then
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6640 $as_echo "$NMEDIT" >&6; }
6641 else
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 $as_echo "no" >&6; }
6644 fi
6645
6646
6647 fi
6648 if test -z "$ac_cv_prog_NMEDIT"; then
6649 ac_ct_NMEDIT=$NMEDIT
6650 # Extract the first word of "nmedit", so it can be a program name with args.
6651 set dummy nmedit; ac_word=$2
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653 $as_echo_n "checking for $ac_word... " >&6; }
6654 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6655 $as_echo_n "(cached) " >&6
6656 else
6657 if test -n "$ac_ct_NMEDIT"; then
6658 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6659 else
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 for as_dir in $PATH
6662 do
6663 IFS=$as_save_IFS
6664 test -z "$as_dir" && as_dir=.
6665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6667 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6669 break 2
6670 fi
6671 done
6672 done
6673 IFS=$as_save_IFS
6674
6675 fi
6676 fi
6677 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6678 if test -n "$ac_ct_NMEDIT"; then
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6680 $as_echo "$ac_ct_NMEDIT" >&6; }
6681 else
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683 $as_echo "no" >&6; }
6684 fi
6685
6686 if test "x$ac_ct_NMEDIT" = x; then
6687 NMEDIT=":"
6688 else
6689 case $cross_compiling:$ac_tool_warned in
6690 yes:)
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6693 ac_tool_warned=yes ;;
6694 esac
6695 NMEDIT=$ac_ct_NMEDIT
6696 fi
6697 else
6698 NMEDIT="$ac_cv_prog_NMEDIT"
6699 fi
6700
6701 if test -n "$ac_tool_prefix"; then
6702 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6703 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if ${ac_cv_prog_LIPO+:} false; then :
6707 $as_echo_n "(cached) " >&6
6708 else
6709 if test -n "$LIPO"; then
6710 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6711 else
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $PATH
6714 do
6715 IFS=$as_save_IFS
6716 test -z "$as_dir" && as_dir=.
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6719 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 break 2
6722 fi
6723 done
6724 done
6725 IFS=$as_save_IFS
6726
6727 fi
6728 fi
6729 LIPO=$ac_cv_prog_LIPO
6730 if test -n "$LIPO"; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6732 $as_echo "$LIPO" >&6; }
6733 else
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 $as_echo "no" >&6; }
6736 fi
6737
6738
6739 fi
6740 if test -z "$ac_cv_prog_LIPO"; then
6741 ac_ct_LIPO=$LIPO
6742 # Extract the first word of "lipo", so it can be a program name with args.
6743 set dummy lipo; ac_word=$2
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6745 $as_echo_n "checking for $ac_word... " >&6; }
6746 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6747 $as_echo_n "(cached) " >&6
6748 else
6749 if test -n "$ac_ct_LIPO"; then
6750 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6751 else
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6754 do
6755 IFS=$as_save_IFS
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6759 ac_cv_prog_ac_ct_LIPO="lipo"
6760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 break 2
6762 fi
6763 done
6764 done
6765 IFS=$as_save_IFS
6766
6767 fi
6768 fi
6769 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6770 if test -n "$ac_ct_LIPO"; then
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6772 $as_echo "$ac_ct_LIPO" >&6; }
6773 else
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6775 $as_echo "no" >&6; }
6776 fi
6777
6778 if test "x$ac_ct_LIPO" = x; then
6779 LIPO=":"
6780 else
6781 case $cross_compiling:$ac_tool_warned in
6782 yes:)
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6785 ac_tool_warned=yes ;;
6786 esac
6787 LIPO=$ac_ct_LIPO
6788 fi
6789 else
6790 LIPO="$ac_cv_prog_LIPO"
6791 fi
6792
6793 if test -n "$ac_tool_prefix"; then
6794 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6795 set dummy ${ac_tool_prefix}otool; ac_word=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if ${ac_cv_prog_OTOOL+:} false; then :
6799 $as_echo_n "(cached) " >&6
6800 else
6801 if test -n "$OTOOL"; then
6802 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6803 else
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6806 do
6807 IFS=$as_save_IFS
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6811 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 break 2
6814 fi
6815 done
6816 done
6817 IFS=$as_save_IFS
6818
6819 fi
6820 fi
6821 OTOOL=$ac_cv_prog_OTOOL
6822 if test -n "$OTOOL"; then
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6824 $as_echo "$OTOOL" >&6; }
6825 else
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827 $as_echo "no" >&6; }
6828 fi
6829
6830
6831 fi
6832 if test -z "$ac_cv_prog_OTOOL"; then
6833 ac_ct_OTOOL=$OTOOL
6834 # Extract the first word of "otool", so it can be a program name with args.
6835 set dummy otool; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 if test -n "$ac_ct_OTOOL"; then
6842 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6843 else
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6846 do
6847 IFS=$as_save_IFS
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851 ac_cv_prog_ac_ct_OTOOL="otool"
6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 break 2
6854 fi
6855 done
6856 done
6857 IFS=$as_save_IFS
6858
6859 fi
6860 fi
6861 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6862 if test -n "$ac_ct_OTOOL"; then
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6864 $as_echo "$ac_ct_OTOOL" >&6; }
6865 else
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6868 fi
6869
6870 if test "x$ac_ct_OTOOL" = x; then
6871 OTOOL=":"
6872 else
6873 case $cross_compiling:$ac_tool_warned in
6874 yes:)
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6877 ac_tool_warned=yes ;;
6878 esac
6879 OTOOL=$ac_ct_OTOOL
6880 fi
6881 else
6882 OTOOL="$ac_cv_prog_OTOOL"
6883 fi
6884
6885 if test -n "$ac_tool_prefix"; then
6886 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6887 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6889 $as_echo_n "checking for $ac_word... " >&6; }
6890 if ${ac_cv_prog_OTOOL64+:} false; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6893 if test -n "$OTOOL64"; then
6894 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6895 else
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6898 do
6899 IFS=$as_save_IFS
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6903 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 break 2
6906 fi
6907 done
6908 done
6909 IFS=$as_save_IFS
6910
6911 fi
6912 fi
6913 OTOOL64=$ac_cv_prog_OTOOL64
6914 if test -n "$OTOOL64"; then
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6916 $as_echo "$OTOOL64" >&6; }
6917 else
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919 $as_echo "no" >&6; }
6920 fi
6921
6922
6923 fi
6924 if test -z "$ac_cv_prog_OTOOL64"; then
6925 ac_ct_OTOOL64=$OTOOL64
6926 # Extract the first word of "otool64", so it can be a program name with args.
6927 set dummy otool64; ac_word=$2
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6929 $as_echo_n "checking for $ac_word... " >&6; }
6930 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6931 $as_echo_n "(cached) " >&6
6932 else
6933 if test -n "$ac_ct_OTOOL64"; then
6934 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6935 else
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 for as_dir in $PATH
6938 do
6939 IFS=$as_save_IFS
6940 test -z "$as_dir" && as_dir=.
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6943 ac_cv_prog_ac_ct_OTOOL64="otool64"
6944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 break 2
6946 fi
6947 done
6948 done
6949 IFS=$as_save_IFS
6950
6951 fi
6952 fi
6953 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6954 if test -n "$ac_ct_OTOOL64"; then
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6956 $as_echo "$ac_ct_OTOOL64" >&6; }
6957 else
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959 $as_echo "no" >&6; }
6960 fi
6961
6962 if test "x$ac_ct_OTOOL64" = x; then
6963 OTOOL64=":"
6964 else
6965 case $cross_compiling:$ac_tool_warned in
6966 yes:)
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6969 ac_tool_warned=yes ;;
6970 esac
6971 OTOOL64=$ac_ct_OTOOL64
6972 fi
6973 else
6974 OTOOL64="$ac_cv_prog_OTOOL64"
6975 fi
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7004 $as_echo_n "checking for -single_module linker flag... " >&6; }
7005 if ${lt_cv_apple_cc_single_mod+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 lt_cv_apple_cc_single_mod=no
7009 if test -z "${LT_MULTI_MODULE}"; then
7010 # By default we will add the -single_module flag. You can override
7011 # by either setting the environment variable LT_MULTI_MODULE
7012 # non-empty at configure time, or by adding -multi_module to the
7013 # link flags.
7014 rm -rf libconftest.dylib*
7015 echo "int foo(void){return 1;}" > conftest.c
7016 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7017 -dynamiclib -Wl,-single_module conftest.c" >&5
7018 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7019 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7020 _lt_result=$?
7021 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7022 lt_cv_apple_cc_single_mod=yes
7023 else
7024 cat conftest.err >&5
7025 fi
7026 rm -rf libconftest.dylib*
7027 rm -f conftest.*
7028 fi
7029 fi
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7031 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7033 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7034 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7035 $as_echo_n "(cached) " >&6
7036 else
7037 lt_cv_ld_exported_symbols_list=no
7038 save_LDFLAGS=$LDFLAGS
7039 echo "_main" > conftest.sym
7040 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h. */
7043
7044 int
7045 main ()
7046 {
7047
7048 ;
7049 return 0;
7050 }
7051 _ACEOF
7052 if ac_fn_c_try_link "$LINENO"; then :
7053 lt_cv_ld_exported_symbols_list=yes
7054 else
7055 lt_cv_ld_exported_symbols_list=no
7056 fi
7057 rm -f core conftest.err conftest.$ac_objext \
7058 conftest$ac_exeext conftest.$ac_ext
7059 LDFLAGS="$save_LDFLAGS"
7060
7061 fi
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7063 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7065 $as_echo_n "checking for -force_load linker flag... " >&6; }
7066 if ${lt_cv_ld_force_load+:} false; then :
7067 $as_echo_n "(cached) " >&6
7068 else
7069 lt_cv_ld_force_load=no
7070 cat > conftest.c << _LT_EOF
7071 int forced_loaded() { return 2;}
7072 _LT_EOF
7073 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7074 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7075 echo "$AR cru libconftest.a conftest.o" >&5
7076 $AR cru libconftest.a conftest.o 2>&5
7077 echo "$RANLIB libconftest.a" >&5
7078 $RANLIB libconftest.a 2>&5
7079 cat > conftest.c << _LT_EOF
7080 int main() { return 0;}
7081 _LT_EOF
7082 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7083 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7084 _lt_result=$?
7085 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7086 lt_cv_ld_force_load=yes
7087 else
7088 cat conftest.err >&5
7089 fi
7090 rm -f conftest.err libconftest.a conftest conftest.c
7091 rm -rf conftest.dSYM
7092
7093 fi
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7095 $as_echo "$lt_cv_ld_force_load" >&6; }
7096 case $host_os in
7097 rhapsody* | darwin1.[012])
7098 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7099 darwin1.*)
7100 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7101 darwin*) # darwin 5.x on
7102 # if running on 10.5 or later, the deployment target defaults
7103 # to the OS version, if on x86, and 10.4, the deployment
7104 # target defaults to 10.4. Don't you love it?
7105 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7106 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7107 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7108 10.[012]*)
7109 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7110 10.*)
7111 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7112 esac
7113 ;;
7114 esac
7115 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7116 _lt_dar_single_mod='$single_module'
7117 fi
7118 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7119 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7120 else
7121 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7122 fi
7123 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7124 _lt_dsymutil='~$DSYMUTIL $lib || :'
7125 else
7126 _lt_dsymutil=
7127 fi
7128 ;;
7129 esac
7130
7131 ac_ext=c
7132 ac_cpp='$CPP $CPPFLAGS'
7133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7137 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7138 # On Suns, sometimes $CPP names a directory.
7139 if test -n "$CPP" && test -d "$CPP"; then
7140 CPP=
7141 fi
7142 if test -z "$CPP"; then
7143 if ${ac_cv_prog_CPP+:} false; then :
7144 $as_echo_n "(cached) " >&6
7145 else
7146 # Double quotes because CPP needs to be expanded
7147 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7148 do
7149 ac_preproc_ok=false
7150 for ac_c_preproc_warn_flag in '' yes
7151 do
7152 # Use a header file that comes with gcc, so configuring glibc
7153 # with a fresh cross-compiler works.
7154 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7155 # <limits.h> exists even on freestanding compilers.
7156 # On the NeXT, cc -E runs the code through the compiler's parser,
7157 # not just through cpp. "Syntax error" is here to catch this case.
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7160 #ifdef __STDC__
7161 # include <limits.h>
7162 #else
7163 # include <assert.h>
7164 #endif
7165 Syntax error
7166 _ACEOF
7167 if ac_fn_c_try_cpp "$LINENO"; then :
7168
7169 else
7170 # Broken: fails on valid input.
7171 continue
7172 fi
7173 rm -f conftest.err conftest.i conftest.$ac_ext
7174
7175 # OK, works on sane cases. Now check whether nonexistent headers
7176 # can be detected and how.
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7179 #include <ac_nonexistent.h>
7180 _ACEOF
7181 if ac_fn_c_try_cpp "$LINENO"; then :
7182 # Broken: success on invalid input.
7183 continue
7184 else
7185 # Passes both tests.
7186 ac_preproc_ok=:
7187 break
7188 fi
7189 rm -f conftest.err conftest.i conftest.$ac_ext
7190
7191 done
7192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7193 rm -f conftest.i conftest.err conftest.$ac_ext
7194 if $ac_preproc_ok; then :
7195 break
7196 fi
7197
7198 done
7199 ac_cv_prog_CPP=$CPP
7200
7201 fi
7202 CPP=$ac_cv_prog_CPP
7203 else
7204 ac_cv_prog_CPP=$CPP
7205 fi
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7207 $as_echo "$CPP" >&6; }
7208 ac_preproc_ok=false
7209 for ac_c_preproc_warn_flag in '' yes
7210 do
7211 # Use a header file that comes with gcc, so configuring glibc
7212 # with a fresh cross-compiler works.
7213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7214 # <limits.h> exists even on freestanding compilers.
7215 # On the NeXT, cc -E runs the code through the compiler's parser,
7216 # not just through cpp. "Syntax error" is here to catch this case.
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h. */
7219 #ifdef __STDC__
7220 # include <limits.h>
7221 #else
7222 # include <assert.h>
7223 #endif
7224 Syntax error
7225 _ACEOF
7226 if ac_fn_c_try_cpp "$LINENO"; then :
7227
7228 else
7229 # Broken: fails on valid input.
7230 continue
7231 fi
7232 rm -f conftest.err conftest.i conftest.$ac_ext
7233
7234 # OK, works on sane cases. Now check whether nonexistent headers
7235 # can be detected and how.
7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h. */
7238 #include <ac_nonexistent.h>
7239 _ACEOF
7240 if ac_fn_c_try_cpp "$LINENO"; then :
7241 # Broken: success on invalid input.
7242 continue
7243 else
7244 # Passes both tests.
7245 ac_preproc_ok=:
7246 break
7247 fi
7248 rm -f conftest.err conftest.i conftest.$ac_ext
7249
7250 done
7251 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7252 rm -f conftest.i conftest.err conftest.$ac_ext
7253 if $ac_preproc_ok; then :
7254
7255 else
7256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7258 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7259 See \`config.log' for more details" "$LINENO" 5; }
7260 fi
7261
7262 ac_ext=c
7263 ac_cpp='$CPP $CPPFLAGS'
7264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7267
7268
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7270 $as_echo_n "checking for ANSI C header files... " >&6; }
7271 if ${ac_cv_header_stdc+:} false; then :
7272 $as_echo_n "(cached) " >&6
7273 else
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7276 #include <stdlib.h>
7277 #include <stdarg.h>
7278 #include <string.h>
7279 #include <float.h>
7280
7281 int
7282 main ()
7283 {
7284
7285 ;
7286 return 0;
7287 }
7288 _ACEOF
7289 if ac_fn_c_try_compile "$LINENO"; then :
7290 ac_cv_header_stdc=yes
7291 else
7292 ac_cv_header_stdc=no
7293 fi
7294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7295
7296 if test $ac_cv_header_stdc = yes; then
7297 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299 /* end confdefs.h. */
7300 #include <string.h>
7301
7302 _ACEOF
7303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7304 $EGREP "memchr" >/dev/null 2>&1; then :
7305
7306 else
7307 ac_cv_header_stdc=no
7308 fi
7309 rm -f conftest*
7310
7311 fi
7312
7313 if test $ac_cv_header_stdc = yes; then
7314 # ISC 2.0.3 stdlib.h does not declare free, contrary to ANSI.
7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h. */
7317 #include <stdlib.h>
7318
7319 _ACEOF
7320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7321 $EGREP "free" >/dev/null 2>&1; then :
7322
7323 else
7324 ac_cv_header_stdc=no
7325 fi
7326 rm -f conftest*
7327
7328 fi
7329
7330 if test $ac_cv_header_stdc = yes; then
7331 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7332 if test "$cross_compiling" = yes; then :
7333 :
7334 else
7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h. */
7337 #include <ctype.h>
7338 #include <stdlib.h>
7339 #if ((' ' & 0x0FF) == 0x020)
7340 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7341 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7342 #else
7343 # define ISLOWER(c) \
7344 (('a' <= (c) && (c) <= 'i') \
7345 || ('j' <= (c) && (c) <= 'r') \
7346 || ('s' <= (c) && (c) <= 'z'))
7347 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7348 #endif
7349
7350 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7351 int
7352 main ()
7353 {
7354 int i;
7355 for (i = 0; i < 256; i++)
7356 if (XOR (islower (i), ISLOWER (i))
7357 || toupper (i) != TOUPPER (i))
7358 return 2;
7359 return 0;
7360 }
7361 _ACEOF
7362 if ac_fn_c_try_run "$LINENO"; then :
7363
7364 else
7365 ac_cv_header_stdc=no
7366 fi
7367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7368 conftest.$ac_objext conftest.beam conftest.$ac_ext
7369 fi
7370
7371 fi
7372 fi
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7374 $as_echo "$ac_cv_header_stdc" >&6; }
7375 if test $ac_cv_header_stdc = yes; then
7376
7377 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7378
7379 fi
7380
7381 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7382 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7383 inttypes.h stdint.h unistd.h
7384 do :
7385 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7386 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7387 "
7388 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7389 cat >>confdefs.h <<_ACEOF
7390 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7391 _ACEOF
7392
7393 fi
7394
7395 done
7396
7397
7398 for ac_header in dlfcn.h
7399 do :
7400 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7401 "
7402 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7403 cat >>confdefs.h <<_ACEOF
7404 #define HAVE_DLFCN_H 1
7405 _ACEOF
7406
7407 fi
7408
7409 done
7410
7411
7412
7413
7414
7415 # Set options
7416
7417
7418
7419 enable_dlopen=no
7420
7421
7422 enable_win32_dll=no
7423
7424
7425 # Check whether --enable-shared was given.
7426 if test "${enable_shared+set}" = set; then :
7427 enableval=$enable_shared; p=${PACKAGE-default}
7428 case $enableval in
7429 yes) enable_shared=yes ;;
7430 no) enable_shared=no ;;
7431 *)
7432 enable_shared=no
7433 # Look at the argument we got. We use all the common list separators.
7434 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7435 for pkg in $enableval; do
7436 IFS="$lt_save_ifs"
7437 if test "X$pkg" = "X$p"; then
7438 enable_shared=yes
7439 fi
7440 done
7441 IFS="$lt_save_ifs"
7442 ;;
7443 esac
7444 else
7445 enable_shared=yes
7446 fi
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456 # Check whether --enable-static was given.
7457 if test "${enable_static+set}" = set; then :
7458 enableval=$enable_static; p=${PACKAGE-default}
7459 case $enableval in
7460 yes) enable_static=yes ;;
7461 no) enable_static=no ;;
7462 *)
7463 enable_static=no
7464 # Look at the argument we got. We use all the common list separators.
7465 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7466 for pkg in $enableval; do
7467 IFS="$lt_save_ifs"
7468 if test "X$pkg" = "X$p"; then
7469 enable_static=yes
7470 fi
7471 done
7472 IFS="$lt_save_ifs"
7473 ;;
7474 esac
7475 else
7476 enable_static=yes
7477 fi
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488 # Check whether --with-pic was given.
7489 if test "${with_pic+set}" = set; then :
7490 withval=$with_pic; pic_mode="$withval"
7491 else
7492 pic_mode=default
7493 fi
7494
7495
7496 test -z "$pic_mode" && pic_mode=default
7497
7498
7499
7500
7501
7502
7503
7504 # Check whether --enable-fast-install was given.
7505 if test "${enable_fast_install+set}" = set; then :
7506 enableval=$enable_fast_install; p=${PACKAGE-default}
7507 case $enableval in
7508 yes) enable_fast_install=yes ;;
7509 no) enable_fast_install=no ;;
7510 *)
7511 enable_fast_install=no
7512 # Look at the argument we got. We use all the common list separators.
7513 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7514 for pkg in $enableval; do
7515 IFS="$lt_save_ifs"
7516 if test "X$pkg" = "X$p"; then
7517 enable_fast_install=yes
7518 fi
7519 done
7520 IFS="$lt_save_ifs"
7521 ;;
7522 esac
7523 else
7524 enable_fast_install=yes
7525 fi
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537 # This can be used to rebuild libtool when needed
7538 LIBTOOL_DEPS="$ltmain"
7539
7540 # Always use our own libtool.
7541 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568 test -z "$LN_S" && LN_S="ln -s"
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583 if test -n "${ZSH_VERSION+set}" ; then
7584 setopt NO_GLOB_SUBST
7585 fi
7586
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7588 $as_echo_n "checking for objdir... " >&6; }
7589 if ${lt_cv_objdir+:} false; then :
7590 $as_echo_n "(cached) " >&6
7591 else
7592 rm -f .libs 2>/dev/null
7593 mkdir .libs 2>/dev/null
7594 if test -d .libs; then
7595 lt_cv_objdir=.libs
7596 else
7597 # MS-DOS does not allow filenames that begin with a dot.
7598 lt_cv_objdir=_libs
7599 fi
7600 rmdir .libs 2>/dev/null
7601 fi
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7603 $as_echo "$lt_cv_objdir" >&6; }
7604 objdir=$lt_cv_objdir
7605
7606
7607
7608
7609
7610 cat >>confdefs.h <<_ACEOF
7611 #define LT_OBJDIR "$lt_cv_objdir/"
7612 _ACEOF
7613
7614
7615
7616
7617 case $host_os in
7618 aix3*)
7619 # AIX sometimes has problems with the GCC collect2 program. For some
7620 # reason, if we set the COLLECT_NAMES environment variable, the problems
7621 # vanish in a puff of smoke.
7622 if test "X${COLLECT_NAMES+set}" != Xset; then
7623 COLLECT_NAMES=
7624 export COLLECT_NAMES
7625 fi
7626 ;;
7627 esac
7628
7629 # Global variables:
7630 ofile=libtool
7631 can_build_shared=yes
7632
7633 # All known linkers require a `.a' archive for static linking (except MSVC,
7634 # which needs '.lib').
7635 libext=a
7636
7637 with_gnu_ld="$lt_cv_prog_gnu_ld"
7638
7639 old_CC="$CC"
7640 old_CFLAGS="$CFLAGS"
7641
7642 # Set sane defaults for various variables
7643 test -z "$CC" && CC=cc
7644 test -z "$LTCC" && LTCC=$CC
7645 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7646 test -z "$LD" && LD=ld
7647 test -z "$ac_objext" && ac_objext=o
7648
7649 for cc_temp in $compiler""; do
7650 case $cc_temp in
7651 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7652 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7653 \-*) ;;
7654 *) break;;
7655 esac
7656 done
7657 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7658
7659
7660 # Only perform the check for file, if the check method requires it
7661 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7662 case $deplibs_check_method in
7663 file_magic*)
7664 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7666 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7667 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7668 $as_echo_n "(cached) " >&6
7669 else
7670 case $MAGIC_CMD in
7671 [\\/*] | ?:[\\/]*)
7672 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7673 ;;
7674 *)
7675 lt_save_MAGIC_CMD="$MAGIC_CMD"
7676 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7677 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7678 for ac_dir in $ac_dummy; do
7679 IFS="$lt_save_ifs"
7680 test -z "$ac_dir" && ac_dir=.
7681 if test -f $ac_dir/${ac_tool_prefix}file; then
7682 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7683 if test -n "$file_magic_test_file"; then
7684 case $deplibs_check_method in
7685 "file_magic "*)
7686 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7687 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7688 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7689 $EGREP "$file_magic_regex" > /dev/null; then
7690 :
7691 else
7692 cat <<_LT_EOF 1>&2
7693
7694 *** Warning: the command libtool uses to detect shared libraries,
7695 *** $file_magic_cmd, produces output that libtool cannot recognize.
7696 *** The result is that libtool may fail to recognize shared libraries
7697 *** as such. This will affect the creation of libtool libraries that
7698 *** depend on shared libraries, but programs linked with such libtool
7699 *** libraries will work regardless of this problem. Nevertheless, you
7700 *** may want to report the problem to your system manager and/or to
7701 *** [email protected]
7702
7703 _LT_EOF
7704 fi ;;
7705 esac
7706 fi
7707 break
7708 fi
7709 done
7710 IFS="$lt_save_ifs"
7711 MAGIC_CMD="$lt_save_MAGIC_CMD"
7712 ;;
7713 esac
7714 fi
7715
7716 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7717 if test -n "$MAGIC_CMD"; then
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7719 $as_echo "$MAGIC_CMD" >&6; }
7720 else
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7722 $as_echo "no" >&6; }
7723 fi
7724
7725
7726
7727
7728
7729 if test -z "$lt_cv_path_MAGIC_CMD"; then
7730 if test -n "$ac_tool_prefix"; then
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7732 $as_echo_n "checking for file... " >&6; }
7733 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7734 $as_echo_n "(cached) " >&6
7735 else
7736 case $MAGIC_CMD in
7737 [\\/*] | ?:[\\/]*)
7738 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7739 ;;
7740 *)
7741 lt_save_MAGIC_CMD="$MAGIC_CMD"
7742 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7743 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7744 for ac_dir in $ac_dummy; do
7745 IFS="$lt_save_ifs"
7746 test -z "$ac_dir" && ac_dir=.
7747 if test -f $ac_dir/file; then
7748 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7749 if test -n "$file_magic_test_file"; then
7750 case $deplibs_check_method in
7751 "file_magic "*)
7752 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7753 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7754 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7755 $EGREP "$file_magic_regex" > /dev/null; then
7756 :
7757 else
7758 cat <<_LT_EOF 1>&2
7759
7760 *** Warning: the command libtool uses to detect shared libraries,
7761 *** $file_magic_cmd, produces output that libtool cannot recognize.
7762 *** The result is that libtool may fail to recognize shared libraries
7763 *** as such. This will affect the creation of libtool libraries that
7764 *** depend on shared libraries, but programs linked with such libtool
7765 *** libraries will work regardless of this problem. Nevertheless, you
7766 *** may want to report the problem to your system manager and/or to
7767 *** [email protected]
7768
7769 _LT_EOF
7770 fi ;;
7771 esac
7772 fi
7773 break
7774 fi
7775 done
7776 IFS="$lt_save_ifs"
7777 MAGIC_CMD="$lt_save_MAGIC_CMD"
7778 ;;
7779 esac
7780 fi
7781
7782 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7783 if test -n "$MAGIC_CMD"; then
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7785 $as_echo "$MAGIC_CMD" >&6; }
7786 else
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 $as_echo "no" >&6; }
7789 fi
7790
7791
7792 else
7793 MAGIC_CMD=:
7794 fi
7795 fi
7796
7797 fi
7798 ;;
7799 esac
7800
7801 # Use C for the default configuration in the libtool script
7802
7803 lt_save_CC="$CC"
7804 ac_ext=c
7805 ac_cpp='$CPP $CPPFLAGS'
7806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7809
7810
7811 # Source file extension for C test sources.
7812 ac_ext=c
7813
7814 # Object file extension for compiled C test sources.
7815 objext=o
7816 objext=$objext
7817
7818 # Code to be used in simple compile tests
7819 lt_simple_compile_test_code="int some_variable = 0;"
7820
7821 # Code to be used in simple link tests
7822 lt_simple_link_test_code='int main(){return(0);}'
7823
7824
7825
7826
7827
7828
7829
7830 # If no C compiler was specified, use CC.
7831 LTCC=${LTCC-"$CC"}
7832
7833 # If no C compiler flags were specified, use CFLAGS.
7834 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7835
7836 # Allow CC to be a program name with arguments.
7837 compiler=$CC
7838
7839 # Save the default compiler, since it gets overwritten when the other
7840 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7841 compiler_DEFAULT=$CC
7842
7843 # save warnings/boilerplate of simple test code
7844 ac_outfile=conftest.$ac_objext
7845 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7846 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7847 _lt_compiler_boilerplate=`cat conftest.err`
7848 $RM conftest*
7849
7850 ac_outfile=conftest.$ac_objext
7851 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7852 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7853 _lt_linker_boilerplate=`cat conftest.err`
7854 $RM -r conftest*
7855
7856
7857 ## CAVEAT EMPTOR:
7858 ## There is no encapsulation within the following macros, do not change
7859 ## the running order or otherwise move them around unless you know exactly
7860 ## what you are doing...
7861 if test -n "$compiler"; then
7862
7863 lt_prog_compiler_no_builtin_flag=
7864
7865 if test "$GCC" = yes; then
7866 case $cc_basename in
7867 nvcc*)
7868 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7869 *)
7870 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7871 esac
7872
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7874 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7875 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7876 $as_echo_n "(cached) " >&6
7877 else
7878 lt_cv_prog_compiler_rtti_exceptions=no
7879 ac_outfile=conftest.$ac_objext
7880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7881 lt_compiler_flag="-fno-rtti -fno-exceptions"
7882 # Insert the option either (1) after the last *FLAGS variable, or
7883 # (2) before a word containing "conftest.", or (3) at the end.
7884 # Note that $ac_compile itself does not contain backslashes and begins
7885 # with a dollar sign (not a hyphen), so the echo should work correctly.
7886 # The option is referenced via a variable to avoid confusing sed.
7887 lt_compile=`echo "$ac_compile" | $SED \
7888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7890 -e 's:$: $lt_compiler_flag:'`
7891 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7892 (eval "$lt_compile" 2>conftest.err)
7893 ac_status=$?
7894 cat conftest.err >&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 if (exit $ac_status) && test -s "$ac_outfile"; then
7897 # The compiler can only warn and ignore the option if not recognized
7898 # So say no if there are warnings other than the usual output.
7899 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7901 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7902 lt_cv_prog_compiler_rtti_exceptions=yes
7903 fi
7904 fi
7905 $RM conftest*
7906
7907 fi
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7909 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7910
7911 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7912 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7913 else
7914 :
7915 fi
7916
7917 fi
7918
7919
7920
7921
7922
7923
7924 lt_prog_compiler_wl=
7925 lt_prog_compiler_pic=
7926 lt_prog_compiler_static=
7927
7928
7929 if test "$GCC" = yes; then
7930 lt_prog_compiler_wl='-Wl,'
7931 lt_prog_compiler_static='-static'
7932
7933 case $host_os in
7934 aix*)
7935 # All AIX code is PIC.
7936 if test "$host_cpu" = ia64; then
7937 # AIX 5 now supports IA64 processor
7938 lt_prog_compiler_static='-Bstatic'
7939 fi
7940 ;;
7941
7942 amigaos*)
7943 case $host_cpu in
7944 powerpc)
7945 # see comment about AmigaOS4 .so support
7946 lt_prog_compiler_pic='-fPIC'
7947 ;;
7948 m68k)
7949 # FIXME: we need at least 68020 code to build shared libraries, but
7950 # adding the `-m68020' flag to GCC prevents building anything better,
7951 # like `-m68040'.
7952 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7953 ;;
7954 esac
7955 ;;
7956
7957 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7958 # PIC is the default for these OSes.
7959 ;;
7960
7961 mingw* | cygwin* | pw32* | os2* | cegcc*)
7962 # This hack is so that the source file can tell whether it is being
7963 # built for inclusion in a dll (and should export symbols for example).
7964 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7965 # (--disable-auto-import) libraries
7966 lt_prog_compiler_pic='-DDLL_EXPORT'
7967 ;;
7968
7969 darwin* | rhapsody*)
7970 # PIC is the default on this platform
7971 # Common symbols not allowed in MH_DYLIB files
7972 lt_prog_compiler_pic='-fno-common'
7973 ;;
7974
7975 haiku*)
7976 # PIC is the default for Haiku.
7977 # The "-static" flag exists, but is broken.
7978 lt_prog_compiler_static=
7979 ;;
7980
7981 hpux*)
7982 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7983 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7984 # sets the default TLS model and affects inlining.
7985 case $host_cpu in
7986 hppa*64*)
7987 # +Z the default
7988 ;;
7989 *)
7990 lt_prog_compiler_pic='-fPIC'
7991 ;;
7992 esac
7993 ;;
7994
7995 interix[3-9]*)
7996 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7997 # Instead, we relocate shared libraries at runtime.
7998 ;;
7999
8000 msdosdjgpp*)
8001 # Just because we use GCC doesn't mean we suddenly get shared libraries
8002 # on systems that don't support them.
8003 lt_prog_compiler_can_build_shared=no
8004 enable_shared=no
8005 ;;
8006
8007 *nto* | *qnx*)
8008 # QNX uses GNU C++, but need to define -shared option too, otherwise
8009 # it will coredump.
8010 lt_prog_compiler_pic='-fPIC -shared'
8011 ;;
8012
8013 sysv4*MP*)
8014 if test -d /usr/nec; then
8015 lt_prog_compiler_pic=-Kconform_pic
8016 fi
8017 ;;
8018
8019 *)
8020 lt_prog_compiler_pic='-fPIC'
8021 ;;
8022 esac
8023
8024 case $cc_basename in
8025 nvcc*) # Cuda Compiler Driver 2.2
8026 lt_prog_compiler_wl='-Xlinker '
8027 lt_prog_compiler_pic='-Xcompiler -fPIC'
8028 ;;
8029 esac
8030 else
8031 # PORTME Check for flag to pass linker flags through the system compiler.
8032 case $host_os in
8033 aix*)
8034 lt_prog_compiler_wl='-Wl,'
8035 if test "$host_cpu" = ia64; then
8036 # AIX 5 now supports IA64 processor
8037 lt_prog_compiler_static='-Bstatic'
8038 else
8039 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8040 fi
8041 ;;
8042
8043 mingw* | cygwin* | pw32* | os2* | cegcc*)
8044 # This hack is so that the source file can tell whether it is being
8045 # built for inclusion in a dll (and should export symbols for example).
8046 lt_prog_compiler_pic='-DDLL_EXPORT'
8047 ;;
8048
8049 hpux9* | hpux10* | hpux11*)
8050 lt_prog_compiler_wl='-Wl,'
8051 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8052 # not for PA HP-UX.
8053 case $host_cpu in
8054 hppa*64*|ia64*)
8055 # +Z the default
8056 ;;
8057 *)
8058 lt_prog_compiler_pic='+Z'
8059 ;;
8060 esac
8061 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8062 lt_prog_compiler_static='${wl}-a ${wl}archive'
8063 ;;
8064
8065 irix5* | irix6* | nonstopux*)
8066 lt_prog_compiler_wl='-Wl,'
8067 # PIC (with -KPIC) is the default.
8068 lt_prog_compiler_static='-non_shared'
8069 ;;
8070
8071 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8072 case $cc_basename in
8073 # old Intel for x86_64 which still supported -KPIC.
8074 ecc*)
8075 lt_prog_compiler_wl='-Wl,'
8076 lt_prog_compiler_pic='-KPIC'
8077 lt_prog_compiler_static='-static'
8078 ;;
8079 # icc used to be incompatible with GCC.
8080 # ICC 10 doesn't accept -KPIC any more.
8081 icc* | ifort*)
8082 lt_prog_compiler_wl='-Wl,'
8083 lt_prog_compiler_pic='-fPIC'
8084 lt_prog_compiler_static='-static'
8085 ;;
8086 # Lahey Fortran 8.1.
8087 lf95*)
8088 lt_prog_compiler_wl='-Wl,'
8089 lt_prog_compiler_pic='--shared'
8090 lt_prog_compiler_static='--static'
8091 ;;
8092 nagfor*)
8093 # NAG Fortran compiler
8094 lt_prog_compiler_wl='-Wl,-Wl,,'
8095 lt_prog_compiler_pic='-PIC'
8096 lt_prog_compiler_static='-Bstatic'
8097 ;;
8098 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8099 # Portland Group compilers (*not* the Pentium gcc compiler,
8100 # which looks to be a dead project)
8101 lt_prog_compiler_wl='-Wl,'
8102 lt_prog_compiler_pic='-fpic'
8103 lt_prog_compiler_static='-Bstatic'
8104 ;;
8105 ccc*)
8106 lt_prog_compiler_wl='-Wl,'
8107 # All Alpha code is PIC.
8108 lt_prog_compiler_static='-non_shared'
8109 ;;
8110 xl* | bgxl* | bgf* | mpixl*)
8111 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8112 lt_prog_compiler_wl='-Wl,'
8113 lt_prog_compiler_pic='-qpic'
8114 lt_prog_compiler_static='-qstaticlink'
8115 ;;
8116 *)
8117 case `$CC -V 2>&1 | sed 5q` in
8118 *Sun\ F* | *Sun*Fortran*)
8119 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8120 lt_prog_compiler_pic='-KPIC'
8121 lt_prog_compiler_static='-Bstatic'
8122 lt_prog_compiler_wl=''
8123 ;;
8124 *Sun\ C*)
8125 # Sun C 5.9
8126 lt_prog_compiler_pic='-KPIC'
8127 lt_prog_compiler_static='-Bstatic'
8128 lt_prog_compiler_wl='-Wl,'
8129 ;;
8130 esac
8131 ;;
8132 esac
8133 ;;
8134
8135 newsos6)
8136 lt_prog_compiler_pic='-KPIC'
8137 lt_prog_compiler_static='-Bstatic'
8138 ;;
8139
8140 *nto* | *qnx*)
8141 # QNX uses GNU C++, but need to define -shared option too, otherwise
8142 # it will coredump.
8143 lt_prog_compiler_pic='-fPIC -shared'
8144 ;;
8145
8146 osf3* | osf4* | osf5*)
8147 lt_prog_compiler_wl='-Wl,'
8148 # All OSF/1 code is PIC.
8149 lt_prog_compiler_static='-non_shared'
8150 ;;
8151
8152 rdos*)
8153 lt_prog_compiler_static='-non_shared'
8154 ;;
8155
8156 solaris*)
8157 lt_prog_compiler_pic='-KPIC'
8158 lt_prog_compiler_static='-Bstatic'
8159 case $cc_basename in
8160 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8161 lt_prog_compiler_wl='-Qoption ld ';;
8162 *)
8163 lt_prog_compiler_wl='-Wl,';;
8164 esac
8165 ;;
8166
8167 sunos4*)
8168 lt_prog_compiler_wl='-Qoption ld '
8169 lt_prog_compiler_pic='-PIC'
8170 lt_prog_compiler_static='-Bstatic'
8171 ;;
8172
8173 sysv4 | sysv4.2uw2* | sysv4.3*)
8174 lt_prog_compiler_wl='-Wl,'
8175 lt_prog_compiler_pic='-KPIC'
8176 lt_prog_compiler_static='-Bstatic'
8177 ;;
8178
8179 sysv4*MP*)
8180 if test -d /usr/nec ;then
8181 lt_prog_compiler_pic='-Kconform_pic'
8182 lt_prog_compiler_static='-Bstatic'
8183 fi
8184 ;;
8185
8186 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8187 lt_prog_compiler_wl='-Wl,'
8188 lt_prog_compiler_pic='-KPIC'
8189 lt_prog_compiler_static='-Bstatic'
8190 ;;
8191
8192 unicos*)
8193 lt_prog_compiler_wl='-Wl,'
8194 lt_prog_compiler_can_build_shared=no
8195 ;;
8196
8197 uts4*)
8198 lt_prog_compiler_pic='-pic'
8199 lt_prog_compiler_static='-Bstatic'
8200 ;;
8201
8202 *)
8203 lt_prog_compiler_can_build_shared=no
8204 ;;
8205 esac
8206 fi
8207
8208 case $host_os in
8209 # For platforms which do not support PIC, -DPIC is meaningless:
8210 *djgpp*)
8211 lt_prog_compiler_pic=
8212 ;;
8213 *)
8214 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8215 ;;
8216 esac
8217
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8219 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8220 if ${lt_cv_prog_compiler_pic+:} false; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8223 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8224 fi
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8226 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8227 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8228
8229 #
8230 # Check to make sure the PIC flag actually works.
8231 #
8232 if test -n "$lt_prog_compiler_pic"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8234 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8235 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8236 $as_echo_n "(cached) " >&6
8237 else
8238 lt_cv_prog_compiler_pic_works=no
8239 ac_outfile=conftest.$ac_objext
8240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8241 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8242 # Insert the option either (1) after the last *FLAGS variable, or
8243 # (2) before a word containing "conftest.", or (3) at the end.
8244 # Note that $ac_compile itself does not contain backslashes and begins
8245 # with a dollar sign (not a hyphen), so the echo should work correctly.
8246 # The option is referenced via a variable to avoid confusing sed.
8247 lt_compile=`echo "$ac_compile" | $SED \
8248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8250 -e 's:$: $lt_compiler_flag:'`
8251 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8252 (eval "$lt_compile" 2>conftest.err)
8253 ac_status=$?
8254 cat conftest.err >&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 if (exit $ac_status) && test -s "$ac_outfile"; then
8257 # The compiler can only warn and ignore the option if not recognized
8258 # So say no if there are warnings other than the usual output.
8259 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8260 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8261 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8262 lt_cv_prog_compiler_pic_works=yes
8263 fi
8264 fi
8265 $RM conftest*
8266
8267 fi
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8269 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8270
8271 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8272 case $lt_prog_compiler_pic in
8273 "" | " "*) ;;
8274 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8275 esac
8276 else
8277 lt_prog_compiler_pic=
8278 lt_prog_compiler_can_build_shared=no
8279 fi
8280
8281 fi
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293 #
8294 # Check to make sure the static flag actually works.
8295 #
8296 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8298 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8299 if ${lt_cv_prog_compiler_static_works+:} false; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 lt_cv_prog_compiler_static_works=no
8303 save_LDFLAGS="$LDFLAGS"
8304 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8305 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8306 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8307 # The linker can only warn and ignore the option if not recognized
8308 # So say no if there are warnings
8309 if test -s conftest.err; then
8310 # Append any errors to the config.log.
8311 cat conftest.err 1>&5
8312 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8314 if diff conftest.exp conftest.er2 >/dev/null; then
8315 lt_cv_prog_compiler_static_works=yes
8316 fi
8317 else
8318 lt_cv_prog_compiler_static_works=yes
8319 fi
8320 fi
8321 $RM -r conftest*
8322 LDFLAGS="$save_LDFLAGS"
8323
8324 fi
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8326 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8327
8328 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8329 :
8330 else
8331 lt_prog_compiler_static=
8332 fi
8333
8334
8335
8336
8337
8338
8339
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8341 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8342 if ${lt_cv_prog_compiler_c_o+:} false; then :
8343 $as_echo_n "(cached) " >&6
8344 else
8345 lt_cv_prog_compiler_c_o=no
8346 $RM -r conftest 2>/dev/null
8347 mkdir conftest
8348 cd conftest
8349 mkdir out
8350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8351
8352 lt_compiler_flag="-o out/conftest2.$ac_objext"
8353 # Insert the option either (1) after the last *FLAGS variable, or
8354 # (2) before a word containing "conftest.", or (3) at the end.
8355 # Note that $ac_compile itself does not contain backslashes and begins
8356 # with a dollar sign (not a hyphen), so the echo should work correctly.
8357 lt_compile=`echo "$ac_compile" | $SED \
8358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8360 -e 's:$: $lt_compiler_flag:'`
8361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8362 (eval "$lt_compile" 2>out/conftest.err)
8363 ac_status=$?
8364 cat out/conftest.err >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8367 then
8368 # The compiler can only warn and ignore the option if not recognized
8369 # So say no if there are warnings
8370 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8371 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8372 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8373 lt_cv_prog_compiler_c_o=yes
8374 fi
8375 fi
8376 chmod u+w . 2>&5
8377 $RM conftest*
8378 # SGI C++ compiler will create directory out/ii_files/ for
8379 # template instantiation
8380 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8381 $RM out/* && rmdir out
8382 cd ..
8383 $RM -r conftest
8384 $RM conftest*
8385
8386 fi
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8388 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8389
8390
8391
8392
8393
8394
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8396 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8397 if ${lt_cv_prog_compiler_c_o+:} false; then :
8398 $as_echo_n "(cached) " >&6
8399 else
8400 lt_cv_prog_compiler_c_o=no
8401 $RM -r conftest 2>/dev/null
8402 mkdir conftest
8403 cd conftest
8404 mkdir out
8405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8406
8407 lt_compiler_flag="-o out/conftest2.$ac_objext"
8408 # Insert the option either (1) after the last *FLAGS variable, or
8409 # (2) before a word containing "conftest.", or (3) at the end.
8410 # Note that $ac_compile itself does not contain backslashes and begins
8411 # with a dollar sign (not a hyphen), so the echo should work correctly.
8412 lt_compile=`echo "$ac_compile" | $SED \
8413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8415 -e 's:$: $lt_compiler_flag:'`
8416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8417 (eval "$lt_compile" 2>out/conftest.err)
8418 ac_status=$?
8419 cat out/conftest.err >&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8422 then
8423 # The compiler can only warn and ignore the option if not recognized
8424 # So say no if there are warnings
8425 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8426 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8427 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8428 lt_cv_prog_compiler_c_o=yes
8429 fi
8430 fi
8431 chmod u+w . 2>&5
8432 $RM conftest*
8433 # SGI C++ compiler will create directory out/ii_files/ for
8434 # template instantiation
8435 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8436 $RM out/* && rmdir out
8437 cd ..
8438 $RM -r conftest
8439 $RM conftest*
8440
8441 fi
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8443 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8444
8445
8446
8447
8448 hard_links="nottested"
8449 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8450 # do not overwrite the value of need_locks provided by the user
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8452 $as_echo_n "checking if we can lock with hard links... " >&6; }
8453 hard_links=yes
8454 $RM conftest*
8455 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8456 touch conftest.a
8457 ln conftest.a conftest.b 2>&5 || hard_links=no
8458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8460 $as_echo "$hard_links" >&6; }
8461 if test "$hard_links" = no; then
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8463 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8464 need_locks=warn
8465 fi
8466 else
8467 need_locks=no
8468 fi
8469
8470
8471
8472
8473
8474
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8476 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8477
8478 runpath_var=
8479 allow_undefined_flag=
8480 always_export_symbols=no
8481 archive_cmds=
8482 archive_expsym_cmds=
8483 compiler_needs_object=no
8484 enable_shared_with_static_runtimes=no
8485 export_dynamic_flag_spec=
8486 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8487 hardcode_automatic=no
8488 hardcode_direct=no
8489 hardcode_direct_absolute=no
8490 hardcode_libdir_flag_spec=
8491 hardcode_libdir_flag_spec_ld=
8492 hardcode_libdir_separator=
8493 hardcode_minus_L=no
8494 hardcode_shlibpath_var=unsupported
8495 inherit_rpath=no
8496 link_all_deplibs=unknown
8497 module_cmds=
8498 module_expsym_cmds=
8499 old_archive_from_new_cmds=
8500 old_archive_from_expsyms_cmds=
8501 thread_safe_flag_spec=
8502 whole_archive_flag_spec=
8503 # include_expsyms should be a list of space-separated symbols to be *always*
8504 # included in the symbol list
8505 include_expsyms=
8506 # exclude_expsyms can be an extended regexp of symbols to exclude
8507 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8508 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8509 # as well as any symbol that contains `d'.
8510 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8511 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8512 # platforms (ab)use it in PIC code, but their linkers get confused if
8513 # the symbol is explicitly referenced. Since portable code cannot
8514 # rely on this symbol name, it's probably fine to never include it in
8515 # preloaded symbol tables.
8516 # Exclude shared library initialization/finalization symbols.
8517 extract_expsyms_cmds=
8518
8519 case $host_os in
8520 cygwin* | mingw* | pw32* | cegcc*)
8521 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8522 # When not using gcc, we currently assume that we are using
8523 # Microsoft Visual C++.
8524 if test "$GCC" != yes; then
8525 with_gnu_ld=no
8526 fi
8527 ;;
8528 interix*)
8529 # we just hope/assume this is gcc and not c89 (= MSVC++)
8530 with_gnu_ld=yes
8531 ;;
8532 openbsd*)
8533 with_gnu_ld=no
8534 ;;
8535 esac
8536
8537 ld_shlibs=yes
8538
8539 # On some targets, GNU ld is compatible enough with the native linker
8540 # that we're better off using the native interface for both.
8541 lt_use_gnu_ld_interface=no
8542 if test "$with_gnu_ld" = yes; then
8543 case $host_os in
8544 aix*)
8545 # The AIX port of GNU ld has always aspired to compatibility
8546 # with the native linker. However, as the warning in the GNU ld
8547 # block says, versions before 2.19.5* couldn't really create working
8548 # shared libraries, regardless of the interface used.
8549 case `$LD -v 2>&1` in
8550 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8551 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8552 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8553 *)
8554 lt_use_gnu_ld_interface=yes
8555 ;;
8556 esac
8557 ;;
8558 *)
8559 lt_use_gnu_ld_interface=yes
8560 ;;
8561 esac
8562 fi
8563
8564 if test "$lt_use_gnu_ld_interface" = yes; then
8565 # If archive_cmds runs LD, not CC, wlarc should be empty
8566 wlarc='${wl}'
8567
8568 # Set some defaults for GNU ld with shared library support. These
8569 # are reset later if shared libraries are not supported. Putting them
8570 # here allows them to be overridden if necessary.
8571 runpath_var=LD_RUN_PATH
8572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8573 export_dynamic_flag_spec='${wl}--export-dynamic'
8574 # ancient GNU ld didn't support --whole-archive et. al.
8575 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8576 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8577 else
8578 whole_archive_flag_spec=
8579 fi
8580 supports_anon_versioning=no
8581 case `$LD -v 2>&1` in
8582 *GNU\ gold*) supports_anon_versioning=yes ;;
8583 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8584 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8585 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8586 *\ 2.11.*) ;; # other 2.11 versions
8587 *) supports_anon_versioning=yes ;;
8588 esac
8589
8590 # See if GNU ld supports shared libraries.
8591 case $host_os in
8592 aix[3-9]*)
8593 # On AIX/PPC, the GNU linker is very broken
8594 if test "$host_cpu" != ia64; then
8595 ld_shlibs=no
8596 cat <<_LT_EOF 1>&2
8597
8598 *** Warning: the GNU linker, at least up to release 2.19, is reported
8599 *** to be unable to reliably create shared libraries on AIX.
8600 *** Therefore, libtool is disabling shared libraries support. If you
8601 *** really care for shared libraries, you may want to install binutils
8602 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8603 *** You will then need to restart the configuration process.
8604
8605 _LT_EOF
8606 fi
8607 ;;
8608
8609 amigaos*)
8610 case $host_cpu in
8611 powerpc)
8612 # see comment about AmigaOS4 .so support
8613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8614 archive_expsym_cmds=''
8615 ;;
8616 m68k)
8617 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)'
8618 hardcode_libdir_flag_spec='-L$libdir'
8619 hardcode_minus_L=yes
8620 ;;
8621 esac
8622 ;;
8623
8624 beos*)
8625 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8626 allow_undefined_flag=unsupported
8627 # Joseph Beckenbach <[email protected]> says some releases of gcc
8628 # support --undefined. This deserves some investigation. FIXME
8629 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8630 else
8631 ld_shlibs=no
8632 fi
8633 ;;
8634
8635 cygwin* | mingw* | pw32* | cegcc*)
8636 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8637 # as there is no search path for DLLs.
8638 hardcode_libdir_flag_spec='-L$libdir'
8639 export_dynamic_flag_spec='${wl}--export-all-symbols'
8640 allow_undefined_flag=unsupported
8641 always_export_symbols=no
8642 enable_shared_with_static_runtimes=yes
8643 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'
8644 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8645
8646 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8648 # If the export-symbols file already is a .def file (1st line
8649 # is EXPORTS), use it as is; otherwise, prepend...
8650 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8651 cp $export_symbols $output_objdir/$soname.def;
8652 else
8653 echo EXPORTS > $output_objdir/$soname.def;
8654 cat $export_symbols >> $output_objdir/$soname.def;
8655 fi~
8656 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8657 else
8658 ld_shlibs=no
8659 fi
8660 ;;
8661
8662 haiku*)
8663 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8664 link_all_deplibs=yes
8665 ;;
8666
8667 interix[3-9]*)
8668 hardcode_direct=no
8669 hardcode_shlibpath_var=no
8670 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8671 export_dynamic_flag_spec='${wl}-E'
8672 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8673 # Instead, shared libraries are loaded at an image base (0x10000000 by
8674 # default) and relocated if they conflict, which is a slow very memory
8675 # consuming and fragmenting process. To avoid this, we pick a random,
8676 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8677 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8678 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8679 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'
8680 ;;
8681
8682 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8683 tmp_diet=no
8684 if test "$host_os" = linux-dietlibc; then
8685 case $cc_basename in
8686 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8687 esac
8688 fi
8689 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8690 && test "$tmp_diet" = no
8691 then
8692 tmp_addflag=' $pic_flag'
8693 tmp_sharedflag='-shared'
8694 case $cc_basename,$host_cpu in
8695 pgcc*) # Portland Group C compiler
8696 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'
8697 tmp_addflag=' $pic_flag'
8698 ;;
8699 pgf77* | pgf90* | pgf95* | pgfortran*)
8700 # Portland Group f77 and f90 compilers
8701 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'
8702 tmp_addflag=' $pic_flag -Mnomain' ;;
8703 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8704 tmp_addflag=' -i_dynamic' ;;
8705 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8706 tmp_addflag=' -i_dynamic -nofor_main' ;;
8707 ifc* | ifort*) # Intel Fortran compiler
8708 tmp_addflag=' -nofor_main' ;;
8709 lf95*) # Lahey Fortran 8.1
8710 whole_archive_flag_spec=
8711 tmp_sharedflag='--shared' ;;
8712 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8713 tmp_sharedflag='-qmkshrobj'
8714 tmp_addflag= ;;
8715 nvcc*) # Cuda Compiler Driver 2.2
8716 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'
8717 compiler_needs_object=yes
8718 ;;
8719 esac
8720 case `$CC -V 2>&1 | sed 5q` in
8721 *Sun\ C*) # Sun C 5.9
8722 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'
8723 compiler_needs_object=yes
8724 tmp_sharedflag='-G' ;;
8725 *Sun\ F*) # Sun Fortran 8.3
8726 tmp_sharedflag='-G' ;;
8727 esac
8728 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8729
8730 if test "x$supports_anon_versioning" = xyes; then
8731 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8732 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8733 echo "local: *; };" >> $output_objdir/$libname.ver~
8734 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8735 fi
8736
8737 case $cc_basename in
8738 xlf* | bgf* | bgxlf* | mpixlf*)
8739 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8740 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8741 hardcode_libdir_flag_spec=
8742 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8743 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8744 if test "x$supports_anon_versioning" = xyes; then
8745 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8746 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8747 echo "local: *; };" >> $output_objdir/$libname.ver~
8748 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8749 fi
8750 ;;
8751 esac
8752 else
8753 ld_shlibs=no
8754 fi
8755 ;;
8756
8757 netbsd*)
8758 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8759 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8760 wlarc=
8761 else
8762 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8763 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8764 fi
8765 ;;
8766
8767 solaris*)
8768 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8769 ld_shlibs=no
8770 cat <<_LT_EOF 1>&2
8771
8772 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8773 *** create shared libraries on Solaris systems. Therefore, libtool
8774 *** is disabling shared libraries support. We urge you to upgrade GNU
8775 *** binutils to release 2.9.1 or newer. Another option is to modify
8776 *** your PATH or compiler configuration so that the native linker is
8777 *** used, and then restart.
8778
8779 _LT_EOF
8780 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8781 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8782 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8783 else
8784 ld_shlibs=no
8785 fi
8786 ;;
8787
8788 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8789 case `$LD -v 2>&1` in
8790 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8791 ld_shlibs=no
8792 cat <<_LT_EOF 1>&2
8793
8794 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8795 *** reliably create shared libraries on SCO systems. Therefore, libtool
8796 *** is disabling shared libraries support. We urge you to upgrade GNU
8797 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8798 *** your PATH or compiler configuration so that the native linker is
8799 *** used, and then restart.
8800
8801 _LT_EOF
8802 ;;
8803 *)
8804 # For security reasons, it is highly recommended that you always
8805 # use absolute paths for naming shared libraries, and exclude the
8806 # DT_RUNPATH tag from executables and libraries. But doing so
8807 # requires that you compile everything twice, which is a pain.
8808 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8810 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8811 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8812 else
8813 ld_shlibs=no
8814 fi
8815 ;;
8816 esac
8817 ;;
8818
8819 sunos4*)
8820 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8821 wlarc=
8822 hardcode_direct=yes
8823 hardcode_shlibpath_var=no
8824 ;;
8825
8826 *)
8827 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8828 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8829 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8830 else
8831 ld_shlibs=no
8832 fi
8833 ;;
8834 esac
8835
8836 if test "$ld_shlibs" = no; then
8837 runpath_var=
8838 hardcode_libdir_flag_spec=
8839 export_dynamic_flag_spec=
8840 whole_archive_flag_spec=
8841 fi
8842 else
8843 # PORTME fill in a description of your system's linker (not GNU ld)
8844 case $host_os in
8845 aix3*)
8846 allow_undefined_flag=unsupported
8847 always_export_symbols=yes
8848 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'
8849 # Note: this linker hardcodes the directories in LIBPATH if there
8850 # are no directories specified by -L.
8851 hardcode_minus_L=yes
8852 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8853 # Neither direct hardcoding nor static linking is supported with a
8854 # broken collect2.
8855 hardcode_direct=unsupported
8856 fi
8857 ;;
8858
8859 aix[4-9]*)
8860 if test "$host_cpu" = ia64; then
8861 # On IA64, the linker does run time linking by default, so we don't
8862 # have to do anything special.
8863 aix_use_runtimelinking=no
8864 exp_sym_flag='-Bexport'
8865 no_entry_flag=""
8866 else
8867 # If we're using GNU nm, then we don't want the "-C" option.
8868 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8869 # Also, AIX nm treats weak defined symbols like other global
8870 # defined symbols, whereas GNU nm marks them as "W".
8871 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8872 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'
8873 else
8874 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'
8875 fi
8876 aix_use_runtimelinking=no
8877
8878 # Test if we are trying to use run time linking or normal
8879 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8880 # need to do runtime linking.
8881 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8882 for ld_flag in $LDFLAGS; do
8883 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8884 aix_use_runtimelinking=yes
8885 break
8886 fi
8887 done
8888 ;;
8889 esac
8890
8891 exp_sym_flag='-bexport'
8892 no_entry_flag='-bnoentry'
8893 fi
8894
8895 # When large executables or shared objects are built, AIX ld can
8896 # have problems creating the table of contents. If linking a library
8897 # or program results in "error TOC overflow" add -mminimal-toc to
8898 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8899 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8900
8901 archive_cmds=''
8902 hardcode_direct=yes
8903 hardcode_direct_absolute=yes
8904 hardcode_libdir_separator=':'
8905 link_all_deplibs=yes
8906 file_list_spec='${wl}-f,'
8907
8908 if test "$GCC" = yes; then
8909 case $host_os in aix4.[012]|aix4.[012].*)
8910 # We only want to do this on AIX 4.2 and lower, the check
8911 # below for broken collect2 doesn't work under 4.3+
8912 collect2name=`${CC} -print-prog-name=collect2`
8913 if test -f "$collect2name" &&
8914 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8915 then
8916 # We have reworked collect2
8917 :
8918 else
8919 # We have old collect2
8920 hardcode_direct=unsupported
8921 # It fails to find uninstalled libraries when the uninstalled
8922 # path is not listed in the libpath. Setting hardcode_minus_L
8923 # to unsupported forces relinking
8924 hardcode_minus_L=yes
8925 hardcode_libdir_flag_spec='-L$libdir'
8926 hardcode_libdir_separator=
8927 fi
8928 ;;
8929 esac
8930 shared_flag='-shared'
8931 if test "$aix_use_runtimelinking" = yes; then
8932 shared_flag="$shared_flag "'${wl}-G'
8933 fi
8934 else
8935 # not using gcc
8936 if test "$host_cpu" = ia64; then
8937 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8938 # chokes on -Wl,-G. The following line is correct:
8939 shared_flag='-G'
8940 else
8941 if test "$aix_use_runtimelinking" = yes; then
8942 shared_flag='${wl}-G'
8943 else
8944 shared_flag='${wl}-bM:SRE'
8945 fi
8946 fi
8947 fi
8948
8949 export_dynamic_flag_spec='${wl}-bexpall'
8950 # It seems that -bexpall does not export symbols beginning with
8951 # underscore (_), so it is better to generate a list of symbols to export.
8952 always_export_symbols=yes
8953 if test "$aix_use_runtimelinking" = yes; then
8954 # Warning - without using the other runtime loading flags (-brtl),
8955 # -berok will link without error, but may produce a broken library.
8956 allow_undefined_flag='-berok'
8957 # Determine the default libpath from the value encoded in an
8958 # empty executable.
8959 if test "${lt_cv_aix_libpath+set}" = set; then
8960 aix_libpath=$lt_cv_aix_libpath
8961 else
8962 if ${lt_cv_aix_libpath_+:} false; then :
8963 $as_echo_n "(cached) " >&6
8964 else
8965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966 /* end confdefs.h. */
8967
8968 int
8969 main ()
8970 {
8971
8972 ;
8973 return 0;
8974 }
8975 _ACEOF
8976 if ac_fn_c_try_link "$LINENO"; then :
8977
8978 lt_aix_libpath_sed='
8979 /Import File Strings/,/^$/ {
8980 /^0/ {
8981 s/^0 *\([^ ]*\) *$/\1/
8982 p
8983 }
8984 }'
8985 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8986 # Check for a 64-bit object if we didn't find anything.
8987 if test -z "$lt_cv_aix_libpath_"; then
8988 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8989 fi
8990 fi
8991 rm -f core conftest.err conftest.$ac_objext \
8992 conftest$ac_exeext conftest.$ac_ext
8993 if test -z "$lt_cv_aix_libpath_"; then
8994 lt_cv_aix_libpath_="/usr/lib:/lib"
8995 fi
8996
8997 fi
8998
8999 aix_libpath=$lt_cv_aix_libpath_
9000 fi
9001
9002 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9003 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"
9004 else
9005 if test "$host_cpu" = ia64; then
9006 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9007 allow_undefined_flag="-z nodefs"
9008 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"
9009 else
9010 # Determine the default libpath from the value encoded in an
9011 # empty executable.
9012 if test "${lt_cv_aix_libpath+set}" = set; then
9013 aix_libpath=$lt_cv_aix_libpath
9014 else
9015 if ${lt_cv_aix_libpath_+:} false; then :
9016 $as_echo_n "(cached) " >&6
9017 else
9018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9019 /* end confdefs.h. */
9020
9021 int
9022 main ()
9023 {
9024
9025 ;
9026 return 0;
9027 }
9028 _ACEOF
9029 if ac_fn_c_try_link "$LINENO"; then :
9030
9031 lt_aix_libpath_sed='
9032 /Import File Strings/,/^$/ {
9033 /^0/ {
9034 s/^0 *\([^ ]*\) *$/\1/
9035 p
9036 }
9037 }'
9038 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9039 # Check for a 64-bit object if we didn't find anything.
9040 if test -z "$lt_cv_aix_libpath_"; then
9041 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9042 fi
9043 fi
9044 rm -f core conftest.err conftest.$ac_objext \
9045 conftest$ac_exeext conftest.$ac_ext
9046 if test -z "$lt_cv_aix_libpath_"; then
9047 lt_cv_aix_libpath_="/usr/lib:/lib"
9048 fi
9049
9050 fi
9051
9052 aix_libpath=$lt_cv_aix_libpath_
9053 fi
9054
9055 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9056 # Warning - without using the other run time loading flags,
9057 # -berok will link without error, but may produce a broken library.
9058 no_undefined_flag=' ${wl}-bernotok'
9059 allow_undefined_flag=' ${wl}-berok'
9060 if test "$with_gnu_ld" = yes; then
9061 # We only use this code for GNU lds that support --whole-archive.
9062 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9063 else
9064 # Exported symbols can be pulled into shared objects from archives
9065 whole_archive_flag_spec='$convenience'
9066 fi
9067 archive_cmds_need_lc=yes
9068 # This is similar to how AIX traditionally builds its shared libraries.
9069 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'
9070 fi
9071 fi
9072 ;;
9073
9074 amigaos*)
9075 case $host_cpu in
9076 powerpc)
9077 # see comment about AmigaOS4 .so support
9078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9079 archive_expsym_cmds=''
9080 ;;
9081 m68k)
9082 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)'
9083 hardcode_libdir_flag_spec='-L$libdir'
9084 hardcode_minus_L=yes
9085 ;;
9086 esac
9087 ;;
9088
9089 bsdi[45]*)
9090 export_dynamic_flag_spec=-rdynamic
9091 ;;
9092
9093 cygwin* | mingw* | pw32* | cegcc*)
9094 # When not using gcc, we currently assume that we are using
9095 # Microsoft Visual C++.
9096 # hardcode_libdir_flag_spec is actually meaningless, as there is
9097 # no search path for DLLs.
9098 case $cc_basename in
9099 cl*)
9100 # Native MSVC
9101 hardcode_libdir_flag_spec=' '
9102 allow_undefined_flag=unsupported
9103 always_export_symbols=yes
9104 file_list_spec='@'
9105 # Tell ltmain to make .lib files, not .a files.
9106 libext=lib
9107 # Tell ltmain to make .dll files, not .so files.
9108 shrext_cmds=".dll"
9109 # FIXME: Setting linknames here is a bad hack.
9110 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9111 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9112 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9113 else
9114 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9115 fi~
9116 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9117 linknames='
9118 # The linker will not automatically build a static lib if we build a DLL.
9119 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9120 enable_shared_with_static_runtimes=yes
9121 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9122 # Don't use ranlib
9123 old_postinstall_cmds='chmod 644 $oldlib'
9124 postlink_cmds='lt_outputfile="@OUTPUT@"~
9125 lt_tool_outputfile="@TOOL_OUTPUT@"~
9126 case $lt_outputfile in
9127 *.exe|*.EXE) ;;
9128 *)
9129 lt_outputfile="$lt_outputfile.exe"
9130 lt_tool_outputfile="$lt_tool_outputfile.exe"
9131 ;;
9132 esac~
9133 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9134 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9135 $RM "$lt_outputfile.manifest";
9136 fi'
9137 ;;
9138 *)
9139 # Assume MSVC wrapper
9140 hardcode_libdir_flag_spec=' '
9141 allow_undefined_flag=unsupported
9142 # Tell ltmain to make .lib files, not .a files.
9143 libext=lib
9144 # Tell ltmain to make .dll files, not .so files.
9145 shrext_cmds=".dll"
9146 # FIXME: Setting linknames here is a bad hack.
9147 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9148 # The linker will automatically build a .lib file if we build a DLL.
9149 old_archive_from_new_cmds='true'
9150 # FIXME: Should let the user specify the lib program.
9151 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9152 enable_shared_with_static_runtimes=yes
9153 ;;
9154 esac
9155 ;;
9156
9157 darwin* | rhapsody*)
9158
9159
9160 archive_cmds_need_lc=no
9161 hardcode_direct=no
9162 hardcode_automatic=yes
9163 hardcode_shlibpath_var=unsupported
9164 if test "$lt_cv_ld_force_load" = "yes"; then
9165 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\"`'
9166 else
9167 whole_archive_flag_spec=''
9168 fi
9169 link_all_deplibs=yes
9170 allow_undefined_flag="$_lt_dar_allow_undefined"
9171 case $cc_basename in
9172 ifort*) _lt_dar_can_shared=yes ;;
9173 *) _lt_dar_can_shared=$GCC ;;
9174 esac
9175 if test "$_lt_dar_can_shared" = "yes"; then
9176 output_verbose_link_cmd=func_echo_all
9177 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9178 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9179 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}"
9180 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}"
9181
9182 else
9183 ld_shlibs=no
9184 fi
9185
9186 ;;
9187
9188 dgux*)
9189 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9190 hardcode_libdir_flag_spec='-L$libdir'
9191 hardcode_shlibpath_var=no
9192 ;;
9193
9194 freebsd1*)
9195 ld_shlibs=no
9196 ;;
9197
9198 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9199 # support. Future versions do this automatically, but an explicit c++rt0.o
9200 # does not break anything, and helps significantly (at the cost of a little
9201 # extra space).
9202 freebsd2.2*)
9203 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9204 hardcode_libdir_flag_spec='-R$libdir'
9205 hardcode_direct=yes
9206 hardcode_shlibpath_var=no
9207 ;;
9208
9209 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9210 freebsd2*)
9211 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9212 hardcode_direct=yes
9213 hardcode_minus_L=yes
9214 hardcode_shlibpath_var=no
9215 ;;
9216
9217 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9218 freebsd* | dragonfly*)
9219 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9220 hardcode_libdir_flag_spec='-R$libdir'
9221 hardcode_direct=yes
9222 hardcode_shlibpath_var=no
9223 ;;
9224
9225 hpux9*)
9226 if test "$GCC" = yes; then
9227 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'
9228 else
9229 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'
9230 fi
9231 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9232 hardcode_libdir_separator=:
9233 hardcode_direct=yes
9234
9235 # hardcode_minus_L: Not really in the search PATH,
9236 # but as the default location of the library.
9237 hardcode_minus_L=yes
9238 export_dynamic_flag_spec='${wl}-E'
9239 ;;
9240
9241 hpux10*)
9242 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9243 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9244 else
9245 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9246 fi
9247 if test "$with_gnu_ld" = no; then
9248 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9249 hardcode_libdir_flag_spec_ld='+b $libdir'
9250 hardcode_libdir_separator=:
9251 hardcode_direct=yes
9252 hardcode_direct_absolute=yes
9253 export_dynamic_flag_spec='${wl}-E'
9254 # hardcode_minus_L: Not really in the search PATH,
9255 # but as the default location of the library.
9256 hardcode_minus_L=yes
9257 fi
9258 ;;
9259
9260 hpux11*)
9261 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9262 case $host_cpu in
9263 hppa*64*)
9264 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9265 ;;
9266 ia64*)
9267 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9268 ;;
9269 *)
9270 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9271 ;;
9272 esac
9273 else
9274 case $host_cpu in
9275 hppa*64*)
9276 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9277 ;;
9278 ia64*)
9279 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9280 ;;
9281 *)
9282
9283 # Older versions of the 11.00 compiler do not understand -b yet
9284 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9286 $as_echo_n "checking if $CC understands -b... " >&6; }
9287 if ${lt_cv_prog_compiler__b+:} false; then :
9288 $as_echo_n "(cached) " >&6
9289 else
9290 lt_cv_prog_compiler__b=no
9291 save_LDFLAGS="$LDFLAGS"
9292 LDFLAGS="$LDFLAGS -b"
9293 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9294 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9295 # The linker can only warn and ignore the option if not recognized
9296 # So say no if there are warnings
9297 if test -s conftest.err; then
9298 # Append any errors to the config.log.
9299 cat conftest.err 1>&5
9300 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9302 if diff conftest.exp conftest.er2 >/dev/null; then
9303 lt_cv_prog_compiler__b=yes
9304 fi
9305 else
9306 lt_cv_prog_compiler__b=yes
9307 fi
9308 fi
9309 $RM -r conftest*
9310 LDFLAGS="$save_LDFLAGS"
9311
9312 fi
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9314 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9315
9316 if test x"$lt_cv_prog_compiler__b" = xyes; then
9317 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9318 else
9319 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9320 fi
9321
9322 ;;
9323 esac
9324 fi
9325 if test "$with_gnu_ld" = no; then
9326 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9327 hardcode_libdir_separator=:
9328
9329 case $host_cpu in
9330 hppa*64*|ia64*)
9331 hardcode_direct=no
9332 hardcode_shlibpath_var=no
9333 ;;
9334 *)
9335 hardcode_direct=yes
9336 hardcode_direct_absolute=yes
9337 export_dynamic_flag_spec='${wl}-E'
9338
9339 # hardcode_minus_L: Not really in the search PATH,
9340 # but as the default location of the library.
9341 hardcode_minus_L=yes
9342 ;;
9343 esac
9344 fi
9345 ;;
9346
9347 irix5* | irix6* | nonstopux*)
9348 if test "$GCC" = yes; then
9349 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'
9350 # Try to use the -exported_symbol ld option, if it does not
9351 # work, assume that -exports_file does not work either and
9352 # implicitly export all symbols.
9353 # This should be the same for all languages, so no per-tag cache variable.
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9355 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9356 if ${lt_cv_irix_exported_symbol+:} false; then :
9357 $as_echo_n "(cached) " >&6
9358 else
9359 save_LDFLAGS="$LDFLAGS"
9360 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9363 int foo (void) { return 0; }
9364 _ACEOF
9365 if ac_fn_c_try_link "$LINENO"; then :
9366 lt_cv_irix_exported_symbol=yes
9367 else
9368 lt_cv_irix_exported_symbol=no
9369 fi
9370 rm -f core conftest.err conftest.$ac_objext \
9371 conftest$ac_exeext conftest.$ac_ext
9372 LDFLAGS="$save_LDFLAGS"
9373 fi
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9375 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9376 if test "$lt_cv_irix_exported_symbol" = yes; then
9377 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'
9378 fi
9379 else
9380 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'
9381 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'
9382 fi
9383 archive_cmds_need_lc='no'
9384 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9385 hardcode_libdir_separator=:
9386 inherit_rpath=yes
9387 link_all_deplibs=yes
9388 ;;
9389
9390 netbsd*)
9391 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9392 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9393 else
9394 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9395 fi
9396 hardcode_libdir_flag_spec='-R$libdir'
9397 hardcode_direct=yes
9398 hardcode_shlibpath_var=no
9399 ;;
9400
9401 newsos6)
9402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9403 hardcode_direct=yes
9404 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9405 hardcode_libdir_separator=:
9406 hardcode_shlibpath_var=no
9407 ;;
9408
9409 *nto* | *qnx*)
9410 ;;
9411
9412 openbsd*)
9413 if test -f /usr/libexec/ld.so; then
9414 hardcode_direct=yes
9415 hardcode_shlibpath_var=no
9416 hardcode_direct_absolute=yes
9417 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9418 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9419 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9420 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9421 export_dynamic_flag_spec='${wl}-E'
9422 else
9423 case $host_os in
9424 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9425 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9426 hardcode_libdir_flag_spec='-R$libdir'
9427 ;;
9428 *)
9429 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9430 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9431 ;;
9432 esac
9433 fi
9434 else
9435 ld_shlibs=no
9436 fi
9437 ;;
9438
9439 os2*)
9440 hardcode_libdir_flag_spec='-L$libdir'
9441 hardcode_minus_L=yes
9442 allow_undefined_flag=unsupported
9443 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'
9444 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9445 ;;
9446
9447 osf3*)
9448 if test "$GCC" = yes; then
9449 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9450 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'
9451 else
9452 allow_undefined_flag=' -expect_unresolved \*'
9453 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'
9454 fi
9455 archive_cmds_need_lc='no'
9456 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9457 hardcode_libdir_separator=:
9458 ;;
9459
9460 osf4* | osf5*) # as osf3* with the addition of -msym flag
9461 if test "$GCC" = yes; then
9462 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9463 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'
9464 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9465 else
9466 allow_undefined_flag=' -expect_unresolved \*'
9467 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'
9468 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~
9469 $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'
9470
9471 # Both c and cxx compiler support -rpath directly
9472 hardcode_libdir_flag_spec='-rpath $libdir'
9473 fi
9474 archive_cmds_need_lc='no'
9475 hardcode_libdir_separator=:
9476 ;;
9477
9478 solaris*)
9479 no_undefined_flag=' -z defs'
9480 if test "$GCC" = yes; then
9481 wlarc='${wl}'
9482 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9483 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9484 $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'
9485 else
9486 case `$CC -V 2>&1` in
9487 *"Compilers 5.0"*)
9488 wlarc=''
9489 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9490 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9491 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9492 ;;
9493 *)
9494 wlarc='${wl}'
9495 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9496 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9497 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9498 ;;
9499 esac
9500 fi
9501 hardcode_libdir_flag_spec='-R$libdir'
9502 hardcode_shlibpath_var=no
9503 case $host_os in
9504 solaris2.[0-5] | solaris2.[0-5].*) ;;
9505 *)
9506 # The compiler driver will combine and reorder linker options,
9507 # but understands `-z linker_flag'. GCC discards it without `$wl',
9508 # but is careful enough not to reorder.
9509 # Supported since Solaris 2.6 (maybe 2.5.1?)
9510 if test "$GCC" = yes; then
9511 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9512 else
9513 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9514 fi
9515 ;;
9516 esac
9517 link_all_deplibs=yes
9518 ;;
9519
9520 sunos4*)
9521 if test "x$host_vendor" = xsequent; then
9522 # Use $CC to link under sequent, because it throws in some extra .o
9523 # files that make .init and .fini sections work.
9524 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9525 else
9526 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9527 fi
9528 hardcode_libdir_flag_spec='-L$libdir'
9529 hardcode_direct=yes
9530 hardcode_minus_L=yes
9531 hardcode_shlibpath_var=no
9532 ;;
9533
9534 sysv4)
9535 case $host_vendor in
9536 sni)
9537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9538 hardcode_direct=yes # is this really true???
9539 ;;
9540 siemens)
9541 ## LD is ld it makes a PLAMLIB
9542 ## CC just makes a GrossModule.
9543 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9544 reload_cmds='$CC -r -o $output$reload_objs'
9545 hardcode_direct=no
9546 ;;
9547 motorola)
9548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9549 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9550 ;;
9551 esac
9552 runpath_var='LD_RUN_PATH'
9553 hardcode_shlibpath_var=no
9554 ;;
9555
9556 sysv4.3*)
9557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9558 hardcode_shlibpath_var=no
9559 export_dynamic_flag_spec='-Bexport'
9560 ;;
9561
9562 sysv4*MP*)
9563 if test -d /usr/nec; then
9564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9565 hardcode_shlibpath_var=no
9566 runpath_var=LD_RUN_PATH
9567 hardcode_runpath_var=yes
9568 ld_shlibs=yes
9569 fi
9570 ;;
9571
9572 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9573 no_undefined_flag='${wl}-z,text'
9574 archive_cmds_need_lc=no
9575 hardcode_shlibpath_var=no
9576 runpath_var='LD_RUN_PATH'
9577
9578 if test "$GCC" = yes; then
9579 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9580 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9581 else
9582 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9583 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9584 fi
9585 ;;
9586
9587 sysv5* | sco3.2v5* | sco5v6*)
9588 # Note: We can NOT use -z defs as we might desire, because we do not
9589 # link with -lc, and that would cause any symbols used from libc to
9590 # always be unresolved, which means just about no library would
9591 # ever link correctly. If we're not using GNU ld we use -z text
9592 # though, which does catch some bad symbols but isn't as heavy-handed
9593 # as -z defs.
9594 no_undefined_flag='${wl}-z,text'
9595 allow_undefined_flag='${wl}-z,nodefs'
9596 archive_cmds_need_lc=no
9597 hardcode_shlibpath_var=no
9598 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9599 hardcode_libdir_separator=':'
9600 link_all_deplibs=yes
9601 export_dynamic_flag_spec='${wl}-Bexport'
9602 runpath_var='LD_RUN_PATH'
9603
9604 if test "$GCC" = yes; then
9605 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9606 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9607 else
9608 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9609 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9610 fi
9611 ;;
9612
9613 uts4*)
9614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9615 hardcode_libdir_flag_spec='-L$libdir'
9616 hardcode_shlibpath_var=no
9617 ;;
9618
9619 *)
9620 ld_shlibs=no
9621 ;;
9622 esac
9623
9624 if test x$host_vendor = xsni; then
9625 case $host in
9626 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9627 export_dynamic_flag_spec='${wl}-Blargedynsym'
9628 ;;
9629 esac
9630 fi
9631 fi
9632
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9634 $as_echo "$ld_shlibs" >&6; }
9635 test "$ld_shlibs" = no && can_build_shared=no
9636
9637 with_gnu_ld=$with_gnu_ld
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653 #
9654 # Do we need to explicitly link libc?
9655 #
9656 case "x$archive_cmds_need_lc" in
9657 x|xyes)
9658 # Assume -lc should be added
9659 archive_cmds_need_lc=yes
9660
9661 if test "$enable_shared" = yes && test "$GCC" = yes; then
9662 case $archive_cmds in
9663 *'~'*)
9664 # FIXME: we may have to deal with multi-command sequences.
9665 ;;
9666 '$CC '*)
9667 # Test whether the compiler implicitly links with -lc since on some
9668 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9669 # to ld, don't add -lc before -lgcc.
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9671 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9672 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9673 $as_echo_n "(cached) " >&6
9674 else
9675 $RM conftest*
9676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9677
9678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9679 (eval $ac_compile) 2>&5
9680 ac_status=$?
9681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9682 test $ac_status = 0; } 2>conftest.err; then
9683 soname=conftest
9684 lib=conftest
9685 libobjs=conftest.$ac_objext
9686 deplibs=
9687 wl=$lt_prog_compiler_wl
9688 pic_flag=$lt_prog_compiler_pic
9689 compiler_flags=-v
9690 linker_flags=-v
9691 verstring=
9692 output_objdir=.
9693 libname=conftest
9694 lt_save_allow_undefined_flag=$allow_undefined_flag
9695 allow_undefined_flag=
9696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9697 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9698 ac_status=$?
9699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9700 test $ac_status = 0; }
9701 then
9702 lt_cv_archive_cmds_need_lc=no
9703 else
9704 lt_cv_archive_cmds_need_lc=yes
9705 fi
9706 allow_undefined_flag=$lt_save_allow_undefined_flag
9707 else
9708 cat conftest.err 1>&5
9709 fi
9710 $RM conftest*
9711
9712 fi
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9714 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9715 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9716 ;;
9717 esac
9718 fi
9719 ;;
9720 esac
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9879 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9880
9881 if test "$GCC" = yes; then
9882 case $host_os in
9883 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9884 *) lt_awk_arg="/^libraries:/" ;;
9885 esac
9886 case $host_os in
9887 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9888 *) lt_sed_strip_eq="s,=/,/,g" ;;
9889 esac
9890 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9891 case $lt_search_path_spec in
9892 *\;*)
9893 # if the path contains ";" then we assume it to be the separator
9894 # otherwise default to the standard path separator (i.e. ":") - it is
9895 # assumed that no part of a normal pathname contains ";" but that should
9896 # okay in the real world where ";" in dirpaths is itself problematic.
9897 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9898 ;;
9899 *)
9900 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9901 ;;
9902 esac
9903 # Ok, now we have the path, separated by spaces, we can step through it
9904 # and add multilib dir if necessary.
9905 lt_tmp_lt_search_path_spec=
9906 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9907 for lt_sys_path in $lt_search_path_spec; do
9908 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9909 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9910 else
9911 test -d "$lt_sys_path" && \
9912 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9913 fi
9914 done
9915 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9916 BEGIN {RS=" "; FS="/|\n";} {
9917 lt_foo="";
9918 lt_count=0;
9919 for (lt_i = NF; lt_i > 0; lt_i--) {
9920 if ($lt_i != "" && $lt_i != ".") {
9921 if ($lt_i == "..") {
9922 lt_count++;
9923 } else {
9924 if (lt_count == 0) {
9925 lt_foo="/" $lt_i lt_foo;
9926 } else {
9927 lt_count--;
9928 }
9929 }
9930 }
9931 }
9932 if (lt_foo != "") { lt_freq[lt_foo]++; }
9933 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9934 }'`
9935 # AWK program above erroneously prepends '/' to C:/dos/paths
9936 # for these hosts.
9937 case $host_os in
9938 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9939 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9940 esac
9941 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9942 else
9943 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9944 fi
9945 library_names_spec=
9946 libname_spec='lib$name'
9947 soname_spec=
9948 shrext_cmds=".so"
9949 postinstall_cmds=
9950 postuninstall_cmds=
9951 finish_cmds=
9952 finish_eval=
9953 shlibpath_var=
9954 shlibpath_overrides_runpath=unknown
9955 version_type=none
9956 dynamic_linker="$host_os ld.so"
9957 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9958 need_lib_prefix=unknown
9959 hardcode_into_libs=no
9960
9961 # when you set need_version to no, make sure it does not cause -set_version
9962 # flags to be left without arguments
9963 need_version=unknown
9964
9965 case $host_os in
9966 aix3*)
9967 version_type=linux
9968 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9969 shlibpath_var=LIBPATH
9970
9971 # AIX 3 has no versioning support, so we append a major version to the name.
9972 soname_spec='${libname}${release}${shared_ext}$major'
9973 ;;
9974
9975 aix[4-9]*)
9976 version_type=linux
9977 need_lib_prefix=no
9978 need_version=no
9979 hardcode_into_libs=yes
9980 if test "$host_cpu" = ia64; then
9981 # AIX 5 supports IA64
9982 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9983 shlibpath_var=LD_LIBRARY_PATH
9984 else
9985 # With GCC up to 2.95.x, collect2 would create an import file
9986 # for dependence libraries. The import file would start with
9987 # the line `#! .'. This would cause the generated library to
9988 # depend on `.', always an invalid library. This was fixed in
9989 # development snapshots of GCC prior to 3.0.
9990 case $host_os in
9991 aix4 | aix4.[01] | aix4.[01].*)
9992 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9993 echo ' yes '
9994 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9995 :
9996 else
9997 can_build_shared=no
9998 fi
9999 ;;
10000 esac
10001 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10002 # soname into executable. Probably we can add versioning support to
10003 # collect2, so additional links can be useful in future.
10004 if test "$aix_use_runtimelinking" = yes; then
10005 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10006 # instead of lib<name>.a to let people know that these are not
10007 # typical AIX shared libraries.
10008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10009 else
10010 # We preserve .a as extension for shared libraries through AIX4.2
10011 # and later when we are not doing run time linking.
10012 library_names_spec='${libname}${release}.a $libname.a'
10013 soname_spec='${libname}${release}${shared_ext}$major'
10014 fi
10015 shlibpath_var=LIBPATH
10016 fi
10017 ;;
10018
10019 amigaos*)
10020 case $host_cpu in
10021 powerpc)
10022 # Since July 2007 AmigaOS4 officially supports .so libraries.
10023 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10025 ;;
10026 m68k)
10027 library_names_spec='$libname.ixlibrary $libname.a'
10028 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10029 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'
10030 ;;
10031 esac
10032 ;;
10033
10034 beos*)
10035 library_names_spec='${libname}${shared_ext}'
10036 dynamic_linker="$host_os ld.so"
10037 shlibpath_var=LIBRARY_PATH
10038 ;;
10039
10040 bsdi[45]*)
10041 version_type=linux
10042 need_version=no
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10044 soname_spec='${libname}${release}${shared_ext}$major'
10045 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10046 shlibpath_var=LD_LIBRARY_PATH
10047 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10048 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10049 # the default ld.so.conf also contains /usr/contrib/lib and
10050 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10051 # libtool to hard-code these into programs
10052 ;;
10053
10054 cygwin* | mingw* | pw32* | cegcc*)
10055 version_type=windows
10056 shrext_cmds=".dll"
10057 need_version=no
10058 need_lib_prefix=no
10059
10060 case $GCC,$cc_basename in
10061 yes,*)
10062 # gcc
10063 library_names_spec='$libname.dll.a'
10064 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10065 postinstall_cmds='base_file=`basename \${file}`~
10066 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10067 dldir=$destdir/`dirname \$dlpath`~
10068 test -d \$dldir || mkdir -p \$dldir~
10069 $install_prog $dir/$dlname \$dldir/$dlname~
10070 chmod a+x \$dldir/$dlname~
10071 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10072 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10073 fi'
10074 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10075 dlpath=$dir/\$dldll~
10076 $RM \$dlpath'
10077 shlibpath_overrides_runpath=yes
10078
10079 case $host_os in
10080 cygwin*)
10081 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10082 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10083
10084 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10085 ;;
10086 mingw* | cegcc*)
10087 # MinGW DLLs use traditional 'lib' prefix
10088 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10089 ;;
10090 pw32*)
10091 # pw32 DLLs use 'pw' prefix rather than 'lib'
10092 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10093 ;;
10094 esac
10095 dynamic_linker='Win32 ld.exe'
10096 ;;
10097
10098 *,cl*)
10099 # Native MSVC
10100 libname_spec='$name'
10101 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10102 library_names_spec='${libname}.dll.lib'
10103
10104 case $build_os in
10105 mingw*)
10106 sys_lib_search_path_spec=
10107 lt_save_ifs=$IFS
10108 IFS=';'
10109 for lt_path in $LIB
10110 do
10111 IFS=$lt_save_ifs
10112 # Let DOS variable expansion print the short 8.3 style file name.
10113 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10114 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10115 done
10116 IFS=$lt_save_ifs
10117 # Convert to MSYS style.
10118 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10119 ;;
10120 cygwin*)
10121 # Convert to unix form, then to dos form, then back to unix form
10122 # but this time dos style (no spaces!) so that the unix form looks
10123 # like /cygdrive/c/PROGRA~1:/cygdr...
10124 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10125 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10126 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10127 ;;
10128 *)
10129 sys_lib_search_path_spec="$LIB"
10130 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10131 # It is most probably a Windows format PATH.
10132 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10133 else
10134 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10135 fi
10136 # FIXME: find the short name or the path components, as spaces are
10137 # common. (e.g. "Program Files" -> "PROGRA~1")
10138 ;;
10139 esac
10140
10141 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10142 postinstall_cmds='base_file=`basename \${file}`~
10143 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10144 dldir=$destdir/`dirname \$dlpath`~
10145 test -d \$dldir || mkdir -p \$dldir~
10146 $install_prog $dir/$dlname \$dldir/$dlname'
10147 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10148 dlpath=$dir/\$dldll~
10149 $RM \$dlpath'
10150 shlibpath_overrides_runpath=yes
10151 dynamic_linker='Win32 link.exe'
10152 ;;
10153
10154 *)
10155 # Assume MSVC wrapper
10156 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10157 dynamic_linker='Win32 ld.exe'
10158 ;;
10159 esac
10160 # FIXME: first we should search . and the directory the executable is in
10161 shlibpath_var=PATH
10162 ;;
10163
10164 darwin* | rhapsody*)
10165 dynamic_linker="$host_os dyld"
10166 version_type=darwin
10167 need_lib_prefix=no
10168 need_version=no
10169 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10170 soname_spec='${libname}${release}${major}$shared_ext'
10171 shlibpath_overrides_runpath=yes
10172 shlibpath_var=DYLD_LIBRARY_PATH
10173 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10174
10175 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10176 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10177 ;;
10178
10179 dgux*)
10180 version_type=linux
10181 need_lib_prefix=no
10182 need_version=no
10183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10184 soname_spec='${libname}${release}${shared_ext}$major'
10185 shlibpath_var=LD_LIBRARY_PATH
10186 ;;
10187
10188 freebsd1*)
10189 dynamic_linker=no
10190 ;;
10191
10192 freebsd* | dragonfly*)
10193 # DragonFly does not have aout. When/if they implement a new
10194 # versioning mechanism, adjust this.
10195 if test -x /usr/bin/objformat; then
10196 objformat=`/usr/bin/objformat`
10197 else
10198 case $host_os in
10199 freebsd[123]*) objformat=aout ;;
10200 *) objformat=elf ;;
10201 esac
10202 fi
10203 version_type=freebsd-$objformat
10204 case $version_type in
10205 freebsd-elf*)
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10207 need_version=no
10208 need_lib_prefix=no
10209 ;;
10210 freebsd-*)
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10212 need_version=yes
10213 ;;
10214 esac
10215 shlibpath_var=LD_LIBRARY_PATH
10216 case $host_os in
10217 freebsd2*)
10218 shlibpath_overrides_runpath=yes
10219 ;;
10220 freebsd3.[01]* | freebsdelf3.[01]*)
10221 shlibpath_overrides_runpath=yes
10222 hardcode_into_libs=yes
10223 ;;
10224 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10225 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10226 shlibpath_overrides_runpath=no
10227 hardcode_into_libs=yes
10228 ;;
10229 *) # from 4.6 on, and DragonFly
10230 shlibpath_overrides_runpath=yes
10231 hardcode_into_libs=yes
10232 ;;
10233 esac
10234 ;;
10235
10236 gnu*)
10237 version_type=linux
10238 need_lib_prefix=no
10239 need_version=no
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10241 soname_spec='${libname}${release}${shared_ext}$major'
10242 shlibpath_var=LD_LIBRARY_PATH
10243 hardcode_into_libs=yes
10244 ;;
10245
10246 haiku*)
10247 version_type=linux
10248 need_lib_prefix=no
10249 need_version=no
10250 dynamic_linker="$host_os runtime_loader"
10251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10252 soname_spec='${libname}${release}${shared_ext}$major'
10253 shlibpath_var=LIBRARY_PATH
10254 shlibpath_overrides_runpath=yes
10255 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10256 hardcode_into_libs=yes
10257 ;;
10258
10259 hpux9* | hpux10* | hpux11*)
10260 # Give a soname corresponding to the major version so that dld.sl refuses to
10261 # link against other versions.
10262 version_type=sunos
10263 need_lib_prefix=no
10264 need_version=no
10265 case $host_cpu in
10266 ia64*)
10267 shrext_cmds='.so'
10268 hardcode_into_libs=yes
10269 dynamic_linker="$host_os dld.so"
10270 shlibpath_var=LD_LIBRARY_PATH
10271 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10273 soname_spec='${libname}${release}${shared_ext}$major'
10274 if test "X$HPUX_IA64_MODE" = X32; then
10275 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10276 else
10277 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10278 fi
10279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10280 ;;
10281 hppa*64*)
10282 shrext_cmds='.sl'
10283 hardcode_into_libs=yes
10284 dynamic_linker="$host_os dld.sl"
10285 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10286 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10290 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10291 ;;
10292 *)
10293 shrext_cmds='.sl'
10294 dynamic_linker="$host_os dld.sl"
10295 shlibpath_var=SHLIB_PATH
10296 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10298 soname_spec='${libname}${release}${shared_ext}$major'
10299 ;;
10300 esac
10301 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10302 postinstall_cmds='chmod 555 $lib'
10303 # or fails outright, so override atomically:
10304 install_override_mode=555
10305 ;;
10306
10307 interix[3-9]*)
10308 version_type=linux
10309 need_lib_prefix=no
10310 need_version=no
10311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10312 soname_spec='${libname}${release}${shared_ext}$major'
10313 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10314 shlibpath_var=LD_LIBRARY_PATH
10315 shlibpath_overrides_runpath=no
10316 hardcode_into_libs=yes
10317 ;;
10318
10319 irix5* | irix6* | nonstopux*)
10320 case $host_os in
10321 nonstopux*) version_type=nonstopux ;;
10322 *)
10323 if test "$lt_cv_prog_gnu_ld" = yes; then
10324 version_type=linux
10325 else
10326 version_type=irix
10327 fi ;;
10328 esac
10329 need_lib_prefix=no
10330 need_version=no
10331 soname_spec='${libname}${release}${shared_ext}$major'
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10333 case $host_os in
10334 irix5* | nonstopux*)
10335 libsuff= shlibsuff=
10336 ;;
10337 *)
10338 case $LD in # libtool.m4 will add one of these switches to LD
10339 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10340 libsuff= shlibsuff= libmagic=32-bit;;
10341 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10342 libsuff=32 shlibsuff=N32 libmagic=N32;;
10343 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10344 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10345 *) libsuff= shlibsuff= libmagic=never-match;;
10346 esac
10347 ;;
10348 esac
10349 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10350 shlibpath_overrides_runpath=no
10351 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10352 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10353 hardcode_into_libs=yes
10354 ;;
10355
10356 # No shared lib support for Linux oldld, aout, or coff.
10357 linux*oldld* | linux*aout* | linux*coff*)
10358 dynamic_linker=no
10359 ;;
10360
10361 # This must be Linux ELF.
10362 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10363 version_type=linux
10364 need_lib_prefix=no
10365 need_version=no
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367 soname_spec='${libname}${release}${shared_ext}$major'
10368 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10369 shlibpath_var=LD_LIBRARY_PATH
10370 shlibpath_overrides_runpath=no
10371
10372 # Some binutils ld are patched to set DT_RUNPATH
10373 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10374 $as_echo_n "(cached) " >&6
10375 else
10376 lt_cv_shlibpath_overrides_runpath=no
10377 save_LDFLAGS=$LDFLAGS
10378 save_libdir=$libdir
10379 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10380 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10382 /* end confdefs.h. */
10383
10384 int
10385 main ()
10386 {
10387
10388 ;
10389 return 0;
10390 }
10391 _ACEOF
10392 if ac_fn_c_try_link "$LINENO"; then :
10393 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10394 lt_cv_shlibpath_overrides_runpath=yes
10395 fi
10396 fi
10397 rm -f core conftest.err conftest.$ac_objext \
10398 conftest$ac_exeext conftest.$ac_ext
10399 LDFLAGS=$save_LDFLAGS
10400 libdir=$save_libdir
10401
10402 fi
10403
10404 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10405
10406 # This implies no fast_install, which is unacceptable.
10407 # Some rework will be needed to allow for fast_install
10408 # before this can be enabled.
10409 hardcode_into_libs=yes
10410
10411 # Append ld.so.conf contents to the search path
10412 if test -f /etc/ld.so.conf; then
10413 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' ' '`
10414 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10415 fi
10416
10417 # We used to test for /lib/ld.so.1 and disable shared libraries on
10418 # powerpc, because MkLinux only supported shared libraries with the
10419 # GNU dynamic linker. Since this was broken with cross compilers,
10420 # most powerpc-linux boxes support dynamic linking these days and
10421 # people can always --disable-shared, the test was removed, and we
10422 # assume the GNU/Linux dynamic linker is in use.
10423 dynamic_linker='GNU/Linux ld.so'
10424 ;;
10425
10426 netbsd*)
10427 version_type=sunos
10428 need_lib_prefix=no
10429 need_version=no
10430 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10433 dynamic_linker='NetBSD (a.out) ld.so'
10434 else
10435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10436 soname_spec='${libname}${release}${shared_ext}$major'
10437 dynamic_linker='NetBSD ld.elf_so'
10438 fi
10439 shlibpath_var=LD_LIBRARY_PATH
10440 shlibpath_overrides_runpath=yes
10441 hardcode_into_libs=yes
10442 ;;
10443
10444 newsos6)
10445 version_type=linux
10446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10447 shlibpath_var=LD_LIBRARY_PATH
10448 shlibpath_overrides_runpath=yes
10449 ;;
10450
10451 *nto* | *qnx*)
10452 version_type=qnx
10453 need_lib_prefix=no
10454 need_version=no
10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10456 soname_spec='${libname}${release}${shared_ext}$major'
10457 shlibpath_var=LD_LIBRARY_PATH
10458 shlibpath_overrides_runpath=no
10459 hardcode_into_libs=yes
10460 dynamic_linker='ldqnx.so'
10461 ;;
10462
10463 openbsd*)
10464 version_type=sunos
10465 sys_lib_dlsearch_path_spec="/usr/lib"
10466 need_lib_prefix=no
10467 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10468 case $host_os in
10469 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10470 *) need_version=no ;;
10471 esac
10472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10474 shlibpath_var=LD_LIBRARY_PATH
10475 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10476 case $host_os in
10477 openbsd2.[89] | openbsd2.[89].*)
10478 shlibpath_overrides_runpath=no
10479 ;;
10480 *)
10481 shlibpath_overrides_runpath=yes
10482 ;;
10483 esac
10484 else
10485 shlibpath_overrides_runpath=yes
10486 fi
10487 ;;
10488
10489 os2*)
10490 libname_spec='$name'
10491 shrext_cmds=".dll"
10492 need_lib_prefix=no
10493 library_names_spec='$libname${shared_ext} $libname.a'
10494 dynamic_linker='OS/2 ld.exe'
10495 shlibpath_var=LIBPATH
10496 ;;
10497
10498 osf3* | osf4* | osf5*)
10499 version_type=osf
10500 need_lib_prefix=no
10501 need_version=no
10502 soname_spec='${libname}${release}${shared_ext}$major'
10503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10504 shlibpath_var=LD_LIBRARY_PATH
10505 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10506 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10507 ;;
10508
10509 rdos*)
10510 dynamic_linker=no
10511 ;;
10512
10513 solaris*)
10514 version_type=linux
10515 need_lib_prefix=no
10516 need_version=no
10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10518 soname_spec='${libname}${release}${shared_ext}$major'
10519 shlibpath_var=LD_LIBRARY_PATH
10520 shlibpath_overrides_runpath=yes
10521 hardcode_into_libs=yes
10522 # ldd complains unless libraries are executable
10523 postinstall_cmds='chmod +x $lib'
10524 ;;
10525
10526 sunos4*)
10527 version_type=sunos
10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10529 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10530 shlibpath_var=LD_LIBRARY_PATH
10531 shlibpath_overrides_runpath=yes
10532 if test "$with_gnu_ld" = yes; then
10533 need_lib_prefix=no
10534 fi
10535 need_version=yes
10536 ;;
10537
10538 sysv4 | sysv4.3*)
10539 version_type=linux
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10541 soname_spec='${libname}${release}${shared_ext}$major'
10542 shlibpath_var=LD_LIBRARY_PATH
10543 case $host_vendor in
10544 sni)
10545 shlibpath_overrides_runpath=no
10546 need_lib_prefix=no
10547 runpath_var=LD_RUN_PATH
10548 ;;
10549 siemens)
10550 need_lib_prefix=no
10551 ;;
10552 motorola)
10553 need_lib_prefix=no
10554 need_version=no
10555 shlibpath_overrides_runpath=no
10556 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10557 ;;
10558 esac
10559 ;;
10560
10561 sysv4*MP*)
10562 if test -d /usr/nec ;then
10563 version_type=linux
10564 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10565 soname_spec='$libname${shared_ext}.$major'
10566 shlibpath_var=LD_LIBRARY_PATH
10567 fi
10568 ;;
10569
10570 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10571 version_type=freebsd-elf
10572 need_lib_prefix=no
10573 need_version=no
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10575 soname_spec='${libname}${release}${shared_ext}$major'
10576 shlibpath_var=LD_LIBRARY_PATH
10577 shlibpath_overrides_runpath=yes
10578 hardcode_into_libs=yes
10579 if test "$with_gnu_ld" = yes; then
10580 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10581 else
10582 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10583 case $host_os in
10584 sco3.2v5*)
10585 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10586 ;;
10587 esac
10588 fi
10589 sys_lib_dlsearch_path_spec='/usr/lib'
10590 ;;
10591
10592 tpf*)
10593 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10594 version_type=linux
10595 need_lib_prefix=no
10596 need_version=no
10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10598 shlibpath_var=LD_LIBRARY_PATH
10599 shlibpath_overrides_runpath=no
10600 hardcode_into_libs=yes
10601 ;;
10602
10603 uts4*)
10604 version_type=linux
10605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10606 soname_spec='${libname}${release}${shared_ext}$major'
10607 shlibpath_var=LD_LIBRARY_PATH
10608 ;;
10609
10610 *)
10611 dynamic_linker=no
10612 ;;
10613 esac
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10615 $as_echo "$dynamic_linker" >&6; }
10616 test "$dynamic_linker" = no && can_build_shared=no
10617
10618 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10619 if test "$GCC" = yes; then
10620 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10621 fi
10622
10623 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10624 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10625 fi
10626 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10627 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10628 fi
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10722 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10723 hardcode_action=
10724 if test -n "$hardcode_libdir_flag_spec" ||
10725 test -n "$runpath_var" ||
10726 test "X$hardcode_automatic" = "Xyes" ; then
10727
10728 # We can hardcode non-existent directories.
10729 if test "$hardcode_direct" != no &&
10730 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10731 # have to relink, otherwise we might link with an installed library
10732 # when we should be linking with a yet-to-be-installed one
10733 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10734 test "$hardcode_minus_L" != no; then
10735 # Linking always hardcodes the temporary library directory.
10736 hardcode_action=relink
10737 else
10738 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10739 hardcode_action=immediate
10740 fi
10741 else
10742 # We cannot hardcode anything, or else we can only hardcode existing
10743 # directories.
10744 hardcode_action=unsupported
10745 fi
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10747 $as_echo "$hardcode_action" >&6; }
10748
10749 if test "$hardcode_action" = relink ||
10750 test "$inherit_rpath" = yes; then
10751 # Fast installation is not supported
10752 enable_fast_install=no
10753 elif test "$shlibpath_overrides_runpath" = yes ||
10754 test "$enable_shared" = no; then
10755 # Fast installation is not necessary
10756 enable_fast_install=needless
10757 fi
10758
10759
10760
10761
10762
10763
10764 if test "x$enable_dlopen" != xyes; then
10765 enable_dlopen=unknown
10766 enable_dlopen_self=unknown
10767 enable_dlopen_self_static=unknown
10768 else
10769 lt_cv_dlopen=no
10770 lt_cv_dlopen_libs=
10771
10772 case $host_os in
10773 beos*)
10774 lt_cv_dlopen="load_add_on"
10775 lt_cv_dlopen_libs=
10776 lt_cv_dlopen_self=yes
10777 ;;
10778
10779 mingw* | pw32* | cegcc*)
10780 lt_cv_dlopen="LoadLibrary"
10781 lt_cv_dlopen_libs=
10782 ;;
10783
10784 cygwin*)
10785 lt_cv_dlopen="dlopen"
10786 lt_cv_dlopen_libs=
10787 ;;
10788
10789 darwin*)
10790 # if libdl is installed we need to link against it
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10792 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10793 if ${ac_cv_lib_dl_dlopen+:} false; then :
10794 $as_echo_n "(cached) " >&6
10795 else
10796 ac_check_lib_save_LIBS=$LIBS
10797 LIBS="-ldl $LIBS"
10798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10799 /* end confdefs.h. */
10800
10801 /* Override any GCC internal prototype to avoid an error.
10802 Use char because int might match the return type of a GCC
10803 builtin and then its argument prototype would still apply. */
10804 #ifdef __cplusplus
10805 extern "C"
10806 #endif
10807 char dlopen ();
10808 int
10809 main ()
10810 {
10811 return dlopen ();
10812 ;
10813 return 0;
10814 }
10815 _ACEOF
10816 if ac_fn_c_try_link "$LINENO"; then :
10817 ac_cv_lib_dl_dlopen=yes
10818 else
10819 ac_cv_lib_dl_dlopen=no
10820 fi
10821 rm -f core conftest.err conftest.$ac_objext \
10822 conftest$ac_exeext conftest.$ac_ext
10823 LIBS=$ac_check_lib_save_LIBS
10824 fi
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10826 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10827 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10828 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10829 else
10830
10831 lt_cv_dlopen="dyld"
10832 lt_cv_dlopen_libs=
10833 lt_cv_dlopen_self=yes
10834
10835 fi
10836
10837 ;;
10838
10839 *)
10840 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10841 if test "x$ac_cv_func_shl_load" = xyes; then :
10842 lt_cv_dlopen="shl_load"
10843 else
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10845 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10846 if ${ac_cv_lib_dld_shl_load+:} false; then :
10847 $as_echo_n "(cached) " >&6
10848 else
10849 ac_check_lib_save_LIBS=$LIBS
10850 LIBS="-ldld $LIBS"
10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852 /* end confdefs.h. */
10853
10854 /* Override any GCC internal prototype to avoid an error.
10855 Use char because int might match the return type of a GCC
10856 builtin and then its argument prototype would still apply. */
10857 #ifdef __cplusplus
10858 extern "C"
10859 #endif
10860 char shl_load ();
10861 int
10862 main ()
10863 {
10864 return shl_load ();
10865 ;
10866 return 0;
10867 }
10868 _ACEOF
10869 if ac_fn_c_try_link "$LINENO"; then :
10870 ac_cv_lib_dld_shl_load=yes
10871 else
10872 ac_cv_lib_dld_shl_load=no
10873 fi
10874 rm -f core conftest.err conftest.$ac_objext \
10875 conftest$ac_exeext conftest.$ac_ext
10876 LIBS=$ac_check_lib_save_LIBS
10877 fi
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10879 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10880 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10881 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10882 else
10883 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10884 if test "x$ac_cv_func_dlopen" = xyes; then :
10885 lt_cv_dlopen="dlopen"
10886 else
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10888 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10889 if ${ac_cv_lib_dl_dlopen+:} false; then :
10890 $as_echo_n "(cached) " >&6
10891 else
10892 ac_check_lib_save_LIBS=$LIBS
10893 LIBS="-ldl $LIBS"
10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h. */
10896
10897 /* Override any GCC internal prototype to avoid an error.
10898 Use char because int might match the return type of a GCC
10899 builtin and then its argument prototype would still apply. */
10900 #ifdef __cplusplus
10901 extern "C"
10902 #endif
10903 char dlopen ();
10904 int
10905 main ()
10906 {
10907 return dlopen ();
10908 ;
10909 return 0;
10910 }
10911 _ACEOF
10912 if ac_fn_c_try_link "$LINENO"; then :
10913 ac_cv_lib_dl_dlopen=yes
10914 else
10915 ac_cv_lib_dl_dlopen=no
10916 fi
10917 rm -f core conftest.err conftest.$ac_objext \
10918 conftest$ac_exeext conftest.$ac_ext
10919 LIBS=$ac_check_lib_save_LIBS
10920 fi
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10922 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10923 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10924 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10925 else
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10927 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10928 if ${ac_cv_lib_svld_dlopen+:} false; then :
10929 $as_echo_n "(cached) " >&6
10930 else
10931 ac_check_lib_save_LIBS=$LIBS
10932 LIBS="-lsvld $LIBS"
10933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10934 /* end confdefs.h. */
10935
10936 /* Override any GCC internal prototype to avoid an error.
10937 Use char because int might match the return type of a GCC
10938 builtin and then its argument prototype would still apply. */
10939 #ifdef __cplusplus
10940 extern "C"
10941 #endif
10942 char dlopen ();
10943 int
10944 main ()
10945 {
10946 return dlopen ();
10947 ;
10948 return 0;
10949 }
10950 _ACEOF
10951 if ac_fn_c_try_link "$LINENO"; then :
10952 ac_cv_lib_svld_dlopen=yes
10953 else
10954 ac_cv_lib_svld_dlopen=no
10955 fi
10956 rm -f core conftest.err conftest.$ac_objext \
10957 conftest$ac_exeext conftest.$ac_ext
10958 LIBS=$ac_check_lib_save_LIBS
10959 fi
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10961 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10962 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10963 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10964 else
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10966 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10967 if ${ac_cv_lib_dld_dld_link+:} false; then :
10968 $as_echo_n "(cached) " >&6
10969 else
10970 ac_check_lib_save_LIBS=$LIBS
10971 LIBS="-ldld $LIBS"
10972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10973 /* end confdefs.h. */
10974
10975 /* Override any GCC internal prototype to avoid an error.
10976 Use char because int might match the return type of a GCC
10977 builtin and then its argument prototype would still apply. */
10978 #ifdef __cplusplus
10979 extern "C"
10980 #endif
10981 char dld_link ();
10982 int
10983 main ()
10984 {
10985 return dld_link ();
10986 ;
10987 return 0;
10988 }
10989 _ACEOF
10990 if ac_fn_c_try_link "$LINENO"; then :
10991 ac_cv_lib_dld_dld_link=yes
10992 else
10993 ac_cv_lib_dld_dld_link=no
10994 fi
10995 rm -f core conftest.err conftest.$ac_objext \
10996 conftest$ac_exeext conftest.$ac_ext
10997 LIBS=$ac_check_lib_save_LIBS
10998 fi
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11000 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11001 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11002 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11003 fi
11004
11005
11006 fi
11007
11008
11009 fi
11010
11011
11012 fi
11013
11014
11015 fi
11016
11017
11018 fi
11019
11020 ;;
11021 esac
11022
11023 if test "x$lt_cv_dlopen" != xno; then
11024 enable_dlopen=yes
11025 else
11026 enable_dlopen=no
11027 fi
11028
11029 case $lt_cv_dlopen in
11030 dlopen)
11031 save_CPPFLAGS="$CPPFLAGS"
11032 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11033
11034 save_LDFLAGS="$LDFLAGS"
11035 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11036
11037 save_LIBS="$LIBS"
11038 LIBS="$lt_cv_dlopen_libs $LIBS"
11039
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11041 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11042 if ${lt_cv_dlopen_self+:} false; then :
11043 $as_echo_n "(cached) " >&6
11044 else
11045 if test "$cross_compiling" = yes; then :
11046 lt_cv_dlopen_self=cross
11047 else
11048 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11049 lt_status=$lt_dlunknown
11050 cat > conftest.$ac_ext <<_LT_EOF
11051 #line $LINENO "configure"
11052 #include "confdefs.h"
11053
11054 #if HAVE_DLFCN_H
11055 #include <dlfcn.h>
11056 #endif
11057
11058 #include <stdio.h>
11059
11060 #ifdef RTLD_GLOBAL
11061 # define LT_DLGLOBAL RTLD_GLOBAL
11062 #else
11063 # ifdef DL_GLOBAL
11064 # define LT_DLGLOBAL DL_GLOBAL
11065 # else
11066 # define LT_DLGLOBAL 0
11067 # endif
11068 #endif
11069
11070 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11071 find out it does not work in some platform. */
11072 #ifndef LT_DLLAZY_OR_NOW
11073 # ifdef RTLD_LAZY
11074 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11075 # else
11076 # ifdef DL_LAZY
11077 # define LT_DLLAZY_OR_NOW DL_LAZY
11078 # else
11079 # ifdef RTLD_NOW
11080 # define LT_DLLAZY_OR_NOW RTLD_NOW
11081 # else
11082 # ifdef DL_NOW
11083 # define LT_DLLAZY_OR_NOW DL_NOW
11084 # else
11085 # define LT_DLLAZY_OR_NOW 0
11086 # endif
11087 # endif
11088 # endif
11089 # endif
11090 #endif
11091
11092 /* When -fvisbility=hidden is used, assume the code has been annotated
11093 correspondingly for the symbols needed. */
11094 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11095 int fnord () __attribute__((visibility("default")));
11096 #endif
11097
11098 int fnord () { return 42; }
11099 int main ()
11100 {
11101 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11102 int status = $lt_dlunknown;
11103
11104 if (self)
11105 {
11106 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11107 else
11108 {
11109 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11110 else puts (dlerror ());
11111 }
11112 /* dlclose (self); */
11113 }
11114 else
11115 puts (dlerror ());
11116
11117 return status;
11118 }
11119 _LT_EOF
11120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11121 (eval $ac_link) 2>&5
11122 ac_status=$?
11123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11124 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11125 (./conftest; exit; ) >&5 2>/dev/null
11126 lt_status=$?
11127 case x$lt_status in
11128 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11129 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11130 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11131 esac
11132 else :
11133 # compilation failed
11134 lt_cv_dlopen_self=no
11135 fi
11136 fi
11137 rm -fr conftest*
11138
11139
11140 fi
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11142 $as_echo "$lt_cv_dlopen_self" >&6; }
11143
11144 if test "x$lt_cv_dlopen_self" = xyes; then
11145 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11147 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11148 if ${lt_cv_dlopen_self_static+:} false; then :
11149 $as_echo_n "(cached) " >&6
11150 else
11151 if test "$cross_compiling" = yes; then :
11152 lt_cv_dlopen_self_static=cross
11153 else
11154 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11155 lt_status=$lt_dlunknown
11156 cat > conftest.$ac_ext <<_LT_EOF
11157 #line $LINENO "configure"
11158 #include "confdefs.h"
11159
11160 #if HAVE_DLFCN_H
11161 #include <dlfcn.h>
11162 #endif
11163
11164 #include <stdio.h>
11165
11166 #ifdef RTLD_GLOBAL
11167 # define LT_DLGLOBAL RTLD_GLOBAL
11168 #else
11169 # ifdef DL_GLOBAL
11170 # define LT_DLGLOBAL DL_GLOBAL
11171 # else
11172 # define LT_DLGLOBAL 0
11173 # endif
11174 #endif
11175
11176 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11177 find out it does not work in some platform. */
11178 #ifndef LT_DLLAZY_OR_NOW
11179 # ifdef RTLD_LAZY
11180 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11181 # else
11182 # ifdef DL_LAZY
11183 # define LT_DLLAZY_OR_NOW DL_LAZY
11184 # else
11185 # ifdef RTLD_NOW
11186 # define LT_DLLAZY_OR_NOW RTLD_NOW
11187 # else
11188 # ifdef DL_NOW
11189 # define LT_DLLAZY_OR_NOW DL_NOW
11190 # else
11191 # define LT_DLLAZY_OR_NOW 0
11192 # endif
11193 # endif
11194 # endif
11195 # endif
11196 #endif
11197
11198 /* When -fvisbility=hidden is used, assume the code has been annotated
11199 correspondingly for the symbols needed. */
11200 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11201 int fnord () __attribute__((visibility("default")));
11202 #endif
11203
11204 int fnord () { return 42; }
11205 int main ()
11206 {
11207 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11208 int status = $lt_dlunknown;
11209
11210 if (self)
11211 {
11212 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11213 else
11214 {
11215 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11216 else puts (dlerror ());
11217 }
11218 /* dlclose (self); */
11219 }
11220 else
11221 puts (dlerror ());
11222
11223 return status;
11224 }
11225 _LT_EOF
11226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11227 (eval $ac_link) 2>&5
11228 ac_status=$?
11229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11230 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11231 (./conftest; exit; ) >&5 2>/dev/null
11232 lt_status=$?
11233 case x$lt_status in
11234 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11235 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11236 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11237 esac
11238 else :
11239 # compilation failed
11240 lt_cv_dlopen_self_static=no
11241 fi
11242 fi
11243 rm -fr conftest*
11244
11245
11246 fi
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11248 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11249 fi
11250
11251 CPPFLAGS="$save_CPPFLAGS"
11252 LDFLAGS="$save_LDFLAGS"
11253 LIBS="$save_LIBS"
11254 ;;
11255 esac
11256
11257 case $lt_cv_dlopen_self in
11258 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11259 *) enable_dlopen_self=unknown ;;
11260 esac
11261
11262 case $lt_cv_dlopen_self_static in
11263 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11264 *) enable_dlopen_self_static=unknown ;;
11265 esac
11266 fi
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284 striplib=
11285 old_striplib=
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11287 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11288 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11289 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11290 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11292 $as_echo "yes" >&6; }
11293 else
11294 # FIXME - insert some real tests, host_os isn't really good enough
11295 case $host_os in
11296 darwin*)
11297 if test -n "$STRIP" ; then
11298 striplib="$STRIP -x"
11299 old_striplib="$STRIP -S"
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11301 $as_echo "yes" >&6; }
11302 else
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11304 $as_echo "no" >&6; }
11305 fi
11306 ;;
11307 *)
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309 $as_echo "no" >&6; }
11310 ;;
11311 esac
11312 fi
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325 # Report which library types will actually be built
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11327 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11329 $as_echo "$can_build_shared" >&6; }
11330
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11332 $as_echo_n "checking whether to build shared libraries... " >&6; }
11333 test "$can_build_shared" = "no" && enable_shared=no
11334
11335 # On AIX, shared libraries and static libraries use the same namespace, and
11336 # are all built from PIC.
11337 case $host_os in
11338 aix3*)
11339 test "$enable_shared" = yes && enable_static=no
11340 if test -n "$RANLIB"; then
11341 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11342 postinstall_cmds='$RANLIB $lib'
11343 fi
11344 ;;
11345
11346 aix[4-9]*)
11347 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11348 test "$enable_shared" = yes && enable_static=no
11349 fi
11350 ;;
11351 esac
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11353 $as_echo "$enable_shared" >&6; }
11354
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11356 $as_echo_n "checking whether to build static libraries... " >&6; }
11357 # Make sure either enable_shared or enable_static is yes.
11358 test "$enable_shared" = yes || enable_static=yes
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11360 $as_echo "$enable_static" >&6; }
11361
11362
11363
11364
11365 fi
11366 ac_ext=c
11367 ac_cpp='$CPP $CPPFLAGS'
11368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11371
11372 CC="$lt_save_CC"
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386 ac_config_commands="$ac_config_commands libtool"
11387
11388
11389
11390
11391 # Only expand once:
11392
11393
11394
11395 enable_win32_dll=yes
11396
11397 case $host in
11398 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11399 if test -n "$ac_tool_prefix"; then
11400 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11401 set dummy ${ac_tool_prefix}as; ac_word=$2
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11403 $as_echo_n "checking for $ac_word... " >&6; }
11404 if ${ac_cv_prog_AS+:} false; then :
11405 $as_echo_n "(cached) " >&6
11406 else
11407 if test -n "$AS"; then
11408 ac_cv_prog_AS="$AS" # Let the user override the test.
11409 else
11410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11411 for as_dir in $PATH
11412 do
11413 IFS=$as_save_IFS
11414 test -z "$as_dir" && as_dir=.
11415 for ac_exec_ext in '' $ac_executable_extensions; do
11416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11417 ac_cv_prog_AS="${ac_tool_prefix}as"
11418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11419 break 2
11420 fi
11421 done
11422 done
11423 IFS=$as_save_IFS
11424
11425 fi
11426 fi
11427 AS=$ac_cv_prog_AS
11428 if test -n "$AS"; then
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11430 $as_echo "$AS" >&6; }
11431 else
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11433 $as_echo "no" >&6; }
11434 fi
11435
11436
11437 fi
11438 if test -z "$ac_cv_prog_AS"; then
11439 ac_ct_AS=$AS
11440 # Extract the first word of "as", so it can be a program name with args.
11441 set dummy as; ac_word=$2
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11443 $as_echo_n "checking for $ac_word... " >&6; }
11444 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11445 $as_echo_n "(cached) " >&6
11446 else
11447 if test -n "$ac_ct_AS"; then
11448 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11449 else
11450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11451 for as_dir in $PATH
11452 do
11453 IFS=$as_save_IFS
11454 test -z "$as_dir" && as_dir=.
11455 for ac_exec_ext in '' $ac_executable_extensions; do
11456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11457 ac_cv_prog_ac_ct_AS="as"
11458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11459 break 2
11460 fi
11461 done
11462 done
11463 IFS=$as_save_IFS
11464
11465 fi
11466 fi
11467 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11468 if test -n "$ac_ct_AS"; then
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11470 $as_echo "$ac_ct_AS" >&6; }
11471 else
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11473 $as_echo "no" >&6; }
11474 fi
11475
11476 if test "x$ac_ct_AS" = x; then
11477 AS="false"
11478 else
11479 case $cross_compiling:$ac_tool_warned in
11480 yes:)
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11483 ac_tool_warned=yes ;;
11484 esac
11485 AS=$ac_ct_AS
11486 fi
11487 else
11488 AS="$ac_cv_prog_AS"
11489 fi
11490
11491 if test -n "$ac_tool_prefix"; then
11492 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11493 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11495 $as_echo_n "checking for $ac_word... " >&6; }
11496 if ${ac_cv_prog_DLLTOOL+:} false; then :
11497 $as_echo_n "(cached) " >&6
11498 else
11499 if test -n "$DLLTOOL"; then
11500 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11501 else
11502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11503 for as_dir in $PATH
11504 do
11505 IFS=$as_save_IFS
11506 test -z "$as_dir" && as_dir=.
11507 for ac_exec_ext in '' $ac_executable_extensions; do
11508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11509 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11511 break 2
11512 fi
11513 done
11514 done
11515 IFS=$as_save_IFS
11516
11517 fi
11518 fi
11519 DLLTOOL=$ac_cv_prog_DLLTOOL
11520 if test -n "$DLLTOOL"; then
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11522 $as_echo "$DLLTOOL" >&6; }
11523 else
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525 $as_echo "no" >&6; }
11526 fi
11527
11528
11529 fi
11530 if test -z "$ac_cv_prog_DLLTOOL"; then
11531 ac_ct_DLLTOOL=$DLLTOOL
11532 # Extract the first word of "dlltool", so it can be a program name with args.
11533 set dummy dlltool; ac_word=$2
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11535 $as_echo_n "checking for $ac_word... " >&6; }
11536 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11537 $as_echo_n "(cached) " >&6
11538 else
11539 if test -n "$ac_ct_DLLTOOL"; then
11540 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11541 else
11542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11543 for as_dir in $PATH
11544 do
11545 IFS=$as_save_IFS
11546 test -z "$as_dir" && as_dir=.
11547 for ac_exec_ext in '' $ac_executable_extensions; do
11548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11549 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11551 break 2
11552 fi
11553 done
11554 done
11555 IFS=$as_save_IFS
11556
11557 fi
11558 fi
11559 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11560 if test -n "$ac_ct_DLLTOOL"; then
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11562 $as_echo "$ac_ct_DLLTOOL" >&6; }
11563 else
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565 $as_echo "no" >&6; }
11566 fi
11567
11568 if test "x$ac_ct_DLLTOOL" = x; then
11569 DLLTOOL="false"
11570 else
11571 case $cross_compiling:$ac_tool_warned in
11572 yes:)
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11575 ac_tool_warned=yes ;;
11576 esac
11577 DLLTOOL=$ac_ct_DLLTOOL
11578 fi
11579 else
11580 DLLTOOL="$ac_cv_prog_DLLTOOL"
11581 fi
11582
11583 if test -n "$ac_tool_prefix"; then
11584 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11585 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11587 $as_echo_n "checking for $ac_word... " >&6; }
11588 if ${ac_cv_prog_OBJDUMP+:} false; then :
11589 $as_echo_n "(cached) " >&6
11590 else
11591 if test -n "$OBJDUMP"; then
11592 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11593 else
11594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595 for as_dir in $PATH
11596 do
11597 IFS=$as_save_IFS
11598 test -z "$as_dir" && as_dir=.
11599 for ac_exec_ext in '' $ac_executable_extensions; do
11600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11601 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11603 break 2
11604 fi
11605 done
11606 done
11607 IFS=$as_save_IFS
11608
11609 fi
11610 fi
11611 OBJDUMP=$ac_cv_prog_OBJDUMP
11612 if test -n "$OBJDUMP"; then
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11614 $as_echo "$OBJDUMP" >&6; }
11615 else
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617 $as_echo "no" >&6; }
11618 fi
11619
11620
11621 fi
11622 if test -z "$ac_cv_prog_OBJDUMP"; then
11623 ac_ct_OBJDUMP=$OBJDUMP
11624 # Extract the first word of "objdump", so it can be a program name with args.
11625 set dummy objdump; ac_word=$2
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11627 $as_echo_n "checking for $ac_word... " >&6; }
11628 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11629 $as_echo_n "(cached) " >&6
11630 else
11631 if test -n "$ac_ct_OBJDUMP"; then
11632 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11633 else
11634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11635 for as_dir in $PATH
11636 do
11637 IFS=$as_save_IFS
11638 test -z "$as_dir" && as_dir=.
11639 for ac_exec_ext in '' $ac_executable_extensions; do
11640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11641 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11643 break 2
11644 fi
11645 done
11646 done
11647 IFS=$as_save_IFS
11648
11649 fi
11650 fi
11651 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11652 if test -n "$ac_ct_OBJDUMP"; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11654 $as_echo "$ac_ct_OBJDUMP" >&6; }
11655 else
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657 $as_echo "no" >&6; }
11658 fi
11659
11660 if test "x$ac_ct_OBJDUMP" = x; then
11661 OBJDUMP="false"
11662 else
11663 case $cross_compiling:$ac_tool_warned in
11664 yes:)
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11667 ac_tool_warned=yes ;;
11668 esac
11669 OBJDUMP=$ac_ct_OBJDUMP
11670 fi
11671 else
11672 OBJDUMP="$ac_cv_prog_OBJDUMP"
11673 fi
11674
11675 ;;
11676 esac
11677
11678 test -z "$AS" && AS=as
11679
11680
11681
11682
11683
11684 test -z "$DLLTOOL" && DLLTOOL=dlltool
11685
11686
11687 test -z "$OBJDUMP" && OBJDUMP=objdump
11688
11689
11690
11691
11692 #
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11694 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11695 if ${ac_cv_c_bigendian+:} false; then :
11696 $as_echo_n "(cached) " >&6
11697 else
11698 ac_cv_c_bigendian=unknown
11699 # See if we're dealing with a universal compiler.
11700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11701 /* end confdefs.h. */
11702 #ifndef __APPLE_CC__
11703 not a universal capable compiler
11704 #endif
11705 typedef int dummy;
11706
11707 _ACEOF
11708 if ac_fn_c_try_compile "$LINENO"; then :
11709
11710 # Check for potential -arch flags. It is not universal unless
11711 # there are at least two -arch flags with different values.
11712 ac_arch=
11713 ac_prev=
11714 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11715 if test -n "$ac_prev"; then
11716 case $ac_word in
11717 i?86 | x86_64 | ppc | ppc64)
11718 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11719 ac_arch=$ac_word
11720 else
11721 ac_cv_c_bigendian=universal
11722 break
11723 fi
11724 ;;
11725 esac
11726 ac_prev=
11727 elif test "x$ac_word" = "x-arch"; then
11728 ac_prev=arch
11729 fi
11730 done
11731 fi
11732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11733 if test $ac_cv_c_bigendian = unknown; then
11734 # See if sys/param.h defines the BYTE_ORDER macro.
11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11737 #include <sys/types.h>
11738 #include <sys/param.h>
11739
11740 int
11741 main ()
11742 {
11743 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11744 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11745 && LITTLE_ENDIAN)
11746 bogus endian macros
11747 #endif
11748
11749 ;
11750 return 0;
11751 }
11752 _ACEOF
11753 if ac_fn_c_try_compile "$LINENO"; then :
11754 # It does; now see whether it defined to BIG_ENDIAN or not.
11755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11756 /* end confdefs.h. */
11757 #include <sys/types.h>
11758 #include <sys/param.h>
11759
11760 int
11761 main ()
11762 {
11763 #if BYTE_ORDER != BIG_ENDIAN
11764 not big endian
11765 #endif
11766
11767 ;
11768 return 0;
11769 }
11770 _ACEOF
11771 if ac_fn_c_try_compile "$LINENO"; then :
11772 ac_cv_c_bigendian=yes
11773 else
11774 ac_cv_c_bigendian=no
11775 fi
11776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11777 fi
11778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11779 fi
11780 if test $ac_cv_c_bigendian = unknown; then
11781 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11783 /* end confdefs.h. */
11784 #include <limits.h>
11785
11786 int
11787 main ()
11788 {
11789 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11790 bogus endian macros
11791 #endif
11792
11793 ;
11794 return 0;
11795 }
11796 _ACEOF
11797 if ac_fn_c_try_compile "$LINENO"; then :
11798 # It does; now see whether it defined to _BIG_ENDIAN or not.
11799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11800 /* end confdefs.h. */
11801 #include <limits.h>
11802
11803 int
11804 main ()
11805 {
11806 #ifndef _BIG_ENDIAN
11807 not big endian
11808 #endif
11809
11810 ;
11811 return 0;
11812 }
11813 _ACEOF
11814 if ac_fn_c_try_compile "$LINENO"; then :
11815 ac_cv_c_bigendian=yes
11816 else
11817 ac_cv_c_bigendian=no
11818 fi
11819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11820 fi
11821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11822 fi
11823 if test $ac_cv_c_bigendian = unknown; then
11824 # Compile a test program.
11825 if test "$cross_compiling" = yes; then :
11826 # Try to guess by grepping values from an object file.
11827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11828 /* end confdefs.h. */
11829 short int ascii_mm[] =
11830 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11831 short int ascii_ii[] =
11832 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11833 int use_ascii (int i) {
11834 return ascii_mm[i] + ascii_ii[i];
11835 }
11836 short int ebcdic_ii[] =
11837 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11838 short int ebcdic_mm[] =
11839 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11840 int use_ebcdic (int i) {
11841 return ebcdic_mm[i] + ebcdic_ii[i];
11842 }
11843 extern int foo;
11844
11845 int
11846 main ()
11847 {
11848 return use_ascii (foo) == use_ebcdic (foo);
11849 ;
11850 return 0;
11851 }
11852 _ACEOF
11853 if ac_fn_c_try_compile "$LINENO"; then :
11854 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11855 ac_cv_c_bigendian=yes
11856 fi
11857 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11858 if test "$ac_cv_c_bigendian" = unknown; then
11859 ac_cv_c_bigendian=no
11860 else
11861 # finding both strings is unlikely to happen, but who knows?
11862 ac_cv_c_bigendian=unknown
11863 fi
11864 fi
11865 fi
11866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11867 else
11868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869 /* end confdefs.h. */
11870 $ac_includes_default
11871 int
11872 main ()
11873 {
11874
11875 /* Are we little or big endian? From Harbison&Steele. */
11876 union
11877 {
11878 long int l;
11879 char c[sizeof (long int)];
11880 } u;
11881 u.l = 1;
11882 return u.c[sizeof (long int) - 1] == 1;
11883
11884 ;
11885 return 0;
11886 }
11887 _ACEOF
11888 if ac_fn_c_try_run "$LINENO"; then :
11889 ac_cv_c_bigendian=no
11890 else
11891 ac_cv_c_bigendian=yes
11892 fi
11893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11894 conftest.$ac_objext conftest.beam conftest.$ac_ext
11895 fi
11896
11897 fi
11898 fi
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11900 $as_echo "$ac_cv_c_bigendian" >&6; }
11901 case $ac_cv_c_bigendian in #(
11902 yes)
11903 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11904 ;; #(
11905 no)
11906 ;; #(
11907 universal)
11908
11909 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11910
11911 ;; #(
11912 *)
11913 as_fn_error $? "unknown endianness
11914 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11915 esac
11916
11917 #
11918 # Check whether --enable-largefile was given.
11919 if test "${enable_largefile+set}" = set; then :
11920 enableval=$enable_largefile;
11921 fi
11922
11923 if test "$enable_largefile" != no; then
11924
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11926 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11927 if ${ac_cv_sys_largefile_CC+:} false; then :
11928 $as_echo_n "(cached) " >&6
11929 else
11930 ac_cv_sys_largefile_CC=no
11931 if test "$GCC" != yes; then
11932 ac_save_CC=$CC
11933 while :; do
11934 # IRIX 6.2 and later do not support large files by default,
11935 # so use the C compiler's -n32 option if that helps.
11936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11937 /* end confdefs.h. */
11938 #include <sys/types.h>
11939 /* Check that off_t can represent 2**63 - 1 correctly.
11940 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11941 since some C++ compilers masquerading as C compilers
11942 incorrectly reject 9223372036854775807. */
11943 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11944 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11945 && LARGE_OFF_T % 2147483647 == 1)
11946 ? 1 : -1];
11947 int
11948 main ()
11949 {
11950
11951 ;
11952 return 0;
11953 }
11954 _ACEOF
11955 if ac_fn_c_try_compile "$LINENO"; then :
11956 break
11957 fi
11958 rm -f core conftest.err conftest.$ac_objext
11959 CC="$CC -n32"
11960 if ac_fn_c_try_compile "$LINENO"; then :
11961 ac_cv_sys_largefile_CC=' -n32'; break
11962 fi
11963 rm -f core conftest.err conftest.$ac_objext
11964 break
11965 done
11966 CC=$ac_save_CC
11967 rm -f conftest.$ac_ext
11968 fi
11969 fi
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11971 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11972 if test "$ac_cv_sys_largefile_CC" != no; then
11973 CC=$CC$ac_cv_sys_largefile_CC
11974 fi
11975
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11977 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11978 if ${ac_cv_sys_file_offset_bits+:} false; then :
11979 $as_echo_n "(cached) " >&6
11980 else
11981 while :; do
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h. */
11984 #include <sys/types.h>
11985 /* Check that off_t can represent 2**63 - 1 correctly.
11986 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11987 since some C++ compilers masquerading as C compilers
11988 incorrectly reject 9223372036854775807. */
11989 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11990 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11991 && LARGE_OFF_T % 2147483647 == 1)
11992 ? 1 : -1];
11993 int
11994 main ()
11995 {
11996
11997 ;
11998 return 0;
11999 }
12000 _ACEOF
12001 if ac_fn_c_try_compile "$LINENO"; then :
12002 ac_cv_sys_file_offset_bits=no; break
12003 fi
12004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12006 /* end confdefs.h. */
12007 #define _FILE_OFFSET_BITS 64
12008 #include <sys/types.h>
12009 /* Check that off_t can represent 2**63 - 1 correctly.
12010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12011 since some C++ compilers masquerading as C compilers
12012 incorrectly reject 9223372036854775807. */
12013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12015 && LARGE_OFF_T % 2147483647 == 1)
12016 ? 1 : -1];
12017 int
12018 main ()
12019 {
12020
12021 ;
12022 return 0;
12023 }
12024 _ACEOF
12025 if ac_fn_c_try_compile "$LINENO"; then :
12026 ac_cv_sys_file_offset_bits=64; break
12027 fi
12028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12029 ac_cv_sys_file_offset_bits=unknown
12030 break
12031 done
12032 fi
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12034 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12035 case $ac_cv_sys_file_offset_bits in #(
12036 no | unknown) ;;
12037 *)
12038 cat >>confdefs.h <<_ACEOF
12039 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12040 _ACEOF
12041 ;;
12042 esac
12043 rm -rf conftest*
12044 if test $ac_cv_sys_file_offset_bits = unknown; then
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12046 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12047 if ${ac_cv_sys_large_files+:} false; then :
12048 $as_echo_n "(cached) " >&6
12049 else
12050 while :; do
12051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h. */
12053 #include <sys/types.h>
12054 /* Check that off_t can represent 2**63 - 1 correctly.
12055 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12056 since some C++ compilers masquerading as C compilers
12057 incorrectly reject 9223372036854775807. */
12058 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12059 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12060 && LARGE_OFF_T % 2147483647 == 1)
12061 ? 1 : -1];
12062 int
12063 main ()
12064 {
12065
12066 ;
12067 return 0;
12068 }
12069 _ACEOF
12070 if ac_fn_c_try_compile "$LINENO"; then :
12071 ac_cv_sys_large_files=no; break
12072 fi
12073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h. */
12076 #define _LARGE_FILES 1
12077 #include <sys/types.h>
12078 /* Check that off_t can represent 2**63 - 1 correctly.
12079 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12080 since some C++ compilers masquerading as C compilers
12081 incorrectly reject 9223372036854775807. */
12082 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12083 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12084 && LARGE_OFF_T % 2147483647 == 1)
12085 ? 1 : -1];
12086 int
12087 main ()
12088 {
12089
12090 ;
12091 return 0;
12092 }
12093 _ACEOF
12094 if ac_fn_c_try_compile "$LINENO"; then :
12095 ac_cv_sys_large_files=1; break
12096 fi
12097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12098 ac_cv_sys_large_files=unknown
12099 break
12100 done
12101 fi
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12103 $as_echo "$ac_cv_sys_large_files" >&6; }
12104 case $ac_cv_sys_large_files in #(
12105 no | unknown) ;;
12106 *)
12107 cat >>confdefs.h <<_ACEOF
12108 #define _LARGE_FILES $ac_cv_sys_large_files
12109 _ACEOF
12110 ;;
12111 esac
12112 rm -rf conftest*
12113 fi
12114
12115
12116 fi
12117
12118
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12120 $as_echo_n "checking for ANSI C header files... " >&6; }
12121 if ${ac_cv_header_stdc+:} false; then :
12122 $as_echo_n "(cached) " >&6
12123 else
12124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12125 /* end confdefs.h. */
12126 #include <stdlib.h>
12127 #include <stdarg.h>
12128 #include <string.h>
12129 #include <float.h>
12130
12131 int
12132 main ()
12133 {
12134
12135 ;
12136 return 0;
12137 }
12138 _ACEOF
12139 if ac_fn_c_try_compile "$LINENO"; then :
12140 ac_cv_header_stdc=yes
12141 else
12142 ac_cv_header_stdc=no
12143 fi
12144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12145
12146 if test $ac_cv_header_stdc = yes; then
12147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12149 /* end confdefs.h. */
12150 #include <string.h>
12151
12152 _ACEOF
12153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12154 $EGREP "memchr" >/dev/null 2>&1; then :
12155
12156 else
12157 ac_cv_header_stdc=no
12158 fi
12159 rm -f conftest*
12160
12161 fi
12162
12163 if test $ac_cv_header_stdc = yes; then
12164 # ISC 2.0.3 stdlib.h does not declare free, contrary to ANSI.
12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12166 /* end confdefs.h. */
12167 #include <stdlib.h>
12168
12169 _ACEOF
12170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12171 $EGREP "free" >/dev/null 2>&1; then :
12172
12173 else
12174 ac_cv_header_stdc=no
12175 fi
12176 rm -f conftest*
12177
12178 fi
12179
12180 if test $ac_cv_header_stdc = yes; then
12181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12182 if test "$cross_compiling" = yes; then :
12183 :
12184 else
12185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186 /* end confdefs.h. */
12187 #include <ctype.h>
12188 #include <stdlib.h>
12189 #if ((' ' & 0x0FF) == 0x020)
12190 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12191 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12192 #else
12193 # define ISLOWER(c) \
12194 (('a' <= (c) && (c) <= 'i') \
12195 || ('j' <= (c) && (c) <= 'r') \
12196 || ('s' <= (c) && (c) <= 'z'))
12197 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12198 #endif
12199
12200 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12201 int
12202 main ()
12203 {
12204 int i;
12205 for (i = 0; i < 256; i++)
12206 if (XOR (islower (i), ISLOWER (i))
12207 || toupper (i) != TOUPPER (i))
12208 return 2;
12209 return 0;
12210 }
12211 _ACEOF
12212 if ac_fn_c_try_run "$LINENO"; then :
12213
12214 else
12215 ac_cv_header_stdc=no
12216 fi
12217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12218 conftest.$ac_objext conftest.beam conftest.$ac_ext
12219 fi
12220
12221 fi
12222 fi
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12224 $as_echo "$ac_cv_header_stdc" >&6; }
12225 if test $ac_cv_header_stdc = yes; then
12226
12227 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12228
12229 fi
12230
12231
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12233 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12234 if ${ac_cv_c_const+:} false; then :
12235 $as_echo_n "(cached) " >&6
12236 else
12237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h. */
12239
12240 int
12241 main ()
12242 {
12243
12244 #ifndef __cplusplus
12245 /* Ultrix mips cc rejects this sort of thing. */
12246 typedef int charset[2];
12247 const charset cs = { 0, 0 };
12248 /* SunOS 4.1.1 cc rejects this. */
12249 char const *const *pcpcc;
12250 char **ppc;
12251 /* NEC SVR4.0.2 mips cc rejects this. */
12252 struct point {int x, y;};
12253 static struct point const zero = {0,0};
12254 /* AIX XL C 1.02.0.0 rejects this.
12255 It does not let you subtract one const X* pointer from another in
12256 an arm of an if-expression whose if-part is not a constant
12257 expression */
12258 const char *g = "string";
12259 pcpcc = &g + (g ? g-g : 0);
12260 /* HPUX 7.0 cc rejects these. */
12261 ++pcpcc;
12262 ppc = (char**) pcpcc;
12263 pcpcc = (char const *const *) ppc;
12264 { /* SCO 3.2v4 cc rejects this sort of thing. */
12265 char tx;
12266 char *t = &tx;
12267 char const *s = 0 ? (char *) 0 : (char const *) 0;
12268
12269 *t++ = 0;
12270 if (s) return 0;
12271 }
12272 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12273 int x[] = {25, 17};
12274 const int *foo = &x[0];
12275 ++foo;
12276 }
12277 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12278 typedef const int *iptr;
12279 iptr p = 0;
12280 ++p;
12281 }
12282 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12283 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12284 struct s { int j; const int *ap[3]; } bx;
12285 struct s *b = &bx; b->j = 5;
12286 }
12287 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12288 const int foo = 10;
12289 if (!foo) return 0;
12290 }
12291 return !cs[0] && !zero.x;
12292 #endif
12293
12294 ;
12295 return 0;
12296 }
12297 _ACEOF
12298 if ac_fn_c_try_compile "$LINENO"; then :
12299 ac_cv_c_const=yes
12300 else
12301 ac_cv_c_const=no
12302 fi
12303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12304 fi
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12306 $as_echo "$ac_cv_c_const" >&6; }
12307 if test $ac_cv_c_const = no; then
12308
12309 $as_echo "#define const /**/" >>confdefs.h
12310
12311 fi
12312
12313
12314 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12315 if test "x$ac_cv_func_pow" = xyes; then :
12316
12317 else
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12319 $as_echo_n "checking for pow in -lm... " >&6; }
12320 if ${ac_cv_lib_m_pow+:} false; then :
12321 $as_echo_n "(cached) " >&6
12322 else
12323 ac_check_lib_save_LIBS=$LIBS
12324 LIBS="-lm $LIBS"
12325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12326 /* end confdefs.h. */
12327
12328 /* Override any GCC internal prototype to avoid an error.
12329 Use char because int might match the return type of a GCC
12330 builtin and then its argument prototype would still apply. */
12331 #ifdef __cplusplus
12332 extern "C"
12333 #endif
12334 char pow ();
12335 int
12336 main ()
12337 {
12338 return pow ();
12339 ;
12340 return 0;
12341 }
12342 _ACEOF
12343 if ac_fn_c_try_link "$LINENO"; then :
12344 ac_cv_lib_m_pow=yes
12345 else
12346 ac_cv_lib_m_pow=no
12347 fi
12348 rm -f core conftest.err conftest.$ac_objext \
12349 conftest$ac_exeext conftest.$ac_ext
12350 LIBS=$ac_check_lib_save_LIBS
12351 fi
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12353 $as_echo "$ac_cv_lib_m_pow" >&6; }
12354 if test "x$ac_cv_lib_m_pow" = xyes; then :
12355 LIBS="$LIBS -lm"
12356 fi
12357
12358 fi
12359
12360
12361
12362
12363 # Check whether --enable-buildso was given.
12364 if test "${enable_buildso+set}" = set; then :
12365 enableval=$enable_buildso;
12366 fi
12367
12368 if test "x$enable_buildso" != "xno"; then
12369
12370 $as_echo "#define MNG_BUILD_SO 1" >>confdefs.h
12371
12372 fi
12373
12374
12375 $as_echo "#define MNG_SUPPORT_FULL 1" >>confdefs.h
12376
12377
12378 # Check whether --enable-read was given.
12379 if test "${enable_read+set}" = set; then :
12380 enableval=$enable_read;
12381 fi
12382
12383 if test "x$enable_read" != "xno"; then
12384
12385 $as_echo "#define MNG_SUPPORT_READ 1" >>confdefs.h
12386
12387 fi
12388
12389 # Check whether --enable-write was given.
12390 if test "${enable_write+set}" = set; then :
12391 enableval=$enable_write;
12392 fi
12393
12394 if test "x$enable_write" != "xno"; then
12395
12396 $as_echo "#define MNG_SUPPORT_WRITE 1" >>confdefs.h
12397
12398 fi
12399
12400 # Check whether --enable-display was given.
12401 if test "${enable_display+set}" = set; then :
12402 enableval=$enable_display;
12403 fi
12404
12405 if test "x$enable_display" != "xno"; then
12406
12407 $as_echo "#define MNG_SUPPORT_DISPLAY 1" >>confdefs.h
12408
12409 fi
12410
12411 # Check whether --enable-dynamic was given.
12412 if test "${enable_dynamic+set}" = set; then :
12413 enableval=$enable_dynamic;
12414 fi
12415
12416 if test "x$enable_dynamic" != "xno"; then
12417
12418 $as_echo "#define MNG_SUPPORT_DYNAMICMNG 1" >>confdefs.h
12419
12420 fi
12421
12422 # Check whether --enable-chunks was given.
12423 if test "${enable_chunks+set}" = set; then :
12424 enableval=$enable_chunks;
12425 fi
12426
12427 if test "x$enable_chunks" != "xno"; then
12428
12429 $as_echo "#define MNG_ACCESS_CHUNKS 1" >>confdefs.h
12430
12431 fi
12432
12433 # Check whether --enable-storechunks was given.
12434 if test "${enable_storechunks+set}" = set; then :
12435 enableval=$enable_storechunks;
12436 fi
12437
12438 if test "x$enable_storechunks" != "xno"; then
12439
12440 $as_echo "#define MNG_STORE_CHUNKS 1" >>confdefs.h
12441
12442 fi
12443
12444 # Check whether --enable-trace was given.
12445 if test "${enable_trace+set}" = set; then :
12446 enableval=$enable_trace;
12447 if test "x$enable_trace" = "xyes"; then
12448
12449 $as_echo "#define MNG_SUPPORT_TRACE 1" >>confdefs.h
12450
12451
12452 $as_echo "#define MNG_TRACE_TELLTALE 1" >>confdefs.h
12453
12454 fi
12455
12456 fi
12457
12458
12459
12460 $as_echo "#define MNG_ERROR_TELLTALE 1" >>confdefs.h
12461
12462
12463
12464
12465 # Check whether --with-zlib was given.
12466 if test "${with_zlib+set}" = set; then :
12467 withval=$with_zlib;
12468 if test -d "$withval"; then
12469 CPPFLAGS="$CPPFLAGS -I$withval/include"
12470 LDFLAGS="$LDFLAGS -L$withval/lib"
12471 fi
12472
12473 fi
12474
12475 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12476 if test "x$ac_cv_header_zlib_h" = xyes; then :
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
12478 $as_echo_n "checking for gzread in -lz... " >&6; }
12479 if ${ac_cv_lib_z_gzread+:} false; then :
12480 $as_echo_n "(cached) " >&6
12481 else
12482 ac_check_lib_save_LIBS=$LIBS
12483 LIBS="-lz $LIBS"
12484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485 /* end confdefs.h. */
12486
12487 /* Override any GCC internal prototype to avoid an error.
12488 Use char because int might match the return type of a GCC
12489 builtin and then its argument prototype would still apply. */
12490 #ifdef __cplusplus
12491 extern "C"
12492 #endif
12493 char gzread ();
12494 int
12495 main ()
12496 {
12497 return gzread ();
12498 ;
12499 return 0;
12500 }
12501 _ACEOF
12502 if ac_fn_c_try_link "$LINENO"; then :
12503 ac_cv_lib_z_gzread=yes
12504 else
12505 ac_cv_lib_z_gzread=no
12506 fi
12507 rm -f core conftest.err conftest.$ac_objext \
12508 conftest$ac_exeext conftest.$ac_ext
12509 LIBS=$ac_check_lib_save_LIBS
12510 fi
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
12512 $as_echo "$ac_cv_lib_z_gzread" >&6; }
12513 if test "x$ac_cv_lib_z_gzread" = xyes; then :
12514 cat >>confdefs.h <<_ACEOF
12515 #define HAVE_LIBZ 1
12516 _ACEOF
12517
12518 LIBS="-lz $LIBS"
12519
12520 else
12521 as_fn_error $? "zlib library not found" "$LINENO" 5
12522 fi
12523
12524 else
12525 as_fn_error $? "zlib header not found" "$LINENO" 5
12526
12527 fi
12528
12529
12530
12531
12532 # Check whether --with-jpeg was given.
12533 if test "${with_jpeg+set}" = set; then :
12534 withval=$with_jpeg; with_jpeg=$withval
12535 else
12536 with_jpeg=_auto
12537 fi
12538
12539
12540 if test "x$with_jpeg" != "xno" -a "x$with_jpeg" != "xyes" -a \
12541 "x$with_jpeg" != "x_auto"; then
12542 # Save in case test with directory specified fails
12543 _cppflags=${CPPFLAGS}
12544 _ldflags=${LDFLAGS}
12545 _restore=1
12546
12547 CPPFLAGS="${CPPFLAGS} -I$withval/include"
12548 LDFLAGS="${LDFLAGS} -L$withval/lib"
12549 else
12550 _restore=0
12551 fi
12552
12553 if test "x$with_jpeg" != "xno"; then
12554 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
12555 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
12557 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
12558 if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
12559 $as_echo_n "(cached) " >&6
12560 else
12561 ac_check_lib_save_LIBS=$LIBS
12562 LIBS="-ljpeg $LIBS"
12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564 /* end confdefs.h. */
12565
12566 /* Override any GCC internal prototype to avoid an error.
12567 Use char because int might match the return type of a GCC
12568 builtin and then its argument prototype would still apply. */
12569 #ifdef __cplusplus
12570 extern "C"
12571 #endif
12572 char jpeg_read_header ();
12573 int
12574 main ()
12575 {
12576 return jpeg_read_header ();
12577 ;
12578 return 0;
12579 }
12580 _ACEOF
12581 if ac_fn_c_try_link "$LINENO"; then :
12582 ac_cv_lib_jpeg_jpeg_read_header=yes
12583 else
12584 ac_cv_lib_jpeg_jpeg_read_header=no
12585 fi
12586 rm -f core conftest.err conftest.$ac_objext \
12587 conftest$ac_exeext conftest.$ac_ext
12588 LIBS=$ac_check_lib_save_LIBS
12589 fi
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
12591 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
12592 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
12593
12594 LIBS="$LIBS -ljpeg"
12595
12596 $as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h
12597
12598 _restore=0
12599
12600 else
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: jpeg library not found" >&5
12602 $as_echo "$as_me: WARNING: jpeg library not found" >&2;}
12603 fi
12604
12605 else
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: jpeg header not found" >&5
12607 $as_echo "$as_me: WARNING: jpeg header not found" >&2;}
12608
12609 fi
12610
12611
12612 fi
12613
12614 test $_restore -eq 1 && CPPFLAGS=$_cppflags LDFLAGS=$_ldflags
12615
12616
12617 # Check whether --with-lcms2 was given.
12618 if test "${with_lcms2+set}" = set; then :
12619 withval=$with_lcms2; with_lcms2=$withval
12620 else
12621 with_lcms2=_auto
12622 fi
12623
12624
12625 if test "x$with_lcms2" != "xno" -a "x$with_lcms2" != "xyes" -a \
12626 "x$with_lcms2" != "x_auto"; then
12627 # Save in case test with directory specified fails
12628 _cppflags=$CPPFLAGS
12629 _ldflags=$LDFLAGS
12630 _restore=1
12631
12632 CPPFLAGS="$CPPFLAGS -I$withval/include"
12633 LDFLAGS="$LDFLAGS -L$withval/lib"
12634 else
12635 _restore=0
12636 fi
12637
12638 if test "x$with_lcms2" != "xno"; then
12639 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
12640 if test "x$ac_cv_header_lcms2_h" = xyes; then :
12641
12642 have_lcms2=yes
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsFreeToneCurve in -llcms2" >&5
12644 $as_echo_n "checking for cmsFreeToneCurve in -llcms2... " >&6; }
12645 if ${ac_cv_lib_lcms2_cmsFreeToneCurve+:} false; then :
12646 $as_echo_n "(cached) " >&6
12647 else
12648 ac_check_lib_save_LIBS=$LIBS
12649 LIBS="-llcms2 $LIBS"
12650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12651 /* end confdefs.h. */
12652
12653 /* Override any GCC internal prototype to avoid an error.
12654 Use char because int might match the return type of a GCC
12655 builtin and then its argument prototype would still apply. */
12656 #ifdef __cplusplus
12657 extern "C"
12658 #endif
12659 char cmsFreeToneCurve ();
12660 int
12661 main ()
12662 {
12663 return cmsFreeToneCurve ();
12664 ;
12665 return 0;
12666 }
12667 _ACEOF
12668 if ac_fn_c_try_link "$LINENO"; then :
12669 ac_cv_lib_lcms2_cmsFreeToneCurve=yes
12670 else
12671 ac_cv_lib_lcms2_cmsFreeToneCurve=no
12672 fi
12673 rm -f core conftest.err conftest.$ac_objext \
12674 conftest$ac_exeext conftest.$ac_ext
12675 LIBS=$ac_check_lib_save_LIBS
12676 fi
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsFreeToneCurve" >&5
12678 $as_echo "$ac_cv_lib_lcms2_cmsFreeToneCurve" >&6; }
12679 if test "x$ac_cv_lib_lcms2_cmsFreeToneCurve" = xyes; then :
12680
12681 LIBS="$LIBS -llcms2"
12682
12683 $as_echo "#define HAVE_LIBLCMS2 1" >>confdefs.h
12684
12685
12686 $as_echo "#define MNG_FULL_CMS 1" >>confdefs.h
12687
12688 _restore=0
12689 have_lcms2=yes
12690
12691 else
12692
12693 have_lcms2=no
12694
12695 fi
12696
12697
12698 fi
12699
12700
12701 if test "x$with_lcms2" != "x_auto" -a "x$have_lcms2" != "xyes"; then
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lcms2 not found... disabling LCMS v2 support" >&5
12703 $as_echo "$as_me: WARNING: lcms2 not found... disabling LCMS v2 support" >&2;}
12704 fi
12705 fi
12706
12707 if test "x$with_lcms2" != "x_auto" -a "x$have_lcms2" != "xyes"; then
12708
12709 # Check whether --with-lcms was given.
12710 if test "${with_lcms+set}" = set; then :
12711 withval=$with_lcms; with_lcms=$withval
12712 else
12713 with_lcms=_auto
12714 fi
12715
12716
12717 if test "x$with_lcms" != "xno" -a "x$with_lcms" != "xyes" -a \
12718 "x$with_lcms" != "x_auto"; then
12719 # Save in case test with directory specified fails
12720 _cppflags=$CPPFLAGS
12721 _ldflags=$LDFLAGS
12722 _restore=1
12723
12724 CPPFLAGS="$CPPFLAGS -I$withval/include"
12725 LDFLAGS="$LDFLAGS -L$withval/lib"
12726 else
12727 _restore=0
12728 fi
12729
12730 if test "x$with_lcms" != "xno"; then
12731 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
12732 if test "x$ac_cv_header_lcms_h" = xyes; then :
12733
12734 have_lcms=yes
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsCreateRGBProfile in -llcms" >&5
12736 $as_echo_n "checking for cmsCreateRGBProfile in -llcms... " >&6; }
12737 if ${ac_cv_lib_lcms_cmsCreateRGBProfile+:} false; then :
12738 $as_echo_n "(cached) " >&6
12739 else
12740 ac_check_lib_save_LIBS=$LIBS
12741 LIBS="-llcms $LIBS"
12742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12743 /* end confdefs.h. */
12744
12745 /* Override any GCC internal prototype to avoid an error.
12746 Use char because int might match the return type of a GCC
12747 builtin and then its argument prototype would still apply. */
12748 #ifdef __cplusplus
12749 extern "C"
12750 #endif
12751 char cmsCreateRGBProfile ();
12752 int
12753 main ()
12754 {
12755 return cmsCreateRGBProfile ();
12756 ;
12757 return 0;
12758 }
12759 _ACEOF
12760 if ac_fn_c_try_link "$LINENO"; then :
12761 ac_cv_lib_lcms_cmsCreateRGBProfile=yes
12762 else
12763 ac_cv_lib_lcms_cmsCreateRGBProfile=no
12764 fi
12765 rm -f core conftest.err conftest.$ac_objext \
12766 conftest$ac_exeext conftest.$ac_ext
12767 LIBS=$ac_check_lib_save_LIBS
12768 fi
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsCreateRGBProfile" >&5
12770 $as_echo "$ac_cv_lib_lcms_cmsCreateRGBProfile" >&6; }
12771 if test "x$ac_cv_lib_lcms_cmsCreateRGBProfile" = xyes; then :
12772
12773 LIBS="$LIBS -llcms"
12774
12775 $as_echo "#define HAVE_LIBLCMS1 1" >>confdefs.h
12776
12777
12778 $as_echo "#define MNG_FULL_CMS 1" >>confdefs.h
12779
12780 _restore=0
12781 have_lcms=yes
12782
12783 else
12784
12785 have_lcms=no
12786
12787 fi
12788
12789
12790 fi
12791
12792
12793 if test "x$with_lcms" != "x_auto" -a "x$have_lcms" != "xyes"; then
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lcms not found... disabling LCMS v1 support" >&5
12795 $as_echo "$as_me: WARNING: lcms not found... disabling LCMS v1 support" >&2;}
12796 fi
12797 fi
12798 fi
12799 test $_restore -eq 1 && CPPFLAGS=$_cppflags LDFLAGS=$_ldflags
12800
12801 ac_config_files="$ac_config_files Makefile libmng.pc:libmng.pc.in"
12802
12803 cat >confcache <<\_ACEOF
12804 # This file is a shell script that caches the results of configure
12805 # tests run on this system so they can be shared between configure
12806 # scripts and configure runs, see configure's option --config-cache.
12807 # It is not useful on other systems. If it contains results you don't
12808 # want to keep, you may remove or edit it.
12809 #
12810 # config.status only pays attention to the cache file if you give it
12811 # the --recheck option to rerun configure.
12812 #
12813 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12814 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12815 # following values.
12816
12817 _ACEOF
12818
12819 # The following way of writing the cache mishandles newlines in values,
12820 # but we know of no workaround that is simple, portable, and efficient.
12821 # So, we kill variables containing newlines.
12822 # Ultrix sh set writes to stderr and can't be redirected directly,
12823 # and sets the high bit in the cache file unless we assign to the vars.
12824 (
12825 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12826 eval ac_val=\$$ac_var
12827 case $ac_val in #(
12828 *${as_nl}*)
12829 case $ac_var in #(
12830 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12831 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12832 esac
12833 case $ac_var in #(
12834 _ | IFS | as_nl) ;; #(
12835 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12836 *) { eval $ac_var=; unset $ac_var;} ;;
12837 esac ;;
12838 esac
12839 done
12840
12841 (set) 2>&1 |
12842 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12843 *${as_nl}ac_space=\ *)
12844 # `set' does not quote correctly, so add quotes: double-quote
12845 # substitution turns \\\\ into \\, and sed turns \\ into \.
12846 sed -n \
12847 "s/'/'\\\\''/g;
12848 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12849 ;; #(
12850 *)
12851 # `set' quotes correctly as required by POSIX, so do not add quotes.
12852 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12853 ;;
12854 esac |
12855 sort
12856 ) |
12857 sed '
12858 /^ac_cv_env_/b end
12859 t clear
12860 :clear
12861 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12862 t end
12863 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12864 :end' >>confcache
12865 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12866 if test -w "$cache_file"; then
12867 if test "x$cache_file" != "x/dev/null"; then
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12869 $as_echo "$as_me: updating cache $cache_file" >&6;}
12870 if test ! -f "$cache_file" || test -h "$cache_file"; then
12871 cat confcache >"$cache_file"
12872 else
12873 case $cache_file in #(
12874 */* | ?:*)
12875 mv -f confcache "$cache_file"$$ &&
12876 mv -f "$cache_file"$$ "$cache_file" ;; #(
12877 *)
12878 mv -f confcache "$cache_file" ;;
12879 esac
12880 fi
12881 fi
12882 else
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12884 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12885 fi
12886 fi
12887 rm -f confcache
12888
12889 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12890 # Let make expand exec_prefix.
12891 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12892
12893 DEFS=-DHAVE_CONFIG_H
12894
12895 ac_libobjs=
12896 ac_ltlibobjs=
12897 U=
12898 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12899 # 1. Remove the extension, and $U if already installed.
12900 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12901 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12902 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12903 # will be set to the directory where LIBOBJS objects are built.
12904 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12905 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12906 done
12907 LIBOBJS=$ac_libobjs
12908
12909 LTLIBOBJS=$ac_ltlibobjs
12910
12911
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12913 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12914 if test -n "$am_sleep_pid"; then
12915 # Hide warnings about reused PIDs.
12916 wait $am_sleep_pid 2>/dev/null
12917 fi
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12919 $as_echo "done" >&6; }
12920 if test -n "$EXEEXT"; then
12921 am__EXEEXT_TRUE=
12922 am__EXEEXT_FALSE='#'
12923 else
12924 am__EXEEXT_TRUE='#'
12925 am__EXEEXT_FALSE=
12926 fi
12927
12928 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12929 as_fn_error $? "conditional \"AMDEP\" was never defined.
12930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12931 fi
12932 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12933 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12935 fi
12936
12937
12938 : "${CONFIG_STATUS=./config.status}"
12939 ac_write_fail=0
12940 ac_clean_files_save=$ac_clean_files
12941 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12943 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12944 as_write_fail=0
12945 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12946 #! $SHELL
12947 # Generated by $as_me.
12948 # Run this file to recreate the current configuration.
12949 # Compiler output produced by configure, useful for debugging
12950 # configure, is in config.log if it exists.
12951
12952 debug=false
12953 ac_cs_recheck=false
12954 ac_cs_silent=false
12955
12956 SHELL=\${CONFIG_SHELL-$SHELL}
12957 export SHELL
12958 _ASEOF
12959 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12960 ## -------------------- ##
12961 ## M4sh Initialization. ##
12962 ## -------------------- ##
12963
12964 # Be more Bourne compatible
12965 DUALCASE=1; export DUALCASE # for MKS sh
12966 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12967 emulate sh
12968 NULLCMD=:
12969 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12970 # is contrary to our usage. Disable this feature.
12971 alias -g '${1+"$@"}'='"$@"'
12972 setopt NO_GLOB_SUBST
12973 else
12974 case `(set -o) 2>/dev/null` in #(
12975 *posix*) :
12976 set -o posix ;; #(
12977 *) :
12978 ;;
12979 esac
12980 fi
12981
12982
12983 as_nl='
12984 '
12985 export as_nl
12986 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12987 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12988 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12989 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12990 # Prefer a ksh shell builtin over an external printf program on Solaris,
12991 # but without wasting forks for bash or zsh.
12992 if test -z "$BASH_VERSION$ZSH_VERSION" \
12993 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12994 as_echo='print -r --'
12995 as_echo_n='print -rn --'
12996 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12997 as_echo='printf %s\n'
12998 as_echo_n='printf %s'
12999 else
13000 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13001 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13002 as_echo_n='/usr/ucb/echo -n'
13003 else
13004 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13005 as_echo_n_body='eval
13006 arg=$1;
13007 case $arg in #(
13008 *"$as_nl"*)
13009 expr "X$arg" : "X\\(.*\\)$as_nl";
13010 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13011 esac;
13012 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13013 '
13014 export as_echo_n_body
13015 as_echo_n='sh -c $as_echo_n_body as_echo'
13016 fi
13017 export as_echo_body
13018 as_echo='sh -c $as_echo_body as_echo'
13019 fi
13020
13021 # The user is always right.
13022 if test "${PATH_SEPARATOR+set}" != set; then
13023 PATH_SEPARATOR=:
13024 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13025 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13026 PATH_SEPARATOR=';'
13027 }
13028 fi
13029
13030
13031 # IFS
13032 # We need space, tab and new line, in precisely that order. Quoting is
13033 # there to prevent editors from complaining about space-tab.
13034 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13035 # splitting by setting IFS to empty value.)
13036 IFS=" "" $as_nl"
13037
13038 # Find who we are. Look in the path if we contain no directory separator.
13039 as_myself=
13040 case $0 in #((
13041 *[\\/]* ) as_myself=$0 ;;
13042 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13043 for as_dir in $PATH
13044 do
13045 IFS=$as_save_IFS
13046 test -z "$as_dir" && as_dir=.
13047 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13048 done
13049 IFS=$as_save_IFS
13050
13051 ;;
13052 esac
13053 # We did not find ourselves, most probably we were run as `sh COMMAND'
13054 # in which case we are not to be found in the path.
13055 if test "x$as_myself" = x; then
13056 as_myself=$0
13057 fi
13058 if test ! -f "$as_myself"; then
13059 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13060 exit 1
13061 fi
13062
13063 # Unset variables that we do not need and which cause bugs (e.g. in
13064 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13065 # suppresses any "Segmentation fault" message there. '((' could
13066 # trigger a bug in pdksh 5.2.14.
13067 for as_var in BASH_ENV ENV MAIL MAILPATH
13068 do eval test x\${$as_var+set} = xset \
13069 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13070 done
13071 PS1='$ '
13072 PS2='> '
13073 PS4='+ '
13074
13075 # NLS nuisances.
13076 LC_ALL=C
13077 export LC_ALL
13078 LANGUAGE=C
13079 export LANGUAGE
13080
13081 # CDPATH.
13082 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13083
13084
13085 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13086 # ----------------------------------------
13087 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13088 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13089 # script with STATUS, using 1 if that was 0.
13090 as_fn_error ()
13091 {
13092 as_status=$1; test $as_status -eq 0 && as_status=1
13093 if test "$4"; then
13094 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13095 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13096 fi
13097 $as_echo "$as_me: error: $2" >&2
13098 as_fn_exit $as_status
13099 } # as_fn_error
13100
13101
13102 # as_fn_set_status STATUS
13103 # -----------------------
13104 # Set $? to STATUS, without forking.
13105 as_fn_set_status ()
13106 {
13107 return $1
13108 } # as_fn_set_status
13109
13110 # as_fn_exit STATUS
13111 # -----------------
13112 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13113 as_fn_exit ()
13114 {
13115 set +e
13116 as_fn_set_status $1
13117 exit $1
13118 } # as_fn_exit
13119
13120 # as_fn_unset VAR
13121 # ---------------
13122 # Portably unset VAR.
13123 as_fn_unset ()
13124 {
13125 { eval $1=; unset $1;}
13126 }
13127 as_unset=as_fn_unset
13128 # as_fn_append VAR VALUE
13129 # ----------------------
13130 # Append the text in VALUE to the end of the definition contained in VAR. Take
13131 # advantage of any shell optimizations that allow amortized linear growth over
13132 # repeated appends, instead of the typical quadratic growth present in naive
13133 # implementations.
13134 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13135 eval 'as_fn_append ()
13136 {
13137 eval $1+=\$2
13138 }'
13139 else
13140 as_fn_append ()
13141 {
13142 eval $1=\$$1\$2
13143 }
13144 fi # as_fn_append
13145
13146 # as_fn_arith ARG...
13147 # ------------------
13148 # Perform arithmetic evaluation on the ARGs, and store the result in the
13149 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13150 # must be portable across $(()) and expr.
13151 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13152 eval 'as_fn_arith ()
13153 {
13154 as_val=$(( $* ))
13155 }'
13156 else
13157 as_fn_arith ()
13158 {
13159 as_val=`expr "$@" || test $? -eq 1`
13160 }
13161 fi # as_fn_arith
13162
13163
13164 if expr a : '\(a\)' >/dev/null 2>&1 &&
13165 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13166 as_expr=expr
13167 else
13168 as_expr=false
13169 fi
13170
13171 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13172 as_basename=basename
13173 else
13174 as_basename=false
13175 fi
13176
13177 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13178 as_dirname=dirname
13179 else
13180 as_dirname=false
13181 fi
13182
13183 as_me=`$as_basename -- "$0" ||
13184 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13185 X"$0" : 'X\(//\)$' \| \
13186 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13187 $as_echo X/"$0" |
13188 sed '/^.*\/\([^/][^/]*\)\/*$/{
13189 s//\1/
13190 q
13191 }
13192 /^X\/\(\/\/\)$/{
13193 s//\1/
13194 q
13195 }
13196 /^X\/\(\/\).*/{
13197 s//\1/
13198 q
13199 }
13200 s/.*/./; q'`
13201
13202 # Avoid depending upon Character Ranges.
13203 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13204 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13205 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13206 as_cr_digits='0123456789'
13207 as_cr_alnum=$as_cr_Letters$as_cr_digits
13208
13209 ECHO_C= ECHO_N= ECHO_T=
13210 case `echo -n x` in #(((((
13211 -n*)
13212 case `echo 'xy\c'` in
13213 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13214 xy) ECHO_C='\c';;
13215 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13216 ECHO_T=' ';;
13217 esac;;
13218 *)
13219 ECHO_N='-n';;
13220 esac
13221
13222 rm -f conf$$ conf$$.exe conf$$.file
13223 if test -d conf$$.dir; then
13224 rm -f conf$$.dir/conf$$.file
13225 else
13226 rm -f conf$$.dir
13227 mkdir conf$$.dir 2>/dev/null
13228 fi
13229 if (echo >conf$$.file) 2>/dev/null; then
13230 if ln -s conf$$.file conf$$ 2>/dev/null; then
13231 as_ln_s='ln -s'
13232 # ... but there are two gotchas:
13233 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13234 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13235 # In both cases, we have to default to `cp -pR'.
13236 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13237 as_ln_s='cp -pR'
13238 elif ln conf$$.file conf$$ 2>/dev/null; then
13239 as_ln_s=ln
13240 else
13241 as_ln_s='cp -pR'
13242 fi
13243 else
13244 as_ln_s='cp -pR'
13245 fi
13246 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13247 rmdir conf$$.dir 2>/dev/null
13248
13249
13250 # as_fn_mkdir_p
13251 # -------------
13252 # Create "$as_dir" as a directory, including parents if necessary.
13253 as_fn_mkdir_p ()
13254 {
13255
13256 case $as_dir in #(
13257 -*) as_dir=./$as_dir;;
13258 esac
13259 test -d "$as_dir" || eval $as_mkdir_p || {
13260 as_dirs=
13261 while :; do
13262 case $as_dir in #(
13263 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13264 *) as_qdir=$as_dir;;
13265 esac
13266 as_dirs="'$as_qdir' $as_dirs"
13267 as_dir=`$as_dirname -- "$as_dir" ||
13268 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13269 X"$as_dir" : 'X\(//\)[^/]' \| \
13270 X"$as_dir" : 'X\(//\)$' \| \
13271 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13272 $as_echo X"$as_dir" |
13273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13274 s//\1/
13275 q
13276 }
13277 /^X\(\/\/\)[^/].*/{
13278 s//\1/
13279 q
13280 }
13281 /^X\(\/\/\)$/{
13282 s//\1/
13283 q
13284 }
13285 /^X\(\/\).*/{
13286 s//\1/
13287 q
13288 }
13289 s/.*/./; q'`
13290 test -d "$as_dir" && break
13291 done
13292 test -z "$as_dirs" || eval "mkdir $as_dirs"
13293 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13294
13295
13296 } # as_fn_mkdir_p
13297 if mkdir -p . 2>/dev/null; then
13298 as_mkdir_p='mkdir -p "$as_dir"'
13299 else
13300 test -d ./-p && rmdir ./-p
13301 as_mkdir_p=false
13302 fi
13303
13304
13305 # as_fn_executable_p FILE
13306 # -----------------------
13307 # Test if FILE is an executable regular file.
13308 as_fn_executable_p ()
13309 {
13310 test -f "$1" && test -x "$1"
13311 } # as_fn_executable_p
13312 as_test_x='test -x'
13313 as_executable_p=as_fn_executable_p
13314
13315 # Sed expression to map a string onto a valid CPP name.
13316 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13317
13318 # Sed expression to map a string onto a valid variable name.
13319 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13320
13321
13322 exec 6>&1
13323 ## ----------------------------------- ##
13324 ## Main body of $CONFIG_STATUS script. ##
13325 ## ----------------------------------- ##
13326 _ASEOF
13327 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13328
13329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13330 # Save the log message, to keep $0 and so on meaningful, and to
13331 # report actual input values of CONFIG_FILES etc. instead of their
13332 # values after options handling.
13333 ac_log="
13334 This file was extended by libmng $as_me 2.0.3, which was
13335 generated by GNU Autoconf 2.69. Invocation command line was
13336
13337 CONFIG_FILES = $CONFIG_FILES
13338 CONFIG_HEADERS = $CONFIG_HEADERS
13339 CONFIG_LINKS = $CONFIG_LINKS
13340 CONFIG_COMMANDS = $CONFIG_COMMANDS
13341 $ $0 $@
13342
13343 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13344 "
13345
13346 _ACEOF
13347
13348 case $ac_config_files in *"
13349 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13350 esac
13351
13352 case $ac_config_headers in *"
13353 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13354 esac
13355
13356
13357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13358 # Files that config.status was made for.
13359 config_files="$ac_config_files"
13360 config_headers="$ac_config_headers"
13361 config_commands="$ac_config_commands"
13362
13363 _ACEOF
13364
13365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13366 ac_cs_usage="\
13367 \`$as_me' instantiates files and other configuration actions
13368 from templates according to the current configuration. Unless the files
13369 and actions are specified as TAGs, all are instantiated by default.
13370
13371 Usage: $0 [OPTION]... [TAG]...
13372
13373 -h, --help print this help, then exit
13374 -V, --version print version number and configuration settings, then exit
13375 --config print configuration, then exit
13376 -q, --quiet, --silent
13377 do not print progress messages
13378 -d, --debug don't remove temporary files
13379 --recheck update $as_me by reconfiguring in the same conditions
13380 --file=FILE[:TEMPLATE]
13381 instantiate the configuration file FILE
13382 --header=FILE[:TEMPLATE]
13383 instantiate the configuration header FILE
13384
13385 Configuration files:
13386 $config_files
13387
13388 Configuration headers:
13389 $config_headers
13390
13391 Configuration commands:
13392 $config_commands
13393
13394 Report bugs to <[email protected]>.
13395 libmng home page: <http://www.libmng.com/>."
13396
13397 _ACEOF
13398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13399 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13400 ac_cs_version="\\
13401 libmng config.status 2.0.3
13402 configured by $0, generated by GNU Autoconf 2.69,
13403 with options \\"\$ac_cs_config\\"
13404
13405 Copyright (C) 2012 Free Software Foundation, Inc.
13406 This config.status script is free software; the Free Software Foundation
13407 gives unlimited permission to copy, distribute and modify it."
13408
13409 ac_pwd='$ac_pwd'
13410 srcdir='$srcdir'
13411 INSTALL='$INSTALL'
13412 MKDIR_P='$MKDIR_P'
13413 AWK='$AWK'
13414 test -n "\$AWK" || AWK=awk
13415 _ACEOF
13416
13417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13418 # The default lists apply if the user does not specify any file.
13419 ac_need_defaults=:
13420 while test $# != 0
13421 do
13422 case $1 in
13423 --*=?*)
13424 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13425 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13426 ac_shift=:
13427 ;;
13428 --*=)
13429 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13430 ac_optarg=
13431 ac_shift=:
13432 ;;
13433 *)
13434 ac_option=$1
13435 ac_optarg=$2
13436 ac_shift=shift
13437 ;;
13438 esac
13439
13440 case $ac_option in
13441 # Handling of the options.
13442 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13443 ac_cs_recheck=: ;;
13444 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13445 $as_echo "$ac_cs_version"; exit ;;
13446 --config | --confi | --conf | --con | --co | --c )
13447 $as_echo "$ac_cs_config"; exit ;;
13448 --debug | --debu | --deb | --de | --d | -d )
13449 debug=: ;;
13450 --file | --fil | --fi | --f )
13451 $ac_shift
13452 case $ac_optarg in
13453 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13454 '') as_fn_error $? "missing file argument" ;;
13455 esac
13456 as_fn_append CONFIG_FILES " '$ac_optarg'"
13457 ac_need_defaults=false;;
13458 --header | --heade | --head | --hea )
13459 $ac_shift
13460 case $ac_optarg in
13461 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13462 esac
13463 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13464 ac_need_defaults=false;;
13465 --he | --h)
13466 # Conflict between --help and --header
13467 as_fn_error $? "ambiguous option: \`$1'
13468 Try \`$0 --help' for more information.";;
13469 --help | --hel | -h )
13470 $as_echo "$ac_cs_usage"; exit ;;
13471 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13472 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13473 ac_cs_silent=: ;;
13474
13475 # This is an error.
13476 -*) as_fn_error $? "unrecognized option: \`$1'
13477 Try \`$0 --help' for more information." ;;
13478
13479 *) as_fn_append ac_config_targets " $1"
13480 ac_need_defaults=false ;;
13481
13482 esac
13483 shift
13484 done
13485
13486 ac_configure_extra_args=
13487
13488 if $ac_cs_silent; then
13489 exec 6>/dev/null
13490 ac_configure_extra_args="$ac_configure_extra_args --silent"
13491 fi
13492
13493 _ACEOF
13494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13495 if \$ac_cs_recheck; then
13496 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13497 shift
13498 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13499 CONFIG_SHELL='$SHELL'
13500 export CONFIG_SHELL
13501 exec "\$@"
13502 fi
13503
13504 _ACEOF
13505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13506 exec 5>>config.log
13507 {
13508 echo
13509 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13510 ## Running $as_me. ##
13511 _ASBOX
13512 $as_echo "$ac_log"
13513 } >&5
13514
13515 _ACEOF
13516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13517 #
13518 # INIT-COMMANDS
13519 #
13520 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13521
13522
13523 # The HP-UX ksh and POSIX shell print the target directory to stdout
13524 # if CDPATH is set.
13525 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13526
13527 sed_quote_subst='$sed_quote_subst'
13528 double_quote_subst='$double_quote_subst'
13529 delay_variable_subst='$delay_variable_subst'
13530 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13531 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13532 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13533 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13534 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13535 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13536 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13537 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13538 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13539 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13540 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13541 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13542 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13543 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13544 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13545 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13546 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13547 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13548 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13549 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13550 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13551 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13552 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13553 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13554 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13555 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13556 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13557 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13558 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13559 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13560 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13561 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13562 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13563 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13564 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13565 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13566 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13567 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13568 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13569 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13570 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13571 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13572 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13573 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13574 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13575 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13576 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13577 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13578 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13579 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13580 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13581 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13582 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13583 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13584 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13585 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"`'
13586 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13587 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13588 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13589 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13590 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13591 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13592 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13593 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13594 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13595 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13596 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13597 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13598 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13599 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13600 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13601 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13602 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13603 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13604 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13605 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13606 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13607 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13608 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13609 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13610 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13611 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13612 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13613 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13614 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13615 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13616 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13617 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13618 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13619 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13620 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13621 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13622 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13623 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13624 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13625 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13626 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13627 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13628 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13629 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13630 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13631 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13632 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13633 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13634 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13635 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13636 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13637 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13638 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13639 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13640 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13641 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13642 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13643 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13644 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13645 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13646 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13647 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13648 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13649 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13650 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13651 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13652 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13653 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13654 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13655 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13656 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13657 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13658 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13659 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13660 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13661
13662 LTCC='$LTCC'
13663 LTCFLAGS='$LTCFLAGS'
13664 compiler='$compiler_DEFAULT'
13665
13666 # A function that is used when there is no print builtin or printf.
13667 func_fallback_echo ()
13668 {
13669 eval 'cat <<_LTECHO_EOF
13670 \$1
13671 _LTECHO_EOF'
13672 }
13673
13674 # Quote evaled strings.
13675 for var in SHELL \
13676 ECHO \
13677 SED \
13678 GREP \
13679 EGREP \
13680 FGREP \
13681 LD \
13682 NM \
13683 LN_S \
13684 lt_SP2NL \
13685 lt_NL2SP \
13686 reload_flag \
13687 OBJDUMP \
13688 deplibs_check_method \
13689 file_magic_cmd \
13690 file_magic_glob \
13691 want_nocaseglob \
13692 DLLTOOL \
13693 sharedlib_from_linklib_cmd \
13694 AR \
13695 AR_FLAGS \
13696 archiver_list_spec \
13697 STRIP \
13698 RANLIB \
13699 CC \
13700 CFLAGS \
13701 compiler \
13702 lt_cv_sys_global_symbol_pipe \
13703 lt_cv_sys_global_symbol_to_cdecl \
13704 lt_cv_sys_global_symbol_to_c_name_address \
13705 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13706 nm_file_list_spec \
13707 lt_prog_compiler_no_builtin_flag \
13708 lt_prog_compiler_pic \
13709 lt_prog_compiler_wl \
13710 lt_prog_compiler_static \
13711 lt_cv_prog_compiler_c_o \
13712 need_locks \
13713 MANIFEST_TOOL \
13714 DSYMUTIL \
13715 NMEDIT \
13716 LIPO \
13717 OTOOL \
13718 OTOOL64 \
13719 shrext_cmds \
13720 export_dynamic_flag_spec \
13721 whole_archive_flag_spec \
13722 compiler_needs_object \
13723 with_gnu_ld \
13724 allow_undefined_flag \
13725 no_undefined_flag \
13726 hardcode_libdir_flag_spec \
13727 hardcode_libdir_flag_spec_ld \
13728 hardcode_libdir_separator \
13729 exclude_expsyms \
13730 include_expsyms \
13731 file_list_spec \
13732 variables_saved_for_relink \
13733 libname_spec \
13734 library_names_spec \
13735 soname_spec \
13736 install_override_mode \
13737 finish_eval \
13738 old_striplib \
13739 striplib \
13740 AS; do
13741 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13742 *[\\\\\\\`\\"\\\$]*)
13743 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13744 ;;
13745 *)
13746 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13747 ;;
13748 esac
13749 done
13750
13751 # Double-quote double-evaled strings.
13752 for var in reload_cmds \
13753 old_postinstall_cmds \
13754 old_postuninstall_cmds \
13755 old_archive_cmds \
13756 extract_expsyms_cmds \
13757 old_archive_from_new_cmds \
13758 old_archive_from_expsyms_cmds \
13759 archive_cmds \
13760 archive_expsym_cmds \
13761 module_cmds \
13762 module_expsym_cmds \
13763 export_symbols_cmds \
13764 prelink_cmds \
13765 postlink_cmds \
13766 postinstall_cmds \
13767 postuninstall_cmds \
13768 finish_cmds \
13769 sys_lib_search_path_spec \
13770 sys_lib_dlsearch_path_spec; do
13771 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13772 *[\\\\\\\`\\"\\\$]*)
13773 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13774 ;;
13775 *)
13776 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13777 ;;
13778 esac
13779 done
13780
13781 ac_aux_dir='$ac_aux_dir'
13782 xsi_shell='$xsi_shell'
13783 lt_shell_append='$lt_shell_append'
13784
13785 # See if we are running on zsh, and set the options which allow our
13786 # commands through without removal of \ escapes INIT.
13787 if test -n "\${ZSH_VERSION+set}" ; then
13788 setopt NO_GLOB_SUBST
13789 fi
13790
13791
13792 PACKAGE='$PACKAGE'
13793 VERSION='$VERSION'
13794 TIMESTAMP='$TIMESTAMP'
13795 RM='$RM'
13796 ofile='$ofile'
13797
13798
13799
13800
13801 _ACEOF
13802
13803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13804
13805 # Handling of arguments.
13806 for ac_config_target in $ac_config_targets
13807 do
13808 case $ac_config_target in
13809 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13810 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13811 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13812 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13813 "libmng.pc") CONFIG_FILES="$CONFIG_FILES libmng.pc:libmng.pc.in" ;;
13814
13815 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13816 esac
13817 done
13818
13819
13820 # If the user did not use the arguments to specify the items to instantiate,
13821 # then the envvar interface is used. Set only those that are not.
13822 # We use the long form for the default assignment because of an extremely
13823 # bizarre bug on SunOS 4.1.3.
13824 if $ac_need_defaults; then
13825 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13826 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13827 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13828 fi
13829
13830 # Have a temporary directory for convenience. Make it in the build tree
13831 # simply because there is no reason against having it here, and in addition,
13832 # creating and moving files from /tmp can sometimes cause problems.
13833 # Hook for its removal unless debugging.
13834 # Note that there is a small window in which the directory will not be cleaned:
13835 # after its creation but before its name has been assigned to `$tmp'.
13836 $debug ||
13837 {
13838 tmp= ac_tmp=
13839 trap 'exit_status=$?
13840 : "${ac_tmp:=$tmp}"
13841 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13842 ' 0
13843 trap 'as_fn_exit 1' 1 2 13 15
13844 }
13845 # Create a (secure) tmp directory for tmp files.
13846
13847 {
13848 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13849 test -d "$tmp"
13850 } ||
13851 {
13852 tmp=./conf$$-$RANDOM
13853 (umask 077 && mkdir "$tmp")
13854 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13855 ac_tmp=$tmp
13856
13857 # Set up the scripts for CONFIG_FILES section.
13858 # No need to generate them if there are no CONFIG_FILES.
13859 # This happens for instance with `./config.status config.h'.
13860 if test -n "$CONFIG_FILES"; then
13861
13862
13863 ac_cr=`echo X | tr X '\015'`
13864 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13865 # But we know of no other shell where ac_cr would be empty at this
13866 # point, so we can use a bashism as a fallback.
13867 if test "x$ac_cr" = x; then
13868 eval ac_cr=\$\'\\r\'
13869 fi
13870 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13871 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13872 ac_cs_awk_cr='\\r'
13873 else
13874 ac_cs_awk_cr=$ac_cr
13875 fi
13876
13877 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13878 _ACEOF
13879
13880
13881 {
13882 echo "cat >conf$$subs.awk <<_ACEOF" &&
13883 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13884 echo "_ACEOF"
13885 } >conf$$subs.sh ||
13886 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13887 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13888 ac_delim='%!_!# '
13889 for ac_last_try in false false false false false :; do
13890 . ./conf$$subs.sh ||
13891 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13892
13893 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13894 if test $ac_delim_n = $ac_delim_num; then
13895 break
13896 elif $ac_last_try; then
13897 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13898 else
13899 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13900 fi
13901 done
13902 rm -f conf$$subs.sh
13903
13904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13905 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13906 _ACEOF
13907 sed -n '
13908 h
13909 s/^/S["/; s/!.*/"]=/
13910 p
13911 g
13912 s/^[^!]*!//
13913 :repl
13914 t repl
13915 s/'"$ac_delim"'$//
13916 t delim
13917 :nl
13918 h
13919 s/\(.\{148\}\)..*/\1/
13920 t more1
13921 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13922 p
13923 n
13924 b repl
13925 :more1
13926 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13927 p
13928 g
13929 s/.\{148\}//
13930 t nl
13931 :delim
13932 h
13933 s/\(.\{148\}\)..*/\1/
13934 t more2
13935 s/["\\]/\\&/g; s/^/"/; s/$/"/
13936 p
13937 b
13938 :more2
13939 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13940 p
13941 g
13942 s/.\{148\}//
13943 t delim
13944 ' <conf$$subs.awk | sed '
13945 /^[^""]/{
13946 N
13947 s/\n//
13948 }
13949 ' >>$CONFIG_STATUS || ac_write_fail=1
13950 rm -f conf$$subs.awk
13951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13952 _ACAWK
13953 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13954 for (key in S) S_is_set[key] = 1
13955 FS = ""
13956
13957 }
13958 {
13959 line = $ 0
13960 nfields = split(line, field, "@")
13961 substed = 0
13962 len = length(field[1])
13963 for (i = 2; i < nfields; i++) {
13964 key = field[i]
13965 keylen = length(key)
13966 if (S_is_set[key]) {
13967 value = S[key]
13968 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13969 len += length(value) + length(field[++i])
13970 substed = 1
13971 } else
13972 len += 1 + keylen
13973 }
13974
13975 print line
13976 }
13977
13978 _ACAWK
13979 _ACEOF
13980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13981 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13982 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13983 else
13984 cat
13985 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13986 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13987 _ACEOF
13988
13989 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13990 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13991 # trailing colons and then remove the whole line if VPATH becomes empty
13992 # (actually we leave an empty line to preserve line numbers).
13993 if test "x$srcdir" = x.; then
13994 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13995 h
13996 s///
13997 s/^/:/
13998 s/[ ]*$/:/
13999 s/:\$(srcdir):/:/g
14000 s/:\${srcdir}:/:/g
14001 s/:@srcdir@:/:/g
14002 s/^:*//
14003 s/:*$//
14004 x
14005 s/\(=[ ]*\).*/\1/
14006 G
14007 s/\n//
14008 s/^[^=]*=[ ]*$//
14009 }'
14010 fi
14011
14012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14013 fi # test -n "$CONFIG_FILES"
14014
14015 # Set up the scripts for CONFIG_HEADERS section.
14016 # No need to generate them if there are no CONFIG_HEADERS.
14017 # This happens for instance with `./config.status Makefile'.
14018 if test -n "$CONFIG_HEADERS"; then
14019 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14020 BEGIN {
14021 _ACEOF
14022
14023 # Transform confdefs.h into an awk script `defines.awk', embedded as
14024 # here-document in config.status, that substitutes the proper values into
14025 # config.h.in to produce config.h.
14026
14027 # Create a delimiter string that does not exist in confdefs.h, to ease
14028 # handling of long lines.
14029 ac_delim='%!_!# '
14030 for ac_last_try in false false :; do
14031 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14032 if test -z "$ac_tt"; then
14033 break
14034 elif $ac_last_try; then
14035 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14036 else
14037 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14038 fi
14039 done
14040
14041 # For the awk script, D is an array of macro values keyed by name,
14042 # likewise P contains macro parameters if any. Preserve backslash
14043 # newline sequences.
14044
14045 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14046 sed -n '
14047 s/.\{148\}/&'"$ac_delim"'/g
14048 t rset
14049 :rset
14050 s/^[ ]*#[ ]*define[ ][ ]*/ /
14051 t def
14052 d
14053 :def
14054 s/\\$//
14055 t bsnl
14056 s/["\\]/\\&/g
14057 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14058 D["\1"]=" \3"/p
14059 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14060 d
14061 :bsnl
14062 s/["\\]/\\&/g
14063 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14064 D["\1"]=" \3\\\\\\n"\\/p
14065 t cont
14066 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14067 t cont
14068 d
14069 :cont
14070 n
14071 s/.\{148\}/&'"$ac_delim"'/g
14072 t clear
14073 :clear
14074 s/\\$//
14075 t bsnlc
14076 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14077 d
14078 :bsnlc
14079 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14080 b cont
14081 ' <confdefs.h | sed '
14082 s/'"$ac_delim"'/"\\\
14083 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14084
14085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14086 for (key in D) D_is_set[key] = 1
14087 FS = ""
14088 }
14089 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14090 line = \$ 0
14091 split(line, arg, " ")
14092 if (arg[1] == "#") {
14093 defundef = arg[2]
14094 mac1 = arg[3]
14095 } else {
14096 defundef = substr(arg[1], 2)
14097 mac1 = arg[2]
14098 }
14099 split(mac1, mac2, "(") #)
14100 macro = mac2[1]
14101 prefix = substr(line, 1, index(line, defundef) - 1)
14102 if (D_is_set[macro]) {
14103 # Preserve the white space surrounding the "#".
14104 print prefix "define", macro P[macro] D[macro]
14105 next
14106 } else {
14107 # Replace #undef with comments. This is necessary, for example,
14108 # in the case of _POSIX_SOURCE, which is predefined and required
14109 # on some systems where configure will not decide to define it.
14110 if (defundef == "undef") {
14111 print "/*", prefix defundef, macro, "*/"
14112 next
14113 }
14114 }
14115 }
14116 { print }
14117 _ACAWK
14118 _ACEOF
14119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14120 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14121 fi # test -n "$CONFIG_HEADERS"
14122
14123
14124 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14125 shift
14126 for ac_tag
14127 do
14128 case $ac_tag in
14129 :[FHLC]) ac_mode=$ac_tag; continue;;
14130 esac
14131 case $ac_mode$ac_tag in
14132 :[FHL]*:*);;
14133 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14134 :[FH]-) ac_tag=-:-;;
14135 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14136 esac
14137 ac_save_IFS=$IFS
14138 IFS=:
14139 set x $ac_tag
14140 IFS=$ac_save_IFS
14141 shift
14142 ac_file=$1
14143 shift
14144
14145 case $ac_mode in
14146 :L) ac_source=$1;;
14147 :[FH])
14148 ac_file_inputs=
14149 for ac_f
14150 do
14151 case $ac_f in
14152 -) ac_f="$ac_tmp/stdin";;
14153 *) # Look for the file first in the build tree, then in the source tree
14154 # (if the path is not absolute). The absolute path cannot be DOS-style,
14155 # because $ac_f cannot contain `:'.
14156 test -f "$ac_f" ||
14157 case $ac_f in
14158 [\\/$]*) false;;
14159 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14160 esac ||
14161 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14162 esac
14163 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14164 as_fn_append ac_file_inputs " '$ac_f'"
14165 done
14166
14167 # Let's still pretend it is `configure' which instantiates (i.e., don't
14168 # use $as_me), people would be surprised to read:
14169 # /* config.h. Generated by config.status. */
14170 configure_input='Generated from '`
14171 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14172 `' by configure.'
14173 if test x"$ac_file" != x-; then
14174 configure_input="$ac_file. $configure_input"
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14176 $as_echo "$as_me: creating $ac_file" >&6;}
14177 fi
14178 # Neutralize special characters interpreted by sed in replacement strings.
14179 case $configure_input in #(
14180 *\&* | *\|* | *\\* )
14181 ac_sed_conf_input=`$as_echo "$configure_input" |
14182 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14183 *) ac_sed_conf_input=$configure_input;;
14184 esac
14185
14186 case $ac_tag in
14187 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14188 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14189 esac
14190 ;;
14191 esac
14192
14193 ac_dir=`$as_dirname -- "$ac_file" ||
14194 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14195 X"$ac_file" : 'X\(//\)[^/]' \| \
14196 X"$ac_file" : 'X\(//\)$' \| \
14197 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14198 $as_echo X"$ac_file" |
14199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14200 s//\1/
14201 q
14202 }
14203 /^X\(\/\/\)[^/].*/{
14204 s//\1/
14205 q
14206 }
14207 /^X\(\/\/\)$/{
14208 s//\1/
14209 q
14210 }
14211 /^X\(\/\).*/{
14212 s//\1/
14213 q
14214 }
14215 s/.*/./; q'`
14216 as_dir="$ac_dir"; as_fn_mkdir_p
14217 ac_builddir=.
14218
14219 case "$ac_dir" in
14220 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14221 *)
14222 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14223 # A ".." for each directory in $ac_dir_suffix.
14224 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14225 case $ac_top_builddir_sub in
14226 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14227 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14228 esac ;;
14229 esac
14230 ac_abs_top_builddir=$ac_pwd
14231 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14232 # for backward compatibility:
14233 ac_top_builddir=$ac_top_build_prefix
14234
14235 case $srcdir in
14236 .) # We are building in place.
14237 ac_srcdir=.
14238 ac_top_srcdir=$ac_top_builddir_sub
14239 ac_abs_top_srcdir=$ac_pwd ;;
14240 [\\/]* | ?:[\\/]* ) # Absolute name.
14241 ac_srcdir=$srcdir$ac_dir_suffix;
14242 ac_top_srcdir=$srcdir
14243 ac_abs_top_srcdir=$srcdir ;;
14244 *) # Relative name.
14245 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14246 ac_top_srcdir=$ac_top_build_prefix$srcdir
14247 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14248 esac
14249 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14250
14251
14252 case $ac_mode in
14253 :F)
14254 #
14255 # CONFIG_FILE
14256 #
14257
14258 case $INSTALL in
14259 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14260 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14261 esac
14262 ac_MKDIR_P=$MKDIR_P
14263 case $MKDIR_P in
14264 [\\/$]* | ?:[\\/]* ) ;;
14265 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14266 esac
14267 _ACEOF
14268
14269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14270 # If the template does not know about datarootdir, expand it.
14271 # FIXME: This hack should be removed a few years after 2.60.
14272 ac_datarootdir_hack=; ac_datarootdir_seen=
14273 ac_sed_dataroot='
14274 /datarootdir/ {
14275 p
14276 q
14277 }
14278 /@datadir@/p
14279 /@docdir@/p
14280 /@infodir@/p
14281 /@localedir@/p
14282 /@mandir@/p'
14283 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14284 *datarootdir*) ac_datarootdir_seen=yes;;
14285 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14287 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14288 _ACEOF
14289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14290 ac_datarootdir_hack='
14291 s&@datadir@&$datadir&g
14292 s&@docdir@&$docdir&g
14293 s&@infodir@&$infodir&g
14294 s&@localedir@&$localedir&g
14295 s&@mandir@&$mandir&g
14296 s&\\\${datarootdir}&$datarootdir&g' ;;
14297 esac
14298 _ACEOF
14299
14300 # Neutralize VPATH when `$srcdir' = `.'.
14301 # Shell code in configure.ac might set extrasub.
14302 # FIXME: do we really want to maintain this feature?
14303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14304 ac_sed_extra="$ac_vpsub
14305 $extrasub
14306 _ACEOF
14307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14308 :t
14309 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14310 s|@configure_input@|$ac_sed_conf_input|;t t
14311 s&@top_builddir@&$ac_top_builddir_sub&;t t
14312 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14313 s&@srcdir@&$ac_srcdir&;t t
14314 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14315 s&@top_srcdir@&$ac_top_srcdir&;t t
14316 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14317 s&@builddir@&$ac_builddir&;t t
14318 s&@abs_builddir@&$ac_abs_builddir&;t t
14319 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14320 s&@INSTALL@&$ac_INSTALL&;t t
14321 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14322 $ac_datarootdir_hack
14323 "
14324 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14325 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14326
14327 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14328 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14329 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14330 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14332 which seems to be undefined. Please make sure it is defined" >&5
14333 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14334 which seems to be undefined. Please make sure it is defined" >&2;}
14335
14336 rm -f "$ac_tmp/stdin"
14337 case $ac_file in
14338 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14339 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14340 esac \
14341 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14342 ;;
14343 :H)
14344 #
14345 # CONFIG_HEADER
14346 #
14347 if test x"$ac_file" != x-; then
14348 {
14349 $as_echo "/* $configure_input */" \
14350 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14351 } >"$ac_tmp/config.h" \
14352 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14353 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14355 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14356 else
14357 rm -f "$ac_file"
14358 mv "$ac_tmp/config.h" "$ac_file" \
14359 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14360 fi
14361 else
14362 $as_echo "/* $configure_input */" \
14363 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14364 || as_fn_error $? "could not create -" "$LINENO" 5
14365 fi
14366 # Compute "$ac_file"'s index in $config_headers.
14367 _am_arg="$ac_file"
14368 _am_stamp_count=1
14369 for _am_header in $config_headers :; do
14370 case $_am_header in
14371 $_am_arg | $_am_arg:* )
14372 break ;;
14373 * )
14374 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14375 esac
14376 done
14377 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14378 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14379 X"$_am_arg" : 'X\(//\)[^/]' \| \
14380 X"$_am_arg" : 'X\(//\)$' \| \
14381 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14382 $as_echo X"$_am_arg" |
14383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14384 s//\1/
14385 q
14386 }
14387 /^X\(\/\/\)[^/].*/{
14388 s//\1/
14389 q
14390 }
14391 /^X\(\/\/\)$/{
14392 s//\1/
14393 q
14394 }
14395 /^X\(\/\).*/{
14396 s//\1/
14397 q
14398 }
14399 s/.*/./; q'`/stamp-h$_am_stamp_count
14400 ;;
14401
14402 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14403 $as_echo "$as_me: executing $ac_file commands" >&6;}
14404 ;;
14405 esac
14406
14407
14408 case $ac_file$ac_mode in
14409 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14410 # Older Autoconf quotes --file arguments for eval, but not when files
14411 # are listed without --file. Let's play safe and only enable the eval
14412 # if we detect the quoting.
14413 case $CONFIG_FILES in
14414 *\'*) eval set x "$CONFIG_FILES" ;;
14415 *) set x $CONFIG_FILES ;;
14416 esac
14417 shift
14418 for mf
14419 do
14420 # Strip MF so we end up with the name of the file.
14421 mf=`echo "$mf" | sed -e 's/:.*$//'`
14422 # Check whether this is an Automake generated Makefile or not.
14423 # We used to match only the files named 'Makefile.in', but
14424 # some people rename them; so instead we look at the file content.
14425 # Grep'ing the first line is not enough: some people post-process
14426 # each Makefile.in and add a new line on top of each file to say so.
14427 # Grep'ing the whole file is not good either: AIX grep has a line
14428 # limit of 2048, but all sed's we know have understand at least 4000.
14429 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14430 dirpart=`$as_dirname -- "$mf" ||
14431 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14432 X"$mf" : 'X\(//\)[^/]' \| \
14433 X"$mf" : 'X\(//\)$' \| \
14434 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14435 $as_echo X"$mf" |
14436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14437 s//\1/
14438 q
14439 }
14440 /^X\(\/\/\)[^/].*/{
14441 s//\1/
14442 q
14443 }
14444 /^X\(\/\/\)$/{
14445 s//\1/
14446 q
14447 }
14448 /^X\(\/\).*/{
14449 s//\1/
14450 q
14451 }
14452 s/.*/./; q'`
14453 else
14454 continue
14455 fi
14456 # Extract the definition of DEPDIR, am__include, and am__quote
14457 # from the Makefile without running 'make'.
14458 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14459 test -z "$DEPDIR" && continue
14460 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14461 test -z "am__include" && continue
14462 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14463 # Find all dependency output files, they are included files with
14464 # $(DEPDIR) in their names. We invoke sed twice because it is the
14465 # simplest approach to changing $(DEPDIR) to its actual value in the
14466 # expansion.
14467 for file in `sed -n "
14468 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14469 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14470 # Make sure the directory exists.
14471 test -f "$dirpart/$file" && continue
14472 fdir=`$as_dirname -- "$file" ||
14473 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14474 X"$file" : 'X\(//\)[^/]' \| \
14475 X"$file" : 'X\(//\)$' \| \
14476 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14477 $as_echo X"$file" |
14478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14479 s//\1/
14480 q
14481 }
14482 /^X\(\/\/\)[^/].*/{
14483 s//\1/
14484 q
14485 }
14486 /^X\(\/\/\)$/{
14487 s//\1/
14488 q
14489 }
14490 /^X\(\/\).*/{
14491 s//\1/
14492 q
14493 }
14494 s/.*/./; q'`
14495 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14496 # echo "creating $dirpart/$file"
14497 echo '# dummy' > "$dirpart/$file"
14498 done
14499 done
14500 }
14501 ;;
14502 "libtool":C)
14503
14504 # See if we are running on zsh, and set the options which allow our
14505 # commands through without removal of \ escapes.
14506 if test -n "${ZSH_VERSION+set}" ; then
14507 setopt NO_GLOB_SUBST
14508 fi
14509
14510 cfgfile="${ofile}T"
14511 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14512 $RM "$cfgfile"
14513
14514 cat <<_LT_EOF >> "$cfgfile"
14515 #! $SHELL
14516
14517 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14518 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14519 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14520 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14521 #
14522 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14523 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14524 # Inc.
14525 # Written by Gordon Matzigkeit, 1996
14526 #
14527 # This file is part of GNU Libtool.
14528 #
14529 # GNU Libtool is free software; you can redistribute it and/or
14530 # modify it under the terms of the GNU General Public License as
14531 # published by the Free Software Foundation; either version 2 of
14532 # the License, or (at your option) any later version.
14533 #
14534 # As a special exception to the GNU General Public License,
14535 # if you distribute this file as part of a program or library that
14536 # is built using GNU Libtool, you may include this file under the
14537 # same distribution terms that you use for the rest of that program.
14538 #
14539 # GNU Libtool is distributed in the hope that it will be useful,
14540 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14541 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14542 # GNU General Public License for more details.
14543 #
14544 # You should have received a copy of the GNU General Public License
14545 # along with GNU Libtool; see the file COPYING. If not, a copy
14546 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14547 # obtained by writing to the Free Software Foundation, Inc.,
14548 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14549
14550
14551 # The names of the tagged configurations supported by this script.
14552 available_tags=""
14553
14554 # ### BEGIN LIBTOOL CONFIG
14555
14556 # Which release of libtool.m4 was used?
14557 macro_version=$macro_version
14558 macro_revision=$macro_revision
14559
14560 # Whether or not to build shared libraries.
14561 build_libtool_libs=$enable_shared
14562
14563 # Whether or not to build static libraries.
14564 build_old_libs=$enable_static
14565
14566 # What type of objects to build.
14567 pic_mode=$pic_mode
14568
14569 # Whether or not to optimize for fast installation.
14570 fast_install=$enable_fast_install
14571
14572 # Shell to use when invoking shell scripts.
14573 SHELL=$lt_SHELL
14574
14575 # An echo program that protects backslashes.
14576 ECHO=$lt_ECHO
14577
14578 # The host system.
14579 host_alias=$host_alias
14580 host=$host
14581 host_os=$host_os
14582
14583 # The build system.
14584 build_alias=$build_alias
14585 build=$build
14586 build_os=$build_os
14587
14588 # A sed program that does not truncate output.
14589 SED=$lt_SED
14590
14591 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14592 Xsed="\$SED -e 1s/^X//"
14593
14594 # A grep program that handles long lines.
14595 GREP=$lt_GREP
14596
14597 # An ERE matcher.
14598 EGREP=$lt_EGREP
14599
14600 # A literal string matcher.
14601 FGREP=$lt_FGREP
14602
14603 # A BSD- or MS-compatible name lister.
14604 NM=$lt_NM
14605
14606 # Whether we need soft or hard links.
14607 LN_S=$lt_LN_S
14608
14609 # What is the maximum length of a command?
14610 max_cmd_len=$max_cmd_len
14611
14612 # Object file suffix (normally "o").
14613 objext=$ac_objext
14614
14615 # Executable file suffix (normally "").
14616 exeext=$exeext
14617
14618 # whether the shell understands "unset".
14619 lt_unset=$lt_unset
14620
14621 # turn spaces into newlines.
14622 SP2NL=$lt_lt_SP2NL
14623
14624 # turn newlines into spaces.
14625 NL2SP=$lt_lt_NL2SP
14626
14627 # convert \$build file names to \$host format.
14628 to_host_file_cmd=$lt_cv_to_host_file_cmd
14629
14630 # convert \$build files to toolchain format.
14631 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14632
14633 # An object symbol dumper.
14634 OBJDUMP=$lt_OBJDUMP
14635
14636 # Method to check whether dependent libraries are shared objects.
14637 deplibs_check_method=$lt_deplibs_check_method
14638
14639 # Command to use when deplibs_check_method = "file_magic".
14640 file_magic_cmd=$lt_file_magic_cmd
14641
14642 # How to find potential files when deplibs_check_method = "file_magic".
14643 file_magic_glob=$lt_file_magic_glob
14644
14645 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14646 want_nocaseglob=$lt_want_nocaseglob
14647
14648 # DLL creation program.
14649 DLLTOOL=$lt_DLLTOOL
14650
14651 # Command to associate shared and link libraries.
14652 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14653
14654 # The archiver.
14655 AR=$lt_AR
14656
14657 # Flags to create an archive.
14658 AR_FLAGS=$lt_AR_FLAGS
14659
14660 # How to feed a file listing to the archiver.
14661 archiver_list_spec=$lt_archiver_list_spec
14662
14663 # A symbol stripping program.
14664 STRIP=$lt_STRIP
14665
14666 # Commands used to install an old-style archive.
14667 RANLIB=$lt_RANLIB
14668 old_postinstall_cmds=$lt_old_postinstall_cmds
14669 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14670
14671 # Whether to use a lock for old archive extraction.
14672 lock_old_archive_extraction=$lock_old_archive_extraction
14673
14674 # A C compiler.
14675 LTCC=$lt_CC
14676
14677 # LTCC compiler flags.
14678 LTCFLAGS=$lt_CFLAGS
14679
14680 # Take the output of nm and produce a listing of raw symbols and C names.
14681 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14682
14683 # Transform the output of nm in a proper C declaration.
14684 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14685
14686 # Transform the output of nm in a C name address pair.
14687 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14688
14689 # Transform the output of nm in a C name address pair when lib prefix is needed.
14690 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14691
14692 # Specify filename containing input files for \$NM.
14693 nm_file_list_spec=$lt_nm_file_list_spec
14694
14695 # The root where to search for dependent libraries,and in which our libraries should be installed.
14696 lt_sysroot=$lt_sysroot
14697
14698 # The name of the directory that contains temporary libtool files.
14699 objdir=$objdir
14700
14701 # Used to examine libraries when file_magic_cmd begins with "file".
14702 MAGIC_CMD=$MAGIC_CMD
14703
14704 # Must we lock files when doing compilation?
14705 need_locks=$lt_need_locks
14706
14707 # Manifest tool.
14708 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14709
14710 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14711 DSYMUTIL=$lt_DSYMUTIL
14712
14713 # Tool to change global to local symbols on Mac OS X.
14714 NMEDIT=$lt_NMEDIT
14715
14716 # Tool to manipulate fat objects and archives on Mac OS X.
14717 LIPO=$lt_LIPO
14718
14719 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14720 OTOOL=$lt_OTOOL
14721
14722 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14723 OTOOL64=$lt_OTOOL64
14724
14725 # Old archive suffix (normally "a").
14726 libext=$libext
14727
14728 # Shared library suffix (normally ".so").
14729 shrext_cmds=$lt_shrext_cmds
14730
14731 # The commands to extract the exported symbol list from a shared archive.
14732 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14733
14734 # Variables whose values should be saved in libtool wrapper scripts and
14735 # restored at link time.
14736 variables_saved_for_relink=$lt_variables_saved_for_relink
14737
14738 # Do we need the "lib" prefix for modules?
14739 need_lib_prefix=$need_lib_prefix
14740
14741 # Do we need a version for libraries?
14742 need_version=$need_version
14743
14744 # Library versioning type.
14745 version_type=$version_type
14746
14747 # Shared library runtime path variable.
14748 runpath_var=$runpath_var
14749
14750 # Shared library path variable.
14751 shlibpath_var=$shlibpath_var
14752
14753 # Is shlibpath searched before the hard-coded library search path?
14754 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14755
14756 # Format of library name prefix.
14757 libname_spec=$lt_libname_spec
14758
14759 # List of archive names. First name is the real one, the rest are links.
14760 # The last name is the one that the linker finds with -lNAME
14761 library_names_spec=$lt_library_names_spec
14762
14763 # The coded name of the library, if different from the real name.
14764 soname_spec=$lt_soname_spec
14765
14766 # Permission mode override for installation of shared libraries.
14767 install_override_mode=$lt_install_override_mode
14768
14769 # Command to use after installation of a shared archive.
14770 postinstall_cmds=$lt_postinstall_cmds
14771
14772 # Command to use after uninstallation of a shared archive.
14773 postuninstall_cmds=$lt_postuninstall_cmds
14774
14775 # Commands used to finish a libtool library installation in a directory.
14776 finish_cmds=$lt_finish_cmds
14777
14778 # As "finish_cmds", except a single script fragment to be evaled but
14779 # not shown.
14780 finish_eval=$lt_finish_eval
14781
14782 # Whether we should hardcode library paths into libraries.
14783 hardcode_into_libs=$hardcode_into_libs
14784
14785 # Compile-time system search path for libraries.
14786 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14787
14788 # Run-time system search path for libraries.
14789 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14790
14791 # Whether dlopen is supported.
14792 dlopen_support=$enable_dlopen
14793
14794 # Whether dlopen of programs is supported.
14795 dlopen_self=$enable_dlopen_self
14796
14797 # Whether dlopen of statically linked programs is supported.
14798 dlopen_self_static=$enable_dlopen_self_static
14799
14800 # Commands to strip libraries.
14801 old_striplib=$lt_old_striplib
14802 striplib=$lt_striplib
14803
14804 # Assembler program.
14805 AS=$lt_AS
14806
14807
14808 # The linker used to build libraries.
14809 LD=$lt_LD
14810
14811 # How to create reloadable object files.
14812 reload_flag=$lt_reload_flag
14813 reload_cmds=$lt_reload_cmds
14814
14815 # Commands used to build an old-style archive.
14816 old_archive_cmds=$lt_old_archive_cmds
14817
14818 # A language specific compiler.
14819 CC=$lt_compiler
14820
14821 # Is the compiler the GNU compiler?
14822 with_gcc=$GCC
14823
14824 # Compiler flag to turn off builtin functions.
14825 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14826
14827 # Additional compiler flags for building library objects.
14828 pic_flag=$lt_lt_prog_compiler_pic
14829
14830 # How to pass a linker flag through the compiler.
14831 wl=$lt_lt_prog_compiler_wl
14832
14833 # Compiler flag to prevent dynamic linking.
14834 link_static_flag=$lt_lt_prog_compiler_static
14835
14836 # Does compiler simultaneously support -c and -o options?
14837 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14838
14839 # Whether or not to add -lc for building shared libraries.
14840 build_libtool_need_lc=$archive_cmds_need_lc
14841
14842 # Whether or not to disallow shared libs when runtime libs are static.
14843 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14844
14845 # Compiler flag to allow reflexive dlopens.
14846 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14847
14848 # Compiler flag to generate shared objects directly from archives.
14849 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14850
14851 # Whether the compiler copes with passing no objects directly.
14852 compiler_needs_object=$lt_compiler_needs_object
14853
14854 # Create an old-style archive from a shared archive.
14855 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14856
14857 # Create a temporary old-style archive to link instead of a shared archive.
14858 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14859
14860 # Commands used to build a shared archive.
14861 archive_cmds=$lt_archive_cmds
14862 archive_expsym_cmds=$lt_archive_expsym_cmds
14863
14864 # Commands used to build a loadable module if different from building
14865 # a shared archive.
14866 module_cmds=$lt_module_cmds
14867 module_expsym_cmds=$lt_module_expsym_cmds
14868
14869 # Whether we are building with GNU ld or not.
14870 with_gnu_ld=$lt_with_gnu_ld
14871
14872 # Flag that allows shared libraries with undefined symbols to be built.
14873 allow_undefined_flag=$lt_allow_undefined_flag
14874
14875 # Flag that enforces no undefined symbols.
14876 no_undefined_flag=$lt_no_undefined_flag
14877
14878 # Flag to hardcode \$libdir into a binary during linking.
14879 # This must work even if \$libdir does not exist
14880 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14881
14882 # If ld is used when linking, flag to hardcode \$libdir into a binary
14883 # during linking. This must work even if \$libdir does not exist.
14884 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14885
14886 # Whether we need a single "-rpath" flag with a separated argument.
14887 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14888
14889 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14890 # DIR into the resulting binary.
14891 hardcode_direct=$hardcode_direct
14892
14893 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14894 # DIR into the resulting binary and the resulting library dependency is
14895 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14896 # library is relocated.
14897 hardcode_direct_absolute=$hardcode_direct_absolute
14898
14899 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14900 # into the resulting binary.
14901 hardcode_minus_L=$hardcode_minus_L
14902
14903 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14904 # into the resulting binary.
14905 hardcode_shlibpath_var=$hardcode_shlibpath_var
14906
14907 # Set to "yes" if building a shared library automatically hardcodes DIR
14908 # into the library and all subsequent libraries and executables linked
14909 # against it.
14910 hardcode_automatic=$hardcode_automatic
14911
14912 # Set to yes if linker adds runtime paths of dependent libraries
14913 # to runtime path list.
14914 inherit_rpath=$inherit_rpath
14915
14916 # Whether libtool must link a program against all its dependency libraries.
14917 link_all_deplibs=$link_all_deplibs
14918
14919 # Set to "yes" if exported symbols are required.
14920 always_export_symbols=$always_export_symbols
14921
14922 # The commands to list exported symbols.
14923 export_symbols_cmds=$lt_export_symbols_cmds
14924
14925 # Symbols that should not be listed in the preloaded symbols.
14926 exclude_expsyms=$lt_exclude_expsyms
14927
14928 # Symbols that must always be exported.
14929 include_expsyms=$lt_include_expsyms
14930
14931 # Commands necessary for linking programs (against libraries) with templates.
14932 prelink_cmds=$lt_prelink_cmds
14933
14934 # Commands necessary for finishing linking programs.
14935 postlink_cmds=$lt_postlink_cmds
14936
14937 # Specify filename containing input files.
14938 file_list_spec=$lt_file_list_spec
14939
14940 # How to hardcode a shared library path into an executable.
14941 hardcode_action=$hardcode_action
14942
14943 # ### END LIBTOOL CONFIG
14944
14945 _LT_EOF
14946
14947 case $host_os in
14948 aix3*)
14949 cat <<\_LT_EOF >> "$cfgfile"
14950 # AIX sometimes has problems with the GCC collect2 program. For some
14951 # reason, if we set the COLLECT_NAMES environment variable, the problems
14952 # vanish in a puff of smoke.
14953 if test "X${COLLECT_NAMES+set}" != Xset; then
14954 COLLECT_NAMES=
14955 export COLLECT_NAMES
14956 fi
14957 _LT_EOF
14958 ;;
14959 esac
14960
14961
14962 ltmain="$ac_aux_dir/ltmain.sh"
14963
14964
14965 # We use sed instead of cat because bash on DJGPP gets confused if
14966 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14967 # text mode, it properly converts lines to CR/LF. This bash problem
14968 # is reportedly fixed, but why not run on old versions too?
14969 sed '$q' "$ltmain" >> "$cfgfile" \
14970 || (rm -f "$cfgfile"; exit 1)
14971
14972 if test x"$xsi_shell" = xyes; then
14973 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14974 func_dirname ()\
14975 {\
14976 \ case ${1} in\
14977 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14978 \ * ) func_dirname_result="${3}" ;;\
14979 \ esac\
14980 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14981 && mv -f "$cfgfile.tmp" "$cfgfile" \
14982 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14983 test 0 -eq $? || _lt_function_replace_fail=:
14984
14985
14986 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14987 func_basename ()\
14988 {\
14989 \ func_basename_result="${1##*/}"\
14990 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14991 && mv -f "$cfgfile.tmp" "$cfgfile" \
14992 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14993 test 0 -eq $? || _lt_function_replace_fail=:
14994
14995
14996 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14997 func_dirname_and_basename ()\
14998 {\
14999 \ case ${1} in\
15000 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15001 \ * ) func_dirname_result="${3}" ;;\
15002 \ esac\
15003 \ func_basename_result="${1##*/}"\
15004 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15005 && mv -f "$cfgfile.tmp" "$cfgfile" \
15006 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15007 test 0 -eq $? || _lt_function_replace_fail=:
15008
15009
15010 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15011 func_stripname ()\
15012 {\
15013 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15014 \ # positional parameters, so assign one to ordinary parameter first.\
15015 \ func_stripname_result=${3}\
15016 \ func_stripname_result=${func_stripname_result#"${1}"}\
15017 \ func_stripname_result=${func_stripname_result%"${2}"}\
15018 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15019 && mv -f "$cfgfile.tmp" "$cfgfile" \
15020 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15021 test 0 -eq $? || _lt_function_replace_fail=:
15022
15023
15024 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15025 func_split_long_opt ()\
15026 {\
15027 \ func_split_long_opt_name=${1%%=*}\
15028 \ func_split_long_opt_arg=${1#*=}\
15029 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15030 && mv -f "$cfgfile.tmp" "$cfgfile" \
15031 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15032 test 0 -eq $? || _lt_function_replace_fail=:
15033
15034
15035 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15036 func_split_short_opt ()\
15037 {\
15038 \ func_split_short_opt_arg=${1#??}\
15039 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15040 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15041 && mv -f "$cfgfile.tmp" "$cfgfile" \
15042 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15043 test 0 -eq $? || _lt_function_replace_fail=:
15044
15045
15046 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15047 func_lo2o ()\
15048 {\
15049 \ case ${1} in\
15050 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15051 \ *) func_lo2o_result=${1} ;;\
15052 \ esac\
15053 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15054 && mv -f "$cfgfile.tmp" "$cfgfile" \
15055 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15056 test 0 -eq $? || _lt_function_replace_fail=:
15057
15058
15059 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15060 func_xform ()\
15061 {\
15062 func_xform_result=${1%.*}.lo\
15063 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15064 && mv -f "$cfgfile.tmp" "$cfgfile" \
15065 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15066 test 0 -eq $? || _lt_function_replace_fail=:
15067
15068
15069 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15070 func_arith ()\
15071 {\
15072 func_arith_result=$(( $* ))\
15073 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15074 && mv -f "$cfgfile.tmp" "$cfgfile" \
15075 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15076 test 0 -eq $? || _lt_function_replace_fail=:
15077
15078
15079 sed -e '/^func_len ()$/,/^} # func_len /c\
15080 func_len ()\
15081 {\
15082 func_len_result=${#1}\
15083 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15084 && mv -f "$cfgfile.tmp" "$cfgfile" \
15085 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15086 test 0 -eq $? || _lt_function_replace_fail=:
15087
15088 fi
15089
15090 if test x"$lt_shell_append" = xyes; then
15091 sed -e '/^func_append ()$/,/^} # func_append /c\
15092 func_append ()\
15093 {\
15094 eval "${1}+=\\${2}"\
15095 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15096 && mv -f "$cfgfile.tmp" "$cfgfile" \
15097 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15098 test 0 -eq $? || _lt_function_replace_fail=:
15099
15100
15101 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15102 func_append_quoted ()\
15103 {\
15104 \ func_quote_for_eval "${2}"\
15105 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15106 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15107 && mv -f "$cfgfile.tmp" "$cfgfile" \
15108 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15109 test 0 -eq $? || _lt_function_replace_fail=:
15110
15111
15112 # Save a `func_append' function call where possible by direct use of '+='
15113 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15114 && mv -f "$cfgfile.tmp" "$cfgfile" \
15115 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15116 test 0 -eq $? || _lt_function_replace_fail=:
15117 else
15118 # Save a `func_append' function call even when '+=' is not available
15119 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15120 && mv -f "$cfgfile.tmp" "$cfgfile" \
15121 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15122 test 0 -eq $? || _lt_function_replace_fail=:
15123 fi
15124
15125 if test x"$_lt_function_replace_fail" = x":"; then
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15127 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15128 fi
15129
15130
15131 mv -f "$cfgfile" "$ofile" ||
15132 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15133 chmod +x "$ofile"
15134
15135 ;;
15136
15137 esac
15138 done # for ac_tag
15139
15140
15141 as_fn_exit 0
15142 _ACEOF
15143 ac_clean_files=$ac_clean_files_save
15144
15145 test $ac_write_fail = 0 ||
15146 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15147
15148
15149 # configure is writing to config.log, and then calls config.status.
15150 # config.status does its own redirection, appending to config.log.
15151 # Unfortunately, on DOS this fails, as config.log is still kept open
15152 # by configure, so config.status won't be able to write to it; its
15153 # output is simply discarded. So we exec the FD to /dev/null,
15154 # effectively closing config.log, so it can be properly (re)opened and
15155 # appended to by config.status. When coming back to configure, we
15156 # need to make the FD available again.
15157 if test "$no_create" != yes; then
15158 ac_cs_success=:
15159 ac_config_status_args=
15160 test "$silent" = yes &&
15161 ac_config_status_args="$ac_config_status_args --quiet"
15162 exec 5>/dev/null
15163 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15164 exec 5>>config.log
15165 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15166 # would make configure fail if this is the last instruction.
15167 $ac_cs_success || as_fn_exit 1
15168 fi
15169 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15171 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15172 fi
15173