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 libotf 0.9.16.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and [email protected]
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libotf'
592 PACKAGE_TARNAME='libotf'
593 PACKAGE_VERSION='0.9.16'
594 PACKAGE_STRING='libotf 0.9.16'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 X11_XT_XAW_XMU
638 FREETYPE_LD_FLAGS
639 FREETYPE_INC
640 HAVE_FREETYPE_CONFIG
641 LIBOBJS
642 ALLOCA
643 X11_UNAVAILABLE_FALSE
644 X11_UNAVAILABLE_TRUE
645 X_EXTRA_LIBS
646 X_LIBS
647 X_PRE_LIBS
648 X_CFLAGS
649 XMKMF
650 CPP
651 LT_SYS_LIBRARY_PATH
652 OTOOL64
653 OTOOL
654 LIPO
655 NMEDIT
656 DSYMUTIL
657 MANIFEST_TOOL
658 RANLIB
659 ac_ct_AR
660 AR
661 DLLTOOL
662 OBJDUMP
663 LN_S
664 NM
665 ac_ct_DUMPBIN
666 DUMPBIN
667 LD
668 FGREP
669 EGREP
670 GREP
671 SED
672 host_os
673 host_vendor
674 host_cpu
675 host
676 build_os
677 build_vendor
678 build_cpu
679 build
680 LIBTOOL
681 am__fastdepCC_FALSE
682 am__fastdepCC_TRUE
683 CCDEPMODE
684 am__nodep
685 AMDEPBACKSLASH
686 AMDEP_FALSE
687 AMDEP_TRUE
688 am__quote
689 am__include
690 DEPDIR
691 OBJEXT
692 EXEEXT
693 ac_ct_CC
694 CPPFLAGS
695 LDFLAGS
696 CFLAGS
697 CC
698 AM_BACKSLASH
699 AM_DEFAULT_VERBOSITY
700 AM_DEFAULT_V
701 AM_V
702 am__untar
703 am__tar
704 AMTAR
705 am__leading_dot
706 SET_MAKE
707 AWK
708 mkdir_p
709 MKDIR_P
710 INSTALL_STRIP_PROGRAM
711 STRIP
712 install_sh
713 MAKEINFO
714 AUTOHEADER
715 AUTOMAKE
716 AUTOCONF
717 ACLOCAL
718 VERSION
719 PACKAGE
720 CYGPATH_W
721 am__isrc
722 INSTALL_DATA
723 INSTALL_SCRIPT
724 INSTALL_PROGRAM
725 target_alias
726 host_alias
727 build_alias
728 LIBS
729 ECHO_T
730 ECHO_N
731 ECHO_C
732 DEFS
733 mandir
734 localedir
735 libdir
736 psdir
737 pdfdir
738 dvidir
739 htmldir
740 infodir
741 docdir
742 oldincludedir
743 includedir
744 runstatedir
745 localstatedir
746 sharedstatedir
747 sysconfdir
748 datadir
749 datarootdir
750 libexecdir
751 sbindir
752 bindir
753 program_transform_name
754 prefix
755 exec_prefix
756 PACKAGE_URL
757 PACKAGE_BUGREPORT
758 PACKAGE_STRING
759 PACKAGE_VERSION
760 PACKAGE_TARNAME
761 PACKAGE_NAME
762 PATH_SEPARATOR
763 SHELL'
764 ac_subst_files=''
765 ac_user_opts='
766 enable_option_checking
767 enable_silent_rules
768 enable_dependency_tracking
769 enable_shared
770 enable_static
771 with_pic
772 enable_fast_install
773 with_aix_soname
774 with_gnu_ld
775 with_sysroot
776 enable_libtool_lock
777 with_x
778 '
779 ac_precious_vars='build_alias
780 host_alias
781 target_alias
782 CC
783 CFLAGS
784 LDFLAGS
785 LIBS
786 CPPFLAGS
787 LT_SYS_LIBRARY_PATH
788 CPP
789 XMKMF'
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 runstatedir='${localstatedir}/run'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
840
841 ac_prev=
842 ac_dashdash=
843 for ac_option
844 do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
850 fi
851
852 case $ac_option in
853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *=) ac_optarg= ;;
855 *) ac_optarg=yes ;;
856 esac
857
858 # Accept the important Cygnus configure options, so we can diagnose typos.
859
860 case $ac_dashdash$ac_option in
861 --)
862 ac_dashdash=yes ;;
863
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 ac_prev=bindir ;;
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867 bindir=$ac_optarg ;;
868
869 -build | --build | --buil | --bui | --bu)
870 ac_prev=build_alias ;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias=$ac_optarg ;;
873
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file=$ac_optarg ;;
880
881 --config-cache | -C)
882 cache_file=config.cache ;;
883
884 -datadir | --datadir | --datadi | --datad)
885 ac_prev=datadir ;;
886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
887 datadir=$ac_optarg ;;
888
889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
895
896 -disable-* | --disable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 as_fn_error $? "invalid feature name: $ac_useropt"
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
904 *"
905 "enable_$ac_useropt"
906 "*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=no ;;
911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
921
922 -enable-* | --enable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=\$ac_optarg ;;
937
938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940 | --exec | --exe | --ex)
941 ac_prev=exec_prefix ;;
942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944 | --exec=* | --exe=* | --ex=*)
945 exec_prefix=$ac_optarg ;;
946
947 -gas | --gas | --ga | --g)
948 # Obsolete; use --with-gas.
949 with_gas=yes ;;
950
951 -help | --help | --hel | --he | -h)
952 ac_init_help=long ;;
953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954 ac_init_help=recursive ;;
955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956 ac_init_help=short ;;
957
958 -host | --host | --hos | --ho)
959 ac_prev=host_alias ;;
960 -host=* | --host=* | --hos=* | --ho=*)
961 host_alias=$ac_optarg ;;
962
963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 ac_prev=htmldir ;;
965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 | --ht=*)
967 htmldir=$ac_optarg ;;
968
969 -includedir | --includedir | --includedi | --included | --include \
970 | --includ | --inclu | --incl | --inc)
971 ac_prev=includedir ;;
972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973 | --includ=* | --inclu=* | --incl=* | --inc=*)
974 includedir=$ac_optarg ;;
975
976 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 ac_prev=infodir ;;
978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979 infodir=$ac_optarg ;;
980
981 -libdir | --libdir | --libdi | --libd)
982 ac_prev=libdir ;;
983 -libdir=* | --libdir=* | --libdi=* | --libd=*)
984 libdir=$ac_optarg ;;
985
986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987 | --libexe | --libex | --libe)
988 ac_prev=libexecdir ;;
989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990 | --libexe=* | --libex=* | --libe=*)
991 libexecdir=$ac_optarg ;;
992
993 -localedir | --localedir | --localedi | --localed | --locale)
994 ac_prev=localedir ;;
995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996 localedir=$ac_optarg ;;
997
998 -localstatedir | --localstatedir | --localstatedi | --localstated \
999 | --localstate | --localstat | --localsta | --localst | --locals)
1000 ac_prev=localstatedir ;;
1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003 localstatedir=$ac_optarg ;;
1004
1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 ac_prev=mandir ;;
1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008 mandir=$ac_optarg ;;
1009
1010 -nfp | --nfp | --nf)
1011 # Obsolete; use --without-fp.
1012 with_fp=no ;;
1013
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n)
1016 no_create=yes ;;
1017
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020 no_recursion=yes ;;
1021
1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024 | --oldin | --oldi | --old | --ol | --o)
1025 ac_prev=oldincludedir ;;
1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029 oldincludedir=$ac_optarg ;;
1030
1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 ac_prev=prefix ;;
1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034 prefix=$ac_optarg ;;
1035
1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037 | --program-pre | --program-pr | --program-p)
1038 ac_prev=program_prefix ;;
1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041 program_prefix=$ac_optarg ;;
1042
1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044 | --program-suf | --program-su | --program-s)
1045 ac_prev=program_suffix ;;
1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048 program_suffix=$ac_optarg ;;
1049
1050 -program-transform-name | --program-transform-name \
1051 | --program-transform-nam | --program-transform-na \
1052 | --program-transform-n | --program-transform- \
1053 | --program-transform | --program-transfor \
1054 | --program-transfo | --program-transf \
1055 | --program-trans | --program-tran \
1056 | --progr-tra | --program-tr | --program-t)
1057 ac_prev=program_transform_name ;;
1058 -program-transform-name=* | --program-transform-name=* \
1059 | --program-transform-nam=* | --program-transform-na=* \
1060 | --program-transform-n=* | --program-transform-=* \
1061 | --program-transform=* | --program-transfor=* \
1062 | --program-transfo=* | --program-transf=* \
1063 | --program-trans=* | --program-tran=* \
1064 | --progr-tra=* | --program-tr=* | --program-t=*)
1065 program_transform_name=$ac_optarg ;;
1066
1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 ac_prev=pdfdir ;;
1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070 pdfdir=$ac_optarg ;;
1071
1072 -psdir | --psdir | --psdi | --psd | --ps)
1073 ac_prev=psdir ;;
1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075 psdir=$ac_optarg ;;
1076
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 silent=yes ;;
1080
1081 -runstatedir | --runstatedir | --runstatedi | --runstated \
1082 | --runstate | --runstat | --runsta | --runst | --runs \
1083 | --run | --ru | --r)
1084 ac_prev=runstatedir ;;
1085 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1086 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1087 | --run=* | --ru=* | --r=*)
1088 runstatedir=$ac_optarg ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1111
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1134
1135 -with-* | --with-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=\$ac_optarg ;;
1150
1151 -without-* | --without-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=no ;;
1166
1167 --x)
1168 # Obsolete; use --with-x.
1169 with_x=yes ;;
1170
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1177
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1184
1185 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1186 Try \`$0 --help' for more information"
1187 ;;
1188
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 case $ac_envvar in #(
1193 '' | [0-9]* | *[!_$as_cr_alnum]* )
1194 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1195 esac
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1198
1199 *)
1200 # FIXME: should be removed in autoconf 3.0.
1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1205 ;;
1206
1207 esac
1208 done
1209
1210 if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212 as_fn_error $? "missing argument to $ac_option"
1213 fi
1214
1215 if test -n "$ac_unrecognized_opts"; then
1216 case $enable_option_checking in
1217 no) ;;
1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1219 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220 esac
1221 fi
1222
1223 # Check all directory arguments for consistency.
1224 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225 datadir sysconfdir sharedstatedir localstatedir includedir \
1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227 libdir localedir mandir runstatedir
1228 do
1229 eval ac_val=\$$ac_var
1230 # Remove trailing slashes.
1231 case $ac_val in
1232 */ )
1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234 eval $ac_var=\$ac_val;;
1235 esac
1236 # Be sure to have absolute directory names.
1237 case $ac_val in
1238 [\\/$]* | ?:[\\/]* ) continue;;
1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1240 esac
1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1242 done
1243
1244 # There might be people who depend on the old broken behavior: `$host'
1245 # used to hold the argument of --host etc.
1246 # FIXME: To remove some day.
1247 build=$build_alias
1248 host=$host_alias
1249 target=$target_alias
1250
1251 # FIXME: To remove some day.
1252 if test "x$host_alias" != x; then
1253 if test "x$build_alias" = x; then
1254 cross_compiling=maybe
1255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1257 fi
1258 fi
1259
1260 ac_tool_prefix=
1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263 test "$silent" = yes && exec 6>/dev/null
1264
1265
1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di=`ls -di .` &&
1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error $? "working directory cannot be determined"
1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error $? "pwd does not report name of working directory"
1272
1273
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283 $as_echo X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)[^/].*/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\).*/{
1297 s//\1/
1298 q
1299 }
1300 s/.*/./; q'`
1301 srcdir=$ac_confdir
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 srcdir=..
1304 fi
1305 else
1306 ac_srcdir_defaulted=no
1307 fi
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311 fi
1312 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313 ac_abs_confdir=`(
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315 pwd)`
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 srcdir=.
1319 fi
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1323 case $srcdir in
1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325 esac
1326 for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 done
1332
1333 #
1334 # Report the --help message.
1335 #
1336 if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1339 cat <<_ACEOF
1340 \`configure' configures libotf 0.9.16 to adapt to many kinds of systems.
1341
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1343
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE. See below for descriptions of some of the useful variables.
1346
1347 Defaults for the options are specified in brackets.
1348
1349 Configuration:
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print \`checking ...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359
1360 Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 [PREFIX]
1365
1366 By default, \`make install' will install all the files in
1367 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369 for instance \`--prefix=\$HOME'.
1370
1371 For better control, use the options below.
1372
1373 Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1381 --libdir=DIR object code libraries [EPREFIX/lib]
1382 --includedir=DIR C header files [PREFIX/include]
1383 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386 --infodir=DIR info documentation [DATAROOTDIR/info]
1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388 --mandir=DIR man documentation [DATAROOTDIR/man]
1389 --docdir=DIR documentation root [DATAROOTDIR/doc/libotf]
1390 --htmldir=DIR html documentation [DOCDIR]
1391 --dvidir=DIR dvi documentation [DOCDIR]
1392 --pdfdir=DIR pdf documentation [DOCDIR]
1393 --psdir=DIR ps documentation [DOCDIR]
1394 _ACEOF
1395
1396 cat <<\_ACEOF
1397
1398 Program names:
1399 --program-prefix=PREFIX prepend PREFIX to installed program names
1400 --program-suffix=SUFFIX append SUFFIX to installed program names
1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1402
1403 X features:
1404 --x-includes=DIR X include files are in DIR
1405 --x-libraries=DIR X library files are in DIR
1406
1407 System types:
1408 --build=BUILD configure for building on BUILD [guessed]
1409 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1410 _ACEOF
1411 fi
1412
1413 if test -n "$ac_init_help"; then
1414 case $ac_init_help in
1415 short | recursive ) echo "Configuration of libotf 0.9.16:";;
1416 esac
1417 cat <<\_ACEOF
1418
1419 Optional Features:
1420 --disable-option-checking ignore unrecognized --enable/--with options
1421 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1422 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1423 --enable-silent-rules less verbose build output (undo: "make V=1")
1424 --disable-silent-rules verbose build output (undo: "make V=0")
1425 --enable-dependency-tracking
1426 do not reject slow dependency extractors
1427 --disable-dependency-tracking
1428 speeds up one-time build
1429 --enable-shared[=PKGS] build shared libraries [default=yes]
1430 --enable-static[=PKGS] build static libraries [default=yes]
1431 --enable-fast-install[=PKGS]
1432 optimize for fast installation [default=yes]
1433 --disable-libtool-lock avoid locking (might break parallel builds)
1434
1435 Optional Packages:
1436 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1437 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1438 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1439 both]
1440 --with-aix-soname=aix|svr4|both
1441 shared library versioning (aka "SONAME") variant to
1442 provide on AIX, [default=aix].
1443 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1444 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1445 compiler's sysroot if not specified).
1446 --with-x use the X Window System
1447
1448 Some influential environment variables:
1449 CC C compiler command
1450 CFLAGS C compiler flags
1451 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1452 nonstandard directory <lib dir>
1453 LIBS libraries to pass to the linker, e.g. -l<library>
1454 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1455 you have headers in a nonstandard directory <include dir>
1456 LT_SYS_LIBRARY_PATH
1457 User-defined run-time library search path.
1458 CPP C preprocessor
1459 XMKMF Path to xmkmf, Makefile generator for X Window System
1460
1461 Use these variables to override the choices made by `configure' or to help
1462 it to find libraries and programs with nonstandard names/locations.
1463
1464 Report bugs to <[email protected]>.
1465 _ACEOF
1466 ac_status=$?
1467 fi
1468
1469 if test "$ac_init_help" = "recursive"; then
1470 # If there are subdirs, report their specific --help.
1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1472 test -d "$ac_dir" ||
1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1474 continue
1475 ac_builddir=.
1476
1477 case "$ac_dir" in
1478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 *)
1480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1481 # A ".." for each directory in $ac_dir_suffix.
1482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483 case $ac_top_builddir_sub in
1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486 esac ;;
1487 esac
1488 ac_abs_top_builddir=$ac_pwd
1489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490 # for backward compatibility:
1491 ac_top_builddir=$ac_top_build_prefix
1492
1493 case $srcdir in
1494 .) # We are building in place.
1495 ac_srcdir=.
1496 ac_top_srcdir=$ac_top_builddir_sub
1497 ac_abs_top_srcdir=$ac_pwd ;;
1498 [\\/]* | ?:[\\/]* ) # Absolute name.
1499 ac_srcdir=$srcdir$ac_dir_suffix;
1500 ac_top_srcdir=$srcdir
1501 ac_abs_top_srcdir=$srcdir ;;
1502 *) # Relative name.
1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504 ac_top_srcdir=$ac_top_build_prefix$srcdir
1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1506 esac
1507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1508
1509 cd "$ac_dir" || { ac_status=$?; continue; }
1510 # Check for guested configure.
1511 if test -f "$ac_srcdir/configure.gnu"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514 elif test -f "$ac_srcdir/configure"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure" --help=recursive
1517 else
1518 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519 fi || ac_status=$?
1520 cd "$ac_pwd" || { ac_status=$?; break; }
1521 done
1522 fi
1523
1524 test -n "$ac_init_help" && exit $ac_status
1525 if $ac_init_version; then
1526 cat <<\_ACEOF
1527 libotf configure 0.9.16
1528 generated by GNU Autoconf 2.69
1529
1530 Copyright (C) 2012 Free Software Foundation, Inc.
1531 This configure script is free software; the Free Software Foundation
1532 gives unlimited permission to copy, distribute and modify it.
1533 _ACEOF
1534 exit
1535 fi
1536
1537 ## ------------------------ ##
1538 ## Autoconf initialization. ##
1539 ## ------------------------ ##
1540
1541 # ac_fn_c_try_compile LINENO
1542 # --------------------------
1543 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1544 ac_fn_c_try_compile ()
1545 {
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 rm -f conftest.$ac_objext
1548 if { { ac_try="$ac_compile"
1549 case "(($ac_try" in
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1552 esac
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 $as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_compile") 2>conftest.err
1556 ac_status=$?
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1561 fi
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } && {
1564 test -z "$ac_c_werror_flag" ||
1565 test ! -s conftest.err
1566 } && test -s conftest.$ac_objext; then :
1567 ac_retval=0
1568 else
1569 $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1571
1572 ac_retval=1
1573 fi
1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575 as_fn_set_status $ac_retval
1576
1577 } # ac_fn_c_try_compile
1578
1579 # ac_fn_c_try_link LINENO
1580 # -----------------------
1581 # Try to link conftest.$ac_ext, and return whether this succeeded.
1582 ac_fn_c_try_link ()
1583 {
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 rm -f conftest.$ac_objext conftest$ac_exeext
1586 if { { ac_try="$ac_link"
1587 case "(($ac_try" in
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1590 esac
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_link") 2>conftest.err
1594 ac_status=$?
1595 if test -s conftest.err; then
1596 grep -v '^ *+' conftest.err >conftest.er1
1597 cat conftest.er1 >&5
1598 mv -f conftest.er1 conftest.err
1599 fi
1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } && {
1602 test -z "$ac_c_werror_flag" ||
1603 test ! -s conftest.err
1604 } && test -s conftest$ac_exeext && {
1605 test "$cross_compiling" = yes ||
1606 test -x conftest$ac_exeext
1607 }; then :
1608 ac_retval=0
1609 else
1610 $as_echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1612
1613 ac_retval=1
1614 fi
1615 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1616 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1617 # interfere with the next link command; also delete a directory that is
1618 # left behind by Apple's compiler. We do this before executing the actions.
1619 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621 as_fn_set_status $ac_retval
1622
1623 } # ac_fn_c_try_link
1624
1625 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1626 # -------------------------------------------------------
1627 # Tests whether HEADER exists and can be compiled using the include files in
1628 # INCLUDES, setting the cache variable VAR accordingly.
1629 ac_fn_c_check_header_compile ()
1630 {
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633 $as_echo_n "checking for $2... " >&6; }
1634 if eval \${$3+:} false; then :
1635 $as_echo_n "(cached) " >&6
1636 else
1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638 /* end confdefs.h. */
1639 $4
1640 #include <$2>
1641 _ACEOF
1642 if ac_fn_c_try_compile "$LINENO"; then :
1643 eval "$3=yes"
1644 else
1645 eval "$3=no"
1646 fi
1647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648 fi
1649 eval ac_res=\$$3
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651 $as_echo "$ac_res" >&6; }
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653
1654 } # ac_fn_c_check_header_compile
1655
1656 # ac_fn_c_try_cpp LINENO
1657 # ----------------------
1658 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1659 ac_fn_c_try_cpp ()
1660 {
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 if { { ac_try="$ac_cpp conftest.$ac_ext"
1663 case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1670 ac_status=$?
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1675 fi
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } > conftest.i && {
1678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 }; then :
1681 ac_retval=0
1682 else
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1685
1686 ac_retval=1
1687 fi
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
1690
1691 } # ac_fn_c_try_cpp
1692
1693 # ac_fn_c_try_run LINENO
1694 # ----------------------
1695 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1696 # that executables *can* be run.
1697 ac_fn_c_try_run ()
1698 {
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { { ac_try="$ac_link"
1701 case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_link") 2>&5
1708 ac_status=$?
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1711 { { case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714 esac
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_try") 2>&5
1718 ac_status=$?
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; }; }; then :
1721 ac_retval=0
1722 else
1723 $as_echo "$as_me: program exited with status $ac_status" >&5
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1726
1727 ac_retval=$ac_status
1728 fi
1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1732
1733 } # ac_fn_c_try_run
1734
1735 # ac_fn_c_check_func LINENO FUNC VAR
1736 # ----------------------------------
1737 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1738 ac_fn_c_check_func ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742 $as_echo_n "checking for $2... " >&6; }
1743 if eval \${$3+:} false; then :
1744 $as_echo_n "(cached) " >&6
1745 else
1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1748 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1750 #define $2 innocuous_$2
1751
1752 /* System header to define __stub macros and hopefully few prototypes,
1753 which can conflict with char $2 (); below.
1754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1755 <limits.h> exists even on freestanding compilers. */
1756
1757 #ifdef __STDC__
1758 # include <limits.h>
1759 #else
1760 # include <assert.h>
1761 #endif
1762
1763 #undef $2
1764
1765 /* Override any GCC internal prototype to avoid an error.
1766 Use char because int might match the return type of a GCC
1767 builtin and then its argument prototype would still apply. */
1768 #ifdef __cplusplus
1769 extern "C"
1770 #endif
1771 char $2 ();
1772 /* The GNU C library defines this for functions which it implements
1773 to always fail with ENOSYS. Some functions are actually named
1774 something starting with __ and the normal name is an alias. */
1775 #if defined __stub_$2 || defined __stub___$2
1776 choke me
1777 #endif
1778
1779 int
1780 main ()
1781 {
1782 return $2 ();
1783 ;
1784 return 0;
1785 }
1786 _ACEOF
1787 if ac_fn_c_try_link "$LINENO"; then :
1788 eval "$3=yes"
1789 else
1790 eval "$3=no"
1791 fi
1792 rm -f core conftest.err conftest.$ac_objext \
1793 conftest$ac_exeext conftest.$ac_ext
1794 fi
1795 eval ac_res=\$$3
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
1800 } # ac_fn_c_check_func
1801
1802 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1803 # -------------------------------------------------------
1804 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1805 # the include files in INCLUDES and setting the cache variable VAR
1806 # accordingly.
1807 ac_fn_c_check_header_mongrel ()
1808 {
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 if eval \${$3+:} false; then :
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if eval \${$3+:} false; then :
1814 $as_echo_n "(cached) " >&6
1815 fi
1816 eval ac_res=\$$3
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1819 else
1820 # Is the header compilable?
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1822 $as_echo_n "checking $2 usability... " >&6; }
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1825 $4
1826 #include <$2>
1827 _ACEOF
1828 if ac_fn_c_try_compile "$LINENO"; then :
1829 ac_header_compiler=yes
1830 else
1831 ac_header_compiler=no
1832 fi
1833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1835 $as_echo "$ac_header_compiler" >&6; }
1836
1837 # Is the header present?
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1839 $as_echo_n "checking $2 presence... " >&6; }
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1842 #include <$2>
1843 _ACEOF
1844 if ac_fn_c_try_cpp "$LINENO"; then :
1845 ac_header_preproc=yes
1846 else
1847 ac_header_preproc=no
1848 fi
1849 rm -f conftest.err conftest.i conftest.$ac_ext
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1851 $as_echo "$ac_header_preproc" >&6; }
1852
1853 # So? What about this header?
1854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1855 yes:no: )
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1857 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1859 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1860 ;;
1861 no:yes:* )
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1863 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1865 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1867 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1869 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1871 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1872 ( $as_echo "## ----------------------------- ##
1873 ## Report this to [email protected] ##
1874 ## ----------------------------- ##"
1875 ) | sed "s/^/$as_me: WARNING: /" >&2
1876 ;;
1877 esac
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 $as_echo_n "checking for $2... " >&6; }
1880 if eval \${$3+:} false; then :
1881 $as_echo_n "(cached) " >&6
1882 else
1883 eval "$3=\$ac_header_compiler"
1884 fi
1885 eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888 fi
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891 } # ac_fn_c_check_header_mongrel
1892
1893 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1894 # -------------------------------------------
1895 # Tests whether TYPE exists after having included INCLUDES, setting cache
1896 # variable VAR accordingly.
1897 ac_fn_c_check_type ()
1898 {
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if eval \${$3+:} false; then :
1903 $as_echo_n "(cached) " >&6
1904 else
1905 eval "$3=no"
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1908 $4
1909 int
1910 main ()
1911 {
1912 if (sizeof ($2))
1913 return 0;
1914 ;
1915 return 0;
1916 }
1917 _ACEOF
1918 if ac_fn_c_try_compile "$LINENO"; then :
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1921 $4
1922 int
1923 main ()
1924 {
1925 if (sizeof (($2)))
1926 return 0;
1927 ;
1928 return 0;
1929 }
1930 _ACEOF
1931 if ac_fn_c_try_compile "$LINENO"; then :
1932
1933 else
1934 eval "$3=yes"
1935 fi
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 fi
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 fi
1940 eval ac_res=\$$3
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944
1945 } # ac_fn_c_check_type
1946 cat >config.log <<_ACEOF
1947 This file contains any messages produced by compilers while
1948 running configure, to aid debugging if configure makes a mistake.
1949
1950 It was created by libotf $as_me 0.9.16, which was
1951 generated by GNU Autoconf 2.69. Invocation command line was
1952
1953 $ $0 $@
1954
1955 _ACEOF
1956 exec 5>>config.log
1957 {
1958 cat <<_ASUNAME
1959 ## --------- ##
1960 ## Platform. ##
1961 ## --------- ##
1962
1963 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1964 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1965 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1966 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1967 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1968
1969 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1970 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1971
1972 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1973 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1974 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1975 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1976 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1977 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1978 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1979
1980 _ASUNAME
1981
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 for as_dir in $PATH
1984 do
1985 IFS=$as_save_IFS
1986 test -z "$as_dir" && as_dir=.
1987 $as_echo "PATH: $as_dir"
1988 done
1989 IFS=$as_save_IFS
1990
1991 } >&5
1992
1993 cat >&5 <<_ACEOF
1994
1995
1996 ## ----------- ##
1997 ## Core tests. ##
1998 ## ----------- ##
1999
2000 _ACEOF
2001
2002
2003 # Keep a trace of the command line.
2004 # Strip out --no-create and --no-recursion so they do not pile up.
2005 # Strip out --silent because we don't want to record it for future runs.
2006 # Also quote any args containing shell meta-characters.
2007 # Make two passes to allow for proper duplicate-argument suppression.
2008 ac_configure_args=
2009 ac_configure_args0=
2010 ac_configure_args1=
2011 ac_must_keep_next=false
2012 for ac_pass in 1 2
2013 do
2014 for ac_arg
2015 do
2016 case $ac_arg in
2017 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2019 | -silent | --silent | --silen | --sile | --sil)
2020 continue ;;
2021 *\'*)
2022 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2023 esac
2024 case $ac_pass in
2025 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2026 2)
2027 as_fn_append ac_configure_args1 " '$ac_arg'"
2028 if test $ac_must_keep_next = true; then
2029 ac_must_keep_next=false # Got value, back to normal.
2030 else
2031 case $ac_arg in
2032 *=* | --config-cache | -C | -disable-* | --disable-* \
2033 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2034 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2035 | -with-* | --with-* | -without-* | --without-* | --x)
2036 case "$ac_configure_args0 " in
2037 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2038 esac
2039 ;;
2040 -* ) ac_must_keep_next=true ;;
2041 esac
2042 fi
2043 as_fn_append ac_configure_args " '$ac_arg'"
2044 ;;
2045 esac
2046 done
2047 done
2048 { ac_configure_args0=; unset ac_configure_args0;}
2049 { ac_configure_args1=; unset ac_configure_args1;}
2050
2051 # When interrupted or exit'd, cleanup temporary files, and complete
2052 # config.log. We remove comments because anyway the quotes in there
2053 # would cause problems or look ugly.
2054 # WARNING: Use '\'' to represent an apostrophe within the trap.
2055 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2056 trap 'exit_status=$?
2057 # Save into config.log some information that might help in debugging.
2058 {
2059 echo
2060
2061 $as_echo "## ---------------- ##
2062 ## Cache variables. ##
2063 ## ---------------- ##"
2064 echo
2065 # The following way of writing the cache mishandles newlines in values,
2066 (
2067 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2068 eval ac_val=\$$ac_var
2069 case $ac_val in #(
2070 *${as_nl}*)
2071 case $ac_var in #(
2072 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2073 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2074 esac
2075 case $ac_var in #(
2076 _ | IFS | as_nl) ;; #(
2077 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2078 *) { eval $ac_var=; unset $ac_var;} ;;
2079 esac ;;
2080 esac
2081 done
2082 (set) 2>&1 |
2083 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2084 *${as_nl}ac_space=\ *)
2085 sed -n \
2086 "s/'\''/'\''\\\\'\'''\''/g;
2087 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2088 ;; #(
2089 *)
2090 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2091 ;;
2092 esac |
2093 sort
2094 )
2095 echo
2096
2097 $as_echo "## ----------------- ##
2098 ## Output variables. ##
2099 ## ----------------- ##"
2100 echo
2101 for ac_var in $ac_subst_vars
2102 do
2103 eval ac_val=\$$ac_var
2104 case $ac_val in
2105 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2106 esac
2107 $as_echo "$ac_var='\''$ac_val'\''"
2108 done | sort
2109 echo
2110
2111 if test -n "$ac_subst_files"; then
2112 $as_echo "## ------------------- ##
2113 ## File substitutions. ##
2114 ## ------------------- ##"
2115 echo
2116 for ac_var in $ac_subst_files
2117 do
2118 eval ac_val=\$$ac_var
2119 case $ac_val in
2120 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2121 esac
2122 $as_echo "$ac_var='\''$ac_val'\''"
2123 done | sort
2124 echo
2125 fi
2126
2127 if test -s confdefs.h; then
2128 $as_echo "## ----------- ##
2129 ## confdefs.h. ##
2130 ## ----------- ##"
2131 echo
2132 cat confdefs.h
2133 echo
2134 fi
2135 test "$ac_signal" != 0 &&
2136 $as_echo "$as_me: caught signal $ac_signal"
2137 $as_echo "$as_me: exit $exit_status"
2138 } >&5
2139 rm -f core *.core core.conftest.* &&
2140 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2141 exit $exit_status
2142 ' 0
2143 for ac_signal in 1 2 13 15; do
2144 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2145 done
2146 ac_signal=0
2147
2148 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2149 rm -f -r conftest* confdefs.h
2150
2151 $as_echo "/* confdefs.h */" > confdefs.h
2152
2153 # Predefined preprocessor variables.
2154
2155 cat >>confdefs.h <<_ACEOF
2156 #define PACKAGE_NAME "$PACKAGE_NAME"
2157 _ACEOF
2158
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2161 _ACEOF
2162
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2165 _ACEOF
2166
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_STRING "$PACKAGE_STRING"
2169 _ACEOF
2170
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2173 _ACEOF
2174
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_URL "$PACKAGE_URL"
2177 _ACEOF
2178
2179
2180 # Let the site file select an alternate cache file if it wants to.
2181 # Prefer an explicitly selected file to automatically selected ones.
2182 ac_site_file1=NONE
2183 ac_site_file2=NONE
2184 if test -n "$CONFIG_SITE"; then
2185 # We do not want a PATH search for config.site.
2186 case $CONFIG_SITE in #((
2187 -*) ac_site_file1=./$CONFIG_SITE;;
2188 */*) ac_site_file1=$CONFIG_SITE;;
2189 *) ac_site_file1=./$CONFIG_SITE;;
2190 esac
2191 elif test "x$prefix" != xNONE; then
2192 ac_site_file1=$prefix/share/config.site
2193 ac_site_file2=$prefix/etc/config.site
2194 else
2195 ac_site_file1=$ac_default_prefix/share/config.site
2196 ac_site_file2=$ac_default_prefix/etc/config.site
2197 fi
2198 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2199 do
2200 test "x$ac_site_file" = xNONE && continue
2201 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2203 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2204 sed 's/^/| /' "$ac_site_file" >&5
2205 . "$ac_site_file" \
2206 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2208 as_fn_error $? "failed to load site script $ac_site_file
2209 See \`config.log' for more details" "$LINENO" 5; }
2210 fi
2211 done
2212
2213 if test -r "$cache_file"; then
2214 # Some versions of bash will fail to source /dev/null (special files
2215 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2216 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2218 $as_echo "$as_me: loading cache $cache_file" >&6;}
2219 case $cache_file in
2220 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2221 *) . "./$cache_file";;
2222 esac
2223 fi
2224 else
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2226 $as_echo "$as_me: creating cache $cache_file" >&6;}
2227 >$cache_file
2228 fi
2229
2230 # Check that the precious variables saved in the cache have kept the same
2231 # value.
2232 ac_cache_corrupted=false
2233 for ac_var in $ac_precious_vars; do
2234 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2235 eval ac_new_set=\$ac_env_${ac_var}_set
2236 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2237 eval ac_new_val=\$ac_env_${ac_var}_value
2238 case $ac_old_set,$ac_new_set in
2239 set,)
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2241 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2242 ac_cache_corrupted=: ;;
2243 ,set)
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2245 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2246 ac_cache_corrupted=: ;;
2247 ,);;
2248 *)
2249 if test "x$ac_old_val" != "x$ac_new_val"; then
2250 # differences in whitespace do not lead to failure.
2251 ac_old_val_w=`echo x $ac_old_val`
2252 ac_new_val_w=`echo x $ac_new_val`
2253 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2255 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2256 ac_cache_corrupted=:
2257 else
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2259 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2260 eval $ac_var=\$ac_old_val
2261 fi
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2263 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2265 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2266 fi;;
2267 esac
2268 # Pass precious variables to config.status.
2269 if test "$ac_new_set" = set; then
2270 case $ac_new_val in
2271 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2272 *) ac_arg=$ac_var=$ac_new_val ;;
2273 esac
2274 case " $ac_configure_args " in
2275 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2276 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2277 esac
2278 fi
2279 done
2280 if $ac_cache_corrupted; then
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2284 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2285 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2286 fi
2287 ## -------------------- ##
2288 ## Main body of script. ##
2289 ## -------------------- ##
2290
2291 ac_ext=c
2292 ac_cpp='$CPP $CPPFLAGS'
2293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2296
2297
2298 am__api_version='1.15'
2299
2300 ac_aux_dir=
2301 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2302 if test -f "$ac_dir/install-sh"; then
2303 ac_aux_dir=$ac_dir
2304 ac_install_sh="$ac_aux_dir/install-sh -c"
2305 break
2306 elif test -f "$ac_dir/install.sh"; then
2307 ac_aux_dir=$ac_dir
2308 ac_install_sh="$ac_aux_dir/install.sh -c"
2309 break
2310 elif test -f "$ac_dir/shtool"; then
2311 ac_aux_dir=$ac_dir
2312 ac_install_sh="$ac_aux_dir/shtool install -c"
2313 break
2314 fi
2315 done
2316 if test -z "$ac_aux_dir"; then
2317 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2318 fi
2319
2320 # These three variables are undocumented and unsupported,
2321 # and are intended to be withdrawn in a future Autoconf release.
2322 # They can cause serious problems if a builder's source tree is in a directory
2323 # whose full name contains unusual characters.
2324 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2325 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2326 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2327
2328
2329 # Find a good install program. We prefer a C program (faster),
2330 # so one script is as good as another. But avoid the broken or
2331 # incompatible versions:
2332 # SysV /etc/install, /usr/sbin/install
2333 # SunOS /usr/etc/install
2334 # IRIX /sbin/install
2335 # AIX /bin/install
2336 # AmigaOS /C/install, which installs bootblocks on floppy discs
2337 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2338 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2339 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2340 # OS/2's system install, which has a completely different semantic
2341 # ./install, which can be erroneously created by make from ./install.sh.
2342 # Reject install programs that cannot install multiple files.
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2344 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2345 if test -z "$INSTALL"; then
2346 if ${ac_cv_path_install+:} false; then :
2347 $as_echo_n "(cached) " >&6
2348 else
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH
2351 do
2352 IFS=$as_save_IFS
2353 test -z "$as_dir" && as_dir=.
2354 # Account for people who put trailing slashes in PATH elements.
2355 case $as_dir/ in #((
2356 ./ | .// | /[cC]/* | \
2357 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2358 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2359 /usr/ucb/* ) ;;
2360 *)
2361 # OSF1 and SCO ODT 3.0 have their own names for install.
2362 # Don't use installbsd from OSF since it installs stuff as root
2363 # by default.
2364 for ac_prog in ginstall scoinst install; do
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2367 if test $ac_prog = install &&
2368 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2369 # AIX install. It has an incompatible calling convention.
2370 :
2371 elif test $ac_prog = install &&
2372 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2373 # program-specific install script used by HP pwplus--don't use.
2374 :
2375 else
2376 rm -rf conftest.one conftest.two conftest.dir
2377 echo one > conftest.one
2378 echo two > conftest.two
2379 mkdir conftest.dir
2380 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2381 test -s conftest.one && test -s conftest.two &&
2382 test -s conftest.dir/conftest.one &&
2383 test -s conftest.dir/conftest.two
2384 then
2385 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2386 break 3
2387 fi
2388 fi
2389 fi
2390 done
2391 done
2392 ;;
2393 esac
2394
2395 done
2396 IFS=$as_save_IFS
2397
2398 rm -rf conftest.one conftest.two conftest.dir
2399
2400 fi
2401 if test "${ac_cv_path_install+set}" = set; then
2402 INSTALL=$ac_cv_path_install
2403 else
2404 # As a last resort, use the slow shell script. Don't cache a
2405 # value for INSTALL within a source directory, because that will
2406 # break other packages using the cache if that directory is
2407 # removed, or if the value is a relative name.
2408 INSTALL=$ac_install_sh
2409 fi
2410 fi
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2412 $as_echo "$INSTALL" >&6; }
2413
2414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2415 # It thinks the first close brace ends the variable substitution.
2416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2417
2418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2419
2420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2421
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2423 $as_echo_n "checking whether build environment is sane... " >&6; }
2424 # Reject unsafe characters in $srcdir or the absolute working directory
2425 # name. Accept space and tab only in the latter.
2426 am_lf='
2427 '
2428 case `pwd` in
2429 *[\\\"\#\$\&\'\`$am_lf]*)
2430 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2431 esac
2432 case $srcdir in
2433 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2434 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2435 esac
2436
2437 # Do 'set' in a subshell so we don't clobber the current shell's
2438 # arguments. Must try -L first in case configure is actually a
2439 # symlink; some systems play weird games with the mod time of symlinks
2440 # (eg FreeBSD returns the mod time of the symlink's containing
2441 # directory).
2442 if (
2443 am_has_slept=no
2444 for am_try in 1 2; do
2445 echo "timestamp, slept: $am_has_slept" > conftest.file
2446 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2447 if test "$*" = "X"; then
2448 # -L didn't work.
2449 set X `ls -t "$srcdir/configure" conftest.file`
2450 fi
2451 if test "$*" != "X $srcdir/configure conftest.file" \
2452 && test "$*" != "X conftest.file $srcdir/configure"; then
2453
2454 # If neither matched, then we have a broken ls. This can happen
2455 # if, for instance, CONFIG_SHELL is bash and it inherits a
2456 # broken ls alias from the environment. This has actually
2457 # happened. Such a system could not be considered "sane".
2458 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2459 alias in your environment" "$LINENO" 5
2460 fi
2461 if test "$2" = conftest.file || test $am_try -eq 2; then
2462 break
2463 fi
2464 # Just in case.
2465 sleep 1
2466 am_has_slept=yes
2467 done
2468 test "$2" = conftest.file
2469 )
2470 then
2471 # Ok.
2472 :
2473 else
2474 as_fn_error $? "newly created file is older than distributed files!
2475 Check your system clock" "$LINENO" 5
2476 fi
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2478 $as_echo "yes" >&6; }
2479 # If we didn't sleep, we still need to ensure time stamps of config.status and
2480 # generated files are strictly newer.
2481 am_sleep_pid=
2482 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2483 ( sleep 1 ) &
2484 am_sleep_pid=$!
2485 fi
2486
2487 rm -f conftest.file
2488
2489 test "$program_prefix" != NONE &&
2490 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2491 # Use a double $ so make ignores it.
2492 test "$program_suffix" != NONE &&
2493 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2494 # Double any \ or $.
2495 # By default was `s,x,x', remove it if useless.
2496 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2497 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2498
2499 # Expand $ac_aux_dir to an absolute path.
2500 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2501
2502 if test x"${MISSING+set}" != xset; then
2503 case $am_aux_dir in
2504 *\ * | *\ *)
2505 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2506 *)
2507 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2508 esac
2509 fi
2510 # Use eval to expand $SHELL
2511 if eval "$MISSING --is-lightweight"; then
2512 am_missing_run="$MISSING "
2513 else
2514 am_missing_run=
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2516 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2517 fi
2518
2519 if test x"${install_sh+set}" != xset; then
2520 case $am_aux_dir in
2521 *\ * | *\ *)
2522 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2523 *)
2524 install_sh="\${SHELL} $am_aux_dir/install-sh"
2525 esac
2526 fi
2527
2528 # Installed binaries are usually stripped using 'strip' when the user
2529 # run "make install-strip". However 'strip' might not be the right
2530 # tool to use in cross-compilation environments, therefore Automake
2531 # will honor the 'STRIP' environment variable to overrule this program.
2532 if test "$cross_compiling" != no; then
2533 if test -n "$ac_tool_prefix"; then
2534 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2535 set dummy ${ac_tool_prefix}strip; ac_word=$2
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2537 $as_echo_n "checking for $ac_word... " >&6; }
2538 if ${ac_cv_prog_STRIP+:} false; then :
2539 $as_echo_n "(cached) " >&6
2540 else
2541 if test -n "$STRIP"; then
2542 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2543 else
2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545 for as_dir in $PATH
2546 do
2547 IFS=$as_save_IFS
2548 test -z "$as_dir" && as_dir=.
2549 for ac_exec_ext in '' $ac_executable_extensions; do
2550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2551 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 break 2
2554 fi
2555 done
2556 done
2557 IFS=$as_save_IFS
2558
2559 fi
2560 fi
2561 STRIP=$ac_cv_prog_STRIP
2562 if test -n "$STRIP"; then
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2564 $as_echo "$STRIP" >&6; }
2565 else
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2567 $as_echo "no" >&6; }
2568 fi
2569
2570
2571 fi
2572 if test -z "$ac_cv_prog_STRIP"; then
2573 ac_ct_STRIP=$STRIP
2574 # Extract the first word of "strip", so it can be a program name with args.
2575 set dummy strip; ac_word=$2
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2577 $as_echo_n "checking for $ac_word... " >&6; }
2578 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2579 $as_echo_n "(cached) " >&6
2580 else
2581 if test -n "$ac_ct_STRIP"; then
2582 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2583 else
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2586 do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2591 ac_cv_prog_ac_ct_STRIP="strip"
2592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 break 2
2594 fi
2595 done
2596 done
2597 IFS=$as_save_IFS
2598
2599 fi
2600 fi
2601 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2602 if test -n "$ac_ct_STRIP"; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2604 $as_echo "$ac_ct_STRIP" >&6; }
2605 else
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2607 $as_echo "no" >&6; }
2608 fi
2609
2610 if test "x$ac_ct_STRIP" = x; then
2611 STRIP=":"
2612 else
2613 case $cross_compiling:$ac_tool_warned in
2614 yes:)
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2617 ac_tool_warned=yes ;;
2618 esac
2619 STRIP=$ac_ct_STRIP
2620 fi
2621 else
2622 STRIP="$ac_cv_prog_STRIP"
2623 fi
2624
2625 fi
2626 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2627
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2629 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2630 if test -z "$MKDIR_P"; then
2631 if ${ac_cv_path_mkdir+:} false; then :
2632 $as_echo_n "(cached) " >&6
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2636 do
2637 IFS=$as_save_IFS
2638 test -z "$as_dir" && as_dir=.
2639 for ac_prog in mkdir gmkdir; do
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2642 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2643 'mkdir (GNU coreutils) '* | \
2644 'mkdir (coreutils) '* | \
2645 'mkdir (fileutils) '4.1*)
2646 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2647 break 3;;
2648 esac
2649 done
2650 done
2651 done
2652 IFS=$as_save_IFS
2653
2654 fi
2655
2656 test -d ./--version && rmdir ./--version
2657 if test "${ac_cv_path_mkdir+set}" = set; then
2658 MKDIR_P="$ac_cv_path_mkdir -p"
2659 else
2660 # As a last resort, use the slow shell script. Don't cache a
2661 # value for MKDIR_P within a source directory, because that will
2662 # break other packages using the cache if that directory is
2663 # removed, or if the value is a relative name.
2664 MKDIR_P="$ac_install_sh -d"
2665 fi
2666 fi
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2668 $as_echo "$MKDIR_P" >&6; }
2669
2670 for ac_prog in gawk mawk nawk awk
2671 do
2672 # Extract the first word of "$ac_prog", so it can be a program name with args.
2673 set dummy $ac_prog; ac_word=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if ${ac_cv_prog_AWK+:} false; then :
2677 $as_echo_n "(cached) " >&6
2678 else
2679 if test -n "$AWK"; then
2680 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2684 do
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689 ac_cv_prog_AWK="$ac_prog"
2690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691 break 2
2692 fi
2693 done
2694 done
2695 IFS=$as_save_IFS
2696
2697 fi
2698 fi
2699 AWK=$ac_cv_prog_AWK
2700 if test -n "$AWK"; then
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2702 $as_echo "$AWK" >&6; }
2703 else
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
2706 fi
2707
2708
2709 test -n "$AWK" && break
2710 done
2711
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2713 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2714 set x ${MAKE-make}
2715 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2716 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2717 $as_echo_n "(cached) " >&6
2718 else
2719 cat >conftest.make <<\_ACEOF
2720 SHELL = /bin/sh
2721 all:
2722 @echo '@@@%%%=$(MAKE)=@@@%%%'
2723 _ACEOF
2724 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2725 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2726 *@@@%%%=?*=@@@%%%*)
2727 eval ac_cv_prog_make_${ac_make}_set=yes;;
2728 *)
2729 eval ac_cv_prog_make_${ac_make}_set=no;;
2730 esac
2731 rm -f conftest.make
2732 fi
2733 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2735 $as_echo "yes" >&6; }
2736 SET_MAKE=
2737 else
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739 $as_echo "no" >&6; }
2740 SET_MAKE="MAKE=${MAKE-make}"
2741 fi
2742
2743 rm -rf .tst 2>/dev/null
2744 mkdir .tst 2>/dev/null
2745 if test -d .tst; then
2746 am__leading_dot=.
2747 else
2748 am__leading_dot=_
2749 fi
2750 rmdir .tst 2>/dev/null
2751
2752 # Check whether --enable-silent-rules was given.
2753 if test "${enable_silent_rules+set}" = set; then :
2754 enableval=$enable_silent_rules;
2755 fi
2756
2757 case $enable_silent_rules in # (((
2758 yes) AM_DEFAULT_VERBOSITY=0;;
2759 no) AM_DEFAULT_VERBOSITY=1;;
2760 *) AM_DEFAULT_VERBOSITY=1;;
2761 esac
2762 am_make=${MAKE-make}
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2764 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2765 if ${am_cv_make_support_nested_variables+:} false; then :
2766 $as_echo_n "(cached) " >&6
2767 else
2768 if $as_echo 'TRUE=$(BAR$(V))
2769 BAR0=false
2770 BAR1=true
2771 V=1
2772 am__doit:
2773 @$(TRUE)
2774 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2775 am_cv_make_support_nested_variables=yes
2776 else
2777 am_cv_make_support_nested_variables=no
2778 fi
2779 fi
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2781 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2782 if test $am_cv_make_support_nested_variables = yes; then
2783 AM_V='$(V)'
2784 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2785 else
2786 AM_V=$AM_DEFAULT_VERBOSITY
2787 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2788 fi
2789 AM_BACKSLASH='\'
2790
2791 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2792 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2793 # is not polluted with repeated "-I."
2794 am__isrc=' -I$(srcdir)'
2795 # test to see if srcdir already configured
2796 if test -f $srcdir/config.status; then
2797 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2798 fi
2799 fi
2800
2801 # test whether we have cygpath
2802 if test -z "$CYGPATH_W"; then
2803 if (cygpath --version) >/dev/null 2>/dev/null; then
2804 CYGPATH_W='cygpath -w'
2805 else
2806 CYGPATH_W=echo
2807 fi
2808 fi
2809
2810
2811 # Define the identity of the package.
2812
2813 PACKAGE=libotf
2814 VERSION=0.9.16
2815
2816
2817 cat >>confdefs.h <<_ACEOF
2818 #define PACKAGE "$PACKAGE"
2819 _ACEOF
2820
2821
2822 cat >>confdefs.h <<_ACEOF
2823 #define VERSION "$VERSION"
2824 _ACEOF
2825
2826 # Some tools Automake needs.
2827
2828 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2829
2830
2831 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2832
2833
2834 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2835
2836
2837 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2838
2839
2840 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2841
2842 # For better backward compatibility. To be removed once Automake 1.9.x
2843 # dies out for good. For more background, see:
2844 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2845 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2846 mkdir_p='$(MKDIR_P)'
2847
2848 # We need awk for the "check" target (and possibly the TAP driver). The
2849 # system "awk" is bad on some platforms.
2850 # Always define AMTAR for backward compatibility. Yes, it's still used
2851 # in the wild :-( We should find a proper way to deprecate it ...
2852 AMTAR='$${TAR-tar}'
2853
2854
2855 # We'll loop over all known methods to create a tar archive until one works.
2856 _am_tools='gnutar pax cpio none'
2857
2858 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2859
2860
2861
2862
2863
2864
2865 # POSIX will say in a future version that running "rm -f" with no argument
2866 # is OK; and we want to be able to make that assumption in our Makefile
2867 # recipes. So use an aggressive probe to check that the usage we want is
2868 # actually supported "in the wild" to an acceptable degree.
2869 # See automake bug#10828.
2870 # To make any issue more visible, cause the running configure to be aborted
2871 # by default if the 'rm' program in use doesn't match our expectations; the
2872 # user can still override this though.
2873 if rm -f && rm -fr && rm -rf; then : OK; else
2874 cat >&2 <<'END'
2875 Oops!
2876
2877 Your 'rm' program seems unable to run without file operands specified
2878 on the command line, even when the '-f' option is present. This is contrary
2879 to the behaviour of most rm programs out there, and not conforming with
2880 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2881
2882 Please tell [email protected] about your system, including the value
2883 of your $PATH and any error possibly output before this message. This
2884 can help us improve future automake versions.
2885
2886 END
2887 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2888 echo 'Configuration will proceed anyway, since you have set the' >&2
2889 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2890 echo >&2
2891 else
2892 cat >&2 <<'END'
2893 Aborting the configuration process, to ensure you take notice of the issue.
2894
2895 You can download and install GNU coreutils to get an 'rm' implementation
2896 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2897
2898 If you want to complete the configuration process using your problematic
2899 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2900 to "yes", and re-run configure.
2901
2902 END
2903 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2904 fi
2905 fi
2906
2907 ac_config_headers="$ac_config_headers src/config.h"
2908
2909
2910 # Checks for programs.
2911 ac_ext=c
2912 ac_cpp='$CPP $CPPFLAGS'
2913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2916 if test -n "$ac_tool_prefix"; then
2917 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2918 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920 $as_echo_n "checking for $ac_word... " >&6; }
2921 if ${ac_cv_prog_CC+:} false; then :
2922 $as_echo_n "(cached) " >&6
2923 else
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC="$CC" # Let the user override the test.
2926 else
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2929 do
2930 IFS=$as_save_IFS
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 break 2
2937 fi
2938 done
2939 done
2940 IFS=$as_save_IFS
2941
2942 fi
2943 fi
2944 CC=$ac_cv_prog_CC
2945 if test -n "$CC"; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2947 $as_echo "$CC" >&6; }
2948 else
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2950 $as_echo "no" >&6; }
2951 fi
2952
2953
2954 fi
2955 if test -z "$ac_cv_prog_CC"; then
2956 ac_ct_CC=$CC
2957 # Extract the first word of "gcc", so it can be a program name with args.
2958 set dummy gcc; ac_word=$2
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960 $as_echo_n "checking for $ac_word... " >&6; }
2961 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2962 $as_echo_n "(cached) " >&6
2963 else
2964 if test -n "$ac_ct_CC"; then
2965 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2966 else
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH
2969 do
2970 IFS=$as_save_IFS
2971 test -z "$as_dir" && as_dir=.
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2974 ac_cv_prog_ac_ct_CC="gcc"
2975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 break 2
2977 fi
2978 done
2979 done
2980 IFS=$as_save_IFS
2981
2982 fi
2983 fi
2984 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2985 if test -n "$ac_ct_CC"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2987 $as_echo "$ac_ct_CC" >&6; }
2988 else
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 $as_echo "no" >&6; }
2991 fi
2992
2993 if test "x$ac_ct_CC" = x; then
2994 CC=""
2995 else
2996 case $cross_compiling:$ac_tool_warned in
2997 yes:)
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3000 ac_tool_warned=yes ;;
3001 esac
3002 CC=$ac_ct_CC
3003 fi
3004 else
3005 CC="$ac_cv_prog_CC"
3006 fi
3007
3008 if test -z "$CC"; then
3009 if test -n "$ac_tool_prefix"; then
3010 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3011 set dummy ${ac_tool_prefix}cc; ac_word=$2
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013 $as_echo_n "checking for $ac_word... " >&6; }
3014 if ${ac_cv_prog_CC+:} false; then :
3015 $as_echo_n "(cached) " >&6
3016 else
3017 if test -n "$CC"; then
3018 ac_cv_prog_CC="$CC" # Let the user override the test.
3019 else
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 for as_dir in $PATH
3022 do
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3027 ac_cv_prog_CC="${ac_tool_prefix}cc"
3028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 break 2
3030 fi
3031 done
3032 done
3033 IFS=$as_save_IFS
3034
3035 fi
3036 fi
3037 CC=$ac_cv_prog_CC
3038 if test -n "$CC"; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3040 $as_echo "$CC" >&6; }
3041 else
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043 $as_echo "no" >&6; }
3044 fi
3045
3046
3047 fi
3048 fi
3049 if test -z "$CC"; then
3050 # Extract the first word of "cc", so it can be a program name with args.
3051 set dummy cc; ac_word=$2
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053 $as_echo_n "checking for $ac_word... " >&6; }
3054 if ${ac_cv_prog_CC+:} false; then :
3055 $as_echo_n "(cached) " >&6
3056 else
3057 if test -n "$CC"; then
3058 ac_cv_prog_CC="$CC" # Let the user override the test.
3059 else
3060 ac_prog_rejected=no
3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 for as_dir in $PATH
3063 do
3064 IFS=$as_save_IFS
3065 test -z "$as_dir" && as_dir=.
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3068 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3069 ac_prog_rejected=yes
3070 continue
3071 fi
3072 ac_cv_prog_CC="cc"
3073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 break 2
3075 fi
3076 done
3077 done
3078 IFS=$as_save_IFS
3079
3080 if test $ac_prog_rejected = yes; then
3081 # We found a bogon in the path, so make sure we never use it.
3082 set dummy $ac_cv_prog_CC
3083 shift
3084 if test $# != 0; then
3085 # We chose a different compiler from the bogus one.
3086 # However, it has the same basename, so the bogon will be chosen
3087 # first if we set CC to just the basename; use the full file name.
3088 shift
3089 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3090 fi
3091 fi
3092 fi
3093 fi
3094 CC=$ac_cv_prog_CC
3095 if test -n "$CC"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3097 $as_echo "$CC" >&6; }
3098 else
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3101 fi
3102
3103
3104 fi
3105 if test -z "$CC"; then
3106 if test -n "$ac_tool_prefix"; then
3107 for ac_prog in cl.exe
3108 do
3109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3110 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112 $as_echo_n "checking for $ac_word... " >&6; }
3113 if ${ac_cv_prog_CC+:} false; then :
3114 $as_echo_n "(cached) " >&6
3115 else
3116 if test -n "$CC"; then
3117 ac_cv_prog_CC="$CC" # Let the user override the test.
3118 else
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH
3121 do
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3126 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 break 2
3129 fi
3130 done
3131 done
3132 IFS=$as_save_IFS
3133
3134 fi
3135 fi
3136 CC=$ac_cv_prog_CC
3137 if test -n "$CC"; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3139 $as_echo "$CC" >&6; }
3140 else
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3143 fi
3144
3145
3146 test -n "$CC" && break
3147 done
3148 fi
3149 if test -z "$CC"; then
3150 ac_ct_CC=$CC
3151 for ac_prog in cl.exe
3152 do
3153 # Extract the first word of "$ac_prog", so it can be a program name with args.
3154 set dummy $ac_prog; ac_word=$2
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3156 $as_echo_n "checking for $ac_word... " >&6; }
3157 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3158 $as_echo_n "(cached) " >&6
3159 else
3160 if test -n "$ac_ct_CC"; then
3161 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3162 else
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 for as_dir in $PATH
3165 do
3166 IFS=$as_save_IFS
3167 test -z "$as_dir" && as_dir=.
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3170 ac_cv_prog_ac_ct_CC="$ac_prog"
3171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3172 break 2
3173 fi
3174 done
3175 done
3176 IFS=$as_save_IFS
3177
3178 fi
3179 fi
3180 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3181 if test -n "$ac_ct_CC"; then
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3183 $as_echo "$ac_ct_CC" >&6; }
3184 else
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186 $as_echo "no" >&6; }
3187 fi
3188
3189
3190 test -n "$ac_ct_CC" && break
3191 done
3192
3193 if test "x$ac_ct_CC" = x; then
3194 CC=""
3195 else
3196 case $cross_compiling:$ac_tool_warned in
3197 yes:)
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3200 ac_tool_warned=yes ;;
3201 esac
3202 CC=$ac_ct_CC
3203 fi
3204 fi
3205
3206 fi
3207
3208
3209 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3211 as_fn_error $? "no acceptable C compiler found in \$PATH
3212 See \`config.log' for more details" "$LINENO" 5; }
3213
3214 # Provide some information about the compiler.
3215 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3216 set X $ac_compile
3217 ac_compiler=$2
3218 for ac_option in --version -v -V -qversion; do
3219 { { ac_try="$ac_compiler $ac_option >&5"
3220 case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223 esac
3224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3225 $as_echo "$ac_try_echo"; } >&5
3226 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3227 ac_status=$?
3228 if test -s conftest.err; then
3229 sed '10a\
3230 ... rest of stderr output deleted ...
3231 10q' conftest.err >conftest.er1
3232 cat conftest.er1 >&5
3233 fi
3234 rm -f conftest.er1 conftest.err
3235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3236 test $ac_status = 0; }
3237 done
3238
3239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240 /* end confdefs.h. */
3241
3242 int
3243 main ()
3244 {
3245
3246 ;
3247 return 0;
3248 }
3249 _ACEOF
3250 ac_clean_files_save=$ac_clean_files
3251 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3252 # Try to create an executable without -o first, disregard a.out.
3253 # It will help us diagnose broken compilers, and finding out an intuition
3254 # of exeext.
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3256 $as_echo_n "checking whether the C compiler works... " >&6; }
3257 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3258
3259 # The possible output files:
3260 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3261
3262 ac_rmfiles=
3263 for ac_file in $ac_files
3264 do
3265 case $ac_file in
3266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3267 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3268 esac
3269 done
3270 rm -f $ac_rmfiles
3271
3272 if { { ac_try="$ac_link_default"
3273 case "(($ac_try" in
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3276 esac
3277 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3278 $as_echo "$ac_try_echo"; } >&5
3279 (eval "$ac_link_default") 2>&5
3280 ac_status=$?
3281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3282 test $ac_status = 0; }; then :
3283 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3284 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3285 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3286 # so that the user can short-circuit this test for compilers unknown to
3287 # Autoconf.
3288 for ac_file in $ac_files ''
3289 do
3290 test -f "$ac_file" || continue
3291 case $ac_file in
3292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3293 ;;
3294 [ab].out )
3295 # We found the default executable, but exeext='' is most
3296 # certainly right.
3297 break;;
3298 *.* )
3299 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3300 then :; else
3301 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3302 fi
3303 # We set ac_cv_exeext here because the later test for it is not
3304 # safe: cross compilers may not add the suffix if given an `-o'
3305 # argument, so we may need to know it at that point already.
3306 # Even if this section looks crufty: it has the advantage of
3307 # actually working.
3308 break;;
3309 * )
3310 break;;
3311 esac
3312 done
3313 test "$ac_cv_exeext" = no && ac_cv_exeext=
3314
3315 else
3316 ac_file=''
3317 fi
3318 if test -z "$ac_file"; then :
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320 $as_echo "no" >&6; }
3321 $as_echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.$ac_ext >&5
3323
3324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3326 as_fn_error 77 "C compiler cannot create executables
3327 See \`config.log' for more details" "$LINENO" 5; }
3328 else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3330 $as_echo "yes" >&6; }
3331 fi
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3333 $as_echo_n "checking for C compiler default output file name... " >&6; }
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3335 $as_echo "$ac_file" >&6; }
3336 ac_exeext=$ac_cv_exeext
3337
3338 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3339 ac_clean_files=$ac_clean_files_save
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3341 $as_echo_n "checking for suffix of executables... " >&6; }
3342 if { { ac_try="$ac_link"
3343 case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3346 esac
3347 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3348 $as_echo "$ac_try_echo"; } >&5
3349 (eval "$ac_link") 2>&5
3350 ac_status=$?
3351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352 test $ac_status = 0; }; then :
3353 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3354 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3355 # work properly (i.e., refer to `conftest.exe'), while it won't with
3356 # `rm'.
3357 for ac_file in conftest.exe conftest conftest.*; do
3358 test -f "$ac_file" || continue
3359 case $ac_file in
3360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3361 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3362 break;;
3363 * ) break;;
3364 esac
3365 done
3366 else
3367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3370 See \`config.log' for more details" "$LINENO" 5; }
3371 fi
3372 rm -f conftest conftest$ac_cv_exeext
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3374 $as_echo "$ac_cv_exeext" >&6; }
3375
3376 rm -f conftest.$ac_ext
3377 EXEEXT=$ac_cv_exeext
3378 ac_exeext=$EXEEXT
3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h. */
3381 #include <stdio.h>
3382 int
3383 main ()
3384 {
3385 FILE *f = fopen ("conftest.out", "w");
3386 return ferror (f) || fclose (f) != 0;
3387
3388 ;
3389 return 0;
3390 }
3391 _ACEOF
3392 ac_clean_files="$ac_clean_files conftest.out"
3393 # Check that the compiler produces executables we can run. If not, either
3394 # the compiler is broken, or we cross compile.
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3396 $as_echo_n "checking whether we are cross compiling... " >&6; }
3397 if test "$cross_compiling" != yes; then
3398 { { ac_try="$ac_link"
3399 case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402 esac
3403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3404 $as_echo "$ac_try_echo"; } >&5
3405 (eval "$ac_link") 2>&5
3406 ac_status=$?
3407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3408 test $ac_status = 0; }
3409 if { ac_try='./conftest$ac_cv_exeext'
3410 { { case "(($ac_try" in
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3413 esac
3414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3415 $as_echo "$ac_try_echo"; } >&5
3416 (eval "$ac_try") 2>&5
3417 ac_status=$?
3418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419 test $ac_status = 0; }; }; then
3420 cross_compiling=no
3421 else
3422 if test "$cross_compiling" = maybe; then
3423 cross_compiling=yes
3424 else
3425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3427 as_fn_error $? "cannot run C compiled programs.
3428 If you meant to cross compile, use \`--host'.
3429 See \`config.log' for more details" "$LINENO" 5; }
3430 fi
3431 fi
3432 fi
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3434 $as_echo "$cross_compiling" >&6; }
3435
3436 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3437 ac_clean_files=$ac_clean_files_save
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3439 $as_echo_n "checking for suffix of object files... " >&6; }
3440 if ${ac_cv_objext+:} false; then :
3441 $as_echo_n "(cached) " >&6
3442 else
3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h. */
3445
3446 int
3447 main ()
3448 {
3449
3450 ;
3451 return 0;
3452 }
3453 _ACEOF
3454 rm -f conftest.o conftest.obj
3455 if { { ac_try="$ac_compile"
3456 case "(($ac_try" in
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3459 esac
3460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461 $as_echo "$ac_try_echo"; } >&5
3462 (eval "$ac_compile") 2>&5
3463 ac_status=$?
3464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465 test $ac_status = 0; }; then :
3466 for ac_file in conftest.o conftest.obj conftest.*; do
3467 test -f "$ac_file" || continue;
3468 case $ac_file in
3469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3470 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3471 break;;
3472 esac
3473 done
3474 else
3475 $as_echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3477
3478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3480 as_fn_error $? "cannot compute suffix of object files: cannot compile
3481 See \`config.log' for more details" "$LINENO" 5; }
3482 fi
3483 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3484 fi
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3486 $as_echo "$ac_cv_objext" >&6; }
3487 OBJEXT=$ac_cv_objext
3488 ac_objext=$OBJEXT
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3490 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3491 if ${ac_cv_c_compiler_gnu+:} false; then :
3492 $as_echo_n "(cached) " >&6
3493 else
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3496
3497 int
3498 main ()
3499 {
3500 #ifndef __GNUC__
3501 choke me
3502 #endif
3503
3504 ;
3505 return 0;
3506 }
3507 _ACEOF
3508 if ac_fn_c_try_compile "$LINENO"; then :
3509 ac_compiler_gnu=yes
3510 else
3511 ac_compiler_gnu=no
3512 fi
3513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3515
3516 fi
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3518 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3519 if test $ac_compiler_gnu = yes; then
3520 GCC=yes
3521 else
3522 GCC=
3523 fi
3524 ac_test_CFLAGS=${CFLAGS+set}
3525 ac_save_CFLAGS=$CFLAGS
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3527 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3528 if ${ac_cv_prog_cc_g+:} false; then :
3529 $as_echo_n "(cached) " >&6
3530 else
3531 ac_save_c_werror_flag=$ac_c_werror_flag
3532 ac_c_werror_flag=yes
3533 ac_cv_prog_cc_g=no
3534 CFLAGS="-g"
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3537
3538 int
3539 main ()
3540 {
3541
3542 ;
3543 return 0;
3544 }
3545 _ACEOF
3546 if ac_fn_c_try_compile "$LINENO"; then :
3547 ac_cv_prog_cc_g=yes
3548 else
3549 CFLAGS=""
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h. */
3552
3553 int
3554 main ()
3555 {
3556
3557 ;
3558 return 0;
3559 }
3560 _ACEOF
3561 if ac_fn_c_try_compile "$LINENO"; then :
3562
3563 else
3564 ac_c_werror_flag=$ac_save_c_werror_flag
3565 CFLAGS="-g"
3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567 /* end confdefs.h. */
3568
3569 int
3570 main ()
3571 {
3572
3573 ;
3574 return 0;
3575 }
3576 _ACEOF
3577 if ac_fn_c_try_compile "$LINENO"; then :
3578 ac_cv_prog_cc_g=yes
3579 fi
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 fi
3582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 fi
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 ac_c_werror_flag=$ac_save_c_werror_flag
3586 fi
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3588 $as_echo "$ac_cv_prog_cc_g" >&6; }
3589 if test "$ac_test_CFLAGS" = set; then
3590 CFLAGS=$ac_save_CFLAGS
3591 elif test $ac_cv_prog_cc_g = yes; then
3592 if test "$GCC" = yes; then
3593 CFLAGS="-g -O2"
3594 else
3595 CFLAGS="-g"
3596 fi
3597 else
3598 if test "$GCC" = yes; then
3599 CFLAGS="-O2"
3600 else
3601 CFLAGS=
3602 fi
3603 fi
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3605 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3606 if ${ac_cv_prog_cc_c89+:} false; then :
3607 $as_echo_n "(cached) " >&6
3608 else
3609 ac_cv_prog_cc_c89=no
3610 ac_save_CC=$CC
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3613 #include <stdarg.h>
3614 #include <stdio.h>
3615 struct stat;
3616 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3617 struct buf { int x; };
3618 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3619 static char *e (p, i)
3620 char **p;
3621 int i;
3622 {
3623 return p[i];
3624 }
3625 static char *f (char * (*g) (char **, int), char **p, ...)
3626 {
3627 char *s;
3628 va_list v;
3629 va_start (v,p);
3630 s = g (p, va_arg (v,int));
3631 va_end (v);
3632 return s;
3633 }
3634
3635 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3636 function prototypes and stuff, but not '\xHH' hex character constants.
3637 These don't provoke an error unfortunately, instead are silently treated
3638 as 'x'. The following induces an error, until -std is added to get
3639 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3640 array size at least. It's necessary to write '\x00'==0 to get something
3641 that's true only with -std. */
3642 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3643
3644 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3645 inside strings and character constants. */
3646 #define FOO(x) 'x'
3647 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3648
3649 int test (int i, double x);
3650 struct s1 {int (*f) (int a);};
3651 struct s2 {int (*f) (double a);};
3652 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3653 int argc;
3654 char **argv;
3655 int
3656 main ()
3657 {
3658 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3659 ;
3660 return 0;
3661 }
3662 _ACEOF
3663 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3664 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3665 do
3666 CC="$ac_save_CC $ac_arg"
3667 if ac_fn_c_try_compile "$LINENO"; then :
3668 ac_cv_prog_cc_c89=$ac_arg
3669 fi
3670 rm -f core conftest.err conftest.$ac_objext
3671 test "x$ac_cv_prog_cc_c89" != "xno" && break
3672 done
3673 rm -f conftest.$ac_ext
3674 CC=$ac_save_CC
3675
3676 fi
3677 # AC_CACHE_VAL
3678 case "x$ac_cv_prog_cc_c89" in
3679 x)
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3681 $as_echo "none needed" >&6; } ;;
3682 xno)
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3684 $as_echo "unsupported" >&6; } ;;
3685 *)
3686 CC="$CC $ac_cv_prog_cc_c89"
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3688 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3689 esac
3690 if test "x$ac_cv_prog_cc_c89" != xno; then :
3691
3692 fi
3693
3694 ac_ext=c
3695 ac_cpp='$CPP $CPPFLAGS'
3696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3699
3700 ac_ext=c
3701 ac_cpp='$CPP $CPPFLAGS'
3702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3706 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3707 if ${am_cv_prog_cc_c_o+:} false; then :
3708 $as_echo_n "(cached) " >&6
3709 else
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3712
3713 int
3714 main ()
3715 {
3716
3717 ;
3718 return 0;
3719 }
3720 _ACEOF
3721 # Make sure it works both with $CC and with simple cc.
3722 # Following AC_PROG_CC_C_O, we do the test twice because some
3723 # compilers refuse to overwrite an existing .o file with -o,
3724 # though they will create one.
3725 am_cv_prog_cc_c_o=yes
3726 for am_i in 1 2; do
3727 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3728 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3729 ac_status=$?
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } \
3732 && test -f conftest2.$ac_objext; then
3733 : OK
3734 else
3735 am_cv_prog_cc_c_o=no
3736 break
3737 fi
3738 done
3739 rm -f core conftest*
3740 unset am_i
3741 fi
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3743 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3744 if test "$am_cv_prog_cc_c_o" != yes; then
3745 # Losing compiler, so override with the script.
3746 # FIXME: It is wrong to rewrite CC.
3747 # But if we don't then we get into trouble of one sort or another.
3748 # A longer-term fix would be to have automake use am__CC in this case,
3749 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3750 CC="$am_aux_dir/compile $CC"
3751 fi
3752 ac_ext=c
3753 ac_cpp='$CPP $CPPFLAGS'
3754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3757
3758 DEPDIR="${am__leading_dot}deps"
3759
3760 ac_config_commands="$ac_config_commands depfiles"
3761
3762
3763 am_make=${MAKE-make}
3764 cat > confinc << 'END'
3765 am__doit:
3766 @echo this is the am__doit target
3767 .PHONY: am__doit
3768 END
3769 # If we don't find an include directive, just comment out the code.
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3771 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3772 am__include="#"
3773 am__quote=
3774 _am_result=none
3775 # First try GNU make style include.
3776 echo "include confinc" > confmf
3777 # Ignore all kinds of additional output from 'make'.
3778 case `$am_make -s -f confmf 2> /dev/null` in #(
3779 *the\ am__doit\ target*)
3780 am__include=include
3781 am__quote=
3782 _am_result=GNU
3783 ;;
3784 esac
3785 # Now try BSD make style include.
3786 if test "$am__include" = "#"; then
3787 echo '.include "confinc"' > confmf
3788 case `$am_make -s -f confmf 2> /dev/null` in #(
3789 *the\ am__doit\ target*)
3790 am__include=.include
3791 am__quote="\""
3792 _am_result=BSD
3793 ;;
3794 esac
3795 fi
3796
3797
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3799 $as_echo "$_am_result" >&6; }
3800 rm -f confinc confmf
3801
3802 # Check whether --enable-dependency-tracking was given.
3803 if test "${enable_dependency_tracking+set}" = set; then :
3804 enableval=$enable_dependency_tracking;
3805 fi
3806
3807 if test "x$enable_dependency_tracking" != xno; then
3808 am_depcomp="$ac_aux_dir/depcomp"
3809 AMDEPBACKSLASH='\'
3810 am__nodep='_no'
3811 fi
3812 if test "x$enable_dependency_tracking" != xno; then
3813 AMDEP_TRUE=
3814 AMDEP_FALSE='#'
3815 else
3816 AMDEP_TRUE='#'
3817 AMDEP_FALSE=
3818 fi
3819
3820
3821
3822 depcc="$CC" am_compiler_list=
3823
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3825 $as_echo_n "checking dependency style of $depcc... " >&6; }
3826 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3827 $as_echo_n "(cached) " >&6
3828 else
3829 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3830 # We make a subdir and do the tests there. Otherwise we can end up
3831 # making bogus files that we don't know about and never remove. For
3832 # instance it was reported that on HP-UX the gcc test will end up
3833 # making a dummy file named 'D' -- because '-MD' means "put the output
3834 # in D".
3835 rm -rf conftest.dir
3836 mkdir conftest.dir
3837 # Copy depcomp to subdir because otherwise we won't find it if we're
3838 # using a relative directory.
3839 cp "$am_depcomp" conftest.dir
3840 cd conftest.dir
3841 # We will build objects and dependencies in a subdirectory because
3842 # it helps to detect inapplicable dependency modes. For instance
3843 # both Tru64's cc and ICC support -MD to output dependencies as a
3844 # side effect of compilation, but ICC will put the dependencies in
3845 # the current directory while Tru64 will put them in the object
3846 # directory.
3847 mkdir sub
3848
3849 am_cv_CC_dependencies_compiler_type=none
3850 if test "$am_compiler_list" = ""; then
3851 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3852 fi
3853 am__universal=false
3854 case " $depcc " in #(
3855 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3856 esac
3857
3858 for depmode in $am_compiler_list; do
3859 # Setup a source with many dependencies, because some compilers
3860 # like to wrap large dependency lists on column 80 (with \), and
3861 # we should not choose a depcomp mode which is confused by this.
3862 #
3863 # We need to recreate these files for each test, as the compiler may
3864 # overwrite some of them when testing with obscure command lines.
3865 # This happens at least with the AIX C compiler.
3866 : > sub/conftest.c
3867 for i in 1 2 3 4 5 6; do
3868 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3869 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3870 # Solaris 10 /bin/sh.
3871 echo '/* dummy */' > sub/conftst$i.h
3872 done
3873 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3874
3875 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3876 # mode. It turns out that the SunPro C++ compiler does not properly
3877 # handle '-M -o', and we need to detect this. Also, some Intel
3878 # versions had trouble with output in subdirs.
3879 am__obj=sub/conftest.${OBJEXT-o}
3880 am__minus_obj="-o $am__obj"
3881 case $depmode in
3882 gcc)
3883 # This depmode causes a compiler race in universal mode.
3884 test "$am__universal" = false || continue
3885 ;;
3886 nosideeffect)
3887 # After this tag, mechanisms are not by side-effect, so they'll
3888 # only be used when explicitly requested.
3889 if test "x$enable_dependency_tracking" = xyes; then
3890 continue
3891 else
3892 break
3893 fi
3894 ;;
3895 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3896 # This compiler won't grok '-c -o', but also, the minuso test has
3897 # not run yet. These depmodes are late enough in the game, and
3898 # so weak that their functioning should not be impacted.
3899 am__obj=conftest.${OBJEXT-o}
3900 am__minus_obj=
3901 ;;
3902 none) break ;;
3903 esac
3904 if depmode=$depmode \
3905 source=sub/conftest.c object=$am__obj \
3906 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3907 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3908 >/dev/null 2>conftest.err &&
3909 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3910 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3911 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3912 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3913 # icc doesn't choke on unknown options, it will just issue warnings
3914 # or remarks (even with -Werror). So we grep stderr for any message
3915 # that says an option was ignored or not supported.
3916 # When given -MP, icc 7.0 and 7.1 complain thusly:
3917 # icc: Command line warning: ignoring option '-M'; no argument required
3918 # The diagnosis changed in icc 8.0:
3919 # icc: Command line remark: option '-MP' not supported
3920 if (grep 'ignoring option' conftest.err ||
3921 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3922 am_cv_CC_dependencies_compiler_type=$depmode
3923 break
3924 fi
3925 fi
3926 done
3927
3928 cd ..
3929 rm -rf conftest.dir
3930 else
3931 am_cv_CC_dependencies_compiler_type=none
3932 fi
3933
3934 fi
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3936 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3937 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3938
3939 if
3940 test "x$enable_dependency_tracking" != xno \
3941 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3942 am__fastdepCC_TRUE=
3943 am__fastdepCC_FALSE='#'
3944 else
3945 am__fastdepCC_TRUE='#'
3946 am__fastdepCC_FALSE=
3947 fi
3948
3949
3950 case `pwd` in
3951 *\ * | *\ *)
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3953 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3954 esac
3955
3956
3957
3958 macro_version='2.4.6'
3959 macro_revision='2.4.6'
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973 ltmain=$ac_aux_dir/ltmain.sh
3974
3975 # Make sure we can run config.sub.
3976 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3977 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3978
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3980 $as_echo_n "checking build system type... " >&6; }
3981 if ${ac_cv_build+:} false; then :
3982 $as_echo_n "(cached) " >&6
3983 else
3984 ac_build_alias=$build_alias
3985 test "x$ac_build_alias" = x &&
3986 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3987 test "x$ac_build_alias" = x &&
3988 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3989 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3990 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3991
3992 fi
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3994 $as_echo "$ac_cv_build" >&6; }
3995 case $ac_cv_build in
3996 *-*-*) ;;
3997 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3998 esac
3999 build=$ac_cv_build
4000 ac_save_IFS=$IFS; IFS='-'
4001 set x $ac_cv_build
4002 shift
4003 build_cpu=$1
4004 build_vendor=$2
4005 shift; shift
4006 # Remember, the first character of IFS is used to create $*,
4007 # except with old shells:
4008 build_os=$*
4009 IFS=$ac_save_IFS
4010 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4011
4012
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4014 $as_echo_n "checking host system type... " >&6; }
4015 if ${ac_cv_host+:} false; then :
4016 $as_echo_n "(cached) " >&6
4017 else
4018 if test "x$host_alias" = x; then
4019 ac_cv_host=$ac_cv_build
4020 else
4021 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4022 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4023 fi
4024
4025 fi
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4027 $as_echo "$ac_cv_host" >&6; }
4028 case $ac_cv_host in
4029 *-*-*) ;;
4030 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4031 esac
4032 host=$ac_cv_host
4033 ac_save_IFS=$IFS; IFS='-'
4034 set x $ac_cv_host
4035 shift
4036 host_cpu=$1
4037 host_vendor=$2
4038 shift; shift
4039 # Remember, the first character of IFS is used to create $*,
4040 # except with old shells:
4041 host_os=$*
4042 IFS=$ac_save_IFS
4043 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4044
4045
4046 # Backslashify metacharacters that are still active within
4047 # double-quoted strings.
4048 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4049
4050 # Same as above, but do not quote variable references.
4051 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4052
4053 # Sed substitution to delay expansion of an escaped shell variable in a
4054 # double_quote_subst'ed string.
4055 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4056
4057 # Sed substitution to delay expansion of an escaped single quote.
4058 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4059
4060 # Sed substitution to avoid accidental globbing in evaled expressions
4061 no_glob_subst='s/\*/\\\*/g'
4062
4063 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4064 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4065 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4066
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4068 $as_echo_n "checking how to print strings... " >&6; }
4069 # Test print first, because it will be a builtin if present.
4070 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4071 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4072 ECHO='print -r --'
4073 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4074 ECHO='printf %s\n'
4075 else
4076 # Use this function as a fallback that always works.
4077 func_fallback_echo ()
4078 {
4079 eval 'cat <<_LTECHO_EOF
4080 $1
4081 _LTECHO_EOF'
4082 }
4083 ECHO='func_fallback_echo'
4084 fi
4085
4086 # func_echo_all arg...
4087 # Invoke $ECHO with all args, space-separated.
4088 func_echo_all ()
4089 {
4090 $ECHO ""
4091 }
4092
4093 case $ECHO in
4094 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4095 $as_echo "printf" >&6; } ;;
4096 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4097 $as_echo "print -r" >&6; } ;;
4098 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4099 $as_echo "cat" >&6; } ;;
4100 esac
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4116 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4117 if ${ac_cv_path_SED+:} false; then :
4118 $as_echo_n "(cached) " >&6
4119 else
4120 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4121 for ac_i in 1 2 3 4 5 6 7; do
4122 ac_script="$ac_script$as_nl$ac_script"
4123 done
4124 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4125 { ac_script=; unset ac_script;}
4126 if test -z "$SED"; then
4127 ac_path_SED_found=false
4128 # Loop through the user's path and test for each of PROGNAME-LIST
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4131 do
4132 IFS=$as_save_IFS
4133 test -z "$as_dir" && as_dir=.
4134 for ac_prog in sed gsed; do
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4137 as_fn_executable_p "$ac_path_SED" || continue
4138 # Check for GNU ac_path_SED and select it if it is found.
4139 # Check for GNU $ac_path_SED
4140 case `"$ac_path_SED" --version 2>&1` in
4141 *GNU*)
4142 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4143 *)
4144 ac_count=0
4145 $as_echo_n 0123456789 >"conftest.in"
4146 while :
4147 do
4148 cat "conftest.in" "conftest.in" >"conftest.tmp"
4149 mv "conftest.tmp" "conftest.in"
4150 cp "conftest.in" "conftest.nl"
4151 $as_echo '' >> "conftest.nl"
4152 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4153 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4154 as_fn_arith $ac_count + 1 && ac_count=$as_val
4155 if test $ac_count -gt ${ac_path_SED_max-0}; then
4156 # Best one so far, save it but keep looking for a better one
4157 ac_cv_path_SED="$ac_path_SED"
4158 ac_path_SED_max=$ac_count
4159 fi
4160 # 10*(2^10) chars as input seems more than enough
4161 test $ac_count -gt 10 && break
4162 done
4163 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4164 esac
4165
4166 $ac_path_SED_found && break 3
4167 done
4168 done
4169 done
4170 IFS=$as_save_IFS
4171 if test -z "$ac_cv_path_SED"; then
4172 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4173 fi
4174 else
4175 ac_cv_path_SED=$SED
4176 fi
4177
4178 fi
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4180 $as_echo "$ac_cv_path_SED" >&6; }
4181 SED="$ac_cv_path_SED"
4182 rm -f conftest.sed
4183
4184 test -z "$SED" && SED=sed
4185 Xsed="$SED -e 1s/^X//"
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4198 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4199 if ${ac_cv_path_GREP+:} false; then :
4200 $as_echo_n "(cached) " >&6
4201 else
4202 if test -z "$GREP"; then
4203 ac_path_GREP_found=false
4204 # Loop through the user's path and test for each of PROGNAME-LIST
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4207 do
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
4210 for ac_prog in grep ggrep; do
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4213 as_fn_executable_p "$ac_path_GREP" || continue
4214 # Check for GNU ac_path_GREP and select it if it is found.
4215 # Check for GNU $ac_path_GREP
4216 case `"$ac_path_GREP" --version 2>&1` in
4217 *GNU*)
4218 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4219 *)
4220 ac_count=0
4221 $as_echo_n 0123456789 >"conftest.in"
4222 while :
4223 do
4224 cat "conftest.in" "conftest.in" >"conftest.tmp"
4225 mv "conftest.tmp" "conftest.in"
4226 cp "conftest.in" "conftest.nl"
4227 $as_echo 'GREP' >> "conftest.nl"
4228 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4229 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4230 as_fn_arith $ac_count + 1 && ac_count=$as_val
4231 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4232 # Best one so far, save it but keep looking for a better one
4233 ac_cv_path_GREP="$ac_path_GREP"
4234 ac_path_GREP_max=$ac_count
4235 fi
4236 # 10*(2^10) chars as input seems more than enough
4237 test $ac_count -gt 10 && break
4238 done
4239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4240 esac
4241
4242 $ac_path_GREP_found && break 3
4243 done
4244 done
4245 done
4246 IFS=$as_save_IFS
4247 if test -z "$ac_cv_path_GREP"; then
4248 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4249 fi
4250 else
4251 ac_cv_path_GREP=$GREP
4252 fi
4253
4254 fi
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4256 $as_echo "$ac_cv_path_GREP" >&6; }
4257 GREP="$ac_cv_path_GREP"
4258
4259
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4261 $as_echo_n "checking for egrep... " >&6; }
4262 if ${ac_cv_path_EGREP+:} false; then :
4263 $as_echo_n "(cached) " >&6
4264 else
4265 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4266 then ac_cv_path_EGREP="$GREP -E"
4267 else
4268 if test -z "$EGREP"; then
4269 ac_path_EGREP_found=false
4270 # Loop through the user's path and test for each of PROGNAME-LIST
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4273 do
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_prog in egrep; do
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4279 as_fn_executable_p "$ac_path_EGREP" || continue
4280 # Check for GNU ac_path_EGREP and select it if it is found.
4281 # Check for GNU $ac_path_EGREP
4282 case `"$ac_path_EGREP" --version 2>&1` in
4283 *GNU*)
4284 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4285 *)
4286 ac_count=0
4287 $as_echo_n 0123456789 >"conftest.in"
4288 while :
4289 do
4290 cat "conftest.in" "conftest.in" >"conftest.tmp"
4291 mv "conftest.tmp" "conftest.in"
4292 cp "conftest.in" "conftest.nl"
4293 $as_echo 'EGREP' >> "conftest.nl"
4294 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4295 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4296 as_fn_arith $ac_count + 1 && ac_count=$as_val
4297 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4298 # Best one so far, save it but keep looking for a better one
4299 ac_cv_path_EGREP="$ac_path_EGREP"
4300 ac_path_EGREP_max=$ac_count
4301 fi
4302 # 10*(2^10) chars as input seems more than enough
4303 test $ac_count -gt 10 && break
4304 done
4305 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4306 esac
4307
4308 $ac_path_EGREP_found && break 3
4309 done
4310 done
4311 done
4312 IFS=$as_save_IFS
4313 if test -z "$ac_cv_path_EGREP"; then
4314 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4315 fi
4316 else
4317 ac_cv_path_EGREP=$EGREP
4318 fi
4319
4320 fi
4321 fi
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4323 $as_echo "$ac_cv_path_EGREP" >&6; }
4324 EGREP="$ac_cv_path_EGREP"
4325
4326
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4328 $as_echo_n "checking for fgrep... " >&6; }
4329 if ${ac_cv_path_FGREP+:} false; then :
4330 $as_echo_n "(cached) " >&6
4331 else
4332 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4333 then ac_cv_path_FGREP="$GREP -F"
4334 else
4335 if test -z "$FGREP"; then
4336 ac_path_FGREP_found=false
4337 # Loop through the user's path and test for each of PROGNAME-LIST
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4340 do
4341 IFS=$as_save_IFS
4342 test -z "$as_dir" && as_dir=.
4343 for ac_prog in fgrep; do
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4346 as_fn_executable_p "$ac_path_FGREP" || continue
4347 # Check for GNU ac_path_FGREP and select it if it is found.
4348 # Check for GNU $ac_path_FGREP
4349 case `"$ac_path_FGREP" --version 2>&1` in
4350 *GNU*)
4351 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4352 *)
4353 ac_count=0
4354 $as_echo_n 0123456789 >"conftest.in"
4355 while :
4356 do
4357 cat "conftest.in" "conftest.in" >"conftest.tmp"
4358 mv "conftest.tmp" "conftest.in"
4359 cp "conftest.in" "conftest.nl"
4360 $as_echo 'FGREP' >> "conftest.nl"
4361 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4362 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4363 as_fn_arith $ac_count + 1 && ac_count=$as_val
4364 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4365 # Best one so far, save it but keep looking for a better one
4366 ac_cv_path_FGREP="$ac_path_FGREP"
4367 ac_path_FGREP_max=$ac_count
4368 fi
4369 # 10*(2^10) chars as input seems more than enough
4370 test $ac_count -gt 10 && break
4371 done
4372 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4373 esac
4374
4375 $ac_path_FGREP_found && break 3
4376 done
4377 done
4378 done
4379 IFS=$as_save_IFS
4380 if test -z "$ac_cv_path_FGREP"; then
4381 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4382 fi
4383 else
4384 ac_cv_path_FGREP=$FGREP
4385 fi
4386
4387 fi
4388 fi
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4390 $as_echo "$ac_cv_path_FGREP" >&6; }
4391 FGREP="$ac_cv_path_FGREP"
4392
4393
4394 test -z "$GREP" && GREP=grep
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414 # Check whether --with-gnu-ld was given.
4415 if test "${with_gnu_ld+set}" = set; then :
4416 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4417 else
4418 with_gnu_ld=no
4419 fi
4420
4421 ac_prog=ld
4422 if test yes = "$GCC"; then
4423 # Check if gcc -print-prog-name=ld gives a path.
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4425 $as_echo_n "checking for ld used by $CC... " >&6; }
4426 case $host in
4427 *-*-mingw*)
4428 # gcc leaves a trailing carriage return, which upsets mingw
4429 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4430 *)
4431 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4432 esac
4433 case $ac_prog in
4434 # Accept absolute paths.
4435 [\\/]* | ?:[\\/]*)
4436 re_direlt='/[^/][^/]*/\.\./'
4437 # Canonicalize the pathname of ld
4438 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4439 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4440 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4441 done
4442 test -z "$LD" && LD=$ac_prog
4443 ;;
4444 "")
4445 # If it fails, then pretend we aren't using GCC.
4446 ac_prog=ld
4447 ;;
4448 *)
4449 # If it is relative, then search for the first ld in PATH.
4450 with_gnu_ld=unknown
4451 ;;
4452 esac
4453 elif test yes = "$with_gnu_ld"; then
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4455 $as_echo_n "checking for GNU ld... " >&6; }
4456 else
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4458 $as_echo_n "checking for non-GNU ld... " >&6; }
4459 fi
4460 if ${lt_cv_path_LD+:} false; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 if test -z "$LD"; then
4464 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4465 for ac_dir in $PATH; do
4466 IFS=$lt_save_ifs
4467 test -z "$ac_dir" && ac_dir=.
4468 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4469 lt_cv_path_LD=$ac_dir/$ac_prog
4470 # Check to see if the program is GNU ld. I'd rather use --version,
4471 # but apparently some variants of GNU ld only accept -v.
4472 # Break only if it was the GNU/non-GNU ld that we prefer.
4473 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4474 *GNU* | *'with BFD'*)
4475 test no != "$with_gnu_ld" && break
4476 ;;
4477 *)
4478 test yes != "$with_gnu_ld" && break
4479 ;;
4480 esac
4481 fi
4482 done
4483 IFS=$lt_save_ifs
4484 else
4485 lt_cv_path_LD=$LD # Let the user override the test with a path.
4486 fi
4487 fi
4488
4489 LD=$lt_cv_path_LD
4490 if test -n "$LD"; then
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4492 $as_echo "$LD" >&6; }
4493 else
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4495 $as_echo "no" >&6; }
4496 fi
4497 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4499 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4500 if ${lt_cv_prog_gnu_ld+:} false; then :
4501 $as_echo_n "(cached) " >&6
4502 else
4503 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4504 case `$LD -v 2>&1 </dev/null` in
4505 *GNU* | *'with BFD'*)
4506 lt_cv_prog_gnu_ld=yes
4507 ;;
4508 *)
4509 lt_cv_prog_gnu_ld=no
4510 ;;
4511 esac
4512 fi
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4514 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4515 with_gnu_ld=$lt_cv_prog_gnu_ld
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4526 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4527 if ${lt_cv_path_NM+:} false; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 if test -n "$NM"; then
4531 # Let the user override the test.
4532 lt_cv_path_NM=$NM
4533 else
4534 lt_nm_to_check=${ac_tool_prefix}nm
4535 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4536 lt_nm_to_check="$lt_nm_to_check nm"
4537 fi
4538 for lt_tmp_nm in $lt_nm_to_check; do
4539 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4540 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4541 IFS=$lt_save_ifs
4542 test -z "$ac_dir" && ac_dir=.
4543 tmp_nm=$ac_dir/$lt_tmp_nm
4544 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4545 # Check to see if the nm accepts a BSD-compat flag.
4546 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4547 # nm: unknown option "B" ignored
4548 # Tru64's nm complains that /dev/null is an invalid object file
4549 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4550 case $build_os in
4551 mingw*) lt_bad_file=conftest.nm/nofile ;;
4552 *) lt_bad_file=/dev/null ;;
4553 esac
4554 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4555 *$lt_bad_file* | *'Invalid file or object type'*)
4556 lt_cv_path_NM="$tmp_nm -B"
4557 break 2
4558 ;;
4559 *)
4560 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4561 */dev/null*)
4562 lt_cv_path_NM="$tmp_nm -p"
4563 break 2
4564 ;;
4565 *)
4566 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4567 continue # so that we can try to find one that supports BSD flags
4568 ;;
4569 esac
4570 ;;
4571 esac
4572 fi
4573 done
4574 IFS=$lt_save_ifs
4575 done
4576 : ${lt_cv_path_NM=no}
4577 fi
4578 fi
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4580 $as_echo "$lt_cv_path_NM" >&6; }
4581 if test no != "$lt_cv_path_NM"; then
4582 NM=$lt_cv_path_NM
4583 else
4584 # Didn't find any BSD compatible name lister, look for dumpbin.
4585 if test -n "$DUMPBIN"; then :
4586 # Let the user override the test.
4587 else
4588 if test -n "$ac_tool_prefix"; then
4589 for ac_prog in dumpbin "link -dump"
4590 do
4591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594 $as_echo_n "checking for $ac_word... " >&6; }
4595 if ${ac_cv_prog_DUMPBIN+:} false; then :
4596 $as_echo_n "(cached) " >&6
4597 else
4598 if test -n "$DUMPBIN"; then
4599 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4600 else
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH
4603 do
4604 IFS=$as_save_IFS
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4608 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 break 2
4611 fi
4612 done
4613 done
4614 IFS=$as_save_IFS
4615
4616 fi
4617 fi
4618 DUMPBIN=$ac_cv_prog_DUMPBIN
4619 if test -n "$DUMPBIN"; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4621 $as_echo "$DUMPBIN" >&6; }
4622 else
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 $as_echo "no" >&6; }
4625 fi
4626
4627
4628 test -n "$DUMPBIN" && break
4629 done
4630 fi
4631 if test -z "$DUMPBIN"; then
4632 ac_ct_DUMPBIN=$DUMPBIN
4633 for ac_prog in dumpbin "link -dump"
4634 do
4635 # Extract the first word of "$ac_prog", so it can be a program name with args.
4636 set dummy $ac_prog; ac_word=$2
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638 $as_echo_n "checking for $ac_word... " >&6; }
4639 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 if test -n "$ac_ct_DUMPBIN"; then
4643 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4644 else
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4647 do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4652 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 break 2
4655 fi
4656 done
4657 done
4658 IFS=$as_save_IFS
4659
4660 fi
4661 fi
4662 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4663 if test -n "$ac_ct_DUMPBIN"; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4665 $as_echo "$ac_ct_DUMPBIN" >&6; }
4666 else
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668 $as_echo "no" >&6; }
4669 fi
4670
4671
4672 test -n "$ac_ct_DUMPBIN" && break
4673 done
4674
4675 if test "x$ac_ct_DUMPBIN" = x; then
4676 DUMPBIN=":"
4677 else
4678 case $cross_compiling:$ac_tool_warned in
4679 yes:)
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4682 ac_tool_warned=yes ;;
4683 esac
4684 DUMPBIN=$ac_ct_DUMPBIN
4685 fi
4686 fi
4687
4688 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4689 *COFF*)
4690 DUMPBIN="$DUMPBIN -symbols -headers"
4691 ;;
4692 *)
4693 DUMPBIN=:
4694 ;;
4695 esac
4696 fi
4697
4698 if test : != "$DUMPBIN"; then
4699 NM=$DUMPBIN
4700 fi
4701 fi
4702 test -z "$NM" && NM=nm
4703
4704
4705
4706
4707
4708
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4710 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4711 if ${lt_cv_nm_interface+:} false; then :
4712 $as_echo_n "(cached) " >&6
4713 else
4714 lt_cv_nm_interface="BSD nm"
4715 echo "int some_variable = 0;" > conftest.$ac_ext
4716 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4717 (eval "$ac_compile" 2>conftest.err)
4718 cat conftest.err >&5
4719 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4720 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4721 cat conftest.err >&5
4722 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4723 cat conftest.out >&5
4724 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4725 lt_cv_nm_interface="MS dumpbin"
4726 fi
4727 rm -f conftest*
4728 fi
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4730 $as_echo "$lt_cv_nm_interface" >&6; }
4731
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4733 $as_echo_n "checking whether ln -s works... " >&6; }
4734 LN_S=$as_ln_s
4735 if test "$LN_S" = "ln -s"; then
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4737 $as_echo "yes" >&6; }
4738 else
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4740 $as_echo "no, using $LN_S" >&6; }
4741 fi
4742
4743 # find the maximum length of command line arguments
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4745 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4746 if ${lt_cv_sys_max_cmd_len+:} false; then :
4747 $as_echo_n "(cached) " >&6
4748 else
4749 i=0
4750 teststring=ABCD
4751
4752 case $build_os in
4753 msdosdjgpp*)
4754 # On DJGPP, this test can blow up pretty badly due to problems in libc
4755 # (any single argument exceeding 2000 bytes causes a buffer overrun
4756 # during glob expansion). Even if it were fixed, the result of this
4757 # check would be larger than it should be.
4758 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4759 ;;
4760
4761 gnu*)
4762 # Under GNU Hurd, this test is not required because there is
4763 # no limit to the length of command line arguments.
4764 # Libtool will interpret -1 as no limit whatsoever
4765 lt_cv_sys_max_cmd_len=-1;
4766 ;;
4767
4768 cygwin* | mingw* | cegcc*)
4769 # On Win9x/ME, this test blows up -- it succeeds, but takes
4770 # about 5 minutes as the teststring grows exponentially.
4771 # Worse, since 9x/ME are not pre-emptively multitasking,
4772 # you end up with a "frozen" computer, even though with patience
4773 # the test eventually succeeds (with a max line length of 256k).
4774 # Instead, let's just punt: use the minimum linelength reported by
4775 # all of the supported platforms: 8192 (on NT/2K/XP).
4776 lt_cv_sys_max_cmd_len=8192;
4777 ;;
4778
4779 mint*)
4780 # On MiNT this can take a long time and run out of memory.
4781 lt_cv_sys_max_cmd_len=8192;
4782 ;;
4783
4784 amigaos*)
4785 # On AmigaOS with pdksh, this test takes hours, literally.
4786 # So we just punt and use a minimum line length of 8192.
4787 lt_cv_sys_max_cmd_len=8192;
4788 ;;
4789
4790 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4791 # This has been around since 386BSD, at least. Likely further.
4792 if test -x /sbin/sysctl; then
4793 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4794 elif test -x /usr/sbin/sysctl; then
4795 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4796 else
4797 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4798 fi
4799 # And add a safety zone
4800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4802 ;;
4803
4804 interix*)
4805 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4806 lt_cv_sys_max_cmd_len=196608
4807 ;;
4808
4809 os2*)
4810 # The test takes a long time on OS/2.
4811 lt_cv_sys_max_cmd_len=8192
4812 ;;
4813
4814 osf*)
4815 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4816 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4817 # nice to cause kernel panics so lets avoid the loop below.
4818 # First set a reasonable default.
4819 lt_cv_sys_max_cmd_len=16384
4820 #
4821 if test -x /sbin/sysconfig; then
4822 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4823 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4824 esac
4825 fi
4826 ;;
4827 sco3.2v5*)
4828 lt_cv_sys_max_cmd_len=102400
4829 ;;
4830 sysv5* | sco5v6* | sysv4.2uw2*)
4831 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4832 if test -n "$kargmax"; then
4833 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4834 else
4835 lt_cv_sys_max_cmd_len=32768
4836 fi
4837 ;;
4838 *)
4839 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4840 if test -n "$lt_cv_sys_max_cmd_len" && \
4841 test undefined != "$lt_cv_sys_max_cmd_len"; then
4842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4843 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4844 else
4845 # Make teststring a little bigger before we do anything with it.
4846 # a 1K string should be a reasonable start.
4847 for i in 1 2 3 4 5 6 7 8; do
4848 teststring=$teststring$teststring
4849 done
4850 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4851 # If test is not a shell built-in, we'll probably end up computing a
4852 # maximum length that is only half of the actual maximum length, but
4853 # we can't tell.
4854 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4855 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4856 test 17 != "$i" # 1/2 MB should be enough
4857 do
4858 i=`expr $i + 1`
4859 teststring=$teststring$teststring
4860 done
4861 # Only check the string length outside the loop.
4862 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4863 teststring=
4864 # Add a significant safety factor because C++ compilers can tack on
4865 # massive amounts of additional arguments before passing them to the
4866 # linker. It appears as though 1/2 is a usable value.
4867 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4868 fi
4869 ;;
4870 esac
4871
4872 fi
4873
4874 if test -n "$lt_cv_sys_max_cmd_len"; then
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4876 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4877 else
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4879 $as_echo "none" >&6; }
4880 fi
4881 max_cmd_len=$lt_cv_sys_max_cmd_len
4882
4883
4884
4885
4886
4887
4888 : ${CP="cp -f"}
4889 : ${MV="mv -f"}
4890 : ${RM="rm -f"}
4891
4892 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4893 lt_unset=unset
4894 else
4895 lt_unset=false
4896 fi
4897
4898
4899
4900
4901
4902 # test EBCDIC or ASCII
4903 case `echo X|tr X '\101'` in
4904 A) # ASCII based system
4905 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4906 lt_SP2NL='tr \040 \012'
4907 lt_NL2SP='tr \015\012 \040\040'
4908 ;;
4909 *) # EBCDIC based system
4910 lt_SP2NL='tr \100 \n'
4911 lt_NL2SP='tr \r\n \100\100'
4912 ;;
4913 esac
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4924 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4925 if ${lt_cv_to_host_file_cmd+:} false; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 case $host in
4929 *-*-mingw* )
4930 case $build in
4931 *-*-mingw* ) # actually msys
4932 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4933 ;;
4934 *-*-cygwin* )
4935 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4936 ;;
4937 * ) # otherwise, assume *nix
4938 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4939 ;;
4940 esac
4941 ;;
4942 *-*-cygwin* )
4943 case $build in
4944 *-*-mingw* ) # actually msys
4945 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4946 ;;
4947 *-*-cygwin* )
4948 lt_cv_to_host_file_cmd=func_convert_file_noop
4949 ;;
4950 * ) # otherwise, assume *nix
4951 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4952 ;;
4953 esac
4954 ;;
4955 * ) # unhandled hosts (and "normal" native builds)
4956 lt_cv_to_host_file_cmd=func_convert_file_noop
4957 ;;
4958 esac
4959
4960 fi
4961
4962 to_host_file_cmd=$lt_cv_to_host_file_cmd
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4964 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4965
4966
4967
4968
4969
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4971 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4972 if ${lt_cv_to_tool_file_cmd+:} false; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 #assume ordinary cross tools, or native build.
4976 lt_cv_to_tool_file_cmd=func_convert_file_noop
4977 case $host in
4978 *-*-mingw* )
4979 case $build in
4980 *-*-mingw* ) # actually msys
4981 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4982 ;;
4983 esac
4984 ;;
4985 esac
4986
4987 fi
4988
4989 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4991 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4992
4993
4994
4995
4996
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4998 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4999 if ${lt_cv_ld_reload_flag+:} false; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 lt_cv_ld_reload_flag='-r'
5003 fi
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5005 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5006 reload_flag=$lt_cv_ld_reload_flag
5007 case $reload_flag in
5008 "" | " "*) ;;
5009 *) reload_flag=" $reload_flag" ;;
5010 esac
5011 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5012 case $host_os in
5013 cygwin* | mingw* | pw32* | cegcc*)
5014 if test yes != "$GCC"; then
5015 reload_cmds=false
5016 fi
5017 ;;
5018 darwin*)
5019 if test yes = "$GCC"; then
5020 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5021 else
5022 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5023 fi
5024 ;;
5025 esac
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035 if test -n "$ac_tool_prefix"; then
5036 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5037 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5039 $as_echo_n "checking for $ac_word... " >&6; }
5040 if ${ac_cv_prog_OBJDUMP+:} false; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 if test -n "$OBJDUMP"; then
5044 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5045 else
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5048 do
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5053 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 break 2
5056 fi
5057 done
5058 done
5059 IFS=$as_save_IFS
5060
5061 fi
5062 fi
5063 OBJDUMP=$ac_cv_prog_OBJDUMP
5064 if test -n "$OBJDUMP"; then
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5066 $as_echo "$OBJDUMP" >&6; }
5067 else
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069 $as_echo "no" >&6; }
5070 fi
5071
5072
5073 fi
5074 if test -z "$ac_cv_prog_OBJDUMP"; then
5075 ac_ct_OBJDUMP=$OBJDUMP
5076 # Extract the first word of "objdump", so it can be a program name with args.
5077 set dummy objdump; ac_word=$2
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079 $as_echo_n "checking for $ac_word... " >&6; }
5080 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5081 $as_echo_n "(cached) " >&6
5082 else
5083 if test -n "$ac_ct_OBJDUMP"; then
5084 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5085 else
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH
5088 do
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5093 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 break 2
5096 fi
5097 done
5098 done
5099 IFS=$as_save_IFS
5100
5101 fi
5102 fi
5103 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5104 if test -n "$ac_ct_OBJDUMP"; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5106 $as_echo "$ac_ct_OBJDUMP" >&6; }
5107 else
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5110 fi
5111
5112 if test "x$ac_ct_OBJDUMP" = x; then
5113 OBJDUMP="false"
5114 else
5115 case $cross_compiling:$ac_tool_warned in
5116 yes:)
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5119 ac_tool_warned=yes ;;
5120 esac
5121 OBJDUMP=$ac_ct_OBJDUMP
5122 fi
5123 else
5124 OBJDUMP="$ac_cv_prog_OBJDUMP"
5125 fi
5126
5127 test -z "$OBJDUMP" && OBJDUMP=objdump
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5138 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5139 if ${lt_cv_deplibs_check_method+:} false; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 lt_cv_file_magic_cmd='$MAGIC_CMD'
5143 lt_cv_file_magic_test_file=
5144 lt_cv_deplibs_check_method='unknown'
5145 # Need to set the preceding variable on all platforms that support
5146 # interlibrary dependencies.
5147 # 'none' -- dependencies not supported.
5148 # 'unknown' -- same as none, but documents that we really don't know.
5149 # 'pass_all' -- all dependencies passed with no checks.
5150 # 'test_compile' -- check by making test program.
5151 # 'file_magic [[regex]]' -- check by looking for files in library path
5152 # that responds to the $file_magic_cmd with a given extended regex.
5153 # If you have 'file' or equivalent on your system and you're not sure
5154 # whether 'pass_all' will *always* work, you probably want this one.
5155
5156 case $host_os in
5157 aix[4-9]*)
5158 lt_cv_deplibs_check_method=pass_all
5159 ;;
5160
5161 beos*)
5162 lt_cv_deplibs_check_method=pass_all
5163 ;;
5164
5165 bsdi[45]*)
5166 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5167 lt_cv_file_magic_cmd='/usr/bin/file -L'
5168 lt_cv_file_magic_test_file=/shlib/libc.so
5169 ;;
5170
5171 cygwin*)
5172 # func_win32_libid is a shell function defined in ltmain.sh
5173 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5174 lt_cv_file_magic_cmd='func_win32_libid'
5175 ;;
5176
5177 mingw* | pw32*)
5178 # Base MSYS/MinGW do not provide the 'file' command needed by
5179 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5180 # unless we find 'file', for example because we are cross-compiling.
5181 if ( file / ) >/dev/null 2>&1; then
5182 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5183 lt_cv_file_magic_cmd='func_win32_libid'
5184 else
5185 # Keep this pattern in sync with the one in func_win32_libid.
5186 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5187 lt_cv_file_magic_cmd='$OBJDUMP -f'
5188 fi
5189 ;;
5190
5191 cegcc*)
5192 # use the weaker test based on 'objdump'. See mingw*.
5193 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5194 lt_cv_file_magic_cmd='$OBJDUMP -f'
5195 ;;
5196
5197 darwin* | rhapsody*)
5198 lt_cv_deplibs_check_method=pass_all
5199 ;;
5200
5201 freebsd* | dragonfly*)
5202 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5203 case $host_cpu in
5204 i*86 )
5205 # Not sure whether the presence of OpenBSD here was a mistake.
5206 # Let's accept both of them until this is cleared up.
5207 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5208 lt_cv_file_magic_cmd=/usr/bin/file
5209 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5210 ;;
5211 esac
5212 else
5213 lt_cv_deplibs_check_method=pass_all
5214 fi
5215 ;;
5216
5217 haiku*)
5218 lt_cv_deplibs_check_method=pass_all
5219 ;;
5220
5221 hpux10.20* | hpux11*)
5222 lt_cv_file_magic_cmd=/usr/bin/file
5223 case $host_cpu in
5224 ia64*)
5225 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5226 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5227 ;;
5228 hppa*64*)
5229 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]'
5230 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5231 ;;
5232 *)
5233 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5234 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5235 ;;
5236 esac
5237 ;;
5238
5239 interix[3-9]*)
5240 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5241 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5242 ;;
5243
5244 irix5* | irix6* | nonstopux*)
5245 case $LD in
5246 *-32|*"-32 ") libmagic=32-bit;;
5247 *-n32|*"-n32 ") libmagic=N32;;
5248 *-64|*"-64 ") libmagic=64-bit;;
5249 *) libmagic=never-match;;
5250 esac
5251 lt_cv_deplibs_check_method=pass_all
5252 ;;
5253
5254 # This must be glibc/ELF.
5255 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5256 lt_cv_deplibs_check_method=pass_all
5257 ;;
5258
5259 netbsd* | netbsdelf*-gnu)
5260 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5261 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5262 else
5263 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5264 fi
5265 ;;
5266
5267 newos6*)
5268 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5269 lt_cv_file_magic_cmd=/usr/bin/file
5270 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5271 ;;
5272
5273 *nto* | *qnx*)
5274 lt_cv_deplibs_check_method=pass_all
5275 ;;
5276
5277 openbsd* | bitrig*)
5278 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5280 else
5281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5282 fi
5283 ;;
5284
5285 osf3* | osf4* | osf5*)
5286 lt_cv_deplibs_check_method=pass_all
5287 ;;
5288
5289 rdos*)
5290 lt_cv_deplibs_check_method=pass_all
5291 ;;
5292
5293 solaris*)
5294 lt_cv_deplibs_check_method=pass_all
5295 ;;
5296
5297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5298 lt_cv_deplibs_check_method=pass_all
5299 ;;
5300
5301 sysv4 | sysv4.3*)
5302 case $host_vendor in
5303 motorola)
5304 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]'
5305 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5306 ;;
5307 ncr)
5308 lt_cv_deplibs_check_method=pass_all
5309 ;;
5310 sequent)
5311 lt_cv_file_magic_cmd='/bin/file'
5312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5313 ;;
5314 sni)
5315 lt_cv_file_magic_cmd='/bin/file'
5316 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5317 lt_cv_file_magic_test_file=/lib/libc.so
5318 ;;
5319 siemens)
5320 lt_cv_deplibs_check_method=pass_all
5321 ;;
5322 pc)
5323 lt_cv_deplibs_check_method=pass_all
5324 ;;
5325 esac
5326 ;;
5327
5328 tpf*)
5329 lt_cv_deplibs_check_method=pass_all
5330 ;;
5331 os2*)
5332 lt_cv_deplibs_check_method=pass_all
5333 ;;
5334 esac
5335
5336 fi
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5338 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5339
5340 file_magic_glob=
5341 want_nocaseglob=no
5342 if test "$build" = "$host"; then
5343 case $host_os in
5344 mingw* | pw32*)
5345 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5346 want_nocaseglob=yes
5347 else
5348 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5349 fi
5350 ;;
5351 esac
5352 fi
5353
5354 file_magic_cmd=$lt_cv_file_magic_cmd
5355 deplibs_check_method=$lt_cv_deplibs_check_method
5356 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379 if test -n "$ac_tool_prefix"; then
5380 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5381 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5383 $as_echo_n "checking for $ac_word... " >&6; }
5384 if ${ac_cv_prog_DLLTOOL+:} false; then :
5385 $as_echo_n "(cached) " >&6
5386 else
5387 if test -n "$DLLTOOL"; then
5388 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5389 else
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH
5392 do
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 break 2
5400 fi
5401 done
5402 done
5403 IFS=$as_save_IFS
5404
5405 fi
5406 fi
5407 DLLTOOL=$ac_cv_prog_DLLTOOL
5408 if test -n "$DLLTOOL"; then
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5410 $as_echo "$DLLTOOL" >&6; }
5411 else
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413 $as_echo "no" >&6; }
5414 fi
5415
5416
5417 fi
5418 if test -z "$ac_cv_prog_DLLTOOL"; then
5419 ac_ct_DLLTOOL=$DLLTOOL
5420 # Extract the first word of "dlltool", so it can be a program name with args.
5421 set dummy dlltool; ac_word=$2
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5425 $as_echo_n "(cached) " >&6
5426 else
5427 if test -n "$ac_ct_DLLTOOL"; then
5428 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5429 else
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 for as_dir in $PATH
5432 do
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5437 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 break 2
5440 fi
5441 done
5442 done
5443 IFS=$as_save_IFS
5444
5445 fi
5446 fi
5447 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5448 if test -n "$ac_ct_DLLTOOL"; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5450 $as_echo "$ac_ct_DLLTOOL" >&6; }
5451 else
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5454 fi
5455
5456 if test "x$ac_ct_DLLTOOL" = x; then
5457 DLLTOOL="false"
5458 else
5459 case $cross_compiling:$ac_tool_warned in
5460 yes:)
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5463 ac_tool_warned=yes ;;
5464 esac
5465 DLLTOOL=$ac_ct_DLLTOOL
5466 fi
5467 else
5468 DLLTOOL="$ac_cv_prog_DLLTOOL"
5469 fi
5470
5471 test -z "$DLLTOOL" && DLLTOOL=dlltool
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5483 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5484 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 lt_cv_sharedlib_from_linklib_cmd='unknown'
5488
5489 case $host_os in
5490 cygwin* | mingw* | pw32* | cegcc*)
5491 # two different shell functions defined in ltmain.sh;
5492 # decide which one to use based on capabilities of $DLLTOOL
5493 case `$DLLTOOL --help 2>&1` in
5494 *--identify-strict*)
5495 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5496 ;;
5497 *)
5498 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5499 ;;
5500 esac
5501 ;;
5502 *)
5503 # fallback: assume linklib IS sharedlib
5504 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5505 ;;
5506 esac
5507
5508 fi
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5510 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5511 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5512 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5513
5514
5515
5516
5517
5518
5519
5520
5521 if test -n "$ac_tool_prefix"; then
5522 for ac_prog in ar
5523 do
5524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5525 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527 $as_echo_n "checking for $ac_word... " >&6; }
5528 if ${ac_cv_prog_AR+:} false; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 if test -n "$AR"; then
5532 ac_cv_prog_AR="$AR" # Let the user override the test.
5533 else
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5536 do
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5541 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 break 2
5544 fi
5545 done
5546 done
5547 IFS=$as_save_IFS
5548
5549 fi
5550 fi
5551 AR=$ac_cv_prog_AR
5552 if test -n "$AR"; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5554 $as_echo "$AR" >&6; }
5555 else
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5558 fi
5559
5560
5561 test -n "$AR" && break
5562 done
5563 fi
5564 if test -z "$AR"; then
5565 ac_ct_AR=$AR
5566 for ac_prog in ar
5567 do
5568 # Extract the first word of "$ac_prog", so it can be a program name with args.
5569 set dummy $ac_prog; ac_word=$2
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571 $as_echo_n "checking for $ac_word... " >&6; }
5572 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5573 $as_echo_n "(cached) " >&6
5574 else
5575 if test -n "$ac_ct_AR"; then
5576 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5577 else
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 for as_dir in $PATH
5580 do
5581 IFS=$as_save_IFS
5582 test -z "$as_dir" && as_dir=.
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5585 ac_cv_prog_ac_ct_AR="$ac_prog"
5586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587 break 2
5588 fi
5589 done
5590 done
5591 IFS=$as_save_IFS
5592
5593 fi
5594 fi
5595 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5596 if test -n "$ac_ct_AR"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5598 $as_echo "$ac_ct_AR" >&6; }
5599 else
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 $as_echo "no" >&6; }
5602 fi
5603
5604
5605 test -n "$ac_ct_AR" && break
5606 done
5607
5608 if test "x$ac_ct_AR" = x; then
5609 AR="false"
5610 else
5611 case $cross_compiling:$ac_tool_warned in
5612 yes:)
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5615 ac_tool_warned=yes ;;
5616 esac
5617 AR=$ac_ct_AR
5618 fi
5619 fi
5620
5621 : ${AR=ar}
5622 : ${AR_FLAGS=cru}
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5635 $as_echo_n "checking for archiver @FILE support... " >&6; }
5636 if ${lt_cv_ar_at_file+:} false; then :
5637 $as_echo_n "(cached) " >&6
5638 else
5639 lt_cv_ar_at_file=no
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5642
5643 int
5644 main ()
5645 {
5646
5647 ;
5648 return 0;
5649 }
5650 _ACEOF
5651 if ac_fn_c_try_compile "$LINENO"; then :
5652 echo conftest.$ac_objext > conftest.lst
5653 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5655 (eval $lt_ar_try) 2>&5
5656 ac_status=$?
5657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5658 test $ac_status = 0; }
5659 if test 0 -eq "$ac_status"; then
5660 # Ensure the archiver fails upon bogus file names.
5661 rm -f conftest.$ac_objext libconftest.a
5662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5663 (eval $lt_ar_try) 2>&5
5664 ac_status=$?
5665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5666 test $ac_status = 0; }
5667 if test 0 -ne "$ac_status"; then
5668 lt_cv_ar_at_file=@
5669 fi
5670 fi
5671 rm -f conftest.* libconftest.a
5672
5673 fi
5674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675
5676 fi
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5678 $as_echo "$lt_cv_ar_at_file" >&6; }
5679
5680 if test no = "$lt_cv_ar_at_file"; then
5681 archiver_list_spec=
5682 else
5683 archiver_list_spec=$lt_cv_ar_at_file
5684 fi
5685
5686
5687
5688
5689
5690
5691
5692 if test -n "$ac_tool_prefix"; then
5693 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5694 set dummy ${ac_tool_prefix}strip; ac_word=$2
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5696 $as_echo_n "checking for $ac_word... " >&6; }
5697 if ${ac_cv_prog_STRIP+:} false; then :
5698 $as_echo_n "(cached) " >&6
5699 else
5700 if test -n "$STRIP"; then
5701 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5702 else
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 for as_dir in $PATH
5705 do
5706 IFS=$as_save_IFS
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5710 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 break 2
5713 fi
5714 done
5715 done
5716 IFS=$as_save_IFS
5717
5718 fi
5719 fi
5720 STRIP=$ac_cv_prog_STRIP
5721 if test -n "$STRIP"; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5723 $as_echo "$STRIP" >&6; }
5724 else
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726 $as_echo "no" >&6; }
5727 fi
5728
5729
5730 fi
5731 if test -z "$ac_cv_prog_STRIP"; then
5732 ac_ct_STRIP=$STRIP
5733 # Extract the first word of "strip", so it can be a program name with args.
5734 set dummy strip; ac_word=$2
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5736 $as_echo_n "checking for $ac_word... " >&6; }
5737 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 if test -n "$ac_ct_STRIP"; then
5741 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5742 else
5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 for as_dir in $PATH
5745 do
5746 IFS=$as_save_IFS
5747 test -z "$as_dir" && as_dir=.
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5750 ac_cv_prog_ac_ct_STRIP="strip"
5751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5752 break 2
5753 fi
5754 done
5755 done
5756 IFS=$as_save_IFS
5757
5758 fi
5759 fi
5760 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5761 if test -n "$ac_ct_STRIP"; then
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5763 $as_echo "$ac_ct_STRIP" >&6; }
5764 else
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5766 $as_echo "no" >&6; }
5767 fi
5768
5769 if test "x$ac_ct_STRIP" = x; then
5770 STRIP=":"
5771 else
5772 case $cross_compiling:$ac_tool_warned in
5773 yes:)
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5776 ac_tool_warned=yes ;;
5777 esac
5778 STRIP=$ac_ct_STRIP
5779 fi
5780 else
5781 STRIP="$ac_cv_prog_STRIP"
5782 fi
5783
5784 test -z "$STRIP" && STRIP=:
5785
5786
5787
5788
5789
5790
5791 if test -n "$ac_tool_prefix"; then
5792 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5793 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795 $as_echo_n "checking for $ac_word... " >&6; }
5796 if ${ac_cv_prog_RANLIB+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 if test -n "$RANLIB"; then
5800 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5801 else
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5804 do
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813 done
5814 done
5815 IFS=$as_save_IFS
5816
5817 fi
5818 fi
5819 RANLIB=$ac_cv_prog_RANLIB
5820 if test -n "$RANLIB"; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5822 $as_echo "$RANLIB" >&6; }
5823 else
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825 $as_echo "no" >&6; }
5826 fi
5827
5828
5829 fi
5830 if test -z "$ac_cv_prog_RANLIB"; then
5831 ac_ct_RANLIB=$RANLIB
5832 # Extract the first word of "ranlib", so it can be a program name with args.
5833 set dummy ranlib; ac_word=$2
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5835 $as_echo_n "checking for $ac_word... " >&6; }
5836 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 if test -n "$ac_ct_RANLIB"; then
5840 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5841 else
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $PATH
5844 do
5845 IFS=$as_save_IFS
5846 test -z "$as_dir" && as_dir=.
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849 ac_cv_prog_ac_ct_RANLIB="ranlib"
5850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 break 2
5852 fi
5853 done
5854 done
5855 IFS=$as_save_IFS
5856
5857 fi
5858 fi
5859 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5860 if test -n "$ac_ct_RANLIB"; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5862 $as_echo "$ac_ct_RANLIB" >&6; }
5863 else
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 $as_echo "no" >&6; }
5866 fi
5867
5868 if test "x$ac_ct_RANLIB" = x; then
5869 RANLIB=":"
5870 else
5871 case $cross_compiling:$ac_tool_warned in
5872 yes:)
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5875 ac_tool_warned=yes ;;
5876 esac
5877 RANLIB=$ac_ct_RANLIB
5878 fi
5879 else
5880 RANLIB="$ac_cv_prog_RANLIB"
5881 fi
5882
5883 test -z "$RANLIB" && RANLIB=:
5884
5885
5886
5887
5888
5889
5890 # Determine commands to create old-style static archives.
5891 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5892 old_postinstall_cmds='chmod 644 $oldlib'
5893 old_postuninstall_cmds=
5894
5895 if test -n "$RANLIB"; then
5896 case $host_os in
5897 bitrig* | openbsd*)
5898 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5899 ;;
5900 *)
5901 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5902 ;;
5903 esac
5904 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5905 fi
5906
5907 case $host_os in
5908 darwin*)
5909 lock_old_archive_extraction=yes ;;
5910 *)
5911 lock_old_archive_extraction=no ;;
5912 esac
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952 # If no C compiler was specified, use CC.
5953 LTCC=${LTCC-"$CC"}
5954
5955 # If no C compiler flags were specified, use CFLAGS.
5956 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5957
5958 # Allow CC to be a program name with arguments.
5959 compiler=$CC
5960
5961
5962 # Check for command to grab the raw symbol name followed by C symbol from nm.
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5964 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5965 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968
5969 # These are sane defaults that work on at least a few old systems.
5970 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5971
5972 # Character class describing NM global symbol codes.
5973 symcode='[BCDEGRST]'
5974
5975 # Regexp to match symbols that can be accessed directly from C.
5976 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5977
5978 # Define system-specific variables.
5979 case $host_os in
5980 aix*)
5981 symcode='[BCDT]'
5982 ;;
5983 cygwin* | mingw* | pw32* | cegcc*)
5984 symcode='[ABCDGISTW]'
5985 ;;
5986 hpux*)
5987 if test ia64 = "$host_cpu"; then
5988 symcode='[ABCDEGRST]'
5989 fi
5990 ;;
5991 irix* | nonstopux*)
5992 symcode='[BCDEGRST]'
5993 ;;
5994 osf*)
5995 symcode='[BCDEGQRST]'
5996 ;;
5997 solaris*)
5998 symcode='[BDRT]'
5999 ;;
6000 sco3.2v5*)
6001 symcode='[DT]'
6002 ;;
6003 sysv4.2uw2*)
6004 symcode='[DT]'
6005 ;;
6006 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6007 symcode='[ABDT]'
6008 ;;
6009 sysv4)
6010 symcode='[DFNSTU]'
6011 ;;
6012 esac
6013
6014 # If we're using GNU nm, then use its standard symbol codes.
6015 case `$NM -V 2>&1` in
6016 *GNU* | *'with BFD'*)
6017 symcode='[ABCDGIRSTW]' ;;
6018 esac
6019
6020 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6021 # Gets list of data symbols to import.
6022 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6023 # Adjust the below global symbol transforms to fixup imported variables.
6024 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6025 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6026 lt_c_name_lib_hook="\
6027 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6028 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6029 else
6030 # Disable hooks by default.
6031 lt_cv_sys_global_symbol_to_import=
6032 lt_cdecl_hook=
6033 lt_c_name_hook=
6034 lt_c_name_lib_hook=
6035 fi
6036
6037 # Transform an extracted symbol line into a proper C declaration.
6038 # Some systems (esp. on ia64) link data and code symbols differently,
6039 # so use this general approach.
6040 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6041 $lt_cdecl_hook\
6042 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6043 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6044
6045 # Transform an extracted symbol line into symbol name and symbol address
6046 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6047 $lt_c_name_hook\
6048 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6049 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6050
6051 # Transform an extracted symbol line into symbol name with lib prefix and
6052 # symbol address.
6053 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6054 $lt_c_name_lib_hook\
6055 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6056 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6057 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6058
6059 # Handle CRLF in mingw tool chain
6060 opt_cr=
6061 case $build_os in
6062 mingw*)
6063 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6064 ;;
6065 esac
6066
6067 # Try without a prefix underscore, then with it.
6068 for ac_symprfx in "" "_"; do
6069
6070 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6071 symxfrm="\\1 $ac_symprfx\\2 \\2"
6072
6073 # Write the raw and C identifiers.
6074 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6075 # Fake it for dumpbin and say T for any non-static function,
6076 # D for any global variable and I for any imported variable.
6077 # Also find C++ and __fastcall symbols from MSVC++,
6078 # which start with @ or ?.
6079 lt_cv_sys_global_symbol_pipe="$AWK '"\
6080 " {last_section=section; section=\$ 3};"\
6081 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6082 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6083 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6084 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6085 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6086 " \$ 0!~/External *\|/{next};"\
6087 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6088 " {if(hide[section]) next};"\
6089 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6090 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6091 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6092 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6093 " ' prfx=^$ac_symprfx"
6094 else
6095 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6096 fi
6097 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6098
6099 # Check to see that the pipe works correctly.
6100 pipe_works=no
6101
6102 rm -f conftest*
6103 cat > conftest.$ac_ext <<_LT_EOF
6104 #ifdef __cplusplus
6105 extern "C" {
6106 #endif
6107 char nm_test_var;
6108 void nm_test_func(void);
6109 void nm_test_func(void){}
6110 #ifdef __cplusplus
6111 }
6112 #endif
6113 int main(){nm_test_var='a';nm_test_func();return(0);}
6114 _LT_EOF
6115
6116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6117 (eval $ac_compile) 2>&5
6118 ac_status=$?
6119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6120 test $ac_status = 0; }; then
6121 # Now try to grab the symbols.
6122 nlist=conftest.nm
6123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6124 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6125 ac_status=$?
6126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6127 test $ac_status = 0; } && test -s "$nlist"; then
6128 # Try sorting and uniquifying the output.
6129 if sort "$nlist" | uniq > "$nlist"T; then
6130 mv -f "$nlist"T "$nlist"
6131 else
6132 rm -f "$nlist"T
6133 fi
6134
6135 # Make sure that we snagged all the symbols we need.
6136 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6137 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6138 cat <<_LT_EOF > conftest.$ac_ext
6139 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6140 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6141 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6142 relocations are performed -- see ld's documentation on pseudo-relocs. */
6143 # define LT_DLSYM_CONST
6144 #elif defined __osf__
6145 /* This system does not cope well with relocations in const data. */
6146 # define LT_DLSYM_CONST
6147 #else
6148 # define LT_DLSYM_CONST const
6149 #endif
6150
6151 #ifdef __cplusplus
6152 extern "C" {
6153 #endif
6154
6155 _LT_EOF
6156 # Now generate the symbol file.
6157 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6158
6159 cat <<_LT_EOF >> conftest.$ac_ext
6160
6161 /* The mapping between symbol names and symbols. */
6162 LT_DLSYM_CONST struct {
6163 const char *name;
6164 void *address;
6165 }
6166 lt__PROGRAM__LTX_preloaded_symbols[] =
6167 {
6168 { "@PROGRAM@", (void *) 0 },
6169 _LT_EOF
6170 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6171 cat <<\_LT_EOF >> conftest.$ac_ext
6172 {0, (void *) 0}
6173 };
6174
6175 /* This works around a problem in FreeBSD linker */
6176 #ifdef FREEBSD_WORKAROUND
6177 static const void *lt_preloaded_setup() {
6178 return lt__PROGRAM__LTX_preloaded_symbols;
6179 }
6180 #endif
6181
6182 #ifdef __cplusplus
6183 }
6184 #endif
6185 _LT_EOF
6186 # Now try linking the two files.
6187 mv conftest.$ac_objext conftstm.$ac_objext
6188 lt_globsym_save_LIBS=$LIBS
6189 lt_globsym_save_CFLAGS=$CFLAGS
6190 LIBS=conftstm.$ac_objext
6191 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6193 (eval $ac_link) 2>&5
6194 ac_status=$?
6195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6196 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6197 pipe_works=yes
6198 fi
6199 LIBS=$lt_globsym_save_LIBS
6200 CFLAGS=$lt_globsym_save_CFLAGS
6201 else
6202 echo "cannot find nm_test_func in $nlist" >&5
6203 fi
6204 else
6205 echo "cannot find nm_test_var in $nlist" >&5
6206 fi
6207 else
6208 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6209 fi
6210 else
6211 echo "$progname: failed program was:" >&5
6212 cat conftest.$ac_ext >&5
6213 fi
6214 rm -rf conftest* conftst*
6215
6216 # Do not use the global_symbol_pipe unless it works.
6217 if test yes = "$pipe_works"; then
6218 break
6219 else
6220 lt_cv_sys_global_symbol_pipe=
6221 fi
6222 done
6223
6224 fi
6225
6226 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6227 lt_cv_sys_global_symbol_to_cdecl=
6228 fi
6229 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6231 $as_echo "failed" >&6; }
6232 else
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6234 $as_echo "ok" >&6; }
6235 fi
6236
6237 # Response file support.
6238 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6239 nm_file_list_spec='@'
6240 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6241 nm_file_list_spec='@'
6242 fi
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6281 $as_echo_n "checking for sysroot... " >&6; }
6282
6283 # Check whether --with-sysroot was given.
6284 if test "${with_sysroot+set}" = set; then :
6285 withval=$with_sysroot;
6286 else
6287 with_sysroot=no
6288 fi
6289
6290
6291 lt_sysroot=
6292 case $with_sysroot in #(
6293 yes)
6294 if test yes = "$GCC"; then
6295 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6296 fi
6297 ;; #(
6298 /*)
6299 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6300 ;; #(
6301 no|'')
6302 ;; #(
6303 *)
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6305 $as_echo "$with_sysroot" >&6; }
6306 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6307 ;;
6308 esac
6309
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6311 $as_echo "${lt_sysroot:-no}" >&6; }
6312
6313
6314
6315
6316
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6318 $as_echo_n "checking for a working dd... " >&6; }
6319 if ${ac_cv_path_lt_DD+:} false; then :
6320 $as_echo_n "(cached) " >&6
6321 else
6322 printf 0123456789abcdef0123456789abcdef >conftest.i
6323 cat conftest.i conftest.i >conftest2.i
6324 : ${lt_DD:=$DD}
6325 if test -z "$lt_DD"; then
6326 ac_path_lt_DD_found=false
6327 # Loop through the user's path and test for each of PROGNAME-LIST
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 for as_dir in $PATH
6330 do
6331 IFS=$as_save_IFS
6332 test -z "$as_dir" && as_dir=.
6333 for ac_prog in dd; do
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6336 as_fn_executable_p "$ac_path_lt_DD" || continue
6337 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6338 cmp -s conftest.i conftest.out \
6339 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6340 fi
6341 $ac_path_lt_DD_found && break 3
6342 done
6343 done
6344 done
6345 IFS=$as_save_IFS
6346 if test -z "$ac_cv_path_lt_DD"; then
6347 :
6348 fi
6349 else
6350 ac_cv_path_lt_DD=$lt_DD
6351 fi
6352
6353 rm -f conftest.i conftest2.i conftest.out
6354 fi
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6356 $as_echo "$ac_cv_path_lt_DD" >&6; }
6357
6358
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6360 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6361 if ${lt_cv_truncate_bin+:} false; then :
6362 $as_echo_n "(cached) " >&6
6363 else
6364 printf 0123456789abcdef0123456789abcdef >conftest.i
6365 cat conftest.i conftest.i >conftest2.i
6366 lt_cv_truncate_bin=
6367 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6368 cmp -s conftest.i conftest.out \
6369 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6370 fi
6371 rm -f conftest.i conftest2.i conftest.out
6372 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6373 fi
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6375 $as_echo "$lt_cv_truncate_bin" >&6; }
6376
6377
6378
6379
6380
6381
6382
6383 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6384 func_cc_basename ()
6385 {
6386 for cc_temp in $*""; do
6387 case $cc_temp in
6388 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6389 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6390 \-*) ;;
6391 *) break;;
6392 esac
6393 done
6394 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6395 }
6396
6397 # Check whether --enable-libtool-lock was given.
6398 if test "${enable_libtool_lock+set}" = set; then :
6399 enableval=$enable_libtool_lock;
6400 fi
6401
6402 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6403
6404 # Some flags need to be propagated to the compiler or linker for good
6405 # libtool support.
6406 case $host in
6407 ia64-*-hpux*)
6408 # Find out what ABI is being produced by ac_compile, and set mode
6409 # options accordingly.
6410 echo 'int i;' > conftest.$ac_ext
6411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6412 (eval $ac_compile) 2>&5
6413 ac_status=$?
6414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6415 test $ac_status = 0; }; then
6416 case `/usr/bin/file conftest.$ac_objext` in
6417 *ELF-32*)
6418 HPUX_IA64_MODE=32
6419 ;;
6420 *ELF-64*)
6421 HPUX_IA64_MODE=64
6422 ;;
6423 esac
6424 fi
6425 rm -rf conftest*
6426 ;;
6427 *-*-irix6*)
6428 # Find out what ABI is being produced by ac_compile, and set linker
6429 # options accordingly.
6430 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6432 (eval $ac_compile) 2>&5
6433 ac_status=$?
6434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6435 test $ac_status = 0; }; then
6436 if test yes = "$lt_cv_prog_gnu_ld"; then
6437 case `/usr/bin/file conftest.$ac_objext` in
6438 *32-bit*)
6439 LD="${LD-ld} -melf32bsmip"
6440 ;;
6441 *N32*)
6442 LD="${LD-ld} -melf32bmipn32"
6443 ;;
6444 *64-bit*)
6445 LD="${LD-ld} -melf64bmip"
6446 ;;
6447 esac
6448 else
6449 case `/usr/bin/file conftest.$ac_objext` in
6450 *32-bit*)
6451 LD="${LD-ld} -32"
6452 ;;
6453 *N32*)
6454 LD="${LD-ld} -n32"
6455 ;;
6456 *64-bit*)
6457 LD="${LD-ld} -64"
6458 ;;
6459 esac
6460 fi
6461 fi
6462 rm -rf conftest*
6463 ;;
6464
6465 mips64*-*linux*)
6466 # Find out what ABI is being produced by ac_compile, and set linker
6467 # options accordingly.
6468 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6470 (eval $ac_compile) 2>&5
6471 ac_status=$?
6472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6473 test $ac_status = 0; }; then
6474 emul=elf
6475 case `/usr/bin/file conftest.$ac_objext` in
6476 *32-bit*)
6477 emul="${emul}32"
6478 ;;
6479 *64-bit*)
6480 emul="${emul}64"
6481 ;;
6482 esac
6483 case `/usr/bin/file conftest.$ac_objext` in
6484 *MSB*)
6485 emul="${emul}btsmip"
6486 ;;
6487 *LSB*)
6488 emul="${emul}ltsmip"
6489 ;;
6490 esac
6491 case `/usr/bin/file conftest.$ac_objext` in
6492 *N32*)
6493 emul="${emul}n32"
6494 ;;
6495 esac
6496 LD="${LD-ld} -m $emul"
6497 fi
6498 rm -rf conftest*
6499 ;;
6500
6501 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6502 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6503 # Find out what ABI is being produced by ac_compile, and set linker
6504 # options accordingly. Note that the listed cases only cover the
6505 # situations where additional linker options are needed (such as when
6506 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6507 # vice versa); the common cases where no linker options are needed do
6508 # not appear in the list.
6509 echo 'int i;' > conftest.$ac_ext
6510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6511 (eval $ac_compile) 2>&5
6512 ac_status=$?
6513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6514 test $ac_status = 0; }; then
6515 case `/usr/bin/file conftest.o` in
6516 *32-bit*)
6517 case $host in
6518 x86_64-*kfreebsd*-gnu)
6519 LD="${LD-ld} -m elf_i386_fbsd"
6520 ;;
6521 x86_64-*linux*)
6522 case `/usr/bin/file conftest.o` in
6523 *x86-64*)
6524 LD="${LD-ld} -m elf32_x86_64"
6525 ;;
6526 *)
6527 LD="${LD-ld} -m elf_i386"
6528 ;;
6529 esac
6530 ;;
6531 powerpc64le-*linux*)
6532 LD="${LD-ld} -m elf32lppclinux"
6533 ;;
6534 powerpc64-*linux*)
6535 LD="${LD-ld} -m elf32ppclinux"
6536 ;;
6537 s390x-*linux*)
6538 LD="${LD-ld} -m elf_s390"
6539 ;;
6540 sparc64-*linux*)
6541 LD="${LD-ld} -m elf32_sparc"
6542 ;;
6543 esac
6544 ;;
6545 *64-bit*)
6546 case $host in
6547 x86_64-*kfreebsd*-gnu)
6548 LD="${LD-ld} -m elf_x86_64_fbsd"
6549 ;;
6550 x86_64-*linux*)
6551 LD="${LD-ld} -m elf_x86_64"
6552 ;;
6553 powerpcle-*linux*)
6554 LD="${LD-ld} -m elf64lppc"
6555 ;;
6556 powerpc-*linux*)
6557 LD="${LD-ld} -m elf64ppc"
6558 ;;
6559 s390*-*linux*|s390*-*tpf*)
6560 LD="${LD-ld} -m elf64_s390"
6561 ;;
6562 sparc*-*linux*)
6563 LD="${LD-ld} -m elf64_sparc"
6564 ;;
6565 esac
6566 ;;
6567 esac
6568 fi
6569 rm -rf conftest*
6570 ;;
6571
6572 *-*-sco3.2v5*)
6573 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6574 SAVE_CFLAGS=$CFLAGS
6575 CFLAGS="$CFLAGS -belf"
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6577 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6578 if ${lt_cv_cc_needs_belf+:} false; then :
6579 $as_echo_n "(cached) " >&6
6580 else
6581 ac_ext=c
6582 ac_cpp='$CPP $CPPFLAGS'
6583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6586
6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588 /* end confdefs.h. */
6589
6590 int
6591 main ()
6592 {
6593
6594 ;
6595 return 0;
6596 }
6597 _ACEOF
6598 if ac_fn_c_try_link "$LINENO"; then :
6599 lt_cv_cc_needs_belf=yes
6600 else
6601 lt_cv_cc_needs_belf=no
6602 fi
6603 rm -f core conftest.err conftest.$ac_objext \
6604 conftest$ac_exeext conftest.$ac_ext
6605 ac_ext=c
6606 ac_cpp='$CPP $CPPFLAGS'
6607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6610
6611 fi
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6613 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6614 if test yes != "$lt_cv_cc_needs_belf"; then
6615 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6616 CFLAGS=$SAVE_CFLAGS
6617 fi
6618 ;;
6619 *-*solaris*)
6620 # Find out what ABI is being produced by ac_compile, and set linker
6621 # options accordingly.
6622 echo 'int i;' > conftest.$ac_ext
6623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6624 (eval $ac_compile) 2>&5
6625 ac_status=$?
6626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6627 test $ac_status = 0; }; then
6628 case `/usr/bin/file conftest.o` in
6629 *64-bit*)
6630 case $lt_cv_prog_gnu_ld in
6631 yes*)
6632 case $host in
6633 i?86-*-solaris*|x86_64-*-solaris*)
6634 LD="${LD-ld} -m elf_x86_64"
6635 ;;
6636 sparc*-*-solaris*)
6637 LD="${LD-ld} -m elf64_sparc"
6638 ;;
6639 esac
6640 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6641 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6642 LD=${LD-ld}_sol2
6643 fi
6644 ;;
6645 *)
6646 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6647 LD="${LD-ld} -64"
6648 fi
6649 ;;
6650 esac
6651 ;;
6652 esac
6653 fi
6654 rm -rf conftest*
6655 ;;
6656 esac
6657
6658 need_locks=$enable_libtool_lock
6659
6660 if test -n "$ac_tool_prefix"; then
6661 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6662 set dummy ${ac_tool_prefix}mt; ac_word=$2
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6664 $as_echo_n "checking for $ac_word... " >&6; }
6665 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6666 $as_echo_n "(cached) " >&6
6667 else
6668 if test -n "$MANIFEST_TOOL"; then
6669 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6670 else
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6673 do
6674 IFS=$as_save_IFS
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6678 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 break 2
6681 fi
6682 done
6683 done
6684 IFS=$as_save_IFS
6685
6686 fi
6687 fi
6688 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6689 if test -n "$MANIFEST_TOOL"; then
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6691 $as_echo "$MANIFEST_TOOL" >&6; }
6692 else
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694 $as_echo "no" >&6; }
6695 fi
6696
6697
6698 fi
6699 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6700 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6701 # Extract the first word of "mt", so it can be a program name with args.
6702 set dummy mt; ac_word=$2
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704 $as_echo_n "checking for $ac_word... " >&6; }
6705 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6706 $as_echo_n "(cached) " >&6
6707 else
6708 if test -n "$ac_ct_MANIFEST_TOOL"; then
6709 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6710 else
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 for as_dir in $PATH
6713 do
6714 IFS=$as_save_IFS
6715 test -z "$as_dir" && as_dir=.
6716 for ac_exec_ext in '' $ac_executable_extensions; do
6717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6718 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 break 2
6721 fi
6722 done
6723 done
6724 IFS=$as_save_IFS
6725
6726 fi
6727 fi
6728 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6729 if test -n "$ac_ct_MANIFEST_TOOL"; then
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6731 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6732 else
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734 $as_echo "no" >&6; }
6735 fi
6736
6737 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6738 MANIFEST_TOOL=":"
6739 else
6740 case $cross_compiling:$ac_tool_warned in
6741 yes:)
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6744 ac_tool_warned=yes ;;
6745 esac
6746 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6747 fi
6748 else
6749 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6750 fi
6751
6752 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6754 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6755 if ${lt_cv_path_mainfest_tool+:} false; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6758 lt_cv_path_mainfest_tool=no
6759 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6760 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6761 cat conftest.err >&5
6762 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6763 lt_cv_path_mainfest_tool=yes
6764 fi
6765 rm -f conftest*
6766 fi
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6768 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6769 if test yes != "$lt_cv_path_mainfest_tool"; then
6770 MANIFEST_TOOL=:
6771 fi
6772
6773
6774
6775
6776
6777
6778 case $host_os in
6779 rhapsody* | darwin*)
6780 if test -n "$ac_tool_prefix"; then
6781 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6782 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784 $as_echo_n "checking for $ac_word... " >&6; }
6785 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6786 $as_echo_n "(cached) " >&6
6787 else
6788 if test -n "$DSYMUTIL"; then
6789 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6790 else
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6793 do
6794 IFS=$as_save_IFS
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6798 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 break 2
6801 fi
6802 done
6803 done
6804 IFS=$as_save_IFS
6805
6806 fi
6807 fi
6808 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6809 if test -n "$DSYMUTIL"; then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6811 $as_echo "$DSYMUTIL" >&6; }
6812 else
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814 $as_echo "no" >&6; }
6815 fi
6816
6817
6818 fi
6819 if test -z "$ac_cv_prog_DSYMUTIL"; then
6820 ac_ct_DSYMUTIL=$DSYMUTIL
6821 # Extract the first word of "dsymutil", so it can be a program name with args.
6822 set dummy dsymutil; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 if test -n "$ac_ct_DSYMUTIL"; then
6829 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834 IFS=$as_save_IFS
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6838 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 break 2
6841 fi
6842 done
6843 done
6844 IFS=$as_save_IFS
6845
6846 fi
6847 fi
6848 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6849 if test -n "$ac_ct_DSYMUTIL"; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6851 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6852 else
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6855 fi
6856
6857 if test "x$ac_ct_DSYMUTIL" = x; then
6858 DSYMUTIL=":"
6859 else
6860 case $cross_compiling:$ac_tool_warned in
6861 yes:)
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6864 ac_tool_warned=yes ;;
6865 esac
6866 DSYMUTIL=$ac_ct_DSYMUTIL
6867 fi
6868 else
6869 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6870 fi
6871
6872 if test -n "$ac_tool_prefix"; then
6873 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6874 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876 $as_echo_n "checking for $ac_word... " >&6; }
6877 if ${ac_cv_prog_NMEDIT+:} false; then :
6878 $as_echo_n "(cached) " >&6
6879 else
6880 if test -n "$NMEDIT"; then
6881 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6882 else
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 for as_dir in $PATH
6885 do
6886 IFS=$as_save_IFS
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6890 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 break 2
6893 fi
6894 done
6895 done
6896 IFS=$as_save_IFS
6897
6898 fi
6899 fi
6900 NMEDIT=$ac_cv_prog_NMEDIT
6901 if test -n "$NMEDIT"; then
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6903 $as_echo "$NMEDIT" >&6; }
6904 else
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906 $as_echo "no" >&6; }
6907 fi
6908
6909
6910 fi
6911 if test -z "$ac_cv_prog_NMEDIT"; then
6912 ac_ct_NMEDIT=$NMEDIT
6913 # Extract the first word of "nmedit", so it can be a program name with args.
6914 set dummy nmedit; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 if test -n "$ac_ct_NMEDIT"; then
6921 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 break 2
6933 fi
6934 done
6935 done
6936 IFS=$as_save_IFS
6937
6938 fi
6939 fi
6940 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6941 if test -n "$ac_ct_NMEDIT"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6943 $as_echo "$ac_ct_NMEDIT" >&6; }
6944 else
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6947 fi
6948
6949 if test "x$ac_ct_NMEDIT" = x; then
6950 NMEDIT=":"
6951 else
6952 case $cross_compiling:$ac_tool_warned in
6953 yes:)
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6956 ac_tool_warned=yes ;;
6957 esac
6958 NMEDIT=$ac_ct_NMEDIT
6959 fi
6960 else
6961 NMEDIT="$ac_cv_prog_NMEDIT"
6962 fi
6963
6964 if test -n "$ac_tool_prefix"; then
6965 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6966 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968 $as_echo_n "checking for $ac_word... " >&6; }
6969 if ${ac_cv_prog_LIPO+:} false; then :
6970 $as_echo_n "(cached) " >&6
6971 else
6972 if test -n "$LIPO"; then
6973 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6974 else
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in $PATH
6977 do
6978 IFS=$as_save_IFS
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
6981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6982 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6984 break 2
6985 fi
6986 done
6987 done
6988 IFS=$as_save_IFS
6989
6990 fi
6991 fi
6992 LIPO=$ac_cv_prog_LIPO
6993 if test -n "$LIPO"; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6995 $as_echo "$LIPO" >&6; }
6996 else
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998 $as_echo "no" >&6; }
6999 fi
7000
7001
7002 fi
7003 if test -z "$ac_cv_prog_LIPO"; then
7004 ac_ct_LIPO=$LIPO
7005 # Extract the first word of "lipo", so it can be a program name with args.
7006 set dummy lipo; ac_word=$2
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008 $as_echo_n "checking for $ac_word... " >&6; }
7009 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 if test -n "$ac_ct_LIPO"; then
7013 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7014 else
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7017 do
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022 ac_cv_prog_ac_ct_LIPO="lipo"
7023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7025 fi
7026 done
7027 done
7028 IFS=$as_save_IFS
7029
7030 fi
7031 fi
7032 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7033 if test -n "$ac_ct_LIPO"; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7035 $as_echo "$ac_ct_LIPO" >&6; }
7036 else
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7039 fi
7040
7041 if test "x$ac_ct_LIPO" = x; then
7042 LIPO=":"
7043 else
7044 case $cross_compiling:$ac_tool_warned in
7045 yes:)
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7048 ac_tool_warned=yes ;;
7049 esac
7050 LIPO=$ac_ct_LIPO
7051 fi
7052 else
7053 LIPO="$ac_cv_prog_LIPO"
7054 fi
7055
7056 if test -n "$ac_tool_prefix"; then
7057 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7058 set dummy ${ac_tool_prefix}otool; ac_word=$2
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7060 $as_echo_n "checking for $ac_word... " >&6; }
7061 if ${ac_cv_prog_OTOOL+:} false; then :
7062 $as_echo_n "(cached) " >&6
7063 else
7064 if test -n "$OTOOL"; then
7065 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7066 else
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 for as_dir in $PATH
7069 do
7070 IFS=$as_save_IFS
7071 test -z "$as_dir" && as_dir=.
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7074 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7076 break 2
7077 fi
7078 done
7079 done
7080 IFS=$as_save_IFS
7081
7082 fi
7083 fi
7084 OTOOL=$ac_cv_prog_OTOOL
7085 if test -n "$OTOOL"; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7087 $as_echo "$OTOOL" >&6; }
7088 else
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090 $as_echo "no" >&6; }
7091 fi
7092
7093
7094 fi
7095 if test -z "$ac_cv_prog_OTOOL"; then
7096 ac_ct_OTOOL=$OTOOL
7097 # Extract the first word of "otool", so it can be a program name with args.
7098 set dummy otool; ac_word=$2
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100 $as_echo_n "checking for $ac_word... " >&6; }
7101 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7102 $as_echo_n "(cached) " >&6
7103 else
7104 if test -n "$ac_ct_OTOOL"; then
7105 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7106 else
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7109 do
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7114 ac_cv_prog_ac_ct_OTOOL="otool"
7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 break 2
7117 fi
7118 done
7119 done
7120 IFS=$as_save_IFS
7121
7122 fi
7123 fi
7124 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7125 if test -n "$ac_ct_OTOOL"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7127 $as_echo "$ac_ct_OTOOL" >&6; }
7128 else
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7131 fi
7132
7133 if test "x$ac_ct_OTOOL" = x; then
7134 OTOOL=":"
7135 else
7136 case $cross_compiling:$ac_tool_warned in
7137 yes:)
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7140 ac_tool_warned=yes ;;
7141 esac
7142 OTOOL=$ac_ct_OTOOL
7143 fi
7144 else
7145 OTOOL="$ac_cv_prog_OTOOL"
7146 fi
7147
7148 if test -n "$ac_tool_prefix"; then
7149 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7150 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7152 $as_echo_n "checking for $ac_word... " >&6; }
7153 if ${ac_cv_prog_OTOOL64+:} false; then :
7154 $as_echo_n "(cached) " >&6
7155 else
7156 if test -n "$OTOOL64"; then
7157 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7158 else
7159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160 for as_dir in $PATH
7161 do
7162 IFS=$as_save_IFS
7163 test -z "$as_dir" && as_dir=.
7164 for ac_exec_ext in '' $ac_executable_extensions; do
7165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7166 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 break 2
7169 fi
7170 done
7171 done
7172 IFS=$as_save_IFS
7173
7174 fi
7175 fi
7176 OTOOL64=$ac_cv_prog_OTOOL64
7177 if test -n "$OTOOL64"; then
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7179 $as_echo "$OTOOL64" >&6; }
7180 else
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182 $as_echo "no" >&6; }
7183 fi
7184
7185
7186 fi
7187 if test -z "$ac_cv_prog_OTOOL64"; then
7188 ac_ct_OTOOL64=$OTOOL64
7189 # Extract the first word of "otool64", so it can be a program name with args.
7190 set dummy otool64; ac_word=$2
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192 $as_echo_n "checking for $ac_word... " >&6; }
7193 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 if test -n "$ac_ct_OTOOL64"; then
7197 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7198 else
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7201 do
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206 ac_cv_prog_ac_ct_OTOOL64="otool64"
7207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 break 2
7209 fi
7210 done
7211 done
7212 IFS=$as_save_IFS
7213
7214 fi
7215 fi
7216 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7217 if test -n "$ac_ct_OTOOL64"; then
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7219 $as_echo "$ac_ct_OTOOL64" >&6; }
7220 else
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222 $as_echo "no" >&6; }
7223 fi
7224
7225 if test "x$ac_ct_OTOOL64" = x; then
7226 OTOOL64=":"
7227 else
7228 case $cross_compiling:$ac_tool_warned in
7229 yes:)
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7232 ac_tool_warned=yes ;;
7233 esac
7234 OTOOL64=$ac_ct_OTOOL64
7235 fi
7236 else
7237 OTOOL64="$ac_cv_prog_OTOOL64"
7238 fi
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7267 $as_echo_n "checking for -single_module linker flag... " >&6; }
7268 if ${lt_cv_apple_cc_single_mod+:} false; then :
7269 $as_echo_n "(cached) " >&6
7270 else
7271 lt_cv_apple_cc_single_mod=no
7272 if test -z "$LT_MULTI_MODULE"; then
7273 # By default we will add the -single_module flag. You can override
7274 # by either setting the environment variable LT_MULTI_MODULE
7275 # non-empty at configure time, or by adding -multi_module to the
7276 # link flags.
7277 rm -rf libconftest.dylib*
7278 echo "int foo(void){return 1;}" > conftest.c
7279 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7280 -dynamiclib -Wl,-single_module conftest.c" >&5
7281 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7282 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7283 _lt_result=$?
7284 # If there is a non-empty error log, and "single_module"
7285 # appears in it, assume the flag caused a linker warning
7286 if test -s conftest.err && $GREP single_module conftest.err; then
7287 cat conftest.err >&5
7288 # Otherwise, if the output was created with a 0 exit code from
7289 # the compiler, it worked.
7290 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7291 lt_cv_apple_cc_single_mod=yes
7292 else
7293 cat conftest.err >&5
7294 fi
7295 rm -rf libconftest.dylib*
7296 rm -f conftest.*
7297 fi
7298 fi
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7300 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7301
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7303 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7304 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7305 $as_echo_n "(cached) " >&6
7306 else
7307 lt_cv_ld_exported_symbols_list=no
7308 save_LDFLAGS=$LDFLAGS
7309 echo "_main" > conftest.sym
7310 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h. */
7313
7314 int
7315 main ()
7316 {
7317
7318 ;
7319 return 0;
7320 }
7321 _ACEOF
7322 if ac_fn_c_try_link "$LINENO"; then :
7323 lt_cv_ld_exported_symbols_list=yes
7324 else
7325 lt_cv_ld_exported_symbols_list=no
7326 fi
7327 rm -f core conftest.err conftest.$ac_objext \
7328 conftest$ac_exeext conftest.$ac_ext
7329 LDFLAGS=$save_LDFLAGS
7330
7331 fi
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7333 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7334
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7336 $as_echo_n "checking for -force_load linker flag... " >&6; }
7337 if ${lt_cv_ld_force_load+:} false; then :
7338 $as_echo_n "(cached) " >&6
7339 else
7340 lt_cv_ld_force_load=no
7341 cat > conftest.c << _LT_EOF
7342 int forced_loaded() { return 2;}
7343 _LT_EOF
7344 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7345 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7346 echo "$AR cru libconftest.a conftest.o" >&5
7347 $AR cru libconftest.a conftest.o 2>&5
7348 echo "$RANLIB libconftest.a" >&5
7349 $RANLIB libconftest.a 2>&5
7350 cat > conftest.c << _LT_EOF
7351 int main() { return 0;}
7352 _LT_EOF
7353 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7354 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7355 _lt_result=$?
7356 if test -s conftest.err && $GREP force_load conftest.err; then
7357 cat conftest.err >&5
7358 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7359 lt_cv_ld_force_load=yes
7360 else
7361 cat conftest.err >&5
7362 fi
7363 rm -f conftest.err libconftest.a conftest conftest.c
7364 rm -rf conftest.dSYM
7365
7366 fi
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7368 $as_echo "$lt_cv_ld_force_load" >&6; }
7369 case $host_os in
7370 rhapsody* | darwin1.[012])
7371 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7372 darwin1.*)
7373 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7374 darwin*) # darwin 5.x on
7375 # if running on 10.5 or later, the deployment target defaults
7376 # to the OS version, if on x86, and 10.4, the deployment
7377 # target defaults to 10.4. Don't you love it?
7378 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7379 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7380 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7381 10.[012][,.]*)
7382 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7383 10.*)
7384 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7385 esac
7386 ;;
7387 esac
7388 if test yes = "$lt_cv_apple_cc_single_mod"; then
7389 _lt_dar_single_mod='$single_module'
7390 fi
7391 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7392 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7393 else
7394 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7395 fi
7396 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7397 _lt_dsymutil='~$DSYMUTIL $lib || :'
7398 else
7399 _lt_dsymutil=
7400 fi
7401 ;;
7402 esac
7403
7404 # func_munge_path_list VARIABLE PATH
7405 # -----------------------------------
7406 # VARIABLE is name of variable containing _space_ separated list of
7407 # directories to be munged by the contents of PATH, which is string
7408 # having a format:
7409 # "DIR[:DIR]:"
7410 # string "DIR[ DIR]" will be prepended to VARIABLE
7411 # ":DIR[:DIR]"
7412 # string "DIR[ DIR]" will be appended to VARIABLE
7413 # "DIRP[:DIRP]::[DIRA:]DIRA"
7414 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7415 # "DIRA[ DIRA]" will be appended to VARIABLE
7416 # "DIR[:DIR]"
7417 # VARIABLE will be replaced by "DIR[ DIR]"
7418 func_munge_path_list ()
7419 {
7420 case x$2 in
7421 x)
7422 ;;
7423 *:)
7424 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7425 ;;
7426 x:*)
7427 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7428 ;;
7429 *::*)
7430 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7431 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7432 ;;
7433 *)
7434 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7435 ;;
7436 esac
7437 }
7438
7439 ac_ext=c
7440 ac_cpp='$CPP $CPPFLAGS'
7441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7445 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7446 # On Suns, sometimes $CPP names a directory.
7447 if test -n "$CPP" && test -d "$CPP"; then
7448 CPP=
7449 fi
7450 if test -z "$CPP"; then
7451 if ${ac_cv_prog_CPP+:} false; then :
7452 $as_echo_n "(cached) " >&6
7453 else
7454 # Double quotes because CPP needs to be expanded
7455 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7456 do
7457 ac_preproc_ok=false
7458 for ac_c_preproc_warn_flag in '' yes
7459 do
7460 # Use a header file that comes with gcc, so configuring glibc
7461 # with a fresh cross-compiler works.
7462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7463 # <limits.h> exists even on freestanding compilers.
7464 # On the NeXT, cc -E runs the code through the compiler's parser,
7465 # not just through cpp. "Syntax error" is here to catch this case.
7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h. */
7468 #ifdef __STDC__
7469 # include <limits.h>
7470 #else
7471 # include <assert.h>
7472 #endif
7473 Syntax error
7474 _ACEOF
7475 if ac_fn_c_try_cpp "$LINENO"; then :
7476
7477 else
7478 # Broken: fails on valid input.
7479 continue
7480 fi
7481 rm -f conftest.err conftest.i conftest.$ac_ext
7482
7483 # OK, works on sane cases. Now check whether nonexistent headers
7484 # can be detected and how.
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7487 #include <ac_nonexistent.h>
7488 _ACEOF
7489 if ac_fn_c_try_cpp "$LINENO"; then :
7490 # Broken: success on invalid input.
7491 continue
7492 else
7493 # Passes both tests.
7494 ac_preproc_ok=:
7495 break
7496 fi
7497 rm -f conftest.err conftest.i conftest.$ac_ext
7498
7499 done
7500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7501 rm -f conftest.i conftest.err conftest.$ac_ext
7502 if $ac_preproc_ok; then :
7503 break
7504 fi
7505
7506 done
7507 ac_cv_prog_CPP=$CPP
7508
7509 fi
7510 CPP=$ac_cv_prog_CPP
7511 else
7512 ac_cv_prog_CPP=$CPP
7513 fi
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7515 $as_echo "$CPP" >&6; }
7516 ac_preproc_ok=false
7517 for ac_c_preproc_warn_flag in '' yes
7518 do
7519 # Use a header file that comes with gcc, so configuring glibc
7520 # with a fresh cross-compiler works.
7521 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7522 # <limits.h> exists even on freestanding compilers.
7523 # On the NeXT, cc -E runs the code through the compiler's parser,
7524 # not just through cpp. "Syntax error" is here to catch this case.
7525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526 /* end confdefs.h. */
7527 #ifdef __STDC__
7528 # include <limits.h>
7529 #else
7530 # include <assert.h>
7531 #endif
7532 Syntax error
7533 _ACEOF
7534 if ac_fn_c_try_cpp "$LINENO"; then :
7535
7536 else
7537 # Broken: fails on valid input.
7538 continue
7539 fi
7540 rm -f conftest.err conftest.i conftest.$ac_ext
7541
7542 # OK, works on sane cases. Now check whether nonexistent headers
7543 # can be detected and how.
7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7546 #include <ac_nonexistent.h>
7547 _ACEOF
7548 if ac_fn_c_try_cpp "$LINENO"; then :
7549 # Broken: success on invalid input.
7550 continue
7551 else
7552 # Passes both tests.
7553 ac_preproc_ok=:
7554 break
7555 fi
7556 rm -f conftest.err conftest.i conftest.$ac_ext
7557
7558 done
7559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7560 rm -f conftest.i conftest.err conftest.$ac_ext
7561 if $ac_preproc_ok; then :
7562
7563 else
7564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7566 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7567 See \`config.log' for more details" "$LINENO" 5; }
7568 fi
7569
7570 ac_ext=c
7571 ac_cpp='$CPP $CPPFLAGS'
7572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7575
7576
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7578 $as_echo_n "checking for ANSI C header files... " >&6; }
7579 if ${ac_cv_header_stdc+:} false; then :
7580 $as_echo_n "(cached) " >&6
7581 else
7582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7583 /* end confdefs.h. */
7584 #include <stdlib.h>
7585 #include <stdarg.h>
7586 #include <string.h>
7587 #include <float.h>
7588
7589 int
7590 main ()
7591 {
7592
7593 ;
7594 return 0;
7595 }
7596 _ACEOF
7597 if ac_fn_c_try_compile "$LINENO"; then :
7598 ac_cv_header_stdc=yes
7599 else
7600 ac_cv_header_stdc=no
7601 fi
7602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7603
7604 if test $ac_cv_header_stdc = yes; then
7605 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h. */
7608 #include <string.h>
7609
7610 _ACEOF
7611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7612 $EGREP "memchr" >/dev/null 2>&1; then :
7613
7614 else
7615 ac_cv_header_stdc=no
7616 fi
7617 rm -f conftest*
7618
7619 fi
7620
7621 if test $ac_cv_header_stdc = yes; then
7622 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7624 /* end confdefs.h. */
7625 #include <stdlib.h>
7626
7627 _ACEOF
7628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7629 $EGREP "free" >/dev/null 2>&1; then :
7630
7631 else
7632 ac_cv_header_stdc=no
7633 fi
7634 rm -f conftest*
7635
7636 fi
7637
7638 if test $ac_cv_header_stdc = yes; then
7639 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7640 if test "$cross_compiling" = yes; then :
7641 :
7642 else
7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7645 #include <ctype.h>
7646 #include <stdlib.h>
7647 #if ((' ' & 0x0FF) == 0x020)
7648 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7649 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7650 #else
7651 # define ISLOWER(c) \
7652 (('a' <= (c) && (c) <= 'i') \
7653 || ('j' <= (c) && (c) <= 'r') \
7654 || ('s' <= (c) && (c) <= 'z'))
7655 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7656 #endif
7657
7658 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7659 int
7660 main ()
7661 {
7662 int i;
7663 for (i = 0; i < 256; i++)
7664 if (XOR (islower (i), ISLOWER (i))
7665 || toupper (i) != TOUPPER (i))
7666 return 2;
7667 return 0;
7668 }
7669 _ACEOF
7670 if ac_fn_c_try_run "$LINENO"; then :
7671
7672 else
7673 ac_cv_header_stdc=no
7674 fi
7675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7676 conftest.$ac_objext conftest.beam conftest.$ac_ext
7677 fi
7678
7679 fi
7680 fi
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7682 $as_echo "$ac_cv_header_stdc" >&6; }
7683 if test $ac_cv_header_stdc = yes; then
7684
7685 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7686
7687 fi
7688
7689 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7690 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7691 inttypes.h stdint.h unistd.h
7692 do :
7693 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7694 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7695 "
7696 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7697 cat >>confdefs.h <<_ACEOF
7698 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7699 _ACEOF
7700
7701 fi
7702
7703 done
7704
7705
7706 for ac_header in dlfcn.h
7707 do :
7708 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7709 "
7710 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7711 cat >>confdefs.h <<_ACEOF
7712 #define HAVE_DLFCN_H 1
7713 _ACEOF
7714
7715 fi
7716
7717 done
7718
7719
7720
7721
7722
7723 # Set options
7724
7725
7726
7727 enable_dlopen=no
7728
7729
7730 enable_win32_dll=no
7731
7732
7733 # Check whether --enable-shared was given.
7734 if test "${enable_shared+set}" = set; then :
7735 enableval=$enable_shared; p=${PACKAGE-default}
7736 case $enableval in
7737 yes) enable_shared=yes ;;
7738 no) enable_shared=no ;;
7739 *)
7740 enable_shared=no
7741 # Look at the argument we got. We use all the common list separators.
7742 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7743 for pkg in $enableval; do
7744 IFS=$lt_save_ifs
7745 if test "X$pkg" = "X$p"; then
7746 enable_shared=yes
7747 fi
7748 done
7749 IFS=$lt_save_ifs
7750 ;;
7751 esac
7752 else
7753 enable_shared=yes
7754 fi
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764 # Check whether --enable-static was given.
7765 if test "${enable_static+set}" = set; then :
7766 enableval=$enable_static; p=${PACKAGE-default}
7767 case $enableval in
7768 yes) enable_static=yes ;;
7769 no) enable_static=no ;;
7770 *)
7771 enable_static=no
7772 # Look at the argument we got. We use all the common list separators.
7773 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7774 for pkg in $enableval; do
7775 IFS=$lt_save_ifs
7776 if test "X$pkg" = "X$p"; then
7777 enable_static=yes
7778 fi
7779 done
7780 IFS=$lt_save_ifs
7781 ;;
7782 esac
7783 else
7784 enable_static=yes
7785 fi
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796 # Check whether --with-pic was given.
7797 if test "${with_pic+set}" = set; then :
7798 withval=$with_pic; lt_p=${PACKAGE-default}
7799 case $withval in
7800 yes|no) pic_mode=$withval ;;
7801 *)
7802 pic_mode=default
7803 # Look at the argument we got. We use all the common list separators.
7804 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7805 for lt_pkg in $withval; do
7806 IFS=$lt_save_ifs
7807 if test "X$lt_pkg" = "X$lt_p"; then
7808 pic_mode=yes
7809 fi
7810 done
7811 IFS=$lt_save_ifs
7812 ;;
7813 esac
7814 else
7815 pic_mode=default
7816 fi
7817
7818
7819
7820
7821
7822
7823
7824
7825 # Check whether --enable-fast-install was given.
7826 if test "${enable_fast_install+set}" = set; then :
7827 enableval=$enable_fast_install; p=${PACKAGE-default}
7828 case $enableval in
7829 yes) enable_fast_install=yes ;;
7830 no) enable_fast_install=no ;;
7831 *)
7832 enable_fast_install=no
7833 # Look at the argument we got. We use all the common list separators.
7834 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7835 for pkg in $enableval; do
7836 IFS=$lt_save_ifs
7837 if test "X$pkg" = "X$p"; then
7838 enable_fast_install=yes
7839 fi
7840 done
7841 IFS=$lt_save_ifs
7842 ;;
7843 esac
7844 else
7845 enable_fast_install=yes
7846 fi
7847
7848
7849
7850
7851
7852
7853
7854
7855 shared_archive_member_spec=
7856 case $host,$enable_shared in
7857 power*-*-aix[5-9]*,yes)
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7859 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7860
7861 # Check whether --with-aix-soname was given.
7862 if test "${with_aix_soname+set}" = set; then :
7863 withval=$with_aix_soname; case $withval in
7864 aix|svr4|both)
7865 ;;
7866 *)
7867 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7868 ;;
7869 esac
7870 lt_cv_with_aix_soname=$with_aix_soname
7871 else
7872 if ${lt_cv_with_aix_soname+:} false; then :
7873 $as_echo_n "(cached) " >&6
7874 else
7875 lt_cv_with_aix_soname=aix
7876 fi
7877
7878 with_aix_soname=$lt_cv_with_aix_soname
7879 fi
7880
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7882 $as_echo "$with_aix_soname" >&6; }
7883 if test aix != "$with_aix_soname"; then
7884 # For the AIX way of multilib, we name the shared archive member
7885 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7886 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7887 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7888 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7889 if test 64 = "${OBJECT_MODE-32}"; then
7890 shared_archive_member_spec=shr_64
7891 else
7892 shared_archive_member_spec=shr
7893 fi
7894 fi
7895 ;;
7896 *)
7897 with_aix_soname=aix
7898 ;;
7899 esac
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910 # This can be used to rebuild libtool when needed
7911 LIBTOOL_DEPS=$ltmain
7912
7913 # Always use our own libtool.
7914 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945 test -z "$LN_S" && LN_S="ln -s"
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960 if test -n "${ZSH_VERSION+set}"; then
7961 setopt NO_GLOB_SUBST
7962 fi
7963
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7965 $as_echo_n "checking for objdir... " >&6; }
7966 if ${lt_cv_objdir+:} false; then :
7967 $as_echo_n "(cached) " >&6
7968 else
7969 rm -f .libs 2>/dev/null
7970 mkdir .libs 2>/dev/null
7971 if test -d .libs; then
7972 lt_cv_objdir=.libs
7973 else
7974 # MS-DOS does not allow filenames that begin with a dot.
7975 lt_cv_objdir=_libs
7976 fi
7977 rmdir .libs 2>/dev/null
7978 fi
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7980 $as_echo "$lt_cv_objdir" >&6; }
7981 objdir=$lt_cv_objdir
7982
7983
7984
7985
7986
7987 cat >>confdefs.h <<_ACEOF
7988 #define LT_OBJDIR "$lt_cv_objdir/"
7989 _ACEOF
7990
7991
7992
7993
7994 case $host_os in
7995 aix3*)
7996 # AIX sometimes has problems with the GCC collect2 program. For some
7997 # reason, if we set the COLLECT_NAMES environment variable, the problems
7998 # vanish in a puff of smoke.
7999 if test set != "${COLLECT_NAMES+set}"; then
8000 COLLECT_NAMES=
8001 export COLLECT_NAMES
8002 fi
8003 ;;
8004 esac
8005
8006 # Global variables:
8007 ofile=libtool
8008 can_build_shared=yes
8009
8010 # All known linkers require a '.a' archive for static linking (except MSVC,
8011 # which needs '.lib').
8012 libext=a
8013
8014 with_gnu_ld=$lt_cv_prog_gnu_ld
8015
8016 old_CC=$CC
8017 old_CFLAGS=$CFLAGS
8018
8019 # Set sane defaults for various variables
8020 test -z "$CC" && CC=cc
8021 test -z "$LTCC" && LTCC=$CC
8022 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8023 test -z "$LD" && LD=ld
8024 test -z "$ac_objext" && ac_objext=o
8025
8026 func_cc_basename $compiler
8027 cc_basename=$func_cc_basename_result
8028
8029
8030 # Only perform the check for file, if the check method requires it
8031 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8032 case $deplibs_check_method in
8033 file_magic*)
8034 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8036 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8037 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8038 $as_echo_n "(cached) " >&6
8039 else
8040 case $MAGIC_CMD in
8041 [\\/*] | ?:[\\/]*)
8042 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8043 ;;
8044 *)
8045 lt_save_MAGIC_CMD=$MAGIC_CMD
8046 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8047 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8048 for ac_dir in $ac_dummy; do
8049 IFS=$lt_save_ifs
8050 test -z "$ac_dir" && ac_dir=.
8051 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8052 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8053 if test -n "$file_magic_test_file"; then
8054 case $deplibs_check_method in
8055 "file_magic "*)
8056 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8057 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8058 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8059 $EGREP "$file_magic_regex" > /dev/null; then
8060 :
8061 else
8062 cat <<_LT_EOF 1>&2
8063
8064 *** Warning: the command libtool uses to detect shared libraries,
8065 *** $file_magic_cmd, produces output that libtool cannot recognize.
8066 *** The result is that libtool may fail to recognize shared libraries
8067 *** as such. This will affect the creation of libtool libraries that
8068 *** depend on shared libraries, but programs linked with such libtool
8069 *** libraries will work regardless of this problem. Nevertheless, you
8070 *** may want to report the problem to your system manager and/or to
8071 *** [email protected]
8072
8073 _LT_EOF
8074 fi ;;
8075 esac
8076 fi
8077 break
8078 fi
8079 done
8080 IFS=$lt_save_ifs
8081 MAGIC_CMD=$lt_save_MAGIC_CMD
8082 ;;
8083 esac
8084 fi
8085
8086 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8087 if test -n "$MAGIC_CMD"; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8089 $as_echo "$MAGIC_CMD" >&6; }
8090 else
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092 $as_echo "no" >&6; }
8093 fi
8094
8095
8096
8097
8098
8099 if test -z "$lt_cv_path_MAGIC_CMD"; then
8100 if test -n "$ac_tool_prefix"; then
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8102 $as_echo_n "checking for file... " >&6; }
8103 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8104 $as_echo_n "(cached) " >&6
8105 else
8106 case $MAGIC_CMD in
8107 [\\/*] | ?:[\\/]*)
8108 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8109 ;;
8110 *)
8111 lt_save_MAGIC_CMD=$MAGIC_CMD
8112 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8113 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8114 for ac_dir in $ac_dummy; do
8115 IFS=$lt_save_ifs
8116 test -z "$ac_dir" && ac_dir=.
8117 if test -f "$ac_dir/file"; then
8118 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8119 if test -n "$file_magic_test_file"; then
8120 case $deplibs_check_method in
8121 "file_magic "*)
8122 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8123 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8124 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8125 $EGREP "$file_magic_regex" > /dev/null; then
8126 :
8127 else
8128 cat <<_LT_EOF 1>&2
8129
8130 *** Warning: the command libtool uses to detect shared libraries,
8131 *** $file_magic_cmd, produces output that libtool cannot recognize.
8132 *** The result is that libtool may fail to recognize shared libraries
8133 *** as such. This will affect the creation of libtool libraries that
8134 *** depend on shared libraries, but programs linked with such libtool
8135 *** libraries will work regardless of this problem. Nevertheless, you
8136 *** may want to report the problem to your system manager and/or to
8137 *** [email protected]
8138
8139 _LT_EOF
8140 fi ;;
8141 esac
8142 fi
8143 break
8144 fi
8145 done
8146 IFS=$lt_save_ifs
8147 MAGIC_CMD=$lt_save_MAGIC_CMD
8148 ;;
8149 esac
8150 fi
8151
8152 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8153 if test -n "$MAGIC_CMD"; then
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8155 $as_echo "$MAGIC_CMD" >&6; }
8156 else
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8159 fi
8160
8161
8162 else
8163 MAGIC_CMD=:
8164 fi
8165 fi
8166
8167 fi
8168 ;;
8169 esac
8170
8171 # Use C for the default configuration in the libtool script
8172
8173 lt_save_CC=$CC
8174 ac_ext=c
8175 ac_cpp='$CPP $CPPFLAGS'
8176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8179
8180
8181 # Source file extension for C test sources.
8182 ac_ext=c
8183
8184 # Object file extension for compiled C test sources.
8185 objext=o
8186 objext=$objext
8187
8188 # Code to be used in simple compile tests
8189 lt_simple_compile_test_code="int some_variable = 0;"
8190
8191 # Code to be used in simple link tests
8192 lt_simple_link_test_code='int main(){return(0);}'
8193
8194
8195
8196
8197
8198
8199
8200 # If no C compiler was specified, use CC.
8201 LTCC=${LTCC-"$CC"}
8202
8203 # If no C compiler flags were specified, use CFLAGS.
8204 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8205
8206 # Allow CC to be a program name with arguments.
8207 compiler=$CC
8208
8209 # Save the default compiler, since it gets overwritten when the other
8210 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8211 compiler_DEFAULT=$CC
8212
8213 # save warnings/boilerplate of simple test code
8214 ac_outfile=conftest.$ac_objext
8215 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8216 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8217 _lt_compiler_boilerplate=`cat conftest.err`
8218 $RM conftest*
8219
8220 ac_outfile=conftest.$ac_objext
8221 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8222 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8223 _lt_linker_boilerplate=`cat conftest.err`
8224 $RM -r conftest*
8225
8226
8227 if test -n "$compiler"; then
8228
8229 lt_prog_compiler_no_builtin_flag=
8230
8231 if test yes = "$GCC"; then
8232 case $cc_basename in
8233 nvcc*)
8234 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8235 *)
8236 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8237 esac
8238
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8240 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8241 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8242 $as_echo_n "(cached) " >&6
8243 else
8244 lt_cv_prog_compiler_rtti_exceptions=no
8245 ac_outfile=conftest.$ac_objext
8246 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8247 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8248 # Insert the option either (1) after the last *FLAGS variable, or
8249 # (2) before a word containing "conftest.", or (3) at the end.
8250 # Note that $ac_compile itself does not contain backslashes and begins
8251 # with a dollar sign (not a hyphen), so the echo should work correctly.
8252 # The option is referenced via a variable to avoid confusing sed.
8253 lt_compile=`echo "$ac_compile" | $SED \
8254 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8256 -e 's:$: $lt_compiler_flag:'`
8257 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8258 (eval "$lt_compile" 2>conftest.err)
8259 ac_status=$?
8260 cat conftest.err >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 if (exit $ac_status) && test -s "$ac_outfile"; then
8263 # The compiler can only warn and ignore the option if not recognized
8264 # So say no if there are warnings other than the usual output.
8265 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8266 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8267 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8268 lt_cv_prog_compiler_rtti_exceptions=yes
8269 fi
8270 fi
8271 $RM conftest*
8272
8273 fi
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8275 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8276
8277 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8278 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8279 else
8280 :
8281 fi
8282
8283 fi
8284
8285
8286
8287
8288
8289
8290 lt_prog_compiler_wl=
8291 lt_prog_compiler_pic=
8292 lt_prog_compiler_static=
8293
8294
8295 if test yes = "$GCC"; then
8296 lt_prog_compiler_wl='-Wl,'
8297 lt_prog_compiler_static='-static'
8298
8299 case $host_os in
8300 aix*)
8301 # All AIX code is PIC.
8302 if test ia64 = "$host_cpu"; then
8303 # AIX 5 now supports IA64 processor
8304 lt_prog_compiler_static='-Bstatic'
8305 fi
8306 lt_prog_compiler_pic='-fPIC'
8307 ;;
8308
8309 amigaos*)
8310 case $host_cpu in
8311 powerpc)
8312 # see comment about AmigaOS4 .so support
8313 lt_prog_compiler_pic='-fPIC'
8314 ;;
8315 m68k)
8316 # FIXME: we need at least 68020 code to build shared libraries, but
8317 # adding the '-m68020' flag to GCC prevents building anything better,
8318 # like '-m68040'.
8319 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8320 ;;
8321 esac
8322 ;;
8323
8324 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8325 # PIC is the default for these OSes.
8326 ;;
8327
8328 mingw* | cygwin* | pw32* | os2* | cegcc*)
8329 # This hack is so that the source file can tell whether it is being
8330 # built for inclusion in a dll (and should export symbols for example).
8331 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8332 # (--disable-auto-import) libraries
8333 lt_prog_compiler_pic='-DDLL_EXPORT'
8334 case $host_os in
8335 os2*)
8336 lt_prog_compiler_static='$wl-static'
8337 ;;
8338 esac
8339 ;;
8340
8341 darwin* | rhapsody*)
8342 # PIC is the default on this platform
8343 # Common symbols not allowed in MH_DYLIB files
8344 lt_prog_compiler_pic='-fno-common'
8345 ;;
8346
8347 haiku*)
8348 # PIC is the default for Haiku.
8349 # The "-static" flag exists, but is broken.
8350 lt_prog_compiler_static=
8351 ;;
8352
8353 hpux*)
8354 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8355 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8356 # sets the default TLS model and affects inlining.
8357 case $host_cpu in
8358 hppa*64*)
8359 # +Z the default
8360 ;;
8361 *)
8362 lt_prog_compiler_pic='-fPIC'
8363 ;;
8364 esac
8365 ;;
8366
8367 interix[3-9]*)
8368 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8369 # Instead, we relocate shared libraries at runtime.
8370 ;;
8371
8372 msdosdjgpp*)
8373 # Just because we use GCC doesn't mean we suddenly get shared libraries
8374 # on systems that don't support them.
8375 lt_prog_compiler_can_build_shared=no
8376 enable_shared=no
8377 ;;
8378
8379 *nto* | *qnx*)
8380 # QNX uses GNU C++, but need to define -shared option too, otherwise
8381 # it will coredump.
8382 lt_prog_compiler_pic='-fPIC -shared'
8383 ;;
8384
8385 sysv4*MP*)
8386 if test -d /usr/nec; then
8387 lt_prog_compiler_pic=-Kconform_pic
8388 fi
8389 ;;
8390
8391 *)
8392 lt_prog_compiler_pic='-fPIC'
8393 ;;
8394 esac
8395
8396 case $cc_basename in
8397 nvcc*) # Cuda Compiler Driver 2.2
8398 lt_prog_compiler_wl='-Xlinker '
8399 if test -n "$lt_prog_compiler_pic"; then
8400 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8401 fi
8402 ;;
8403 esac
8404 else
8405 # PORTME Check for flag to pass linker flags through the system compiler.
8406 case $host_os in
8407 aix*)
8408 lt_prog_compiler_wl='-Wl,'
8409 if test ia64 = "$host_cpu"; then
8410 # AIX 5 now supports IA64 processor
8411 lt_prog_compiler_static='-Bstatic'
8412 else
8413 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8414 fi
8415 ;;
8416
8417 darwin* | rhapsody*)
8418 # PIC is the default on this platform
8419 # Common symbols not allowed in MH_DYLIB files
8420 lt_prog_compiler_pic='-fno-common'
8421 case $cc_basename in
8422 nagfor*)
8423 # NAG Fortran compiler
8424 lt_prog_compiler_wl='-Wl,-Wl,,'
8425 lt_prog_compiler_pic='-PIC'
8426 lt_prog_compiler_static='-Bstatic'
8427 ;;
8428 esac
8429 ;;
8430
8431 mingw* | cygwin* | pw32* | os2* | cegcc*)
8432 # This hack is so that the source file can tell whether it is being
8433 # built for inclusion in a dll (and should export symbols for example).
8434 lt_prog_compiler_pic='-DDLL_EXPORT'
8435 case $host_os in
8436 os2*)
8437 lt_prog_compiler_static='$wl-static'
8438 ;;
8439 esac
8440 ;;
8441
8442 hpux9* | hpux10* | hpux11*)
8443 lt_prog_compiler_wl='-Wl,'
8444 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8445 # not for PA HP-UX.
8446 case $host_cpu in
8447 hppa*64*|ia64*)
8448 # +Z the default
8449 ;;
8450 *)
8451 lt_prog_compiler_pic='+Z'
8452 ;;
8453 esac
8454 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8455 lt_prog_compiler_static='$wl-a ${wl}archive'
8456 ;;
8457
8458 irix5* | irix6* | nonstopux*)
8459 lt_prog_compiler_wl='-Wl,'
8460 # PIC (with -KPIC) is the default.
8461 lt_prog_compiler_static='-non_shared'
8462 ;;
8463
8464 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8465 case $cc_basename in
8466 # old Intel for x86_64, which still supported -KPIC.
8467 ecc*)
8468 lt_prog_compiler_wl='-Wl,'
8469 lt_prog_compiler_pic='-KPIC'
8470 lt_prog_compiler_static='-static'
8471 ;;
8472 # icc used to be incompatible with GCC.
8473 # ICC 10 doesn't accept -KPIC any more.
8474 icc* | ifort*)
8475 lt_prog_compiler_wl='-Wl,'
8476 lt_prog_compiler_pic='-fPIC'
8477 lt_prog_compiler_static='-static'
8478 ;;
8479 # Lahey Fortran 8.1.
8480 lf95*)
8481 lt_prog_compiler_wl='-Wl,'
8482 lt_prog_compiler_pic='--shared'
8483 lt_prog_compiler_static='--static'
8484 ;;
8485 nagfor*)
8486 # NAG Fortran compiler
8487 lt_prog_compiler_wl='-Wl,-Wl,,'
8488 lt_prog_compiler_pic='-PIC'
8489 lt_prog_compiler_static='-Bstatic'
8490 ;;
8491 tcc*)
8492 # Fabrice Bellard et al's Tiny C Compiler
8493 lt_prog_compiler_wl='-Wl,'
8494 lt_prog_compiler_pic='-fPIC'
8495 lt_prog_compiler_static='-static'
8496 ;;
8497 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8498 # Portland Group compilers (*not* the Pentium gcc compiler,
8499 # which looks to be a dead project)
8500 lt_prog_compiler_wl='-Wl,'
8501 lt_prog_compiler_pic='-fpic'
8502 lt_prog_compiler_static='-Bstatic'
8503 ;;
8504 ccc*)
8505 lt_prog_compiler_wl='-Wl,'
8506 # All Alpha code is PIC.
8507 lt_prog_compiler_static='-non_shared'
8508 ;;
8509 xl* | bgxl* | bgf* | mpixl*)
8510 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8511 lt_prog_compiler_wl='-Wl,'
8512 lt_prog_compiler_pic='-qpic'
8513 lt_prog_compiler_static='-qstaticlink'
8514 ;;
8515 *)
8516 case `$CC -V 2>&1 | sed 5q` in
8517 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8518 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8519 lt_prog_compiler_pic='-KPIC'
8520 lt_prog_compiler_static='-Bstatic'
8521 lt_prog_compiler_wl=''
8522 ;;
8523 *Sun\ F* | *Sun*Fortran*)
8524 lt_prog_compiler_pic='-KPIC'
8525 lt_prog_compiler_static='-Bstatic'
8526 lt_prog_compiler_wl='-Qoption ld '
8527 ;;
8528 *Sun\ C*)
8529 # Sun C 5.9
8530 lt_prog_compiler_pic='-KPIC'
8531 lt_prog_compiler_static='-Bstatic'
8532 lt_prog_compiler_wl='-Wl,'
8533 ;;
8534 *Intel*\ [CF]*Compiler*)
8535 lt_prog_compiler_wl='-Wl,'
8536 lt_prog_compiler_pic='-fPIC'
8537 lt_prog_compiler_static='-static'
8538 ;;
8539 *Portland\ Group*)
8540 lt_prog_compiler_wl='-Wl,'
8541 lt_prog_compiler_pic='-fpic'
8542 lt_prog_compiler_static='-Bstatic'
8543 ;;
8544 esac
8545 ;;
8546 esac
8547 ;;
8548
8549 newsos6)
8550 lt_prog_compiler_pic='-KPIC'
8551 lt_prog_compiler_static='-Bstatic'
8552 ;;
8553
8554 *nto* | *qnx*)
8555 # QNX uses GNU C++, but need to define -shared option too, otherwise
8556 # it will coredump.
8557 lt_prog_compiler_pic='-fPIC -shared'
8558 ;;
8559
8560 osf3* | osf4* | osf5*)
8561 lt_prog_compiler_wl='-Wl,'
8562 # All OSF/1 code is PIC.
8563 lt_prog_compiler_static='-non_shared'
8564 ;;
8565
8566 rdos*)
8567 lt_prog_compiler_static='-non_shared'
8568 ;;
8569
8570 solaris*)
8571 lt_prog_compiler_pic='-KPIC'
8572 lt_prog_compiler_static='-Bstatic'
8573 case $cc_basename in
8574 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8575 lt_prog_compiler_wl='-Qoption ld ';;
8576 *)
8577 lt_prog_compiler_wl='-Wl,';;
8578 esac
8579 ;;
8580
8581 sunos4*)
8582 lt_prog_compiler_wl='-Qoption ld '
8583 lt_prog_compiler_pic='-PIC'
8584 lt_prog_compiler_static='-Bstatic'
8585 ;;
8586
8587 sysv4 | sysv4.2uw2* | sysv4.3*)
8588 lt_prog_compiler_wl='-Wl,'
8589 lt_prog_compiler_pic='-KPIC'
8590 lt_prog_compiler_static='-Bstatic'
8591 ;;
8592
8593 sysv4*MP*)
8594 if test -d /usr/nec; then
8595 lt_prog_compiler_pic='-Kconform_pic'
8596 lt_prog_compiler_static='-Bstatic'
8597 fi
8598 ;;
8599
8600 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8601 lt_prog_compiler_wl='-Wl,'
8602 lt_prog_compiler_pic='-KPIC'
8603 lt_prog_compiler_static='-Bstatic'
8604 ;;
8605
8606 unicos*)
8607 lt_prog_compiler_wl='-Wl,'
8608 lt_prog_compiler_can_build_shared=no
8609 ;;
8610
8611 uts4*)
8612 lt_prog_compiler_pic='-pic'
8613 lt_prog_compiler_static='-Bstatic'
8614 ;;
8615
8616 *)
8617 lt_prog_compiler_can_build_shared=no
8618 ;;
8619 esac
8620 fi
8621
8622 case $host_os in
8623 # For platforms that do not support PIC, -DPIC is meaningless:
8624 *djgpp*)
8625 lt_prog_compiler_pic=
8626 ;;
8627 *)
8628 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8629 ;;
8630 esac
8631
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8633 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8634 if ${lt_cv_prog_compiler_pic+:} false; then :
8635 $as_echo_n "(cached) " >&6
8636 else
8637 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8638 fi
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8640 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8641 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8642
8643 #
8644 # Check to make sure the PIC flag actually works.
8645 #
8646 if test -n "$lt_prog_compiler_pic"; then
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8648 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8649 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 lt_cv_prog_compiler_pic_works=no
8653 ac_outfile=conftest.$ac_objext
8654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8655 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8656 # Insert the option either (1) after the last *FLAGS variable, or
8657 # (2) before a word containing "conftest.", or (3) at the end.
8658 # Note that $ac_compile itself does not contain backslashes and begins
8659 # with a dollar sign (not a hyphen), so the echo should work correctly.
8660 # The option is referenced via a variable to avoid confusing sed.
8661 lt_compile=`echo "$ac_compile" | $SED \
8662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8664 -e 's:$: $lt_compiler_flag:'`
8665 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8666 (eval "$lt_compile" 2>conftest.err)
8667 ac_status=$?
8668 cat conftest.err >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 if (exit $ac_status) && test -s "$ac_outfile"; then
8671 # The compiler can only warn and ignore the option if not recognized
8672 # So say no if there are warnings other than the usual output.
8673 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8674 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8675 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8676 lt_cv_prog_compiler_pic_works=yes
8677 fi
8678 fi
8679 $RM conftest*
8680
8681 fi
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8683 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8684
8685 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8686 case $lt_prog_compiler_pic in
8687 "" | " "*) ;;
8688 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8689 esac
8690 else
8691 lt_prog_compiler_pic=
8692 lt_prog_compiler_can_build_shared=no
8693 fi
8694
8695 fi
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707 #
8708 # Check to make sure the static flag actually works.
8709 #
8710 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8712 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8713 if ${lt_cv_prog_compiler_static_works+:} false; then :
8714 $as_echo_n "(cached) " >&6
8715 else
8716 lt_cv_prog_compiler_static_works=no
8717 save_LDFLAGS=$LDFLAGS
8718 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8719 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8720 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8721 # The linker can only warn and ignore the option if not recognized
8722 # So say no if there are warnings
8723 if test -s conftest.err; then
8724 # Append any errors to the config.log.
8725 cat conftest.err 1>&5
8726 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8727 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8728 if diff conftest.exp conftest.er2 >/dev/null; then
8729 lt_cv_prog_compiler_static_works=yes
8730 fi
8731 else
8732 lt_cv_prog_compiler_static_works=yes
8733 fi
8734 fi
8735 $RM -r conftest*
8736 LDFLAGS=$save_LDFLAGS
8737
8738 fi
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8740 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8741
8742 if test yes = "$lt_cv_prog_compiler_static_works"; then
8743 :
8744 else
8745 lt_prog_compiler_static=
8746 fi
8747
8748
8749
8750
8751
8752
8753
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8755 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8756 if ${lt_cv_prog_compiler_c_o+:} false; then :
8757 $as_echo_n "(cached) " >&6
8758 else
8759 lt_cv_prog_compiler_c_o=no
8760 $RM -r conftest 2>/dev/null
8761 mkdir conftest
8762 cd conftest
8763 mkdir out
8764 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8765
8766 lt_compiler_flag="-o out/conftest2.$ac_objext"
8767 # Insert the option either (1) after the last *FLAGS variable, or
8768 # (2) before a word containing "conftest.", or (3) at the end.
8769 # Note that $ac_compile itself does not contain backslashes and begins
8770 # with a dollar sign (not a hyphen), so the echo should work correctly.
8771 lt_compile=`echo "$ac_compile" | $SED \
8772 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8774 -e 's:$: $lt_compiler_flag:'`
8775 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8776 (eval "$lt_compile" 2>out/conftest.err)
8777 ac_status=$?
8778 cat out/conftest.err >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8781 then
8782 # The compiler can only warn and ignore the option if not recognized
8783 # So say no if there are warnings
8784 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8785 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8786 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8787 lt_cv_prog_compiler_c_o=yes
8788 fi
8789 fi
8790 chmod u+w . 2>&5
8791 $RM conftest*
8792 # SGI C++ compiler will create directory out/ii_files/ for
8793 # template instantiation
8794 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8795 $RM out/* && rmdir out
8796 cd ..
8797 $RM -r conftest
8798 $RM conftest*
8799
8800 fi
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8802 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8803
8804
8805
8806
8807
8808
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8810 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8811 if ${lt_cv_prog_compiler_c_o+:} false; then :
8812 $as_echo_n "(cached) " >&6
8813 else
8814 lt_cv_prog_compiler_c_o=no
8815 $RM -r conftest 2>/dev/null
8816 mkdir conftest
8817 cd conftest
8818 mkdir out
8819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8820
8821 lt_compiler_flag="-o out/conftest2.$ac_objext"
8822 # Insert the option either (1) after the last *FLAGS variable, or
8823 # (2) before a word containing "conftest.", or (3) at the end.
8824 # Note that $ac_compile itself does not contain backslashes and begins
8825 # with a dollar sign (not a hyphen), so the echo should work correctly.
8826 lt_compile=`echo "$ac_compile" | $SED \
8827 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8829 -e 's:$: $lt_compiler_flag:'`
8830 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8831 (eval "$lt_compile" 2>out/conftest.err)
8832 ac_status=$?
8833 cat out/conftest.err >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8836 then
8837 # The compiler can only warn and ignore the option if not recognized
8838 # So say no if there are warnings
8839 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8840 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8841 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8842 lt_cv_prog_compiler_c_o=yes
8843 fi
8844 fi
8845 chmod u+w . 2>&5
8846 $RM conftest*
8847 # SGI C++ compiler will create directory out/ii_files/ for
8848 # template instantiation
8849 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8850 $RM out/* && rmdir out
8851 cd ..
8852 $RM -r conftest
8853 $RM conftest*
8854
8855 fi
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8857 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8858
8859
8860
8861
8862 hard_links=nottested
8863 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8864 # do not overwrite the value of need_locks provided by the user
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8866 $as_echo_n "checking if we can lock with hard links... " >&6; }
8867 hard_links=yes
8868 $RM conftest*
8869 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8870 touch conftest.a
8871 ln conftest.a conftest.b 2>&5 || hard_links=no
8872 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8874 $as_echo "$hard_links" >&6; }
8875 if test no = "$hard_links"; then
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8877 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8878 need_locks=warn
8879 fi
8880 else
8881 need_locks=no
8882 fi
8883
8884
8885
8886
8887
8888
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8890 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8891
8892 runpath_var=
8893 allow_undefined_flag=
8894 always_export_symbols=no
8895 archive_cmds=
8896 archive_expsym_cmds=
8897 compiler_needs_object=no
8898 enable_shared_with_static_runtimes=no
8899 export_dynamic_flag_spec=
8900 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8901 hardcode_automatic=no
8902 hardcode_direct=no
8903 hardcode_direct_absolute=no
8904 hardcode_libdir_flag_spec=
8905 hardcode_libdir_separator=
8906 hardcode_minus_L=no
8907 hardcode_shlibpath_var=unsupported
8908 inherit_rpath=no
8909 link_all_deplibs=unknown
8910 module_cmds=
8911 module_expsym_cmds=
8912 old_archive_from_new_cmds=
8913 old_archive_from_expsyms_cmds=
8914 thread_safe_flag_spec=
8915 whole_archive_flag_spec=
8916 # include_expsyms should be a list of space-separated symbols to be *always*
8917 # included in the symbol list
8918 include_expsyms=
8919 # exclude_expsyms can be an extended regexp of symbols to exclude
8920 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8921 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8922 # as well as any symbol that contains 'd'.
8923 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8924 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8925 # platforms (ab)use it in PIC code, but their linkers get confused if
8926 # the symbol is explicitly referenced. Since portable code cannot
8927 # rely on this symbol name, it's probably fine to never include it in
8928 # preloaded symbol tables.
8929 # Exclude shared library initialization/finalization symbols.
8930 extract_expsyms_cmds=
8931
8932 case $host_os in
8933 cygwin* | mingw* | pw32* | cegcc*)
8934 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8935 # When not using gcc, we currently assume that we are using
8936 # Microsoft Visual C++.
8937 if test yes != "$GCC"; then
8938 with_gnu_ld=no
8939 fi
8940 ;;
8941 interix*)
8942 # we just hope/assume this is gcc and not c89 (= MSVC++)
8943 with_gnu_ld=yes
8944 ;;
8945 openbsd* | bitrig*)
8946 with_gnu_ld=no
8947 ;;
8948 linux* | k*bsd*-gnu | gnu*)
8949 link_all_deplibs=no
8950 ;;
8951 esac
8952
8953 ld_shlibs=yes
8954
8955 # On some targets, GNU ld is compatible enough with the native linker
8956 # that we're better off using the native interface for both.
8957 lt_use_gnu_ld_interface=no
8958 if test yes = "$with_gnu_ld"; then
8959 case $host_os in
8960 aix*)
8961 # The AIX port of GNU ld has always aspired to compatibility
8962 # with the native linker. However, as the warning in the GNU ld
8963 # block says, versions before 2.19.5* couldn't really create working
8964 # shared libraries, regardless of the interface used.
8965 case `$LD -v 2>&1` in
8966 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8967 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8968 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8969 *)
8970 lt_use_gnu_ld_interface=yes
8971 ;;
8972 esac
8973 ;;
8974 *)
8975 lt_use_gnu_ld_interface=yes
8976 ;;
8977 esac
8978 fi
8979
8980 if test yes = "$lt_use_gnu_ld_interface"; then
8981 # If archive_cmds runs LD, not CC, wlarc should be empty
8982 wlarc='$wl'
8983
8984 # Set some defaults for GNU ld with shared library support. These
8985 # are reset later if shared libraries are not supported. Putting them
8986 # here allows them to be overridden if necessary.
8987 runpath_var=LD_RUN_PATH
8988 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8989 export_dynamic_flag_spec='$wl--export-dynamic'
8990 # ancient GNU ld didn't support --whole-archive et. al.
8991 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8992 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8993 else
8994 whole_archive_flag_spec=
8995 fi
8996 supports_anon_versioning=no
8997 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8998 *GNU\ gold*) supports_anon_versioning=yes ;;
8999 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9000 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9001 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9002 *\ 2.11.*) ;; # other 2.11 versions
9003 *) supports_anon_versioning=yes ;;
9004 esac
9005
9006 # See if GNU ld supports shared libraries.
9007 case $host_os in
9008 aix[3-9]*)
9009 # On AIX/PPC, the GNU linker is very broken
9010 if test ia64 != "$host_cpu"; then
9011 ld_shlibs=no
9012 cat <<_LT_EOF 1>&2
9013
9014 *** Warning: the GNU linker, at least up to release 2.19, is reported
9015 *** to be unable to reliably create shared libraries on AIX.
9016 *** Therefore, libtool is disabling shared libraries support. If you
9017 *** really care for shared libraries, you may want to install binutils
9018 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9019 *** You will then need to restart the configuration process.
9020
9021 _LT_EOF
9022 fi
9023 ;;
9024
9025 amigaos*)
9026 case $host_cpu in
9027 powerpc)
9028 # see comment about AmigaOS4 .so support
9029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9030 archive_expsym_cmds=''
9031 ;;
9032 m68k)
9033 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)'
9034 hardcode_libdir_flag_spec='-L$libdir'
9035 hardcode_minus_L=yes
9036 ;;
9037 esac
9038 ;;
9039
9040 beos*)
9041 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9042 allow_undefined_flag=unsupported
9043 # Joseph Beckenbach <[email protected]> says some releases of gcc
9044 # support --undefined. This deserves some investigation. FIXME
9045 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9046 else
9047 ld_shlibs=no
9048 fi
9049 ;;
9050
9051 cygwin* | mingw* | pw32* | cegcc*)
9052 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9053 # as there is no search path for DLLs.
9054 hardcode_libdir_flag_spec='-L$libdir'
9055 export_dynamic_flag_spec='$wl--export-all-symbols'
9056 allow_undefined_flag=unsupported
9057 always_export_symbols=no
9058 enable_shared_with_static_runtimes=yes
9059 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'
9060 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9061
9062 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9064 # If the export-symbols file already is a .def file, use it as
9065 # is; otherwise, prepend EXPORTS...
9066 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9067 cp $export_symbols $output_objdir/$soname.def;
9068 else
9069 echo EXPORTS > $output_objdir/$soname.def;
9070 cat $export_symbols >> $output_objdir/$soname.def;
9071 fi~
9072 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9073 else
9074 ld_shlibs=no
9075 fi
9076 ;;
9077
9078 haiku*)
9079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9080 link_all_deplibs=yes
9081 ;;
9082
9083 os2*)
9084 hardcode_libdir_flag_spec='-L$libdir'
9085 hardcode_minus_L=yes
9086 allow_undefined_flag=unsupported
9087 shrext_cmds=.dll
9088 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9089 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9090 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9091 $ECHO EXPORTS >> $output_objdir/$libname.def~
9092 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9093 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9094 emximp -o $lib $output_objdir/$libname.def'
9095 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9096 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9097 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9098 $ECHO EXPORTS >> $output_objdir/$libname.def~
9099 prefix_cmds="$SED"~
9100 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9101 prefix_cmds="$prefix_cmds -e 1d";
9102 fi~
9103 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9104 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9105 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9106 emximp -o $lib $output_objdir/$libname.def'
9107 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9108 enable_shared_with_static_runtimes=yes
9109 ;;
9110
9111 interix[3-9]*)
9112 hardcode_direct=no
9113 hardcode_shlibpath_var=no
9114 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9115 export_dynamic_flag_spec='$wl-E'
9116 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9117 # Instead, shared libraries are loaded at an image base (0x10000000 by
9118 # default) and relocated if they conflict, which is a slow very memory
9119 # consuming and fragmenting process. To avoid this, we pick a random,
9120 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9121 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9122 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9123 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'
9124 ;;
9125
9126 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9127 tmp_diet=no
9128 if test linux-dietlibc = "$host_os"; then
9129 case $cc_basename in
9130 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9131 esac
9132 fi
9133 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9134 && test no = "$tmp_diet"
9135 then
9136 tmp_addflag=' $pic_flag'
9137 tmp_sharedflag='-shared'
9138 case $cc_basename,$host_cpu in
9139 pgcc*) # Portland Group C compiler
9140 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'
9141 tmp_addflag=' $pic_flag'
9142 ;;
9143 pgf77* | pgf90* | pgf95* | pgfortran*)
9144 # Portland Group f77 and f90 compilers
9145 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'
9146 tmp_addflag=' $pic_flag -Mnomain' ;;
9147 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9148 tmp_addflag=' -i_dynamic' ;;
9149 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9150 tmp_addflag=' -i_dynamic -nofor_main' ;;
9151 ifc* | ifort*) # Intel Fortran compiler
9152 tmp_addflag=' -nofor_main' ;;
9153 lf95*) # Lahey Fortran 8.1
9154 whole_archive_flag_spec=
9155 tmp_sharedflag='--shared' ;;
9156 nagfor*) # NAGFOR 5.3
9157 tmp_sharedflag='-Wl,-shared' ;;
9158 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9159 tmp_sharedflag='-qmkshrobj'
9160 tmp_addflag= ;;
9161 nvcc*) # Cuda Compiler Driver 2.2
9162 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'
9163 compiler_needs_object=yes
9164 ;;
9165 esac
9166 case `$CC -V 2>&1 | sed 5q` in
9167 *Sun\ C*) # Sun C 5.9
9168 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'
9169 compiler_needs_object=yes
9170 tmp_sharedflag='-G' ;;
9171 *Sun\ F*) # Sun Fortran 8.3
9172 tmp_sharedflag='-G' ;;
9173 esac
9174 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9175
9176 if test yes = "$supports_anon_versioning"; then
9177 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9178 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9179 echo "local: *; };" >> $output_objdir/$libname.ver~
9180 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9181 fi
9182
9183 case $cc_basename in
9184 tcc*)
9185 export_dynamic_flag_spec='-rdynamic'
9186 ;;
9187 xlf* | bgf* | bgxlf* | mpixlf*)
9188 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9189 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9190 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9191 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9192 if test yes = "$supports_anon_versioning"; then
9193 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9194 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9195 echo "local: *; };" >> $output_objdir/$libname.ver~
9196 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9197 fi
9198 ;;
9199 esac
9200 else
9201 ld_shlibs=no
9202 fi
9203 ;;
9204
9205 netbsd* | netbsdelf*-gnu)
9206 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9207 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9208 wlarc=
9209 else
9210 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9211 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9212 fi
9213 ;;
9214
9215 solaris*)
9216 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9217 ld_shlibs=no
9218 cat <<_LT_EOF 1>&2
9219
9220 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9221 *** create shared libraries on Solaris systems. Therefore, libtool
9222 *** is disabling shared libraries support. We urge you to upgrade GNU
9223 *** binutils to release 2.9.1 or newer. Another option is to modify
9224 *** your PATH or compiler configuration so that the native linker is
9225 *** used, and then restart.
9226
9227 _LT_EOF
9228 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9229 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9230 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9231 else
9232 ld_shlibs=no
9233 fi
9234 ;;
9235
9236 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9237 case `$LD -v 2>&1` in
9238 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9239 ld_shlibs=no
9240 cat <<_LT_EOF 1>&2
9241
9242 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9243 *** reliably create shared libraries on SCO systems. Therefore, libtool
9244 *** is disabling shared libraries support. We urge you to upgrade GNU
9245 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9246 *** your PATH or compiler configuration so that the native linker is
9247 *** used, and then restart.
9248
9249 _LT_EOF
9250 ;;
9251 *)
9252 # For security reasons, it is highly recommended that you always
9253 # use absolute paths for naming shared libraries, and exclude the
9254 # DT_RUNPATH tag from executables and libraries. But doing so
9255 # requires that you compile everything twice, which is a pain.
9256 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9257 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9259 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9260 else
9261 ld_shlibs=no
9262 fi
9263 ;;
9264 esac
9265 ;;
9266
9267 sunos4*)
9268 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9269 wlarc=
9270 hardcode_direct=yes
9271 hardcode_shlibpath_var=no
9272 ;;
9273
9274 *)
9275 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9276 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9277 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9278 else
9279 ld_shlibs=no
9280 fi
9281 ;;
9282 esac
9283
9284 if test no = "$ld_shlibs"; then
9285 runpath_var=
9286 hardcode_libdir_flag_spec=
9287 export_dynamic_flag_spec=
9288 whole_archive_flag_spec=
9289 fi
9290 else
9291 # PORTME fill in a description of your system's linker (not GNU ld)
9292 case $host_os in
9293 aix3*)
9294 allow_undefined_flag=unsupported
9295 always_export_symbols=yes
9296 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'
9297 # Note: this linker hardcodes the directories in LIBPATH if there
9298 # are no directories specified by -L.
9299 hardcode_minus_L=yes
9300 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9301 # Neither direct hardcoding nor static linking is supported with a
9302 # broken collect2.
9303 hardcode_direct=unsupported
9304 fi
9305 ;;
9306
9307 aix[4-9]*)
9308 if test ia64 = "$host_cpu"; then
9309 # On IA64, the linker does run time linking by default, so we don't
9310 # have to do anything special.
9311 aix_use_runtimelinking=no
9312 exp_sym_flag='-Bexport'
9313 no_entry_flag=
9314 else
9315 # If we're using GNU nm, then we don't want the "-C" option.
9316 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9317 # Without the "-l" option, or with the "-B" option, AIX nm treats
9318 # weak defined symbols like other global defined symbols, whereas
9319 # GNU nm marks them as "W".
9320 # While the 'weak' keyword is ignored in the Export File, we need
9321 # it in the Import File for the 'aix-soname' feature, so we have
9322 # to replace the "-B" option with "-P" for AIX nm.
9323 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9324 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9325 else
9326 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9327 fi
9328 aix_use_runtimelinking=no
9329
9330 # Test if we are trying to use run time linking or normal
9331 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9332 # have runtime linking enabled, and use it for executables.
9333 # For shared libraries, we enable/disable runtime linking
9334 # depending on the kind of the shared library created -
9335 # when "with_aix_soname,aix_use_runtimelinking" is:
9336 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9337 # "aix,yes" lib.so shared, rtl:yes, for executables
9338 # lib.a static archive
9339 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9340 # lib.a(lib.so.V) shared, rtl:no, for executables
9341 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9342 # lib.a(lib.so.V) shared, rtl:no
9343 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9344 # lib.a static archive
9345 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9346 for ld_flag in $LDFLAGS; do
9347 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9348 aix_use_runtimelinking=yes
9349 break
9350 fi
9351 done
9352 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9353 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9354 # so we don't have lib.a shared libs to link our executables.
9355 # We have to force runtime linking in this case.
9356 aix_use_runtimelinking=yes
9357 LDFLAGS="$LDFLAGS -Wl,-brtl"
9358 fi
9359 ;;
9360 esac
9361
9362 exp_sym_flag='-bexport'
9363 no_entry_flag='-bnoentry'
9364 fi
9365
9366 # When large executables or shared objects are built, AIX ld can
9367 # have problems creating the table of contents. If linking a library
9368 # or program results in "error TOC overflow" add -mminimal-toc to
9369 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9370 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9371
9372 archive_cmds=''
9373 hardcode_direct=yes
9374 hardcode_direct_absolute=yes
9375 hardcode_libdir_separator=':'
9376 link_all_deplibs=yes
9377 file_list_spec='$wl-f,'
9378 case $with_aix_soname,$aix_use_runtimelinking in
9379 aix,*) ;; # traditional, no import file
9380 svr4,* | *,yes) # use import file
9381 # The Import File defines what to hardcode.
9382 hardcode_direct=no
9383 hardcode_direct_absolute=no
9384 ;;
9385 esac
9386
9387 if test yes = "$GCC"; then
9388 case $host_os in aix4.[012]|aix4.[012].*)
9389 # We only want to do this on AIX 4.2 and lower, the check
9390 # below for broken collect2 doesn't work under 4.3+
9391 collect2name=`$CC -print-prog-name=collect2`
9392 if test -f "$collect2name" &&
9393 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9394 then
9395 # We have reworked collect2
9396 :
9397 else
9398 # We have old collect2
9399 hardcode_direct=unsupported
9400 # It fails to find uninstalled libraries when the uninstalled
9401 # path is not listed in the libpath. Setting hardcode_minus_L
9402 # to unsupported forces relinking
9403 hardcode_minus_L=yes
9404 hardcode_libdir_flag_spec='-L$libdir'
9405 hardcode_libdir_separator=
9406 fi
9407 ;;
9408 esac
9409 shared_flag='-shared'
9410 if test yes = "$aix_use_runtimelinking"; then
9411 shared_flag="$shared_flag "'$wl-G'
9412 fi
9413 # Need to ensure runtime linking is disabled for the traditional
9414 # shared library, or the linker may eventually find shared libraries
9415 # /with/ Import File - we do not want to mix them.
9416 shared_flag_aix='-shared'
9417 shared_flag_svr4='-shared $wl-G'
9418 else
9419 # not using gcc
9420 if test ia64 = "$host_cpu"; then
9421 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9422 # chokes on -Wl,-G. The following line is correct:
9423 shared_flag='-G'
9424 else
9425 if test yes = "$aix_use_runtimelinking"; then
9426 shared_flag='$wl-G'
9427 else
9428 shared_flag='$wl-bM:SRE'
9429 fi
9430 shared_flag_aix='$wl-bM:SRE'
9431 shared_flag_svr4='$wl-G'
9432 fi
9433 fi
9434
9435 export_dynamic_flag_spec='$wl-bexpall'
9436 # It seems that -bexpall does not export symbols beginning with
9437 # underscore (_), so it is better to generate a list of symbols to export.
9438 always_export_symbols=yes
9439 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9440 # Warning - without using the other runtime loading flags (-brtl),
9441 # -berok will link without error, but may produce a broken library.
9442 allow_undefined_flag='-berok'
9443 # Determine the default libpath from the value encoded in an
9444 # empty executable.
9445 if test set = "${lt_cv_aix_libpath+set}"; then
9446 aix_libpath=$lt_cv_aix_libpath
9447 else
9448 if ${lt_cv_aix_libpath_+:} false; then :
9449 $as_echo_n "(cached) " >&6
9450 else
9451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9452 /* end confdefs.h. */
9453
9454 int
9455 main ()
9456 {
9457
9458 ;
9459 return 0;
9460 }
9461 _ACEOF
9462 if ac_fn_c_try_link "$LINENO"; then :
9463
9464 lt_aix_libpath_sed='
9465 /Import File Strings/,/^$/ {
9466 /^0/ {
9467 s/^0 *\([^ ]*\) *$/\1/
9468 p
9469 }
9470 }'
9471 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9472 # Check for a 64-bit object if we didn't find anything.
9473 if test -z "$lt_cv_aix_libpath_"; then
9474 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9475 fi
9476 fi
9477 rm -f core conftest.err conftest.$ac_objext \
9478 conftest$ac_exeext conftest.$ac_ext
9479 if test -z "$lt_cv_aix_libpath_"; then
9480 lt_cv_aix_libpath_=/usr/lib:/lib
9481 fi
9482
9483 fi
9484
9485 aix_libpath=$lt_cv_aix_libpath_
9486 fi
9487
9488 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9489 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9490 else
9491 if test ia64 = "$host_cpu"; then
9492 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9493 allow_undefined_flag="-z nodefs"
9494 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"
9495 else
9496 # Determine the default libpath from the value encoded in an
9497 # empty executable.
9498 if test set = "${lt_cv_aix_libpath+set}"; then
9499 aix_libpath=$lt_cv_aix_libpath
9500 else
9501 if ${lt_cv_aix_libpath_+:} false; then :
9502 $as_echo_n "(cached) " >&6
9503 else
9504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9505 /* end confdefs.h. */
9506
9507 int
9508 main ()
9509 {
9510
9511 ;
9512 return 0;
9513 }
9514 _ACEOF
9515 if ac_fn_c_try_link "$LINENO"; then :
9516
9517 lt_aix_libpath_sed='
9518 /Import File Strings/,/^$/ {
9519 /^0/ {
9520 s/^0 *\([^ ]*\) *$/\1/
9521 p
9522 }
9523 }'
9524 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9525 # Check for a 64-bit object if we didn't find anything.
9526 if test -z "$lt_cv_aix_libpath_"; then
9527 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9528 fi
9529 fi
9530 rm -f core conftest.err conftest.$ac_objext \
9531 conftest$ac_exeext conftest.$ac_ext
9532 if test -z "$lt_cv_aix_libpath_"; then
9533 lt_cv_aix_libpath_=/usr/lib:/lib
9534 fi
9535
9536 fi
9537
9538 aix_libpath=$lt_cv_aix_libpath_
9539 fi
9540
9541 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9542 # Warning - without using the other run time loading flags,
9543 # -berok will link without error, but may produce a broken library.
9544 no_undefined_flag=' $wl-bernotok'
9545 allow_undefined_flag=' $wl-berok'
9546 if test yes = "$with_gnu_ld"; then
9547 # We only use this code for GNU lds that support --whole-archive.
9548 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9549 else
9550 # Exported symbols can be pulled into shared objects from archives
9551 whole_archive_flag_spec='$convenience'
9552 fi
9553 archive_cmds_need_lc=yes
9554 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9555 # -brtl affects multiple linker settings, -berok does not and is overridden later
9556 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9557 if test svr4 != "$with_aix_soname"; then
9558 # This is similar to how AIX traditionally builds its shared libraries.
9559 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9560 fi
9561 if test aix != "$with_aix_soname"; then
9562 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9563 else
9564 # used by -dlpreopen to get the symbols
9565 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9566 fi
9567 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9568 fi
9569 fi
9570 ;;
9571
9572 amigaos*)
9573 case $host_cpu in
9574 powerpc)
9575 # see comment about AmigaOS4 .so support
9576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9577 archive_expsym_cmds=''
9578 ;;
9579 m68k)
9580 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)'
9581 hardcode_libdir_flag_spec='-L$libdir'
9582 hardcode_minus_L=yes
9583 ;;
9584 esac
9585 ;;
9586
9587 bsdi[45]*)
9588 export_dynamic_flag_spec=-rdynamic
9589 ;;
9590
9591 cygwin* | mingw* | pw32* | cegcc*)
9592 # When not using gcc, we currently assume that we are using
9593 # Microsoft Visual C++.
9594 # hardcode_libdir_flag_spec is actually meaningless, as there is
9595 # no search path for DLLs.
9596 case $cc_basename in
9597 cl*)
9598 # Native MSVC
9599 hardcode_libdir_flag_spec=' '
9600 allow_undefined_flag=unsupported
9601 always_export_symbols=yes
9602 file_list_spec='@'
9603 # Tell ltmain to make .lib files, not .a files.
9604 libext=lib
9605 # Tell ltmain to make .dll files, not .so files.
9606 shrext_cmds=.dll
9607 # FIXME: Setting linknames here is a bad hack.
9608 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9609 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9610 cp "$export_symbols" "$output_objdir/$soname.def";
9611 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9612 else
9613 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9614 fi~
9615 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9616 linknames='
9617 # The linker will not automatically build a static lib if we build a DLL.
9618 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9619 enable_shared_with_static_runtimes=yes
9620 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9621 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9622 # Don't use ranlib
9623 old_postinstall_cmds='chmod 644 $oldlib'
9624 postlink_cmds='lt_outputfile="@OUTPUT@"~
9625 lt_tool_outputfile="@TOOL_OUTPUT@"~
9626 case $lt_outputfile in
9627 *.exe|*.EXE) ;;
9628 *)
9629 lt_outputfile=$lt_outputfile.exe
9630 lt_tool_outputfile=$lt_tool_outputfile.exe
9631 ;;
9632 esac~
9633 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9634 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9635 $RM "$lt_outputfile.manifest";
9636 fi'
9637 ;;
9638 *)
9639 # Assume MSVC wrapper
9640 hardcode_libdir_flag_spec=' '
9641 allow_undefined_flag=unsupported
9642 # Tell ltmain to make .lib files, not .a files.
9643 libext=lib
9644 # Tell ltmain to make .dll files, not .so files.
9645 shrext_cmds=.dll
9646 # FIXME: Setting linknames here is a bad hack.
9647 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9648 # The linker will automatically build a .lib file if we build a DLL.
9649 old_archive_from_new_cmds='true'
9650 # FIXME: Should let the user specify the lib program.
9651 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9652 enable_shared_with_static_runtimes=yes
9653 ;;
9654 esac
9655 ;;
9656
9657 darwin* | rhapsody*)
9658
9659
9660 archive_cmds_need_lc=no
9661 hardcode_direct=no
9662 hardcode_automatic=yes
9663 hardcode_shlibpath_var=unsupported
9664 if test yes = "$lt_cv_ld_force_load"; then
9665 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\"`'
9666
9667 else
9668 whole_archive_flag_spec=''
9669 fi
9670 link_all_deplibs=yes
9671 allow_undefined_flag=$_lt_dar_allow_undefined
9672 case $cc_basename in
9673 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9674 *) _lt_dar_can_shared=$GCC ;;
9675 esac
9676 if test yes = "$_lt_dar_can_shared"; then
9677 output_verbose_link_cmd=func_echo_all
9678 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9679 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9680 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"
9681 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"
9682
9683 else
9684 ld_shlibs=no
9685 fi
9686
9687 ;;
9688
9689 dgux*)
9690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9691 hardcode_libdir_flag_spec='-L$libdir'
9692 hardcode_shlibpath_var=no
9693 ;;
9694
9695 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9696 # support. Future versions do this automatically, but an explicit c++rt0.o
9697 # does not break anything, and helps significantly (at the cost of a little
9698 # extra space).
9699 freebsd2.2*)
9700 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9701 hardcode_libdir_flag_spec='-R$libdir'
9702 hardcode_direct=yes
9703 hardcode_shlibpath_var=no
9704 ;;
9705
9706 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9707 freebsd2.*)
9708 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9709 hardcode_direct=yes
9710 hardcode_minus_L=yes
9711 hardcode_shlibpath_var=no
9712 ;;
9713
9714 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9715 freebsd* | dragonfly*)
9716 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9717 hardcode_libdir_flag_spec='-R$libdir'
9718 hardcode_direct=yes
9719 hardcode_shlibpath_var=no
9720 ;;
9721
9722 hpux9*)
9723 if test yes = "$GCC"; then
9724 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9725 else
9726 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9727 fi
9728 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9729 hardcode_libdir_separator=:
9730 hardcode_direct=yes
9731
9732 # hardcode_minus_L: Not really in the search PATH,
9733 # but as the default location of the library.
9734 hardcode_minus_L=yes
9735 export_dynamic_flag_spec='$wl-E'
9736 ;;
9737
9738 hpux10*)
9739 if test yes,no = "$GCC,$with_gnu_ld"; then
9740 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9741 else
9742 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9743 fi
9744 if test no = "$with_gnu_ld"; then
9745 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9746 hardcode_libdir_separator=:
9747 hardcode_direct=yes
9748 hardcode_direct_absolute=yes
9749 export_dynamic_flag_spec='$wl-E'
9750 # hardcode_minus_L: Not really in the search PATH,
9751 # but as the default location of the library.
9752 hardcode_minus_L=yes
9753 fi
9754 ;;
9755
9756 hpux11*)
9757 if test yes,no = "$GCC,$with_gnu_ld"; then
9758 case $host_cpu in
9759 hppa*64*)
9760 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9761 ;;
9762 ia64*)
9763 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9764 ;;
9765 *)
9766 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9767 ;;
9768 esac
9769 else
9770 case $host_cpu in
9771 hppa*64*)
9772 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9773 ;;
9774 ia64*)
9775 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9776 ;;
9777 *)
9778
9779 # Older versions of the 11.00 compiler do not understand -b yet
9780 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9782 $as_echo_n "checking if $CC understands -b... " >&6; }
9783 if ${lt_cv_prog_compiler__b+:} false; then :
9784 $as_echo_n "(cached) " >&6
9785 else
9786 lt_cv_prog_compiler__b=no
9787 save_LDFLAGS=$LDFLAGS
9788 LDFLAGS="$LDFLAGS -b"
9789 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9790 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9791 # The linker can only warn and ignore the option if not recognized
9792 # So say no if there are warnings
9793 if test -s conftest.err; then
9794 # Append any errors to the config.log.
9795 cat conftest.err 1>&5
9796 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9798 if diff conftest.exp conftest.er2 >/dev/null; then
9799 lt_cv_prog_compiler__b=yes
9800 fi
9801 else
9802 lt_cv_prog_compiler__b=yes
9803 fi
9804 fi
9805 $RM -r conftest*
9806 LDFLAGS=$save_LDFLAGS
9807
9808 fi
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9810 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9811
9812 if test yes = "$lt_cv_prog_compiler__b"; then
9813 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9814 else
9815 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9816 fi
9817
9818 ;;
9819 esac
9820 fi
9821 if test no = "$with_gnu_ld"; then
9822 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9823 hardcode_libdir_separator=:
9824
9825 case $host_cpu in
9826 hppa*64*|ia64*)
9827 hardcode_direct=no
9828 hardcode_shlibpath_var=no
9829 ;;
9830 *)
9831 hardcode_direct=yes
9832 hardcode_direct_absolute=yes
9833 export_dynamic_flag_spec='$wl-E'
9834
9835 # hardcode_minus_L: Not really in the search PATH,
9836 # but as the default location of the library.
9837 hardcode_minus_L=yes
9838 ;;
9839 esac
9840 fi
9841 ;;
9842
9843 irix5* | irix6* | nonstopux*)
9844 if test yes = "$GCC"; then
9845 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'
9846 # Try to use the -exported_symbol ld option, if it does not
9847 # work, assume that -exports_file does not work either and
9848 # implicitly export all symbols.
9849 # This should be the same for all languages, so no per-tag cache variable.
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9851 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9852 if ${lt_cv_irix_exported_symbol+:} false; then :
9853 $as_echo_n "(cached) " >&6
9854 else
9855 save_LDFLAGS=$LDFLAGS
9856 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9858 /* end confdefs.h. */
9859 int foo (void) { return 0; }
9860 _ACEOF
9861 if ac_fn_c_try_link "$LINENO"; then :
9862 lt_cv_irix_exported_symbol=yes
9863 else
9864 lt_cv_irix_exported_symbol=no
9865 fi
9866 rm -f core conftest.err conftest.$ac_objext \
9867 conftest$ac_exeext conftest.$ac_ext
9868 LDFLAGS=$save_LDFLAGS
9869 fi
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9871 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9872 if test yes = "$lt_cv_irix_exported_symbol"; then
9873 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'
9874 fi
9875 link_all_deplibs=no
9876 else
9877 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'
9878 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'
9879 fi
9880 archive_cmds_need_lc='no'
9881 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9882 hardcode_libdir_separator=:
9883 inherit_rpath=yes
9884 link_all_deplibs=yes
9885 ;;
9886
9887 linux*)
9888 case $cc_basename in
9889 tcc*)
9890 # Fabrice Bellard et al's Tiny C Compiler
9891 ld_shlibs=yes
9892 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9893 ;;
9894 esac
9895 ;;
9896
9897 netbsd* | netbsdelf*-gnu)
9898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9899 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9900 else
9901 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9902 fi
9903 hardcode_libdir_flag_spec='-R$libdir'
9904 hardcode_direct=yes
9905 hardcode_shlibpath_var=no
9906 ;;
9907
9908 newsos6)
9909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9910 hardcode_direct=yes
9911 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9912 hardcode_libdir_separator=:
9913 hardcode_shlibpath_var=no
9914 ;;
9915
9916 *nto* | *qnx*)
9917 ;;
9918
9919 openbsd* | bitrig*)
9920 if test -f /usr/libexec/ld.so; then
9921 hardcode_direct=yes
9922 hardcode_shlibpath_var=no
9923 hardcode_direct_absolute=yes
9924 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9925 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9926 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9927 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9928 export_dynamic_flag_spec='$wl-E'
9929 else
9930 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9931 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9932 fi
9933 else
9934 ld_shlibs=no
9935 fi
9936 ;;
9937
9938 os2*)
9939 hardcode_libdir_flag_spec='-L$libdir'
9940 hardcode_minus_L=yes
9941 allow_undefined_flag=unsupported
9942 shrext_cmds=.dll
9943 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9944 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9945 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9946 $ECHO EXPORTS >> $output_objdir/$libname.def~
9947 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9948 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9949 emximp -o $lib $output_objdir/$libname.def'
9950 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9951 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9952 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9953 $ECHO EXPORTS >> $output_objdir/$libname.def~
9954 prefix_cmds="$SED"~
9955 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9956 prefix_cmds="$prefix_cmds -e 1d";
9957 fi~
9958 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9959 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9960 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9961 emximp -o $lib $output_objdir/$libname.def'
9962 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9963 enable_shared_with_static_runtimes=yes
9964 ;;
9965
9966 osf3*)
9967 if test yes = "$GCC"; then
9968 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9969 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'
9970 else
9971 allow_undefined_flag=' -expect_unresolved \*'
9972 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'
9973 fi
9974 archive_cmds_need_lc='no'
9975 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9976 hardcode_libdir_separator=:
9977 ;;
9978
9979 osf4* | osf5*) # as osf3* with the addition of -msym flag
9980 if test yes = "$GCC"; then
9981 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9982 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'
9983 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9984 else
9985 allow_undefined_flag=' -expect_unresolved \*'
9986 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'
9987 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~
9988 $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'
9989
9990 # Both c and cxx compiler support -rpath directly
9991 hardcode_libdir_flag_spec='-rpath $libdir'
9992 fi
9993 archive_cmds_need_lc='no'
9994 hardcode_libdir_separator=:
9995 ;;
9996
9997 solaris*)
9998 no_undefined_flag=' -z defs'
9999 if test yes = "$GCC"; then
10000 wlarc='$wl'
10001 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10002 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10003 $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'
10004 else
10005 case `$CC -V 2>&1` in
10006 *"Compilers 5.0"*)
10007 wlarc=''
10008 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10009 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10010 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10011 ;;
10012 *)
10013 wlarc='$wl'
10014 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10015 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10016 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10017 ;;
10018 esac
10019 fi
10020 hardcode_libdir_flag_spec='-R$libdir'
10021 hardcode_shlibpath_var=no
10022 case $host_os in
10023 solaris2.[0-5] | solaris2.[0-5].*) ;;
10024 *)
10025 # The compiler driver will combine and reorder linker options,
10026 # but understands '-z linker_flag'. GCC discards it without '$wl',
10027 # but is careful enough not to reorder.
10028 # Supported since Solaris 2.6 (maybe 2.5.1?)
10029 if test yes = "$GCC"; then
10030 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10031 else
10032 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10033 fi
10034 ;;
10035 esac
10036 link_all_deplibs=yes
10037 ;;
10038
10039 sunos4*)
10040 if test sequent = "$host_vendor"; then
10041 # Use $CC to link under sequent, because it throws in some extra .o
10042 # files that make .init and .fini sections work.
10043 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10044 else
10045 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10046 fi
10047 hardcode_libdir_flag_spec='-L$libdir'
10048 hardcode_direct=yes
10049 hardcode_minus_L=yes
10050 hardcode_shlibpath_var=no
10051 ;;
10052
10053 sysv4)
10054 case $host_vendor in
10055 sni)
10056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10057 hardcode_direct=yes # is this really true???
10058 ;;
10059 siemens)
10060 ## LD is ld it makes a PLAMLIB
10061 ## CC just makes a GrossModule.
10062 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10063 reload_cmds='$CC -r -o $output$reload_objs'
10064 hardcode_direct=no
10065 ;;
10066 motorola)
10067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10068 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10069 ;;
10070 esac
10071 runpath_var='LD_RUN_PATH'
10072 hardcode_shlibpath_var=no
10073 ;;
10074
10075 sysv4.3*)
10076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10077 hardcode_shlibpath_var=no
10078 export_dynamic_flag_spec='-Bexport'
10079 ;;
10080
10081 sysv4*MP*)
10082 if test -d /usr/nec; then
10083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10084 hardcode_shlibpath_var=no
10085 runpath_var=LD_RUN_PATH
10086 hardcode_runpath_var=yes
10087 ld_shlibs=yes
10088 fi
10089 ;;
10090
10091 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10092 no_undefined_flag='$wl-z,text'
10093 archive_cmds_need_lc=no
10094 hardcode_shlibpath_var=no
10095 runpath_var='LD_RUN_PATH'
10096
10097 if test yes = "$GCC"; then
10098 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10099 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10100 else
10101 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10102 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10103 fi
10104 ;;
10105
10106 sysv5* | sco3.2v5* | sco5v6*)
10107 # Note: We CANNOT use -z defs as we might desire, because we do not
10108 # link with -lc, and that would cause any symbols used from libc to
10109 # always be unresolved, which means just about no library would
10110 # ever link correctly. If we're not using GNU ld we use -z text
10111 # though, which does catch some bad symbols but isn't as heavy-handed
10112 # as -z defs.
10113 no_undefined_flag='$wl-z,text'
10114 allow_undefined_flag='$wl-z,nodefs'
10115 archive_cmds_need_lc=no
10116 hardcode_shlibpath_var=no
10117 hardcode_libdir_flag_spec='$wl-R,$libdir'
10118 hardcode_libdir_separator=':'
10119 link_all_deplibs=yes
10120 export_dynamic_flag_spec='$wl-Bexport'
10121 runpath_var='LD_RUN_PATH'
10122
10123 if test yes = "$GCC"; then
10124 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10125 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10126 else
10127 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10128 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10129 fi
10130 ;;
10131
10132 uts4*)
10133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10134 hardcode_libdir_flag_spec='-L$libdir'
10135 hardcode_shlibpath_var=no
10136 ;;
10137
10138 *)
10139 ld_shlibs=no
10140 ;;
10141 esac
10142
10143 if test sni = "$host_vendor"; then
10144 case $host in
10145 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10146 export_dynamic_flag_spec='$wl-Blargedynsym'
10147 ;;
10148 esac
10149 fi
10150 fi
10151
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10153 $as_echo "$ld_shlibs" >&6; }
10154 test no = "$ld_shlibs" && can_build_shared=no
10155
10156 with_gnu_ld=$with_gnu_ld
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172 #
10173 # Do we need to explicitly link libc?
10174 #
10175 case "x$archive_cmds_need_lc" in
10176 x|xyes)
10177 # Assume -lc should be added
10178 archive_cmds_need_lc=yes
10179
10180 if test yes,yes = "$GCC,$enable_shared"; then
10181 case $archive_cmds in
10182 *'~'*)
10183 # FIXME: we may have to deal with multi-command sequences.
10184 ;;
10185 '$CC '*)
10186 # Test whether the compiler implicitly links with -lc since on some
10187 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10188 # to ld, don't add -lc before -lgcc.
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10190 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10191 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10192 $as_echo_n "(cached) " >&6
10193 else
10194 $RM conftest*
10195 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10196
10197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10198 (eval $ac_compile) 2>&5
10199 ac_status=$?
10200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10201 test $ac_status = 0; } 2>conftest.err; then
10202 soname=conftest
10203 lib=conftest
10204 libobjs=conftest.$ac_objext
10205 deplibs=
10206 wl=$lt_prog_compiler_wl
10207 pic_flag=$lt_prog_compiler_pic
10208 compiler_flags=-v
10209 linker_flags=-v
10210 verstring=
10211 output_objdir=.
10212 libname=conftest
10213 lt_save_allow_undefined_flag=$allow_undefined_flag
10214 allow_undefined_flag=
10215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10216 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10217 ac_status=$?
10218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10219 test $ac_status = 0; }
10220 then
10221 lt_cv_archive_cmds_need_lc=no
10222 else
10223 lt_cv_archive_cmds_need_lc=yes
10224 fi
10225 allow_undefined_flag=$lt_save_allow_undefined_flag
10226 else
10227 cat conftest.err 1>&5
10228 fi
10229 $RM conftest*
10230
10231 fi
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10233 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10234 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10235 ;;
10236 esac
10237 fi
10238 ;;
10239 esac
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10393 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10394
10395 if test yes = "$GCC"; then
10396 case $host_os in
10397 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10398 *) lt_awk_arg='/^libraries:/' ;;
10399 esac
10400 case $host_os in
10401 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10402 *) lt_sed_strip_eq='s|=/|/|g' ;;
10403 esac
10404 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10405 case $lt_search_path_spec in
10406 *\;*)
10407 # if the path contains ";" then we assume it to be the separator
10408 # otherwise default to the standard path separator (i.e. ":") - it is
10409 # assumed that no part of a normal pathname contains ";" but that should
10410 # okay in the real world where ";" in dirpaths is itself problematic.
10411 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10412 ;;
10413 *)
10414 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10415 ;;
10416 esac
10417 # Ok, now we have the path, separated by spaces, we can step through it
10418 # and add multilib dir if necessary...
10419 lt_tmp_lt_search_path_spec=
10420 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10421 # ...but if some path component already ends with the multilib dir we assume
10422 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10423 case "$lt_multi_os_dir; $lt_search_path_spec " in
10424 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10425 lt_multi_os_dir=
10426 ;;
10427 esac
10428 for lt_sys_path in $lt_search_path_spec; do
10429 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10430 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10431 elif test -n "$lt_multi_os_dir"; then
10432 test -d "$lt_sys_path" && \
10433 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10434 fi
10435 done
10436 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10437 BEGIN {RS = " "; FS = "/|\n";} {
10438 lt_foo = "";
10439 lt_count = 0;
10440 for (lt_i = NF; lt_i > 0; lt_i--) {
10441 if ($lt_i != "" && $lt_i != ".") {
10442 if ($lt_i == "..") {
10443 lt_count++;
10444 } else {
10445 if (lt_count == 0) {
10446 lt_foo = "/" $lt_i lt_foo;
10447 } else {
10448 lt_count--;
10449 }
10450 }
10451 }
10452 }
10453 if (lt_foo != "") { lt_freq[lt_foo]++; }
10454 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10455 }'`
10456 # AWK program above erroneously prepends '/' to C:/dos/paths
10457 # for these hosts.
10458 case $host_os in
10459 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10460 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10461 esac
10462 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10463 else
10464 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10465 fi
10466 library_names_spec=
10467 libname_spec='lib$name'
10468 soname_spec=
10469 shrext_cmds=.so
10470 postinstall_cmds=
10471 postuninstall_cmds=
10472 finish_cmds=
10473 finish_eval=
10474 shlibpath_var=
10475 shlibpath_overrides_runpath=unknown
10476 version_type=none
10477 dynamic_linker="$host_os ld.so"
10478 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10479 need_lib_prefix=unknown
10480 hardcode_into_libs=no
10481
10482 # when you set need_version to no, make sure it does not cause -set_version
10483 # flags to be left without arguments
10484 need_version=unknown
10485
10486
10487
10488 case $host_os in
10489 aix3*)
10490 version_type=linux # correct to gnu/linux during the next big refactor
10491 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10492 shlibpath_var=LIBPATH
10493
10494 # AIX 3 has no versioning support, so we append a major version to the name.
10495 soname_spec='$libname$release$shared_ext$major'
10496 ;;
10497
10498 aix[4-9]*)
10499 version_type=linux # correct to gnu/linux during the next big refactor
10500 need_lib_prefix=no
10501 need_version=no
10502 hardcode_into_libs=yes
10503 if test ia64 = "$host_cpu"; then
10504 # AIX 5 supports IA64
10505 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10506 shlibpath_var=LD_LIBRARY_PATH
10507 else
10508 # With GCC up to 2.95.x, collect2 would create an import file
10509 # for dependence libraries. The import file would start with
10510 # the line '#! .'. This would cause the generated library to
10511 # depend on '.', always an invalid library. This was fixed in
10512 # development snapshots of GCC prior to 3.0.
10513 case $host_os in
10514 aix4 | aix4.[01] | aix4.[01].*)
10515 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10516 echo ' yes '
10517 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10518 :
10519 else
10520 can_build_shared=no
10521 fi
10522 ;;
10523 esac
10524 # Using Import Files as archive members, it is possible to support
10525 # filename-based versioning of shared library archives on AIX. While
10526 # this would work for both with and without runtime linking, it will
10527 # prevent static linking of such archives. So we do filename-based
10528 # shared library versioning with .so extension only, which is used
10529 # when both runtime linking and shared linking is enabled.
10530 # Unfortunately, runtime linking may impact performance, so we do
10531 # not want this to be the default eventually. Also, we use the
10532 # versioned .so libs for executables only if there is the -brtl
10533 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10534 # To allow for filename-based versioning support, we need to create
10535 # libNAME.so.V as an archive file, containing:
10536 # *) an Import File, referring to the versioned filename of the
10537 # archive as well as the shared archive member, telling the
10538 # bitwidth (32 or 64) of that shared object, and providing the
10539 # list of exported symbols of that shared object, eventually
10540 # decorated with the 'weak' keyword
10541 # *) the shared object with the F_LOADONLY flag set, to really avoid
10542 # it being seen by the linker.
10543 # At run time we better use the real file rather than another symlink,
10544 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10545
10546 case $with_aix_soname,$aix_use_runtimelinking in
10547 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10548 # soname into executable. Probably we can add versioning support to
10549 # collect2, so additional links can be useful in future.
10550 aix,yes) # traditional libtool
10551 dynamic_linker='AIX unversionable lib.so'
10552 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10553 # instead of lib<name>.a to let people know that these are not
10554 # typical AIX shared libraries.
10555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10556 ;;
10557 aix,no) # traditional AIX only
10558 dynamic_linker='AIX lib.a(lib.so.V)'
10559 # We preserve .a as extension for shared libraries through AIX4.2
10560 # and later when we are not doing run time linking.
10561 library_names_spec='$libname$release.a $libname.a'
10562 soname_spec='$libname$release$shared_ext$major'
10563 ;;
10564 svr4,*) # full svr4 only
10565 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10566 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10567 # We do not specify a path in Import Files, so LIBPATH fires.
10568 shlibpath_overrides_runpath=yes
10569 ;;
10570 *,yes) # both, prefer svr4
10571 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10572 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10573 # unpreferred sharedlib libNAME.a needs extra handling
10574 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10575 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10576 # We do not specify a path in Import Files, so LIBPATH fires.
10577 shlibpath_overrides_runpath=yes
10578 ;;
10579 *,no) # both, prefer aix
10580 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10581 library_names_spec='$libname$release.a $libname.a'
10582 soname_spec='$libname$release$shared_ext$major'
10583 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10584 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10585 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10586 ;;
10587 esac
10588 shlibpath_var=LIBPATH
10589 fi
10590 ;;
10591
10592 amigaos*)
10593 case $host_cpu in
10594 powerpc)
10595 # Since July 2007 AmigaOS4 officially supports .so libraries.
10596 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10598 ;;
10599 m68k)
10600 library_names_spec='$libname.ixlibrary $libname.a'
10601 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10602 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10603 ;;
10604 esac
10605 ;;
10606
10607 beos*)
10608 library_names_spec='$libname$shared_ext'
10609 dynamic_linker="$host_os ld.so"
10610 shlibpath_var=LIBRARY_PATH
10611 ;;
10612
10613 bsdi[45]*)
10614 version_type=linux # correct to gnu/linux during the next big refactor
10615 need_version=no
10616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10617 soname_spec='$libname$release$shared_ext$major'
10618 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10619 shlibpath_var=LD_LIBRARY_PATH
10620 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10621 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10622 # the default ld.so.conf also contains /usr/contrib/lib and
10623 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10624 # libtool to hard-code these into programs
10625 ;;
10626
10627 cygwin* | mingw* | pw32* | cegcc*)
10628 version_type=windows
10629 shrext_cmds=.dll
10630 need_version=no
10631 need_lib_prefix=no
10632
10633 case $GCC,$cc_basename in
10634 yes,*)
10635 # gcc
10636 library_names_spec='$libname.dll.a'
10637 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10638 postinstall_cmds='base_file=`basename \$file`~
10639 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10640 dldir=$destdir/`dirname \$dlpath`~
10641 test -d \$dldir || mkdir -p \$dldir~
10642 $install_prog $dir/$dlname \$dldir/$dlname~
10643 chmod a+x \$dldir/$dlname~
10644 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10645 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10646 fi'
10647 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10648 dlpath=$dir/\$dldll~
10649 $RM \$dlpath'
10650 shlibpath_overrides_runpath=yes
10651
10652 case $host_os in
10653 cygwin*)
10654 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10655 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10656
10657 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10658 ;;
10659 mingw* | cegcc*)
10660 # MinGW DLLs use traditional 'lib' prefix
10661 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10662 ;;
10663 pw32*)
10664 # pw32 DLLs use 'pw' prefix rather than 'lib'
10665 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10666 ;;
10667 esac
10668 dynamic_linker='Win32 ld.exe'
10669 ;;
10670
10671 *,cl*)
10672 # Native MSVC
10673 libname_spec='$name'
10674 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10675 library_names_spec='$libname.dll.lib'
10676
10677 case $build_os in
10678 mingw*)
10679 sys_lib_search_path_spec=
10680 lt_save_ifs=$IFS
10681 IFS=';'
10682 for lt_path in $LIB
10683 do
10684 IFS=$lt_save_ifs
10685 # Let DOS variable expansion print the short 8.3 style file name.
10686 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10687 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10688 done
10689 IFS=$lt_save_ifs
10690 # Convert to MSYS style.
10691 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10692 ;;
10693 cygwin*)
10694 # Convert to unix form, then to dos form, then back to unix form
10695 # but this time dos style (no spaces!) so that the unix form looks
10696 # like /cygdrive/c/PROGRA~1:/cygdr...
10697 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10698 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10699 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10700 ;;
10701 *)
10702 sys_lib_search_path_spec=$LIB
10703 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10704 # It is most probably a Windows format PATH.
10705 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10706 else
10707 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10708 fi
10709 # FIXME: find the short name or the path components, as spaces are
10710 # common. (e.g. "Program Files" -> "PROGRA~1")
10711 ;;
10712 esac
10713
10714 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10715 postinstall_cmds='base_file=`basename \$file`~
10716 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10717 dldir=$destdir/`dirname \$dlpath`~
10718 test -d \$dldir || mkdir -p \$dldir~
10719 $install_prog $dir/$dlname \$dldir/$dlname'
10720 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10721 dlpath=$dir/\$dldll~
10722 $RM \$dlpath'
10723 shlibpath_overrides_runpath=yes
10724 dynamic_linker='Win32 link.exe'
10725 ;;
10726
10727 *)
10728 # Assume MSVC wrapper
10729 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10730 dynamic_linker='Win32 ld.exe'
10731 ;;
10732 esac
10733 # FIXME: first we should search . and the directory the executable is in
10734 shlibpath_var=PATH
10735 ;;
10736
10737 darwin* | rhapsody*)
10738 dynamic_linker="$host_os dyld"
10739 version_type=darwin
10740 need_lib_prefix=no
10741 need_version=no
10742 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10743 soname_spec='$libname$release$major$shared_ext'
10744 shlibpath_overrides_runpath=yes
10745 shlibpath_var=DYLD_LIBRARY_PATH
10746 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10747
10748 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10749 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10750 ;;
10751
10752 dgux*)
10753 version_type=linux # correct to gnu/linux during the next big refactor
10754 need_lib_prefix=no
10755 need_version=no
10756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10757 soname_spec='$libname$release$shared_ext$major'
10758 shlibpath_var=LD_LIBRARY_PATH
10759 ;;
10760
10761 freebsd* | dragonfly*)
10762 # DragonFly does not have aout. When/if they implement a new
10763 # versioning mechanism, adjust this.
10764 if test -x /usr/bin/objformat; then
10765 objformat=`/usr/bin/objformat`
10766 else
10767 case $host_os in
10768 freebsd[23].*) objformat=aout ;;
10769 *) objformat=elf ;;
10770 esac
10771 fi
10772 version_type=freebsd-$objformat
10773 case $version_type in
10774 freebsd-elf*)
10775 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10776 soname_spec='$libname$release$shared_ext$major'
10777 need_version=no
10778 need_lib_prefix=no
10779 ;;
10780 freebsd-*)
10781 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10782 need_version=yes
10783 ;;
10784 esac
10785 shlibpath_var=LD_LIBRARY_PATH
10786 case $host_os in
10787 freebsd2.*)
10788 shlibpath_overrides_runpath=yes
10789 ;;
10790 freebsd3.[01]* | freebsdelf3.[01]*)
10791 shlibpath_overrides_runpath=yes
10792 hardcode_into_libs=yes
10793 ;;
10794 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10795 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10796 shlibpath_overrides_runpath=no
10797 hardcode_into_libs=yes
10798 ;;
10799 *) # from 4.6 on, and DragonFly
10800 shlibpath_overrides_runpath=yes
10801 hardcode_into_libs=yes
10802 ;;
10803 esac
10804 ;;
10805
10806 haiku*)
10807 version_type=linux # correct to gnu/linux during the next big refactor
10808 need_lib_prefix=no
10809 need_version=no
10810 dynamic_linker="$host_os runtime_loader"
10811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10812 soname_spec='$libname$release$shared_ext$major'
10813 shlibpath_var=LIBRARY_PATH
10814 shlibpath_overrides_runpath=no
10815 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10816 hardcode_into_libs=yes
10817 ;;
10818
10819 hpux9* | hpux10* | hpux11*)
10820 # Give a soname corresponding to the major version so that dld.sl refuses to
10821 # link against other versions.
10822 version_type=sunos
10823 need_lib_prefix=no
10824 need_version=no
10825 case $host_cpu in
10826 ia64*)
10827 shrext_cmds='.so'
10828 hardcode_into_libs=yes
10829 dynamic_linker="$host_os dld.so"
10830 shlibpath_var=LD_LIBRARY_PATH
10831 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10832 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10833 soname_spec='$libname$release$shared_ext$major'
10834 if test 32 = "$HPUX_IA64_MODE"; then
10835 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10836 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10837 else
10838 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10839 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10840 fi
10841 ;;
10842 hppa*64*)
10843 shrext_cmds='.sl'
10844 hardcode_into_libs=yes
10845 dynamic_linker="$host_os dld.sl"
10846 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10847 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10849 soname_spec='$libname$release$shared_ext$major'
10850 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10851 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10852 ;;
10853 *)
10854 shrext_cmds='.sl'
10855 dynamic_linker="$host_os dld.sl"
10856 shlibpath_var=SHLIB_PATH
10857 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10858 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10859 soname_spec='$libname$release$shared_ext$major'
10860 ;;
10861 esac
10862 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10863 postinstall_cmds='chmod 555 $lib'
10864 # or fails outright, so override atomically:
10865 install_override_mode=555
10866 ;;
10867
10868 interix[3-9]*)
10869 version_type=linux # correct to gnu/linux during the next big refactor
10870 need_lib_prefix=no
10871 need_version=no
10872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10873 soname_spec='$libname$release$shared_ext$major'
10874 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10875 shlibpath_var=LD_LIBRARY_PATH
10876 shlibpath_overrides_runpath=no
10877 hardcode_into_libs=yes
10878 ;;
10879
10880 irix5* | irix6* | nonstopux*)
10881 case $host_os in
10882 nonstopux*) version_type=nonstopux ;;
10883 *)
10884 if test yes = "$lt_cv_prog_gnu_ld"; then
10885 version_type=linux # correct to gnu/linux during the next big refactor
10886 else
10887 version_type=irix
10888 fi ;;
10889 esac
10890 need_lib_prefix=no
10891 need_version=no
10892 soname_spec='$libname$release$shared_ext$major'
10893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10894 case $host_os in
10895 irix5* | nonstopux*)
10896 libsuff= shlibsuff=
10897 ;;
10898 *)
10899 case $LD in # libtool.m4 will add one of these switches to LD
10900 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10901 libsuff= shlibsuff= libmagic=32-bit;;
10902 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10903 libsuff=32 shlibsuff=N32 libmagic=N32;;
10904 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10905 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10906 *) libsuff= shlibsuff= libmagic=never-match;;
10907 esac
10908 ;;
10909 esac
10910 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10911 shlibpath_overrides_runpath=no
10912 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10913 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10914 hardcode_into_libs=yes
10915 ;;
10916
10917 # No shared lib support for Linux oldld, aout, or coff.
10918 linux*oldld* | linux*aout* | linux*coff*)
10919 dynamic_linker=no
10920 ;;
10921
10922 linux*android*)
10923 version_type=none # Android doesn't support versioned libraries.
10924 need_lib_prefix=no
10925 need_version=no
10926 library_names_spec='$libname$release$shared_ext'
10927 soname_spec='$libname$release$shared_ext'
10928 finish_cmds=
10929 shlibpath_var=LD_LIBRARY_PATH
10930 shlibpath_overrides_runpath=yes
10931
10932 # This implies no fast_install, which is unacceptable.
10933 # Some rework will be needed to allow for fast_install
10934 # before this can be enabled.
10935 hardcode_into_libs=yes
10936
10937 dynamic_linker='Android linker'
10938 # Don't embed -rpath directories since the linker doesn't support them.
10939 hardcode_libdir_flag_spec='-L$libdir'
10940 ;;
10941
10942 # This must be glibc/ELF.
10943 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10944 version_type=linux # correct to gnu/linux during the next big refactor
10945 need_lib_prefix=no
10946 need_version=no
10947 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10948 soname_spec='$libname$release$shared_ext$major'
10949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10950 shlibpath_var=LD_LIBRARY_PATH
10951 shlibpath_overrides_runpath=no
10952
10953 # Some binutils ld are patched to set DT_RUNPATH
10954 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10955 $as_echo_n "(cached) " >&6
10956 else
10957 lt_cv_shlibpath_overrides_runpath=no
10958 save_LDFLAGS=$LDFLAGS
10959 save_libdir=$libdir
10960 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10961 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10963 /* end confdefs.h. */
10964
10965 int
10966 main ()
10967 {
10968
10969 ;
10970 return 0;
10971 }
10972 _ACEOF
10973 if ac_fn_c_try_link "$LINENO"; then :
10974 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10975 lt_cv_shlibpath_overrides_runpath=yes
10976 fi
10977 fi
10978 rm -f core conftest.err conftest.$ac_objext \
10979 conftest$ac_exeext conftest.$ac_ext
10980 LDFLAGS=$save_LDFLAGS
10981 libdir=$save_libdir
10982
10983 fi
10984
10985 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10986
10987 # This implies no fast_install, which is unacceptable.
10988 # Some rework will be needed to allow for fast_install
10989 # before this can be enabled.
10990 hardcode_into_libs=yes
10991
10992 # Ideally, we could use ldconfig to report *all* directores which are
10993 # searched for libraries, however this is still not possible. Aside from not
10994 # being certain /sbin/ldconfig is available, command
10995 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10996 # even though it is searched at run-time. Try to do the best guess by
10997 # appending ld.so.conf contents (and includes) to the search path.
10998 if test -f /etc/ld.so.conf; then
10999 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' ' '`
11000 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11001 fi
11002
11003 # We used to test for /lib/ld.so.1 and disable shared libraries on
11004 # powerpc, because MkLinux only supported shared libraries with the
11005 # GNU dynamic linker. Since this was broken with cross compilers,
11006 # most powerpc-linux boxes support dynamic linking these days and
11007 # people can always --disable-shared, the test was removed, and we
11008 # assume the GNU/Linux dynamic linker is in use.
11009 dynamic_linker='GNU/Linux ld.so'
11010 ;;
11011
11012 netbsdelf*-gnu)
11013 version_type=linux
11014 need_lib_prefix=no
11015 need_version=no
11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11017 soname_spec='${libname}${release}${shared_ext}$major'
11018 shlibpath_var=LD_LIBRARY_PATH
11019 shlibpath_overrides_runpath=no
11020 hardcode_into_libs=yes
11021 dynamic_linker='NetBSD ld.elf_so'
11022 ;;
11023
11024 netbsd*)
11025 version_type=sunos
11026 need_lib_prefix=no
11027 need_version=no
11028 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11029 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11031 dynamic_linker='NetBSD (a.out) ld.so'
11032 else
11033 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11034 soname_spec='$libname$release$shared_ext$major'
11035 dynamic_linker='NetBSD ld.elf_so'
11036 fi
11037 shlibpath_var=LD_LIBRARY_PATH
11038 shlibpath_overrides_runpath=yes
11039 hardcode_into_libs=yes
11040 ;;
11041
11042 newsos6)
11043 version_type=linux # correct to gnu/linux during the next big refactor
11044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11045 shlibpath_var=LD_LIBRARY_PATH
11046 shlibpath_overrides_runpath=yes
11047 ;;
11048
11049 *nto* | *qnx*)
11050 version_type=qnx
11051 need_lib_prefix=no
11052 need_version=no
11053 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11054 soname_spec='$libname$release$shared_ext$major'
11055 shlibpath_var=LD_LIBRARY_PATH
11056 shlibpath_overrides_runpath=no
11057 hardcode_into_libs=yes
11058 dynamic_linker='ldqnx.so'
11059 ;;
11060
11061 openbsd* | bitrig*)
11062 version_type=sunos
11063 sys_lib_dlsearch_path_spec=/usr/lib
11064 need_lib_prefix=no
11065 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11066 need_version=no
11067 else
11068 need_version=yes
11069 fi
11070 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11072 shlibpath_var=LD_LIBRARY_PATH
11073 shlibpath_overrides_runpath=yes
11074 ;;
11075
11076 os2*)
11077 libname_spec='$name'
11078 version_type=windows
11079 shrext_cmds=.dll
11080 need_version=no
11081 need_lib_prefix=no
11082 # OS/2 can only load a DLL with a base name of 8 characters or less.
11083 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11084 v=$($ECHO $release$versuffix | tr -d .-);
11085 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11086 $ECHO $n$v`$shared_ext'
11087 library_names_spec='${libname}_dll.$libext'
11088 dynamic_linker='OS/2 ld.exe'
11089 shlibpath_var=BEGINLIBPATH
11090 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11091 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11092 postinstall_cmds='base_file=`basename \$file`~
11093 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11094 dldir=$destdir/`dirname \$dlpath`~
11095 test -d \$dldir || mkdir -p \$dldir~
11096 $install_prog $dir/$dlname \$dldir/$dlname~
11097 chmod a+x \$dldir/$dlname~
11098 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11099 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11100 fi'
11101 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11102 dlpath=$dir/\$dldll~
11103 $RM \$dlpath'
11104 ;;
11105
11106 osf3* | osf4* | osf5*)
11107 version_type=osf
11108 need_lib_prefix=no
11109 need_version=no
11110 soname_spec='$libname$release$shared_ext$major'
11111 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11112 shlibpath_var=LD_LIBRARY_PATH
11113 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11114 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11115 ;;
11116
11117 rdos*)
11118 dynamic_linker=no
11119 ;;
11120
11121 solaris*)
11122 version_type=linux # correct to gnu/linux during the next big refactor
11123 need_lib_prefix=no
11124 need_version=no
11125 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11126 soname_spec='$libname$release$shared_ext$major'
11127 shlibpath_var=LD_LIBRARY_PATH
11128 shlibpath_overrides_runpath=yes
11129 hardcode_into_libs=yes
11130 # ldd complains unless libraries are executable
11131 postinstall_cmds='chmod +x $lib'
11132 ;;
11133
11134 sunos4*)
11135 version_type=sunos
11136 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11137 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11138 shlibpath_var=LD_LIBRARY_PATH
11139 shlibpath_overrides_runpath=yes
11140 if test yes = "$with_gnu_ld"; then
11141 need_lib_prefix=no
11142 fi
11143 need_version=yes
11144 ;;
11145
11146 sysv4 | sysv4.3*)
11147 version_type=linux # correct to gnu/linux during the next big refactor
11148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11149 soname_spec='$libname$release$shared_ext$major'
11150 shlibpath_var=LD_LIBRARY_PATH
11151 case $host_vendor in
11152 sni)
11153 shlibpath_overrides_runpath=no
11154 need_lib_prefix=no
11155 runpath_var=LD_RUN_PATH
11156 ;;
11157 siemens)
11158 need_lib_prefix=no
11159 ;;
11160 motorola)
11161 need_lib_prefix=no
11162 need_version=no
11163 shlibpath_overrides_runpath=no
11164 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11165 ;;
11166 esac
11167 ;;
11168
11169 sysv4*MP*)
11170 if test -d /usr/nec; then
11171 version_type=linux # correct to gnu/linux during the next big refactor
11172 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11173 soname_spec='$libname$shared_ext.$major'
11174 shlibpath_var=LD_LIBRARY_PATH
11175 fi
11176 ;;
11177
11178 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11179 version_type=sco
11180 need_lib_prefix=no
11181 need_version=no
11182 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11183 soname_spec='$libname$release$shared_ext$major'
11184 shlibpath_var=LD_LIBRARY_PATH
11185 shlibpath_overrides_runpath=yes
11186 hardcode_into_libs=yes
11187 if test yes = "$with_gnu_ld"; then
11188 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11189 else
11190 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11191 case $host_os in
11192 sco3.2v5*)
11193 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11194 ;;
11195 esac
11196 fi
11197 sys_lib_dlsearch_path_spec='/usr/lib'
11198 ;;
11199
11200 tpf*)
11201 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11202 version_type=linux # correct to gnu/linux during the next big refactor
11203 need_lib_prefix=no
11204 need_version=no
11205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11206 shlibpath_var=LD_LIBRARY_PATH
11207 shlibpath_overrides_runpath=no
11208 hardcode_into_libs=yes
11209 ;;
11210
11211 uts4*)
11212 version_type=linux # correct to gnu/linux during the next big refactor
11213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11214 soname_spec='$libname$release$shared_ext$major'
11215 shlibpath_var=LD_LIBRARY_PATH
11216 ;;
11217
11218 *)
11219 dynamic_linker=no
11220 ;;
11221 esac
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11223 $as_echo "$dynamic_linker" >&6; }
11224 test no = "$dynamic_linker" && can_build_shared=no
11225
11226 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11227 if test yes = "$GCC"; then
11228 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11229 fi
11230
11231 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11232 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11233 fi
11234
11235 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11236 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11237 fi
11238
11239 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11240 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11241
11242 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11243 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11244
11245 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11246 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11345 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11346 hardcode_action=
11347 if test -n "$hardcode_libdir_flag_spec" ||
11348 test -n "$runpath_var" ||
11349 test yes = "$hardcode_automatic"; then
11350
11351 # We can hardcode non-existent directories.
11352 if test no != "$hardcode_direct" &&
11353 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11354 # have to relink, otherwise we might link with an installed library
11355 # when we should be linking with a yet-to-be-installed one
11356 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11357 test no != "$hardcode_minus_L"; then
11358 # Linking always hardcodes the temporary library directory.
11359 hardcode_action=relink
11360 else
11361 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11362 hardcode_action=immediate
11363 fi
11364 else
11365 # We cannot hardcode anything, or else we can only hardcode existing
11366 # directories.
11367 hardcode_action=unsupported
11368 fi
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11370 $as_echo "$hardcode_action" >&6; }
11371
11372 if test relink = "$hardcode_action" ||
11373 test yes = "$inherit_rpath"; then
11374 # Fast installation is not supported
11375 enable_fast_install=no
11376 elif test yes = "$shlibpath_overrides_runpath" ||
11377 test no = "$enable_shared"; then
11378 # Fast installation is not necessary
11379 enable_fast_install=needless
11380 fi
11381
11382
11383
11384
11385
11386
11387 if test yes != "$enable_dlopen"; then
11388 enable_dlopen=unknown
11389 enable_dlopen_self=unknown
11390 enable_dlopen_self_static=unknown
11391 else
11392 lt_cv_dlopen=no
11393 lt_cv_dlopen_libs=
11394
11395 case $host_os in
11396 beos*)
11397 lt_cv_dlopen=load_add_on
11398 lt_cv_dlopen_libs=
11399 lt_cv_dlopen_self=yes
11400 ;;
11401
11402 mingw* | pw32* | cegcc*)
11403 lt_cv_dlopen=LoadLibrary
11404 lt_cv_dlopen_libs=
11405 ;;
11406
11407 cygwin*)
11408 lt_cv_dlopen=dlopen
11409 lt_cv_dlopen_libs=
11410 ;;
11411
11412 darwin*)
11413 # if libdl is installed we need to link against it
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11415 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11416 if ${ac_cv_lib_dl_dlopen+:} false; then :
11417 $as_echo_n "(cached) " >&6
11418 else
11419 ac_check_lib_save_LIBS=$LIBS
11420 LIBS="-ldl $LIBS"
11421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h. */
11423
11424 /* Override any GCC internal prototype to avoid an error.
11425 Use char because int might match the return type of a GCC
11426 builtin and then its argument prototype would still apply. */
11427 #ifdef __cplusplus
11428 extern "C"
11429 #endif
11430 char dlopen ();
11431 int
11432 main ()
11433 {
11434 return dlopen ();
11435 ;
11436 return 0;
11437 }
11438 _ACEOF
11439 if ac_fn_c_try_link "$LINENO"; then :
11440 ac_cv_lib_dl_dlopen=yes
11441 else
11442 ac_cv_lib_dl_dlopen=no
11443 fi
11444 rm -f core conftest.err conftest.$ac_objext \
11445 conftest$ac_exeext conftest.$ac_ext
11446 LIBS=$ac_check_lib_save_LIBS
11447 fi
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11449 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11450 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11451 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11452 else
11453
11454 lt_cv_dlopen=dyld
11455 lt_cv_dlopen_libs=
11456 lt_cv_dlopen_self=yes
11457
11458 fi
11459
11460 ;;
11461
11462 tpf*)
11463 # Don't try to run any link tests for TPF. We know it's impossible
11464 # because TPF is a cross-compiler, and we know how we open DSOs.
11465 lt_cv_dlopen=dlopen
11466 lt_cv_dlopen_libs=
11467 lt_cv_dlopen_self=no
11468 ;;
11469
11470 *)
11471 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11472 if test "x$ac_cv_func_shl_load" = xyes; then :
11473 lt_cv_dlopen=shl_load
11474 else
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11476 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11477 if ${ac_cv_lib_dld_shl_load+:} false; then :
11478 $as_echo_n "(cached) " >&6
11479 else
11480 ac_check_lib_save_LIBS=$LIBS
11481 LIBS="-ldld $LIBS"
11482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11483 /* end confdefs.h. */
11484
11485 /* Override any GCC internal prototype to avoid an error.
11486 Use char because int might match the return type of a GCC
11487 builtin and then its argument prototype would still apply. */
11488 #ifdef __cplusplus
11489 extern "C"
11490 #endif
11491 char shl_load ();
11492 int
11493 main ()
11494 {
11495 return shl_load ();
11496 ;
11497 return 0;
11498 }
11499 _ACEOF
11500 if ac_fn_c_try_link "$LINENO"; then :
11501 ac_cv_lib_dld_shl_load=yes
11502 else
11503 ac_cv_lib_dld_shl_load=no
11504 fi
11505 rm -f core conftest.err conftest.$ac_objext \
11506 conftest$ac_exeext conftest.$ac_ext
11507 LIBS=$ac_check_lib_save_LIBS
11508 fi
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11510 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11511 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11512 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11513 else
11514 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11515 if test "x$ac_cv_func_dlopen" = xyes; then :
11516 lt_cv_dlopen=dlopen
11517 else
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11519 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11520 if ${ac_cv_lib_dl_dlopen+:} false; then :
11521 $as_echo_n "(cached) " >&6
11522 else
11523 ac_check_lib_save_LIBS=$LIBS
11524 LIBS="-ldl $LIBS"
11525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11526 /* end confdefs.h. */
11527
11528 /* Override any GCC internal prototype to avoid an error.
11529 Use char because int might match the return type of a GCC
11530 builtin and then its argument prototype would still apply. */
11531 #ifdef __cplusplus
11532 extern "C"
11533 #endif
11534 char dlopen ();
11535 int
11536 main ()
11537 {
11538 return dlopen ();
11539 ;
11540 return 0;
11541 }
11542 _ACEOF
11543 if ac_fn_c_try_link "$LINENO"; then :
11544 ac_cv_lib_dl_dlopen=yes
11545 else
11546 ac_cv_lib_dl_dlopen=no
11547 fi
11548 rm -f core conftest.err conftest.$ac_objext \
11549 conftest$ac_exeext conftest.$ac_ext
11550 LIBS=$ac_check_lib_save_LIBS
11551 fi
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11553 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11554 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11555 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11556 else
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11558 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11559 if ${ac_cv_lib_svld_dlopen+:} false; then :
11560 $as_echo_n "(cached) " >&6
11561 else
11562 ac_check_lib_save_LIBS=$LIBS
11563 LIBS="-lsvld $LIBS"
11564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11565 /* end confdefs.h. */
11566
11567 /* Override any GCC internal prototype to avoid an error.
11568 Use char because int might match the return type of a GCC
11569 builtin and then its argument prototype would still apply. */
11570 #ifdef __cplusplus
11571 extern "C"
11572 #endif
11573 char dlopen ();
11574 int
11575 main ()
11576 {
11577 return dlopen ();
11578 ;
11579 return 0;
11580 }
11581 _ACEOF
11582 if ac_fn_c_try_link "$LINENO"; then :
11583 ac_cv_lib_svld_dlopen=yes
11584 else
11585 ac_cv_lib_svld_dlopen=no
11586 fi
11587 rm -f core conftest.err conftest.$ac_objext \
11588 conftest$ac_exeext conftest.$ac_ext
11589 LIBS=$ac_check_lib_save_LIBS
11590 fi
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11592 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11593 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11594 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11595 else
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11597 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11598 if ${ac_cv_lib_dld_dld_link+:} false; then :
11599 $as_echo_n "(cached) " >&6
11600 else
11601 ac_check_lib_save_LIBS=$LIBS
11602 LIBS="-ldld $LIBS"
11603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11604 /* end confdefs.h. */
11605
11606 /* Override any GCC internal prototype to avoid an error.
11607 Use char because int might match the return type of a GCC
11608 builtin and then its argument prototype would still apply. */
11609 #ifdef __cplusplus
11610 extern "C"
11611 #endif
11612 char dld_link ();
11613 int
11614 main ()
11615 {
11616 return dld_link ();
11617 ;
11618 return 0;
11619 }
11620 _ACEOF
11621 if ac_fn_c_try_link "$LINENO"; then :
11622 ac_cv_lib_dld_dld_link=yes
11623 else
11624 ac_cv_lib_dld_dld_link=no
11625 fi
11626 rm -f core conftest.err conftest.$ac_objext \
11627 conftest$ac_exeext conftest.$ac_ext
11628 LIBS=$ac_check_lib_save_LIBS
11629 fi
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11631 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11632 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11633 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11634 fi
11635
11636
11637 fi
11638
11639
11640 fi
11641
11642
11643 fi
11644
11645
11646 fi
11647
11648
11649 fi
11650
11651 ;;
11652 esac
11653
11654 if test no = "$lt_cv_dlopen"; then
11655 enable_dlopen=no
11656 else
11657 enable_dlopen=yes
11658 fi
11659
11660 case $lt_cv_dlopen in
11661 dlopen)
11662 save_CPPFLAGS=$CPPFLAGS
11663 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11664
11665 save_LDFLAGS=$LDFLAGS
11666 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11667
11668 save_LIBS=$LIBS
11669 LIBS="$lt_cv_dlopen_libs $LIBS"
11670
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11672 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11673 if ${lt_cv_dlopen_self+:} false; then :
11674 $as_echo_n "(cached) " >&6
11675 else
11676 if test yes = "$cross_compiling"; then :
11677 lt_cv_dlopen_self=cross
11678 else
11679 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11680 lt_status=$lt_dlunknown
11681 cat > conftest.$ac_ext <<_LT_EOF
11682 #line $LINENO "configure"
11683 #include "confdefs.h"
11684
11685 #if HAVE_DLFCN_H
11686 #include <dlfcn.h>
11687 #endif
11688
11689 #include <stdio.h>
11690
11691 #ifdef RTLD_GLOBAL
11692 # define LT_DLGLOBAL RTLD_GLOBAL
11693 #else
11694 # ifdef DL_GLOBAL
11695 # define LT_DLGLOBAL DL_GLOBAL
11696 # else
11697 # define LT_DLGLOBAL 0
11698 # endif
11699 #endif
11700
11701 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11702 find out it does not work in some platform. */
11703 #ifndef LT_DLLAZY_OR_NOW
11704 # ifdef RTLD_LAZY
11705 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11706 # else
11707 # ifdef DL_LAZY
11708 # define LT_DLLAZY_OR_NOW DL_LAZY
11709 # else
11710 # ifdef RTLD_NOW
11711 # define LT_DLLAZY_OR_NOW RTLD_NOW
11712 # else
11713 # ifdef DL_NOW
11714 # define LT_DLLAZY_OR_NOW DL_NOW
11715 # else
11716 # define LT_DLLAZY_OR_NOW 0
11717 # endif
11718 # endif
11719 # endif
11720 # endif
11721 #endif
11722
11723 /* When -fvisibility=hidden is used, assume the code has been annotated
11724 correspondingly for the symbols needed. */
11725 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11726 int fnord () __attribute__((visibility("default")));
11727 #endif
11728
11729 int fnord () { return 42; }
11730 int main ()
11731 {
11732 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11733 int status = $lt_dlunknown;
11734
11735 if (self)
11736 {
11737 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11738 else
11739 {
11740 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11741 else puts (dlerror ());
11742 }
11743 /* dlclose (self); */
11744 }
11745 else
11746 puts (dlerror ());
11747
11748 return status;
11749 }
11750 _LT_EOF
11751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11752 (eval $ac_link) 2>&5
11753 ac_status=$?
11754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11755 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11756 (./conftest; exit; ) >&5 2>/dev/null
11757 lt_status=$?
11758 case x$lt_status in
11759 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11760 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11761 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11762 esac
11763 else :
11764 # compilation failed
11765 lt_cv_dlopen_self=no
11766 fi
11767 fi
11768 rm -fr conftest*
11769
11770
11771 fi
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11773 $as_echo "$lt_cv_dlopen_self" >&6; }
11774
11775 if test yes = "$lt_cv_dlopen_self"; then
11776 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11778 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11779 if ${lt_cv_dlopen_self_static+:} false; then :
11780 $as_echo_n "(cached) " >&6
11781 else
11782 if test yes = "$cross_compiling"; then :
11783 lt_cv_dlopen_self_static=cross
11784 else
11785 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11786 lt_status=$lt_dlunknown
11787 cat > conftest.$ac_ext <<_LT_EOF
11788 #line $LINENO "configure"
11789 #include "confdefs.h"
11790
11791 #if HAVE_DLFCN_H
11792 #include <dlfcn.h>
11793 #endif
11794
11795 #include <stdio.h>
11796
11797 #ifdef RTLD_GLOBAL
11798 # define LT_DLGLOBAL RTLD_GLOBAL
11799 #else
11800 # ifdef DL_GLOBAL
11801 # define LT_DLGLOBAL DL_GLOBAL
11802 # else
11803 # define LT_DLGLOBAL 0
11804 # endif
11805 #endif
11806
11807 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11808 find out it does not work in some platform. */
11809 #ifndef LT_DLLAZY_OR_NOW
11810 # ifdef RTLD_LAZY
11811 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11812 # else
11813 # ifdef DL_LAZY
11814 # define LT_DLLAZY_OR_NOW DL_LAZY
11815 # else
11816 # ifdef RTLD_NOW
11817 # define LT_DLLAZY_OR_NOW RTLD_NOW
11818 # else
11819 # ifdef DL_NOW
11820 # define LT_DLLAZY_OR_NOW DL_NOW
11821 # else
11822 # define LT_DLLAZY_OR_NOW 0
11823 # endif
11824 # endif
11825 # endif
11826 # endif
11827 #endif
11828
11829 /* When -fvisibility=hidden is used, assume the code has been annotated
11830 correspondingly for the symbols needed. */
11831 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11832 int fnord () __attribute__((visibility("default")));
11833 #endif
11834
11835 int fnord () { return 42; }
11836 int main ()
11837 {
11838 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11839 int status = $lt_dlunknown;
11840
11841 if (self)
11842 {
11843 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11844 else
11845 {
11846 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11847 else puts (dlerror ());
11848 }
11849 /* dlclose (self); */
11850 }
11851 else
11852 puts (dlerror ());
11853
11854 return status;
11855 }
11856 _LT_EOF
11857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11858 (eval $ac_link) 2>&5
11859 ac_status=$?
11860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11861 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11862 (./conftest; exit; ) >&5 2>/dev/null
11863 lt_status=$?
11864 case x$lt_status in
11865 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11866 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11867 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11868 esac
11869 else :
11870 # compilation failed
11871 lt_cv_dlopen_self_static=no
11872 fi
11873 fi
11874 rm -fr conftest*
11875
11876
11877 fi
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11879 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11880 fi
11881
11882 CPPFLAGS=$save_CPPFLAGS
11883 LDFLAGS=$save_LDFLAGS
11884 LIBS=$save_LIBS
11885 ;;
11886 esac
11887
11888 case $lt_cv_dlopen_self in
11889 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11890 *) enable_dlopen_self=unknown ;;
11891 esac
11892
11893 case $lt_cv_dlopen_self_static in
11894 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11895 *) enable_dlopen_self_static=unknown ;;
11896 esac
11897 fi
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915 striplib=
11916 old_striplib=
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11918 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11919 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11920 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11921 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11923 $as_echo "yes" >&6; }
11924 else
11925 # FIXME - insert some real tests, host_os isn't really good enough
11926 case $host_os in
11927 darwin*)
11928 if test -n "$STRIP"; then
11929 striplib="$STRIP -x"
11930 old_striplib="$STRIP -S"
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11932 $as_echo "yes" >&6; }
11933 else
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935 $as_echo "no" >&6; }
11936 fi
11937 ;;
11938 *)
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940 $as_echo "no" >&6; }
11941 ;;
11942 esac
11943 fi
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956 # Report what library types will actually be built
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11958 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11960 $as_echo "$can_build_shared" >&6; }
11961
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11963 $as_echo_n "checking whether to build shared libraries... " >&6; }
11964 test no = "$can_build_shared" && enable_shared=no
11965
11966 # On AIX, shared libraries and static libraries use the same namespace, and
11967 # are all built from PIC.
11968 case $host_os in
11969 aix3*)
11970 test yes = "$enable_shared" && enable_static=no
11971 if test -n "$RANLIB"; then
11972 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11973 postinstall_cmds='$RANLIB $lib'
11974 fi
11975 ;;
11976
11977 aix[4-9]*)
11978 if test ia64 != "$host_cpu"; then
11979 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11980 yes,aix,yes) ;; # shared object as lib.so file only
11981 yes,svr4,*) ;; # shared object as lib.so archive member only
11982 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11983 esac
11984 fi
11985 ;;
11986 esac
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11988 $as_echo "$enable_shared" >&6; }
11989
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11991 $as_echo_n "checking whether to build static libraries... " >&6; }
11992 # Make sure either enable_shared or enable_static is yes.
11993 test yes = "$enable_shared" || enable_static=yes
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11995 $as_echo "$enable_static" >&6; }
11996
11997
11998
11999
12000 fi
12001 ac_ext=c
12002 ac_cpp='$CPP $CPPFLAGS'
12003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12006
12007 CC=$lt_save_CC
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023 ac_config_commands="$ac_config_commands libtool"
12024
12025
12026
12027
12028 # Only expand once:
12029
12030
12031
12032 # Checks for libraries.
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
12034 $as_echo_n "checking for X... " >&6; }
12035
12036
12037 # Check whether --with-x was given.
12038 if test "${with_x+set}" = set; then :
12039 withval=$with_x;
12040 fi
12041
12042 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12043 if test "x$with_x" = xno; then
12044 # The user explicitly disabled X.
12045 have_x=disabled
12046 else
12047 case $x_includes,$x_libraries in #(
12048 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
12049 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
12050 $as_echo_n "(cached) " >&6
12051 else
12052 # One or both of the vars are not set, and there is no cached value.
12053 ac_x_includes=no ac_x_libraries=no
12054 rm -f -r conftest.dir
12055 if mkdir conftest.dir; then
12056 cd conftest.dir
12057 cat >Imakefile <<'_ACEOF'
12058 incroot:
12059 @echo incroot='${INCROOT}'
12060 usrlibdir:
12061 @echo usrlibdir='${USRLIBDIR}'
12062 libdir:
12063 @echo libdir='${LIBDIR}'
12064 _ACEOF
12065 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
12066 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12067 for ac_var in incroot usrlibdir libdir; do
12068 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
12069 done
12070 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12071 for ac_extension in a so sl dylib la dll; do
12072 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
12073 test -f "$ac_im_libdir/libX11.$ac_extension"; then
12074 ac_im_usrlibdir=$ac_im_libdir; break
12075 fi
12076 done
12077 # Screen out bogus values from the imake configuration. They are
12078 # bogus both because they are the default anyway, and because
12079 # using them would break gcc on systems where it needs fixed includes.
12080 case $ac_im_incroot in
12081 /usr/include) ac_x_includes= ;;
12082 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
12083 esac
12084 case $ac_im_usrlibdir in
12085 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
12086 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
12087 esac
12088 fi
12089 cd ..
12090 rm -f -r conftest.dir
12091 fi
12092
12093 # Standard set of common directories for X headers.
12094 # Check X11 before X11Rn because it is often a symlink to the current release.
12095 ac_x_header_dirs='
12096 /usr/X11/include
12097 /usr/X11R7/include
12098 /usr/X11R6/include
12099 /usr/X11R5/include
12100 /usr/X11R4/include
12101
12102 /usr/include/X11
12103 /usr/include/X11R7
12104 /usr/include/X11R6
12105 /usr/include/X11R5
12106 /usr/include/X11R4
12107
12108 /usr/local/X11/include
12109 /usr/local/X11R7/include
12110 /usr/local/X11R6/include
12111 /usr/local/X11R5/include
12112 /usr/local/X11R4/include
12113
12114 /usr/local/include/X11
12115 /usr/local/include/X11R7
12116 /usr/local/include/X11R6
12117 /usr/local/include/X11R5
12118 /usr/local/include/X11R4
12119
12120 /usr/X386/include
12121 /usr/x386/include
12122 /usr/XFree86/include/X11
12123
12124 /usr/include
12125 /usr/local/include
12126 /usr/unsupported/include
12127 /usr/athena/include
12128 /usr/local/x11r5/include
12129 /usr/lpp/Xamples/include
12130
12131 /usr/openwin/include
12132 /usr/openwin/share/include'
12133
12134 if test "$ac_x_includes" = no; then
12135 # Guess where to find include files, by looking for Xlib.h.
12136 # First, try using that file with no special directory specified.
12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h. */
12139 #include <X11/Xlib.h>
12140 _ACEOF
12141 if ac_fn_c_try_cpp "$LINENO"; then :
12142 # We can compile using X headers with no special include directory.
12143 ac_x_includes=
12144 else
12145 for ac_dir in $ac_x_header_dirs; do
12146 if test -r "$ac_dir/X11/Xlib.h"; then
12147 ac_x_includes=$ac_dir
12148 break
12149 fi
12150 done
12151 fi
12152 rm -f conftest.err conftest.i conftest.$ac_ext
12153 fi # $ac_x_includes = no
12154
12155 if test "$ac_x_libraries" = no; then
12156 # Check for the libraries.
12157 # See if we find them without any special options.
12158 # Don't add to $LIBS permanently.
12159 ac_save_LIBS=$LIBS
12160 LIBS="-lX11 $LIBS"
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h. */
12163 #include <X11/Xlib.h>
12164 int
12165 main ()
12166 {
12167 XrmInitialize ()
12168 ;
12169 return 0;
12170 }
12171 _ACEOF
12172 if ac_fn_c_try_link "$LINENO"; then :
12173 LIBS=$ac_save_LIBS
12174 # We can link X programs with no special library path.
12175 ac_x_libraries=
12176 else
12177 LIBS=$ac_save_LIBS
12178 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
12179 do
12180 # Don't even attempt the hair of trying to link an X program!
12181 for ac_extension in a so sl dylib la dll; do
12182 if test -r "$ac_dir/libX11.$ac_extension"; then
12183 ac_x_libraries=$ac_dir
12184 break 2
12185 fi
12186 done
12187 done
12188 fi
12189 rm -f core conftest.err conftest.$ac_objext \
12190 conftest$ac_exeext conftest.$ac_ext
12191 fi # $ac_x_libraries = no
12192
12193 case $ac_x_includes,$ac_x_libraries in #(
12194 no,* | *,no | *\'*)
12195 # Didn't find X, or a directory has "'" in its name.
12196 ac_cv_have_x="have_x=no";; #(
12197 *)
12198 # Record where we found X for the cache.
12199 ac_cv_have_x="have_x=yes\
12200 ac_x_includes='$ac_x_includes'\
12201 ac_x_libraries='$ac_x_libraries'"
12202 esac
12203 fi
12204 ;; #(
12205 *) have_x=yes;;
12206 esac
12207 eval "$ac_cv_have_x"
12208 fi # $with_x != no
12209
12210 if test "$have_x" != yes; then
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
12212 $as_echo "$have_x" >&6; }
12213 no_x=yes
12214 else
12215 # If each of the values was on the command line, it overrides each guess.
12216 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12217 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12218 # Update the cache value to reflect the command line values.
12219 ac_cv_have_x="have_x=yes\
12220 ac_x_includes='$x_includes'\
12221 ac_x_libraries='$x_libraries'"
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
12223 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
12224 fi
12225
12226 if test "$no_x" = yes; then
12227 # Not all programs may use this symbol, but it does not hurt to define it.
12228
12229 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
12230
12231 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12232 else
12233 if test -n "$x_includes"; then
12234 X_CFLAGS="$X_CFLAGS -I$x_includes"
12235 fi
12236
12237 # It would also be nice to do this for all -L options, not just this one.
12238 if test -n "$x_libraries"; then
12239 X_LIBS="$X_LIBS -L$x_libraries"
12240 # For Solaris; some versions of Sun CC require a space after -R and
12241 # others require no space. Words are not sufficient . . . .
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
12243 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
12244 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
12245 ac_xsave_c_werror_flag=$ac_c_werror_flag
12246 ac_c_werror_flag=yes
12247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12248 /* end confdefs.h. */
12249
12250 int
12251 main ()
12252 {
12253
12254 ;
12255 return 0;
12256 }
12257 _ACEOF
12258 if ac_fn_c_try_link "$LINENO"; then :
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260 $as_echo "no" >&6; }
12261 X_LIBS="$X_LIBS -R$x_libraries"
12262 else
12263 LIBS="$ac_xsave_LIBS -R $x_libraries"
12264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12265 /* end confdefs.h. */
12266
12267 int
12268 main ()
12269 {
12270
12271 ;
12272 return 0;
12273 }
12274 _ACEOF
12275 if ac_fn_c_try_link "$LINENO"; then :
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12277 $as_echo "yes" >&6; }
12278 X_LIBS="$X_LIBS -R $x_libraries"
12279 else
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
12281 $as_echo "neither works" >&6; }
12282 fi
12283 rm -f core conftest.err conftest.$ac_objext \
12284 conftest$ac_exeext conftest.$ac_ext
12285 fi
12286 rm -f core conftest.err conftest.$ac_objext \
12287 conftest$ac_exeext conftest.$ac_ext
12288 ac_c_werror_flag=$ac_xsave_c_werror_flag
12289 LIBS=$ac_xsave_LIBS
12290 fi
12291
12292 # Check for system-dependent libraries X programs must link with.
12293 # Do this before checking for the system-independent R6 libraries
12294 # (-lICE), since we may need -lsocket or whatever for X linking.
12295
12296 if test "$ISC" = yes; then
12297 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12298 else
12299 # Martyn Johnson says this is needed for Ultrix, if the X
12300 # libraries were built with DECnet support. And Karl Berry says
12301 # the Alpha needs dnet_stub (dnet does not exist).
12302 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
12303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12304 /* end confdefs.h. */
12305
12306 /* Override any GCC internal prototype to avoid an error.
12307 Use char because int might match the return type of a GCC
12308 builtin and then its argument prototype would still apply. */
12309 #ifdef __cplusplus
12310 extern "C"
12311 #endif
12312 char XOpenDisplay ();
12313 int
12314 main ()
12315 {
12316 return XOpenDisplay ();
12317 ;
12318 return 0;
12319 }
12320 _ACEOF
12321 if ac_fn_c_try_link "$LINENO"; then :
12322
12323 else
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
12325 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
12326 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
12327 $as_echo_n "(cached) " >&6
12328 else
12329 ac_check_lib_save_LIBS=$LIBS
12330 LIBS="-ldnet $LIBS"
12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12333
12334 /* Override any GCC internal prototype to avoid an error.
12335 Use char because int might match the return type of a GCC
12336 builtin and then its argument prototype would still apply. */
12337 #ifdef __cplusplus
12338 extern "C"
12339 #endif
12340 char dnet_ntoa ();
12341 int
12342 main ()
12343 {
12344 return dnet_ntoa ();
12345 ;
12346 return 0;
12347 }
12348 _ACEOF
12349 if ac_fn_c_try_link "$LINENO"; then :
12350 ac_cv_lib_dnet_dnet_ntoa=yes
12351 else
12352 ac_cv_lib_dnet_dnet_ntoa=no
12353 fi
12354 rm -f core conftest.err conftest.$ac_objext \
12355 conftest$ac_exeext conftest.$ac_ext
12356 LIBS=$ac_check_lib_save_LIBS
12357 fi
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
12359 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
12360 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
12361 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12362 fi
12363
12364 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
12366 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
12367 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
12368 $as_echo_n "(cached) " >&6
12369 else
12370 ac_check_lib_save_LIBS=$LIBS
12371 LIBS="-ldnet_stub $LIBS"
12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h. */
12374
12375 /* Override any GCC internal prototype to avoid an error.
12376 Use char because int might match the return type of a GCC
12377 builtin and then its argument prototype would still apply. */
12378 #ifdef __cplusplus
12379 extern "C"
12380 #endif
12381 char dnet_ntoa ();
12382 int
12383 main ()
12384 {
12385 return dnet_ntoa ();
12386 ;
12387 return 0;
12388 }
12389 _ACEOF
12390 if ac_fn_c_try_link "$LINENO"; then :
12391 ac_cv_lib_dnet_stub_dnet_ntoa=yes
12392 else
12393 ac_cv_lib_dnet_stub_dnet_ntoa=no
12394 fi
12395 rm -f core conftest.err conftest.$ac_objext \
12396 conftest$ac_exeext conftest.$ac_ext
12397 LIBS=$ac_check_lib_save_LIBS
12398 fi
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12400 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
12401 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
12402 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12403 fi
12404
12405 fi
12406 fi
12407 rm -f core conftest.err conftest.$ac_objext \
12408 conftest$ac_exeext conftest.$ac_ext
12409 LIBS="$ac_xsave_LIBS"
12410
12411 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
12412 # to get the SysV transport functions.
12413 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12414 # needs -lnsl.
12415 # The nsl library prevents programs from opening the X display
12416 # on Irix 5.2, according to T.E. Dickey.
12417 # The functions gethostbyname, getservbyname, and inet_addr are
12418 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12419 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
12420 if test "x$ac_cv_func_gethostbyname" = xyes; then :
12421
12422 fi
12423
12424 if test $ac_cv_func_gethostbyname = no; then
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12426 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12427 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
12428 $as_echo_n "(cached) " >&6
12429 else
12430 ac_check_lib_save_LIBS=$LIBS
12431 LIBS="-lnsl $LIBS"
12432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h. */
12434
12435 /* Override any GCC internal prototype to avoid an error.
12436 Use char because int might match the return type of a GCC
12437 builtin and then its argument prototype would still apply. */
12438 #ifdef __cplusplus
12439 extern "C"
12440 #endif
12441 char gethostbyname ();
12442 int
12443 main ()
12444 {
12445 return gethostbyname ();
12446 ;
12447 return 0;
12448 }
12449 _ACEOF
12450 if ac_fn_c_try_link "$LINENO"; then :
12451 ac_cv_lib_nsl_gethostbyname=yes
12452 else
12453 ac_cv_lib_nsl_gethostbyname=no
12454 fi
12455 rm -f core conftest.err conftest.$ac_objext \
12456 conftest$ac_exeext conftest.$ac_ext
12457 LIBS=$ac_check_lib_save_LIBS
12458 fi
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12460 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
12461 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
12462 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12463 fi
12464
12465 if test $ac_cv_lib_nsl_gethostbyname = no; then
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
12467 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
12468 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
12469 $as_echo_n "(cached) " >&6
12470 else
12471 ac_check_lib_save_LIBS=$LIBS
12472 LIBS="-lbsd $LIBS"
12473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12474 /* end confdefs.h. */
12475
12476 /* Override any GCC internal prototype to avoid an error.
12477 Use char because int might match the return type of a GCC
12478 builtin and then its argument prototype would still apply. */
12479 #ifdef __cplusplus
12480 extern "C"
12481 #endif
12482 char gethostbyname ();
12483 int
12484 main ()
12485 {
12486 return gethostbyname ();
12487 ;
12488 return 0;
12489 }
12490 _ACEOF
12491 if ac_fn_c_try_link "$LINENO"; then :
12492 ac_cv_lib_bsd_gethostbyname=yes
12493 else
12494 ac_cv_lib_bsd_gethostbyname=no
12495 fi
12496 rm -f core conftest.err conftest.$ac_objext \
12497 conftest$ac_exeext conftest.$ac_ext
12498 LIBS=$ac_check_lib_save_LIBS
12499 fi
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
12501 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
12502 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
12503 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12504 fi
12505
12506 fi
12507 fi
12508
12509 # [email protected] says without -lsocket,
12510 # socket/setsockopt and other routines are undefined under SCO ODT
12511 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12512 # on later versions), says Simon Leinen: it contains gethostby*
12513 # variants that don't use the name server (or something). -lsocket
12514 # must be given before -lnsl if both are needed. We assume that
12515 # if connect needs -lnsl, so does gethostbyname.
12516 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
12517 if test "x$ac_cv_func_connect" = xyes; then :
12518
12519 fi
12520
12521 if test $ac_cv_func_connect = no; then
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
12523 $as_echo_n "checking for connect in -lsocket... " >&6; }
12524 if ${ac_cv_lib_socket_connect+:} false; then :
12525 $as_echo_n "(cached) " >&6
12526 else
12527 ac_check_lib_save_LIBS=$LIBS
12528 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12530 /* end confdefs.h. */
12531
12532 /* Override any GCC internal prototype to avoid an error.
12533 Use char because int might match the return type of a GCC
12534 builtin and then its argument prototype would still apply. */
12535 #ifdef __cplusplus
12536 extern "C"
12537 #endif
12538 char connect ();
12539 int
12540 main ()
12541 {
12542 return connect ();
12543 ;
12544 return 0;
12545 }
12546 _ACEOF
12547 if ac_fn_c_try_link "$LINENO"; then :
12548 ac_cv_lib_socket_connect=yes
12549 else
12550 ac_cv_lib_socket_connect=no
12551 fi
12552 rm -f core conftest.err conftest.$ac_objext \
12553 conftest$ac_exeext conftest.$ac_ext
12554 LIBS=$ac_check_lib_save_LIBS
12555 fi
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
12557 $as_echo "$ac_cv_lib_socket_connect" >&6; }
12558 if test "x$ac_cv_lib_socket_connect" = xyes; then :
12559 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12560 fi
12561
12562 fi
12563
12564 # Guillermo Gomez says -lposix is necessary on A/UX.
12565 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
12566 if test "x$ac_cv_func_remove" = xyes; then :
12567
12568 fi
12569
12570 if test $ac_cv_func_remove = no; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
12572 $as_echo_n "checking for remove in -lposix... " >&6; }
12573 if ${ac_cv_lib_posix_remove+:} false; then :
12574 $as_echo_n "(cached) " >&6
12575 else
12576 ac_check_lib_save_LIBS=$LIBS
12577 LIBS="-lposix $LIBS"
12578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579 /* end confdefs.h. */
12580
12581 /* Override any GCC internal prototype to avoid an error.
12582 Use char because int might match the return type of a GCC
12583 builtin and then its argument prototype would still apply. */
12584 #ifdef __cplusplus
12585 extern "C"
12586 #endif
12587 char remove ();
12588 int
12589 main ()
12590 {
12591 return remove ();
12592 ;
12593 return 0;
12594 }
12595 _ACEOF
12596 if ac_fn_c_try_link "$LINENO"; then :
12597 ac_cv_lib_posix_remove=yes
12598 else
12599 ac_cv_lib_posix_remove=no
12600 fi
12601 rm -f core conftest.err conftest.$ac_objext \
12602 conftest$ac_exeext conftest.$ac_ext
12603 LIBS=$ac_check_lib_save_LIBS
12604 fi
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
12606 $as_echo "$ac_cv_lib_posix_remove" >&6; }
12607 if test "x$ac_cv_lib_posix_remove" = xyes; then :
12608 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12609 fi
12610
12611 fi
12612
12613 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12614 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
12615 if test "x$ac_cv_func_shmat" = xyes; then :
12616
12617 fi
12618
12619 if test $ac_cv_func_shmat = no; then
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
12621 $as_echo_n "checking for shmat in -lipc... " >&6; }
12622 if ${ac_cv_lib_ipc_shmat+:} false; then :
12623 $as_echo_n "(cached) " >&6
12624 else
12625 ac_check_lib_save_LIBS=$LIBS
12626 LIBS="-lipc $LIBS"
12627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628 /* end confdefs.h. */
12629
12630 /* Override any GCC internal prototype to avoid an error.
12631 Use char because int might match the return type of a GCC
12632 builtin and then its argument prototype would still apply. */
12633 #ifdef __cplusplus
12634 extern "C"
12635 #endif
12636 char shmat ();
12637 int
12638 main ()
12639 {
12640 return shmat ();
12641 ;
12642 return 0;
12643 }
12644 _ACEOF
12645 if ac_fn_c_try_link "$LINENO"; then :
12646 ac_cv_lib_ipc_shmat=yes
12647 else
12648 ac_cv_lib_ipc_shmat=no
12649 fi
12650 rm -f core conftest.err conftest.$ac_objext \
12651 conftest$ac_exeext conftest.$ac_ext
12652 LIBS=$ac_check_lib_save_LIBS
12653 fi
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
12655 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
12656 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
12657 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12658 fi
12659
12660 fi
12661 fi
12662
12663 # Check for libraries that X11R6 Xt/Xaw programs need.
12664 ac_save_LDFLAGS=$LDFLAGS
12665 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12666 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12667 # check for ICE first), but we must link in the order -lSM -lICE or
12668 # we get undefined symbols. So assume we have SM if we have ICE.
12669 # These have to be linked with before -lX11, unlike the other
12670 # libraries we check for below, so use a different variable.
12671 # John Interrante, Karl Berry
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
12673 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
12674 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
12675 $as_echo_n "(cached) " >&6
12676 else
12677 ac_check_lib_save_LIBS=$LIBS
12678 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12680 /* end confdefs.h. */
12681
12682 /* Override any GCC internal prototype to avoid an error.
12683 Use char because int might match the return type of a GCC
12684 builtin and then its argument prototype would still apply. */
12685 #ifdef __cplusplus
12686 extern "C"
12687 #endif
12688 char IceConnectionNumber ();
12689 int
12690 main ()
12691 {
12692 return IceConnectionNumber ();
12693 ;
12694 return 0;
12695 }
12696 _ACEOF
12697 if ac_fn_c_try_link "$LINENO"; then :
12698 ac_cv_lib_ICE_IceConnectionNumber=yes
12699 else
12700 ac_cv_lib_ICE_IceConnectionNumber=no
12701 fi
12702 rm -f core conftest.err conftest.$ac_objext \
12703 conftest$ac_exeext conftest.$ac_ext
12704 LIBS=$ac_check_lib_save_LIBS
12705 fi
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12707 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
12708 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
12709 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12710 fi
12711
12712 LDFLAGS=$ac_save_LDFLAGS
12713
12714 fi
12715
12716
12717 # Checks for header files.
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12719 $as_echo_n "checking for ANSI C header files... " >&6; }
12720 if ${ac_cv_header_stdc+:} false; then :
12721 $as_echo_n "(cached) " >&6
12722 else
12723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724 /* end confdefs.h. */
12725 #include <stdlib.h>
12726 #include <stdarg.h>
12727 #include <string.h>
12728 #include <float.h>
12729
12730 int
12731 main ()
12732 {
12733
12734 ;
12735 return 0;
12736 }
12737 _ACEOF
12738 if ac_fn_c_try_compile "$LINENO"; then :
12739 ac_cv_header_stdc=yes
12740 else
12741 ac_cv_header_stdc=no
12742 fi
12743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12744
12745 if test $ac_cv_header_stdc = yes; then
12746 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748 /* end confdefs.h. */
12749 #include <string.h>
12750
12751 _ACEOF
12752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12753 $EGREP "memchr" >/dev/null 2>&1; then :
12754
12755 else
12756 ac_cv_header_stdc=no
12757 fi
12758 rm -f conftest*
12759
12760 fi
12761
12762 if test $ac_cv_header_stdc = yes; then
12763 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12765 /* end confdefs.h. */
12766 #include <stdlib.h>
12767
12768 _ACEOF
12769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12770 $EGREP "free" >/dev/null 2>&1; then :
12771
12772 else
12773 ac_cv_header_stdc=no
12774 fi
12775 rm -f conftest*
12776
12777 fi
12778
12779 if test $ac_cv_header_stdc = yes; then
12780 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12781 if test "$cross_compiling" = yes; then :
12782 :
12783 else
12784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h. */
12786 #include <ctype.h>
12787 #include <stdlib.h>
12788 #if ((' ' & 0x0FF) == 0x020)
12789 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12790 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12791 #else
12792 # define ISLOWER(c) \
12793 (('a' <= (c) && (c) <= 'i') \
12794 || ('j' <= (c) && (c) <= 'r') \
12795 || ('s' <= (c) && (c) <= 'z'))
12796 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12797 #endif
12798
12799 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12800 int
12801 main ()
12802 {
12803 int i;
12804 for (i = 0; i < 256; i++)
12805 if (XOR (islower (i), ISLOWER (i))
12806 || toupper (i) != TOUPPER (i))
12807 return 2;
12808 return 0;
12809 }
12810 _ACEOF
12811 if ac_fn_c_try_run "$LINENO"; then :
12812
12813 else
12814 ac_cv_header_stdc=no
12815 fi
12816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12817 conftest.$ac_objext conftest.beam conftest.$ac_ext
12818 fi
12819
12820 fi
12821 fi
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12823 $as_echo "$ac_cv_header_stdc" >&6; }
12824 if test $ac_cv_header_stdc = yes; then
12825
12826 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12827
12828 fi
12829
12830 for ac_header in fcntl.h stdlib.h string.h unistd.h
12831 do :
12832 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12833 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12834 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12835 cat >>confdefs.h <<_ACEOF
12836 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12837 _ACEOF
12838
12839 fi
12840
12841 done
12842
12843
12844 for ac_header in X11/Xaw/Command.h
12845 do :
12846 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xaw/Command.h" "ac_cv_header_X11_Xaw_Command_h" "$ac_includes_default"
12847 if test "x$ac_cv_header_X11_Xaw_Command_h" = xyes; then :
12848 cat >>confdefs.h <<_ACEOF
12849 #define HAVE_X11_XAW_COMMAND_H 1
12850 _ACEOF
12851
12852 else
12853 no_x=yes
12854 fi
12855
12856 done
12857
12858
12859 if test x$no_x = xyes; then
12860 X11_UNAVAILABLE_TRUE=
12861 X11_UNAVAILABLE_FALSE='#'
12862 else
12863 X11_UNAVAILABLE_TRUE='#'
12864 X11_UNAVAILABLE_FALSE=
12865 fi
12866
12867
12868 # Checks for typedefs, structures, and compiler characteristics.
12869
12870 # Checks for library functions.
12871 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12872 if test "x$ac_cv_type_size_t" = xyes; then :
12873
12874 else
12875
12876 cat >>confdefs.h <<_ACEOF
12877 #define size_t unsigned int
12878 _ACEOF
12879
12880 fi
12881
12882 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12883 # for constant arguments. Useless!
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12885 $as_echo_n "checking for working alloca.h... " >&6; }
12886 if ${ac_cv_working_alloca_h+:} false; then :
12887 $as_echo_n "(cached) " >&6
12888 else
12889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12890 /* end confdefs.h. */
12891 #include <alloca.h>
12892 int
12893 main ()
12894 {
12895 char *p = (char *) alloca (2 * sizeof (int));
12896 if (p) return 0;
12897 ;
12898 return 0;
12899 }
12900 _ACEOF
12901 if ac_fn_c_try_link "$LINENO"; then :
12902 ac_cv_working_alloca_h=yes
12903 else
12904 ac_cv_working_alloca_h=no
12905 fi
12906 rm -f core conftest.err conftest.$ac_objext \
12907 conftest$ac_exeext conftest.$ac_ext
12908 fi
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12910 $as_echo "$ac_cv_working_alloca_h" >&6; }
12911 if test $ac_cv_working_alloca_h = yes; then
12912
12913 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12914
12915 fi
12916
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12918 $as_echo_n "checking for alloca... " >&6; }
12919 if ${ac_cv_func_alloca_works+:} false; then :
12920 $as_echo_n "(cached) " >&6
12921 else
12922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12923 /* end confdefs.h. */
12924 #ifdef __GNUC__
12925 # define alloca __builtin_alloca
12926 #else
12927 # ifdef _MSC_VER
12928 # include <malloc.h>
12929 # define alloca _alloca
12930 # else
12931 # ifdef HAVE_ALLOCA_H
12932 # include <alloca.h>
12933 # else
12934 # ifdef _AIX
12935 #pragma alloca
12936 # else
12937 # ifndef alloca /* predefined by HP cc +Olibcalls */
12938 void *alloca (size_t);
12939 # endif
12940 # endif
12941 # endif
12942 # endif
12943 #endif
12944
12945 int
12946 main ()
12947 {
12948 char *p = (char *) alloca (1);
12949 if (p) return 0;
12950 ;
12951 return 0;
12952 }
12953 _ACEOF
12954 if ac_fn_c_try_link "$LINENO"; then :
12955 ac_cv_func_alloca_works=yes
12956 else
12957 ac_cv_func_alloca_works=no
12958 fi
12959 rm -f core conftest.err conftest.$ac_objext \
12960 conftest$ac_exeext conftest.$ac_ext
12961 fi
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12963 $as_echo "$ac_cv_func_alloca_works" >&6; }
12964
12965 if test $ac_cv_func_alloca_works = yes; then
12966
12967 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12968
12969 else
12970 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12971 # that cause trouble. Some versions do not even contain alloca or
12972 # contain a buggy version. If you still want to use their alloca,
12973 # use ar to extract alloca.o from them instead of compiling alloca.c.
12974
12975 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12976
12977 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12978
12979
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12981 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12982 if ${ac_cv_os_cray+:} false; then :
12983 $as_echo_n "(cached) " >&6
12984 else
12985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12986 /* end confdefs.h. */
12987 #if defined CRAY && ! defined CRAY2
12988 webecray
12989 #else
12990 wenotbecray
12991 #endif
12992
12993 _ACEOF
12994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12995 $EGREP "webecray" >/dev/null 2>&1; then :
12996 ac_cv_os_cray=yes
12997 else
12998 ac_cv_os_cray=no
12999 fi
13000 rm -f conftest*
13001
13002 fi
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13004 $as_echo "$ac_cv_os_cray" >&6; }
13005 if test $ac_cv_os_cray = yes; then
13006 for ac_func in _getb67 GETB67 getb67; do
13007 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13008 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13009 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13010
13011 cat >>confdefs.h <<_ACEOF
13012 #define CRAY_STACKSEG_END $ac_func
13013 _ACEOF
13014
13015 break
13016 fi
13017
13018 done
13019 fi
13020
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13022 $as_echo_n "checking stack direction for C alloca... " >&6; }
13023 if ${ac_cv_c_stack_direction+:} false; then :
13024 $as_echo_n "(cached) " >&6
13025 else
13026 if test "$cross_compiling" = yes; then :
13027 ac_cv_c_stack_direction=0
13028 else
13029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13030 /* end confdefs.h. */
13031 $ac_includes_default
13032 int
13033 find_stack_direction (int *addr, int depth)
13034 {
13035 int dir, dummy = 0;
13036 if (! addr)
13037 addr = &dummy;
13038 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13039 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13040 return dir + dummy;
13041 }
13042
13043 int
13044 main (int argc, char **argv)
13045 {
13046 return find_stack_direction (0, argc + !argv + 20) < 0;
13047 }
13048 _ACEOF
13049 if ac_fn_c_try_run "$LINENO"; then :
13050 ac_cv_c_stack_direction=1
13051 else
13052 ac_cv_c_stack_direction=-1
13053 fi
13054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13055 conftest.$ac_objext conftest.beam conftest.$ac_ext
13056 fi
13057
13058 fi
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13060 $as_echo "$ac_cv_c_stack_direction" >&6; }
13061 cat >>confdefs.h <<_ACEOF
13062 #define STACK_DIRECTION $ac_cv_c_stack_direction
13063 _ACEOF
13064
13065
13066 fi
13067
13068 for ac_header in stdlib.h
13069 do :
13070 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13071 if test "x$ac_cv_header_stdlib_h" = xyes; then :
13072 cat >>confdefs.h <<_ACEOF
13073 #define HAVE_STDLIB_H 1
13074 _ACEOF
13075
13076 fi
13077
13078 done
13079
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
13081 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
13082 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
13083 $as_echo_n "(cached) " >&6
13084 else
13085 if test "$cross_compiling" = yes; then :
13086 ac_cv_func_malloc_0_nonnull=no
13087 else
13088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089 /* end confdefs.h. */
13090 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
13091 # include <stdlib.h>
13092 #else
13093 char *malloc ();
13094 #endif
13095
13096 int
13097 main ()
13098 {
13099 return ! malloc (0);
13100 ;
13101 return 0;
13102 }
13103 _ACEOF
13104 if ac_fn_c_try_run "$LINENO"; then :
13105 ac_cv_func_malloc_0_nonnull=yes
13106 else
13107 ac_cv_func_malloc_0_nonnull=no
13108 fi
13109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13110 conftest.$ac_objext conftest.beam conftest.$ac_ext
13111 fi
13112
13113 fi
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13115 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
13116 if test $ac_cv_func_malloc_0_nonnull = yes; then :
13117
13118 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
13119
13120 else
13121 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
13122
13123 case " $LIBOBJS " in
13124 *" malloc.$ac_objext "* ) ;;
13125 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
13126 ;;
13127 esac
13128
13129
13130 $as_echo "#define malloc rpl_malloc" >>confdefs.h
13131
13132 fi
13133
13134
13135
13136 # Check for Freetype2 usability.
13137 # Extract the first word of "freetype-config", so it can be a program name with args.
13138 set dummy freetype-config; ac_word=$2
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13140 $as_echo_n "checking for $ac_word... " >&6; }
13141 if ${ac_cv_prog_HAVE_FREETYPE_CONFIG+:} false; then :
13142 $as_echo_n "(cached) " >&6
13143 else
13144 if test -n "$HAVE_FREETYPE_CONFIG"; then
13145 ac_cv_prog_HAVE_FREETYPE_CONFIG="$HAVE_FREETYPE_CONFIG" # Let the user override the test.
13146 else
13147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13148 for as_dir in $PATH
13149 do
13150 IFS=$as_save_IFS
13151 test -z "$as_dir" && as_dir=.
13152 for ac_exec_ext in '' $ac_executable_extensions; do
13153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13154 ac_cv_prog_HAVE_FREETYPE_CONFIG="yes"
13155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13156 break 2
13157 fi
13158 done
13159 done
13160 IFS=$as_save_IFS
13161
13162 fi
13163 fi
13164 HAVE_FREETYPE_CONFIG=$ac_cv_prog_HAVE_FREETYPE_CONFIG
13165 if test -n "$HAVE_FREETYPE_CONFIG"; then
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FREETYPE_CONFIG" >&5
13167 $as_echo "$HAVE_FREETYPE_CONFIG" >&6; }
13168 else
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13170 $as_echo "no" >&6; }
13171 fi
13172
13173
13174 if test "x$HAVE_FREETYPE_CONFIG" = "xyes"; then
13175 FREETYPE_INC=`freetype-config --cflags`
13176 CPPFLAGS="$CPPFLAGS $FREETYPE_INC"
13177 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
13178 if test "x$ac_cv_header_ft2build_h" = xyes; then :
13179 HAVE_FREETYPE=yes
13180 else
13181 HAVE_FREETYPE=no CPPFLAGS=$save_CPPFLAGS
13182 fi
13183
13184
13185 if test "x$HAVE_FREETYPE" = "xyes" ; then
13186 FREETYPE_LD_FLAGS=`freetype-config --libs`;
13187 LIBS="$LIBS $FREETYPE_LD_FLAGS"
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
13189 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
13190 if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
13191 $as_echo_n "(cached) " >&6
13192 else
13193 ac_check_lib_save_LIBS=$LIBS
13194 LIBS="-lfreetype $LIBS"
13195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196 /* end confdefs.h. */
13197
13198 /* Override any GCC internal prototype to avoid an error.
13199 Use char because int might match the return type of a GCC
13200 builtin and then its argument prototype would still apply. */
13201 #ifdef __cplusplus
13202 extern "C"
13203 #endif
13204 char FT_Init_FreeType ();
13205 int
13206 main ()
13207 {
13208 return FT_Init_FreeType ();
13209 ;
13210 return 0;
13211 }
13212 _ACEOF
13213 if ac_fn_c_try_link "$LINENO"; then :
13214 ac_cv_lib_freetype_FT_Init_FreeType=yes
13215 else
13216 ac_cv_lib_freetype_FT_Init_FreeType=no
13217 fi
13218 rm -f core conftest.err conftest.$ac_objext \
13219 conftest$ac_exeext conftest.$ac_ext
13220 LIBS=$ac_check_lib_save_LIBS
13221 fi
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
13223 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
13224 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
13225 HAVE_FREETYPE=yes
13226 else
13227 HAVE_FREETYPE=no
13228 fi
13229
13230 fi
13231 fi
13232
13233 if test "x$HAVE_FREETYPE" != "xyes" ; then
13234 echo "Freetype library wan't found in your system!"
13235 exit 1
13236 fi
13237
13238
13239
13240 if test "x$no_x" != "xyes"; then
13241 X11_XT_XAW_XMU="-lX11 -lXt -lXaw -lXmu"
13242 fi
13243
13244
13245 ac_fn_c_check_func "$LINENO" "scandir" "ac_cv_func_scandir"
13246 if test "x$ac_cv_func_scandir" = xyes; then :
13247 HAVE_SCANDIR=yes
13248 else
13249 HAVE_SCANDIR=no
13250 fi
13251
13252 if test "x$HAVE_SCANDIR" = "xyes"; then
13253
13254 $as_echo "#define HAVE_SCANDIR 1" >>confdefs.h
13255
13256 fi
13257
13258 ac_fn_c_check_func "$LINENO" "alphasort" "ac_cv_func_alphasort"
13259 if test "x$ac_cv_func_alphasort" = xyes; then :
13260 HAVE_ALPHASORT=yes
13261 else
13262 HAVE_ALPHASORT=no
13263 fi
13264
13265 if test "x$HAVE_ALPHASORT" = "xyes"; then
13266
13267 $as_echo "#define HAVE_ALPHASORT 1" >>confdefs.h
13268
13269 fi
13270
13271 ac_config_files="$ac_config_files Makefile src/Makefile example/Makefile libotf-config libotf.pc"
13272
13273 cat >confcache <<\_ACEOF
13274 # This file is a shell script that caches the results of configure
13275 # tests run on this system so they can be shared between configure
13276 # scripts and configure runs, see configure's option --config-cache.
13277 # It is not useful on other systems. If it contains results you don't
13278 # want to keep, you may remove or edit it.
13279 #
13280 # config.status only pays attention to the cache file if you give it
13281 # the --recheck option to rerun configure.
13282 #
13283 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13284 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13285 # following values.
13286
13287 _ACEOF
13288
13289 # The following way of writing the cache mishandles newlines in values,
13290 # but we know of no workaround that is simple, portable, and efficient.
13291 # So, we kill variables containing newlines.
13292 # Ultrix sh set writes to stderr and can't be redirected directly,
13293 # and sets the high bit in the cache file unless we assign to the vars.
13294 (
13295 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13296 eval ac_val=\$$ac_var
13297 case $ac_val in #(
13298 *${as_nl}*)
13299 case $ac_var in #(
13300 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13301 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13302 esac
13303 case $ac_var in #(
13304 _ | IFS | as_nl) ;; #(
13305 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13306 *) { eval $ac_var=; unset $ac_var;} ;;
13307 esac ;;
13308 esac
13309 done
13310
13311 (set) 2>&1 |
13312 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13313 *${as_nl}ac_space=\ *)
13314 # `set' does not quote correctly, so add quotes: double-quote
13315 # substitution turns \\\\ into \\, and sed turns \\ into \.
13316 sed -n \
13317 "s/'/'\\\\''/g;
13318 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13319 ;; #(
13320 *)
13321 # `set' quotes correctly as required by POSIX, so do not add quotes.
13322 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13323 ;;
13324 esac |
13325 sort
13326 ) |
13327 sed '
13328 /^ac_cv_env_/b end
13329 t clear
13330 :clear
13331 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13332 t end
13333 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13334 :end' >>confcache
13335 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13336 if test -w "$cache_file"; then
13337 if test "x$cache_file" != "x/dev/null"; then
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13339 $as_echo "$as_me: updating cache $cache_file" >&6;}
13340 if test ! -f "$cache_file" || test -h "$cache_file"; then
13341 cat confcache >"$cache_file"
13342 else
13343 case $cache_file in #(
13344 */* | ?:*)
13345 mv -f confcache "$cache_file"$$ &&
13346 mv -f "$cache_file"$$ "$cache_file" ;; #(
13347 *)
13348 mv -f confcache "$cache_file" ;;
13349 esac
13350 fi
13351 fi
13352 else
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13354 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13355 fi
13356 fi
13357 rm -f confcache
13358
13359 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13360 # Let make expand exec_prefix.
13361 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13362
13363 DEFS=-DHAVE_CONFIG_H
13364
13365 ac_libobjs=
13366 ac_ltlibobjs=
13367 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13368 # 1. Remove the extension, and $U if already installed.
13369 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13370 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13371 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13372 # will be set to the directory where LIBOBJS objects are built.
13373 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13374 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13375 done
13376 LIBOBJS=$ac_libobjs
13377
13378 LTLIBOBJS=$ac_ltlibobjs
13379
13380
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13382 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13383 if test -n "$am_sleep_pid"; then
13384 # Hide warnings about reused PIDs.
13385 wait $am_sleep_pid 2>/dev/null
13386 fi
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13388 $as_echo "done" >&6; }
13389 if test -n "$EXEEXT"; then
13390 am__EXEEXT_TRUE=
13391 am__EXEEXT_FALSE='#'
13392 else
13393 am__EXEEXT_TRUE='#'
13394 am__EXEEXT_FALSE=
13395 fi
13396
13397 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13398 as_fn_error $? "conditional \"AMDEP\" was never defined.
13399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13400 fi
13401 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13402 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13404 fi
13405 if test -z "${X11_UNAVAILABLE_TRUE}" && test -z "${X11_UNAVAILABLE_FALSE}"; then
13406 as_fn_error $? "conditional \"X11_UNAVAILABLE\" was never defined.
13407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13408 fi
13409
13410 : "${CONFIG_STATUS=./config.status}"
13411 ac_write_fail=0
13412 ac_clean_files_save=$ac_clean_files
13413 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13415 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13416 as_write_fail=0
13417 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13418 #! $SHELL
13419 # Generated by $as_me.
13420 # Run this file to recreate the current configuration.
13421 # Compiler output produced by configure, useful for debugging
13422 # configure, is in config.log if it exists.
13423
13424 debug=false
13425 ac_cs_recheck=false
13426 ac_cs_silent=false
13427
13428 SHELL=\${CONFIG_SHELL-$SHELL}
13429 export SHELL
13430 _ASEOF
13431 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13432 ## -------------------- ##
13433 ## M4sh Initialization. ##
13434 ## -------------------- ##
13435
13436 # Be more Bourne compatible
13437 DUALCASE=1; export DUALCASE # for MKS sh
13438 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13439 emulate sh
13440 NULLCMD=:
13441 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13442 # is contrary to our usage. Disable this feature.
13443 alias -g '${1+"$@"}'='"$@"'
13444 setopt NO_GLOB_SUBST
13445 else
13446 case `(set -o) 2>/dev/null` in #(
13447 *posix*) :
13448 set -o posix ;; #(
13449 *) :
13450 ;;
13451 esac
13452 fi
13453
13454
13455 as_nl='
13456 '
13457 export as_nl
13458 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13459 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13460 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13461 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13462 # Prefer a ksh shell builtin over an external printf program on Solaris,
13463 # but without wasting forks for bash or zsh.
13464 if test -z "$BASH_VERSION$ZSH_VERSION" \
13465 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13466 as_echo='print -r --'
13467 as_echo_n='print -rn --'
13468 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13469 as_echo='printf %s\n'
13470 as_echo_n='printf %s'
13471 else
13472 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13473 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13474 as_echo_n='/usr/ucb/echo -n'
13475 else
13476 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13477 as_echo_n_body='eval
13478 arg=$1;
13479 case $arg in #(
13480 *"$as_nl"*)
13481 expr "X$arg" : "X\\(.*\\)$as_nl";
13482 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13483 esac;
13484 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13485 '
13486 export as_echo_n_body
13487 as_echo_n='sh -c $as_echo_n_body as_echo'
13488 fi
13489 export as_echo_body
13490 as_echo='sh -c $as_echo_body as_echo'
13491 fi
13492
13493 # The user is always right.
13494 if test "${PATH_SEPARATOR+set}" != set; then
13495 PATH_SEPARATOR=:
13496 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13497 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13498 PATH_SEPARATOR=';'
13499 }
13500 fi
13501
13502
13503 # IFS
13504 # We need space, tab and new line, in precisely that order. Quoting is
13505 # there to prevent editors from complaining about space-tab.
13506 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13507 # splitting by setting IFS to empty value.)
13508 IFS=" "" $as_nl"
13509
13510 # Find who we are. Look in the path if we contain no directory separator.
13511 as_myself=
13512 case $0 in #((
13513 *[\\/]* ) as_myself=$0 ;;
13514 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13515 for as_dir in $PATH
13516 do
13517 IFS=$as_save_IFS
13518 test -z "$as_dir" && as_dir=.
13519 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13520 done
13521 IFS=$as_save_IFS
13522
13523 ;;
13524 esac
13525 # We did not find ourselves, most probably we were run as `sh COMMAND'
13526 # in which case we are not to be found in the path.
13527 if test "x$as_myself" = x; then
13528 as_myself=$0
13529 fi
13530 if test ! -f "$as_myself"; then
13531 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13532 exit 1
13533 fi
13534
13535 # Unset variables that we do not need and which cause bugs (e.g. in
13536 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13537 # suppresses any "Segmentation fault" message there. '((' could
13538 # trigger a bug in pdksh 5.2.14.
13539 for as_var in BASH_ENV ENV MAIL MAILPATH
13540 do eval test x\${$as_var+set} = xset \
13541 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13542 done
13543 PS1='$ '
13544 PS2='> '
13545 PS4='+ '
13546
13547 # NLS nuisances.
13548 LC_ALL=C
13549 export LC_ALL
13550 LANGUAGE=C
13551 export LANGUAGE
13552
13553 # CDPATH.
13554 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13555
13556
13557 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13558 # ----------------------------------------
13559 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13560 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13561 # script with STATUS, using 1 if that was 0.
13562 as_fn_error ()
13563 {
13564 as_status=$1; test $as_status -eq 0 && as_status=1
13565 if test "$4"; then
13566 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13567 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13568 fi
13569 $as_echo "$as_me: error: $2" >&2
13570 as_fn_exit $as_status
13571 } # as_fn_error
13572
13573
13574 # as_fn_set_status STATUS
13575 # -----------------------
13576 # Set $? to STATUS, without forking.
13577 as_fn_set_status ()
13578 {
13579 return $1
13580 } # as_fn_set_status
13581
13582 # as_fn_exit STATUS
13583 # -----------------
13584 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13585 as_fn_exit ()
13586 {
13587 set +e
13588 as_fn_set_status $1
13589 exit $1
13590 } # as_fn_exit
13591
13592 # as_fn_unset VAR
13593 # ---------------
13594 # Portably unset VAR.
13595 as_fn_unset ()
13596 {
13597 { eval $1=; unset $1;}
13598 }
13599 as_unset=as_fn_unset
13600 # as_fn_append VAR VALUE
13601 # ----------------------
13602 # Append the text in VALUE to the end of the definition contained in VAR. Take
13603 # advantage of any shell optimizations that allow amortized linear growth over
13604 # repeated appends, instead of the typical quadratic growth present in naive
13605 # implementations.
13606 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13607 eval 'as_fn_append ()
13608 {
13609 eval $1+=\$2
13610 }'
13611 else
13612 as_fn_append ()
13613 {
13614 eval $1=\$$1\$2
13615 }
13616 fi # as_fn_append
13617
13618 # as_fn_arith ARG...
13619 # ------------------
13620 # Perform arithmetic evaluation on the ARGs, and store the result in the
13621 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13622 # must be portable across $(()) and expr.
13623 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13624 eval 'as_fn_arith ()
13625 {
13626 as_val=$(( $* ))
13627 }'
13628 else
13629 as_fn_arith ()
13630 {
13631 as_val=`expr "$@" || test $? -eq 1`
13632 }
13633 fi # as_fn_arith
13634
13635
13636 if expr a : '\(a\)' >/dev/null 2>&1 &&
13637 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13638 as_expr=expr
13639 else
13640 as_expr=false
13641 fi
13642
13643 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13644 as_basename=basename
13645 else
13646 as_basename=false
13647 fi
13648
13649 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13650 as_dirname=dirname
13651 else
13652 as_dirname=false
13653 fi
13654
13655 as_me=`$as_basename -- "$0" ||
13656 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13657 X"$0" : 'X\(//\)$' \| \
13658 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13659 $as_echo X/"$0" |
13660 sed '/^.*\/\([^/][^/]*\)\/*$/{
13661 s//\1/
13662 q
13663 }
13664 /^X\/\(\/\/\)$/{
13665 s//\1/
13666 q
13667 }
13668 /^X\/\(\/\).*/{
13669 s//\1/
13670 q
13671 }
13672 s/.*/./; q'`
13673
13674 # Avoid depending upon Character Ranges.
13675 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13676 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13677 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13678 as_cr_digits='0123456789'
13679 as_cr_alnum=$as_cr_Letters$as_cr_digits
13680
13681 ECHO_C= ECHO_N= ECHO_T=
13682 case `echo -n x` in #(((((
13683 -n*)
13684 case `echo 'xy\c'` in
13685 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13686 xy) ECHO_C='\c';;
13687 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13688 ECHO_T=' ';;
13689 esac;;
13690 *)
13691 ECHO_N='-n';;
13692 esac
13693
13694 rm -f conf$$ conf$$.exe conf$$.file
13695 if test -d conf$$.dir; then
13696 rm -f conf$$.dir/conf$$.file
13697 else
13698 rm -f conf$$.dir
13699 mkdir conf$$.dir 2>/dev/null
13700 fi
13701 if (echo >conf$$.file) 2>/dev/null; then
13702 if ln -s conf$$.file conf$$ 2>/dev/null; then
13703 as_ln_s='ln -s'
13704 # ... but there are two gotchas:
13705 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13706 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13707 # In both cases, we have to default to `cp -pR'.
13708 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13709 as_ln_s='cp -pR'
13710 elif ln conf$$.file conf$$ 2>/dev/null; then
13711 as_ln_s=ln
13712 else
13713 as_ln_s='cp -pR'
13714 fi
13715 else
13716 as_ln_s='cp -pR'
13717 fi
13718 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13719 rmdir conf$$.dir 2>/dev/null
13720
13721
13722 # as_fn_mkdir_p
13723 # -------------
13724 # Create "$as_dir" as a directory, including parents if necessary.
13725 as_fn_mkdir_p ()
13726 {
13727
13728 case $as_dir in #(
13729 -*) as_dir=./$as_dir;;
13730 esac
13731 test -d "$as_dir" || eval $as_mkdir_p || {
13732 as_dirs=
13733 while :; do
13734 case $as_dir in #(
13735 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13736 *) as_qdir=$as_dir;;
13737 esac
13738 as_dirs="'$as_qdir' $as_dirs"
13739 as_dir=`$as_dirname -- "$as_dir" ||
13740 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13741 X"$as_dir" : 'X\(//\)[^/]' \| \
13742 X"$as_dir" : 'X\(//\)$' \| \
13743 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13744 $as_echo X"$as_dir" |
13745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13746 s//\1/
13747 q
13748 }
13749 /^X\(\/\/\)[^/].*/{
13750 s//\1/
13751 q
13752 }
13753 /^X\(\/\/\)$/{
13754 s//\1/
13755 q
13756 }
13757 /^X\(\/\).*/{
13758 s//\1/
13759 q
13760 }
13761 s/.*/./; q'`
13762 test -d "$as_dir" && break
13763 done
13764 test -z "$as_dirs" || eval "mkdir $as_dirs"
13765 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13766
13767
13768 } # as_fn_mkdir_p
13769 if mkdir -p . 2>/dev/null; then
13770 as_mkdir_p='mkdir -p "$as_dir"'
13771 else
13772 test -d ./-p && rmdir ./-p
13773 as_mkdir_p=false
13774 fi
13775
13776
13777 # as_fn_executable_p FILE
13778 # -----------------------
13779 # Test if FILE is an executable regular file.
13780 as_fn_executable_p ()
13781 {
13782 test -f "$1" && test -x "$1"
13783 } # as_fn_executable_p
13784 as_test_x='test -x'
13785 as_executable_p=as_fn_executable_p
13786
13787 # Sed expression to map a string onto a valid CPP name.
13788 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13789
13790 # Sed expression to map a string onto a valid variable name.
13791 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13792
13793
13794 exec 6>&1
13795 ## ----------------------------------- ##
13796 ## Main body of $CONFIG_STATUS script. ##
13797 ## ----------------------------------- ##
13798 _ASEOF
13799 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13800
13801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13802 # Save the log message, to keep $0 and so on meaningful, and to
13803 # report actual input values of CONFIG_FILES etc. instead of their
13804 # values after options handling.
13805 ac_log="
13806 This file was extended by libotf $as_me 0.9.16, which was
13807 generated by GNU Autoconf 2.69. Invocation command line was
13808
13809 CONFIG_FILES = $CONFIG_FILES
13810 CONFIG_HEADERS = $CONFIG_HEADERS
13811 CONFIG_LINKS = $CONFIG_LINKS
13812 CONFIG_COMMANDS = $CONFIG_COMMANDS
13813 $ $0 $@
13814
13815 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13816 "
13817
13818 _ACEOF
13819
13820 case $ac_config_files in *"
13821 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13822 esac
13823
13824 case $ac_config_headers in *"
13825 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13826 esac
13827
13828
13829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13830 # Files that config.status was made for.
13831 config_files="$ac_config_files"
13832 config_headers="$ac_config_headers"
13833 config_commands="$ac_config_commands"
13834
13835 _ACEOF
13836
13837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13838 ac_cs_usage="\
13839 \`$as_me' instantiates files and other configuration actions
13840 from templates according to the current configuration. Unless the files
13841 and actions are specified as TAGs, all are instantiated by default.
13842
13843 Usage: $0 [OPTION]... [TAG]...
13844
13845 -h, --help print this help, then exit
13846 -V, --version print version number and configuration settings, then exit
13847 --config print configuration, then exit
13848 -q, --quiet, --silent
13849 do not print progress messages
13850 -d, --debug don't remove temporary files
13851 --recheck update $as_me by reconfiguring in the same conditions
13852 --file=FILE[:TEMPLATE]
13853 instantiate the configuration file FILE
13854 --header=FILE[:TEMPLATE]
13855 instantiate the configuration header FILE
13856
13857 Configuration files:
13858 $config_files
13859
13860 Configuration headers:
13861 $config_headers
13862
13863 Configuration commands:
13864 $config_commands
13865
13866 Report bugs to <[email protected]>."
13867
13868 _ACEOF
13869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13870 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13871 ac_cs_version="\\
13872 libotf config.status 0.9.16
13873 configured by $0, generated by GNU Autoconf 2.69,
13874 with options \\"\$ac_cs_config\\"
13875
13876 Copyright (C) 2012 Free Software Foundation, Inc.
13877 This config.status script is free software; the Free Software Foundation
13878 gives unlimited permission to copy, distribute and modify it."
13879
13880 ac_pwd='$ac_pwd'
13881 srcdir='$srcdir'
13882 INSTALL='$INSTALL'
13883 MKDIR_P='$MKDIR_P'
13884 AWK='$AWK'
13885 test -n "\$AWK" || AWK=awk
13886 _ACEOF
13887
13888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13889 # The default lists apply if the user does not specify any file.
13890 ac_need_defaults=:
13891 while test $# != 0
13892 do
13893 case $1 in
13894 --*=?*)
13895 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13896 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13897 ac_shift=:
13898 ;;
13899 --*=)
13900 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13901 ac_optarg=
13902 ac_shift=:
13903 ;;
13904 *)
13905 ac_option=$1
13906 ac_optarg=$2
13907 ac_shift=shift
13908 ;;
13909 esac
13910
13911 case $ac_option in
13912 # Handling of the options.
13913 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13914 ac_cs_recheck=: ;;
13915 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13916 $as_echo "$ac_cs_version"; exit ;;
13917 --config | --confi | --conf | --con | --co | --c )
13918 $as_echo "$ac_cs_config"; exit ;;
13919 --debug | --debu | --deb | --de | --d | -d )
13920 debug=: ;;
13921 --file | --fil | --fi | --f )
13922 $ac_shift
13923 case $ac_optarg in
13924 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13925 '') as_fn_error $? "missing file argument" ;;
13926 esac
13927 as_fn_append CONFIG_FILES " '$ac_optarg'"
13928 ac_need_defaults=false;;
13929 --header | --heade | --head | --hea )
13930 $ac_shift
13931 case $ac_optarg in
13932 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13933 esac
13934 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13935 ac_need_defaults=false;;
13936 --he | --h)
13937 # Conflict between --help and --header
13938 as_fn_error $? "ambiguous option: \`$1'
13939 Try \`$0 --help' for more information.";;
13940 --help | --hel | -h )
13941 $as_echo "$ac_cs_usage"; exit ;;
13942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13943 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13944 ac_cs_silent=: ;;
13945
13946 # This is an error.
13947 -*) as_fn_error $? "unrecognized option: \`$1'
13948 Try \`$0 --help' for more information." ;;
13949
13950 *) as_fn_append ac_config_targets " $1"
13951 ac_need_defaults=false ;;
13952
13953 esac
13954 shift
13955 done
13956
13957 ac_configure_extra_args=
13958
13959 if $ac_cs_silent; then
13960 exec 6>/dev/null
13961 ac_configure_extra_args="$ac_configure_extra_args --silent"
13962 fi
13963
13964 _ACEOF
13965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13966 if \$ac_cs_recheck; then
13967 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13968 shift
13969 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13970 CONFIG_SHELL='$SHELL'
13971 export CONFIG_SHELL
13972 exec "\$@"
13973 fi
13974
13975 _ACEOF
13976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13977 exec 5>>config.log
13978 {
13979 echo
13980 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13981 ## Running $as_me. ##
13982 _ASBOX
13983 $as_echo "$ac_log"
13984 } >&5
13985
13986 _ACEOF
13987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13988 #
13989 # INIT-COMMANDS
13990 #
13991 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13992
13993
13994 # The HP-UX ksh and POSIX shell print the target directory to stdout
13995 # if CDPATH is set.
13996 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13997
13998 sed_quote_subst='$sed_quote_subst'
13999 double_quote_subst='$double_quote_subst'
14000 delay_variable_subst='$delay_variable_subst'
14001 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14002 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14003 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14004 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14005 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14006 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14007 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14008 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14009 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14010 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14011 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14012 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14013 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14014 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14015 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14016 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14017 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14018 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14019 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14020 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14021 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14022 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14023 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14024 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14025 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14026 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14027 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14028 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14029 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14030 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14031 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14032 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14033 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14034 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14035 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14036 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14037 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14038 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14039 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14040 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14041 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14042 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14043 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14044 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14045 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14046 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14047 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14048 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14049 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14050 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14051 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14052 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14053 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14054 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14055 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14056 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14057 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14058 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14059 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"`'
14060 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14061 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14062 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14063 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14064 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14065 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14066 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14067 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14068 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14069 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14070 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14071 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14072 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14073 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14074 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14075 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14076 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14077 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14078 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14079 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14080 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14081 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14082 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14083 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14084 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14085 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14086 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14087 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14088 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14089 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14090 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14091 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14092 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14093 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14094 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14095 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14096 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14097 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14098 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14099 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14100 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14101 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14102 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14103 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14104 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14105 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14106 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14107 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14108 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14109 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14110 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14111 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14112 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14113 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14114 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14115 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14116 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14117 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14118 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14119 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14120 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14121 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14122 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14123 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14124 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14125 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14126 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14127 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14128 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14129 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14130 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14131 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14132 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14133 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14134 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14135 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14136
14137 LTCC='$LTCC'
14138 LTCFLAGS='$LTCFLAGS'
14139 compiler='$compiler_DEFAULT'
14140
14141 # A function that is used when there is no print builtin or printf.
14142 func_fallback_echo ()
14143 {
14144 eval 'cat <<_LTECHO_EOF
14145 \$1
14146 _LTECHO_EOF'
14147 }
14148
14149 # Quote evaled strings.
14150 for var in SHELL \
14151 ECHO \
14152 PATH_SEPARATOR \
14153 SED \
14154 GREP \
14155 EGREP \
14156 FGREP \
14157 LD \
14158 NM \
14159 LN_S \
14160 lt_SP2NL \
14161 lt_NL2SP \
14162 reload_flag \
14163 OBJDUMP \
14164 deplibs_check_method \
14165 file_magic_cmd \
14166 file_magic_glob \
14167 want_nocaseglob \
14168 DLLTOOL \
14169 sharedlib_from_linklib_cmd \
14170 AR \
14171 AR_FLAGS \
14172 archiver_list_spec \
14173 STRIP \
14174 RANLIB \
14175 CC \
14176 CFLAGS \
14177 compiler \
14178 lt_cv_sys_global_symbol_pipe \
14179 lt_cv_sys_global_symbol_to_cdecl \
14180 lt_cv_sys_global_symbol_to_import \
14181 lt_cv_sys_global_symbol_to_c_name_address \
14182 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14183 lt_cv_nm_interface \
14184 nm_file_list_spec \
14185 lt_cv_truncate_bin \
14186 lt_prog_compiler_no_builtin_flag \
14187 lt_prog_compiler_pic \
14188 lt_prog_compiler_wl \
14189 lt_prog_compiler_static \
14190 lt_cv_prog_compiler_c_o \
14191 need_locks \
14192 MANIFEST_TOOL \
14193 DSYMUTIL \
14194 NMEDIT \
14195 LIPO \
14196 OTOOL \
14197 OTOOL64 \
14198 shrext_cmds \
14199 export_dynamic_flag_spec \
14200 whole_archive_flag_spec \
14201 compiler_needs_object \
14202 with_gnu_ld \
14203 allow_undefined_flag \
14204 no_undefined_flag \
14205 hardcode_libdir_flag_spec \
14206 hardcode_libdir_separator \
14207 exclude_expsyms \
14208 include_expsyms \
14209 file_list_spec \
14210 variables_saved_for_relink \
14211 libname_spec \
14212 library_names_spec \
14213 soname_spec \
14214 install_override_mode \
14215 finish_eval \
14216 old_striplib \
14217 striplib; do
14218 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14219 *[\\\\\\\`\\"\\\$]*)
14220 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14221 ;;
14222 *)
14223 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14224 ;;
14225 esac
14226 done
14227
14228 # Double-quote double-evaled strings.
14229 for var in reload_cmds \
14230 old_postinstall_cmds \
14231 old_postuninstall_cmds \
14232 old_archive_cmds \
14233 extract_expsyms_cmds \
14234 old_archive_from_new_cmds \
14235 old_archive_from_expsyms_cmds \
14236 archive_cmds \
14237 archive_expsym_cmds \
14238 module_cmds \
14239 module_expsym_cmds \
14240 export_symbols_cmds \
14241 prelink_cmds \
14242 postlink_cmds \
14243 postinstall_cmds \
14244 postuninstall_cmds \
14245 finish_cmds \
14246 sys_lib_search_path_spec \
14247 configure_time_dlsearch_path \
14248 configure_time_lt_sys_library_path; do
14249 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14250 *[\\\\\\\`\\"\\\$]*)
14251 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14252 ;;
14253 *)
14254 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14255 ;;
14256 esac
14257 done
14258
14259 ac_aux_dir='$ac_aux_dir'
14260
14261 # See if we are running on zsh, and set the options that allow our
14262 # commands through without removal of \ escapes INIT.
14263 if test -n "\${ZSH_VERSION+set}"; then
14264 setopt NO_GLOB_SUBST
14265 fi
14266
14267
14268 PACKAGE='$PACKAGE'
14269 VERSION='$VERSION'
14270 RM='$RM'
14271 ofile='$ofile'
14272
14273
14274
14275
14276 _ACEOF
14277
14278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14279
14280 # Handling of arguments.
14281 for ac_config_target in $ac_config_targets
14282 do
14283 case $ac_config_target in
14284 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
14285 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14286 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14287 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14288 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14289 "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
14290 "libotf-config") CONFIG_FILES="$CONFIG_FILES libotf-config" ;;
14291 "libotf.pc") CONFIG_FILES="$CONFIG_FILES libotf.pc" ;;
14292
14293 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14294 esac
14295 done
14296
14297
14298 # If the user did not use the arguments to specify the items to instantiate,
14299 # then the envvar interface is used. Set only those that are not.
14300 # We use the long form for the default assignment because of an extremely
14301 # bizarre bug on SunOS 4.1.3.
14302 if $ac_need_defaults; then
14303 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14304 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14305 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14306 fi
14307
14308 # Have a temporary directory for convenience. Make it in the build tree
14309 # simply because there is no reason against having it here, and in addition,
14310 # creating and moving files from /tmp can sometimes cause problems.
14311 # Hook for its removal unless debugging.
14312 # Note that there is a small window in which the directory will not be cleaned:
14313 # after its creation but before its name has been assigned to `$tmp'.
14314 $debug ||
14315 {
14316 tmp= ac_tmp=
14317 trap 'exit_status=$?
14318 : "${ac_tmp:=$tmp}"
14319 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14320 ' 0
14321 trap 'as_fn_exit 1' 1 2 13 15
14322 }
14323 # Create a (secure) tmp directory for tmp files.
14324
14325 {
14326 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14327 test -d "$tmp"
14328 } ||
14329 {
14330 tmp=./conf$$-$RANDOM
14331 (umask 077 && mkdir "$tmp")
14332 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14333 ac_tmp=$tmp
14334
14335 # Set up the scripts for CONFIG_FILES section.
14336 # No need to generate them if there are no CONFIG_FILES.
14337 # This happens for instance with `./config.status config.h'.
14338 if test -n "$CONFIG_FILES"; then
14339
14340
14341 ac_cr=`echo X | tr X '\015'`
14342 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14343 # But we know of no other shell where ac_cr would be empty at this
14344 # point, so we can use a bashism as a fallback.
14345 if test "x$ac_cr" = x; then
14346 eval ac_cr=\$\'\\r\'
14347 fi
14348 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14349 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14350 ac_cs_awk_cr='\\r'
14351 else
14352 ac_cs_awk_cr=$ac_cr
14353 fi
14354
14355 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14356 _ACEOF
14357
14358
14359 {
14360 echo "cat >conf$$subs.awk <<_ACEOF" &&
14361 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14362 echo "_ACEOF"
14363 } >conf$$subs.sh ||
14364 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14365 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14366 ac_delim='%!_!# '
14367 for ac_last_try in false false false false false :; do
14368 . ./conf$$subs.sh ||
14369 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14370
14371 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14372 if test $ac_delim_n = $ac_delim_num; then
14373 break
14374 elif $ac_last_try; then
14375 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14376 else
14377 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14378 fi
14379 done
14380 rm -f conf$$subs.sh
14381
14382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14383 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14384 _ACEOF
14385 sed -n '
14386 h
14387 s/^/S["/; s/!.*/"]=/
14388 p
14389 g
14390 s/^[^!]*!//
14391 :repl
14392 t repl
14393 s/'"$ac_delim"'$//
14394 t delim
14395 :nl
14396 h
14397 s/\(.\{148\}\)..*/\1/
14398 t more1
14399 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14400 p
14401 n
14402 b repl
14403 :more1
14404 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14405 p
14406 g
14407 s/.\{148\}//
14408 t nl
14409 :delim
14410 h
14411 s/\(.\{148\}\)..*/\1/
14412 t more2
14413 s/["\\]/\\&/g; s/^/"/; s/$/"/
14414 p
14415 b
14416 :more2
14417 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14418 p
14419 g
14420 s/.\{148\}//
14421 t delim
14422 ' <conf$$subs.awk | sed '
14423 /^[^""]/{
14424 N
14425 s/\n//
14426 }
14427 ' >>$CONFIG_STATUS || ac_write_fail=1
14428 rm -f conf$$subs.awk
14429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14430 _ACAWK
14431 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14432 for (key in S) S_is_set[key] = 1
14433 FS = ""
14434
14435 }
14436 {
14437 line = $ 0
14438 nfields = split(line, field, "@")
14439 substed = 0
14440 len = length(field[1])
14441 for (i = 2; i < nfields; i++) {
14442 key = field[i]
14443 keylen = length(key)
14444 if (S_is_set[key]) {
14445 value = S[key]
14446 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14447 len += length(value) + length(field[++i])
14448 substed = 1
14449 } else
14450 len += 1 + keylen
14451 }
14452
14453 print line
14454 }
14455
14456 _ACAWK
14457 _ACEOF
14458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14459 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14460 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14461 else
14462 cat
14463 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14464 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14465 _ACEOF
14466
14467 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14468 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14469 # trailing colons and then remove the whole line if VPATH becomes empty
14470 # (actually we leave an empty line to preserve line numbers).
14471 if test "x$srcdir" = x.; then
14472 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14473 h
14474 s///
14475 s/^/:/
14476 s/[ ]*$/:/
14477 s/:\$(srcdir):/:/g
14478 s/:\${srcdir}:/:/g
14479 s/:@srcdir@:/:/g
14480 s/^:*//
14481 s/:*$//
14482 x
14483 s/\(=[ ]*\).*/\1/
14484 G
14485 s/\n//
14486 s/^[^=]*=[ ]*$//
14487 }'
14488 fi
14489
14490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14491 fi # test -n "$CONFIG_FILES"
14492
14493 # Set up the scripts for CONFIG_HEADERS section.
14494 # No need to generate them if there are no CONFIG_HEADERS.
14495 # This happens for instance with `./config.status Makefile'.
14496 if test -n "$CONFIG_HEADERS"; then
14497 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14498 BEGIN {
14499 _ACEOF
14500
14501 # Transform confdefs.h into an awk script `defines.awk', embedded as
14502 # here-document in config.status, that substitutes the proper values into
14503 # config.h.in to produce config.h.
14504
14505 # Create a delimiter string that does not exist in confdefs.h, to ease
14506 # handling of long lines.
14507 ac_delim='%!_!# '
14508 for ac_last_try in false false :; do
14509 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14510 if test -z "$ac_tt"; then
14511 break
14512 elif $ac_last_try; then
14513 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14514 else
14515 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14516 fi
14517 done
14518
14519 # For the awk script, D is an array of macro values keyed by name,
14520 # likewise P contains macro parameters if any. Preserve backslash
14521 # newline sequences.
14522
14523 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14524 sed -n '
14525 s/.\{148\}/&'"$ac_delim"'/g
14526 t rset
14527 :rset
14528 s/^[ ]*#[ ]*define[ ][ ]*/ /
14529 t def
14530 d
14531 :def
14532 s/\\$//
14533 t bsnl
14534 s/["\\]/\\&/g
14535 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14536 D["\1"]=" \3"/p
14537 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14538 d
14539 :bsnl
14540 s/["\\]/\\&/g
14541 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14542 D["\1"]=" \3\\\\\\n"\\/p
14543 t cont
14544 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14545 t cont
14546 d
14547 :cont
14548 n
14549 s/.\{148\}/&'"$ac_delim"'/g
14550 t clear
14551 :clear
14552 s/\\$//
14553 t bsnlc
14554 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14555 d
14556 :bsnlc
14557 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14558 b cont
14559 ' <confdefs.h | sed '
14560 s/'"$ac_delim"'/"\\\
14561 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14562
14563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14564 for (key in D) D_is_set[key] = 1
14565 FS = ""
14566 }
14567 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14568 line = \$ 0
14569 split(line, arg, " ")
14570 if (arg[1] == "#") {
14571 defundef = arg[2]
14572 mac1 = arg[3]
14573 } else {
14574 defundef = substr(arg[1], 2)
14575 mac1 = arg[2]
14576 }
14577 split(mac1, mac2, "(") #)
14578 macro = mac2[1]
14579 prefix = substr(line, 1, index(line, defundef) - 1)
14580 if (D_is_set[macro]) {
14581 # Preserve the white space surrounding the "#".
14582 print prefix "define", macro P[macro] D[macro]
14583 next
14584 } else {
14585 # Replace #undef with comments. This is necessary, for example,
14586 # in the case of _POSIX_SOURCE, which is predefined and required
14587 # on some systems where configure will not decide to define it.
14588 if (defundef == "undef") {
14589 print "/*", prefix defundef, macro, "*/"
14590 next
14591 }
14592 }
14593 }
14594 { print }
14595 _ACAWK
14596 _ACEOF
14597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14598 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14599 fi # test -n "$CONFIG_HEADERS"
14600
14601
14602 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14603 shift
14604 for ac_tag
14605 do
14606 case $ac_tag in
14607 :[FHLC]) ac_mode=$ac_tag; continue;;
14608 esac
14609 case $ac_mode$ac_tag in
14610 :[FHL]*:*);;
14611 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14612 :[FH]-) ac_tag=-:-;;
14613 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14614 esac
14615 ac_save_IFS=$IFS
14616 IFS=:
14617 set x $ac_tag
14618 IFS=$ac_save_IFS
14619 shift
14620 ac_file=$1
14621 shift
14622
14623 case $ac_mode in
14624 :L) ac_source=$1;;
14625 :[FH])
14626 ac_file_inputs=
14627 for ac_f
14628 do
14629 case $ac_f in
14630 -) ac_f="$ac_tmp/stdin";;
14631 *) # Look for the file first in the build tree, then in the source tree
14632 # (if the path is not absolute). The absolute path cannot be DOS-style,
14633 # because $ac_f cannot contain `:'.
14634 test -f "$ac_f" ||
14635 case $ac_f in
14636 [\\/$]*) false;;
14637 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14638 esac ||
14639 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14640 esac
14641 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14642 as_fn_append ac_file_inputs " '$ac_f'"
14643 done
14644
14645 # Let's still pretend it is `configure' which instantiates (i.e., don't
14646 # use $as_me), people would be surprised to read:
14647 # /* config.h. Generated by config.status. */
14648 configure_input='Generated from '`
14649 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14650 `' by configure.'
14651 if test x"$ac_file" != x-; then
14652 configure_input="$ac_file. $configure_input"
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14654 $as_echo "$as_me: creating $ac_file" >&6;}
14655 fi
14656 # Neutralize special characters interpreted by sed in replacement strings.
14657 case $configure_input in #(
14658 *\&* | *\|* | *\\* )
14659 ac_sed_conf_input=`$as_echo "$configure_input" |
14660 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14661 *) ac_sed_conf_input=$configure_input;;
14662 esac
14663
14664 case $ac_tag in
14665 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14666 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14667 esac
14668 ;;
14669 esac
14670
14671 ac_dir=`$as_dirname -- "$ac_file" ||
14672 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14673 X"$ac_file" : 'X\(//\)[^/]' \| \
14674 X"$ac_file" : 'X\(//\)$' \| \
14675 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14676 $as_echo X"$ac_file" |
14677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14678 s//\1/
14679 q
14680 }
14681 /^X\(\/\/\)[^/].*/{
14682 s//\1/
14683 q
14684 }
14685 /^X\(\/\/\)$/{
14686 s//\1/
14687 q
14688 }
14689 /^X\(\/\).*/{
14690 s//\1/
14691 q
14692 }
14693 s/.*/./; q'`
14694 as_dir="$ac_dir"; as_fn_mkdir_p
14695 ac_builddir=.
14696
14697 case "$ac_dir" in
14698 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14699 *)
14700 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14701 # A ".." for each directory in $ac_dir_suffix.
14702 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14703 case $ac_top_builddir_sub in
14704 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14705 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14706 esac ;;
14707 esac
14708 ac_abs_top_builddir=$ac_pwd
14709 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14710 # for backward compatibility:
14711 ac_top_builddir=$ac_top_build_prefix
14712
14713 case $srcdir in
14714 .) # We are building in place.
14715 ac_srcdir=.
14716 ac_top_srcdir=$ac_top_builddir_sub
14717 ac_abs_top_srcdir=$ac_pwd ;;
14718 [\\/]* | ?:[\\/]* ) # Absolute name.
14719 ac_srcdir=$srcdir$ac_dir_suffix;
14720 ac_top_srcdir=$srcdir
14721 ac_abs_top_srcdir=$srcdir ;;
14722 *) # Relative name.
14723 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14724 ac_top_srcdir=$ac_top_build_prefix$srcdir
14725 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14726 esac
14727 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14728
14729
14730 case $ac_mode in
14731 :F)
14732 #
14733 # CONFIG_FILE
14734 #
14735
14736 case $INSTALL in
14737 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14738 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14739 esac
14740 ac_MKDIR_P=$MKDIR_P
14741 case $MKDIR_P in
14742 [\\/$]* | ?:[\\/]* ) ;;
14743 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14744 esac
14745 _ACEOF
14746
14747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14748 # If the template does not know about datarootdir, expand it.
14749 # FIXME: This hack should be removed a few years after 2.60.
14750 ac_datarootdir_hack=; ac_datarootdir_seen=
14751 ac_sed_dataroot='
14752 /datarootdir/ {
14753 p
14754 q
14755 }
14756 /@datadir@/p
14757 /@docdir@/p
14758 /@infodir@/p
14759 /@localedir@/p
14760 /@mandir@/p'
14761 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14762 *datarootdir*) ac_datarootdir_seen=yes;;
14763 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14765 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14766 _ACEOF
14767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14768 ac_datarootdir_hack='
14769 s&@datadir@&$datadir&g
14770 s&@docdir@&$docdir&g
14771 s&@infodir@&$infodir&g
14772 s&@localedir@&$localedir&g
14773 s&@mandir@&$mandir&g
14774 s&\\\${datarootdir}&$datarootdir&g' ;;
14775 esac
14776 _ACEOF
14777
14778 # Neutralize VPATH when `$srcdir' = `.'.
14779 # Shell code in configure.ac might set extrasub.
14780 # FIXME: do we really want to maintain this feature?
14781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14782 ac_sed_extra="$ac_vpsub
14783 $extrasub
14784 _ACEOF
14785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14786 :t
14787 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14788 s|@configure_input@|$ac_sed_conf_input|;t t
14789 s&@top_builddir@&$ac_top_builddir_sub&;t t
14790 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14791 s&@srcdir@&$ac_srcdir&;t t
14792 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14793 s&@top_srcdir@&$ac_top_srcdir&;t t
14794 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14795 s&@builddir@&$ac_builddir&;t t
14796 s&@abs_builddir@&$ac_abs_builddir&;t t
14797 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14798 s&@INSTALL@&$ac_INSTALL&;t t
14799 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14800 $ac_datarootdir_hack
14801 "
14802 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14803 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14804
14805 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14806 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14807 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14808 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14810 which seems to be undefined. Please make sure it is defined" >&5
14811 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14812 which seems to be undefined. Please make sure it is defined" >&2;}
14813
14814 rm -f "$ac_tmp/stdin"
14815 case $ac_file in
14816 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14817 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14818 esac \
14819 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14820 ;;
14821 :H)
14822 #
14823 # CONFIG_HEADER
14824 #
14825 if test x"$ac_file" != x-; then
14826 {
14827 $as_echo "/* $configure_input */" \
14828 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14829 } >"$ac_tmp/config.h" \
14830 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14831 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14833 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14834 else
14835 rm -f "$ac_file"
14836 mv "$ac_tmp/config.h" "$ac_file" \
14837 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14838 fi
14839 else
14840 $as_echo "/* $configure_input */" \
14841 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14842 || as_fn_error $? "could not create -" "$LINENO" 5
14843 fi
14844 # Compute "$ac_file"'s index in $config_headers.
14845 _am_arg="$ac_file"
14846 _am_stamp_count=1
14847 for _am_header in $config_headers :; do
14848 case $_am_header in
14849 $_am_arg | $_am_arg:* )
14850 break ;;
14851 * )
14852 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14853 esac
14854 done
14855 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14856 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14857 X"$_am_arg" : 'X\(//\)[^/]' \| \
14858 X"$_am_arg" : 'X\(//\)$' \| \
14859 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14860 $as_echo X"$_am_arg" |
14861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14862 s//\1/
14863 q
14864 }
14865 /^X\(\/\/\)[^/].*/{
14866 s//\1/
14867 q
14868 }
14869 /^X\(\/\/\)$/{
14870 s//\1/
14871 q
14872 }
14873 /^X\(\/\).*/{
14874 s//\1/
14875 q
14876 }
14877 s/.*/./; q'`/stamp-h$_am_stamp_count
14878 ;;
14879
14880 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14881 $as_echo "$as_me: executing $ac_file commands" >&6;}
14882 ;;
14883 esac
14884
14885
14886 case $ac_file$ac_mode in
14887 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14888 # Older Autoconf quotes --file arguments for eval, but not when files
14889 # are listed without --file. Let's play safe and only enable the eval
14890 # if we detect the quoting.
14891 case $CONFIG_FILES in
14892 *\'*) eval set x "$CONFIG_FILES" ;;
14893 *) set x $CONFIG_FILES ;;
14894 esac
14895 shift
14896 for mf
14897 do
14898 # Strip MF so we end up with the name of the file.
14899 mf=`echo "$mf" | sed -e 's/:.*$//'`
14900 # Check whether this is an Automake generated Makefile or not.
14901 # We used to match only the files named 'Makefile.in', but
14902 # some people rename them; so instead we look at the file content.
14903 # Grep'ing the first line is not enough: some people post-process
14904 # each Makefile.in and add a new line on top of each file to say so.
14905 # Grep'ing the whole file is not good either: AIX grep has a line
14906 # limit of 2048, but all sed's we know have understand at least 4000.
14907 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14908 dirpart=`$as_dirname -- "$mf" ||
14909 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14910 X"$mf" : 'X\(//\)[^/]' \| \
14911 X"$mf" : 'X\(//\)$' \| \
14912 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14913 $as_echo X"$mf" |
14914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14915 s//\1/
14916 q
14917 }
14918 /^X\(\/\/\)[^/].*/{
14919 s//\1/
14920 q
14921 }
14922 /^X\(\/\/\)$/{
14923 s//\1/
14924 q
14925 }
14926 /^X\(\/\).*/{
14927 s//\1/
14928 q
14929 }
14930 s/.*/./; q'`
14931 else
14932 continue
14933 fi
14934 # Extract the definition of DEPDIR, am__include, and am__quote
14935 # from the Makefile without running 'make'.
14936 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14937 test -z "$DEPDIR" && continue
14938 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14939 test -z "$am__include" && continue
14940 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14941 # Find all dependency output files, they are included files with
14942 # $(DEPDIR) in their names. We invoke sed twice because it is the
14943 # simplest approach to changing $(DEPDIR) to its actual value in the
14944 # expansion.
14945 for file in `sed -n "
14946 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14947 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14948 # Make sure the directory exists.
14949 test -f "$dirpart/$file" && continue
14950 fdir=`$as_dirname -- "$file" ||
14951 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14952 X"$file" : 'X\(//\)[^/]' \| \
14953 X"$file" : 'X\(//\)$' \| \
14954 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14955 $as_echo X"$file" |
14956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14957 s//\1/
14958 q
14959 }
14960 /^X\(\/\/\)[^/].*/{
14961 s//\1/
14962 q
14963 }
14964 /^X\(\/\/\)$/{
14965 s//\1/
14966 q
14967 }
14968 /^X\(\/\).*/{
14969 s//\1/
14970 q
14971 }
14972 s/.*/./; q'`
14973 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14974 # echo "creating $dirpart/$file"
14975 echo '# dummy' > "$dirpart/$file"
14976 done
14977 done
14978 }
14979 ;;
14980 "libtool":C)
14981
14982 # See if we are running on zsh, and set the options that allow our
14983 # commands through without removal of \ escapes.
14984 if test -n "${ZSH_VERSION+set}"; then
14985 setopt NO_GLOB_SUBST
14986 fi
14987
14988 cfgfile=${ofile}T
14989 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14990 $RM "$cfgfile"
14991
14992 cat <<_LT_EOF >> "$cfgfile"
14993 #! $SHELL
14994 # Generated automatically by $as_me ($PACKAGE) $VERSION
14995 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14996 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14997
14998 # Provide generalized library-building support services.
14999 # Written by Gordon Matzigkeit, 1996
15000
15001 # Copyright (C) 2014 Free Software Foundation, Inc.
15002 # This is free software; see the source for copying conditions. There is NO
15003 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15004
15005 # GNU Libtool is free software; you can redistribute it and/or modify
15006 # it under the terms of the GNU General Public License as published by
15007 # the Free Software Foundation; either version 2 of of the License, or
15008 # (at your option) any later version.
15009 #
15010 # As a special exception to the GNU General Public License, if you
15011 # distribute this file as part of a program or library that is built
15012 # using GNU Libtool, you may include this file under the same
15013 # distribution terms that you use for the rest of that program.
15014 #
15015 # GNU Libtool is distributed in the hope that it will be useful, but
15016 # WITHOUT ANY WARRANTY; without even the implied warranty of
15017 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15018 # GNU General Public License for more details.
15019 #
15020 # You should have received a copy of the GNU General Public License
15021 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15022
15023
15024 # The names of the tagged configurations supported by this script.
15025 available_tags=''
15026
15027 # Configured defaults for sys_lib_dlsearch_path munging.
15028 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15029
15030 # ### BEGIN LIBTOOL CONFIG
15031
15032 # Which release of libtool.m4 was used?
15033 macro_version=$macro_version
15034 macro_revision=$macro_revision
15035
15036 # Whether or not to build shared libraries.
15037 build_libtool_libs=$enable_shared
15038
15039 # Whether or not to build static libraries.
15040 build_old_libs=$enable_static
15041
15042 # What type of objects to build.
15043 pic_mode=$pic_mode
15044
15045 # Whether or not to optimize for fast installation.
15046 fast_install=$enable_fast_install
15047
15048 # Shared archive member basename,for filename based shared library versioning on AIX.
15049 shared_archive_member_spec=$shared_archive_member_spec
15050
15051 # Shell to use when invoking shell scripts.
15052 SHELL=$lt_SHELL
15053
15054 # An echo program that protects backslashes.
15055 ECHO=$lt_ECHO
15056
15057 # The PATH separator for the build system.
15058 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15059
15060 # The host system.
15061 host_alias=$host_alias
15062 host=$host
15063 host_os=$host_os
15064
15065 # The build system.
15066 build_alias=$build_alias
15067 build=$build
15068 build_os=$build_os
15069
15070 # A sed program that does not truncate output.
15071 SED=$lt_SED
15072
15073 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15074 Xsed="\$SED -e 1s/^X//"
15075
15076 # A grep program that handles long lines.
15077 GREP=$lt_GREP
15078
15079 # An ERE matcher.
15080 EGREP=$lt_EGREP
15081
15082 # A literal string matcher.
15083 FGREP=$lt_FGREP
15084
15085 # A BSD- or MS-compatible name lister.
15086 NM=$lt_NM
15087
15088 # Whether we need soft or hard links.
15089 LN_S=$lt_LN_S
15090
15091 # What is the maximum length of a command?
15092 max_cmd_len=$max_cmd_len
15093
15094 # Object file suffix (normally "o").
15095 objext=$ac_objext
15096
15097 # Executable file suffix (normally "").
15098 exeext=$exeext
15099
15100 # whether the shell understands "unset".
15101 lt_unset=$lt_unset
15102
15103 # turn spaces into newlines.
15104 SP2NL=$lt_lt_SP2NL
15105
15106 # turn newlines into spaces.
15107 NL2SP=$lt_lt_NL2SP
15108
15109 # convert \$build file names to \$host format.
15110 to_host_file_cmd=$lt_cv_to_host_file_cmd
15111
15112 # convert \$build files to toolchain format.
15113 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15114
15115 # An object symbol dumper.
15116 OBJDUMP=$lt_OBJDUMP
15117
15118 # Method to check whether dependent libraries are shared objects.
15119 deplibs_check_method=$lt_deplibs_check_method
15120
15121 # Command to use when deplibs_check_method = "file_magic".
15122 file_magic_cmd=$lt_file_magic_cmd
15123
15124 # How to find potential files when deplibs_check_method = "file_magic".
15125 file_magic_glob=$lt_file_magic_glob
15126
15127 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15128 want_nocaseglob=$lt_want_nocaseglob
15129
15130 # DLL creation program.
15131 DLLTOOL=$lt_DLLTOOL
15132
15133 # Command to associate shared and link libraries.
15134 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15135
15136 # The archiver.
15137 AR=$lt_AR
15138
15139 # Flags to create an archive.
15140 AR_FLAGS=$lt_AR_FLAGS
15141
15142 # How to feed a file listing to the archiver.
15143 archiver_list_spec=$lt_archiver_list_spec
15144
15145 # A symbol stripping program.
15146 STRIP=$lt_STRIP
15147
15148 # Commands used to install an old-style archive.
15149 RANLIB=$lt_RANLIB
15150 old_postinstall_cmds=$lt_old_postinstall_cmds
15151 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15152
15153 # Whether to use a lock for old archive extraction.
15154 lock_old_archive_extraction=$lock_old_archive_extraction
15155
15156 # A C compiler.
15157 LTCC=$lt_CC
15158
15159 # LTCC compiler flags.
15160 LTCFLAGS=$lt_CFLAGS
15161
15162 # Take the output of nm and produce a listing of raw symbols and C names.
15163 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15164
15165 # Transform the output of nm in a proper C declaration.
15166 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15167
15168 # Transform the output of nm into a list of symbols to manually relocate.
15169 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15170
15171 # Transform the output of nm in a C name address pair.
15172 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15173
15174 # Transform the output of nm in a C name address pair when lib prefix is needed.
15175 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15176
15177 # The name lister interface.
15178 nm_interface=$lt_lt_cv_nm_interface
15179
15180 # Specify filename containing input files for \$NM.
15181 nm_file_list_spec=$lt_nm_file_list_spec
15182
15183 # The root where to search for dependent libraries,and where our libraries should be installed.
15184 lt_sysroot=$lt_sysroot
15185
15186 # Command to truncate a binary pipe.
15187 lt_truncate_bin=$lt_lt_cv_truncate_bin
15188
15189 # The name of the directory that contains temporary libtool files.
15190 objdir=$objdir
15191
15192 # Used to examine libraries when file_magic_cmd begins with "file".
15193 MAGIC_CMD=$MAGIC_CMD
15194
15195 # Must we lock files when doing compilation?
15196 need_locks=$lt_need_locks
15197
15198 # Manifest tool.
15199 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15200
15201 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15202 DSYMUTIL=$lt_DSYMUTIL
15203
15204 # Tool to change global to local symbols on Mac OS X.
15205 NMEDIT=$lt_NMEDIT
15206
15207 # Tool to manipulate fat objects and archives on Mac OS X.
15208 LIPO=$lt_LIPO
15209
15210 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15211 OTOOL=$lt_OTOOL
15212
15213 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15214 OTOOL64=$lt_OTOOL64
15215
15216 # Old archive suffix (normally "a").
15217 libext=$libext
15218
15219 # Shared library suffix (normally ".so").
15220 shrext_cmds=$lt_shrext_cmds
15221
15222 # The commands to extract the exported symbol list from a shared archive.
15223 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15224
15225 # Variables whose values should be saved in libtool wrapper scripts and
15226 # restored at link time.
15227 variables_saved_for_relink=$lt_variables_saved_for_relink
15228
15229 # Do we need the "lib" prefix for modules?
15230 need_lib_prefix=$need_lib_prefix
15231
15232 # Do we need a version for libraries?
15233 need_version=$need_version
15234
15235 # Library versioning type.
15236 version_type=$version_type
15237
15238 # Shared library runtime path variable.
15239 runpath_var=$runpath_var
15240
15241 # Shared library path variable.
15242 shlibpath_var=$shlibpath_var
15243
15244 # Is shlibpath searched before the hard-coded library search path?
15245 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15246
15247 # Format of library name prefix.
15248 libname_spec=$lt_libname_spec
15249
15250 # List of archive names. First name is the real one, the rest are links.
15251 # The last name is the one that the linker finds with -lNAME
15252 library_names_spec=$lt_library_names_spec
15253
15254 # The coded name of the library, if different from the real name.
15255 soname_spec=$lt_soname_spec
15256
15257 # Permission mode override for installation of shared libraries.
15258 install_override_mode=$lt_install_override_mode
15259
15260 # Command to use after installation of a shared archive.
15261 postinstall_cmds=$lt_postinstall_cmds
15262
15263 # Command to use after uninstallation of a shared archive.
15264 postuninstall_cmds=$lt_postuninstall_cmds
15265
15266 # Commands used to finish a libtool library installation in a directory.
15267 finish_cmds=$lt_finish_cmds
15268
15269 # As "finish_cmds", except a single script fragment to be evaled but
15270 # not shown.
15271 finish_eval=$lt_finish_eval
15272
15273 # Whether we should hardcode library paths into libraries.
15274 hardcode_into_libs=$hardcode_into_libs
15275
15276 # Compile-time system search path for libraries.
15277 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15278
15279 # Detected run-time system search path for libraries.
15280 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15281
15282 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15283 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15284
15285 # Whether dlopen is supported.
15286 dlopen_support=$enable_dlopen
15287
15288 # Whether dlopen of programs is supported.
15289 dlopen_self=$enable_dlopen_self
15290
15291 # Whether dlopen of statically linked programs is supported.
15292 dlopen_self_static=$enable_dlopen_self_static
15293
15294 # Commands to strip libraries.
15295 old_striplib=$lt_old_striplib
15296 striplib=$lt_striplib
15297
15298
15299 # The linker used to build libraries.
15300 LD=$lt_LD
15301
15302 # How to create reloadable object files.
15303 reload_flag=$lt_reload_flag
15304 reload_cmds=$lt_reload_cmds
15305
15306 # Commands used to build an old-style archive.
15307 old_archive_cmds=$lt_old_archive_cmds
15308
15309 # A language specific compiler.
15310 CC=$lt_compiler
15311
15312 # Is the compiler the GNU compiler?
15313 with_gcc=$GCC
15314
15315 # Compiler flag to turn off builtin functions.
15316 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15317
15318 # Additional compiler flags for building library objects.
15319 pic_flag=$lt_lt_prog_compiler_pic
15320
15321 # How to pass a linker flag through the compiler.
15322 wl=$lt_lt_prog_compiler_wl
15323
15324 # Compiler flag to prevent dynamic linking.
15325 link_static_flag=$lt_lt_prog_compiler_static
15326
15327 # Does compiler simultaneously support -c and -o options?
15328 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15329
15330 # Whether or not to add -lc for building shared libraries.
15331 build_libtool_need_lc=$archive_cmds_need_lc
15332
15333 # Whether or not to disallow shared libs when runtime libs are static.
15334 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15335
15336 # Compiler flag to allow reflexive dlopens.
15337 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15338
15339 # Compiler flag to generate shared objects directly from archives.
15340 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15341
15342 # Whether the compiler copes with passing no objects directly.
15343 compiler_needs_object=$lt_compiler_needs_object
15344
15345 # Create an old-style archive from a shared archive.
15346 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15347
15348 # Create a temporary old-style archive to link instead of a shared archive.
15349 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15350
15351 # Commands used to build a shared archive.
15352 archive_cmds=$lt_archive_cmds
15353 archive_expsym_cmds=$lt_archive_expsym_cmds
15354
15355 # Commands used to build a loadable module if different from building
15356 # a shared archive.
15357 module_cmds=$lt_module_cmds
15358 module_expsym_cmds=$lt_module_expsym_cmds
15359
15360 # Whether we are building with GNU ld or not.
15361 with_gnu_ld=$lt_with_gnu_ld
15362
15363 # Flag that allows shared libraries with undefined symbols to be built.
15364 allow_undefined_flag=$lt_allow_undefined_flag
15365
15366 # Flag that enforces no undefined symbols.
15367 no_undefined_flag=$lt_no_undefined_flag
15368
15369 # Flag to hardcode \$libdir into a binary during linking.
15370 # This must work even if \$libdir does not exist
15371 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15372
15373 # Whether we need a single "-rpath" flag with a separated argument.
15374 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15375
15376 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15377 # DIR into the resulting binary.
15378 hardcode_direct=$hardcode_direct
15379
15380 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15381 # DIR into the resulting binary and the resulting library dependency is
15382 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15383 # library is relocated.
15384 hardcode_direct_absolute=$hardcode_direct_absolute
15385
15386 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15387 # into the resulting binary.
15388 hardcode_minus_L=$hardcode_minus_L
15389
15390 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15391 # into the resulting binary.
15392 hardcode_shlibpath_var=$hardcode_shlibpath_var
15393
15394 # Set to "yes" if building a shared library automatically hardcodes DIR
15395 # into the library and all subsequent libraries and executables linked
15396 # against it.
15397 hardcode_automatic=$hardcode_automatic
15398
15399 # Set to yes if linker adds runtime paths of dependent libraries
15400 # to runtime path list.
15401 inherit_rpath=$inherit_rpath
15402
15403 # Whether libtool must link a program against all its dependency libraries.
15404 link_all_deplibs=$link_all_deplibs
15405
15406 # Set to "yes" if exported symbols are required.
15407 always_export_symbols=$always_export_symbols
15408
15409 # The commands to list exported symbols.
15410 export_symbols_cmds=$lt_export_symbols_cmds
15411
15412 # Symbols that should not be listed in the preloaded symbols.
15413 exclude_expsyms=$lt_exclude_expsyms
15414
15415 # Symbols that must always be exported.
15416 include_expsyms=$lt_include_expsyms
15417
15418 # Commands necessary for linking programs (against libraries) with templates.
15419 prelink_cmds=$lt_prelink_cmds
15420
15421 # Commands necessary for finishing linking programs.
15422 postlink_cmds=$lt_postlink_cmds
15423
15424 # Specify filename containing input files.
15425 file_list_spec=$lt_file_list_spec
15426
15427 # How to hardcode a shared library path into an executable.
15428 hardcode_action=$hardcode_action
15429
15430 # ### END LIBTOOL CONFIG
15431
15432 _LT_EOF
15433
15434 cat <<'_LT_EOF' >> "$cfgfile"
15435
15436 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15437
15438 # func_munge_path_list VARIABLE PATH
15439 # -----------------------------------
15440 # VARIABLE is name of variable containing _space_ separated list of
15441 # directories to be munged by the contents of PATH, which is string
15442 # having a format:
15443 # "DIR[:DIR]:"
15444 # string "DIR[ DIR]" will be prepended to VARIABLE
15445 # ":DIR[:DIR]"
15446 # string "DIR[ DIR]" will be appended to VARIABLE
15447 # "DIRP[:DIRP]::[DIRA:]DIRA"
15448 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15449 # "DIRA[ DIRA]" will be appended to VARIABLE
15450 # "DIR[:DIR]"
15451 # VARIABLE will be replaced by "DIR[ DIR]"
15452 func_munge_path_list ()
15453 {
15454 case x$2 in
15455 x)
15456 ;;
15457 *:)
15458 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15459 ;;
15460 x:*)
15461 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15462 ;;
15463 *::*)
15464 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15465 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15466 ;;
15467 *)
15468 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15469 ;;
15470 esac
15471 }
15472
15473
15474 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15475 func_cc_basename ()
15476 {
15477 for cc_temp in $*""; do
15478 case $cc_temp in
15479 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15480 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15481 \-*) ;;
15482 *) break;;
15483 esac
15484 done
15485 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15486 }
15487
15488
15489 # ### END FUNCTIONS SHARED WITH CONFIGURE
15490
15491 _LT_EOF
15492
15493 case $host_os in
15494 aix3*)
15495 cat <<\_LT_EOF >> "$cfgfile"
15496 # AIX sometimes has problems with the GCC collect2 program. For some
15497 # reason, if we set the COLLECT_NAMES environment variable, the problems
15498 # vanish in a puff of smoke.
15499 if test set != "${COLLECT_NAMES+set}"; then
15500 COLLECT_NAMES=
15501 export COLLECT_NAMES
15502 fi
15503 _LT_EOF
15504 ;;
15505 esac
15506
15507
15508 ltmain=$ac_aux_dir/ltmain.sh
15509
15510
15511 # We use sed instead of cat because bash on DJGPP gets confused if
15512 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15513 # text mode, it properly converts lines to CR/LF. This bash problem
15514 # is reportedly fixed, but why not run on old versions too?
15515 sed '$q' "$ltmain" >> "$cfgfile" \
15516 || (rm -f "$cfgfile"; exit 1)
15517
15518 mv -f "$cfgfile" "$ofile" ||
15519 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15520 chmod +x "$ofile"
15521
15522 ;;
15523
15524 esac
15525 done # for ac_tag
15526
15527
15528 as_fn_exit 0
15529 _ACEOF
15530 ac_clean_files=$ac_clean_files_save
15531
15532 test $ac_write_fail = 0 ||
15533 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15534
15535
15536 # configure is writing to config.log, and then calls config.status.
15537 # config.status does its own redirection, appending to config.log.
15538 # Unfortunately, on DOS this fails, as config.log is still kept open
15539 # by configure, so config.status won't be able to write to it; its
15540 # output is simply discarded. So we exec the FD to /dev/null,
15541 # effectively closing config.log, so it can be properly (re)opened and
15542 # appended to by config.status. When coming back to configure, we
15543 # need to make the FD available again.
15544 if test "$no_create" != yes; then
15545 ac_cs_success=:
15546 ac_config_status_args=
15547 test "$silent" = yes &&
15548 ac_config_status_args="$ac_config_status_args --quiet"
15549 exec 5>/dev/null
15550 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15551 exec 5>>config.log
15552 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15553 # would make configure fail if this is the last instruction.
15554 $ac_cs_success || as_fn_exit 1
15555 fi
15556 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15558 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15559 fi
15560